@buoy-gg/shared-ui 7.0.50 → 7.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={startSettingsSync:true,SettingsSync:true,PERSONAL_SETTING_KEYS:true,TEAM_SETTING_KEYS:true,onSettingsApplied:true,syncSettingsNow:true,guardToolAdapter:true,absoluteFill:true,displayValue:true,parseDisplayValue:true,getSafeAreaInsets:true,persistentStorage:true,isUsingPersistentStorage:true,getStorageBackendType:true,safeStringify:true,getValueType:true,isPrimitive:true,isJsonSerializable:true,isValidJson:true,getConstructorName:true,isEmpty:true,getValueSize:true,parseValue:true,formatValue:true,getTypeColor:true,truncateText:true,flattenObject:true,formatPath:true,loadOptionalModule:true,getCachedOptionalModule:true,setRenderCaptureProvider:true,getRenderCaptureProvider:true,registerStateSnapshotProvider:true,getStateSnapshotProviders:true,getStateSnapshotProvider:true,subscribeToStateSnapshotProviders:true,superJsonSerialize:true,superJsonDeserialize:true,realNow:true,getRealAppState:true,subscribeRealAppState:true,BUOY_SYNTHETIC_MARK:true,countBuoyListener:true,reloadApp:true,scheduleReloadApp:true,resolveReloadStrategy:true,REMOTE_RELOAD_DELAY_MS:true,getDevServerOrigin:true,Subscribable:true,subscriberCountNotifier:true,subscribeToSubscriberCountChanges:true,notifySubscriberCountChange:true,useSafeRouter:true,useSafePathname:true,useSafeSegments:true,useSafeGlobalSearchParams:true,getSafeRouter:true,getSafeCurrentPathname:true,getSafeCurrentRoute:true,isExpoRouterAvailable:true,registerBrowserRouter:true,browserRouter:true,subscribeBrowserNavigation:true,PREVIEW_ITEM_RENDER_BYTE_LIMIT:true,createRestoreScope:true,emptyRestoreResult:true,failedRestore:true,skippedRestore:true,classifyPreviewItem:true,wontApply:true,unionKeys:true,entityColor:true,formatValuePreview:true,shallowDiffSummary:true,isPlainObjectUtil:true,useSafeAreaInsets:true,useFilterManager:true,usePersistedState:true,resetPersistedStateCache:true,useChangeLog:true,useSubscribedValue:true,useEventStoreEvents:true,useDeviceInfo:true,getDeviceInfo:true,logDeviceInfo:true,JsModal:true,night:true,NIGHT_LABEL_TRACKING:true,NightSectionLabel:true,NightFootnote:true,NightCard:true,NightSeparator:true,NightRows:true,NightSwitch:true,NightChip:true,NightButton:true,NightSegmented:true,NightBadge:true,gameUIColors:true,buoyColors:true,refreshGameUIColors:true,dialColors:true,macOSColors:true,EnvironmentIndicator:true,EnvironmentSelector:true,EnvironmentSelectorInline:true,normalizeEnvironment:true,HintsProvider:true,useHintsDisabled:true,useHintsContext:true,FeatureGate:true,UpgradePrompt:true,useFeatureGate:true,ProFeatureBanner:true,UpgradeModal:true,LicenseEntryModal:true,ProBadge:true,ProUpgradeModal:true,FreeAccountPrompt:true,LOGIN_COMMAND:true,getUseIsPro:true,getUseLicense:true,getUseTier:true,signOutOfBuoy:true,TIER_LIMITS:true,useLimit:true,resolveEffectiveTier:true,getAccountAccess:true,hasAccountAccess:true,assertAccountAccess:true,subscribeAccountAccess:true,getUseAccountAccess:true,retryAccountAccess:true,isProNow:true,AccountSetup:true};Object.defineProperty(exports,"AccountSetup",{enumerable:true,get:function(){return _AccountSetup.AccountSetup}});Object.defineProperty(exports,"BUOY_SYNTHETIC_MARK",{enumerable:true,get:function(){return _index3.BUOY_SYNTHETIC_MARK}});Object.defineProperty(exports,"EnvironmentIndicator",{enumerable:true,get:function(){return _EnvironmentIndicator.EnvironmentIndicator}});Object.defineProperty(exports,"EnvironmentSelector",{enumerable:true,get:function(){return _EnvironmentSelector.EnvironmentSelector}});Object.defineProperty(exports,"EnvironmentSelectorInline",{enumerable:true,get:function(){return _EnvironmentSelectorInline.EnvironmentSelectorInline}});Object.defineProperty(exports,"FeatureGate",{enumerable:true,get:function(){return _index12.FeatureGate}});Object.defineProperty(exports,"FreeAccountPrompt",{enumerable:true,get:function(){return _index12.FreeAccountPrompt}});Object.defineProperty(exports,"HintsProvider",{enumerable:true,get:function(){return _index10.HintsProvider}});Object.defineProperty(exports,"JsModal",{enumerable:true,get:function(){return _JsModal.JsModal}});Object.defineProperty(exports,"LOGIN_COMMAND",{enumerable:true,get:function(){return _index12.LOGIN_COMMAND}});Object.defineProperty(exports,"LicenseEntryModal",{enumerable:true,get:function(){return _index12.LicenseEntryModal}});Object.defineProperty(exports,"NIGHT_LABEL_TRACKING",{enumerable:true,get:function(){return _nightTheme.NIGHT_LABEL_TRACKING}});Object.defineProperty(exports,"NightBadge",{enumerable:true,get:function(){return _primitives.NightBadge}});Object.defineProperty(exports,"NightButton",{enumerable:true,get:function(){return _primitives.NightButton}});Object.defineProperty(exports,"NightCard",{enumerable:true,get:function(){return _primitives.NightCard}});Object.defineProperty(exports,"NightChip",{enumerable:true,get:function(){return _primitives.NightChip}});Object.defineProperty(exports,"NightFootnote",{enumerable:true,get:function(){return _primitives.NightFootnote}});Object.defineProperty(exports,"NightRows",{enumerable:true,get:function(){return _primitives.NightRows}});Object.defineProperty(exports,"NightSectionLabel",{enumerable:true,get:function(){return _primitives.NightSectionLabel}});Object.defineProperty(exports,"NightSegmented",{enumerable:true,get:function(){return _primitives.NightSegmented}});Object.defineProperty(exports,"NightSeparator",{enumerable:true,get:function(){return _primitives.NightSeparator}});Object.defineProperty(exports,"NightSwitch",{enumerable:true,get:function(){return _primitives.NightSwitch}});Object.defineProperty(exports,"PERSONAL_SETTING_KEYS",{enumerable:true,get:function(){return _settingsSync.PERSONAL_SETTING_KEYS}});Object.defineProperty(exports,"PREVIEW_ITEM_RENDER_BYTE_LIMIT",{enumerable:true,get:function(){return _snapshotProviderKit.PREVIEW_ITEM_RENDER_BYTE_LIMIT}});Object.defineProperty(exports,"ProBadge",{enumerable:true,get:function(){return _index12.ProBadge}});Object.defineProperty(exports,"ProFeatureBanner",{enumerable:true,get:function(){return _index12.ProFeatureBanner}});Object.defineProperty(exports,"ProUpgradeModal",{enumerable:true,get:function(){return _index12.ProUpgradeModal}});Object.defineProperty(exports,"REMOTE_RELOAD_DELAY_MS",{enumerable:true,get:function(){return _index3.REMOTE_RELOAD_DELAY_MS}});Object.defineProperty(exports,"SettingsSync",{enumerable:true,get:function(){return _settingsSync.SettingsSync}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return _index3.Subscribable}});Object.defineProperty(exports,"TEAM_SETTING_KEYS",{enumerable:true,get:function(){return _settingsSync.TEAM_SETTING_KEYS}});Object.defineProperty(exports,"TIER_LIMITS",{enumerable:true,get:function(){return _index12.TIER_LIMITS}});Object.defineProperty(exports,"UpgradeModal",{enumerable:true,get:function(){return _index12.UpgradeModal}});Object.defineProperty(exports,"UpgradePrompt",{enumerable:true,get:function(){return _index12.UpgradePrompt}});Object.defineProperty(exports,"absoluteFill",{enumerable:true,get:function(){return _index3.absoluteFill}});Object.defineProperty(exports,"assertAccountAccess",{enumerable:true,get:function(){return _licenseModule.assertAccountAccess}});Object.defineProperty(exports,"browserRouter",{enumerable:true,get:function(){return _browserNavigation.browserRouter}});Object.defineProperty(exports,"buoyColors",{enumerable:true,get:function(){return _gameUIColors.buoyColors}});Object.defineProperty(exports,"classifyPreviewItem",{enumerable:true,get:function(){return _snapshotProviderKit.classifyPreviewItem}});Object.defineProperty(exports,"countBuoyListener",{enumerable:true,get:function(){return _index3.countBuoyListener}});Object.defineProperty(exports,"createRestoreScope",{enumerable:true,get:function(){return _snapshotProviderKit.createRestoreScope}});Object.defineProperty(exports,"dialColors",{enumerable:true,get:function(){return _gameUIColors.dialColors}});Object.defineProperty(exports,"displayValue",{enumerable:true,get:function(){return _index3.displayValue}});Object.defineProperty(exports,"emptyRestoreResult",{enumerable:true,get:function(){return _snapshotProviderKit.emptyRestoreResult}});Object.defineProperty(exports,"entityColor",{enumerable:true,get:function(){return _stateTools.entityColor}});Object.defineProperty(exports,"failedRestore",{enumerable:true,get:function(){return _snapshotProviderKit.failedRestore}});Object.defineProperty(exports,"flattenObject",{enumerable:true,get:function(){return _index3.flattenObject}});Object.defineProperty(exports,"formatPath",{enumerable:true,get:function(){return _index3.formatPath}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return _index3.formatValue}});Object.defineProperty(exports,"formatValuePreview",{enumerable:true,get:function(){return _stateTools.formatValuePreview}});Object.defineProperty(exports,"gameUIColors",{enumerable:true,get:function(){return _gameUIColors.gameUIColors}});Object.defineProperty(exports,"getAccountAccess",{enumerable:true,get:function(){return _licenseModule.getAccountAccess}});Object.defineProperty(exports,"getCachedOptionalModule",{enumerable:true,get:function(){return _index3.getCachedOptionalModule}});Object.defineProperty(exports,"getConstructorName",{enumerable:true,get:function(){return _index3.getConstructorName}});Object.defineProperty(exports,"getDevServerOrigin",{enumerable:true,get:function(){return _index3.getDevServerOrigin}});Object.defineProperty(exports,"getDeviceInfo",{enumerable:true,get:function(){return _index1.getDeviceInfo}});Object.defineProperty(exports,"getRealAppState",{enumerable:true,get:function(){return _index3.getRealAppState}});Object.defineProperty(exports,"getRenderCaptureProvider",{enumerable:true,get:function(){return _index3.getRenderCaptureProvider}});Object.defineProperty(exports,"getSafeAreaInsets",{enumerable:true,get:function(){return _index3.getSafeAreaInsets}});Object.defineProperty(exports,"getSafeCurrentPathname",{enumerable:true,get:function(){return _index3.getSafeCurrentPathname}});Object.defineProperty(exports,"getSafeCurrentRoute",{enumerable:true,get:function(){return _index3.getSafeCurrentRoute}});Object.defineProperty(exports,"getSafeRouter",{enumerable:true,get:function(){return _index3.getSafeRouter}});Object.defineProperty(exports,"getStateSnapshotProvider",{enumerable:true,get:function(){return _index3.getStateSnapshotProvider}});Object.defineProperty(exports,"getStateSnapshotProviders",{enumerable:true,get:function(){return _index3.getStateSnapshotProviders}});Object.defineProperty(exports,"getStorageBackendType",{enumerable:true,get:function(){return _index3.getStorageBackendType}});Object.defineProperty(exports,"getTypeColor",{enumerable:true,get:function(){return _index3.getTypeColor}});Object.defineProperty(exports,"getUseAccountAccess",{enumerable:true,get:function(){return _licenseModule.getUseAccountAccess}});Object.defineProperty(exports,"getUseIsPro",{enumerable:true,get:function(){return _index12.getUseIsPro}});Object.defineProperty(exports,"getUseLicense",{enumerable:true,get:function(){return _index12.getUseLicense}});Object.defineProperty(exports,"getUseTier",{enumerable:true,get:function(){return _index12.getUseTier}});Object.defineProperty(exports,"getValueSize",{enumerable:true,get:function(){return _index3.getValueSize}});Object.defineProperty(exports,"getValueType",{enumerable:true,get:function(){return _index3.getValueType}});Object.defineProperty(exports,"guardToolAdapter",{enumerable:true,get:function(){return _toolActionRegistry.guardToolAdapter}});Object.defineProperty(exports,"hasAccountAccess",{enumerable:true,get:function(){return _licenseModule.hasAccountAccess}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return _index3.isEmpty}});Object.defineProperty(exports,"isExpoRouterAvailable",{enumerable:true,get:function(){return _index3.isExpoRouterAvailable}});Object.defineProperty(exports,"isJsonSerializable",{enumerable:true,get:function(){return _index3.isJsonSerializable}});Object.defineProperty(exports,"isPlainObjectUtil",{enumerable:true,get:function(){return _typeHelpers.isPlainObject}});Object.defineProperty(exports,"isPrimitive",{enumerable:true,get:function(){return _index3.isPrimitive}});Object.defineProperty(exports,"isProNow",{enumerable:true,get:function(){return _licenseModule.isProNow}});Object.defineProperty(exports,"isUsingPersistentStorage",{enumerable:true,get:function(){return _index3.isUsingPersistentStorage}});Object.defineProperty(exports,"isValidJson",{enumerable:true,get:function(){return _index3.isValidJson}});Object.defineProperty(exports,"loadOptionalModule",{enumerable:true,get:function(){return _index3.loadOptionalModule}});Object.defineProperty(exports,"logDeviceInfo",{enumerable:true,get:function(){return _index1.logDeviceInfo}});Object.defineProperty(exports,"macOSColors",{enumerable:true,get:function(){return _macOSDesignSystemColors.macOSColors}});Object.defineProperty(exports,"night",{enumerable:true,get:function(){return _nightTheme.night}});Object.defineProperty(exports,"normalizeEnvironment",{enumerable:true,get:function(){return _types.normalizeEnvironment}});Object.defineProperty(exports,"notifySubscriberCountChange",{enumerable:true,get:function(){return _index3.notifySubscriberCountChange}});Object.defineProperty(exports,"onSettingsApplied",{enumerable:true,get:function(){return _settingsSync.onSettingsApplied}});Object.defineProperty(exports,"parseDisplayValue",{enumerable:true,get:function(){return _index3.parseDisplayValue}});Object.defineProperty(exports,"parseValue",{enumerable:true,get:function(){return _index3.parseValue}});Object.defineProperty(exports,"persistentStorage",{enumerable:true,get:function(){return _index3.persistentStorage}});Object.defineProperty(exports,"realNow",{enumerable:true,get:function(){return _index3.realNow}});Object.defineProperty(exports,"refreshGameUIColors",{enumerable:true,get:function(){return _gameUIColors.refreshGameUIColors}});Object.defineProperty(exports,"registerBrowserRouter",{enumerable:true,get:function(){return _browserNavigation.registerBrowserRouter}});Object.defineProperty(exports,"registerStateSnapshotProvider",{enumerable:true,get:function(){return _index3.registerStateSnapshotProvider}});Object.defineProperty(exports,"reloadApp",{enumerable:true,get:function(){return _index3.reloadApp}});Object.defineProperty(exports,"resetPersistedStateCache",{enumerable:true,get:function(){return _index1.resetPersistedStateCache}});Object.defineProperty(exports,"resolveEffectiveTier",{enumerable:true,get:function(){return _index12.resolveEffectiveTier}});Object.defineProperty(exports,"resolveReloadStrategy",{enumerable:true,get:function(){return _index3.resolveReloadStrategy}});Object.defineProperty(exports,"retryAccountAccess",{enumerable:true,get:function(){return _licenseModule.retryAccountAccess}});Object.defineProperty(exports,"safeStringify",{enumerable:true,get:function(){return _index3.safeStringify}});Object.defineProperty(exports,"scheduleReloadApp",{enumerable:true,get:function(){return _index3.scheduleReloadApp}});Object.defineProperty(exports,"setRenderCaptureProvider",{enumerable:true,get:function(){return _index3.setRenderCaptureProvider}});Object.defineProperty(exports,"shallowDiffSummary",{enumerable:true,get:function(){return _stateTools.shallowDiffSummary}});Object.defineProperty(exports,"signOutOfBuoy",{enumerable:true,get:function(){return _index12.signOutOfBuoy}});Object.defineProperty(exports,"skippedRestore",{enumerable:true,get:function(){return _snapshotProviderKit.skippedRestore}});Object.defineProperty(exports,"startSettingsSync",{enumerable:true,get:function(){return _settingsSync.startSettingsSync}});Object.defineProperty(exports,"subscribeAccountAccess",{enumerable:true,get:function(){return _licenseModule.subscribeAccountAccess}});Object.defineProperty(exports,"subscribeBrowserNavigation",{enumerable:true,get:function(){return _browserNavigation.subscribeBrowserNavigation}});Object.defineProperty(exports,"subscribeRealAppState",{enumerable:true,get:function(){return _index3.subscribeRealAppState}});Object.defineProperty(exports,"subscribeToStateSnapshotProviders",{enumerable:true,get:function(){return _index3.subscribeToStateSnapshotProviders}});Object.defineProperty(exports,"subscribeToSubscriberCountChanges",{enumerable:true,get:function(){return _index3.subscribeToSubscriberCountChanges}});Object.defineProperty(exports,"subscriberCountNotifier",{enumerable:true,get:function(){return _index3.subscriberCountNotifier}});Object.defineProperty(exports,"superJsonDeserialize",{enumerable:true,get:function(){return _index3.superJsonDeserialize}});Object.defineProperty(exports,"superJsonSerialize",{enumerable:true,get:function(){return _index3.superJsonSerialize}});Object.defineProperty(exports,"syncSettingsNow",{enumerable:true,get:function(){return _settingsSync.syncSettingsNow}});Object.defineProperty(exports,"truncateText",{enumerable:true,get:function(){return _index3.truncateText}});Object.defineProperty(exports,"unionKeys",{enumerable:true,get:function(){return _snapshotProviderKit.unionKeys}});Object.defineProperty(exports,"useChangeLog",{enumerable:true,get:function(){return _index1.useChangeLog}});Object.defineProperty(exports,"useDeviceInfo",{enumerable:true,get:function(){return _index1.useDeviceInfo}});Object.defineProperty(exports,"useEventStoreEvents",{enumerable:true,get:function(){return _index1.useEventStoreEvents}});Object.defineProperty(exports,"useFeatureGate",{enumerable:true,get:function(){return _index12.useFeatureGate}});Object.defineProperty(exports,"useFilterManager",{enumerable:true,get:function(){return _index1.useFilterManager}});Object.defineProperty(exports,"useHintsContext",{enumerable:true,get:function(){return _index10.useHintsContext}});Object.defineProperty(exports,"useHintsDisabled",{enumerable:true,get:function(){return _index10.useHintsDisabled}});Object.defineProperty(exports,"useLimit",{enumerable:true,get:function(){return _index12.useLimit}});Object.defineProperty(exports,"usePersistedState",{enumerable:true,get:function(){return _index1.usePersistedState}});Object.defineProperty(exports,"useSafeAreaInsets",{enumerable:true,get:function(){return _index1.useSafeAreaInsets}});Object.defineProperty(exports,"useSafeGlobalSearchParams",{enumerable:true,get:function(){return _index3.useSafeGlobalSearchParams}});Object.defineProperty(exports,"useSafePathname",{enumerable:true,get:function(){return _index3.useSafePathname}});Object.defineProperty(exports,"useSafeRouter",{enumerable:true,get:function(){return _index3.useSafeRouter}});Object.defineProperty(exports,"useSafeSegments",{enumerable:true,get:function(){return _index3.useSafeSegments}});Object.defineProperty(exports,"useSubscribedValue",{enumerable:true,get:function(){return _index1.useSubscribedValue}});Object.defineProperty(exports,"wontApply",{enumerable:true,get:function(){return _snapshotProviderKit.wontApply}});var _index=require("./ui/index.js");Object.keys(_index).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index[e]}})});var _index2=require("./stores/index.js");Object.keys(_index2).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index2[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index2[e]}})});var _keyedArrays=require("./sync/keyedArrays.js");Object.keys(_keyedArrays).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_keyedArrays[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _keyedArrays[e]}})});var _valueShape=require("./sync/valueShape.js");Object.keys(_valueShape).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_valueShape[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _valueShape[e]}})});var _valuePath=require("./sync/valuePath.js");Object.keys(_valuePath).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_valuePath[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _valuePath[e]}})});var _typedEdit=require("./sync/typedEdit.js");Object.keys(_typedEdit).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_typedEdit[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _typedEdit[e]}})});var _wireBudget=require("./sync/wireBudget.js");Object.keys(_wireBudget).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_wireBudget[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _wireBudget[e]}})});var _wireForm=require("./sync/wireForm.js");Object.keys(_wireForm).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_wireForm[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _wireForm[e]}})});var _toolSyncAdapter=require("./sync/toolSyncAdapter.js");Object.keys(_toolSyncAdapter).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolSyncAdapter[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolSyncAdapter[e]}})});var _settingsSync=require("./sync/settingsSync.js");var _defineTool=require("./tools/defineTool.js");Object.keys(_defineTool).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_defineTool[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _defineTool[e]}})});var _toolActionRegistry=require("./sync/toolActionRegistry.js");Object.keys(_toolActionRegistry).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolActionRegistry[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolActionRegistry[e]}})});var _toolUiBridge=require("./sync/toolUiBridge.js");Object.keys(_toolUiBridge).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolUiBridge[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolUiBridge[e]}})});var _toolScreenHeader=require("./sync/toolScreenHeader.js");Object.keys(_toolScreenHeader).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolScreenHeader[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolScreenHeader[e]}})});var _index3=require("./utils/index.js");var _toolModules=require("./utils/toolModules.js");Object.keys(_toolModules).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolModules[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolModules[e]}})});var _browserNavigation=require("./utils/browserNavigation.js");var _snapshotProviderKit=require("./utils/snapshotProviderKit.js");var _stateTools=require("./utils/stateTools.js");var _index4=require("./utils/formatting/index.js");Object.keys(_index4).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index4[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index4[e]}})});var _index5=require("./utils/time/index.js");Object.keys(_index5).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index5[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index5[e]}})});var _typeHelpers=require("./utils/typeHelpers.js");var _index6=require("./icons/index.js");Object.keys(_index6).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index6[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index6[e]}})});var _index7=require("./clipboard/index.js");Object.keys(_index7).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index7[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index7[e]}})});var _index8=require("./logger/index.js");Object.keys(_index8).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index8[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index8[e]}})});var _index9=require("./settings/index.js");Object.keys(_index9).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index9[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index9[e]}})});var _index0=require("./storage/index.js");Object.keys(_index0).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index0[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index0[e]}})});var _index1=require("./hooks/index.js");var _JsModal=require("./JsModal");var _nightTheme=require("./ui/night/nightTheme.js");var _primitives=require("./ui/night/primitives.js");var _gameUIColors=require("./ui/gameUI/constants/gameUIColors.js");var _macOSDesignSystemColors=require("./ui/gameUI/constants/macOSDesignSystemColors.js");var _EnvironmentIndicator=require("./env/EnvironmentIndicator");var _EnvironmentSelector=require("./env/EnvironmentSelector.js");var _EnvironmentSelectorInline=require("./env/EnvironmentSelectorInline");var _types=require("./types/types.js");var _index10=require("./context/index.js");var _index11=require("./history/index.js");Object.keys(_index11).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index11[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index11[e]}})});var _index12=require("./license/index.js");var _licenseModule=require("./license/licenseModule.js");var _AccountSetup=require("./license/AccountSetup");
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={startSettingsSync:true,SettingsSync:true,PERSONAL_SETTING_KEYS:true,TEAM_SETTING_KEYS:true,onSettingsApplied:true,syncSettingsNow:true,guardToolAdapter:true,absoluteFill:true,displayValue:true,parseDisplayValue:true,getSafeAreaInsets:true,persistentStorage:true,isUsingPersistentStorage:true,getStorageBackendType:true,safeStringify:true,getValueType:true,isPrimitive:true,isJsonSerializable:true,isValidJson:true,getConstructorName:true,isEmpty:true,getValueSize:true,parseValue:true,formatValue:true,getTypeColor:true,truncateText:true,flattenObject:true,formatPath:true,loadOptionalModule:true,getCachedOptionalModule:true,setRenderCaptureProvider:true,getRenderCaptureProvider:true,registerStateSnapshotProvider:true,getStateSnapshotProviders:true,getStateSnapshotProvider:true,subscribeToStateSnapshotProviders:true,superJsonSerialize:true,superJsonDeserialize:true,realNow:true,getRealAppState:true,subscribeRealAppState:true,BUOY_SYNTHETIC_MARK:true,countBuoyListener:true,reloadApp:true,scheduleReloadApp:true,resolveReloadStrategy:true,REMOTE_RELOAD_DELAY_MS:true,getDevServerOrigin:true,Subscribable:true,subscriberCountNotifier:true,subscribeToSubscriberCountChanges:true,notifySubscriberCountChange:true,useSafeRouter:true,useSafePathname:true,useSafeSegments:true,useSafeGlobalSearchParams:true,getSafeRouter:true,getSafeCurrentPathname:true,getSafeCurrentRoute:true,isExpoRouterAvailable:true,registerBrowserRouter:true,browserRouter:true,subscribeBrowserNavigation:true,PREVIEW_ITEM_RENDER_BYTE_LIMIT:true,createRestoreScope:true,emptyRestoreResult:true,failedRestore:true,skippedRestore:true,classifyPreviewItem:true,wontApply:true,unionKeys:true,entityColor:true,formatValuePreview:true,shallowDiffSummary:true,isPlainObjectUtil:true,useSafeAreaInsets:true,useFilterManager:true,usePersistedState:true,resetPersistedStateCache:true,useChangeLog:true,useSubscribedValue:true,useEventStoreEvents:true,useDeviceInfo:true,getDeviceInfo:true,logDeviceInfo:true,JsModal:true,night:true,NIGHT_LABEL_TRACKING:true,QrCodeView:true,NightSectionLabel:true,NightFootnote:true,NightCard:true,NightSeparator:true,NightRows:true,NightSwitch:true,NightChip:true,NightButton:true,NightSegmented:true,NightBadge:true,gameUIColors:true,buoyColors:true,refreshGameUIColors:true,dialColors:true,macOSColors:true,EnvironmentIndicator:true,EnvironmentSelector:true,EnvironmentSelectorInline:true,normalizeEnvironment:true,HintsProvider:true,useHintsDisabled:true,useHintsContext:true,FeatureGate:true,UpgradePrompt:true,useFeatureGate:true,ProFeatureBanner:true,UpgradeModal:true,LicenseEntryModal:true,ProBadge:true,ProUpgradeModal:true,FreeAccountPrompt:true,LOGIN_COMMAND:true,getUseIsPro:true,getUseLicense:true,getUseTier:true,signOutOfBuoy:true,TIER_LIMITS:true,useLimit:true,resolveEffectiveTier:true,getAccountAccess:true,hasAccountAccess:true,assertAccountAccess:true,subscribeAccountAccess:true,getUseAccountAccess:true,retryAccountAccess:true,isProNow:true,AccountSetup:true,AccountSetupButton:true};Object.defineProperty(exports,"AccountSetup",{enumerable:true,get:function(){return _AccountSetup.AccountSetup}});Object.defineProperty(exports,"AccountSetupButton",{enumerable:true,get:function(){return _AccountSetupContent.AccountSetupButton}});Object.defineProperty(exports,"BUOY_SYNTHETIC_MARK",{enumerable:true,get:function(){return _index3.BUOY_SYNTHETIC_MARK}});Object.defineProperty(exports,"EnvironmentIndicator",{enumerable:true,get:function(){return _EnvironmentIndicator.EnvironmentIndicator}});Object.defineProperty(exports,"EnvironmentSelector",{enumerable:true,get:function(){return _EnvironmentSelector.EnvironmentSelector}});Object.defineProperty(exports,"EnvironmentSelectorInline",{enumerable:true,get:function(){return _EnvironmentSelectorInline.EnvironmentSelectorInline}});Object.defineProperty(exports,"FeatureGate",{enumerable:true,get:function(){return _index12.FeatureGate}});Object.defineProperty(exports,"FreeAccountPrompt",{enumerable:true,get:function(){return _index12.FreeAccountPrompt}});Object.defineProperty(exports,"HintsProvider",{enumerable:true,get:function(){return _index10.HintsProvider}});Object.defineProperty(exports,"JsModal",{enumerable:true,get:function(){return _JsModal.JsModal}});Object.defineProperty(exports,"LOGIN_COMMAND",{enumerable:true,get:function(){return _index12.LOGIN_COMMAND}});Object.defineProperty(exports,"LicenseEntryModal",{enumerable:true,get:function(){return _index12.LicenseEntryModal}});Object.defineProperty(exports,"NIGHT_LABEL_TRACKING",{enumerable:true,get:function(){return _nightTheme.NIGHT_LABEL_TRACKING}});Object.defineProperty(exports,"NightBadge",{enumerable:true,get:function(){return _primitives.NightBadge}});Object.defineProperty(exports,"NightButton",{enumerable:true,get:function(){return _primitives.NightButton}});Object.defineProperty(exports,"NightCard",{enumerable:true,get:function(){return _primitives.NightCard}});Object.defineProperty(exports,"NightChip",{enumerable:true,get:function(){return _primitives.NightChip}});Object.defineProperty(exports,"NightFootnote",{enumerable:true,get:function(){return _primitives.NightFootnote}});Object.defineProperty(exports,"NightRows",{enumerable:true,get:function(){return _primitives.NightRows}});Object.defineProperty(exports,"NightSectionLabel",{enumerable:true,get:function(){return _primitives.NightSectionLabel}});Object.defineProperty(exports,"NightSegmented",{enumerable:true,get:function(){return _primitives.NightSegmented}});Object.defineProperty(exports,"NightSeparator",{enumerable:true,get:function(){return _primitives.NightSeparator}});Object.defineProperty(exports,"NightSwitch",{enumerable:true,get:function(){return _primitives.NightSwitch}});Object.defineProperty(exports,"PERSONAL_SETTING_KEYS",{enumerable:true,get:function(){return _settingsSync.PERSONAL_SETTING_KEYS}});Object.defineProperty(exports,"PREVIEW_ITEM_RENDER_BYTE_LIMIT",{enumerable:true,get:function(){return _snapshotProviderKit.PREVIEW_ITEM_RENDER_BYTE_LIMIT}});Object.defineProperty(exports,"ProBadge",{enumerable:true,get:function(){return _index12.ProBadge}});Object.defineProperty(exports,"ProFeatureBanner",{enumerable:true,get:function(){return _index12.ProFeatureBanner}});Object.defineProperty(exports,"ProUpgradeModal",{enumerable:true,get:function(){return _index12.ProUpgradeModal}});Object.defineProperty(exports,"QrCodeView",{enumerable:true,get:function(){return _QrCodeView.QrCodeView}});Object.defineProperty(exports,"REMOTE_RELOAD_DELAY_MS",{enumerable:true,get:function(){return _index3.REMOTE_RELOAD_DELAY_MS}});Object.defineProperty(exports,"SettingsSync",{enumerable:true,get:function(){return _settingsSync.SettingsSync}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return _index3.Subscribable}});Object.defineProperty(exports,"TEAM_SETTING_KEYS",{enumerable:true,get:function(){return _settingsSync.TEAM_SETTING_KEYS}});Object.defineProperty(exports,"TIER_LIMITS",{enumerable:true,get:function(){return _index12.TIER_LIMITS}});Object.defineProperty(exports,"UpgradeModal",{enumerable:true,get:function(){return _index12.UpgradeModal}});Object.defineProperty(exports,"UpgradePrompt",{enumerable:true,get:function(){return _index12.UpgradePrompt}});Object.defineProperty(exports,"absoluteFill",{enumerable:true,get:function(){return _index3.absoluteFill}});Object.defineProperty(exports,"assertAccountAccess",{enumerable:true,get:function(){return _licenseModule.assertAccountAccess}});Object.defineProperty(exports,"browserRouter",{enumerable:true,get:function(){return _browserNavigation.browserRouter}});Object.defineProperty(exports,"buoyColors",{enumerable:true,get:function(){return _gameUIColors.buoyColors}});Object.defineProperty(exports,"classifyPreviewItem",{enumerable:true,get:function(){return _snapshotProviderKit.classifyPreviewItem}});Object.defineProperty(exports,"countBuoyListener",{enumerable:true,get:function(){return _index3.countBuoyListener}});Object.defineProperty(exports,"createRestoreScope",{enumerable:true,get:function(){return _snapshotProviderKit.createRestoreScope}});Object.defineProperty(exports,"dialColors",{enumerable:true,get:function(){return _gameUIColors.dialColors}});Object.defineProperty(exports,"displayValue",{enumerable:true,get:function(){return _index3.displayValue}});Object.defineProperty(exports,"emptyRestoreResult",{enumerable:true,get:function(){return _snapshotProviderKit.emptyRestoreResult}});Object.defineProperty(exports,"entityColor",{enumerable:true,get:function(){return _stateTools.entityColor}});Object.defineProperty(exports,"failedRestore",{enumerable:true,get:function(){return _snapshotProviderKit.failedRestore}});Object.defineProperty(exports,"flattenObject",{enumerable:true,get:function(){return _index3.flattenObject}});Object.defineProperty(exports,"formatPath",{enumerable:true,get:function(){return _index3.formatPath}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return _index3.formatValue}});Object.defineProperty(exports,"formatValuePreview",{enumerable:true,get:function(){return _stateTools.formatValuePreview}});Object.defineProperty(exports,"gameUIColors",{enumerable:true,get:function(){return _gameUIColors.gameUIColors}});Object.defineProperty(exports,"getAccountAccess",{enumerable:true,get:function(){return _licenseModule.getAccountAccess}});Object.defineProperty(exports,"getCachedOptionalModule",{enumerable:true,get:function(){return _index3.getCachedOptionalModule}});Object.defineProperty(exports,"getConstructorName",{enumerable:true,get:function(){return _index3.getConstructorName}});Object.defineProperty(exports,"getDevServerOrigin",{enumerable:true,get:function(){return _index3.getDevServerOrigin}});Object.defineProperty(exports,"getDeviceInfo",{enumerable:true,get:function(){return _index1.getDeviceInfo}});Object.defineProperty(exports,"getRealAppState",{enumerable:true,get:function(){return _index3.getRealAppState}});Object.defineProperty(exports,"getRenderCaptureProvider",{enumerable:true,get:function(){return _index3.getRenderCaptureProvider}});Object.defineProperty(exports,"getSafeAreaInsets",{enumerable:true,get:function(){return _index3.getSafeAreaInsets}});Object.defineProperty(exports,"getSafeCurrentPathname",{enumerable:true,get:function(){return _index3.getSafeCurrentPathname}});Object.defineProperty(exports,"getSafeCurrentRoute",{enumerable:true,get:function(){return _index3.getSafeCurrentRoute}});Object.defineProperty(exports,"getSafeRouter",{enumerable:true,get:function(){return _index3.getSafeRouter}});Object.defineProperty(exports,"getStateSnapshotProvider",{enumerable:true,get:function(){return _index3.getStateSnapshotProvider}});Object.defineProperty(exports,"getStateSnapshotProviders",{enumerable:true,get:function(){return _index3.getStateSnapshotProviders}});Object.defineProperty(exports,"getStorageBackendType",{enumerable:true,get:function(){return _index3.getStorageBackendType}});Object.defineProperty(exports,"getTypeColor",{enumerable:true,get:function(){return _index3.getTypeColor}});Object.defineProperty(exports,"getUseAccountAccess",{enumerable:true,get:function(){return _licenseModule.getUseAccountAccess}});Object.defineProperty(exports,"getUseIsPro",{enumerable:true,get:function(){return _index12.getUseIsPro}});Object.defineProperty(exports,"getUseLicense",{enumerable:true,get:function(){return _index12.getUseLicense}});Object.defineProperty(exports,"getUseTier",{enumerable:true,get:function(){return _index12.getUseTier}});Object.defineProperty(exports,"getValueSize",{enumerable:true,get:function(){return _index3.getValueSize}});Object.defineProperty(exports,"getValueType",{enumerable:true,get:function(){return _index3.getValueType}});Object.defineProperty(exports,"guardToolAdapter",{enumerable:true,get:function(){return _toolActionRegistry.guardToolAdapter}});Object.defineProperty(exports,"hasAccountAccess",{enumerable:true,get:function(){return _licenseModule.hasAccountAccess}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return _index3.isEmpty}});Object.defineProperty(exports,"isExpoRouterAvailable",{enumerable:true,get:function(){return _index3.isExpoRouterAvailable}});Object.defineProperty(exports,"isJsonSerializable",{enumerable:true,get:function(){return _index3.isJsonSerializable}});Object.defineProperty(exports,"isPlainObjectUtil",{enumerable:true,get:function(){return _typeHelpers.isPlainObject}});Object.defineProperty(exports,"isPrimitive",{enumerable:true,get:function(){return _index3.isPrimitive}});Object.defineProperty(exports,"isProNow",{enumerable:true,get:function(){return _licenseModule.isProNow}});Object.defineProperty(exports,"isUsingPersistentStorage",{enumerable:true,get:function(){return _index3.isUsingPersistentStorage}});Object.defineProperty(exports,"isValidJson",{enumerable:true,get:function(){return _index3.isValidJson}});Object.defineProperty(exports,"loadOptionalModule",{enumerable:true,get:function(){return _index3.loadOptionalModule}});Object.defineProperty(exports,"logDeviceInfo",{enumerable:true,get:function(){return _index1.logDeviceInfo}});Object.defineProperty(exports,"macOSColors",{enumerable:true,get:function(){return _macOSDesignSystemColors.macOSColors}});Object.defineProperty(exports,"night",{enumerable:true,get:function(){return _nightTheme.night}});Object.defineProperty(exports,"normalizeEnvironment",{enumerable:true,get:function(){return _types.normalizeEnvironment}});Object.defineProperty(exports,"notifySubscriberCountChange",{enumerable:true,get:function(){return _index3.notifySubscriberCountChange}});Object.defineProperty(exports,"onSettingsApplied",{enumerable:true,get:function(){return _settingsSync.onSettingsApplied}});Object.defineProperty(exports,"parseDisplayValue",{enumerable:true,get:function(){return _index3.parseDisplayValue}});Object.defineProperty(exports,"parseValue",{enumerable:true,get:function(){return _index3.parseValue}});Object.defineProperty(exports,"persistentStorage",{enumerable:true,get:function(){return _index3.persistentStorage}});Object.defineProperty(exports,"realNow",{enumerable:true,get:function(){return _index3.realNow}});Object.defineProperty(exports,"refreshGameUIColors",{enumerable:true,get:function(){return _gameUIColors.refreshGameUIColors}});Object.defineProperty(exports,"registerBrowserRouter",{enumerable:true,get:function(){return _browserNavigation.registerBrowserRouter}});Object.defineProperty(exports,"registerStateSnapshotProvider",{enumerable:true,get:function(){return _index3.registerStateSnapshotProvider}});Object.defineProperty(exports,"reloadApp",{enumerable:true,get:function(){return _index3.reloadApp}});Object.defineProperty(exports,"resetPersistedStateCache",{enumerable:true,get:function(){return _index1.resetPersistedStateCache}});Object.defineProperty(exports,"resolveEffectiveTier",{enumerable:true,get:function(){return _index12.resolveEffectiveTier}});Object.defineProperty(exports,"resolveReloadStrategy",{enumerable:true,get:function(){return _index3.resolveReloadStrategy}});Object.defineProperty(exports,"retryAccountAccess",{enumerable:true,get:function(){return _licenseModule.retryAccountAccess}});Object.defineProperty(exports,"safeStringify",{enumerable:true,get:function(){return _index3.safeStringify}});Object.defineProperty(exports,"scheduleReloadApp",{enumerable:true,get:function(){return _index3.scheduleReloadApp}});Object.defineProperty(exports,"setRenderCaptureProvider",{enumerable:true,get:function(){return _index3.setRenderCaptureProvider}});Object.defineProperty(exports,"shallowDiffSummary",{enumerable:true,get:function(){return _stateTools.shallowDiffSummary}});Object.defineProperty(exports,"signOutOfBuoy",{enumerable:true,get:function(){return _index12.signOutOfBuoy}});Object.defineProperty(exports,"skippedRestore",{enumerable:true,get:function(){return _snapshotProviderKit.skippedRestore}});Object.defineProperty(exports,"startSettingsSync",{enumerable:true,get:function(){return _settingsSync.startSettingsSync}});Object.defineProperty(exports,"subscribeAccountAccess",{enumerable:true,get:function(){return _licenseModule.subscribeAccountAccess}});Object.defineProperty(exports,"subscribeBrowserNavigation",{enumerable:true,get:function(){return _browserNavigation.subscribeBrowserNavigation}});Object.defineProperty(exports,"subscribeRealAppState",{enumerable:true,get:function(){return _index3.subscribeRealAppState}});Object.defineProperty(exports,"subscribeToStateSnapshotProviders",{enumerable:true,get:function(){return _index3.subscribeToStateSnapshotProviders}});Object.defineProperty(exports,"subscribeToSubscriberCountChanges",{enumerable:true,get:function(){return _index3.subscribeToSubscriberCountChanges}});Object.defineProperty(exports,"subscriberCountNotifier",{enumerable:true,get:function(){return _index3.subscriberCountNotifier}});Object.defineProperty(exports,"superJsonDeserialize",{enumerable:true,get:function(){return _index3.superJsonDeserialize}});Object.defineProperty(exports,"superJsonSerialize",{enumerable:true,get:function(){return _index3.superJsonSerialize}});Object.defineProperty(exports,"syncSettingsNow",{enumerable:true,get:function(){return _settingsSync.syncSettingsNow}});Object.defineProperty(exports,"truncateText",{enumerable:true,get:function(){return _index3.truncateText}});Object.defineProperty(exports,"unionKeys",{enumerable:true,get:function(){return _snapshotProviderKit.unionKeys}});Object.defineProperty(exports,"useChangeLog",{enumerable:true,get:function(){return _index1.useChangeLog}});Object.defineProperty(exports,"useDeviceInfo",{enumerable:true,get:function(){return _index1.useDeviceInfo}});Object.defineProperty(exports,"useEventStoreEvents",{enumerable:true,get:function(){return _index1.useEventStoreEvents}});Object.defineProperty(exports,"useFeatureGate",{enumerable:true,get:function(){return _index12.useFeatureGate}});Object.defineProperty(exports,"useFilterManager",{enumerable:true,get:function(){return _index1.useFilterManager}});Object.defineProperty(exports,"useHintsContext",{enumerable:true,get:function(){return _index10.useHintsContext}});Object.defineProperty(exports,"useHintsDisabled",{enumerable:true,get:function(){return _index10.useHintsDisabled}});Object.defineProperty(exports,"useLimit",{enumerable:true,get:function(){return _index12.useLimit}});Object.defineProperty(exports,"usePersistedState",{enumerable:true,get:function(){return _index1.usePersistedState}});Object.defineProperty(exports,"useSafeAreaInsets",{enumerable:true,get:function(){return _index1.useSafeAreaInsets}});Object.defineProperty(exports,"useSafeGlobalSearchParams",{enumerable:true,get:function(){return _index3.useSafeGlobalSearchParams}});Object.defineProperty(exports,"useSafePathname",{enumerable:true,get:function(){return _index3.useSafePathname}});Object.defineProperty(exports,"useSafeRouter",{enumerable:true,get:function(){return _index3.useSafeRouter}});Object.defineProperty(exports,"useSafeSegments",{enumerable:true,get:function(){return _index3.useSafeSegments}});Object.defineProperty(exports,"useSubscribedValue",{enumerable:true,get:function(){return _index1.useSubscribedValue}});Object.defineProperty(exports,"wontApply",{enumerable:true,get:function(){return _snapshotProviderKit.wontApply}});var _index=require("./ui/index.js");Object.keys(_index).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index[e]}})});var _index2=require("./stores/index.js");Object.keys(_index2).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index2[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index2[e]}})});var _keyedArrays=require("./sync/keyedArrays.js");Object.keys(_keyedArrays).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_keyedArrays[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _keyedArrays[e]}})});var _valueShape=require("./sync/valueShape.js");Object.keys(_valueShape).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_valueShape[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _valueShape[e]}})});var _valuePath=require("./sync/valuePath.js");Object.keys(_valuePath).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_valuePath[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _valuePath[e]}})});var _typedEdit=require("./sync/typedEdit.js");Object.keys(_typedEdit).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_typedEdit[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _typedEdit[e]}})});var _wireBudget=require("./sync/wireBudget.js");Object.keys(_wireBudget).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_wireBudget[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _wireBudget[e]}})});var _wireForm=require("./sync/wireForm.js");Object.keys(_wireForm).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_wireForm[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _wireForm[e]}})});var _toolSyncAdapter=require("./sync/toolSyncAdapter.js");Object.keys(_toolSyncAdapter).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolSyncAdapter[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolSyncAdapter[e]}})});var _settingsSync=require("./sync/settingsSync.js");var _defineTool=require("./tools/defineTool.js");Object.keys(_defineTool).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_defineTool[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _defineTool[e]}})});var _toolActionRegistry=require("./sync/toolActionRegistry.js");Object.keys(_toolActionRegistry).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolActionRegistry[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolActionRegistry[e]}})});var _toolUiBridge=require("./sync/toolUiBridge.js");Object.keys(_toolUiBridge).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolUiBridge[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolUiBridge[e]}})});var _toolScreenHeader=require("./sync/toolScreenHeader.js");Object.keys(_toolScreenHeader).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolScreenHeader[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolScreenHeader[e]}})});var _index3=require("./utils/index.js");var _toolModules=require("./utils/toolModules.js");Object.keys(_toolModules).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_toolModules[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _toolModules[e]}})});var _browserNavigation=require("./utils/browserNavigation.js");var _snapshotProviderKit=require("./utils/snapshotProviderKit.js");var _stateTools=require("./utils/stateTools.js");var _index4=require("./utils/formatting/index.js");Object.keys(_index4).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index4[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index4[e]}})});var _index5=require("./utils/time/index.js");Object.keys(_index5).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index5[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index5[e]}})});var _typeHelpers=require("./utils/typeHelpers.js");var _index6=require("./icons/index.js");Object.keys(_index6).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index6[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index6[e]}})});var _index7=require("./clipboard/index.js");Object.keys(_index7).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index7[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index7[e]}})});var _index8=require("./logger/index.js");Object.keys(_index8).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index8[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index8[e]}})});var _index9=require("./settings/index.js");Object.keys(_index9).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index9[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index9[e]}})});var _index0=require("./storage/index.js");Object.keys(_index0).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index0[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index0[e]}})});var _index1=require("./hooks/index.js");var _JsModal=require("./JsModal");var _nightTheme=require("./ui/night/nightTheme.js");var _QrCodeView=require("./ui/qr/QrCodeView.js");var _primitives=require("./ui/night/primitives.js");var _gameUIColors=require("./ui/gameUI/constants/gameUIColors.js");var _macOSDesignSystemColors=require("./ui/gameUI/constants/macOSDesignSystemColors.js");var _EnvironmentIndicator=require("./env/EnvironmentIndicator");var _EnvironmentSelector=require("./env/EnvironmentSelector.js");var _EnvironmentSelectorInline=require("./env/EnvironmentSelectorInline");var _types=require("./types/types.js");var _index10=require("./context/index.js");var _index11=require("./history/index.js");Object.keys(_index11).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,e))return;if(e in exports&&exports[e]===_index11[e])return;Object.defineProperty(exports,e,{enumerable:true,get:function(){return _index11[e]}})});var _index12=require("./license/index.js");var _licenseModule=require("./license/licenseModule.js");var _AccountSetup=require("./license/AccountSetup");var _AccountSetupContent=require("./license/AccountSetupContent.js");
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.QrCodeView=void 0;var _react=require("react");var _reactNative=require("react-native");var _qrcodegen=require("./qrcodegen.js");var _jsxRuntime=require("react/jsx-runtime");const QUIET_ZONE=2;const QrCodeView=exports.QrCodeView=(0,_react.memo)(function w({value:l,size:s,color:h="#000",background:a="#fff"}){const d=(0,_react.useMemo)(()=>{const r=_qrcodegen.QrCode.encodeText(l,_qrcodegen.Ecc.MEDIUM);const i=[];for(let e=0;e<r.size;e++){const t=[];for(let c=0;c<r.size;c++){const u=r.getModule(c,e);const n=t[t.length-1];if(n&&n.dark===u)n.length+=1;else t.push({dark:u,length:1})}i.push(t)}return i},[l]);const g=d.length+QUIET_ZONE*2;const o=s/g;return(0,_jsxRuntime.jsx)(_reactNative.View,{accessibilityRole:"image",accessibilityLabel:"QR code",style:{width:s,height:s,backgroundColor:a,padding:o*QUIET_ZONE},children:d.map((r,i)=>(0,_jsxRuntime.jsx)(_reactNative.View,{style:{flexDirection:"row",height:o},children:r.map((e,t)=>(0,_jsxRuntime.jsx)(_reactNative.View,{style:{width:e.length*o,height:o,backgroundColor:e.dark?h:a}},t))},i))})});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.QrSegment=exports.QrCode=exports.Mode=exports.Ecc=void 0;class Ecc{static LOW=new Ecc(0,1);static MEDIUM=new Ecc(1,0);static QUARTILE=new Ecc(2,3);static HIGH=new Ecc(3,2);constructor(t,s){this.ordinal=t;this.formatBits=s}}exports.Ecc=Ecc;class Mode{static NUMERIC=new Mode(1,[10,12,14]);static ALPHANUMERIC=new Mode(2,[9,11,13]);static BYTE=new Mode(4,[8,16,16]);static KANJI=new Mode(8,[8,10,12]);static ECI=new Mode(7,[0,0,0]);constructor(t,s){this.modeBits=t;this.numBitsCharCount=s}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}}exports.Mode=Mode;class QrCode{static encodeText(t,s){const e=QrSegment.makeSegments(t);return QrCode.encodeSegments(e,s)}static encodeBinary(t,s){const e=QrSegment.makeBytes(t);return QrCode.encodeSegments([e],s)}static encodeSegments(t,s,e=1,i=40,o=-1,r=true){if(!(QrCode.MIN_VERSION<=e&&e<=i&&i<=QrCode.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");let n;let l;for(n=e;;n++){const h=QrCode.getNumDataCodewords(n,s)*8;const c=QrSegment.getTotalBits(t,n);if(c<=h){l=c;break}if(n>=i)throw new RangeError("Data too long")}for(const h of[Ecc.MEDIUM,Ecc.QUARTILE,Ecc.HIGH]){if(r&&l<=QrCode.getNumDataCodewords(n,h)*8)s=h}let a=[];for(const h of t){appendBits(h.mode.modeBits,4,a);appendBits(h.numChars,h.mode.numCharCountBits(n),a);for(const c of h.getData())a.push(c)}assert(a.length==l);const E=QrCode.getNumDataCodewords(n,s)*8;assert(a.length<=E);appendBits(0,Math.min(4,E-a.length),a);appendBits(0,(8-a.length%8)%8,a);assert(a.length%8==0);for(let h=236;a.length<E;h^=236^17)appendBits(h,8,a);let u=[];while(u.length*8<a.length)u.push(0);a.forEach((h,c)=>u[c>>>3]|=h<<7-(c&7));return new QrCode(n,s,u,o)}modules=[];isFunction=[];constructor(t,s,e,i){this.version=t;this.errorCorrectionLevel=s;if(t<QrCode.MIN_VERSION||t>QrCode.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let o=[];for(let n=0;n<this.size;n++)o.push(false);for(let n=0;n<this.size;n++){this.modules.push(o.slice());this.isFunction.push(o.slice())}this.drawFunctionPatterns();const r=this.addEccAndInterleave(e);this.drawCodewords(r);if(i==-1){let n=1e9;for(let l=0;l<8;l++){this.applyMask(l);this.drawFormatBits(l);const a=this.getPenaltyScore();if(a<n){i=l;n=a}this.applyMask(l)}}assert(0<=i&&i<=7);this.mask=i;this.applyMask(i);this.drawFormatBits(i);this.isFunction=[]}getModule(t,s){return 0<=t&&t<this.size&&0<=s&&s<this.size&&this.modules[s][t]}drawFunctionPatterns(){for(let e=0;e<this.size;e++){this.setFunctionModule(6,e,e%2==0);this.setFunctionModule(e,6,e%2==0)}this.drawFinderPattern(3,3);this.drawFinderPattern(this.size-4,3);this.drawFinderPattern(3,this.size-4);const t=this.getAlignmentPatternPositions();const s=t.length;for(let e=0;e<s;e++){for(let i=0;i<s;i++){if(!(e==0&&i==0||e==0&&i==s-1||e==s-1&&i==0))this.drawAlignmentPattern(t[e],t[i])}}this.drawFormatBits(0);this.drawVersion()}drawFormatBits(t){const s=this.errorCorrectionLevel.formatBits<<3|t;let e=s;for(let o=0;o<10;o++)e=e<<1^(e>>>9)*1335;const i=(s<<10|e)^21522;assert(i>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,getBit(i,o));this.setFunctionModule(8,7,getBit(i,6));this.setFunctionModule(8,8,getBit(i,7));this.setFunctionModule(7,8,getBit(i,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,getBit(i,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,getBit(i,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,getBit(i,o));this.setFunctionModule(8,this.size-8,true)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;const s=this.version<<12|t;assert(s>>>18==0);for(let e=0;e<18;e++){const i=getBit(s,e);const o=this.size-11+e%3;const r=Math.floor(e/3);this.setFunctionModule(o,r,i);this.setFunctionModule(r,o,i)}}drawFinderPattern(t,s){for(let e=-4;e<=4;e++){for(let i=-4;i<=4;i++){const o=Math.max(Math.abs(i),Math.abs(e));const r=t+i;const n=s+e;if(0<=r&&r<this.size&&0<=n&&n<this.size)this.setFunctionModule(r,n,o!=2&&o!=4)}}}drawAlignmentPattern(t,s){for(let e=-2;e<=2;e++){for(let i=-2;i<=2;i++)this.setFunctionModule(t+i,s+e,Math.max(Math.abs(i),Math.abs(e))!=1)}}setFunctionModule(t,s,e){this.modules[s][t]=e;this.isFunction[s][t]=true}addEccAndInterleave(t){const s=this.version;const e=this.errorCorrectionLevel;if(t.length!=QrCode.getNumDataCodewords(s,e))throw new RangeError("Invalid argument");const i=QrCode.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][s];const o=QrCode.ECC_CODEWORDS_PER_BLOCK[e.ordinal][s];const r=Math.floor(QrCode.getNumRawDataModules(s)/8);const n=i-r%i;const l=Math.floor(r/i);let a=[];const E=QrCode.reedSolomonComputeDivisor(o);for(let h=0,c=0;h<i;h++){let d=t.slice(c,c+l-o+(h<n?0:1));c+=d.length;const w=QrCode.reedSolomonComputeRemainder(d,E);if(h<n)d.push(0);a.push(d.concat(w))}let u=[];for(let h=0;h<a[0].length;h++){a.forEach((c,d)=>{if(h!=l-o||d>=n)u.push(c[h])})}assert(u.length==r);return u}drawCodewords(t){if(t.length!=Math.floor(QrCode.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let e=this.size-1;e>=1;e-=2){if(e==6)e=5;for(let i=0;i<this.size;i++){for(let o=0;o<2;o++){const r=e-o;const n=(e+1&2)==0;const l=n?this.size-1-i:i;if(!this.isFunction[l][r]&&s<t.length*8){this.modules[l][r]=getBit(t[s>>>3],7-(s&7));s++}}}}assert(s==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++){for(let e=0;e<this.size;e++){let i;switch(t){case 0:i=(e+s)%2==0;break;case 1:i=s%2==0;break;case 2:i=e%3==0;break;case 3:i=(e+s)%3==0;break;case 4:i=(Math.floor(e/3)+Math.floor(s/2))%2==0;break;case 5:i=e*s%2+e*s%3==0;break;case 6:i=(e*s%2+e*s%3)%2==0;break;case 7:i=((e+s)%2+e*s%3)%2==0;break;default:throw new Error("Unreachable")}if(!this.isFunction[s][e]&&i)this.modules[s][e]=!this.modules[s][e]}}}getPenaltyScore(){let t=0;for(let o=0;o<this.size;o++){let r=false;let n=0;let l=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++){if(this.modules[o][a]==r){n++;if(n==5)t+=QrCode.PENALTY_N1;else if(n>5)t++}else{this.finderPenaltyAddHistory(n,l);if(!r)t+=this.finderPenaltyCountPatterns(l)*QrCode.PENALTY_N3;r=this.modules[o][a];n=1}}t+=this.finderPenaltyTerminateAndCount(r,n,l)*QrCode.PENALTY_N3}for(let o=0;o<this.size;o++){let r=false;let n=0;let l=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++){if(this.modules[a][o]==r){n++;if(n==5)t+=QrCode.PENALTY_N1;else if(n>5)t++}else{this.finderPenaltyAddHistory(n,l);if(!r)t+=this.finderPenaltyCountPatterns(l)*QrCode.PENALTY_N3;r=this.modules[a][o];n=1}}t+=this.finderPenaltyTerminateAndCount(r,n,l)*QrCode.PENALTY_N3}for(let o=0;o<this.size-1;o++){for(let r=0;r<this.size-1;r++){const n=this.modules[o][r];if(n==this.modules[o][r+1]&&n==this.modules[o+1][r]&&n==this.modules[o+1][r+1])t+=QrCode.PENALTY_N2}}let s=0;for(const o of this.modules)s=o.reduce((r,n)=>r+(n?1:0),s);const e=this.size*this.size;const i=Math.ceil(Math.abs(s*20-e*10)/e)-1;assert(0<=i&&i<=9);t+=i*QrCode.PENALTY_N4;assert(0<=t&&t<=2568888);return t}getAlignmentPatternPositions(){if(this.version==1)return[];else{const t=Math.floor(this.version/7)+2;const s=Math.floor((this.version*8+t*3+5)/(t*4-4))*2;let e=[6];for(let i=this.size-7;e.length<t;i-=s)e.splice(1,0,i);return e}}static getNumRawDataModules(t){if(t<QrCode.MIN_VERSION||t>QrCode.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;s-=(25*e-10)*e-55;if(t>=7)s-=36}assert(208<=s&&s<=29648);return s}static getNumDataCodewords(t,s){return Math.floor(QrCode.getNumRawDataModules(t)/8)-QrCode.ECC_CODEWORDS_PER_BLOCK[s.ordinal][t]*QrCode.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let s=[];for(let i=0;i<t-1;i++)s.push(0);s.push(1);let e=1;for(let i=0;i<t;i++){for(let o=0;o<s.length;o++){s[o]=QrCode.reedSolomonMultiply(s[o],e);if(o+1<s.length)s[o]^=s[o+1]}e=QrCode.reedSolomonMultiply(e,2)}return s}static reedSolomonComputeRemainder(t,s){let e=s.map(i=>0);for(const i of t){const o=i^e.shift();e.push(0);s.forEach((r,n)=>e[n]^=QrCode.reedSolomonMultiply(r,o))}return e}static reedSolomonMultiply(t,s){if(t>>>8!=0||s>>>8!=0)throw new RangeError("Byte out of range");let e=0;for(let i=7;i>=0;i--){e=e<<1^(e>>>7)*285;e^=(s>>>i&1)*t}assert(e>>>8==0);return e}finderPenaltyCountPatterns(t){const s=t[1];assert(s<=this.size*3);const e=s>0&&t[2]==s&&t[3]==s*3&&t[4]==s&&t[5]==s;return(e&&t[0]>=s*4&&t[6]>=s?1:0)+(e&&t[6]>=s*4&&t[0]>=s?1:0)}finderPenaltyTerminateAndCount(t,s,e){if(t){this.finderPenaltyAddHistory(s,e);s=0}s+=this.size;this.finderPenaltyAddHistory(s,e);return this.finderPenaltyCountPatterns(e)}finderPenaltyAddHistory(t,s){if(s[0]==0)t+=this.size;s.pop();s.unshift(t)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]];static NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]}exports.QrCode=QrCode;function appendBits(f,t,s){if(t<0||t>31||f>>>t!=0)throw new RangeError("Value out of range");for(let e=t-1;e>=0;e--)s.push(f>>>e&1)}function getBit(f,t){return(f>>>t&1)!=0}function assert(f){if(!f)throw new Error("Assertion error")}class QrSegment{static makeBytes(t){let s=[];for(const e of t)appendBits(e,8,s);return new QrSegment(Mode.BYTE,t.length,s)}static makeNumeric(t){if(!QrSegment.isNumeric(t))throw new RangeError("String contains non-numeric characters");let s=[];for(let e=0;e<t.length;){const i=Math.min(t.length-e,3);appendBits(parseInt(t.substring(e,e+i),10),i*3+1,s);e+=i}return new QrSegment(Mode.NUMERIC,t.length,s)}static makeAlphanumeric(t){if(!QrSegment.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let s=[];let e;for(e=0;e+2<=t.length;e+=2){let i=QrSegment.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e))*45;i+=QrSegment.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1));appendBits(i,11,s)}if(e<t.length)appendBits(QrSegment.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,s);return new QrSegment(Mode.ALPHANUMERIC,t.length,s)}static makeSegments(t){if(t=="")return[];else if(QrSegment.isNumeric(t))return[QrSegment.makeNumeric(t)];else if(QrSegment.isAlphanumeric(t))return[QrSegment.makeAlphanumeric(t)];else return[QrSegment.makeBytes(QrSegment.toUtf8ByteArray(t))]}static makeEci(t){let s=[];if(t<0)throw new RangeError("ECI assignment value out of range");else if(t<1<<7)appendBits(t,8,s);else if(t<1<<14){appendBits(2,2,s);appendBits(t,14,s)}else if(t<1e6){appendBits(6,3,s);appendBits(t,21,s)}else throw new RangeError("ECI assignment value out of range");return new QrSegment(Mode.ECI,0,s)}static isNumeric(t){return QrSegment.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return QrSegment.ALPHANUMERIC_REGEX.test(t)}constructor(t,s,e){this.mode=t;this.numChars=s;this.bitData=e;if(s<0)throw new RangeError("Invalid argument");this.bitData=e.slice()}getData(){return this.bitData.slice()}static getTotalBits(t,s){let e=0;for(const i of t){const o=i.mode.numCharCountBits(s);if(i.numChars>=1<<o)return Infinity;e+=4+o+i.bitData.length}return e}static toUtf8ByteArray(t){t=encodeURI(t);let s=[];for(let e=0;e<t.length;e++){if(t.charAt(e)!="%")s.push(t.charCodeAt(e));else{s.push(parseInt(t.substring(e+1,e+3),16));e+=2}}return s}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/;static ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"}exports.QrSegment=QrSegment;
@@ -1 +1 @@
1
- "use strict";export*from"./ui/index.js";export*from"./stores/index.js";export*from"./sync/keyedArrays.js";export*from"./sync/valueShape.js";export*from"./sync/valuePath.js";export*from"./sync/typedEdit.js";export*from"./sync/wireBudget.js";export*from"./sync/wireForm.js";export*from"./sync/toolSyncAdapter.js";export{startSettingsSync,SettingsSync,PERSONAL_SETTING_KEYS,TEAM_SETTING_KEYS,onSettingsApplied,syncSettingsNow}from"./sync/settingsSync.js";export*from"./tools/defineTool.js";export*from"./sync/toolActionRegistry.js";export*from"./sync/toolUiBridge.js";export*from"./sync/toolScreenHeader.js";export{absoluteFill,displayValue,parseDisplayValue,getSafeAreaInsets,persistentStorage,isUsingPersistentStorage,getStorageBackendType,safeStringify,getValueType,isPrimitive,isJsonSerializable,isValidJson,getConstructorName,isEmpty,getValueSize,parseValue,formatValue,getTypeColor,truncateText,flattenObject,formatPath,loadOptionalModule,getCachedOptionalModule,setRenderCaptureProvider,getRenderCaptureProvider,registerStateSnapshotProvider,getStateSnapshotProviders,getStateSnapshotProvider,subscribeToStateSnapshotProviders,superJsonSerialize,superJsonDeserialize,realNow,getRealAppState,subscribeRealAppState,BUOY_SYNTHETIC_MARK,countBuoyListener,reloadApp,scheduleReloadApp,resolveReloadStrategy,REMOTE_RELOAD_DELAY_MS,getDevServerOrigin,Subscribable,subscriberCountNotifier,subscribeToSubscriberCountChanges,notifySubscriberCountChange,useSafeRouter,useSafePathname,useSafeSegments,useSafeGlobalSearchParams,getSafeRouter,getSafeCurrentPathname,getSafeCurrentRoute,isExpoRouterAvailable}from"./utils/index.js";export*from"./utils/toolModules.js";export{registerBrowserRouter,browserRouter,subscribeBrowserNavigation}from"./utils/browserNavigation.js";export{PREVIEW_ITEM_RENDER_BYTE_LIMIT,createRestoreScope,emptyRestoreResult,failedRestore,skippedRestore,classifyPreviewItem,wontApply,unionKeys}from"./utils/snapshotProviderKit.js";export{entityColor,formatValuePreview,shallowDiffSummary}from"./utils/stateTools.js";export*from"./utils/formatting/index.js";export*from"./utils/time/index.js";export{isPlainObject as isPlainObjectUtil}from"./utils/typeHelpers.js";export*from"./icons/index.js";export*from"./clipboard/index.js";export*from"./logger/index.js";export*from"./settings/index.js";export*from"./storage/index.js";export{useSafeAreaInsets,useFilterManager,usePersistedState,resetPersistedStateCache,useChangeLog,useSubscribedValue,useEventStoreEvents,useDeviceInfo,getDeviceInfo,logDeviceInfo}from"./hooks/index.js";export{JsModal}from"./JsModal";export{night,NIGHT_LABEL_TRACKING}from"./ui/night/nightTheme.js";export{NightSectionLabel,NightFootnote,NightCard,NightSeparator,NightRows,NightSwitch,NightChip,NightButton,NightSegmented,NightBadge}from"./ui/night/primitives.js";export{gameUIColors,buoyColors}from"./ui/gameUI/constants/gameUIColors.js";export{refreshGameUIColors}from"./ui/gameUI/constants/gameUIColors.js";export{macOSColors}from"./ui/gameUI/constants/macOSDesignSystemColors.js";export{dialColors}from"./ui/gameUI/constants/gameUIColors.js";export{EnvironmentIndicator}from"./env/EnvironmentIndicator";export{EnvironmentSelector}from"./env/EnvironmentSelector.js";export{EnvironmentSelectorInline}from"./env/EnvironmentSelectorInline";export{normalizeEnvironment}from"./types/types.js";export{HintsProvider,useHintsDisabled,useHintsContext}from"./context/index.js";export*from"./history/index.js";export{FeatureGate,UpgradePrompt,useFeatureGate,ProFeatureBanner,UpgradeModal,LicenseEntryModal,ProBadge,ProUpgradeModal,FreeAccountPrompt,LOGIN_COMMAND,getUseIsPro,getUseLicense,getUseTier,signOutOfBuoy,TIER_LIMITS,useLimit,resolveEffectiveTier}from"./license/index.js";export{getAccountAccess,hasAccountAccess,assertAccountAccess,subscribeAccountAccess,getUseAccountAccess,retryAccountAccess,isProNow}from"./license/licenseModule.js";export{guardToolAdapter}from"./sync/toolActionRegistry.js";export{AccountSetup}from"./license/AccountSetup";
1
+ "use strict";export*from"./ui/index.js";export*from"./stores/index.js";export*from"./sync/keyedArrays.js";export*from"./sync/valueShape.js";export*from"./sync/valuePath.js";export*from"./sync/typedEdit.js";export*from"./sync/wireBudget.js";export*from"./sync/wireForm.js";export*from"./sync/toolSyncAdapter.js";export{startSettingsSync,SettingsSync,PERSONAL_SETTING_KEYS,TEAM_SETTING_KEYS,onSettingsApplied,syncSettingsNow}from"./sync/settingsSync.js";export*from"./tools/defineTool.js";export*from"./sync/toolActionRegistry.js";export*from"./sync/toolUiBridge.js";export*from"./sync/toolScreenHeader.js";export{absoluteFill,displayValue,parseDisplayValue,getSafeAreaInsets,persistentStorage,isUsingPersistentStorage,getStorageBackendType,safeStringify,getValueType,isPrimitive,isJsonSerializable,isValidJson,getConstructorName,isEmpty,getValueSize,parseValue,formatValue,getTypeColor,truncateText,flattenObject,formatPath,loadOptionalModule,getCachedOptionalModule,setRenderCaptureProvider,getRenderCaptureProvider,registerStateSnapshotProvider,getStateSnapshotProviders,getStateSnapshotProvider,subscribeToStateSnapshotProviders,superJsonSerialize,superJsonDeserialize,realNow,getRealAppState,subscribeRealAppState,BUOY_SYNTHETIC_MARK,countBuoyListener,reloadApp,scheduleReloadApp,resolveReloadStrategy,REMOTE_RELOAD_DELAY_MS,getDevServerOrigin,Subscribable,subscriberCountNotifier,subscribeToSubscriberCountChanges,notifySubscriberCountChange,useSafeRouter,useSafePathname,useSafeSegments,useSafeGlobalSearchParams,getSafeRouter,getSafeCurrentPathname,getSafeCurrentRoute,isExpoRouterAvailable}from"./utils/index.js";export*from"./utils/toolModules.js";export{registerBrowserRouter,browserRouter,subscribeBrowserNavigation}from"./utils/browserNavigation.js";export{PREVIEW_ITEM_RENDER_BYTE_LIMIT,createRestoreScope,emptyRestoreResult,failedRestore,skippedRestore,classifyPreviewItem,wontApply,unionKeys}from"./utils/snapshotProviderKit.js";export{entityColor,formatValuePreview,shallowDiffSummary}from"./utils/stateTools.js";export*from"./utils/formatting/index.js";export*from"./utils/time/index.js";export{isPlainObject as isPlainObjectUtil}from"./utils/typeHelpers.js";export*from"./icons/index.js";export*from"./clipboard/index.js";export*from"./logger/index.js";export*from"./settings/index.js";export*from"./storage/index.js";export{useSafeAreaInsets,useFilterManager,usePersistedState,resetPersistedStateCache,useChangeLog,useSubscribedValue,useEventStoreEvents,useDeviceInfo,getDeviceInfo,logDeviceInfo}from"./hooks/index.js";export{JsModal}from"./JsModal";export{night,NIGHT_LABEL_TRACKING}from"./ui/night/nightTheme.js";export{QrCodeView}from"./ui/qr/QrCodeView.js";export{NightSectionLabel,NightFootnote,NightCard,NightSeparator,NightRows,NightSwitch,NightChip,NightButton,NightSegmented,NightBadge}from"./ui/night/primitives.js";export{gameUIColors,buoyColors}from"./ui/gameUI/constants/gameUIColors.js";export{refreshGameUIColors}from"./ui/gameUI/constants/gameUIColors.js";export{macOSColors}from"./ui/gameUI/constants/macOSDesignSystemColors.js";export{dialColors}from"./ui/gameUI/constants/gameUIColors.js";export{EnvironmentIndicator}from"./env/EnvironmentIndicator";export{EnvironmentSelector}from"./env/EnvironmentSelector.js";export{EnvironmentSelectorInline}from"./env/EnvironmentSelectorInline";export{normalizeEnvironment}from"./types/types.js";export{HintsProvider,useHintsDisabled,useHintsContext}from"./context/index.js";export*from"./history/index.js";export{FeatureGate,UpgradePrompt,useFeatureGate,ProFeatureBanner,UpgradeModal,LicenseEntryModal,ProBadge,ProUpgradeModal,FreeAccountPrompt,LOGIN_COMMAND,getUseIsPro,getUseLicense,getUseTier,signOutOfBuoy,TIER_LIMITS,useLimit,resolveEffectiveTier}from"./license/index.js";export{getAccountAccess,hasAccountAccess,assertAccountAccess,subscribeAccountAccess,getUseAccountAccess,retryAccountAccess,isProNow}from"./license/licenseModule.js";export{guardToolAdapter}from"./sync/toolActionRegistry.js";export{AccountSetup}from"./license/AccountSetup";export{AccountSetupButton}from"./license/AccountSetupContent.js";
@@ -0,0 +1 @@
1
+ "use strict";import{memo as w,useMemo as x}from"react";import{View as n}from"react-native";import{Ecc as y,QrCode as C}from"./qrcodegen.js";import{jsx as h}from"react/jsx-runtime";const g=2;export const QrCodeView=w(function Q({value:d,size:i,color:p="#000",background:m="#fff"}){const a=x(()=>{const o=C.encodeText(d,y.MEDIUM);const s=[];for(let e=0;e<o.size;e++){const t=[];for(let c=0;c<o.size;c++){const f=o.getModule(c,e);const l=t[t.length-1];if(l&&l.dark===f)l.length+=1;else t.push({dark:f,length:1})}s.push(t)}return s},[d]);const u=a.length+g*2;const r=i/u;return h(n,{accessibilityRole:"image",accessibilityLabel:"QR code",style:{width:i,height:i,backgroundColor:m,padding:r*g},children:a.map((o,s)=>h(n,{style:{flexDirection:"row",height:r},children:o.map((e,t)=>h(n,{style:{width:e.length*r,height:r,backgroundColor:e.dark?p:m}},t))},s))})});
@@ -0,0 +1 @@
1
+ "use strict";export class Ecc{static LOW=new Ecc(0,1);static MEDIUM=new Ecc(1,0);static QUARTILE=new Ecc(2,3);static HIGH=new Ecc(3,2);constructor(t,s){this.ordinal=t;this.formatBits=s}}export class Mode{static NUMERIC=new Mode(1,[10,12,14]);static ALPHANUMERIC=new Mode(2,[9,11,13]);static BYTE=new Mode(4,[8,16,16]);static KANJI=new Mode(8,[8,10,12]);static ECI=new Mode(7,[0,0,0]);constructor(t,s){this.modeBits=t;this.numBitsCharCount=s}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}}export class QrCode{static encodeText(t,s){const e=QrSegment.makeSegments(t);return QrCode.encodeSegments(e,s)}static encodeBinary(t,s){const e=QrSegment.makeBytes(t);return QrCode.encodeSegments([e],s)}static encodeSegments(t,s,e=1,i=40,o=-1,r=true){if(!(QrCode.MIN_VERSION<=e&&e<=i&&i<=QrCode.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");let n;let l;for(n=e;;n++){const h=QrCode.getNumDataCodewords(n,s)*8;const u=QrSegment.getTotalBits(t,n);if(u<=h){l=u;break}if(n>=i)throw new RangeError("Data too long")}for(const h of[Ecc.MEDIUM,Ecc.QUARTILE,Ecc.HIGH]){if(r&&l<=QrCode.getNumDataCodewords(n,h)*8)s=h}let a=[];for(const h of t){c(h.mode.modeBits,4,a);c(h.numChars,h.mode.numCharCountBits(n),a);for(const u of h.getData())a.push(u)}f(a.length==l);const M=QrCode.getNumDataCodewords(n,s)*8;f(a.length<=M);c(0,Math.min(4,M-a.length),a);c(0,(8-a.length%8)%8,a);f(a.length%8==0);for(let h=236;a.length<M;h^=236^17)c(h,8,a);let E=[];while(E.length*8<a.length)E.push(0);a.forEach((h,u)=>E[u>>>3]|=h<<7-(u&7));return new QrCode(n,s,E,o)}modules=[];isFunction=[];constructor(t,s,e,i){this.version=t;this.errorCorrectionLevel=s;if(t<QrCode.MIN_VERSION||t>QrCode.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let o=[];for(let n=0;n<this.size;n++)o.push(false);for(let n=0;n<this.size;n++){this.modules.push(o.slice());this.isFunction.push(o.slice())}this.drawFunctionPatterns();const r=this.addEccAndInterleave(e);this.drawCodewords(r);if(i==-1){let n=1e9;for(let l=0;l<8;l++){this.applyMask(l);this.drawFormatBits(l);const a=this.getPenaltyScore();if(a<n){i=l;n=a}this.applyMask(l)}}f(0<=i&&i<=7);this.mask=i;this.applyMask(i);this.drawFormatBits(i);this.isFunction=[]}getModule(t,s){return 0<=t&&t<this.size&&0<=s&&s<this.size&&this.modules[s][t]}drawFunctionPatterns(){for(let e=0;e<this.size;e++){this.setFunctionModule(6,e,e%2==0);this.setFunctionModule(e,6,e%2==0)}this.drawFinderPattern(3,3);this.drawFinderPattern(this.size-4,3);this.drawFinderPattern(3,this.size-4);const t=this.getAlignmentPatternPositions();const s=t.length;for(let e=0;e<s;e++){for(let i=0;i<s;i++){if(!(e==0&&i==0||e==0&&i==s-1||e==s-1&&i==0))this.drawAlignmentPattern(t[e],t[i])}}this.drawFormatBits(0);this.drawVersion()}drawFormatBits(t){const s=this.errorCorrectionLevel.formatBits<<3|t;let e=s;for(let o=0;o<10;o++)e=e<<1^(e>>>9)*1335;const i=(s<<10|e)^21522;f(i>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,d(i,o));this.setFunctionModule(8,7,d(i,6));this.setFunctionModule(8,8,d(i,7));this.setFunctionModule(7,8,d(i,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,d(i,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,d(i,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,d(i,o));this.setFunctionModule(8,this.size-8,true)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;const s=this.version<<12|t;f(s>>>18==0);for(let e=0;e<18;e++){const i=d(s,e);const o=this.size-11+e%3;const r=Math.floor(e/3);this.setFunctionModule(o,r,i);this.setFunctionModule(r,o,i)}}drawFinderPattern(t,s){for(let e=-4;e<=4;e++){for(let i=-4;i<=4;i++){const o=Math.max(Math.abs(i),Math.abs(e));const r=t+i;const n=s+e;if(0<=r&&r<this.size&&0<=n&&n<this.size)this.setFunctionModule(r,n,o!=2&&o!=4)}}}drawAlignmentPattern(t,s){for(let e=-2;e<=2;e++){for(let i=-2;i<=2;i++)this.setFunctionModule(t+i,s+e,Math.max(Math.abs(i),Math.abs(e))!=1)}}setFunctionModule(t,s,e){this.modules[s][t]=e;this.isFunction[s][t]=true}addEccAndInterleave(t){const s=this.version;const e=this.errorCorrectionLevel;if(t.length!=QrCode.getNumDataCodewords(s,e))throw new RangeError("Invalid argument");const i=QrCode.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][s];const o=QrCode.ECC_CODEWORDS_PER_BLOCK[e.ordinal][s];const r=Math.floor(QrCode.getNumRawDataModules(s)/8);const n=i-r%i;const l=Math.floor(r/i);let a=[];const M=QrCode.reedSolomonComputeDivisor(o);for(let h=0,u=0;h<i;h++){let m=t.slice(u,u+l-o+(h<n?0:1));u+=m.length;const A=QrCode.reedSolomonComputeRemainder(m,M);if(h<n)m.push(0);a.push(m.concat(A))}let E=[];for(let h=0;h<a[0].length;h++){a.forEach((u,m)=>{if(h!=l-o||m>=n)E.push(u[h])})}f(E.length==r);return E}drawCodewords(t){if(t.length!=Math.floor(QrCode.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let e=this.size-1;e>=1;e-=2){if(e==6)e=5;for(let i=0;i<this.size;i++){for(let o=0;o<2;o++){const r=e-o;const n=(e+1&2)==0;const l=n?this.size-1-i:i;if(!this.isFunction[l][r]&&s<t.length*8){this.modules[l][r]=d(t[s>>>3],7-(s&7));s++}}}}f(s==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++){for(let e=0;e<this.size;e++){let i;switch(t){case 0:i=(e+s)%2==0;break;case 1:i=s%2==0;break;case 2:i=e%3==0;break;case 3:i=(e+s)%3==0;break;case 4:i=(Math.floor(e/3)+Math.floor(s/2))%2==0;break;case 5:i=e*s%2+e*s%3==0;break;case 6:i=(e*s%2+e*s%3)%2==0;break;case 7:i=((e+s)%2+e*s%3)%2==0;break;default:throw new Error("Unreachable")}if(!this.isFunction[s][e]&&i)this.modules[s][e]=!this.modules[s][e]}}}getPenaltyScore(){let t=0;for(let o=0;o<this.size;o++){let r=false;let n=0;let l=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++){if(this.modules[o][a]==r){n++;if(n==5)t+=QrCode.PENALTY_N1;else if(n>5)t++}else{this.finderPenaltyAddHistory(n,l);if(!r)t+=this.finderPenaltyCountPatterns(l)*QrCode.PENALTY_N3;r=this.modules[o][a];n=1}}t+=this.finderPenaltyTerminateAndCount(r,n,l)*QrCode.PENALTY_N3}for(let o=0;o<this.size;o++){let r=false;let n=0;let l=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++){if(this.modules[a][o]==r){n++;if(n==5)t+=QrCode.PENALTY_N1;else if(n>5)t++}else{this.finderPenaltyAddHistory(n,l);if(!r)t+=this.finderPenaltyCountPatterns(l)*QrCode.PENALTY_N3;r=this.modules[a][o];n=1}}t+=this.finderPenaltyTerminateAndCount(r,n,l)*QrCode.PENALTY_N3}for(let o=0;o<this.size-1;o++){for(let r=0;r<this.size-1;r++){const n=this.modules[o][r];if(n==this.modules[o][r+1]&&n==this.modules[o+1][r]&&n==this.modules[o+1][r+1])t+=QrCode.PENALTY_N2}}let s=0;for(const o of this.modules)s=o.reduce((r,n)=>r+(n?1:0),s);const e=this.size*this.size;const i=Math.ceil(Math.abs(s*20-e*10)/e)-1;f(0<=i&&i<=9);t+=i*QrCode.PENALTY_N4;f(0<=t&&t<=2568888);return t}getAlignmentPatternPositions(){if(this.version==1)return[];else{const t=Math.floor(this.version/7)+2;const s=Math.floor((this.version*8+t*3+5)/(t*4-4))*2;let e=[6];for(let i=this.size-7;e.length<t;i-=s)e.splice(1,0,i);return e}}static getNumRawDataModules(t){if(t<QrCode.MIN_VERSION||t>QrCode.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;s-=(25*e-10)*e-55;if(t>=7)s-=36}f(208<=s&&s<=29648);return s}static getNumDataCodewords(t,s){return Math.floor(QrCode.getNumRawDataModules(t)/8)-QrCode.ECC_CODEWORDS_PER_BLOCK[s.ordinal][t]*QrCode.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let s=[];for(let i=0;i<t-1;i++)s.push(0);s.push(1);let e=1;for(let i=0;i<t;i++){for(let o=0;o<s.length;o++){s[o]=QrCode.reedSolomonMultiply(s[o],e);if(o+1<s.length)s[o]^=s[o+1]}e=QrCode.reedSolomonMultiply(e,2)}return s}static reedSolomonComputeRemainder(t,s){let e=s.map(i=>0);for(const i of t){const o=i^e.shift();e.push(0);s.forEach((r,n)=>e[n]^=QrCode.reedSolomonMultiply(r,o))}return e}static reedSolomonMultiply(t,s){if(t>>>8!=0||s>>>8!=0)throw new RangeError("Byte out of range");let e=0;for(let i=7;i>=0;i--){e=e<<1^(e>>>7)*285;e^=(s>>>i&1)*t}f(e>>>8==0);return e}finderPenaltyCountPatterns(t){const s=t[1];f(s<=this.size*3);const e=s>0&&t[2]==s&&t[3]==s*3&&t[4]==s&&t[5]==s;return(e&&t[0]>=s*4&&t[6]>=s?1:0)+(e&&t[6]>=s*4&&t[0]>=s?1:0)}finderPenaltyTerminateAndCount(t,s,e){if(t){this.finderPenaltyAddHistory(s,e);s=0}s+=this.size;this.finderPenaltyAddHistory(s,e);return this.finderPenaltyCountPatterns(e)}finderPenaltyAddHistory(t,s){if(s[0]==0)t+=this.size;s.pop();s.unshift(t)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]];static NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]}function c(w,t,s){if(t<0||t>31||w>>>t!=0)throw new RangeError("Value out of range");for(let e=t-1;e>=0;e--)s.push(w>>>e&1)}function d(w,t){return(w>>>t&1)!=0}function f(w){if(!w)throw new Error("Assertion error")}export class QrSegment{static makeBytes(t){let s=[];for(const e of t)c(e,8,s);return new QrSegment(Mode.BYTE,t.length,s)}static makeNumeric(t){if(!QrSegment.isNumeric(t))throw new RangeError("String contains non-numeric characters");let s=[];for(let e=0;e<t.length;){const i=Math.min(t.length-e,3);c(parseInt(t.substring(e,e+i),10),i*3+1,s);e+=i}return new QrSegment(Mode.NUMERIC,t.length,s)}static makeAlphanumeric(t){if(!QrSegment.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let s=[];let e;for(e=0;e+2<=t.length;e+=2){let i=QrSegment.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e))*45;i+=QrSegment.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1));c(i,11,s)}if(e<t.length)c(QrSegment.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,s);return new QrSegment(Mode.ALPHANUMERIC,t.length,s)}static makeSegments(t){if(t=="")return[];else if(QrSegment.isNumeric(t))return[QrSegment.makeNumeric(t)];else if(QrSegment.isAlphanumeric(t))return[QrSegment.makeAlphanumeric(t)];else return[QrSegment.makeBytes(QrSegment.toUtf8ByteArray(t))]}static makeEci(t){let s=[];if(t<0)throw new RangeError("ECI assignment value out of range");else if(t<1<<7)c(t,8,s);else if(t<1<<14){c(2,2,s);c(t,14,s)}else if(t<1e6){c(6,3,s);c(t,21,s)}else throw new RangeError("ECI assignment value out of range");return new QrSegment(Mode.ECI,0,s)}static isNumeric(t){return QrSegment.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return QrSegment.ALPHANUMERIC_REGEX.test(t)}constructor(t,s,e){this.mode=t;this.numChars=s;this.bitData=e;if(s<0)throw new RangeError("Invalid argument");this.bitData=e.slice()}getData(){return this.bitData.slice()}static getTotalBits(t,s){let e=0;for(const i of t){const o=i.mode.numCharCountBits(s);if(i.numChars>=1<<o)return Infinity;e+=4+o+i.bitData.length}return e}static toUtf8ByteArray(t){t=encodeURI(t);let s=[];for(let e=0;e<t.length;e++){if(t.charAt(e)!="%")s.push(t.charCodeAt(e));else{s.push(parseInt(t.substring(e+1,e+3),16));e+=2}}return s}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/;static ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Auto-generated safe area implementation
3
3
  * Detected: none
4
- * Generated at: 2026-10-03T22:24:40.583Z
4
+ * Generated at: 2026-10-04T00:02:14.838Z
5
5
  *
6
6
  * DO NOT EDIT - This file is generated by scripts/detect-safe-area.js
7
7
  *
@@ -31,6 +31,7 @@ export { useSafeAreaInsets, useFilterManager, usePersistedState, resetPersistedS
31
31
  export { JsModal } from "./JsModal";
32
32
  export type { ModalMode, ModalState } from "./JsModal";
33
33
  export { night, NIGHT_LABEL_TRACKING } from "./ui/night/nightTheme";
34
+ export { QrCodeView, type QrCodeViewProps } from "./ui/qr/QrCodeView";
34
35
  export { NightSectionLabel, NightFootnote, NightCard, NightSeparator, NightRows, NightSwitch, NightChip, NightButton, NightSegmented, NightBadge, } from "./ui/night/primitives";
35
36
  export type { NightButtonVariant, NightTab, NightBadgeTone } from "./ui/night/primitives";
36
37
  export { gameUIColors, buoyColors } from "./ui/gameUI/constants/gameUIColors";
@@ -53,4 +54,5 @@ export type { FeatureGateProps, ProFeatureBannerProps, UpgradeModalProps, Licens
53
54
  export { getAccountAccess, hasAccountAccess, assertAccountAccess, subscribeAccountAccess, getUseAccountAccess, retryAccountAccess, isProNow } from "./license/licenseModule";
54
55
  export { guardToolAdapter } from "./sync/toolActionRegistry";
55
56
  export { AccountSetup } from "./license/AccountSetup";
57
+ export { AccountSetupButton } from "./license/AccountSetupContent";
56
58
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ export interface QrCodeViewProps {
2
+ /** What the code holds, e.g. a URL. */
3
+ value: string;
4
+ /** Width and height in points, quiet zone included. */
5
+ size: number;
6
+ /** Dark squares. */
7
+ color?: string;
8
+ /** Light squares and the quiet zone. */
9
+ background?: string;
10
+ }
11
+ /**
12
+ * A QR code drawn with plain Views, so it needs no SVG or canvas package.
13
+ * Each row is drawn as runs of same-colored squares, about 15 Views a row.
14
+ * Medium error correction: a phone camera reads it from a screen easily.
15
+ */
16
+ export declare const QrCodeView: import("react").NamedExoticComponent<QrCodeViewProps>;
17
+ //# sourceMappingURL=QrCodeView.d.ts.map
@@ -0,0 +1,84 @@
1
+ type bit = number;
2
+ type byte = number;
3
+ type int = number;
4
+ export declare class Ecc {
5
+ readonly ordinal: int;
6
+ readonly formatBits: int;
7
+ static readonly LOW: Ecc;
8
+ static readonly MEDIUM: Ecc;
9
+ static readonly QUARTILE: Ecc;
10
+ static readonly HIGH: Ecc;
11
+ private constructor();
12
+ }
13
+ export declare class Mode {
14
+ readonly modeBits: int;
15
+ private readonly numBitsCharCount;
16
+ static readonly NUMERIC: Mode;
17
+ static readonly ALPHANUMERIC: Mode;
18
+ static readonly BYTE: Mode;
19
+ static readonly KANJI: Mode;
20
+ static readonly ECI: Mode;
21
+ private constructor();
22
+ numCharCountBits(ver: int): int;
23
+ }
24
+ export declare class QrCode {
25
+ readonly version: int;
26
+ readonly errorCorrectionLevel: Ecc;
27
+ static encodeText(text: string, ecl: Ecc): QrCode;
28
+ static encodeBinary(data: Readonly<Array<byte>>, ecl: Ecc): QrCode;
29
+ static encodeSegments(segs: Readonly<Array<QrSegment>>, ecl: Ecc, minVersion?: int, maxVersion?: int, mask?: int, boostEcl?: boolean): QrCode;
30
+ readonly size: int;
31
+ readonly mask: int;
32
+ private readonly modules;
33
+ private readonly isFunction;
34
+ constructor(version: int, errorCorrectionLevel: Ecc, dataCodewords: Readonly<Array<byte>>, msk: int);
35
+ getModule(x: int, y: int): boolean;
36
+ private drawFunctionPatterns;
37
+ private drawFormatBits;
38
+ private drawVersion;
39
+ private drawFinderPattern;
40
+ private drawAlignmentPattern;
41
+ private setFunctionModule;
42
+ private addEccAndInterleave;
43
+ private drawCodewords;
44
+ private applyMask;
45
+ private getPenaltyScore;
46
+ private getAlignmentPatternPositions;
47
+ private static getNumRawDataModules;
48
+ private static getNumDataCodewords;
49
+ private static reedSolomonComputeDivisor;
50
+ private static reedSolomonComputeRemainder;
51
+ private static reedSolomonMultiply;
52
+ private finderPenaltyCountPatterns;
53
+ private finderPenaltyTerminateAndCount;
54
+ private finderPenaltyAddHistory;
55
+ static readonly MIN_VERSION: int;
56
+ static readonly MAX_VERSION: int;
57
+ private static readonly PENALTY_N1;
58
+ private static readonly PENALTY_N2;
59
+ private static readonly PENALTY_N3;
60
+ private static readonly PENALTY_N4;
61
+ private static readonly ECC_CODEWORDS_PER_BLOCK;
62
+ private static readonly NUM_ERROR_CORRECTION_BLOCKS;
63
+ }
64
+ export declare class QrSegment {
65
+ readonly mode: Mode;
66
+ readonly numChars: int;
67
+ private readonly bitData;
68
+ static makeBytes(data: Readonly<Array<byte>>): QrSegment;
69
+ static makeNumeric(digits: string): QrSegment;
70
+ static makeAlphanumeric(text: string): QrSegment;
71
+ static makeSegments(text: string): Array<QrSegment>;
72
+ static makeEci(assignVal: int): QrSegment;
73
+ static isNumeric(text: string): boolean;
74
+ static isAlphanumeric(text: string): boolean;
75
+ constructor(mode: Mode, numChars: int, bitData: Array<bit>);
76
+ getData(): Array<bit>;
77
+ static getTotalBits(segs: Readonly<Array<QrSegment>>, version: int): number;
78
+ private static toUtf8ByteArray;
79
+ private static readonly NUMERIC_REGEX;
80
+ private static readonly ALPHANUMERIC_REGEX;
81
+ private static readonly ALPHANUMERIC_CHARSET;
82
+ }
83
+ export {};
84
+ //# sourceMappingURL=qrcodegen.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Auto-generated safe area implementation
3
3
  * Detected: none
4
- * Generated at: 2026-10-03T22:24:40.583Z
4
+ * Generated at: 2026-10-04T00:02:14.838Z
5
5
  *
6
6
  * DO NOT EDIT - This file is generated by scripts/detect-safe-area.js
7
7
  *
@@ -31,6 +31,7 @@ export { useSafeAreaInsets, useFilterManager, usePersistedState, resetPersistedS
31
31
  export { JsModal } from "./JsModal";
32
32
  export type { ModalMode, ModalState } from "./JsModal";
33
33
  export { night, NIGHT_LABEL_TRACKING } from "./ui/night/nightTheme";
34
+ export { QrCodeView, type QrCodeViewProps } from "./ui/qr/QrCodeView";
34
35
  export { NightSectionLabel, NightFootnote, NightCard, NightSeparator, NightRows, NightSwitch, NightChip, NightButton, NightSegmented, NightBadge, } from "./ui/night/primitives";
35
36
  export type { NightButtonVariant, NightTab, NightBadgeTone } from "./ui/night/primitives";
36
37
  export { gameUIColors, buoyColors } from "./ui/gameUI/constants/gameUIColors";
@@ -53,4 +54,5 @@ export type { FeatureGateProps, ProFeatureBannerProps, UpgradeModalProps, Licens
53
54
  export { getAccountAccess, hasAccountAccess, assertAccountAccess, subscribeAccountAccess, getUseAccountAccess, retryAccountAccess, isProNow } from "./license/licenseModule";
54
55
  export { guardToolAdapter } from "./sync/toolActionRegistry";
55
56
  export { AccountSetup } from "./license/AccountSetup";
57
+ export { AccountSetupButton } from "./license/AccountSetupContent";
56
58
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ export interface QrCodeViewProps {
2
+ /** What the code holds, e.g. a URL. */
3
+ value: string;
4
+ /** Width and height in points, quiet zone included. */
5
+ size: number;
6
+ /** Dark squares. */
7
+ color?: string;
8
+ /** Light squares and the quiet zone. */
9
+ background?: string;
10
+ }
11
+ /**
12
+ * A QR code drawn with plain Views, so it needs no SVG or canvas package.
13
+ * Each row is drawn as runs of same-colored squares, about 15 Views a row.
14
+ * Medium error correction: a phone camera reads it from a screen easily.
15
+ */
16
+ export declare const QrCodeView: import("react").NamedExoticComponent<QrCodeViewProps>;
17
+ //# sourceMappingURL=QrCodeView.d.ts.map
@@ -0,0 +1,84 @@
1
+ type bit = number;
2
+ type byte = number;
3
+ type int = number;
4
+ export declare class Ecc {
5
+ readonly ordinal: int;
6
+ readonly formatBits: int;
7
+ static readonly LOW: Ecc;
8
+ static readonly MEDIUM: Ecc;
9
+ static readonly QUARTILE: Ecc;
10
+ static readonly HIGH: Ecc;
11
+ private constructor();
12
+ }
13
+ export declare class Mode {
14
+ readonly modeBits: int;
15
+ private readonly numBitsCharCount;
16
+ static readonly NUMERIC: Mode;
17
+ static readonly ALPHANUMERIC: Mode;
18
+ static readonly BYTE: Mode;
19
+ static readonly KANJI: Mode;
20
+ static readonly ECI: Mode;
21
+ private constructor();
22
+ numCharCountBits(ver: int): int;
23
+ }
24
+ export declare class QrCode {
25
+ readonly version: int;
26
+ readonly errorCorrectionLevel: Ecc;
27
+ static encodeText(text: string, ecl: Ecc): QrCode;
28
+ static encodeBinary(data: Readonly<Array<byte>>, ecl: Ecc): QrCode;
29
+ static encodeSegments(segs: Readonly<Array<QrSegment>>, ecl: Ecc, minVersion?: int, maxVersion?: int, mask?: int, boostEcl?: boolean): QrCode;
30
+ readonly size: int;
31
+ readonly mask: int;
32
+ private readonly modules;
33
+ private readonly isFunction;
34
+ constructor(version: int, errorCorrectionLevel: Ecc, dataCodewords: Readonly<Array<byte>>, msk: int);
35
+ getModule(x: int, y: int): boolean;
36
+ private drawFunctionPatterns;
37
+ private drawFormatBits;
38
+ private drawVersion;
39
+ private drawFinderPattern;
40
+ private drawAlignmentPattern;
41
+ private setFunctionModule;
42
+ private addEccAndInterleave;
43
+ private drawCodewords;
44
+ private applyMask;
45
+ private getPenaltyScore;
46
+ private getAlignmentPatternPositions;
47
+ private static getNumRawDataModules;
48
+ private static getNumDataCodewords;
49
+ private static reedSolomonComputeDivisor;
50
+ private static reedSolomonComputeRemainder;
51
+ private static reedSolomonMultiply;
52
+ private finderPenaltyCountPatterns;
53
+ private finderPenaltyTerminateAndCount;
54
+ private finderPenaltyAddHistory;
55
+ static readonly MIN_VERSION: int;
56
+ static readonly MAX_VERSION: int;
57
+ private static readonly PENALTY_N1;
58
+ private static readonly PENALTY_N2;
59
+ private static readonly PENALTY_N3;
60
+ private static readonly PENALTY_N4;
61
+ private static readonly ECC_CODEWORDS_PER_BLOCK;
62
+ private static readonly NUM_ERROR_CORRECTION_BLOCKS;
63
+ }
64
+ export declare class QrSegment {
65
+ readonly mode: Mode;
66
+ readonly numChars: int;
67
+ private readonly bitData;
68
+ static makeBytes(data: Readonly<Array<byte>>): QrSegment;
69
+ static makeNumeric(digits: string): QrSegment;
70
+ static makeAlphanumeric(text: string): QrSegment;
71
+ static makeSegments(text: string): Array<QrSegment>;
72
+ static makeEci(assignVal: int): QrSegment;
73
+ static isNumeric(text: string): boolean;
74
+ static isAlphanumeric(text: string): boolean;
75
+ constructor(mode: Mode, numChars: int, bitData: Array<bit>);
76
+ getData(): Array<bit>;
77
+ static getTotalBits(segs: Readonly<Array<QrSegment>>, version: int): number;
78
+ private static toUtf8ByteArray;
79
+ private static readonly NUMERIC_REGEX;
80
+ private static readonly ALPHANUMERIC_REGEX;
81
+ private static readonly ALPHANUMERIC_CHARSET;
82
+ }
83
+ export {};
84
+ //# sourceMappingURL=qrcodegen.d.ts.map
package/lib/web/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- "use client";import{a as As,b as Ls,c as Rs,d as Ps,e as $s,f as Ms,g as Bs,h as Ds,i as Ns}from"./chunks/chunk-JYM7MCKQ.mjs";import{a as zs,b as Ws,c as js,d as Fs,e as Hs,f as Us,g as Vs,h as Gs}from"./chunks/chunk-T7RZZG4A.mjs";import{$ as Ys,A as Js,B as qs,C as Ks,D as Xs,E as Qs,F as Zs,G as er,J as tr,K as ar,L as sr,M as rr,N as nr,O as or,P as ir,Q as lr,R as cr,S as ur,Z as dr,_ as hr,a as fa,b as gr,c as pr,d as Le,e as fr,f as br,g as ba,h as mr,i as yr,j as Sr,k as vr,l as Cr,m as Ct,n as wr,o as Tr,p as xr,q as kr,r as Ir,s as _r,t as Or,u as Er,v as Ar,w as Lr,x as Rr,y as Pr,z as $r}from"./chunks/chunk-T6KN54NS.mjs";import"./chunks/chunk-LZ7FZZ7R.mjs";import{a as Mr,d as Br,f as wt}from"./chunks/chunk-53J2FMUD.mjs";import{$ as Dr,$a as Nr,$b as zr,A as ma,Aa as Wr,Ab as jr,Ac as Fr,B as Hr,Ba as Ur,Bb as Vr,C as Gr,Ca as Yr,Cb as Jr,D as qr,Da as Kr,Db as Xr,E as Qr,Ea as Zr,Eb as en,F as tn,Fa as an,Fb as sn,G as rn,Ga as nn,Gb as on,H as ln,Ha as cn,Hb as un,I as dn,Ia as hn,Ib as gn,J as pn,Ja as fn,Jb as bn,K as mn,Ka as yn,Kb as Sn,L as vn,La as Cn,Lb as wn,M as Tn,Ma as xn,Mb as kn,N as In,Na as _n,Nb as On,O as En,Oa as An,Ob as Ln,P as Rn,Pa as Pn,Pb as $n,Q as Mn,Qa as Bn,Qb as Dn,R as Nn,Ra as zn,Rb as Wn,S as jn,Sa as Fn,Sb as Hn,T as Un,Ta as Vn,Tb as Gn,U as Yn,Ua as Jn,Ub as qn,V as Kn,Va as Xn,Vb as Qn,W as Zn,Wa as eo,Wb as to,X as ao,Xa as so,Xb as ro,Y as no,Ya as oo,Yb as io,Z as lo,Za as co,Zb as uo,_ as ho,_a as go,_b as po,a as fo,aa as bo,ab as mo,ac as yo,b as So,ba as vo,bb as Co,bc as wo,c as To,ca as xo,cb as ko,cc as Io,d as _o,da as Oo,db as Eo,dc as Ao,e as Lo,ea as Ro,eb as Po,ec as $o,f as Mo,fa as Bo,fb as Do,fc as No,g as zo,ga as Wo,gb as jo,gc as Fo,h as Ho,ha as Uo,hb as Vo,hc as Go,i as ya,ia as Yo,ib as Jo,ic as qo,j as Ko,ja as Xo,jb as Qo,jc as Zo,k as ei,ka as ti,kb as ai,kc as si,l as ri,la as ni,lb as oi,lc as ii,m as li,ma as ci,mb as ui,mc as di,n as hi,na as gi,nb as pi,nc as fi,o as bi,oa as mi,ob as yi,oc as Si,p as vi,pa as Ci,pb as wi,pc as Ti,q as xi,qa as ki,qb as Ii,qc as _i,r as Oi,ra as Ei,rb as Ai,rc as Li,s as Ri,sa as Pi,sb as $i,sc as Tt,t as Mi,ta as Bi,tb as Di,tc as Ni,u as zi,ua as Wi,ub as ji,uc as Fi,v as Hi,va as Ui,vb as Vi,vc as Gi,w as oe,wa as Yi,wb as Sa,wc as Ji,x as G,xa as qi,xb as Ki,xc as va,y as ve,ya as Xi,yb as Qi,yc as Zi,z as Re,za as el,zb as tl,zc as al}from"./chunks/chunk-3S2CBY6A.mjs";import{a as sl}from"./chunks/chunk-OPTY6SMO.mjs";import{a as rl,b as nl,c as ol,d as il,e as ll,f as cl,g as ul,h as dl,i as hl,j as gl,k as pl,l as fl,m as bl,n as ml,o as yl,p as Sl}from"./chunks/chunk-XYUAUO57.mjs";import{a as u,b as Ca}from"./chunks/chunk-GF5C5DVX.mjs";import{a as vl,b as Cl}from"./chunks/chunk-T3WLUEET.mjs";import{a as wl,b as Tl,c as xl,d as kl,e as Il,f as _l,g as Ol,h as El,i as Al,j as Ll,k as Rl,l as Pl}from"./chunks/chunk-T2SPCEHP.mjs";import{$ as $l,$a as Ml,$b as Bl,$c as Dl,Aa as Nl,Ab as zl,Ac as Wl,B as jl,Ba as Fl,Bb as Hl,Bc as Ul,C as Vl,Ca as Gl,Cb as Yl,Cc as Jl,D as ql,Da as Kl,Db as Xl,Dc as Ql,Ea as Zl,Eb as ec,Ec as tc,F as ac,Fa as sc,Fb as rc,Fc as nc,Ga as oc,Gb as ic,Gc as lc,Ha as cc,Hb as uc,Hc as dc,I as hc,Ib as gc,Ic as xt,Ja as pc,Jb as fc,Jc as bc,K as mc,Ka as yc,Kb as Sc,Kc as vc,La as Cc,Lb as wc,Lc as Tc,Ma as xc,Mb as kc,Mc as Ic,Na as _c,Nb as Oc,Nc as Ec,O as Ac,Oa as Lc,Ob as Rc,Oc as Pc,P as $c,Pa as Mc,Pb as Bc,Pc as Dc,Q as Nc,Qa as zc,Qb as Wc,Qc as jc,R as Fc,Ra as Hc,Rb as Uc,Rc as Vc,S as Gc,Sa as Yc,Sb as Jc,Sc as qc,T as Kc,Ta as Xc,Tb as Qc,Tc as Zc,U as eu,Ua as tu,Ub as au,Uc as su,V as ru,Va as nu,Vb as ou,Vc as iu,W as lu,Wa as cu,Wb as wa,Wc as uu,X as du,Xa as hu,Xb as gu,Xc as pu,Y as fu,Ya as bu,Yb as mu,Yc as yu,Z as Su,Za as vu,Zb as Cu,Zc as wu,_ as Tu,_a as xu,_b as ku,_c as Iu,a as _u,aa as Ou,ab as Eu,ac as Au,ad as Lu,b as Ru,ba as Pu,bb as $u,bc as Ta,bd as Mu,c as Bu,ca as Du,cb as Nu,cc as zu,cd as Wu,d as ju,da as Fu,db as Hu,dc as Uu,dd as Vu,e as Gu,ea as Yu,eb as Ju,ec as qu,ed as Ku,f as Xu,fa as Qu,fb as Zu,fc as xa,fd as ed,g as td,ga as ad,gb as sd,gc as rd,gd as nd,h as od,ha as id,hb as ld,hc as cd,hd as ud,i as dd,ia as hd,ib as gd,ic as pd,id as fd,j as bd,ja as md,jb as yd,jc as Sd,jd as vd,k as Cd,ka as wd,kb as Td,kc as xd,kd,l as Id,la as _d,lb as Od,lc as Ed,ld as Ad,m as Ld,ma as Rd,mb as Pd,mc as $d,md as Md,n as Bd,na as Dd,nb as Nd,nc as zd,nd as Wd,o as jd,oa as Fd,ob as Hd,oc as Ud,od as Vd,p as Gd,pa as Yd,pb as Jd,pc as qd,pd as Kd,q as Xd,qa as Qd,qb as Zd,qc as eh,qd as th,r as ah,ra as sh,rb as rh,rc as nh,rd as oh,s as ih,sa as lh,sb as ch,sc as uh,sd as dh,t as hh,ta as gh,tb as ph,tc as fh,td as bh,u as mh,ua as yh,ub as Sh,uc as vh,ud as Ch,va as wh,vb as Th,vc as xh,wa as kh,wb as Ih,wc as _h,xa as Oh,xb as Eh,xc as Ah,ya as Lh,yb as Rh,yc as Ph,za as $h,zb as Mh,zc as Bh}from"./chunks/chunk-7YVWZ4ZK.mjs";import{a as Xe,d as C,e as Dh,f as U,g as Nh}from"./chunks/chunk-CE5U3CSQ.mjs";import{a as zh,b as Wh,c as jh,d as Fh,e as Hh}from"./chunks/chunk-46TKOKMV.mjs";import{a as be,b as Uh,c as Vh,d as N,e as Gh,f as Yh}from"./chunks/chunk-DEEKIG2L.mjs";import{H as Jh,J as Pe,a as x,b as M,d as Qe,g as qh,h as Kh,j as Xh,r as kt}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";var Qh=class extends fa{constructor(e){super();this.events=[];this.arrayListeners=new Set;this.captureSuppressed=false;this.clearListeners=new Set;this.maxEvents=e.maxEvents??500,this.storeName=e.storeName,Promise.resolve().then(()=>{let t=()=>{oe().status==="locked"?(this.stopCapturing(),this.events=[],this.notifyArrayListeners()):this.getTotalSubscriberCount()>0&&!this.captureSuppressed&&!this.isCapturing()&&this.startCapturing()};Re(t),t()})}onSubscribe(){this.getTotalSubscriberCount()===1&&!this.captureSuppressed&&oe().status!=="locked"&&this.startCapturing(),Le(this.storeName)}onUnsubscribe(){this.getTotalSubscriberCount()===0&&this.stopCapturing(),Le(this.storeName)}getTotalSubscriberCount(){return this.listeners.size+this.arrayListeners.size}subscribeToEvents(e){let t=this.getTotalSubscriberCount()===0;return this.arrayListeners.add(e),t&&!this.captureSuppressed&&oe().status!=="locked"&&this.startCapturing(),Le(this.storeName),e(this.getEvents()),()=>{this.arrayListeners.delete(e),this.getTotalSubscriberCount()===0&&this.stopCapturing(),Le(this.storeName)}}onEvent(e){return this.subscribe(e)}addEvent(e){oe().status!=="locked"&&(this.events=[e,...this.events].slice(0,this.maxEvents),G()&&this.notify(e),this.notifyArrayListeners())}notifyArrayListeners(){let e=this.getEvents();this.arrayListeners.forEach(t=>{try{t(e)}catch{}})}getEvents(){return G()?this.events:[]}getEventCount(){return G()?this.events.length:0}clearEvents(){this.events=[],this.notifyArrayListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true,this.isCapturing()&&this.stopCapturing()}replaceEvents(e){this.events=this.dedupeById(e).slice(0,this.maxEvents),this.notifyArrayListeners()}dedupeById(e){let t=new Set,a=[];for(let s of e){let r=s?.id;if(r==null){a.push(s);continue}t.has(r)||(t.add(r),a.push(s))}return a}setMaxEvents(e){this.maxEvents=e,this.events.length>e&&(this.events=this.events.slice(0,e),this.notifyArrayListeners())}getSubscriberCounts(){return{eventCallbacks:this.listeners.size,arrayListeners:this.arrayListeners.size,total:this.getTotalSubscriberCount()}}};import{useEffect as Zh,useMemo as eg,useState as tg}from"react";var ag=[{value:"buoy.gg/api/license",mode:"contains"},{value:"api.keygen.sh",mode:"contains"}];function ka(e,t){let a=e.toLowerCase(),s=t.value.toLowerCase();if(t.mode==="contains")return a.includes(s);try{let r=new URL(e);return s.startsWith("/")?r.pathname.toLowerCase()===s:s.startsWith("http://")||s.startsWith("https://")?`${r.origin}${r.pathname}`.toLowerCase()===s:r.host.toLowerCase()===s}catch{return a===s}}function sg(e,t){return!e||t.length===0?false:t.some(a=>ka(e,a))}var Ia=ag;function _a(e){if(!Array.isArray(e))return[];let t=[];for(let a of e)if(typeof a=="string"&&a.trim())t.push({value:a,mode:"contains"});else if(a&&typeof a=="object"&&typeof a.value=="string"){let s=a;t.push({value:s.value,mode:s.mode==="exact"?"exact":"contains"})}return t}function Oa(e){let t=[...e];for(let a of Ia)t.some(s=>s.value===a.value)||t.push({...a});return t}var rg=class{constructor(){this.patterns=Oa(Ia.map(e=>({...e})));this.teamPatterns=[];this.merged=this.patterns;this.listeners=new Set;this.loaded=false;this.loadPromise=null;this.dirty=false}getPatterns(){return this.merged}isTeamOnly(e){return!this.patterns.some(t=>t.value===e)&&this.teamPatterns.some(t=>t.value===e)}setTeamPatterns(e){this.teamPatterns=_a(e),this.remerge(),this.emit()}reload(){return this.loaded=false,this.loadPromise=null,this.dirty=false,this.ensureLoaded()}remerge(){let e=this.teamPatterns.filter(t=>!this.patterns.some(a=>a.value===t.value));this.merged=e.length>0?[...this.patterns,...e]:this.patterns}subscribe(e){return this.listeners.add(e),this.ensureLoaded(),()=>{this.listeners.delete(e)}}emit(){this.listeners.forEach(e=>e())}ensureLoaded(){return this.loaded?Promise.resolve():this.loadPromise?this.loadPromise:(this.loadPromise=(async()=>{try{let e=await N.getItem(be.network.ignoredDomains());if(e&&!this.dirty){let t=Oa(_a(JSON.parse(e)));this.patterns=t,this.remerge()}}catch{}finally{this.loaded=true,this.emit()}})(),this.loadPromise)}persist(){N.setItem(be.network.ignoredDomains(),JSON.stringify(this.patterns)).catch(()=>{})}commit(e){this.dirty=true,this.patterns=e,this.remerge(),this.emit(),this.persist()}add(e){let t=e.value.trim();t&&(this.patterns.some(a=>a.value===t)||this.commit([...this.patterns,{value:t,mode:e.mode}]))}remove(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.filter(t=>t.value!==e))}toggle(e){let t=e.trim();t&&this.commit(this.patterns.some(a=>a.value===t)?this.patterns.filter(a=>a.value!==t):[...this.patterns,{value:t,mode:"contains"}])}toggleMode(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.map(t=>t.value===e?{...t,mode:t.mode==="contains"?"exact":"contains"}:t))}},q=new rg,ng=e=>q.add(e),og=e=>q.remove(e),ig=e=>q.toggle(e),lg=e=>q.toggleMode(e),cg=e=>q.isTeamOnly(e);function ug(){let[e,t]=tg(()=>q.getPatterns());Zh(()=>q.subscribe(()=>{t(q.getPatterns())}),[]);let a=eg(()=>new Set(e.map(s=>s.value)),[e]);return{patterns:e,values:a,add:ng,remove:og,toggle:ig,toggleMode:lg,isTeamOnly:cg}}import{useSyncExternalStore as dg}from"react";var Ze={},It=new Map,_t=new Set,$e=[];function hg(e){if(!e)return $e;try{let t=JSON.parse(e);if(!Array.isArray(t))return $e;let a=t.map(s=>typeof s=="string"?s:s&&typeof s.value=="string"?s.value:"").map(s=>s.trim()).filter(Boolean);return a.length?[...new Set(a)]:$e}catch{return $e}}var et={set(e){Object.keys({...Ze,...e}).some(t=>Ze[t]!==e[t])&&(Ze=e,It.clear(),_t.forEach(t=>t()))},getList(e){let t=It.get(e);return t||(t=hg(Ze[e]),It.set(e,t)),t},subscribe(e){return _t.add(e),()=>_t.delete(e)}};function gg(e){return dg(et.subscribe,()=>et.getList(e),()=>$e)}function pg(e){typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):setTimeout(e,0)}function fg(e){let t=e.id,a=e.order??"append",s=e.coalesce??"sync",r=e.flushMinIntervalMs??150,n=e.max,o=[],i=false,l=e.firstId??1,h=0,b=false,S=[],f=false;function m(){f||(f=true,Re(()=>{oe().status==="locked"&&(o=[]),ne()}))}let w=new Set,R=new Set;function V(){for(let y of w)try{y()}catch{}}function ne(){if(s==="sync"){V();return}b||(b=true,pg(()=>{b=false,V()}))}function D(y){return y.length<=n?y:a==="append"?y.slice(y.length-n):y.slice(0,n)}return{id:t,subscribe(y){return m(),w.add(y),()=>{w.delete(y)}},getSnapshot(){return m(),G()?o:S},size(){return G()?o.length:0},add(y){m(),!(i||oe().status==="locked")&&(a==="append"?o=o.length>=n?[...o.slice(o.length-n+1),y]:[...o,y]:o=o.length>=n?[y,...o.slice(0,n-1)]:[y,...o],ne())},set(y){m(),G()&&(o=D(y),ne())},update(y){m(),oe().status!=="locked"&&(o=D(y(o)),ne())},clear(){for(let y of R)try{y()}catch{}o.length!==0&&(o=[],ne())},onClear(y){return R.add(y),()=>{R.delete(y)}},notify(){ne()},flushSync(y=false){let Z=Date.now();if(!(!y&&Z-h<r)){h=Z;try{let L=globalThis.__buoyFlushToolSync;if(!L)return;for(let He of L)He(t)}catch{}}},setPaused(y){i=y},isPaused(){return i},setMax(y){n=y;let Z=D(o);Z!==o&&(o=Z,ne())},getMax(){return n},allocId(){return l++},bumpIdAbove(y){y+1>l&&(l=y+1)},listenerCount(){return w.size}}}var bg=class{constructor(e={}){this.items=[];this.itemListeners=new Set;this.clearListeners=new Set;this.idCounter=0;this.enabled=true;this.captureSuppressed=false;this.max=e.max??200}canRecord(){return this.enabled&&!this.captureSuppressed}nextId(){return`${Date.now()}-${++this.idCounter}`}push(e){this.items=[e,...this.items].slice(0,this.max)}record(e){this.push(e),this.notifyListeners()}setItems(e){this.items=e.slice(0,this.max),this.notifyListeners()}getAll(){return[...this.items]}getById(e){return this.items.find(t=>t.id===e)}get size(){return this.items.length}clear(){this.items=[],this.notifyListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true}isCaptureSuppressed(){return this.captureSuppressed}replaceAll(e){return this.enabled?(this.setItems(e),true):false}hydrateById(e,t){let a=this.items.findIndex(s=>s.id===e);a!==-1&&(this.items=[...this.items.slice(0,a),{...this.items[a],...t},...this.items.slice(a+1)],this.notifyListeners())}setEnabled(e){this.enabled=e}getEnabled(){return this.enabled}setMax(e){this.max=e,this.items.length>e&&(this.items=this.items.slice(0,e),this.notifyListeners())}getMax(){return this.max}subscribe(e){return this.itemListeners.add(e),()=>{this.itemListeners.delete(e)}}notifyListeners(){let e=this.getAll();this.itemListeners.forEach(t=>t(e))}get listenerCount(){return this.itemListeners.size}};var me=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),mg=["id","lineId","key","uuid","_id","slug","name"];function Ot(e){if(!e.length||!e.every(me))return;let t=e[0];for(let a of mg){if(!(a in t))continue;let s=e.map(r=>r[a]);if(s.every(r=>typeof r=="string"||typeof r=="number")&&new Set(s.map(String)).size===s.length)return a}}function yg(e,t,a,s){let r=s[t];return typeof r=="string"||typeof r=="number"?String(r)!==a?{ok:false,error:`The new item is addressed as \`${a}\` but carries \`${t}\`: ${JSON.stringify(r)}. Use the same value for both \u2014 address it by the id it carries.`}:{ok:true,value:r}:e.every(n=>typeof n[t]=="number")&&a.trim()!==""&&String(Number(a))===a?{ok:true,value:Number(a)}:{ok:true,value:a}}function Et(e,t,a="",s=[]){if(Array.isArray(e)&&me(t)){let r=Ot(e);if(!r)return{patch:t,notes:s};let n=new Map(e.map(b=>[String(b[r]),b])),o=e.slice(),i=0,l=0,h=0;for(let[b,S]of Object.entries(t)){let f=o.findIndex(m=>String(m[r])===b);if(S===null){if(f===-1)return{patch:t,notes:s};o.splice(f,1),i++}else if(f===-1){if(!me(S))return{patch:t,notes:s};let m=yg(e,r,b,S);if(!m.ok)return{patch:t,notes:s,error:m.error};o.push({...S,[r]:m.value}),h++}else{let m=Et(n.get(b),S,`${a}[${b}]`,s);if(m.error)return{patch:t,notes:s,error:m.error};let w=o[f];o[f]=me(w)&&me(m.patch)?{...w,...m.patch}:m.patch,l++}}return s.push(`${a||"(root)"}: addressed by \`${r}\` \u2014 ${l} changed, ${h} added, ${i} removed, ${o.length} item(s) remain`),{patch:o,notes:s}}if(me(e)&&me(t)){let r={};for(let[n,o]of Object.entries(t)){let i=a?`${a}.${n}`:n;if(!(n in e)){r[n]=o;continue}let l=Et(e[n],o,i,s);if(l.error)return{patch:t,notes:s,error:l.error};r[n]=l.patch}return{patch:r,notes:s}}return{patch:t,notes:s}}var tt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Me(e,t=0){if(e===null)return"null";if(Array.isArray(e)){if(!e.length)return"unknown[]";if(t>=3)return"\u2026[]";let s=Me(e[0],t+1);return s.includes(" ")||s.endsWith("]")?`(${s})[]`:`${s}[]`}if(tt(e)){if(t>=3)return"{\u2026}";let s=Object.keys(e),r=s.slice(0,24),n=r.map(i=>`${i}: ${Me(e[i],t+1)}`).join(", "),o=s.length>r.length?`, +${s.length-r.length} more`:"";return`{${n}${o}}`}let a=typeof e;return a==="undefined"?"undefined":a==="function"?"function":a}function Ce(e,t="",a=[],s=0,r={visited:0}){if(s>3||a.length>=40||r.visited>=600)return a;if(Array.isArray(e)){let n=e[0];if(a.push({path:t||"(root)",length:e.length,...e.length?{item:Me(n)}:{}}),e.length&&tt(n))for(let[o,i]of Object.entries(n)){if(++r.visited>=600)break;Ce(i,t?`${t}[].${o}`:`[].${o}`,a,s+1,r)}return a}if(tt(e))for(let[n,o]of Object.entries(e)){if(++r.visited>=600)break;Ce(o,t?`${t}.${n}`:n,a,s+1,r)}return a}function Sg(e){let t={visited:0};return Ce(e,"",[],0,t).length>=40||t.visited>=600}function vg(e){return Ce(e).filter(t=>t.item===void 0).map(t=>t.path)}function Cg(e){if(e===void 0)return;let t=Ce(e),a=Me(e);if(!(!t.length&&!tt(e)&&!Array.isArray(e)))return t.length?{shape:a,lists:t}:{shape:a}}var Q=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function wg(e,t,a=2e3){let s=[{node:e,path:""}],r=0;for(;s.length&&r<a;){let{node:n,path:o}=s.shift();if(r++,Array.isArray(n))n.slice(0,20).forEach((i,l)=>s.push({node:i,path:`${o}[${l}]`}));else if(Q(n))for(let[i,l]of Object.entries(n)){let h=o?`${o}.${i}`:i;if(i===t)return h;(Q(l)||Array.isArray(l))&&s.push({node:l,path:h})}}}function Ea(e,t,a,s,r){let n=wg(e,r??a),o=s.slice(0,12).join(", ")||"(no fields)";return n?`No field "${a}" at "${t}" \u2014 did you mean path "${n}"? "${t}" has: ${o}.`:`No field "${a}" at "${t}". It has: ${o}.`}function Aa(e,t){let a=e;for(let s of t.split(".")){if(!Q(a))return;a=a[s]}return a}function At(e){if(!e.trim())return;let t=[],a=0;for(;a<e.length;){if(e[a]==="."){a++;continue}if(e[a]==="["){let n=e.indexOf("]",a);if(n===-1)return;let o=e.slice(a+1,n);if(/^\d+$/.test(o))t.push({kind:"index",index:Number(o)});else{let i=o.indexOf("=");if(i<=0)return;t.push({kind:"match",field:o.slice(0,i).trim(),value:o.slice(i+1).trim()})}a=n+1;continue}let s=a;for(;s<e.length&&e[s]!=="."&&e[s]!=="[";)s++;let r=e.slice(a,s);if(!r)return;t.push({kind:"key",key:r}),a=s}return t.length?t:void 0}function Tg(e,t){let a=At(t);if(!a)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};let s=e,r=[];for(let n of a){if(s==null)return{ok:false,error:`"${r.join(".")||"(root)"}" is ${s===null?"null":"not set"}, so there is nothing at "${t}".`};if(n.kind==="key"){if(!Q(s))return{ok:false,error:`"${r.join(".")||"(root)"}" is not an object, so it has no field "${n.key}".`};if(!(n.key in s)){let o=a[a.length-1];return{ok:false,error:Ea(e,r.join(".")||"(root)",n.key,Object.keys(s),o?.kind==="key"?o.key:void 0)}}s=s[n.key],r.push(n.key)}else if(n.kind==="index"){if(!Array.isArray(s))return{ok:false,error:`"${r.join(".")||"(root)"}" is not a list, so [${n.index}] means nothing.`};s=s[n.index],r.push(`[${n.index}]`)}else{if(!Array.isArray(s))return{ok:false,error:`"${r.join(".")||"(root)"}" is not a list, so [${n.field}=${n.value}] means nothing.`};let o=s.find(i=>Q(i)&&String(Aa(i,n.field))===n.value);if(o===void 0)return{ok:false,error:`No item with ${n.field}="${n.value}" in "${r.join(".")||"(root)"}".`};s=o,r.push(`[${n.field}=${n.value}]`)}}return{ok:true,value:s}}function xg(e,t,a){let s=At(t);if(!s)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};if(s[0]?.kind!=="key")return{ok:false,error:`A path must start with a field name, not a list index \u2014 "${t}" does not say which list.`};let r=(o,i)=>{if(i>=s.length)return{ok:true,patch:a};let l=s[i];if(l.kind==="key"){if(Q(o)&&!(l.key in o)&&i+1<s.length){let V=s[s.length-1];return{ok:false,error:Ea(e,Be(s,i),l.key,Object.keys(o),V?.kind==="key"?V.key:void 0)}}let w=Q(o)?o[l.key]:void 0,R=r(w,i+1);return R.ok?{ok:true,patch:{[l.key]:R.patch}}:R}if(!Array.isArray(o))return{ok:false,error:`"${Be(s,i)}" is not a list, so "${t}" cannot be resolved. Read it first \u2014 \`shape\` on the read says what each field holds.`};let h=l.kind==="index"?l.index:o.findIndex(w=>Q(w)&&String(Aa(w,l.field))===l.value),b=h>=0?o[h]:void 0;if(l.kind==="index"?h<0||h>=o.length:h<0)return{ok:false,error:l.kind==="index"?`"${Be(s,i)}" has ${o.length} item(s), so there is nothing at [${l.index}].`:`No item with ${l.field}="${l.value}" in "${Be(s,i)}".`};if(!Q(b)){if(i<s.length-1)return{ok:false,error:`"${Be(s,i)}[${l.kind==="index"?l.index:`${l.field}=${l.value}`}]" holds ${b===null?"null":typeof b}, not an object, so "${t}" cannot go any deeper. Set the item itself.`};let w=o.slice();return w[h]=a,{ok:true,patch:w}}let S=r(b,i+1);if(!S.ok)return S;let f=Ot(o);if(f)return{ok:true,patch:{[String(b[f])]:S.patch}};let m=o.slice();return m[h]=Q(S.patch)?{...b,...S.patch}:S.patch,{ok:true,patch:m}},n=r(e,0);return n.ok?{ok:true,patch:n.patch}:n}function Be(e,t){return e.slice(0,t).map(a=>a.kind==="key"?a.key:a.kind==="index"?`[${a.index}]`:`[${a.field}=${a.value}]`).join(".").replace(/\.\[/g,"[")||"(root)"}var ie=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function De(e){return Array.isArray(e)?"array":e===null?"null":typeof e=="object"?"object":typeof e}var La=["string","number","boolean"];function Ra(e,t,a=2e3){let s=[{node:e,path:""}],r=0;for(;s.length&&r<a;){let{node:n,path:o}=s.shift();if(r++,Array.isArray(n))n.slice(0,20).forEach((i,l)=>s.push({node:i,path:`${o}[${l}]`}));else if(ie(n))for(let[i,l]of Object.entries(n)){let h=o?`${o}.${i}`:i;if(i===t&&o)return h;(ie(l)||Array.isArray(l))&&s.push({node:l,path:h})}}}function Lt(e,t,a={},s=e,r="",n=[]){let o=a.noun??"data",i=r||"(root)";if(Array.isArray(t)){if(!Array.isArray(e))return n.push({path:i,kind:"type-change",detail:`${De(e)} \u2192 array`}),n;let f=e.length?e[0]:void 0;return f!==void 0&&(ie(f)||Array.isArray(f))&&t.forEach((m,w)=>{let R=`${r}[${w}]`;if(ie(f)&&ie(m))for(let V of Object.keys(f))V in m||n.push({path:`${R}.${V}`,kind:"missing-key",detail:`list items need \`${V}\` \u2014 the items already in the list have it`});Lt(f,m,a,s,R,n)}),n}if(ie(t)){if(!ie(e))return n.push({path:i,kind:"type-change",detail:`${De(e)} \u2192 object`}),n;for(let[f,m]of Object.entries(t)){let w=r?`${r}.${f}`:f;if(f in e)Lt(e[f],m,a,s,w,n);else{let R=Ra(s,f);n.push({path:w,kind:"add-key",detail:R?`no such field here \u2014 did you mean \`${R}\`?`:`no field named \`${f}\` exists in this ${o}`,...R?{movedTo:R}:{}})}}return n}let l=De(e),h=De(t),b=l==="null"&&La.includes(h),S=h==="null"&&La.includes(l);return l!==h&&!b&&!S&&n.push({path:i,kind:"type-change",detail:`${l} \u2192 ${h}`}),n}function kg(e,t){if(!t.length||!t.every(s=>s.kind==="add-key"&&s.movedTo))return;let a={};for(let s of t){let r=Ig(e,s.path);if(r===void 0||s.movedTo.includes("["))return;let n=a,o=s.movedTo.split(".");o.slice(0,-1).forEach(i=>{n[i]??(n[i]={}),n=n[i]}),n[o[o.length-1]]=r}return a}function Ig(e,t){let a=e;for(let s of t.split(".")){if(!ie(a))return;a=a[s]}return a}function _g(e,t,a){let s=e.slice(0,6).map(n=>`\`${n.path}\`: ${n.detail}`).join("; "),r=e.length>6?`; +${e.length-6} more`:"";return`Refused: this isn't a same-type edit of existing fields (the rule the React Query devtools enforces). ${s}${r}. You can only change the VALUE of a field that already exists, to the same type \u2014 you can't add fields, change a field's type, or null a list/object the screen renders. Clearing a scalar to null is fine. Send just the field(s) you're changing, nested to match the current shape of this ${t}. Use force:true only to deliberately break that.`+(a?` This is the same edit at the right depth \u2014 send it as the patch: ${JSON.stringify(a)}`:"")}function at(e,t){let a=0,s=false,r=false,n=[e],o=new Set;for(;n.length>0;){if(a>t)return{bytes:a,sawRepeat:s,sawBigInt:r};let i=n.pop();if(i==null)a+=4;else if(typeof i=="string")a+=i.length+2;else if(typeof i=="number")a+=8;else if(typeof i=="boolean")a+=5;else if(typeof i=="object"){if(o.has(i)){s=true;continue}if(o.add(i),Array.isArray(i)){a+=2+i.length;for(let l=0;l<i.length;l++)n.push(i[l])}else{a+=2;for(let l in i)a+=l.length+4,n.push(i[l])}}else typeof i=="bigint"&&(r=true),a+=4}return{bytes:a,sawRepeat:s,sawBigInt:r}}function Rt(e,t){let a=at(e,t);return a.bytes>t?true:!a.sawRepeat&&!a.sawBigInt?false:!ba(e)}var Pa=16*1024,st=8*1024*1024;function Og(e,t){return Object.freeze({[`__buoy${e}OnDevice`]:true,note:t})}function Eg(e,t){return typeof e=="object"&&e!==null&&e[`__buoy${t}OnDevice`]===true}function $a(e=st){return{__buoyTruncated:true,note:`Exceeds the ${e/1048576}MB detail limit \u2014 inspect it on-device.`}}function Ag(e,t,a=Pa){return e===void 0?e:Rt(e,a)?t:e}function Ma(e,t=st){return Rt(e,t)?$a(t):e}function Lg(e){let t=new WeakMap;return a=>{let s=t.get(a);if(s!==void 0)return s;let r=e(a);return t.set(a,r),r}}function Rg(e,t){let a=[],s=t.baseBytes??16;for(let r=e.length-1;r>=0;r--){let n=t.toWire(e[r]);if(s+n.bytes>t.budget&&a.length>0)break;a.push(n.value),s+=n.bytes}return a.reverse(),a}function Pg(e,t,a){let s=at(e,t);if(s.bytes<=t)return{value:e,bytes:s.bytes};let r=a();return{value:r,bytes:at(r,t).bytes}}function Ba(e){return e??{}}function $g(e,t,a=st){let s=r=>Ma(r,a);return r=>{let{id:n}=Ba(r);if(!n)return{found:false,reason:"missing id"};let o=e(n);return o?{found:true,id:n,...t(o,s)}:{found:false,reason:"unknown id"}}}function Da(e){return e.length===1?e[0]:t=>{let a=e.map(s=>s(t));return()=>{for(let s of a)s()}}}function Mg(e){let t=Array.isArray(e.subscribe)?Da(e.subscribe):e.subscribe;return{version:e.version,getSnapshot:e.getSnapshot,subscribe:t,...e.actions?{actions:e.actions}:{}}}var rt=new Set(["@react_buoy_settings_theme","@react_buoy_settings_preferences","@react_buoy_settings_global","@react_buoy_dev_tools_settings","@react_buoy_settings_tooltip_shown","@react_buoy_modal_hint_acknowledged","@react_buoy_clipboard_hint_acknowledged","@react_buoy_network_filters","@react_buoy_network_preferences","@react_buoy_network_copy_options","@react_buoy_storage_filters","@react_buoy_storage_event_filters","@react_buoy_storage_key_filters","@react_buoy_storage_pinned_keys","@react_buoy_storage_preferences","@react_buoy_storage_diff_viewer_mode","@react_buoy_rq_filters","@react_buoy_rq_preferences","@react_buoy_route_events_event_filters","@react_buoy_route_events_detail_view","@react_buoy_route_events_diff_viewer_mode","@react_buoy_sentry_filters","@react_buoy_sentry_preferences","@react_buoy_highlight_updates_filters","@react_buoy_highlight_updates_settings","@react_buoy_highlight_updates_copy_settings","@react_buoy_events_enabled_sources","@react_buoy_events_copy_settings","@react_buoy_time_machine_diff_viewer_mode","@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),Na=new Set(["@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),za="@react_buoy_settings_sync_meta",Wa="@react_buoy_network_ignored_domains",ja=2e3,le=3e4,Pt=15*6e4,Bg=15e3,$t=new Set;function Dg(e){return $t.add(e),()=>$t.delete(e)}function Ng(e){e.includes(Wa)&&q.reload(),$t.forEach(t=>{try{t(e)}catch{}})}function zg(){return{storage:N,credential:qr,fetch:(e,t)=>fetch(e,t),subscribeWrites:Vh,setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e),onTeam:e=>{q.setTeamPatterns(Wg(e[Wa])),et.set(e)},onApplied:Ng}}function Wg(e){if(!e)return[];try{return JSON.parse(e)}catch{return[]}}var Fa=class{constructor(e={}){this.started=false;this.pending=new Map;this.applying=new Set;this.pushTimer=null;this.pullTimer=null;this.unsubscribe=null;this.refusedToken=null;this.deps={...zg(),...e}}start(){this.started||(this.started=true,this.unsubscribe=this.deps.subscribeWrites((e,t)=>this.onWrite(e,t)),this.pull())}stop(){this.started=false,this.unsubscribe?.(),this.unsubscribe=null,this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pushTimer=this.pullTimer=null}credential(){let e=this.deps.credential();return e&&e.token!==this.refusedToken?e:null}call(e,t,a){return new Promise((s,r)=>{let n=this.deps.setTimer(()=>r(new Error("timeout")),Bg);this.deps.fetch(`${t.origin.replace(/\/$/,"")}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_token:t.token,...a})}).then(o=>{this.deps.clearTimer(n),s(o)},o=>{this.deps.clearTimer(n),r(o)})})}schedulePull(e){this.started&&(this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pullTimer=this.deps.setTimer(()=>{this.pullTimer=null,this.pull()},e))}async readMeta(){try{let e=await this.deps.storage.getItem(za),t=e?JSON.parse(e):{};return t&&typeof t=="object"?t:{}}catch{return{}}}async writeMeta(e){await this.deps.storage.setItem(za,JSON.stringify(e)).catch(()=>{})}async pull(){let e=this.credential();if(!e)return this.schedulePull(le);let t,a;try{let i=await this.call("/api/settings/pull",e,{});t=i.status,a=await i.json().catch(()=>null)}catch{return this.schedulePull(le)}if(t===401||t===403)return this.refusedToken=e.token,this.schedulePull(le);if(t===404)return this.schedulePull(Pt);if(t!==200||!a)return this.schedulePull(le);let s=a.personal??{},r=await this.readMeta(),n=[];for(let[i,l]of Object.entries(s))if(!(!rt.has(i)||this.pending.has(i))&&!(typeof l?.value!="string"||!(l.updatedAt>(r[i]??0)))){this.applying.add(i);try{await this.deps.storage.setItem(i,l.value)}finally{this.applying.delete(i)}r[i]=l.updatedAt,n.push(i)}for(let i of rt){if(i in s||i in r||this.pending.has(i))continue;let l=await this.deps.storage.getItem(i).catch(()=>null);l!==null&&this.pending.set(i,l)}await this.writeMeta(r),n.length>0&&this.deps.onApplied(n);let o={};for(let[i,l]of Object.entries(a.team??{}))Na.has(i)&&typeof l?.value=="string"&&(o[i]=l.value);this.deps.onTeam(o),this.pending.size>0&&this.schedulePush(0),this.schedulePull(Pt)}onWrite(e,t){!this.started||this.applying.has(e)||!rt.has(e)||(this.pending.set(e,t),this.schedulePush(ja))}schedulePush(e){this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pushTimer=this.deps.setTimer(()=>{this.pushTimer=null,this.push()},e)}async push(){if(this.pending.size===0)return;let e=this.credential();if(!e)return this.schedulePush(le);let t=new Map(this.pending),a,s;try{let n=await this.call("/api/settings/push",e,{changes:Object.fromEntries(t)});a=n.status,s=await n.json().catch(()=>null)}catch{return this.schedulePush(le)}if(a===401||a===403)return this.refusedToken=e.token,this.schedulePush(le);if(a===404)return this.schedulePush(Pt);if(a!==200||!s||typeof s.updatedAt!="number")return this.schedulePush(le);let r=await this.readMeta();for(let[n,o]of t)this.pending.get(n)===o&&this.pending.delete(n),r[n]=s.updatedAt;await this.writeMeta(r),this.pending.size>0&&this.schedulePush(ja)}},Ne=null;function jg(e={}){Ne??(Ne=new Fa(e)),Ne.start()}function Fg(){Ne&&Ne.pull()}function Hg(e){return e}function Ug(e,t,a){return s=>{let r=s??{},n=e.props===void 0&&!t?void 0:{...e.props??{},...t?t(r):{}};return{...e,id:r.id||e.id,name:r.name||e.name,description:r.description||e.description,...n!==void 0?{props:n}:{},...a?a(r,e):{}}}}var Mt="__buoyToolActionRegistry";function Bt(){let e=globalThis;return e[Mt]||(e[Mt]=new Set),e[Mt]}function Vg(e){let t=Bt();t.add(e);let a=false,s=()=>{if(a)return;a=true;let n=e(),o=async(i,l,h)=>{if(!(i==="network"&&l==="deleteOverrideRule"||i==="impersonate"&&l==="stopImpersonation"))throw new Error("Unsupported account-lock cleanup operation");if(i==="impersonate")return n[i]?.dispose?.(o);let b=n[i]?.actions?.[l];if(!b)throw new Error(`Cleanup unavailable for ${i}`);return b(h)};for(let i of Object.values(n))try{Promise.resolve(i.dispose?.(o)).catch(l=>console.warn("[Buoy] Tool cleanup failed",l))}catch(l){console.warn("[Buoy] Tool cleanup failed",l)}},r=Re(()=>{G()?a=false:s()});return()=>{r(),t.delete(e),Promise.resolve().then(()=>{t.size===0&&s()})}}function we(){if(!G())return{};let e={};for(let t of Bt())try{Object.assign(e,t())}catch{}return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,Ha(a)]))}function Gg(){return Object.keys(we())}function Yg(){let e={};for(let[t,a]of Object.entries(we()))e[t]=Object.keys(a.actions??{});return e}function Jg(){return Object.entries(we()).filter(([,e])=>typeof e.getSnapshot=="function").map(([e])=>e)}async function qg(e){ve();let t=we()[e];if(!t)throw new Error(`Unknown tool "${e}"`);if(typeof t.getSnapshot!="function")throw new Error(`Tool "${e}" has no snapshot to read`);return await t.getSnapshot()}function Dt(){return G()&&Bt().size>0}async function Kg(e,t,a){ve();let s=we()[e],r=s?.actions?.[t];if(!r)throw new Error(s?`Unknown action "${t}" on tool "${e}"`:`Unknown tool "${e}"`);return await r(a)}async function Xg(e=2e3){if(Dt())return true;let t=Ct()+e;for(;Ct()<t;)if(await new Promise(a=>setTimeout(a,50)),Dt())return true;return false}function Ha(e){let t=a=>(...s)=>{ve();let r=false,n=Re(()=>{G()||(r=true)}),o=()=>{if(r)throw new Error("Buoy account access ended while the operation was pending.");ve()};try{let i=a.apply(e,s);return i&&typeof i.then=="function"?Promise.resolve(i).then(l=>(o(),l)).finally(n):(o(),n(),i)}catch(i){throw n(),i}};return{...e,...e.getSnapshot?{getSnapshot:t(e.getSnapshot)}:{},...e.actions?{actions:Object.fromEntries(Object.entries(e.actions).map(([a,s])=>[a,t(s)]))}:{},...e.subscribe?{subscribe:a=>(ve(),e.subscribe(()=>{G()&&a()}))}:{}}}var Nt="__buoyToolUiBridge";function zt(){let e=globalThis;return e[Nt]||(e[Nt]=new Set),e[Nt]}function Qg(e){let t=zt();return t.add(e),()=>{t.delete(e)}}function Zg(e){for(let t of zt())try{if(t(e))return true}catch{}return false}function ep(){return zt().size>0}var Wt="__buoyToolAttention";function jt(){let e=globalThis;return e[Wt]||(e[Wt]={byTool:new Map,listeners:new Set}),e[Wt]}function tp(e,t){let a=jt(),s=a.byTool.get(e)??null;if(!(s===t||s&&t&&s.kind===t.kind&&s.label===t.label)){t?a.byTool.set(e,t):a.byTool.delete(e);for(let r of a.listeners)try{r()}catch{}}}function ap(e){return jt().byTool.get(e)??null}function sp(e){let t=jt();return t.listeners.add(e),()=>{t.listeners.delete(e)}}import{createContext as rp,useContext as np,useEffect as op}from"react";var Ua=rp(null);function ip(e,t){let a=np(Ua);return op(()=>{if(a)return a(e),()=>a(null)},[a,...t]),a!==null}var Va=256*1024;function lp(e){let t=new Set(e?.excludeKeys??[]),a=e?.includeKeys?new Set(e.includeKeys):null,s=0,r=n=>!t.has(n)&&(!a||a.has(n));return{touch:r,allows(n){return r(n)?true:(s+=1,false)},countExcluded(n){s+=n},get excludedHits(){return s},excludedWarning(n){return s>0?`${s} ${n} excluded by you`:null}}}function cp(){return{ok:true,applied:0,skipped:[],warnings:[]}}function up(e){return{ok:false,applied:0,skipped:[],warnings:[e]}}function dp(e,t){return{ok:false,applied:0,skipped:[{id:e,reason:t}],warnings:[]}}function hp(e,t={}){let{key:a,label:s,oldValue:r,newValue:n,inOld:o,inNew:i}=e;if(!i)return{key:a,label:s,verdict:"removed",oldValue:r};if(!o)return{key:a,label:s,verdict:"added",newValue:n};if((t.equal??Mr)(r,n))return{key:a,label:s,verdict:"unchanged"};let l=t.tooLarge??(h=>Br(h,Va));return l(r)||l(n)?{key:a,label:s,verdict:"too-large",reason:t.tooLargeReason??"value too large to render a diff \u2014 restore still applies it"}:{key:a,label:s,verdict:"changed",oldValue:r,newValue:n}}function gp(e,t){return e.verdict==="unchanged"?e:{...e,verdict:"wont-apply",reason:t}}function pp(e,t){let a=s=>s===void 0?[]:s instanceof Map?Array.from(s.keys()):Object.keys(s);return new Set([...a(e),...a(t)])}function fp(e,t={}){let a=e.toLowerCase();if(t[a])return t[a];for(let[m,w]of Object.entries(t))if(a.includes(m))return w;let s=e.split("").reduce((m,w)=>m+w.charCodeAt(0),0)*137%360,r=.7,n=.6,o=(1-Math.abs(2*n-1))*r,i=o*(1-Math.abs(s/60%2-1)),l=n-o/2,h=0,b=0,S=0;s<60?(h=o,b=i):s<120?(h=i,b=o):s<180?(b=o,S=i):s<240?(b=i,S=o):s<300?(h=i,S=o):(h=o,S=i);let f=m=>Math.round((m+l)*255).toString(16).padStart(2,"0");return`#${f(h)}${f(b)}${f(S)}`}function bp(e,t={}){let a=t.maxLength??40;if(e===void 0)return t.undefinedLabel??"undefined";if(e===null)return"null";try{if(typeof e=="function")return t.functionLabel??"(fn)";if(typeof e=="string")return e.length>a?`"${e.slice(0,a-3)}..."`:`"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";let s=JSON.stringify(e);return s.length>a?`[${e.length} items]`:s}if(typeof e=="object"){let s=Object.keys(e);if(s.length===0)return"{}";let r=JSON.stringify(e);return r.length<=a?r:`{ ${s.length} keys }`}return String(e).slice(0,a)}catch{return"[complex]"}}function mp(e,t){if(e===t)return{summary:"no change",changedKeys:[],changedCount:0};if(typeof e!="object"||typeof t!="object"||e===null||t===null)return{summary:"changed",changedKeys:[],changedCount:0};let a=e,s=t,r=Object.keys(a),n=Object.keys(s),o=n.filter(f=>!r.includes(f)),i=r.filter(f=>!n.includes(f)),l=[];for(let f of r)n.includes(f)&&a[f]!==s[f]&&l.push(f);let h=[...o,...i,...l],b=[];if(o.length>0&&b.push(`+${o.length}`),i.length>0&&b.push(`-${i.length}`),l.length>0&&b.push(`~${l.length}`),b.length===0)return{summary:"nested change",changedKeys:[],changedCount:0};let S=h.length;return{summary:`${b.join(" ")} ${S===1?"key":"keys"}`,changedKeys:h,changedCount:S}}function Ga(e){if(e==null)return"N/A";if(e===0)return"0 B";let t=1024,a=["B","KB","MB","GB","TB"],s=Math.floor(Math.log(e)/Math.log(t));return`${(e/Math.pow(t,s)).toFixed(1)} ${a[s]}`}function yp(e){if(e==null)return"N/A";if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;if(e<36e5){let s=Math.floor(e/6e4),r=Math.floor(e%6e4/1e3);return r>0?`${s}m ${r}s`:`${s}m`}let t=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4);return a>0?`${t}h ${a}m`:`${t}h`}function Sp(e){return e.toLocaleString()}var Ya=5e4;function vp(e,t=Ya){try{let a=JSON.stringify(e);return a.length>t?`[omitted: ${Ga(a.length)} \u2014 too large to copy]`:e}catch{return"[omitted: could not serialize]"}}function Cp(e,t=50,a=20,s=20){if(e.length<=t)return e;let r=e.slice(0,a),n=e.slice(-s);return`${r}...${n}`}function wp(e){if(e>=100&&e<200)return{text:String(e),color:C.info,meaning:"Informational"};if(e>=200&&e<300){let t={200:"OK",201:"Created",202:"Accepted",204:"No Content",206:"Partial Content"};return{text:String(e),color:C.success,meaning:t[e]||"Success"}}if(e>=300&&e<400){let t={301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect"};return{text:String(e),color:C.warning,meaning:t[e]||"Redirect"}}if(e>=400&&e<500){let t={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",408:"Request Timeout",409:"Conflict",410:"Gone",422:"Unprocessable Entity",429:"Too Many Requests"};return{text:String(e),color:C.error,meaning:t[e]||"Client Error"}}if(e>=500){let t={500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};return{text:String(e),color:C.error,meaning:t[e]||"Server Error"}}return{text:String(e),color:C.muted,meaning:"Unknown"}}function Tp(e){return{GET:C.success,POST:C.info,PUT:C.warning,DELETE:C.error,PATCH:C.network,HEAD:C.muted,OPTIONS:C.secondary,CONNECT:C.critical,TRACE:C.env}[e.toUpperCase()]||C.muted}function xp(e){try{let t=new URL(e);return{protocol:t.protocol.replace(":",""),host:t.hostname,port:t.port||void 0,pathname:t.pathname,search:t.search||void 0,hash:t.hash||void 0}}catch{return null}}var ze=[];function Ja(e){ze.unshift(e),ze=ze.slice(0,500)}function kp(){return ze}function Ip(){ze=[]}var Ft=(e=>(e.Debug="debug",e.Info="info",e.Log="log",e.Warn="warn",e.Error="error",e))(Ft||{}),Ht=(e=>(e.Auth="Auth",e.Custom="Custom",e.Debug="Debug",e.Error="Error",e.Generic="Generic",e.HTTPRequest="HTTP Request",e.Navigation="Navigation",e.Replay="Replay",e.State="State",e.System="System",e.Touch="Touch",e.UserAction="User Action",e))(Ht||{});var _p=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,qa=class{constructor(){this.captureTransaction=e=>(this.logSentryEvent("transaction",e),e);this.captureSpan=e=>(this.logSentryEvent("span",e),e);this.captureEvent=e=>(this.logSentryEvent("event",e),e);this.captureLog=e=>(this.logSentryEvent("console",{message:e.message||"Log entry",level:e.level,category:"console",timestamp:e.timestamp,...e.attributes}),e);this.captureBreadcrumb=e=>{let t="unknown";try{let s=globalThis.getCurrentPathname;s&&(t=s())}catch{}let a=e.category;if(e.message?.toLowerCase().includes("ignore"))return null;if(e.message?.includes("Touch event within element:")&&(e.message=e.message.replace("Touch event within element:","")),a==="navigation"&&e.data?.from&&e.data?.to&&(e.message=`From ${e.data.from} To ${e.data.to}`),a==="touch"&&e.data?.path){e.message&&(e.message=e.message.trim());let s={...e.data,category:a,message:e.message,route:t,timestamp:new Date().toISOString(),path:e.message?[{label:e.message}]:e.data?.path};e.data=s}return this.logSentryEvent("breadcrumb",e),e}}logSentryEvent(e,t){let a="Generic",s=t.category;if(s)switch(s){case"touch":a="Touch";break;case"xhr":case"fetch":case"http":a="HTTP Request";break;case"navigation":a="Navigation";break;case"auth":a="Auth";break;case"console":a="System";break;case"debug":a="Debug";break;default:s.startsWith("ui.")?a="User Action":s.startsWith("replay.")?a="Replay":s.includes("redux")||s.includes("state")?a="State":a="Custom"}let r={id:_p(),timestamp:Date.now(),level:this.getSentryLevel(t),message:this.getSentryMessage(t),metadata:this.getSentryMetadata(t),type:a};Ja(r)}getSentryLevel(e){switch(e.level){case"fatal":case"error":return"error";case"warning":return"warn";case"info":return"info";case"debug":return"debug";default:return"log"}}getSentryMessage(e){let t=e.message;return typeof t=="string"?t:`${e.type||"Unknown"} Event`}getSentryMetadata(e){let{message:t,level:a,type:s,...r}=e;return r}},Op=new qa;import{useState as Ut,useEffect as Ka}from"react";import{jsx as E,jsxs as Te}from"react/jsx-runtime";var nt=be.bubble.settings(),Xa=be.bubble.userPreferences(),Vt={showEnvironment:true,showQueryButton:true,showWifiToggle:true,showEnvButton:false,showSentryButton:false,showStorageButton:false};function Ep({onPress:e}){let[t,a]=Ut(Vt);Ka(()=>{s()},[]);let s=async()=>{try{let r=await N.getItem(nt);r&&a(JSON.parse(r))}catch(r){console.error("Failed to load bubble settings:",r)}};return E(va,{id:"bubble-settings",title:"SETTINGS",subtitle:`${Object.values(t).filter(Boolean).length}/6 visible`,icon:xt,iconColor:"#10B981",iconBackgroundColor:"rgba(16, 185, 129, 0.1)",onPress:e||(()=>{}),index:5})}function Ap({onSettingsChange:e}){let[t,a]=Ut(Vt),[s,r]=Ut(true);Ka(()=>{n()},[]);let n=async()=>{try{let h=await N.getItem(nt);h&&a(JSON.parse(h))}catch(h){console.error("Failed to load bubble settings:",h)}finally{r(false)}},o=async h=>{try{await N.setItem(nt,JSON.stringify(h)),a(h),e?.(h)}catch(b){console.error("Failed to save bubble settings:",b)}},i=async h=>{let b={...t,[h]:!t[h]};try{let S=await N.getItem(Xa),f=S?JSON.parse(S):{},m=h.replace("show","hasSet"),w={...f,[m]:true};await N.setItem(Xa,JSON.stringify(w))}catch(S){console.error("Failed to save user preference marker:",S)}o(b)};if(s)return E(x,{style:I.detailContainer,children:E(M,{style:I.loadingText,children:"Loading settings..."})});let l=[{key:"showEnvironment",label:"Environment Indicator",description:"Shows current environment (dev, staging, prod)",icon:E(x,{style:[I.indicator,{backgroundColor:"#10B981"}]})},{key:"showQueryButton",label:"React Query Button",description:"Opens React Query dev tools",icon:E(x,{style:[I.indicator,{backgroundColor:"#F59E0B"}]})},{key:"showWifiToggle",label:"WiFi",description:"Toggle WiFi for testing offline scenarios",icon:E(x,{style:[I.indicator,{backgroundColor:"#8B5CF6"}]})},{key:"showEnvButton",label:"Environment Variables",description:"View and check environment variables",icon:E(xt,{size:16,color:"#10B981"})},{key:"showSentryButton",label:"Sentry Events",description:"View captured Sentry events and errors",icon:E(x,{style:[I.indicator,{backgroundColor:"#a855f7"}]})},{key:"showStorageButton",label:"Storage Browser",description:"Browse and inspect AsyncStorage data",icon:E(Ta,{size:16,color:"#3B82F6"})}];return E(x,{style:I.detailContainer,children:Te(Kh,{showsVerticalScrollIndicator:false,contentContainerStyle:I.scrollContent,"sentry-label":"ignore bubble settings scroll",children:[Te(x,{style:I.header,children:[E(M,{style:I.headerTitle,children:"Developer Tools Settings"}),E(M,{style:I.headerDescription,children:"Configure bubble button visibility"})]}),E(x,{style:I.sectionDivider,children:E(M,{style:I.sectionTitle,children:"Bubble Button Visibility"})}),E(x,{style:I.settingsList,children:l.map(h=>Te(x,{style:I.settingItem,children:[E(x,{style:I.settingIconContainer,children:h.icon}),Te(x,{style:I.settingContent,children:[E(M,{style:I.settingLabel,children:h.label}),E(M,{style:I.settingDescription,children:h.description})]}),E(Xh,{"sentry-label":"ignore bubble settings section",value:t[h.key],onValueChange:()=>i(h.key),trackColor:{false:"#4B5563",true:"#10B981"},thumbColor:t[h.key]?"#fff":U.textSecondary})]},h.key))}),Te(x,{style:I.footer,children:[Te(x,{style:I.noteContainer,children:[E(xa,{size:16,color:U.textSecondary}),E(M,{style:I.noteText,children:"User status indicator is always visible and cannot be disabled"})]}),E(M,{style:I.restartNote,children:"Changes are saved automatically and will persist across app restarts"})]})]})})}async function Lp(){try{let e=await N.getItem(nt);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bubble settings:",e)}return Vt}var I=Pe.create({scrollContent:{flexGrow:1},sectionCard:{backgroundColor:U.input,borderRadius:8,padding:16,flexDirection:"row",alignItems:"center",marginBottom:12},iconContainer:{width:36,height:36,borderRadius:8,backgroundColor:"rgba(16, 185, 129, 0.1)",justifyContent:"center",alignItems:"center",marginRight:12},textContainer:{flex:1},title:{color:U.text,fontSize:14,fontWeight:"600",marginBottom:2},subtitle:{color:U.textSecondary,fontSize:12},chevron:{color:Xe.text.icon,fontSize:20},detailContainer:{flex:1,backgroundColor:U.card},loadingText:{color:U.textSecondary,fontSize:14,textAlign:"center",marginTop:20},header:{padding:16,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.2)"},headerTitle:{color:U.text,fontSize:16,fontWeight:"600",marginBottom:4},headerDescription:{color:U.textSecondary,fontSize:12},settingsList:{padding:16},settingItem:{flexDirection:"row",alignItems:"center",paddingVertical:12,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},settingIconContainer:{width:32,height:32,justifyContent:"center",alignItems:"center",marginRight:12},settingContent:{flex:1,marginRight:12},settingLabel:{color:U.text,fontSize:14,fontWeight:"500",marginBottom:2},settingDescription:{color:Xe.text.icon,fontSize:11},indicator:{width:8,height:8,borderRadius:4},footer:{padding:16,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.2)"},noteContainer:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},noteText:{color:U.textSecondary,fontSize:12,flex:1},restartNote:{color:Xe.text.icon,fontSize:11,fontStyle:"italic"},sectionDivider:{paddingHorizontal:16,paddingVertical:8,marginTop:8,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.12)"},sectionTitle:{color:U.textSecondary,fontSize:12,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"}});function Qa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Rp(e,t,a={}){let s=a.storage??N,r=a.parse??(l=>JSON.parse(l)),n=a.serialize??(l=>JSON.stringify(l));function o(l){let h=Qa(t)&&Qa(l)?{...t,...l}:l;return a.sanitize?a.sanitize(h,l):h}async function i(){try{let l=await s.getItem(e);return l==null||l===""?null:o(r(l))}catch{return null}}return{key:e,defaults:t,loadOrNull:i,async load(){return await i()??t},async save(l){try{await s.setItem(e,n(l))}catch{}},async clear(){try{await s.removeItem(e)}catch{}}}}import{useEffect as Pp,useId as $p,useRef as Za,useState as Mp}from"react";import{createPortal as Bp}from"react-dom";import{jsx as We,jsxs as Dp}from"react/jsx-runtime";function es(){let[e,t]=Mp(false),a=Za(null),s=Za(null),r=$p(),n=(o=true)=>{t(false),o&&a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true})};return Pp(()=>{if(!e)return;s.current?.focus({preventScroll:true});let o=l=>{l.target instanceof Node&&!a.current?.contains(l.target)&&t(false)},i=l=>{l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),t(false),a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true}))};return document.addEventListener("pointerdown",o),document.addEventListener("keydown",i),()=>{document.removeEventListener("pointerdown",o),document.removeEventListener("keydown",i)}},[e]),typeof document>"u"?null:Bp(Dp("div",{ref:a,"data-buoy-account":"",style:{position:"fixed",right:"max(16px, env(safe-area-inset-right))",bottom:"max(20px, env(safe-area-inset-bottom))",zIndex:99999,colorScheme:"dark",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:[We("style",{children:`
1
+ "use client";import{a as Vr,b as Gr,c as Yr,d as Kr,e as Jr,f as qr,g as Xr,h as Qr,i as Zr}from"./chunks/chunk-JYM7MCKQ.mjs";import{a as es,b as ts,c as as,d as rs,e as ss,f as os,g as is,h as ns}from"./chunks/chunk-T7RZZG4A.mjs";import{$ as ls,A as cs,B as us,C as ds,D as hs,E as gs,F as fs,G as ps,J as ms,K as bs,L as ys,M as Ss,N as vs,O as Cs,P as ws,Q as Ts,R as xs,S as ks,Z as Is,_ as Es,a as Aa,b as As,c as Rs,d as ze,e as Os,f as _s,g as Ra,h as Ps,i as Ls,j as Ms,k as Ns,l as $s,m as Pt,n as Bs,o as Ds,p as zs,q as Fs,r as Hs,s as js,t as Ws,u as Us,v as Vs,w as Gs,x as Ys,y as Ks,z as Js}from"./chunks/chunk-T6KN54NS.mjs";import"./chunks/chunk-LZ7FZZ7R.mjs";import{a as qs,d as Xs,f as Lt}from"./chunks/chunk-53J2FMUD.mjs";import{$ as Qs,$a as Zs,$b as eo,A as Oa,Aa as to,Ab as ao,Ac as ro,B as so,Ba as oo,Bb as io,C as no,Ca as lo,Cb as co,D as uo,Da as ho,Db as go,E as fo,Ea as po,Eb as mo,F as _a,Fa as bo,Fb as yo,G as So,Ga as vo,Gb as Co,H as wo,Ha as To,Hb as xo,I as ko,Ia as Io,Ib as Eo,J as Ao,Ja as Ro,Jb as Oo,K as _o,Ka as Po,Kb as Lo,L as Mo,La as No,Lb as $o,M as Bo,Ma as Do,Mb as zo,N as Fo,Na as Ho,Nb as jo,O as Wo,Oa as Uo,Ob as Vo,P as Go,Pa as Yo,Pb as Ko,Q as Jo,Qa as qo,Qb as Xo,R as Qo,Ra as Zo,Rb as ei,S as ti,Sa as ai,Sb as ri,T as si,Ta as oi,Tb as ii,U as ni,Ua as li,Ub as ci,V as ui,Va as di,Vb as hi,W as gi,Wa as fi,Wb as pi,X as mi,Xa as bi,Xb as yi,Y as Si,Ya as vi,Yb as Ci,Z as wi,Za as Ti,Zb as xi,_ as ki,_a as Ii,_b as Ei,a as Ai,aa as Ri,ab as Oi,ac as _i,b as Pi,ba as Li,bb as Mi,bc as Ni,c as $i,ca as Bi,cb as Di,cc as zi,d as Fi,da as Hi,db as ji,dc as Wi,e as Ui,ea as Vi,eb as Gi,ec as Yi,f as Ki,fa as Ji,fb as qi,fc as Xi,g as Qi,ga as Zi,gb as en,gc as tn,h as an,ha as rn,hb as sn,hc as on,i as Pa,ia as nn,ib as ln,ic as cn,j as un,ja as dn,jb as hn,jc as gn,k as fn,ka as pn,kb as mn,kc as bn,l as yn,la as Sn,lb as vn,lc as Cn,m as wn,ma as Tn,mb as xn,mc as kn,n as In,na as En,nb as An,nc as Rn,o as On,oa as _n,ob as Pn,oc as Ln,p as Mn,pa as Nn,pb as $n,pc as Bn,q as Dn,qa as zn,qb as Fn,qc as Hn,r as jn,ra as Wn,rb as Un,rc as Vn,s as Gn,sa as Yn,sb as Kn,sc as Mt,t as Jn,ta as qn,tb as Xn,tc as Qn,u as Zn,ua as el,ub as tl,uc as al,v as rl,va as sl,vb as ol,vc as il,w as fe,wa as nl,wb as La,wc as ll,x as q,xa as cl,xb as ul,xc as Ma,y as Ae,ya as dl,yb as hl,yc as gl,z as Fe,za as fl,zb as pl,zc as ml}from"./chunks/chunk-3S2CBY6A.mjs";import{a as bl}from"./chunks/chunk-OPTY6SMO.mjs";import{a as yl,b as Sl,c as vl,d as Cl,e as wl,f as Tl,g as xl,h as kl,i as Il,j as El,k as Al,l as Rl,m as Ol,n as _l,o as Pl,p as Ll}from"./chunks/chunk-XYUAUO57.mjs";import{a as d,b as Na}from"./chunks/chunk-GF5C5DVX.mjs";import{a as Ml,b as Nl}from"./chunks/chunk-T3WLUEET.mjs";import{a as $l,b as Bl,c as Dl,d as zl,e as Fl,f as Hl,g as jl,h as Wl,i as Ul,j as Vl,k as Gl,l as Yl}from"./chunks/chunk-T2SPCEHP.mjs";import{$ as Kl,$a as Jl,$b as ql,$c as Xl,Aa as Ql,Ab as Zl,Ac as ec,B as tc,Ba as ac,Bb as rc,Bc as sc,C as oc,Ca as ic,Cb as nc,Cc as lc,D as cc,Da as uc,Db as dc,Dc as hc,Ea as gc,Eb as fc,Ec as pc,F as mc,Fa as bc,Fb as yc,Fc as Sc,Ga as vc,Gb as Cc,Gc as wc,Ha as Tc,Hb as xc,Hc as kc,I as Ic,Ib as Ec,Ic as Nt,Ja as Ac,Jb as Rc,Jc as Oc,K as _c,Ka as Pc,Kb as Lc,Kc as Mc,La as Nc,Lb as $c,Lc as Bc,Ma as Dc,Mb as zc,Mc as Fc,Na as Hc,Nb as jc,Nc as Wc,O as Uc,Oa as Vc,Ob as Gc,Oc as Yc,P as Kc,Pa as Jc,Pb as qc,Pc as Xc,Q as Qc,Qa as Zc,Qb as eu,Qc as tu,R as au,Ra as ru,Rb as su,Rc as ou,S as iu,Sa as nu,Sb as lu,Sc as cu,T as uu,Ta as du,Tb as hu,Tc as gu,U as fu,Ua as pu,Ub as mu,Uc as bu,V as yu,Va as Su,Vb as vu,Vc as Cu,W as wu,Wa as Tu,Wb as $a,Wc as xu,X as ku,Xa as Iu,Xb as Eu,Xc as Au,Y as Ru,Ya as Ou,Yb as _u,Yc as Pu,Z as Lu,Za as Mu,Zb as Nu,Zc as $u,_ as Bu,_a as Du,_b as zu,_c as Fu,a as Hu,aa as ju,ab as Wu,ac as Uu,ad as Vu,b as Gu,ba as Yu,bb as Ku,bc as Ba,bd as Ju,c as qu,ca as Xu,cb as Qu,cc as Zu,cd as ed,d as td,da as ad,db as rd,dc as sd,dd as od,e as id,ea as nd,eb as ld,ec as cd,ed as ud,f as dd,fa as hd,fb as gd,fc as Da,fd,g as pd,ga as md,gb as bd,gc as yd,gd as Sd,h as vd,ha as Cd,hb as wd,hc as Td,hd as xd,i as kd,ia as Id,ib as Ed,ic as Ad,id as Rd,j as Od,ja as _d,jb as Pd,jc as Ld,jd as Md,k as Nd,ka as $d,kb as Bd,kc as Dd,kd as zd,l as Fd,la as Hd,lb as jd,lc as Wd,ld as Ud,m as Vd,ma as Gd,mb as Yd,mc as Kd,md as Jd,n as qd,na as Xd,nb as Qd,nc as Zd,nd as eh,o as th,oa as ah,ob as rh,oc as sh,od as oh,p as ih,pa as nh,pb as lh,pc as ch,pd as uh,q as dh,qa as hh,qb as gh,qc as fh,qd as ph,r as mh,ra as bh,rb as yh,rc as Sh,rd as vh,s as Ch,sa as wh,sb as Th,sc as xh,sd as kh,t as Ih,ta as Eh,tb as Ah,tc as Rh,td as Oh,u as _h,ua as Ph,ub as Lh,uc as Mh,ud as Nh,va as $h,vb as Bh,vc as Dh,wa as zh,wb as Fh,wc as Hh,xa as jh,xb as Wh,xc as Uh,ya as Vh,yb as Gh,yc as Yh,za as Kh,zb as Jh,zc as qh}from"./chunks/chunk-7YVWZ4ZK.mjs";import{a as ot,d as w,e as Xh,f as Y,g as Qh}from"./chunks/chunk-CE5U3CSQ.mjs";import{a as Zh,b as eg,c as tg,d as ag,e as rg}from"./chunks/chunk-46TKOKMV.mjs";import{a as xe,b as sg,c as og,d as F,e as ig,f as ng}from"./chunks/chunk-DEEKIG2L.mjs";import{H as lg,J as He,a as x,b as B,d as it,g as cg,h as ug,j as dg,r as $t}from"./chunks/chunk-3UTMGIUG.mjs";import"./chunks/chunk-5NZOQR6Q.mjs";var hg=class extends Aa{constructor(e){super();this.events=[];this.arrayListeners=new Set;this.captureSuppressed=false;this.clearListeners=new Set;this.maxEvents=e.maxEvents??500,this.storeName=e.storeName,Promise.resolve().then(()=>{let t=()=>{fe().status==="locked"?(this.stopCapturing(),this.events=[],this.notifyArrayListeners()):this.getTotalSubscriberCount()>0&&!this.captureSuppressed&&!this.isCapturing()&&this.startCapturing()};Fe(t),t()})}onSubscribe(){this.getTotalSubscriberCount()===1&&!this.captureSuppressed&&fe().status!=="locked"&&this.startCapturing(),ze(this.storeName)}onUnsubscribe(){this.getTotalSubscriberCount()===0&&this.stopCapturing(),ze(this.storeName)}getTotalSubscriberCount(){return this.listeners.size+this.arrayListeners.size}subscribeToEvents(e){let t=this.getTotalSubscriberCount()===0;return this.arrayListeners.add(e),t&&!this.captureSuppressed&&fe().status!=="locked"&&this.startCapturing(),ze(this.storeName),e(this.getEvents()),()=>{this.arrayListeners.delete(e),this.getTotalSubscriberCount()===0&&this.stopCapturing(),ze(this.storeName)}}onEvent(e){return this.subscribe(e)}addEvent(e){fe().status!=="locked"&&(this.events=[e,...this.events].slice(0,this.maxEvents),q()&&this.notify(e),this.notifyArrayListeners())}notifyArrayListeners(){let e=this.getEvents();this.arrayListeners.forEach(t=>{try{t(e)}catch{}})}getEvents(){return q()?this.events:[]}getEventCount(){return q()?this.events.length:0}clearEvents(){this.events=[],this.notifyArrayListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true,this.isCapturing()&&this.stopCapturing()}replaceEvents(e){this.events=this.dedupeById(e).slice(0,this.maxEvents),this.notifyArrayListeners()}dedupeById(e){let t=new Set,a=[];for(let r of e){let s=r?.id;if(s==null){a.push(r);continue}t.has(s)||(t.add(s),a.push(r))}return a}setMaxEvents(e){this.maxEvents=e,this.events.length>e&&(this.events=this.events.slice(0,e),this.notifyArrayListeners())}getSubscriberCounts(){return{eventCallbacks:this.listeners.size,arrayListeners:this.arrayListeners.size,total:this.getTotalSubscriberCount()}}};import{useEffect as gg,useMemo as fg,useState as pg}from"react";var mg=[{value:"buoy.gg/api/license",mode:"contains"},{value:"api.keygen.sh",mode:"contains"}];function za(e,t){let a=e.toLowerCase(),r=t.value.toLowerCase();if(t.mode==="contains")return a.includes(r);try{let s=new URL(e);return r.startsWith("/")?s.pathname.toLowerCase()===r:r.startsWith("http://")||r.startsWith("https://")?`${s.origin}${s.pathname}`.toLowerCase()===r:s.host.toLowerCase()===r}catch{return a===r}}function bg(e,t){return!e||t.length===0?false:t.some(a=>za(e,a))}var Fa=mg;function Ha(e){if(!Array.isArray(e))return[];let t=[];for(let a of e)if(typeof a=="string"&&a.trim())t.push({value:a,mode:"contains"});else if(a&&typeof a=="object"&&typeof a.value=="string"){let r=a;t.push({value:r.value,mode:r.mode==="exact"?"exact":"contains"})}return t}function ja(e){let t=[...e];for(let a of Fa)t.some(r=>r.value===a.value)||t.push({...a});return t}var yg=class{constructor(){this.patterns=ja(Fa.map(e=>({...e})));this.teamPatterns=[];this.merged=this.patterns;this.listeners=new Set;this.loaded=false;this.loadPromise=null;this.dirty=false}getPatterns(){return this.merged}isTeamOnly(e){return!this.patterns.some(t=>t.value===e)&&this.teamPatterns.some(t=>t.value===e)}setTeamPatterns(e){this.teamPatterns=Ha(e),this.remerge(),this.emit()}reload(){return this.loaded=false,this.loadPromise=null,this.dirty=false,this.ensureLoaded()}remerge(){let e=this.teamPatterns.filter(t=>!this.patterns.some(a=>a.value===t.value));this.merged=e.length>0?[...this.patterns,...e]:this.patterns}subscribe(e){return this.listeners.add(e),this.ensureLoaded(),()=>{this.listeners.delete(e)}}emit(){this.listeners.forEach(e=>e())}ensureLoaded(){return this.loaded?Promise.resolve():this.loadPromise?this.loadPromise:(this.loadPromise=(async()=>{try{let e=await F.getItem(xe.network.ignoredDomains());if(e&&!this.dirty){let t=ja(Ha(JSON.parse(e)));this.patterns=t,this.remerge()}}catch{}finally{this.loaded=true,this.emit()}})(),this.loadPromise)}persist(){F.setItem(xe.network.ignoredDomains(),JSON.stringify(this.patterns)).catch(()=>{})}commit(e){this.dirty=true,this.patterns=e,this.remerge(),this.emit(),this.persist()}add(e){let t=e.value.trim();t&&(this.patterns.some(a=>a.value===t)||this.commit([...this.patterns,{value:t,mode:e.mode}]))}remove(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.filter(t=>t.value!==e))}toggle(e){let t=e.trim();t&&this.commit(this.patterns.some(a=>a.value===t)?this.patterns.filter(a=>a.value!==t):[...this.patterns,{value:t,mode:"contains"}])}toggleMode(e){this.patterns.some(t=>t.value===e)&&this.commit(this.patterns.map(t=>t.value===e?{...t,mode:t.mode==="contains"?"exact":"contains"}:t))}},Z=new yg,Sg=e=>Z.add(e),vg=e=>Z.remove(e),Cg=e=>Z.toggle(e),wg=e=>Z.toggleMode(e),Tg=e=>Z.isTeamOnly(e);function xg(){let[e,t]=pg(()=>Z.getPatterns());gg(()=>Z.subscribe(()=>{t(Z.getPatterns())}),[]);let a=fg(()=>new Set(e.map(r=>r.value)),[e]);return{patterns:e,values:a,add:Sg,remove:vg,toggle:Cg,toggleMode:wg,isTeamOnly:Tg}}import{useSyncExternalStore as kg}from"react";var nt={},Bt=new Map,Dt=new Set,je=[];function Ig(e){if(!e)return je;try{let t=JSON.parse(e);if(!Array.isArray(t))return je;let a=t.map(r=>typeof r=="string"?r:r&&typeof r.value=="string"?r.value:"").map(r=>r.trim()).filter(Boolean);return a.length?[...new Set(a)]:je}catch{return je}}var lt={set(e){Object.keys({...nt,...e}).some(t=>nt[t]!==e[t])&&(nt=e,Bt.clear(),Dt.forEach(t=>t()))},getList(e){let t=Bt.get(e);return t||(t=Ig(nt[e]),Bt.set(e,t)),t},subscribe(e){return Dt.add(e),()=>Dt.delete(e)}};function Eg(e){return kg(lt.subscribe,()=>lt.getList(e),()=>je)}function Ag(e){typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):setTimeout(e,0)}function Rg(e){let t=e.id,a=e.order??"append",r=e.coalesce??"sync",s=e.flushMinIntervalMs??150,o=e.max,n=[],i=false,l=e.firstId??1,c=0,p=false,y=[],h=false;function f(){h||(h=true,Fe(()=>{fe().status==="locked"&&(n=[]),ge()}))}let v=new Set,_=new Set;function J(){for(let S of v)try{S()}catch{}}function ge(){if(r==="sync"){J();return}p||(p=true,Ag(()=>{p=false,J()}))}function z(S){return S.length<=o?S:a==="append"?S.slice(S.length-o):S.slice(0,o)}return{id:t,subscribe(S){return f(),v.add(S),()=>{v.delete(S)}},getSnapshot(){return f(),q()?n:y},size(){return q()?n.length:0},add(S){f(),!(i||fe().status==="locked")&&(a==="append"?n=n.length>=o?[...n.slice(n.length-o+1),S]:[...n,S]:n=n.length>=o?[S,...n.slice(0,o-1)]:[S,...n],ge())},set(S){f(),q()&&(n=z(S),ge())},update(S){f(),fe().status!=="locked"&&(n=z(S(n)),ge())},clear(){for(let S of _)try{S()}catch{}n.length!==0&&(n=[],ge())},onClear(S){return _.add(S),()=>{_.delete(S)}},notify(){ge()},flushSync(S=false){let se=Date.now();if(!(!S&&se-c<s)){c=se;try{let L=globalThis.__buoyFlushToolSync;if(!L)return;for(let Xe of L)Xe(t)}catch{}}},setPaused(S){i=S},isPaused(){return i},setMax(S){o=S;let se=z(n);se!==n&&(n=se,ge())},getMax(){return o},allocId(){return l++},bumpIdAbove(S){S+1>l&&(l=S+1)},listenerCount(){return v.size}}}var Og=class{constructor(e={}){this.items=[];this.itemListeners=new Set;this.clearListeners=new Set;this.idCounter=0;this.enabled=true;this.captureSuppressed=false;this.max=e.max??200}canRecord(){return this.enabled&&!this.captureSuppressed}nextId(){return`${Date.now()}-${++this.idCounter}`}push(e){this.items=[e,...this.items].slice(0,this.max)}record(e){this.push(e),this.notifyListeners()}setItems(e){this.items=e.slice(0,this.max),this.notifyListeners()}getAll(){return[...this.items]}getById(e){return this.items.find(t=>t.id===e)}get size(){return this.items.length}clear(){this.items=[],this.notifyListeners(),this.clearListeners.forEach(e=>{try{e()}catch{}})}onClear(e){return this.clearListeners.add(e),()=>{this.clearListeners.delete(e)}}disableCapture(){this.captureSuppressed=true}isCaptureSuppressed(){return this.captureSuppressed}replaceAll(e){return this.enabled?(this.setItems(e),true):false}hydrateById(e,t){let a=this.items.findIndex(r=>r.id===e);a!==-1&&(this.items=[...this.items.slice(0,a),{...this.items[a],...t},...this.items.slice(a+1)],this.notifyListeners())}setEnabled(e){this.enabled=e}getEnabled(){return this.enabled}setMax(e){this.max=e,this.items.length>e&&(this.items=this.items.slice(0,e),this.notifyListeners())}getMax(){return this.max}subscribe(e){return this.itemListeners.add(e),()=>{this.itemListeners.delete(e)}}notifyListeners(){let e=this.getAll();this.itemListeners.forEach(t=>t(e))}get listenerCount(){return this.itemListeners.size}};var ke=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),_g=["id","lineId","key","uuid","_id","slug","name"];function zt(e){if(!e.length||!e.every(ke))return;let t=e[0];for(let a of _g){if(!(a in t))continue;let r=e.map(s=>s[a]);if(r.every(s=>typeof s=="string"||typeof s=="number")&&new Set(r.map(String)).size===r.length)return a}}function Pg(e,t,a,r){let s=r[t];return typeof s=="string"||typeof s=="number"?String(s)!==a?{ok:false,error:`The new item is addressed as \`${a}\` but carries \`${t}\`: ${JSON.stringify(s)}. Use the same value for both \u2014 address it by the id it carries.`}:{ok:true,value:s}:e.every(o=>typeof o[t]=="number")&&a.trim()!==""&&String(Number(a))===a?{ok:true,value:Number(a)}:{ok:true,value:a}}function Ft(e,t,a="",r=[]){if(Array.isArray(e)&&ke(t)){let s=zt(e);if(!s)return{patch:t,notes:r};let o=new Map(e.map(p=>[String(p[s]),p])),n=e.slice(),i=0,l=0,c=0;for(let[p,y]of Object.entries(t)){let h=n.findIndex(f=>String(f[s])===p);if(y===null){if(h===-1)return{patch:t,notes:r};n.splice(h,1),i++}else if(h===-1){if(!ke(y))return{patch:t,notes:r};let f=Pg(e,s,p,y);if(!f.ok)return{patch:t,notes:r,error:f.error};n.push({...y,[s]:f.value}),c++}else{let f=Ft(o.get(p),y,`${a}[${p}]`,r);if(f.error)return{patch:t,notes:r,error:f.error};let v=n[h];n[h]=ke(v)&&ke(f.patch)?{...v,...f.patch}:f.patch,l++}}return r.push(`${a||"(root)"}: addressed by \`${s}\` \u2014 ${l} changed, ${c} added, ${i} removed, ${n.length} item(s) remain`),{patch:n,notes:r}}if(ke(e)&&ke(t)){let s={};for(let[o,n]of Object.entries(t)){let i=a?`${a}.${o}`:o;if(!(o in e)){s[o]=n;continue}let l=Ft(e[o],n,i,r);if(l.error)return{patch:t,notes:r,error:l.error};s[o]=l.patch}return{patch:s,notes:r}}return{patch:t,notes:r}}var ct=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function We(e,t=0){if(e===null)return"null";if(Array.isArray(e)){if(!e.length)return"unknown[]";if(t>=3)return"\u2026[]";let r=We(e[0],t+1);return r.includes(" ")||r.endsWith("]")?`(${r})[]`:`${r}[]`}if(ct(e)){if(t>=3)return"{\u2026}";let r=Object.keys(e),s=r.slice(0,24),o=s.map(i=>`${i}: ${We(e[i],t+1)}`).join(", "),n=r.length>s.length?`, +${r.length-s.length} more`:"";return`{${o}${n}}`}let a=typeof e;return a==="undefined"?"undefined":a==="function"?"function":a}function Re(e,t="",a=[],r=0,s={visited:0}){if(r>3||a.length>=40||s.visited>=600)return a;if(Array.isArray(e)){let o=e[0];if(a.push({path:t||"(root)",length:e.length,...e.length?{item:We(o)}:{}}),e.length&&ct(o))for(let[n,i]of Object.entries(o)){if(++s.visited>=600)break;Re(i,t?`${t}[].${n}`:`[].${n}`,a,r+1,s)}return a}if(ct(e))for(let[o,n]of Object.entries(e)){if(++s.visited>=600)break;Re(n,t?`${t}.${o}`:o,a,r+1,s)}return a}function Lg(e){let t={visited:0};return Re(e,"",[],0,t).length>=40||t.visited>=600}function Mg(e){return Re(e).filter(t=>t.item===void 0).map(t=>t.path)}function Ng(e){if(e===void 0)return;let t=Re(e),a=We(e);if(!(!t.length&&!ct(e)&&!Array.isArray(e)))return t.length?{shape:a,lists:t}:{shape:a}}var re=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function $g(e,t,a=2e3){let r=[{node:e,path:""}],s=0;for(;r.length&&s<a;){let{node:o,path:n}=r.shift();if(s++,Array.isArray(o))o.slice(0,20).forEach((i,l)=>r.push({node:i,path:`${n}[${l}]`}));else if(re(o))for(let[i,l]of Object.entries(o)){let c=n?`${n}.${i}`:i;if(i===t)return c;(re(l)||Array.isArray(l))&&r.push({node:l,path:c})}}}function Wa(e,t,a,r,s){let o=$g(e,s??a),n=r.slice(0,12).join(", ")||"(no fields)";return o?`No field "${a}" at "${t}" \u2014 did you mean path "${o}"? "${t}" has: ${n}.`:`No field "${a}" at "${t}". It has: ${n}.`}function Ua(e,t){let a=e;for(let r of t.split(".")){if(!re(a))return;a=a[r]}return a}function Ht(e){if(!e.trim())return;let t=[],a=0;for(;a<e.length;){if(e[a]==="."){a++;continue}if(e[a]==="["){let o=e.indexOf("]",a);if(o===-1)return;let n=e.slice(a+1,o);if(/^\d+$/.test(n))t.push({kind:"index",index:Number(n)});else{let i=n.indexOf("=");if(i<=0)return;t.push({kind:"match",field:n.slice(0,i).trim(),value:n.slice(i+1).trim()})}a=o+1;continue}let r=a;for(;r<e.length&&e[r]!=="."&&e[r]!=="[";)r++;let s=e.slice(a,r);if(!s)return;t.push({kind:"key",key:s}),a=r}return t.length?t:void 0}function Bg(e,t){let a=Ht(t);if(!a)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};let r=e,s=[];for(let o of a){if(r==null)return{ok:false,error:`"${s.join(".")||"(root)"}" is ${r===null?"null":"not set"}, so there is nothing at "${t}".`};if(o.kind==="key"){if(!re(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not an object, so it has no field "${o.key}".`};if(!(o.key in r)){let n=a[a.length-1];return{ok:false,error:Wa(e,s.join(".")||"(root)",o.key,Object.keys(r),n?.kind==="key"?n.key:void 0)}}r=r[o.key],s.push(o.key)}else if(o.kind==="index"){if(!Array.isArray(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not a list, so [${o.index}] means nothing.`};r=r[o.index],s.push(`[${o.index}]`)}else{if(!Array.isArray(r))return{ok:false,error:`"${s.join(".")||"(root)"}" is not a list, so [${o.field}=${o.value}] means nothing.`};let n=r.find(i=>re(i)&&String(Ua(i,o.field))===o.value);if(n===void 0)return{ok:false,error:`No item with ${o.field}="${o.value}" in "${s.join(".")||"(root)"}".`};r=n,s.push(`[${o.field}=${o.value}]`)}}return{ok:true,value:r}}function Dg(e,t,a){let r=Ht(t);if(!r)return{ok:false,error:`Could not read the path "${t}". Use dotted keys with optional [0] or [field=value], like "item.name" or "lines[lineId=seed-1].qty".`};if(r[0]?.kind!=="key")return{ok:false,error:`A path must start with a field name, not a list index \u2014 "${t}" does not say which list.`};let s=(n,i)=>{if(i>=r.length)return{ok:true,patch:a};let l=r[i];if(l.kind==="key"){if(re(n)&&!(l.key in n)&&i+1<r.length){let J=r[r.length-1];return{ok:false,error:Wa(e,Ue(r,i),l.key,Object.keys(n),J?.kind==="key"?J.key:void 0)}}let v=re(n)?n[l.key]:void 0,_=s(v,i+1);return _.ok?{ok:true,patch:{[l.key]:_.patch}}:_}if(!Array.isArray(n))return{ok:false,error:`"${Ue(r,i)}" is not a list, so "${t}" cannot be resolved. Read it first \u2014 \`shape\` on the read says what each field holds.`};let c=l.kind==="index"?l.index:n.findIndex(v=>re(v)&&String(Ua(v,l.field))===l.value),p=c>=0?n[c]:void 0;if(l.kind==="index"?c<0||c>=n.length:c<0)return{ok:false,error:l.kind==="index"?`"${Ue(r,i)}" has ${n.length} item(s), so there is nothing at [${l.index}].`:`No item with ${l.field}="${l.value}" in "${Ue(r,i)}".`};if(!re(p)){if(i<r.length-1)return{ok:false,error:`"${Ue(r,i)}[${l.kind==="index"?l.index:`${l.field}=${l.value}`}]" holds ${p===null?"null":typeof p}, not an object, so "${t}" cannot go any deeper. Set the item itself.`};let v=n.slice();return v[c]=a,{ok:true,patch:v}}let y=s(p,i+1);if(!y.ok)return y;let h=zt(n);if(h)return{ok:true,patch:{[String(p[h])]:y.patch}};let f=n.slice();return f[c]=re(y.patch)?{...p,...y.patch}:y.patch,{ok:true,patch:f}},o=s(e,0);return o.ok?{ok:true,patch:o.patch}:o}function Ue(e,t){return e.slice(0,t).map(a=>a.kind==="key"?a.key:a.kind==="index"?`[${a.index}]`:`[${a.field}=${a.value}]`).join(".").replace(/\.\[/g,"[")||"(root)"}var pe=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function Ve(e){return Array.isArray(e)?"array":e===null?"null":typeof e=="object"?"object":typeof e}var Va=["string","number","boolean"];function Ga(e,t,a=2e3){let r=[{node:e,path:""}],s=0;for(;r.length&&s<a;){let{node:o,path:n}=r.shift();if(s++,Array.isArray(o))o.slice(0,20).forEach((i,l)=>r.push({node:i,path:`${n}[${l}]`}));else if(pe(o))for(let[i,l]of Object.entries(o)){let c=n?`${n}.${i}`:i;if(i===t&&n)return c;(pe(l)||Array.isArray(l))&&r.push({node:l,path:c})}}}function jt(e,t,a={},r=e,s="",o=[]){let n=a.noun??"data",i=s||"(root)";if(Array.isArray(t)){if(!Array.isArray(e))return o.push({path:i,kind:"type-change",detail:`${Ve(e)} \u2192 array`}),o;let h=e.length?e[0]:void 0;return h!==void 0&&(pe(h)||Array.isArray(h))&&t.forEach((f,v)=>{let _=`${s}[${v}]`;if(pe(h)&&pe(f))for(let J of Object.keys(h))J in f||o.push({path:`${_}.${J}`,kind:"missing-key",detail:`list items need \`${J}\` \u2014 the items already in the list have it`});jt(h,f,a,r,_,o)}),o}if(pe(t)){if(!pe(e))return o.push({path:i,kind:"type-change",detail:`${Ve(e)} \u2192 object`}),o;for(let[h,f]of Object.entries(t)){let v=s?`${s}.${h}`:h;if(h in e)jt(e[h],f,a,r,v,o);else{let _=Ga(r,h);o.push({path:v,kind:"add-key",detail:_?`no such field here \u2014 did you mean \`${_}\`?`:`no field named \`${h}\` exists in this ${n}`,..._?{movedTo:_}:{}})}}return o}let l=Ve(e),c=Ve(t),p=l==="null"&&Va.includes(c),y=c==="null"&&Va.includes(l);return l!==c&&!p&&!y&&o.push({path:i,kind:"type-change",detail:`${l} \u2192 ${c}`}),o}function zg(e,t){if(!t.length||!t.every(r=>r.kind==="add-key"&&r.movedTo))return;let a={};for(let r of t){let s=Fg(e,r.path);if(s===void 0||r.movedTo.includes("["))return;let o=a,n=r.movedTo.split(".");n.slice(0,-1).forEach(i=>{o[i]??(o[i]={}),o=o[i]}),o[n[n.length-1]]=s}return a}function Fg(e,t){let a=e;for(let r of t.split(".")){if(!pe(a))return;a=a[r]}return a}function Hg(e,t,a){let r=e.slice(0,6).map(o=>`\`${o.path}\`: ${o.detail}`).join("; "),s=e.length>6?`; +${e.length-6} more`:"";return`Refused: this isn't a same-type edit of existing fields (the rule the React Query devtools enforces). ${r}${s}. You can only change the VALUE of a field that already exists, to the same type \u2014 you can't add fields, change a field's type, or null a list/object the screen renders. Clearing a scalar to null is fine. Send just the field(s) you're changing, nested to match the current shape of this ${t}. Use force:true only to deliberately break that.`+(a?` This is the same edit at the right depth \u2014 send it as the patch: ${JSON.stringify(a)}`:"")}function ut(e,t){let a=0,r=false,s=false,o=[e],n=new Set;for(;o.length>0;){if(a>t)return{bytes:a,sawRepeat:r,sawBigInt:s};let i=o.pop();if(i==null)a+=4;else if(typeof i=="string")a+=i.length+2;else if(typeof i=="number")a+=8;else if(typeof i=="boolean")a+=5;else if(typeof i=="object"){if(n.has(i)){r=true;continue}if(n.add(i),Array.isArray(i)){a+=2+i.length;for(let l=0;l<i.length;l++)o.push(i[l])}else{a+=2;for(let l in i)a+=l.length+4,o.push(i[l])}}else typeof i=="bigint"&&(s=true),a+=4}return{bytes:a,sawRepeat:r,sawBigInt:s}}function Wt(e,t){let a=ut(e,t);return a.bytes>t?true:!a.sawRepeat&&!a.sawBigInt?false:!Ra(e)}var Ya=16*1024,dt=8*1024*1024;function jg(e,t){return Object.freeze({[`__buoy${e}OnDevice`]:true,note:t})}function Wg(e,t){return typeof e=="object"&&e!==null&&e[`__buoy${t}OnDevice`]===true}function Ka(e=dt){return{__buoyTruncated:true,note:`Exceeds the ${e/1048576}MB detail limit \u2014 inspect it on-device.`}}function Ug(e,t,a=Ya){return e===void 0?e:Wt(e,a)?t:e}function Ja(e,t=dt){return Wt(e,t)?Ka(t):e}function Vg(e){let t=new WeakMap;return a=>{let r=t.get(a);if(r!==void 0)return r;let s=e(a);return t.set(a,s),s}}function Gg(e,t){let a=[],r=t.baseBytes??16;for(let s=e.length-1;s>=0;s--){let o=t.toWire(e[s]);if(r+o.bytes>t.budget&&a.length>0)break;a.push(o.value),r+=o.bytes}return a.reverse(),a}function Yg(e,t,a){let r=ut(e,t);if(r.bytes<=t)return{value:e,bytes:r.bytes};let s=a();return{value:s,bytes:ut(s,t).bytes}}function qa(e){return e??{}}function Kg(e,t,a=dt){let r=s=>Ja(s,a);return s=>{let{id:o}=qa(s);if(!o)return{found:false,reason:"missing id"};let n=e(o);return n?{found:true,id:o,...t(n,r)}:{found:false,reason:"unknown id"}}}function Xa(e){return e.length===1?e[0]:t=>{let a=e.map(r=>r(t));return()=>{for(let r of a)r()}}}function Jg(e){let t=Array.isArray(e.subscribe)?Xa(e.subscribe):e.subscribe;return{version:e.version,getSnapshot:e.getSnapshot,subscribe:t,...e.actions?{actions:e.actions}:{}}}var ht=new Set(["@react_buoy_settings_theme","@react_buoy_settings_preferences","@react_buoy_settings_global","@react_buoy_dev_tools_settings","@react_buoy_settings_tooltip_shown","@react_buoy_modal_hint_acknowledged","@react_buoy_clipboard_hint_acknowledged","@react_buoy_network_filters","@react_buoy_network_preferences","@react_buoy_network_copy_options","@react_buoy_storage_filters","@react_buoy_storage_event_filters","@react_buoy_storage_key_filters","@react_buoy_storage_pinned_keys","@react_buoy_storage_preferences","@react_buoy_storage_diff_viewer_mode","@react_buoy_rq_filters","@react_buoy_rq_preferences","@react_buoy_route_events_event_filters","@react_buoy_route_events_detail_view","@react_buoy_route_events_diff_viewer_mode","@react_buoy_sentry_filters","@react_buoy_sentry_preferences","@react_buoy_highlight_updates_filters","@react_buoy_highlight_updates_settings","@react_buoy_highlight_updates_copy_settings","@react_buoy_events_enabled_sources","@react_buoy_events_copy_settings","@react_buoy_time_machine_diff_viewer_mode","@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),Qa=new Set(["@react_buoy_network_ignored_domains","@react_buoy_network_ignored_urls","@react_buoy_rq_ignored_patterns","@react_buoy_rq_included_patterns"]),Za="@react_buoy_settings_sync_meta",er="@react_buoy_network_ignored_domains",tr=2e3,me=3e4,Ut=15*6e4,qg=15e3,Vt=new Set;function Xg(e){return Vt.add(e),()=>Vt.delete(e)}function Qg(e){e.includes(er)&&Z.reload(),Vt.forEach(t=>{try{t(e)}catch{}})}function Zg(){return{storage:F,credential:uo,fetch:(e,t)=>fetch(e,t),subscribeWrites:og,setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e),onTeam:e=>{Z.setTeamPatterns(ef(e[er])),lt.set(e)},onApplied:Qg}}function ef(e){if(!e)return[];try{return JSON.parse(e)}catch{return[]}}var ar=class{constructor(e={}){this.started=false;this.pending=new Map;this.applying=new Set;this.pushTimer=null;this.pullTimer=null;this.unsubscribe=null;this.refusedToken=null;this.deps={...Zg(),...e}}start(){this.started||(this.started=true,this.unsubscribe=this.deps.subscribeWrites((e,t)=>this.onWrite(e,t)),this.pull())}stop(){this.started=false,this.unsubscribe?.(),this.unsubscribe=null,this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pushTimer=this.pullTimer=null}credential(){let e=this.deps.credential();return e&&e.token!==this.refusedToken?e:null}call(e,t,a){return new Promise((r,s)=>{let o=this.deps.setTimer(()=>s(new Error("timeout")),qg);this.deps.fetch(`${t.origin.replace(/\/$/,"")}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_token:t.token,...a})}).then(n=>{this.deps.clearTimer(o),r(n)},n=>{this.deps.clearTimer(o),s(n)})})}schedulePull(e){this.started&&(this.pullTimer!==null&&this.deps.clearTimer(this.pullTimer),this.pullTimer=this.deps.setTimer(()=>{this.pullTimer=null,this.pull()},e))}async readMeta(){try{let e=await this.deps.storage.getItem(Za),t=e?JSON.parse(e):{};return t&&typeof t=="object"?t:{}}catch{return{}}}async writeMeta(e){await this.deps.storage.setItem(Za,JSON.stringify(e)).catch(()=>{})}async pull(){let e=this.credential();if(!e)return this.schedulePull(me);let t,a;try{let i=await this.call("/api/settings/pull",e,{});t=i.status,a=await i.json().catch(()=>null)}catch{return this.schedulePull(me)}if(t===401||t===403)return this.refusedToken=e.token,this.schedulePull(me);if(t===404)return this.schedulePull(Ut);if(t!==200||!a)return this.schedulePull(me);let r=a.personal??{},s=await this.readMeta(),o=[];for(let[i,l]of Object.entries(r))if(!(!ht.has(i)||this.pending.has(i))&&!(typeof l?.value!="string"||!(l.updatedAt>(s[i]??0)))){this.applying.add(i);try{await this.deps.storage.setItem(i,l.value)}finally{this.applying.delete(i)}s[i]=l.updatedAt,o.push(i)}for(let i of ht){if(i in r||i in s||this.pending.has(i))continue;let l=await this.deps.storage.getItem(i).catch(()=>null);l!==null&&this.pending.set(i,l)}await this.writeMeta(s),o.length>0&&this.deps.onApplied(o);let n={};for(let[i,l]of Object.entries(a.team??{}))Qa.has(i)&&typeof l?.value=="string"&&(n[i]=l.value);this.deps.onTeam(n),this.pending.size>0&&this.schedulePush(0),this.schedulePull(Ut)}onWrite(e,t){!this.started||this.applying.has(e)||!ht.has(e)||(this.pending.set(e,t),this.schedulePush(tr))}schedulePush(e){this.pushTimer!==null&&this.deps.clearTimer(this.pushTimer),this.pushTimer=this.deps.setTimer(()=>{this.pushTimer=null,this.push()},e)}async push(){if(this.pending.size===0)return;let e=this.credential();if(!e)return this.schedulePush(me);let t=new Map(this.pending),a,r;try{let o=await this.call("/api/settings/push",e,{changes:Object.fromEntries(t)});a=o.status,r=await o.json().catch(()=>null)}catch{return this.schedulePush(me)}if(a===401||a===403)return this.refusedToken=e.token,this.schedulePush(me);if(a===404)return this.schedulePush(Ut);if(a!==200||!r||typeof r.updatedAt!="number")return this.schedulePush(me);let s=await this.readMeta();for(let[o,n]of t)this.pending.get(o)===n&&this.pending.delete(o),s[o]=r.updatedAt;await this.writeMeta(s),this.pending.size>0&&this.schedulePush(tr)}},Ge=null;function tf(e={}){Ge??(Ge=new ar(e)),Ge.start()}function af(){Ge&&Ge.pull()}function rf(e){return e}function sf(e,t,a){return r=>{let s=r??{},o=e.props===void 0&&!t?void 0:{...e.props??{},...t?t(s):{}};return{...e,id:s.id||e.id,name:s.name||e.name,description:s.description||e.description,...o!==void 0?{props:o}:{},...a?a(s,e):{}}}}var Gt="__buoyToolActionRegistry";function Yt(){let e=globalThis;return e[Gt]||(e[Gt]=new Set),e[Gt]}function of(e){let t=Yt();t.add(e);let a=false,r=()=>{if(a)return;a=true;let o=e(),n=async(i,l,c)=>{if(!(i==="network"&&l==="deleteOverrideRule"||i==="impersonate"&&l==="stopImpersonation"))throw new Error("Unsupported account-lock cleanup operation");if(i==="impersonate")return o[i]?.dispose?.(n);let p=o[i]?.actions?.[l];if(!p)throw new Error(`Cleanup unavailable for ${i}`);return p(c)};for(let i of Object.values(o))try{Promise.resolve(i.dispose?.(n)).catch(l=>console.warn("[Buoy] Tool cleanup failed",l))}catch(l){console.warn("[Buoy] Tool cleanup failed",l)}},s=Fe(()=>{q()?a=false:r()});return()=>{s(),t.delete(e),Promise.resolve().then(()=>{t.size===0&&r()})}}function Oe(){if(!q())return{};let e={};for(let t of Yt())try{Object.assign(e,t())}catch{}return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,rr(a)]))}function nf(){return Object.keys(Oe())}function lf(){let e={};for(let[t,a]of Object.entries(Oe()))e[t]=Object.keys(a.actions??{});return e}function cf(){return Object.entries(Oe()).filter(([,e])=>typeof e.getSnapshot=="function").map(([e])=>e)}async function uf(e){Ae();let t=Oe()[e];if(!t)throw new Error(`Unknown tool "${e}"`);if(typeof t.getSnapshot!="function")throw new Error(`Tool "${e}" has no snapshot to read`);return await t.getSnapshot()}function Kt(){return q()&&Yt().size>0}async function df(e,t,a){Ae();let r=Oe()[e],s=r?.actions?.[t];if(!s)throw new Error(r?`Unknown action "${t}" on tool "${e}"`:`Unknown tool "${e}"`);return await s(a)}async function hf(e=2e3){if(Kt())return true;let t=Pt()+e;for(;Pt()<t;)if(await new Promise(a=>setTimeout(a,50)),Kt())return true;return false}function rr(e){let t=a=>(...r)=>{Ae();let s=false,o=Fe(()=>{q()||(s=true)}),n=()=>{if(s)throw new Error("Buoy account access ended while the operation was pending.");Ae()};try{let i=a.apply(e,r);return i&&typeof i.then=="function"?Promise.resolve(i).then(l=>(n(),l)).finally(o):(n(),o(),i)}catch(i){throw o(),i}};return{...e,...e.getSnapshot?{getSnapshot:t(e.getSnapshot)}:{},...e.actions?{actions:Object.fromEntries(Object.entries(e.actions).map(([a,r])=>[a,t(r)]))}:{},...e.subscribe?{subscribe:a=>(Ae(),e.subscribe(()=>{q()&&a()}))}:{}}}var Jt="__buoyToolUiBridge";function qt(){let e=globalThis;return e[Jt]||(e[Jt]=new Set),e[Jt]}function gf(e){let t=qt();return t.add(e),()=>{t.delete(e)}}function ff(e){for(let t of qt())try{if(t(e))return true}catch{}return false}function pf(){return qt().size>0}var Xt="__buoyToolAttention";function Qt(){let e=globalThis;return e[Xt]||(e[Xt]={byTool:new Map,listeners:new Set}),e[Xt]}function mf(e,t){let a=Qt(),r=a.byTool.get(e)??null;if(!(r===t||r&&t&&r.kind===t.kind&&r.label===t.label)){t?a.byTool.set(e,t):a.byTool.delete(e);for(let s of a.listeners)try{s()}catch{}}}function bf(e){return Qt().byTool.get(e)??null}function yf(e){let t=Qt();return t.listeners.add(e),()=>{t.listeners.delete(e)}}import{createContext as Sf,useContext as vf,useEffect as Cf}from"react";var sr=Sf(null);function wf(e,t){let a=vf(sr);return Cf(()=>{if(a)return a(e),()=>a(null)},[a,...t]),a!==null}var or=256*1024;function Tf(e){let t=new Set(e?.excludeKeys??[]),a=e?.includeKeys?new Set(e.includeKeys):null,r=0,s=o=>!t.has(o)&&(!a||a.has(o));return{touch:s,allows(o){return s(o)?true:(r+=1,false)},countExcluded(o){r+=o},get excludedHits(){return r},excludedWarning(o){return r>0?`${r} ${o} excluded by you`:null}}}function xf(){return{ok:true,applied:0,skipped:[],warnings:[]}}function kf(e){return{ok:false,applied:0,skipped:[],warnings:[e]}}function If(e,t){return{ok:false,applied:0,skipped:[{id:e,reason:t}],warnings:[]}}function Ef(e,t={}){let{key:a,label:r,oldValue:s,newValue:o,inOld:n,inNew:i}=e;if(!i)return{key:a,label:r,verdict:"removed",oldValue:s};if(!n)return{key:a,label:r,verdict:"added",newValue:o};if((t.equal??qs)(s,o))return{key:a,label:r,verdict:"unchanged"};let l=t.tooLarge??(c=>Xs(c,or));return l(s)||l(o)?{key:a,label:r,verdict:"too-large",reason:t.tooLargeReason??"value too large to render a diff \u2014 restore still applies it"}:{key:a,label:r,verdict:"changed",oldValue:s,newValue:o}}function Af(e,t){return e.verdict==="unchanged"?e:{...e,verdict:"wont-apply",reason:t}}function Rf(e,t){let a=r=>r===void 0?[]:r instanceof Map?Array.from(r.keys()):Object.keys(r);return new Set([...a(e),...a(t)])}function Of(e,t={}){let a=e.toLowerCase();if(t[a])return t[a];for(let[f,v]of Object.entries(t))if(a.includes(f))return v;let r=e.split("").reduce((f,v)=>f+v.charCodeAt(0),0)*137%360,s=.7,o=.6,n=(1-Math.abs(2*o-1))*s,i=n*(1-Math.abs(r/60%2-1)),l=o-n/2,c=0,p=0,y=0;r<60?(c=n,p=i):r<120?(c=i,p=n):r<180?(p=n,y=i):r<240?(p=i,y=n):r<300?(c=i,y=n):(c=n,y=i);let h=f=>Math.round((f+l)*255).toString(16).padStart(2,"0");return`#${h(c)}${h(p)}${h(y)}`}function _f(e,t={}){let a=t.maxLength??40;if(e===void 0)return t.undefinedLabel??"undefined";if(e===null)return"null";try{if(typeof e=="function")return t.functionLabel??"(fn)";if(typeof e=="string")return e.length>a?`"${e.slice(0,a-3)}..."`:`"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";let r=JSON.stringify(e);return r.length>a?`[${e.length} items]`:r}if(typeof e=="object"){let r=Object.keys(e);if(r.length===0)return"{}";let s=JSON.stringify(e);return s.length<=a?s:`{ ${r.length} keys }`}return String(e).slice(0,a)}catch{return"[complex]"}}function Pf(e,t){if(e===t)return{summary:"no change",changedKeys:[],changedCount:0};if(typeof e!="object"||typeof t!="object"||e===null||t===null)return{summary:"changed",changedKeys:[],changedCount:0};let a=e,r=t,s=Object.keys(a),o=Object.keys(r),n=o.filter(h=>!s.includes(h)),i=s.filter(h=>!o.includes(h)),l=[];for(let h of s)o.includes(h)&&a[h]!==r[h]&&l.push(h);let c=[...n,...i,...l],p=[];if(n.length>0&&p.push(`+${n.length}`),i.length>0&&p.push(`-${i.length}`),l.length>0&&p.push(`~${l.length}`),p.length===0)return{summary:"nested change",changedKeys:[],changedCount:0};let y=c.length;return{summary:`${p.join(" ")} ${y===1?"key":"keys"}`,changedKeys:c,changedCount:y}}function ir(e){if(e==null)return"N/A";if(e===0)return"0 B";let t=1024,a=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(e)/Math.log(t));return`${(e/Math.pow(t,r)).toFixed(1)} ${a[r]}`}function Lf(e){if(e==null)return"N/A";if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;if(e<36e5){let r=Math.floor(e/6e4),s=Math.floor(e%6e4/1e3);return s>0?`${r}m ${s}s`:`${r}m`}let t=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4);return a>0?`${t}h ${a}m`:`${t}h`}function Mf(e){return e.toLocaleString()}var nr=5e4;function Nf(e,t=nr){try{let a=JSON.stringify(e);return a.length>t?`[omitted: ${ir(a.length)} \u2014 too large to copy]`:e}catch{return"[omitted: could not serialize]"}}function $f(e,t=50,a=20,r=20){if(e.length<=t)return e;let s=e.slice(0,a),o=e.slice(-r);return`${s}...${o}`}function Bf(e){if(e>=100&&e<200)return{text:String(e),color:w.info,meaning:"Informational"};if(e>=200&&e<300){let t={200:"OK",201:"Created",202:"Accepted",204:"No Content",206:"Partial Content"};return{text:String(e),color:w.success,meaning:t[e]||"Success"}}if(e>=300&&e<400){let t={301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect"};return{text:String(e),color:w.warning,meaning:t[e]||"Redirect"}}if(e>=400&&e<500){let t={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",408:"Request Timeout",409:"Conflict",410:"Gone",422:"Unprocessable Entity",429:"Too Many Requests"};return{text:String(e),color:w.error,meaning:t[e]||"Client Error"}}if(e>=500){let t={500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};return{text:String(e),color:w.error,meaning:t[e]||"Server Error"}}return{text:String(e),color:w.muted,meaning:"Unknown"}}function Df(e){return{GET:w.success,POST:w.info,PUT:w.warning,DELETE:w.error,PATCH:w.network,HEAD:w.muted,OPTIONS:w.secondary,CONNECT:w.critical,TRACE:w.env}[e.toUpperCase()]||w.muted}function zf(e){try{let t=new URL(e);return{protocol:t.protocol.replace(":",""),host:t.hostname,port:t.port||void 0,pathname:t.pathname,search:t.search||void 0,hash:t.hash||void 0}}catch{return null}}var Ye=[];function lr(e){Ye.unshift(e),Ye=Ye.slice(0,500)}function Ff(){return Ye}function Hf(){Ye=[]}var Zt=(e=>(e.Debug="debug",e.Info="info",e.Log="log",e.Warn="warn",e.Error="error",e))(Zt||{}),ea=(e=>(e.Auth="Auth",e.Custom="Custom",e.Debug="Debug",e.Error="Error",e.Generic="Generic",e.HTTPRequest="HTTP Request",e.Navigation="Navigation",e.Replay="Replay",e.State="State",e.System="System",e.Touch="Touch",e.UserAction="User Action",e))(ea||{});var jf=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,cr=class{constructor(){this.captureTransaction=e=>(this.logSentryEvent("transaction",e),e);this.captureSpan=e=>(this.logSentryEvent("span",e),e);this.captureEvent=e=>(this.logSentryEvent("event",e),e);this.captureLog=e=>(this.logSentryEvent("console",{message:e.message||"Log entry",level:e.level,category:"console",timestamp:e.timestamp,...e.attributes}),e);this.captureBreadcrumb=e=>{let t="unknown";try{let r=globalThis.getCurrentPathname;r&&(t=r())}catch{}let a=e.category;if(e.message?.toLowerCase().includes("ignore"))return null;if(e.message?.includes("Touch event within element:")&&(e.message=e.message.replace("Touch event within element:","")),a==="navigation"&&e.data?.from&&e.data?.to&&(e.message=`From ${e.data.from} To ${e.data.to}`),a==="touch"&&e.data?.path){e.message&&(e.message=e.message.trim());let r={...e.data,category:a,message:e.message,route:t,timestamp:new Date().toISOString(),path:e.message?[{label:e.message}]:e.data?.path};e.data=r}return this.logSentryEvent("breadcrumb",e),e}}logSentryEvent(e,t){let a="Generic",r=t.category;if(r)switch(r){case"touch":a="Touch";break;case"xhr":case"fetch":case"http":a="HTTP Request";break;case"navigation":a="Navigation";break;case"auth":a="Auth";break;case"console":a="System";break;case"debug":a="Debug";break;default:r.startsWith("ui.")?a="User Action":r.startsWith("replay.")?a="Replay":r.includes("redux")||r.includes("state")?a="State":a="Custom"}let s={id:jf(),timestamp:Date.now(),level:this.getSentryLevel(t),message:this.getSentryMessage(t),metadata:this.getSentryMetadata(t),type:a};lr(s)}getSentryLevel(e){switch(e.level){case"fatal":case"error":return"error";case"warning":return"warn";case"info":return"info";case"debug":return"debug";default:return"log"}}getSentryMessage(e){let t=e.message;return typeof t=="string"?t:`${e.type||"Unknown"} Event`}getSentryMetadata(e){let{message:t,level:a,type:r,...s}=e;return s}},Wf=new cr;import{useState as ta,useEffect as ur}from"react";import{jsx as O,jsxs as _e}from"react/jsx-runtime";var gt=xe.bubble.settings(),dr=xe.bubble.userPreferences(),aa={showEnvironment:true,showQueryButton:true,showWifiToggle:true,showEnvButton:false,showSentryButton:false,showStorageButton:false};function Uf({onPress:e}){let[t,a]=ta(aa);ur(()=>{r()},[]);let r=async()=>{try{let s=await F.getItem(gt);s&&a(JSON.parse(s))}catch(s){console.error("Failed to load bubble settings:",s)}};return O(Ma,{id:"bubble-settings",title:"SETTINGS",subtitle:`${Object.values(t).filter(Boolean).length}/6 visible`,icon:Nt,iconColor:"#10B981",iconBackgroundColor:"rgba(16, 185, 129, 0.1)",onPress:e||(()=>{}),index:5})}function Vf({onSettingsChange:e}){let[t,a]=ta(aa),[r,s]=ta(true);ur(()=>{o()},[]);let o=async()=>{try{let c=await F.getItem(gt);c&&a(JSON.parse(c))}catch(c){console.error("Failed to load bubble settings:",c)}finally{s(false)}},n=async c=>{try{await F.setItem(gt,JSON.stringify(c)),a(c),e?.(c)}catch(p){console.error("Failed to save bubble settings:",p)}},i=async c=>{let p={...t,[c]:!t[c]};try{let y=await F.getItem(dr),h=y?JSON.parse(y):{},f=c.replace("show","hasSet"),v={...h,[f]:true};await F.setItem(dr,JSON.stringify(v))}catch(y){console.error("Failed to save user preference marker:",y)}n(p)};if(r)return O(x,{style:E.detailContainer,children:O(B,{style:E.loadingText,children:"Loading settings..."})});let l=[{key:"showEnvironment",label:"Environment Indicator",description:"Shows current environment (dev, staging, prod)",icon:O(x,{style:[E.indicator,{backgroundColor:"#10B981"}]})},{key:"showQueryButton",label:"React Query Button",description:"Opens React Query dev tools",icon:O(x,{style:[E.indicator,{backgroundColor:"#F59E0B"}]})},{key:"showWifiToggle",label:"WiFi",description:"Toggle WiFi for testing offline scenarios",icon:O(x,{style:[E.indicator,{backgroundColor:"#8B5CF6"}]})},{key:"showEnvButton",label:"Environment Variables",description:"View and check environment variables",icon:O(Nt,{size:16,color:"#10B981"})},{key:"showSentryButton",label:"Sentry Events",description:"View captured Sentry events and errors",icon:O(x,{style:[E.indicator,{backgroundColor:"#a855f7"}]})},{key:"showStorageButton",label:"Storage Browser",description:"Browse and inspect AsyncStorage data",icon:O(Ba,{size:16,color:"#3B82F6"})}];return O(x,{style:E.detailContainer,children:_e(ug,{showsVerticalScrollIndicator:false,contentContainerStyle:E.scrollContent,"sentry-label":"ignore bubble settings scroll",children:[_e(x,{style:E.header,children:[O(B,{style:E.headerTitle,children:"Developer Tools Settings"}),O(B,{style:E.headerDescription,children:"Configure bubble button visibility"})]}),O(x,{style:E.sectionDivider,children:O(B,{style:E.sectionTitle,children:"Bubble Button Visibility"})}),O(x,{style:E.settingsList,children:l.map(c=>_e(x,{style:E.settingItem,children:[O(x,{style:E.settingIconContainer,children:c.icon}),_e(x,{style:E.settingContent,children:[O(B,{style:E.settingLabel,children:c.label}),O(B,{style:E.settingDescription,children:c.description})]}),O(dg,{"sentry-label":"ignore bubble settings section",value:t[c.key],onValueChange:()=>i(c.key),trackColor:{false:"#4B5563",true:"#10B981"},thumbColor:t[c.key]?"#fff":Y.textSecondary})]},c.key))}),_e(x,{style:E.footer,children:[_e(x,{style:E.noteContainer,children:[O(Da,{size:16,color:Y.textSecondary}),O(B,{style:E.noteText,children:"User status indicator is always visible and cannot be disabled"})]}),O(B,{style:E.restartNote,children:"Changes are saved automatically and will persist across app restarts"})]})]})})}async function Gf(){try{let e=await F.getItem(gt);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bubble settings:",e)}return aa}var E=He.create({scrollContent:{flexGrow:1},sectionCard:{backgroundColor:Y.input,borderRadius:8,padding:16,flexDirection:"row",alignItems:"center",marginBottom:12},iconContainer:{width:36,height:36,borderRadius:8,backgroundColor:"rgba(16, 185, 129, 0.1)",justifyContent:"center",alignItems:"center",marginRight:12},textContainer:{flex:1},title:{color:Y.text,fontSize:14,fontWeight:"600",marginBottom:2},subtitle:{color:Y.textSecondary,fontSize:12},chevron:{color:ot.text.icon,fontSize:20},detailContainer:{flex:1,backgroundColor:Y.card},loadingText:{color:Y.textSecondary,fontSize:14,textAlign:"center",marginTop:20},header:{padding:16,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.2)"},headerTitle:{color:Y.text,fontSize:16,fontWeight:"600",marginBottom:4},headerDescription:{color:Y.textSecondary,fontSize:12},settingsList:{padding:16},settingItem:{flexDirection:"row",alignItems:"center",paddingVertical:12,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},settingIconContainer:{width:32,height:32,justifyContent:"center",alignItems:"center",marginRight:12},settingContent:{flex:1,marginRight:12},settingLabel:{color:Y.text,fontSize:14,fontWeight:"500",marginBottom:2},settingDescription:{color:ot.text.icon,fontSize:11},indicator:{width:8,height:8,borderRadius:4},footer:{padding:16,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.2)"},noteContainer:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},noteText:{color:Y.textSecondary,fontSize:12,flex:1},restartNote:{color:ot.text.icon,fontSize:11,fontStyle:"italic"},sectionDivider:{paddingHorizontal:16,paddingVertical:8,marginTop:8,borderTopWidth:1,borderTopColor:"rgba(128, 128, 128, 0.12)"},sectionTitle:{color:Y.textSecondary,fontSize:12,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"}});function hr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Yf(e,t,a={}){let r=a.storage??F,s=a.parse??(l=>JSON.parse(l)),o=a.serialize??(l=>JSON.stringify(l));function n(l){let c=hr(t)&&hr(l)?{...t,...l}:l;return a.sanitize?a.sanitize(c,l):c}async function i(){try{let l=await r.getItem(e);return l==null||l===""?null:n(s(l))}catch{return null}}return{key:e,defaults:t,loadOrNull:i,async load(){return await i()??t},async save(l){try{await r.setItem(e,o(l))}catch{}},async clear(){try{await r.removeItem(e)}catch{}}}}import{useEffect as Kf,useId as Jf,useRef as gr,useState as qf}from"react";import{createPortal as Xf}from"react-dom";import{jsx as Ke,jsxs as Qf}from"react/jsx-runtime";function fr(){let[e,t]=qf(false),a=gr(null),r=gr(null),s=Jf(),o=(n=true)=>{t(false),n&&a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true})};return Kf(()=>{if(!e)return;r.current?.focus({preventScroll:true});let n=l=>{l.target instanceof Node&&!a.current?.contains(l.target)&&t(false)},i=l=>{l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),t(false),a.current?.querySelector('[data-account-launcher] [role="button"]')?.focus({preventScroll:true}))};return document.addEventListener("pointerdown",n),document.addEventListener("keydown",i),()=>{document.removeEventListener("pointerdown",n),document.removeEventListener("keydown",i)}},[e]),typeof document>"u"?null:Xf(Qf("div",{ref:a,"data-buoy-account":"",style:{position:"fixed",right:"max(16px, env(safe-area-inset-right))",bottom:"max(20px, env(safe-area-inset-bottom))",zIndex:99999,colorScheme:"dark",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:[Ke("style",{children:`
2
2
  [data-buoy-account] { font-size: 14px; line-height: 1.5; text-align: left; }
3
3
  [data-buoy-account] [role="button"], [data-buoy-account] [role="link"] { cursor: pointer; }
4
- [data-buoy-account] [role="button"]:focus-visible, [data-buoy-account] [role="link"]:focus-visible { outline: 2px solid ${u.color.accent}; outline-offset: 3px; }
4
+ [data-buoy-account] [role="button"]:focus-visible, [data-buoy-account] [role="link"]:focus-visible { outline: 2px solid ${d.color.accent}; outline-offset: 3px; }
5
5
  [data-buoy-account] [role="link"]:hover { background: rgba(255,255,255,.06); }
6
6
  [data-buoy-account] [aria-disabled="true"] { cursor: wait; }
7
7
  [data-buoy-account] .buoy-account-panel {
@@ -11,4 +11,4 @@
11
11
  box-shadow: 0 18px 60px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2);
12
12
  outline: none;
13
13
  }
14
- `}),We("div",{"data-account-launcher":"",children:We(tn,{expanded:e,onPress:()=>t(o=>!o)})}),e&&We("section",{ref:s,className:"buoy-account-panel",role:"dialog","aria-labelledby":r,tabIndex:-1,onBlur:o=>{o.relatedTarget instanceof Node&&!a.current?.contains(o.relatedTarget)&&n(false)},children:We(rn,{titleId:r,onClose:()=>n()})})]}),document.body)}import{useState as ae,useRef as z,useEffect as se,useLayoutEffect as Np,useCallback as B,memo as Gt,isValidElement as zp,cloneElement as Wp}from"react";var ot=class{static async save(e,t){this.cache.set(e,t);try{await N.setItem(e,JSON.stringify(t))}catch{}}static async load(e){if(this.cache.has(e))return this.cache.get(e);try{let t=await N.getItem(e);if(t){let a=JSON.parse(t);return this.cache.set(e,a),a}}catch{}return null}static saveMinimized(e,t){return this.save(e,{mode:t.mode,panelHeight:t.panelHeight,dimensions:t.floatingDimensions&&t.floatingPosition?{...t.floatingDimensions,top:t.floatingPosition.y,left:t.floatingPosition.x}:void 0,isVisible:false})}};ot.cache=new Map;import{jsx as p,jsxs as H}from"react/jsx-runtime";var P={base:"#121212",card:"#1A1A1A",border:"#333333",textMuted:"#888888",primary:"#20C997"},$={primary:"#F5F5F7",primaryLight:"#F5F5F7",secondary:"#A1A1A6",muted:"#8E8E93",success:"#34C759",info:"#00B8E6"},jp=100,Fp=400,ts=500,je=80,it=()=>typeof window<"u"?window.innerWidth:0,ce=()=>typeof window<"u"?window.innerHeight:0,as=e=>1-Math.pow(1-e,3),Fe=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;function ye(e,t,a,s){let r=0,n=false,o=performance.now(),i=l=>{if(n)return;let h=Math.min((l-o)/e,1);a(t(h)),h<1?r=requestAnimationFrame(i):s?.()};return r=requestAnimationFrame(i),()=>{n=true,cancelAnimationFrame(r)}}function Hp(){if(typeof document>"u")return{top:0,left:0,right:0,bottom:0};let e=document.createElement("div");e.style.cssText="position:fixed;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);visibility:hidden;pointer-events:none",document.body.appendChild(e);let t=e.getBoundingClientRect();return document.body.removeChild(e),{top:Math.max(0,t.top),left:Math.max(0,t.left),right:Math.max(0,window.innerWidth-t.right),bottom:Math.max(0,window.innerHeight-t.bottom)}}function Yt(e,t){let a=Math.max(je,window.innerWidth-t.left-t.right),s=Math.max(je,window.innerHeight-t.top-t.bottom),r=Math.min(e.width,a),n=Math.min(e.height,s);return{width:r,height:n,left:Math.max(t.left,Math.min(e.left,window.innerWidth-t.right-r)),top:Math.max(t.top,Math.min(e.top,window.innerHeight-t.bottom-n))}}var Up=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[p("line",{x1:18,y1:6,x2:6,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"}),p("line",{x1:6,y1:6,x2:18,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"})]}),Vp=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>p("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:p("line",{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:a,strokeLinecap:"round"})}),Gp=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[p("rect",{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:a}),p("rect",{x:3,y:14,width:18,height:7,fill:t})]}),Yp=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>H("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[p("rect",{x:3,y:3,width:14,height:14,rx:2,stroke:t,strokeWidth:a}),p("line",{x1:7,y1:17,x2:7,y2:21,stroke:t,strokeWidth:a}),p("line",{x1:7,y1:21,x2:21,y2:21,stroke:t,strokeWidth:a}),p("line",{x1:21,y1:21,x2:21,y2:7,stroke:t,strokeWidth:a}),p("line",{x1:17,y1:7,x2:21,y2:7,stroke:t,strokeWidth:a})]}),Jt={close:"#FF5F57",minimize:"#FEBC2E",toggleMode:"#28C840"},qt=24,Jp=2,Kt=8,Xt=e=>({width:qt,height:qt,borderRadius:qt/2,display:"flex",alignItems:"center",justifyContent:"center",background:`radial-gradient(circle, ${e} 6px, transparent 6px)`,border:"none",padding:0,cursor:"pointer",flexShrink:0});function qp({onClose:e,onMinimize:t,onToggleMode:a,mode:s}){let r=s==="floating"?Gp:Yp,n=s==="floating"?"Dock to bottom sheet":"Make floating window";return H("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:Jp},children:[t&&p("button",{type:"button",onClick:t,style:Xt(Jt.minimize),"aria-label":"Minimize modal",children:p(Vp,{size:Kt,color:"#7A5A00",strokeWidth:1.5})}),a&&p("button",{type:"button",onClick:a,style:Xt(Jt.toggleMode),"aria-label":n,children:p(r,{size:Kt,color:"#004A1A",strokeWidth:1.5})}),p("button",{type:"button",onClick:e,style:Xt(Jt.close),"aria-label":"Close modal",children:p(Up,{size:Kt,color:"#4A0000",strokeWidth:1.5})})]})}var ss=Gt(function({isResizing:e,mode:t,hasCustomContent:a=false,variant:s="default"}){let r=t==="floating",n=s==="night";return H("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative",justifyContent:a?"center":void 0,minHeight:a?32:void 0,paddingTop:a?0:8,paddingBottom:a?0:8,backgroundColor:"transparent"},children:[p("div",{style:{width:n?36:e?40:r?50:40,height:n||r?5:3,backgroundColor:n?u.color.placeholder:e?P.primary:r?P.textMuted:P.primary,borderRadius:n?2.5:2,boxShadow:n?"none":`0 0 4px ${P.primary}99`}}),e&&t==="bottomSheet"&&p("div",{style:{position:"absolute",display:"flex",flexDirection:"row",gap:2,marginTop:12},children:[0,1,2].map(o=>p("div",{style:{width:12,height:1,backgroundColor:$.success,opacity:.6}},o))})]})}),Kp=Gt(function({onAcknowledge:e}){return p("div",{style:{backgroundColor:`${$.info}15`,borderLeft:`3px solid ${$.info}`,borderRadius:8,margin:"8px 12px 4px",overflow:"hidden",boxShadow:`0 0 8px ${$.info}4D`,flexShrink:0},children:H("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:12,gap:12},children:[H("div",{style:{width:32,height:32,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:[p("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${$.info}`,opacity:.6,transform:"scale(0.8)",boxSizing:"border-box"}}),p("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${$.info}`,boxSizing:"border-box"}})]}),H("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:13,fontWeight:600,color:$.info,letterSpacing:.3},children:"\u{1F4A1} Pro Tip"}),p("span",{style:{fontSize:12,color:$.primaryLight,lineHeight:"16px"},children:"Double-tap the header to transform this into a floating modal"})]}),p("button",{type:"button",onClick:e,style:{backgroundColor:`${$.info}30`,padding:"6px 12px",borderRadius:6,border:`1px solid ${$.info}50`,fontSize:12,fontWeight:600,color:$.info,cursor:"pointer",fontFamily:"inherit",flexShrink:0},children:"Got it!"})]})})});function rs({header:e,isResizing:t,mode:a,onMinimize:s,variant:r="default"}){if(e?.customContent){let n=e.customContent;return zp(e.customContent)&&s&&(n=Wp(e.customContent,{onMinimize:s})),H("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},children:[p(ss,{isResizing:t,mode:a,hasCustomContent:true,variant:r}),n]})}return H("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",minWidth:0},children:[p(ss,{isResizing:t,mode:a,variant:r}),H("div",{style:{padding:"0 16px",display:"flex",flexDirection:"column",alignItems:"center"},children:[e?.title&&p("span",{style:{fontSize:16,fontWeight:600,color:$.primary},children:e.title}),e?.subtitle&&p("span",{style:{fontSize:12,color:$.secondary,paddingTop:4},children:e.subtitle})]}),p("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:p("span",{style:{fontSize:10,color:$.muted,fontStyle:"italic"},children:"Double tap: Toggle \u2022 Triple tap: Close"})})]})}var Xp=({visible:e,onClose:t,children:a,header:s,styles:r={},minHeight:n=jp,maxHeight:o,initialHeight:i=Fp,animatedHeight:l,benchMotion:h,initialMode:b="bottomSheet",onModeChange:S,persistenceKey:f,enablePersistence:m=true,initialFloatingPosition:w,footer:R,footerHeight:V=0,onBack:ne,onMinimize:D,minimizeRequest:y=0,minimizeTargetPosition:Z,initialModalState:L,zIndex:He,disableScrollWrapper:hs=false,background:ta=true,variant:dt="night"})=>{let[Y]=ae(Hp),[aa,sa]=ae(!m),[A,ht]=ae(b),Ue=z(S);Ue.current=S;let[ke,ue]=ae(false),[gt,Ie]=ae(false),[gs,pt]=ae(i),[ee,_e]=ae(()=>Yt({width:it(),height:ts,top:w?.y??(ce()-ts)/2,left:w?.x??0},Y)),[ps,Ve]=ae(false),[fs,ra]=ae(false),bs=ya(),de=z(i),J=z(ee),j=z({x:ee.left,y:ee.top}),Ge=z(null),ft=z(null),te=z(null),he=z([]),X=B(()=>{he.current.forEach(c=>c()),he.current=[]},[]);se(()=>{J.current=ee},[ee]),se(()=>X,[X]);let na=o||ce()-Y.top;se(()=>{if(!m||!f){sa(true);return}let c=true;return(async()=>{let d=await ot.load(f);if(c&&d&&(d.mode&&(ht(d.mode),Ue.current?.(d.mode)),d.panelHeight&&(pt(d.panelHeight),de.current=d.panelHeight),d.dimensions)){let v=Yt(d.dimensions,Y);_e(v),j.current={x:v.left,y:v.top}}c&&sa(true)})(),()=>{c=false}},[f,m]),se(()=>{if(!m||!f||!aa)return;let c=setTimeout(()=>{ot.save(f,{mode:A,panelHeight:de.current,dimensions:ee,isVisible:e})},500);return()=>clearTimeout(c)},[A,gs,ee,e,f,m,aa]),se(()=>{let c=true;return(async()=>{try{let d=be.modal.hintAcknowledged(),v=await N.getItem(d);c&&(Ve(v!=="true"),ra(true))}catch{c&&(Ve(true),ra(true))}})(),()=>{c=false}},[]);let ms=B(async()=>{try{let c=be.modal.hintAcknowledged();await N.setItem(c,"true"),Ve(false)}catch{Ve(false)}},[]),bt=B(()=>{Ie(false),ue(false);let c=A==="bottomSheet"?"floating":"bottomSheet";ht(c),Ue.current?.(c)},[A]);se(()=>{Ie(false),ue(false)},[A]);let ge=B(()=>{if(!D)return;let c={mode:A,panelHeight:de.current,floatingPosition:{x:J.current.left,y:J.current.top},floatingDimensions:{width:J.current.width,height:J.current.height}};m&&f&&ot.saveMinimized(f,c);let d=Z?.x??it()-50,v=Z?.y??ce()-150;if(X(),A==="bottomSheet"){let k=Ge.current;if(!k){D(c);return}let T=ce();he.current.push(ye(300,Fe,O=>{k.style.opacity=String(1-O),k.style.transform=`translateY(${O*T}px)`},()=>D(c)))}else{let k=te.current;if(!k){D(c);return}let T={...j.current};he.current.push(ye(300,Fe,O=>{k.style.opacity=String(1-O);let pe=T.x+(d-T.x)*O,fe=T.y+(v-T.y)*O;k.style.transform=`translate(${pe}px, ${fe}px)`},()=>D(c)))}},[A,D,Z,X,m,f]),oa=z(y);se(()=>{oa.current!==y&&(oa.current=y,ge())},[y,ge]),se(()=>{if(L&&(L.mode&&(ht(L.mode),Ue.current?.(L.mode)),L.panelHeight&&(pt(L.panelHeight),de.current=L.panelHeight),L.floatingDimensions&&L.floatingPosition)){let c={width:L.floatingDimensions.width,height:L.floatingDimensions.height,top:L.floatingPosition.y,left:L.floatingPosition.x};_e(c),j.current={x:L.floatingPosition.x,y:L.floatingPosition.y}}},[L]),Np(()=>{if(e)if(X(),A==="bottomSheet"){let c=Ge.current;if(!c)return;let d=ce();c.style.transform=`translateY(${d}px)`,c.style.opacity="0",he.current.push(ye(300,as,v=>{c.style.transform=`translateY(${(1-v)*d}px)`}),ye(200,Fe,v=>{c.style.opacity=String(v)}))}else{let c=te.current;if(!c)return;j.current={x:J.current.left,y:J.current.top},c.style.transform=`translate(${j.current.x}px, ${j.current.y}px)`,c.style.opacity="0",he.current.push(ye(200,Fe,d=>{c.style.opacity=String(d)}))}},[e,A,X]);let ia=z(0),Oe=z(0),Ee=z(null),Ye=B(()=>{let c=Date.now();c-ia.current>500&&(Oe.current=0),Oe.current++,ia.current=c,Ee.current&&clearTimeout(Ee.current),Ee.current=setTimeout(()=>{Oe.current===2?bt():Oe.current>=3&&D&&ge(),Oe.current=0},300)},[bt,D,ge]);se(()=>()=>{Ee.current&&clearTimeout(Ee.current)},[]);let Je=z({active:false,resizing:false,startY:0,headerOffsetY:0,samples:[]}),ys=B(c=>{if(A!=="bottomSheet"||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let d=Je.current;d.active=true,d.resizing=false,d.startY=c.clientY;let v=c.currentTarget.getBoundingClientRect();d.headerOffsetY=c.clientY-v.top,d.samples=[{t:performance.now(),y:c.clientY}],c.currentTarget.setPointerCapture(c.pointerId)},[A]),Ss=B(c=>{let d=Je.current;if(!d.active)return;let v=c.clientY-d.startY;if(!d.resizing&&Math.abs(v)>3&&(d.resizing=true,X(),ue(true)),!d.resizing)return;let k=c.clientY-d.headerOffsetY,T=ce()-k;T=Math.max(n,Math.min(T,na)),de.current=T,ft.current&&(ft.current.style.height=`${T}px`);let O=performance.now();for(d.samples.push({t:O,y:c.clientY});d.samples.length>2&&O-d.samples[0].t>100;)d.samples.shift()},[n,na,X]),vs=B(c=>{let d=Je.current;if(!d.active)return;if(d.active=false,!d.resizing){Ye();return}ue(false);let v=de.current,k=c.clientY-d.startY,T=d.samples[0],O=d.samples[d.samples.length-1];if((O&&T&&O.t>T.t?(O.y-T.y)/(O.t-T.t):0)>.8&&k>50||k>150&&v<=n){let pe=Ge.current;if(X(),pe){let fe=ce();he.current.push(ye(200,Fe,F=>{pe.style.opacity=String(1-F)}),ye(300,as,F=>{pe.style.transform=`translateY(${F*fe}px)`},()=>t()))}else t();return}pt(v)},[n,t,Ye,X]),Cs=B(()=>{let c=Je.current;c.active&&(c.active=false,c.resizing=false,ue(false))},[]),qe=z({active:false,dragging:false,startX:0,startY:0,startPos:{x:0,y:0}}),ws=B(c=>{if(A!=="floating"||ke||c.button!==0||c.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let d=qe.current;d.active=true,d.dragging=false,d.startX=c.clientX,d.startY=c.clientY,d.startPos={...j.current},c.currentTarget.setPointerCapture(c.pointerId)},[A,ke]),Ts=B(c=>{let d=qe.current;if(!d.active)return;let v=c.clientX-d.startX,k=c.clientY-d.startY;if(!d.dragging&&Math.abs(v)+Math.abs(k)>5&&(d.dragging=true,Ie(true)),!d.dragging)return;let T=d.startPos.x+v,O=d.startPos.y+k;j.current={x:T,y:O},te.current&&(te.current.style.transform=`translate(${T}px, ${O}px)`)},[]),xs=B(()=>{let c=qe.current;if(!c.active)return;if(c.active=false,!c.dragging){Ye();return}Ie(false);let d=J.current,v=Yt({...d,left:j.current.x,top:j.current.y},Y),k=v.left,T=v.top;j.current={x:k,y:T},te.current&&(te.current.style.transform=`translate(${k}px, ${T}px)`),_e(O=>({...O,left:k,top:T}))},[Y,Ye]),ks=B(()=>{let c=qe.current;c.active&&(c.active=false,c.dragging=false,Ie(false))},[]),mt=z({active:false,corner:"bottomRight",startX:0,startY:0,start:{width:0,height:0,top:0,left:0}}),Is=B(c=>d=>{if(A!=="floating")return;d.stopPropagation();let v=mt.current;v.active=true,v.corner=c,v.startX=d.clientX,v.startY=d.clientY,v.start={...J.current},ue(true),d.currentTarget.setPointerCapture(d.pointerId)},[A]),_s=B(c=>{let d=mt.current;if(!d.active)return;let v=c.clientX-d.startX,k=c.clientY-d.startY;if(Math.abs(v)<.5&&Math.abs(k)<.5)return;let T=Math.max(0,Y.left),O=ce()-Math.max(0,Y.bottom),pe=it()-Math.max(0,Y.right),fe=it()*.25,F=d.start,yt=F.left+F.width,St=F.top+F.height,Ae=F.left,Ke=F.top,ga=yt,vt=St;d.corner==="bottomLeft"?(Ae=Math.max(T,Math.min(F.left+v,yt-fe)),vt=Math.min(O,Math.max(St+k,F.top+je))):(ga=Math.min(pe,Math.max(yt+v,F.left+fe)),vt=Math.min(O,Math.max(St+k,F.top+je)));let Os=Math.max(fe,ga-Ae),Es=Math.max(je,vt-Ke),pa={width:Os,height:Es,left:Ae,top:Ke};J.current=pa,j.current={x:Ae,y:Ke},_e(pa),te.current&&(te.current.style.transform=`translate(${Ae}px, ${Ke}px)`)},[Y.left,Y.right,Y.bottom]),la=B(()=>{let c=mt.current;c.active&&(c.active=false,ue(false),_e(J.current))},[]);if(!e)return p("div",{style:{display:"none"},"aria-hidden":true,children:a},"hidden");let ca=s?.title||"Dev tool panel",_=dt==="night",ua=ta&&_?p("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},"aria-hidden":true,children:p(Tt,{})}):null,da=H("div",{style:{flex:1,minHeight:0,position:"relative",display:"flex",flexDirection:"column",backgroundColor:_?"transparent":P.base,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden",...r.content},children:[ta&&!_?p(Tt,{}):null,hs?p("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",paddingBottom:V},children:a}):p("div",{style:{flex:1,minHeight:0,overflowY:"auto",paddingBottom:V},children:a}),R?p("div",{style:{position:"absolute",left:0,right:0,bottom:0,backgroundColor:P.base,borderBottomLeftRadius:16,borderBottomRightRadius:16},children:R}):null]}),ha=p("div",{style:{position:"absolute",top:4,right:4,zIndex:10},children:p(qp,{onClose:t,onMinimize:D?ge:void 0,onToggleMode:bt,mode:A})});if(A==="floating"){let c=gt||ke;return H("div",{ref:te,role:"dialog","aria-label":ca,style:{position:"fixed",left:0,top:0,width:ee.width,height:ee.height,transform:`translate(${j.current.x}px, ${j.current.y}px)`,display:"flex",flexDirection:"column",backgroundColor:_?u.color.bg:P.card,borderRadius:_?u.radius.sheet:6,border:_?`1px solid ${u.color.accent}55`:c?`2px solid ${P.primary}`:`1px solid ${P.border}`,boxShadow:_?`0 0 14px ${u.color.accent}38`:c?`0 0 12px ${P.primary}7A`:`0 0 20px ${P.primary}4D`,..._?{overflow:"hidden"}:null,boxSizing:"border-box",zIndex:He??1e3,...r.container},children:[ua,p("div",{onPointerDown:ws,onPointerMove:Ts,onPointerUp:xs,onPointerCancel:ks,style:{borderTopLeftRadius:_?u.radius.sheet:6,borderTopRightRadius:_?u.radius.sheet:6,backgroundColor:_?"transparent":P.card,minHeight:56,border:_?"none":`1px solid ${P.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:gt?"grabbing":"grab",position:"relative"},children:p(rs,{header:s,isResizing:gt||ke,mode:A,onMinimize:D?ge:void 0,variant:dt})}),ha,da,["bottomLeft","bottomRight"].map(d=>p("div",{onPointerDown:Is(d),onPointerMove:_s,onPointerUp:la,onPointerCancel:la,style:{position:"absolute",width:30,height:30,bottom:4,...d==="bottomLeft"?{left:4}:{right:4},zIndex:1e3,touchAction:"none",cursor:d==="bottomLeft"?"nesw-resize":"nwse-resize"},children:p("div",{style:{width:20,height:20,borderRadius:10,boxSizing:"border-box",backgroundColor:c?`${$.success}1A`:"transparent",border:c?`2px solid ${$.success}`:"none",boxShadow:c?`0 0 8px ${$.success}99`:"none"}})},d))]},"floating")}return p("div",{style:{position:"fixed",inset:0,zIndex:He??1e3,pointerEvents:"none"},children:p("div",{ref:Ge,style:{position:"absolute",bottom:0,left:0,right:0,pointerEvents:"auto"},children:H("div",{ref:ft,role:"dialog","aria-label":ca,style:{height:de.current,display:"flex",flexDirection:"column",backgroundColor:_?u.color.bg:P.card,borderTopLeftRadius:_?u.radius.sheet:6,borderTopRightRadius:_?u.radius.sheet:6,border:_?`1px solid ${u.color.accent}55`:`1px solid ${P.border}`,boxShadow:_?`0 -4px 10px ${u.color.accent}38`:`0 -4px 12px ${P.primary}33`,..._?{overflow:"hidden"}:null,boxSizing:"border-box",position:"relative",...r.container},children:[ua,p("div",{onPointerDown:ys,onPointerMove:Ss,onPointerUp:vs,onPointerCancel:Cs,style:{borderTopLeftRadius:_?u.radius.sheet:6,borderTopRightRadius:_?u.radius.sheet:6,backgroundColor:_?"transparent":P.card,minHeight:56,border:_?"none":`1px solid ${P.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:"ns-resize",position:"relative"},children:p(rs,{header:s,isResizing:ke,mode:A,onMinimize:D?ge:void 0,variant:dt})}),ha,fs&&ps&&!bs&&p(Kp,{onAcknowledge:ms}),da]})})},"bottomSheet")},Qp=Gt(e=>ma()().status!=="admitted"?e.visible?p(es,{}):null:p(Xp,{...e}));import{Children as Zp,useEffect as ef,useRef as tf}from"react";import{Fragment as af,jsx as W,jsxs as lt}from"react/jsx-runtime";function sf({children:e,style:t}){return W(M,{style:[g.sectionLabel,t],children:e})}function rf({children:e,centered:t,tone:a="tertiary",style:s}){let r=Pe.flatten(s),n=!!r&&(r.marginHorizontal!=null||r.margin!=null);return W(M,{style:[g.footnote,n?null:g.footnoteInset,a==="secondary"?g.footnoteSecondary:null,a==="warning"?g.footnoteWarning:null,a==="danger"?g.footnoteDanger:null,t?g.footnoteCentered:null,s],children:e})}function nf({children:e,padded:t,glass:a,style:s}){return W(x,{style:[g.card,a?g.cardGlass:null,t?g.cardPadded:null,s],children:e})}function ns({inset:e=u.rowPadH}){return W(x,{style:[g.separator,{marginLeft:e}]})}function of({children:e,inset:t=u.rowPadH}){let a=Zp.toArray(e);return W(af,{children:a.map((s,r)=>lt(x,{children:[r>0?W(ns,{inset:t}):null,s]},s.key??r))})}var os=56,is=32,ct=22,ls=5,lf=os-ct-ls*2;function cf({value:e,onValueChange:t,disabled:a,testID:s,accessibilityLabel:r}){let n=tf(new kt.Value(e?1:0)).current;return ef(()=>{kt.timing(n,{toValue:e?1:0,duration:200,useNativeDriver:Jh.OS!=="web"}).start()},[e,n]),W(Qe,{activeOpacity:.8,disabled:a,onPress:()=>t(!e),testID:s,accessibilityLabel:r,accessibilityRole:"switch",accessibilityState:{checked:e,disabled:a},hitSlop:{top:8,bottom:8,left:8,right:8},style:[g.switchTrack,e?g.switchTrackOn:null,a?g.switchDisabled:null],children:W(kt.View,{style:[g.switchThumb,e?g.switchThumbOn:null,{transform:[{translateX:n.interpolate({inputRange:[0,1],outputRange:[0,lf]})}]}]})})}function uf({label:e,selected:t,onPress:a,disabled:s,icon:r,testID:n}){return lt(Qe,{activeOpacity:.7,disabled:s||!a,onPress:a,testID:n,style:[g.chip,t?g.chipSelected:null,s?g.chipDisabled:null],children:[r,W(M,{style:[g.chipText,t?g.chipTextSelected:null],children:e})]})}function df({label:e,onPress:t,variant:a="secondary",size:s="lg",icon:r,disabled:n,fullWidth:o=true,testID:i,accessibilityLabel:l}){let h=a==="primary"?u.color.onAccent:a==="tertiary"?u.color.text:a==="destructive"?u.color.danger:u.color.accent;return lt(Qe,{activeOpacity:.7,disabled:n,onPress:t,testID:i,accessibilityRole:"button",accessibilityLabel:l??e,accessibilityState:{disabled:!!n},style:[g.button,s==="md"?g.buttonMd:g.buttonLg,a==="primary"?g.buttonPrimary:a==="ghost"?g.buttonGhost:g.buttonPlate,o?g.buttonFullWidth:null,n?g.buttonDisabled:null],children:[r,W(M,{style:[s==="md"?g.buttonTextMd:g.buttonTextLg,{color:h}],children:e})]})}function hf({tabs:e,activeKey:t,onChange:a,size:s="md",glass:r,testIDPrefix:n}){let o=s==="sm";return W(x,{style:[g.segmentTrack,r?g.segmentTrackGlass:null],children:e.map(i=>{let l=i.key===t;return lt(Qe,{activeOpacity:.7,testID:n?`${n}-${i.key}`:void 0,accessibilityRole:"tab",accessibilityState:{selected:l},accessibilityLabel:i.label,onPress:()=>a(i.key),style:[g.segment,o?g.segmentSm:null,l?r?g.segmentActiveGlass:g.segmentActive:null],children:[W(M,{style:[g.segmentText,o?g.segmentTextSm:null,l?g.segmentTextActive:null],children:i.label}),l?W(x,{style:[g.segmentUnderline,o?g.segmentUnderlineSm:null]}):null]},i.key)})})}function gf({label:e,tone:t="neutral"}){let a=t==="accent"?g.badgeAccent:t==="warning"?g.badgeWarning:t==="danger"?g.badgeDanger:t==="info"?g.badgeInfo:g.badgeNeutral,s=t==="accent"?g.badgeTextAccent:t==="warning"?g.badgeTextWarning:t==="danger"?g.badgeTextDanger:t==="info"?g.badgeTextInfo:g.badgeTextNeutral;return W(x,{style:[g.badge,a],children:W(M,{style:[g.badgeText,s],children:e})})}var g=Pe.create({sectionLabel:{color:u.color.textSecondary,fontSize:u.font.label,fontWeight:"600",letterSpacing:Ca,textTransform:"uppercase",marginBottom:8,marginLeft:u.labelInset},footnote:{color:u.color.textTertiary,fontSize:u.font.caption,fontWeight:"500",lineHeight:u.font.caption*1.4,marginTop:8},footnoteInset:{marginLeft:u.labelInset},footnoteSecondary:{color:u.color.textSecondary},footnoteWarning:{color:u.color.warning},footnoteDanger:{color:u.color.danger},footnoteCentered:{textAlign:"center",marginLeft:0},card:{backgroundColor:u.color.surface,borderRadius:u.radius.card,borderWidth:1,borderColor:u.color.border,overflow:"hidden"},cardGlass:{backgroundColor:u.color.glass,borderColor:u.color.glassBorder},cardPadded:{padding:u.cardPad,gap:10},separator:{height:Pe.hairlineWidth,backgroundColor:u.color.separator},switchTrack:{width:os,height:is,borderRadius:is/2,borderWidth:1,borderColor:u.color.fillTertiary,backgroundColor:u.color.surfaceElevated,paddingHorizontal:ls,justifyContent:"center",overflow:"hidden"},switchTrackOn:{backgroundColor:u.color.accentFill,borderColor:u.color.accentBorderStrong},switchDisabled:{opacity:.4},switchThumb:{width:ct,height:ct,borderRadius:ct/2,backgroundColor:u.color.knob},switchThumbOn:{backgroundColor:u.color.accent},chip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:14,paddingVertical:9,borderRadius:u.radius.chip,borderWidth:1.5,backgroundColor:u.color.buttonSurface,borderColor:u.color.fillTertiary},chipSelected:{borderColor:u.color.accentBorderStrong},chipDisabled:{opacity:.4},chipText:{fontSize:u.font.body,fontWeight:"500",color:u.color.textSecondary},chipTextSelected:{color:u.color.accent},button:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},buttonMd:{height:34,paddingHorizontal:16,borderRadius:17},buttonLg:{height:50,paddingHorizontal:20,borderRadius:25},buttonPrimary:{backgroundColor:u.color.accent},buttonPlate:{backgroundColor:u.color.button},buttonGhost:{backgroundColor:"transparent"},buttonFullWidth:{alignSelf:"stretch"},buttonDisabled:{opacity:.4},buttonTextMd:{fontSize:15,fontWeight:"600"},buttonTextLg:{fontSize:17,fontWeight:"600"},segmentTrack:{flex:1,flexDirection:"row",backgroundColor:u.color.bg,borderRadius:u.radius.row,borderWidth:1,borderColor:u.color.border,padding:3},segment:{flex:1,paddingVertical:8,alignItems:"center",justifyContent:"center",borderRadius:u.radius.segment},segmentTrackGlass:{backgroundColor:u.color.glass,borderColor:u.color.glassBorder},segmentActive:{backgroundColor:u.color.surfaceElevated},segmentActiveGlass:{backgroundColor:u.color.glassElevated},segmentText:{fontSize:u.font.caption,fontWeight:"500",color:u.color.textSecondary},segmentTextActive:{fontWeight:"600",color:u.color.text},segmentUnderline:{position:"absolute",bottom:2,width:24,height:2.5,borderRadius:1.25,backgroundColor:u.color.accent,shadowColor:u.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:6},segmentSm:{paddingVertical:5},segmentTextSm:{fontSize:12},segmentUnderlineSm:{bottom:1.5,width:20,height:2,borderRadius:1},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:u.radius.badge,alignSelf:"flex-start"},badgeText:{fontSize:u.font.micro,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"},badgeAccent:{backgroundColor:u.color.accentSoft},badgeTextAccent:{color:u.color.accent},badgeWarning:{backgroundColor:u.color.warningSoft},badgeTextWarning:{color:u.color.warning},badgeDanger:{backgroundColor:u.color.dangerSoft},badgeTextDanger:{color:u.color.danger},badgeInfo:{backgroundColor:u.color.infoSoft},badgeTextInfo:{color:u.color.info},badgeNeutral:{backgroundColor:u.color.fillSecondary},badgeTextNeutral:{color:u.color.textSecondary}});import{jsx as xe,jsxs as pf}from"react/jsx-runtime";function Qt(e){switch(wt(String(e))){case"dev":return{label:"DEV",backgroundColor:C.warning};case"qa":return{label:"QA",backgroundColor:C.optional};case"staging":return{label:"STAGING",backgroundColor:C.success};case"prod":return{label:"PROD",backgroundColor:C.error};case"local":default:return{label:"LOCAL",backgroundColor:C.info}}}function ff({color:e}){return xe("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:xe("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function bf({environment:e,interactive:t=false,onPress:a}){let s=Qt(e);return pf("button",{onClick:t?a:void 0,"aria-label":`Environment: ${s.label}`,style:{display:"flex",flexDirection:"row",alignItems:"center",padding:`6px ${t?4:8}px 6px 8px`,flexShrink:0,background:"none",border:"none",cursor:t?"pointer":"default"},children:[xe("div",{style:{width:8,height:8,borderRadius:4,backgroundColor:s.backgroundColor,marginRight:6,boxShadow:`0 0 4px ${s.backgroundColor}99`}}),xe("span",{style:{fontSize:11,fontWeight:600,color:C.primaryLight,letterSpacing:.5},children:s.label}),t&&xe("span",{style:{marginLeft:2,display:"flex"},children:xe(ff,{color:"#7A8599"})})]})}import{jsx as Se,jsxs as Zt}from"react/jsx-runtime";var mf=140,yf=28,cs=44,Sf=8,vf=24;function ea(e){switch(wt(e)){case"local":return{label:"LOCAL",backgroundColor:C.info};case"dev":return{label:"DEV",backgroundColor:C.warning};case"qa":return{label:"QA",backgroundColor:C.optional};case"staging":return{label:"STAGING",backgroundColor:C.success};case"prod":return{label:"PROD",backgroundColor:C.error};default:return{label:"LOCAL",backgroundColor:C.info}}}function Cf({environment:e,isSelected:t,onPress:a}){let s=ea(e);return Zt(qh,{onPress:a,style:({pressed:r})=>[re.optionContainer,t&&re.optionContainerSelected,r&&re.optionContainerPressed],children:[Zt(x,{style:re.optionLeft,children:[Se(x,{style:[re.optionDot,{backgroundColor:s.backgroundColor},{shadowColor:s.backgroundColor,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4,elevation:2}]}),Se(M,{style:re.optionLabel,children:s.label})]}),t&&Se(wa,{size:14,color:C.success,strokeWidth:3})]})}function wf({hasItems:e,currentEnvironment:t,availableEnvironments:a,onSelect:s,width:r=mf,collapsedContent:n}){let o=Sf+a.length*cs+vf+4,i=Zt(x,{style:re.collapsedEnvBadge,children:[Se(x,{style:[re.collapsedDot,{backgroundColor:ea(t).backgroundColor}]}),Se(M,{style:re.collapsedLabel,children:ea(t).label})]});return Se(Sa,{hasItems:e,width:r,expandedHeight:o,peekHeight:yf,showCount:false,collapsedContent:n||i,collapsedLabel:`Switch environment from ${t}`,children:a.map(l=>Se(Cf,{environment:l,isSelected:l===t,onPress:()=>s(l)},l))})}var re=Pe.create({collapsedEnvBadge:{flexDirection:"row",alignItems:"center",gap:6},collapsedDot:{width:8,height:8,borderRadius:4},collapsedLabel:{fontSize:11,fontWeight:"600",color:C.primaryLight,letterSpacing:.5},optionContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,height:cs,width:"100%"},optionContainerSelected:{backgroundColor:"rgba(128, 128, 128, 0.1)"},optionContainerPressed:{backgroundColor:"rgba(128, 128, 128, 0.2)"},optionLeft:{flexDirection:"row",alignItems:"center",flex:1},optionDot:{width:8,height:8,borderRadius:4,marginRight:10},optionLabel:{fontSize:12,fontWeight:"600",color:C.primaryLight,letterSpacing:.5}});import{useState as us}from"react";import{jsx as K,jsxs as ut}from"react/jsx-runtime";var ds=36;function Tf({color:e,flipped:t}){return K("svg",{width:10,height:10,viewBox:"0 0 24 24","aria-hidden":"true",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:K("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function xf(){return K("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:K("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"#4AFF9F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function kf({currentEnvironment:e,availableEnvironments:t,onSelect:a}){let[s,r]=us(false),[n,o]=us(null),i=Qt(e),l=t.length*ds;return ut("div",{style:{position:"relative",zIndex:1e3,flexShrink:0},children:[K("div",{style:{position:"absolute",bottom:"100%",left:0,right:0,height:s?l:0,opacity:s?1:0,overflow:"hidden",transition:"height 200ms ease, opacity 200ms ease",backgroundColor:"rgba(8,12,21,0.95)",border:"1px solid #00B8E666",borderBottomWidth:0,borderTopLeftRadius:6,borderTopRightRadius:6,boxShadow:"0 -4px 8px rgba(0,0,0,0.3)"},children:t.map(h=>{let b=Qt(h),S=String(h).toLowerCase()===String(e).toLowerCase();return ut("button",{onClick:()=>{r(false),a(h)},onMouseEnter:()=>o(String(h)),onMouseLeave:()=>o(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:ds,padding:"0 10px",background:S?"rgba(128,128,128,0.1)":n===String(h)?"rgba(128,128,128,0.2)":"none",border:"none",cursor:"pointer"},children:[ut("span",{style:{display:"flex",alignItems:"center"},children:[K("span",{style:{width:6,height:6,borderRadius:3,backgroundColor:b.backgroundColor,marginRight:8}}),K("span",{style:{fontSize:10,fontWeight:600,color:C.primaryLight,letterSpacing:.5},children:b.label})]}),S&&K(xf,{})]},String(h))})}),ut("button",{onClick:()=>r(h=>!h),"aria-expanded":s,"aria-label":`Environment: ${i.label}. Click to switch.`,style:{display:"flex",alignItems:"center",gap:6,padding:"6px 6px 6px 8px",borderRadius:6,borderTopLeftRadius:s?0:6,borderTopRightRadius:s?0:6,backgroundColor:s?"rgba(8,12,21,0.95)":"transparent",border:"none",cursor:"pointer"},children:[K("span",{style:{width:8,height:8,borderRadius:4,backgroundColor:i.backgroundColor,boxShadow:`0 0 4px ${i.backgroundColor}99`}}),K("span",{style:{fontSize:11,fontWeight:600,color:C.primaryLight,letterSpacing:.5},children:i.label}),K(Tf,{color:"#7A8599",flipped:s})]})]})}export{rl as ARROW_BOTTOM_OFFSET,nl as ARROW_HEIGHT,ic as ASSETS_ICON_COLOR,es as AccountSetup,En as ActionCopyButton,Bc as Activity,Kc as ActivityIcon,lo as AddFilterButton,no as AddFilterInput,Wc as AlertCircle,ld as AlertCircleIcon,Fc as AlertOctagon,Uc as AlertTriangle,eu as AlertTriangleIcon,Vu as AskBuoyIcon,rc as AssetsIcon,si as BACKGROUND_PRESETS,Ti as BACKGROUND_STORAGE_KEY,vd as BENCHMARK_ICON_COLOR,Wh as BUOY_SYNTHETIC_MARK,fo as BackButton,Ni as BackgroundSwitcher,bo as Badge,xc as BarChart3,_c as BarChart3Icon,Qh as BaseEventStore,fd as BenchmarkIcon,mh as BenchmarkLegacyIcon,Jc as Bookmark,Qc as Box,ru as BoxIcon,Ap as BubbleSettingsDetail,Ep as BubbleSettingsSection,au as Bug,Hu as BugIcon,Wr as CELLS,Zi as CLIP_OFFSCREEN_CELLS,Wd as CLOCK_TOOL_ICON_COLOR,zl as CONSOLE_ICON_COLOR,Ya as COPY_PAYLOAD_MAX_BYTES,Dl as CameraIcon,bg as ChangeLog,kn as ChangeRow,wa as Check,ou as CheckCircle,cc as CheckCircle2,gd as CheckCircle2Icon,du as CheckCircleIcon,lu as CheckIcon,$c as CheckSquare,sc as CheckSquareIcon,gu as ChevronDown,fu as ChevronDownIcon,mu as ChevronLeft,Su as ChevronLeftIcon,Cu as ChevronRight,Tu as ChevronRightIcon,ku as ChevronUp,$l as ChevronUpIcon,to as ChipStrip,zo as ClipboardHintBanner,Bl as Clock,Ou as ClockIcon,Md as ClockToolIcon,Lc as Cloud,Mc as CloudIcon,wi as CollapsibleSection,Dr as CompactFilterChips,sl as CompactRow,Jr as CompareBar,Mh as ConsoleIcon,Au as Copy,vn as CopyButton,Pu as CopyIcon,xo as CountBadge,va as CyberpunkSectionButton,ii as DEFAULT_BACKGROUND,Xo as DEVTOOLS_CARD_CONSTANTS,Ii as DataInspector,Ta as Database,Ju as DatabaseIcon,Gi as DaylightTunable,$o as DeepFieldTunable,ui as DetailView,on as DetailViewToggle,ti as DevToolsCard,Vr as DiffModeTabs,zu as DockBottom,Uu as Download,Pd as DownloadIcon,pi as DraggableHeader,$i as DynamicFilterView,Rh as ENV_ICON_COLOR,al as EVENT_LIST_PRESET,qu as Edit3,Du as Edit3Icon,Po as EmptyState,Gn as EntityFilterView,Eh as EnvIcon,od as EnvLaptopIcon,bf as EnvironmentIndicator,wf as EnvironmentSelector,kf as EnvironmentSelectorInline,Xr as EventHistoryViewer,Uo as EventListItem,en as EventPickerModal,Vi as EventStepperFooter,iu as EventsIcon,Sa as ExpandablePopover,Qi as ExpandedInfoRow,io as ExportPreview,rd as Eye,Fu as EyeIcon,xa as EyeOff,Yu as EyeOffIcon,bi as FeatureGate,Vl as FileCode,Qu as FileCodeIcon,cd as FileJson,Jd as FileJsonIcon,pd as FileText,ad as FileTextIcon,Sd as Film,zc as FilmIcon,xd as Filter,ao as FilterBadge,id as FilterIcon,ho as FilterList,Zn as FilterSection,Ed as FlaskConical,hd as FlaskConicalIcon,$d as FloatWindow,gl as FloatingTool,ul as FloatingToolDivider,Sl as FloatingToolHost,dl as FloatingToolUserStatus,Hn as FooterButton,Dn as FooterCaption,Wn as FooterMessage,$n as FooterRow,ln as FreeAccountPrompt,Rl as GAME_UI_ALERT_STATES,_l as GameUICollapsibleSection,Al as GameUICompactStats,Ll as GameUIIssuesList,El as GameUIStatusHeader,zd as GitBranch,md as GitBranchIcon,Ud as Globe,Zu as GlobeIcon,yi as GripVerticalIcon,pc as Hand,rh as HandIcon,ql as HardDrive,wd as HardDriveIcon,qd as Hash,_d as HashIcon,ni as HeaderSearchButton,Gc as HelpCircle,Lu as HighlightIcon,ih as HighlightUpdatesIcon,Ku as HighlighterIcon,Ho as HintsProvider,Bs as HistoryEntryRow,Ds as HistoryList,As as HistoryProvider,eh as Home,hc as HomeIcon,ec as IMAGES_ICON_COLOR,Sc as IMAGE_OVERLAY_ICON_COLOR,gc as IMPERSONATE_ICON_COLOR,td as IconBackground,Ru as IconCircle,_u as IconContainer,ju as IconLine,Bu as IconRect,nh as Image,Hc as ImageIcon,fc as ImageOverlayIcon,Xl as ImagesIcon,uc as ImpersonateIcon,uh as Info,Rd as InfoIcon,sn as InfoRow,Tn as InlineCopyButton,Rc as JOTAI_ICON_COLOR,Oc as JotaiIcon,Qp as JsModal,fh as Key,Dd as KeyIcon,oh as LIFECYCLE_TOOL_ICON_COLOR,bh as LOCATION_TOOL_ICON_COLOR,Qr as LOGIN_COMMAND,Fr as LOG_LIST_PRESET,dd as LaptopIcon,vh as Layers,Fd as LayersIcon,ei as LicenseEntryModal,th as LifecycleToolIcon,Ao as LinearFade,xh as Link,Zd as LinkIcon,Kn as ListItem,Zo as LiveSkyTunable,dh as LocationToolIcon,_h as Lock,Nd as LockIcon,Ft as LogLevel,Ft as LogLevelEnum,Ht as LogType,Ht as LogTypeEnum,nn as MAX_PERIOD,ac as Maximize2,Yd as Maximize2Icon,Ro as MethodBadge,Ah as Minus,Qd as MinusIcon,jn as ModalHeader,Un as ModalHintBanner,Fi as MoonlightTunable,Ph as Music,Yc as MusicIcon,Ih as NETWORK_ICON_COLOR,Ca as NIGHT_LABEL_TRACKING,Ad as NOTIFICATIONS_ICON_COLOR,Bh as Navigation,Gd as NavigationIcon,Xu as NetworkGlobeIcon,Th as NetworkIcon,gf as NightBadge,df as NightButton,nf as NightCard,uf as NightChip,rf as NightFootnote,of as NightRows,sf as NightSectionLabel,hf as NightSegmented,ns as NightSeparator,cf as NightSwitch,Do as NoDataEmptyState,jo as NoResultsEmptyState,Vo as NoSearchResultsEmptyState,kd as NotificationsIcon,ki as OTTO_ANCHORS,Ei as OTTO_ANCHOR_SIZE,ci as OTTO_GRID,Wi as OTTO_GROUPS,Pi as OTTO_NOTES,gi as OTTO_PALETTE,Yi as OTTO_REEL,Nr as OTTO_SCENES,mo as OTTO_SCENE_BY_ID,Co as OTTO_SCENE_CROP_H,eo as OTTO_SCENE_H,so as OTTO_SCENE_OTTO,Jn as OTTO_SCENE_PALETTE,Xn as OTTO_SCENE_W,Ci as OTTO_STATES,Bi as OTTO_STATE_NAMES,Ui as OTTO_USES,Vn as Otto,zn as OttoMotionView,An as OttoPixels,ko as OttoSceneFrame,Eo as OttoSceneStill,Pn as OttoStill,Kd as PERMISSIONS_ICON_COLOR,rt as PERSONAL_SETTING_KEYS,Va as PREVIEW_ITEM_RENDER_BYTE_LIMIT,Wl as Palette,sh as PaletteIcon,Ul as Pause,lh as PauseIcon,Vd as PermissionsIcon,Xc as Phone,tu as PhoneIcon,On as Pill,tl as PillBadge,jl as Pin,Jl as Play,gh as PlayIcon,Ql as Plus,yh as PlusIcon,tc as Power,Td as PowerIcon,Ki as PowerToggleButton,Gu as PrimitiveGlobeIcon,ri as ProBadge,xi as ProFeatureBanner,li as ProUpgradeModal,ed as QueryIcon,Xs as REMOTE_RELOAD_DELAY_MS,Io as RadialGlow,wo as RasterLayer,bd as ReactQueryIcon,Mu as ReduxIcon,nc as RefreshCw,wh as RefreshCwIcon,wn as RelativeTime,hh as RenderCountIcon,ah as RenderPulseIcon,yc as Route,wu as RouteDotIcon,jd as RouteIcon,Bd as RouteMapIcon,yu as RoutePathIcon,pu as RoutePinIcon,Iu as RouteTwoPinsIcon,uu as RoutesIcon,ol as SPACING_GAP,nd as ScenariosIcon,lc as Search,Ai as SearchBar,kh as SearchIcon,Yn as SectionHeader,Cd as SentryBugIcon,su as SentryIcon,qa as SentryLogger,dc as Server,yd as ServerIcon,xt as Settings,Oh as SettingsIcon,bc as SettingsSolid,Fa as SettingsSync,vc as Shield,Lh as ShieldIcon,nu as Smartphone,cu as SmartphoneIcon,Ac as Square,Nc as SquareDashed,oc as SquareDashedIcon,Zl as SquareIcon,Xd as StackPulseIcon,Ns as StandaloneHistoryList,Yo as StatsCard,vo as StatusBadge,ai as StatusIndicator,Wu as StorageIcon,Id as StorageStackIcon,To as StorageTypeBadge,fa as Subscribable,Na as TEAM_SETTING_KEYS,dn as TIER_LIMITS,Yl as TIME_MACHINE_ICON_COLOR,an as TRANSPARENT,Bo as TabSelector,mc as TestTube2,$h as TestTube2Icon,gn as TickProvider,oi as TimeDisplay,Hl as TimeMachineIcon,hu as Timer,bu as TimerIcon,qn as ToggleRow,Tt as ToolBackground,Wo as ToolButton,Jo as ToolEmptyState,Ln as ToolFooter,Ua as ToolScreenHeaderContext,Rn as ToolbarClearButton,In as ToolbarCopyButton,vu as Touchpad,xu as TouchpadIcon,Ic as Trash,Tc as Trash2,Nl as Trash2Icon,ch as TrashIcon,Cc as TriangleAlert,ph as TriangleAlertIcon,Oo as TypeBadge,Ec as Unlock,Hd as UnlockIcon,Oi as UpgradeModal,hi as UpgradePrompt,Pc as Upload,Od as UploadIcon,Dc as User,Sh as UserIcon,Ml as Users,Eu as UsersIcon,So as ValueTypeBadge,jr as ViewToggleCards,$u as Volume,Nu as VolumeIcon,Kr as WATER_CELLS,Zr as WATER_FRAMES,Ur as WATER_ROW0,Yr as WATER_ROWS,st as WIRE_DETAIL_LIMIT_BYTES,Pa as WIRE_INLINE_LIMIT_BYTES,jc as Wifi,ud as WifiBifIcon,Ld as WifiCircuitIcon,sd as WifiIcon,ji as WindowControls,No as Wormhole,qc as X,Vc as XCircle,Gl as XCircleIcon,Fl as XIcon,kc as ZUSTAND_ICON_COLOR,Zc as Zap,Kl as ZapIcon,wc as ZustandIcon,Ol as absoluteFill,Ja as add,at as approxJsonSize,ve as assertAccountAccess,_i as backgroundStore,ar as browserRouter,U as buoyColors,cl as calculateTargetPosition,ll as calculateTooltipPosition,ep as canOpenBuoyTools,Ma as capDetail,hp as classifyPreviewItem,Ip as clearEntries,Mo as copyToClipboard,jh as countBuoyListener,_o as createAutoDetectedClipboard,lp as createRestoreScope,Mg as createSyncAdapter,Ug as createToolFactory,fg as createToolStore,yn as cycleIndexes,Rp as definePersistedSetting,Hg as defineToolPreset,$g as detailByIdAction,be as devToolsStorageKeys,Nh as dialColors,ml as dismissFloatingTool,Kg as dispatchToolAction,kl as displayValue,cp as emptyRestoreResult,fp as entityColor,Et as expandKeyedArrays,up as failedRestore,Ra as findKeyPath,hn as flatColors,Ir as flattenObject,Ga as formatBytes,yp as formatDuration,wp as formatHttpStatus,Sp as formatNumber,_r as formatPath,un as formatRelativeTime,Tr as formatValue,bp as formatValuePreview,C as gameUIColors,oe as getAccountAccess,Lo as getAutoDetectedClipboard,hl as getBubbleAnchorPosition,Lp as getBubbleVisibilitySettings,Er as getCachedOptionalModule,yr as getConstructorName,Zs as getDevServerOrigin,Vs as getDeviceInfo,kp as getEntries,pl as getFloatingTools,Tp as getMethodColor,Si as getPreset,Fh as getRealAppState,hr as getRegisteredToolModule,Lr as getRenderCaptureProvider,zh as getSafeAreaInsets,lr as getSafeCurrentPathname,cr as getSafeCurrentRoute,ir as getSafeRouter,il as getScreenCenterY,Fo as getSkyScrub,$r as getStateSnapshotProvider,Pr as getStateSnapshotProviders,Yh as getStorageBackendType,we as getToolAdapters,ap as getToolAttention,Ys as getToolModuleVersion,xr as getTypeColor,ma as getUseAccountAccess,Ri as getUseIsPro,Mi as getUseLicense,zi as getUseTier,vr as getValueSize,fr as getValueType,cn as gridKey,Ha as guardToolAdapter,G as hasAccountAccess,Ot as identityField,q as ignoredPatternsStore,Uh as isDevToolsStorageKey,Sr as isEmpty,ur as isExpoRouterAvailable,ba as isJsonSerializable,Eg as isOnDeviceMarker,Rt as isOverWireBudget,Cr as isPlainObjectUtil,br as isPrimitive,Hi as isProNow,Dt as isToolRegistryReady,sg as isUrlIgnored,Gh as isUsingPersistentStorage,mr as isValidJson,Ce as listShapes,Jg as listSnapshotToolIds,Yg as listToolActions,Gg as listToolIds,Or as loadOptionalModule,Gs as logDeviceInfo,Xe as macOSColors,Lg as memoByIdentity,Da as mergeChangeSources,Ch as monoFont,_n as motionUnits,Rg as newestFitting,u as night,Nn as noWindowDragProps,wt as normalizeEnvironment,Le as notifySubscriberCountChange,Og as onDeviceMarker,Dg as onSettingsApplied,Zg as openBuoyTool,bl as openFloatingTool,fn as ottoCycle,qi as ottoReel,el as ottoRuns,go as ottoSceneBounds,co as ottoSceneRuns,xn as ottoSheets,mi as ottoWaterRows,Il as parseDisplayValue,At as parsePath,xp as parseUrl,wr as parseValue,xg as patchFromPath,N as persistentStorage,fi as presetAt,di as presetIndex,Ba as readParams,Tg as readPath,qg as readToolSnapshot,Ct as realNow,Cn as rectsOf,Dh as refreshGameUIColors,_g as refusalText,er as registerBrowserRouter,yl as registerPersistentFloatingTool,Rr as registerStateSnapshotProvider,Vg as registerToolAdapters,dr as registerToolModules,Qg as registerToolOpener,Ks as reloadApp,Xi as renderOttoFrame,oo as renderOttoScene,Ws as resetPersistedStateCache,pn as resolveEffectiveTier,Qo as resolveListEmptyState,qs as resolveReloadStrategy,Hr as retryAccountAccess,wl as safeStringify,uo as scatter,Qs as scheduleReloadApp,Op as sentryLogger,Di as setExpandableWindowControls,Ar as setRenderCaptureProvider,Go as setSkyScrub,tp as setToolAttention,mp as shallowDiffSummary,De as shapeKind,Me as shapeOf,Cg as shapeSummary,Sg as shapesWereTruncated,Gr as signOutOfBuoy,Pg as sizeOrStub,ro as sizeWarningLevel,dp as skippedRestore,jg as startSettingsSync,Re as subscribeAccountAccess,tr as subscribeBrowserNavigation,fl as subscribeFloatingTools,Hh as subscribeRealAppState,Js as subscribeToStateSnapshotProviders,pr as subscribeToSubscriberCountChanges,sp as subscribeToolAttention,gr as subscriberCountNotifier,kg as suggestedPatch,xl as superJsonDeserialize,Tl as superJsonSerialize,Fg as syncSettingsNow,et as teamSettingsStore,Ag as toWire,Ji as toolTheme,Cp as truncateMiddle,vp as truncatePayload,kr as truncateText,$a as truncatedNote,Lt as typedEditViolations,pp as unionKeys,vg as unshapedLists,ka as urlMatchesIgnoredPattern,$s as useAllHistoryEntries,js as useChangeLog,Qn as useChipTap,Us as useDeviceInfo,Hs as useEventStoreEvents,vi as useFeatureGate,vl as useFilterManager,Pl as useGameUIAlertState,Ko as useHintsContext,ya as useHintsDisabled,Ps as useHistoryAdapter,Rs as useHistoryAdapters,Ls as useHistoryContext,Ms as useHistoryEntryCounts,ug as useIgnoredPatterns,mn as useLimit,zr as useLoop,Fn as useOttoAnchorMotion,Bn as useOttoReel,zs as usePersistedState,yo as usePulse,Sn as useRelativeTime,Cl as useSafeAreaInsets,or as useSafeGlobalSearchParams,rr as useSafePathname,sr as useSafeRouter,nr as useSafeSegments,qo as useSkyScrub,Fs as useSubscribedValue,gg as useTeamList,bn as useTick,Li as useToolBackground,ip as useToolScreenHeader,Xg as waitForToolRegistry,Mn as windowDragProps,po as withBgAlpha,gp as wontApply};
14
+ `}),Ke("div",{"data-account-launcher":"",children:Ke(_a,{expanded:e,onPress:()=>t(n=>!n)})}),e&&Ke("section",{ref:r,className:"buoy-account-panel",role:"dialog","aria-labelledby":s,tabIndex:-1,onBlur:n=>{n.relatedTarget instanceof Node&&!a.current?.contains(n.relatedTarget)&&o(false)},children:Ke(So,{titleId:s,onClose:()=>o()})})]}),document.body)}import{useState as ne,useRef as H,useEffect as le,useLayoutEffect as Zf,useCallback as D,memo as ra,isValidElement as ep,cloneElement as tp}from"react";var ft=class{static async save(e,t){this.cache.set(e,t);try{await F.setItem(e,JSON.stringify(t))}catch{}}static async load(e){if(this.cache.has(e))return this.cache.get(e);try{let t=await F.getItem(e);if(t){let a=JSON.parse(t);return this.cache.set(e,a),a}}catch{}return null}static saveMinimized(e,t){return this.save(e,{mode:t.mode,panelHeight:t.panelHeight,dimensions:t.floatingDimensions&&t.floatingPosition?{...t.floatingDimensions,top:t.floatingPosition.y,left:t.floatingPosition.x}:void 0,isVisible:false})}};ft.cache=new Map;import{jsx as b,jsxs as V}from"react/jsx-runtime";var M={base:"#121212",card:"#1A1A1A",border:"#333333",textMuted:"#888888",primary:"#20C997"},$={primary:"#F5F5F7",primaryLight:"#F5F5F7",secondary:"#A1A1A6",muted:"#8E8E93",success:"#34C759",info:"#00B8E6"},ap=100,rp=400,pr=500,Je=80,pt=()=>typeof window<"u"?window.innerWidth:0,be=()=>typeof window<"u"?window.innerHeight:0,mr=e=>1-Math.pow(1-e,3),qe=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;function Ie(e,t,a,r){let s=0,o=false,n=performance.now(),i=l=>{if(o)return;let c=Math.min((l-n)/e,1);a(t(c)),c<1?s=requestAnimationFrame(i):r?.()};return s=requestAnimationFrame(i),()=>{o=true,cancelAnimationFrame(s)}}function sp(){if(typeof document>"u")return{top:0,left:0,right:0,bottom:0};let e=document.createElement("div");e.style.cssText="position:fixed;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);visibility:hidden;pointer-events:none",document.body.appendChild(e);let t=e.getBoundingClientRect();return document.body.removeChild(e),{top:Math.max(0,t.top),left:Math.max(0,t.left),right:Math.max(0,window.innerWidth-t.right),bottom:Math.max(0,window.innerHeight-t.bottom)}}function sa(e,t){let a=Math.max(Je,window.innerWidth-t.left-t.right),r=Math.max(Je,window.innerHeight-t.top-t.bottom),s=Math.min(e.width,a),o=Math.min(e.height,r);return{width:s,height:o,left:Math.max(t.left,Math.min(e.left,window.innerWidth-t.right-s)),top:Math.max(t.top,Math.min(e.top,window.innerHeight-t.bottom-o))}}var op=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>V("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[b("line",{x1:18,y1:6,x2:6,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"}),b("line",{x1:6,y1:6,x2:18,y2:18,stroke:t,strokeWidth:a,strokeLinecap:"round"})]}),ip=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>b("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:b("line",{x1:5,y1:12,x2:19,y2:12,stroke:t,strokeWidth:a,strokeLinecap:"round"})}),np=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>V("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[b("rect",{x:3,y:3,width:18,height:18,rx:2,stroke:t,strokeWidth:a}),b("rect",{x:3,y:14,width:18,height:7,fill:t})]}),lp=({size:e=24,color:t="currentColor",strokeWidth:a=2})=>V("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[b("rect",{x:3,y:3,width:14,height:14,rx:2,stroke:t,strokeWidth:a}),b("line",{x1:7,y1:17,x2:7,y2:21,stroke:t,strokeWidth:a}),b("line",{x1:7,y1:21,x2:21,y2:21,stroke:t,strokeWidth:a}),b("line",{x1:21,y1:21,x2:21,y2:7,stroke:t,strokeWidth:a}),b("line",{x1:17,y1:7,x2:21,y2:7,stroke:t,strokeWidth:a})]}),oa={close:"#FF5F57",minimize:"#FEBC2E",toggleMode:"#28C840"},ia=24,cp=2,na=8,la=e=>({width:ia,height:ia,borderRadius:ia/2,display:"flex",alignItems:"center",justifyContent:"center",background:`radial-gradient(circle, ${e} 6px, transparent 6px)`,border:"none",padding:0,cursor:"pointer",flexShrink:0});function up({onClose:e,onMinimize:t,onToggleMode:a,mode:r}){let s=r==="floating"?np:lp,o=r==="floating"?"Dock to bottom sheet":"Make floating window";return V("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:cp},children:[t&&b("button",{type:"button",onClick:t,style:la(oa.minimize),"aria-label":"Minimize modal",children:b(ip,{size:na,color:"#7A5A00",strokeWidth:1.5})}),a&&b("button",{type:"button",onClick:a,style:la(oa.toggleMode),"aria-label":o,children:b(s,{size:na,color:"#004A1A",strokeWidth:1.5})}),b("button",{type:"button",onClick:e,style:la(oa.close),"aria-label":"Close modal",children:b(op,{size:na,color:"#4A0000",strokeWidth:1.5})})]})}var br=ra(function({isResizing:e,mode:t,hasCustomContent:a=false,variant:r="default"}){let s=t==="floating",o=r==="night";return V("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative",justifyContent:a?"center":void 0,minHeight:a?32:void 0,paddingTop:a?0:8,paddingBottom:a?0:8,backgroundColor:"transparent"},children:[b("div",{style:{width:o?36:e?40:s?50:40,height:o||s?5:3,backgroundColor:o?d.color.placeholder:e?M.primary:s?M.textMuted:M.primary,borderRadius:o?2.5:2,boxShadow:o?"none":`0 0 4px ${M.primary}99`}}),e&&t==="bottomSheet"&&b("div",{style:{position:"absolute",display:"flex",flexDirection:"row",gap:2,marginTop:12},children:[0,1,2].map(n=>b("div",{style:{width:12,height:1,backgroundColor:$.success,opacity:.6}},n))})]})}),dp=ra(function({onAcknowledge:e}){return b("div",{style:{backgroundColor:`${$.info}15`,borderLeft:`3px solid ${$.info}`,borderRadius:8,margin:"8px 12px 4px",overflow:"hidden",boxShadow:`0 0 8px ${$.info}4D`,flexShrink:0},children:V("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:12,gap:12},children:[V("div",{style:{width:32,height:32,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:[b("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${$.info}`,opacity:.6,transform:"scale(0.8)",boxSizing:"border-box"}}),b("div",{style:{position:"absolute",width:20,height:20,borderRadius:10,border:`2px solid ${$.info}`,boxSizing:"border-box"}})]}),V("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[b("span",{style:{fontSize:13,fontWeight:600,color:$.info,letterSpacing:.3},children:"\u{1F4A1} Pro Tip"}),b("span",{style:{fontSize:12,color:$.primaryLight,lineHeight:"16px"},children:"Double-tap the header to transform this into a floating modal"})]}),b("button",{type:"button",onClick:e,style:{backgroundColor:`${$.info}30`,padding:"6px 12px",borderRadius:6,border:`1px solid ${$.info}50`,fontSize:12,fontWeight:600,color:$.info,cursor:"pointer",fontFamily:"inherit",flexShrink:0},children:"Got it!"})]})})});function yr({header:e,isResizing:t,mode:a,onMinimize:r,variant:s="default"}){if(e?.customContent){let o=e.customContent;return ep(e.customContent)&&r&&(o=tp(e.customContent,{onMinimize:r})),V("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",minWidth:0},children:[b(br,{isResizing:t,mode:a,hasCustomContent:true,variant:s}),o]})}return V("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",minWidth:0},children:[b(br,{isResizing:t,mode:a,variant:s}),V("div",{style:{padding:"0 16px",display:"flex",flexDirection:"column",alignItems:"center"},children:[e?.title&&b("span",{style:{fontSize:16,fontWeight:600,color:$.primary},children:e.title}),e?.subtitle&&b("span",{style:{fontSize:12,color:$.secondary,paddingTop:4},children:e.subtitle})]}),b("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:b("span",{style:{fontSize:10,color:$.muted,fontStyle:"italic"},children:"Double tap: Toggle \u2022 Triple tap: Close"})})]})}var hp=({visible:e,onClose:t,children:a,header:r,styles:s={},minHeight:o=ap,maxHeight:n,initialHeight:i=rp,animatedHeight:l,benchMotion:c,initialMode:p="bottomSheet",onModeChange:y,persistenceKey:h,enablePersistence:f=true,initialFloatingPosition:v,footer:_,footerHeight:J=0,onBack:ge,onMinimize:z,minimizeRequest:S=0,minimizeTargetPosition:se,initialModalState:L,zIndex:Xe,disableScrollWrapper:Er=false,background:fa=true,variant:wt="night"})=>{let[X]=ne(sp),[pa,ma]=ne(!f),[P,Tt]=ne(p),Qe=H(y);Qe.current=y;let[Le,ye]=ne(false),[xt,Me]=ne(false),[Ar,kt]=ne(i),[oe,Ne]=ne(()=>sa({width:pt(),height:pr,top:v?.y??(be()-pr)/2,left:v?.x??0},X)),[Rr,Ze]=ne(false),[Or,ba]=ne(false),_r=Pa(),Se=H(i),Q=H(oe),W=H({x:oe.left,y:oe.top}),et=H(null),It=H(null),ie=H(null),ve=H([]),ae=D(()=>{ve.current.forEach(u=>u()),ve.current=[]},[]);le(()=>{Q.current=oe},[oe]),le(()=>ae,[ae]);let ya=n||be()-X.top;le(()=>{if(!f||!h){ma(true);return}let u=true;return(async()=>{let g=await ft.load(h);if(u&&g&&(g.mode&&(Tt(g.mode),Qe.current?.(g.mode)),g.panelHeight&&(kt(g.panelHeight),Se.current=g.panelHeight),g.dimensions)){let C=sa(g.dimensions,X);Ne(C),W.current={x:C.left,y:C.top}}u&&ma(true)})(),()=>{u=false}},[h,f]),le(()=>{if(!f||!h||!pa)return;let u=setTimeout(()=>{ft.save(h,{mode:P,panelHeight:Se.current,dimensions:oe,isVisible:e})},500);return()=>clearTimeout(u)},[P,Ar,oe,e,h,f,pa]),le(()=>{let u=true;return(async()=>{try{let g=xe.modal.hintAcknowledged(),C=await F.getItem(g);u&&(Ze(C!=="true"),ba(true))}catch{u&&(Ze(true),ba(true))}})(),()=>{u=false}},[]);let Pr=D(async()=>{try{let u=xe.modal.hintAcknowledged();await F.setItem(u,"true"),Ze(false)}catch{Ze(false)}},[]),Et=D(()=>{Me(false),ye(false);let u=P==="bottomSheet"?"floating":"bottomSheet";Tt(u),Qe.current?.(u)},[P]);le(()=>{Me(false),ye(false)},[P]);let Ce=D(()=>{if(!z)return;let u={mode:P,panelHeight:Se.current,floatingPosition:{x:Q.current.left,y:Q.current.top},floatingDimensions:{width:Q.current.width,height:Q.current.height}};f&&h&&ft.saveMinimized(h,u);let g=se?.x??pt()-50,C=se?.y??be()-150;if(ae(),P==="bottomSheet"){let I=et.current;if(!I){z(u);return}let k=be();ve.current.push(Ie(300,qe,R=>{I.style.opacity=String(1-R),I.style.transform=`translateY(${R*k}px)`},()=>z(u)))}else{let I=ie.current;if(!I){z(u);return}let k={...W.current};ve.current.push(Ie(300,qe,R=>{I.style.opacity=String(1-R);let we=k.x+(g-k.x)*R,Te=k.y+(C-k.y)*R;I.style.transform=`translate(${we}px, ${Te}px)`},()=>z(u)))}},[P,z,se,ae,f,h]),Sa=H(S);le(()=>{Sa.current!==S&&(Sa.current=S,Ce())},[S,Ce]),le(()=>{if(L&&(L.mode&&(Tt(L.mode),Qe.current?.(L.mode)),L.panelHeight&&(kt(L.panelHeight),Se.current=L.panelHeight),L.floatingDimensions&&L.floatingPosition)){let u={width:L.floatingDimensions.width,height:L.floatingDimensions.height,top:L.floatingPosition.y,left:L.floatingPosition.x};Ne(u),W.current={x:L.floatingPosition.x,y:L.floatingPosition.y}}},[L]),Zf(()=>{if(e)if(ae(),P==="bottomSheet"){let u=et.current;if(!u)return;let g=be();u.style.transform=`translateY(${g}px)`,u.style.opacity="0",ve.current.push(Ie(300,mr,C=>{u.style.transform=`translateY(${(1-C)*g}px)`}),Ie(200,qe,C=>{u.style.opacity=String(C)}))}else{let u=ie.current;if(!u)return;W.current={x:Q.current.left,y:Q.current.top},u.style.transform=`translate(${W.current.x}px, ${W.current.y}px)`,u.style.opacity="0",ve.current.push(Ie(200,qe,g=>{u.style.opacity=String(g)}))}},[e,P,ae]);let va=H(0),$e=H(0),Be=H(null),tt=D(()=>{let u=Date.now();u-va.current>500&&($e.current=0),$e.current++,va.current=u,Be.current&&clearTimeout(Be.current),Be.current=setTimeout(()=>{$e.current===2?Et():$e.current>=3&&z&&Ce(),$e.current=0},300)},[Et,z,Ce]);le(()=>()=>{Be.current&&clearTimeout(Be.current)},[]);let at=H({active:false,resizing:false,startY:0,headerOffsetY:0,samples:[]}),Lr=D(u=>{if(P!=="bottomSheet"||u.button!==0||u.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let g=at.current;g.active=true,g.resizing=false,g.startY=u.clientY;let C=u.currentTarget.getBoundingClientRect();g.headerOffsetY=u.clientY-C.top,g.samples=[{t:performance.now(),y:u.clientY}],u.currentTarget.setPointerCapture(u.pointerId)},[P]),Mr=D(u=>{let g=at.current;if(!g.active)return;let C=u.clientY-g.startY;if(!g.resizing&&Math.abs(C)>3&&(g.resizing=true,ae(),ye(true)),!g.resizing)return;let I=u.clientY-g.headerOffsetY,k=be()-I;k=Math.max(o,Math.min(k,ya)),Se.current=k,It.current&&(It.current.style.height=`${k}px`);let R=performance.now();for(g.samples.push({t:R,y:u.clientY});g.samples.length>2&&R-g.samples[0].t>100;)g.samples.shift()},[o,ya,ae]),Nr=D(u=>{let g=at.current;if(!g.active)return;if(g.active=false,!g.resizing){tt();return}ye(false);let C=Se.current,I=u.clientY-g.startY,k=g.samples[0],R=g.samples[g.samples.length-1];if((R&&k&&R.t>k.t?(R.y-k.y)/(R.t-k.t):0)>.8&&I>50||I>150&&C<=o){let we=et.current;if(ae(),we){let Te=be();ve.current.push(Ie(200,qe,U=>{we.style.opacity=String(1-U)}),Ie(300,mr,U=>{we.style.transform=`translateY(${U*Te}px)`},()=>t()))}else t();return}kt(C)},[o,t,tt,ae]),$r=D(()=>{let u=at.current;u.active&&(u.active=false,u.resizing=false,ye(false))},[]),rt=H({active:false,dragging:false,startX:0,startY:0,startPos:{x:0,y:0}}),Br=D(u=>{if(P!=="floating"||Le||u.button!==0||u.target.closest('button, a, input, textarea, select, [role="button"], [role="tab"], [role="switch"], [contenteditable="true"], [tabindex]'))return;let g=rt.current;g.active=true,g.dragging=false,g.startX=u.clientX,g.startY=u.clientY,g.startPos={...W.current},u.currentTarget.setPointerCapture(u.pointerId)},[P,Le]),Dr=D(u=>{let g=rt.current;if(!g.active)return;let C=u.clientX-g.startX,I=u.clientY-g.startY;if(!g.dragging&&Math.abs(C)+Math.abs(I)>5&&(g.dragging=true,Me(true)),!g.dragging)return;let k=g.startPos.x+C,R=g.startPos.y+I;W.current={x:k,y:R},ie.current&&(ie.current.style.transform=`translate(${k}px, ${R}px)`)},[]),zr=D(()=>{let u=rt.current;if(!u.active)return;if(u.active=false,!u.dragging){tt();return}Me(false);let g=Q.current,C=sa({...g,left:W.current.x,top:W.current.y},X),I=C.left,k=C.top;W.current={x:I,y:k},ie.current&&(ie.current.style.transform=`translate(${I}px, ${k}px)`),Ne(R=>({...R,left:I,top:k}))},[X,tt]),Fr=D(()=>{let u=rt.current;u.active&&(u.active=false,u.dragging=false,Me(false))},[]),At=H({active:false,corner:"bottomRight",startX:0,startY:0,start:{width:0,height:0,top:0,left:0}}),Hr=D(u=>g=>{if(P!=="floating")return;g.stopPropagation();let C=At.current;C.active=true,C.corner=u,C.startX=g.clientX,C.startY=g.clientY,C.start={...Q.current},ye(true),g.currentTarget.setPointerCapture(g.pointerId)},[P]),jr=D(u=>{let g=At.current;if(!g.active)return;let C=u.clientX-g.startX,I=u.clientY-g.startY;if(Math.abs(C)<.5&&Math.abs(I)<.5)return;let k=Math.max(0,X.left),R=be()-Math.max(0,X.bottom),we=pt()-Math.max(0,X.right),Te=pt()*.25,U=g.start,Rt=U.left+U.width,Ot=U.top+U.height,De=U.left,st=U.top,Ia=Rt,_t=Ot;g.corner==="bottomLeft"?(De=Math.max(k,Math.min(U.left+C,Rt-Te)),_t=Math.min(R,Math.max(Ot+I,U.top+Je))):(Ia=Math.min(we,Math.max(Rt+C,U.left+Te)),_t=Math.min(R,Math.max(Ot+I,U.top+Je)));let Wr=Math.max(Te,Ia-De),Ur=Math.max(Je,_t-st),Ea={width:Wr,height:Ur,left:De,top:st};Q.current=Ea,W.current={x:De,y:st},Ne(Ea),ie.current&&(ie.current.style.transform=`translate(${De}px, ${st}px)`)},[X.left,X.right,X.bottom]),Ca=D(()=>{let u=At.current;u.active&&(u.active=false,ye(false),Ne(Q.current))},[]);if(!e)return b("div",{style:{display:"none"},"aria-hidden":true,children:a},"hidden");let wa=r?.title||"Dev tool panel",A=wt==="night",Ta=fa&&A?b("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},"aria-hidden":true,children:b(Mt,{})}):null,xa=V("div",{style:{flex:1,minHeight:0,position:"relative",display:"flex",flexDirection:"column",backgroundColor:A?"transparent":M.base,borderBottomLeftRadius:16,borderBottomRightRadius:16,overflow:"hidden",...s.content},children:[fa&&!A?b(Mt,{}):null,Er?b("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",paddingBottom:J},children:a}):b("div",{style:{flex:1,minHeight:0,overflowY:"auto",paddingBottom:J},children:a}),_?b("div",{style:{position:"absolute",left:0,right:0,bottom:0,backgroundColor:M.base,borderBottomLeftRadius:16,borderBottomRightRadius:16},children:_}):null]}),ka=b("div",{style:{position:"absolute",top:4,right:4,zIndex:10},children:b(up,{onClose:t,onMinimize:z?Ce:void 0,onToggleMode:Et,mode:P})});if(P==="floating"){let u=xt||Le;return V("div",{ref:ie,role:"dialog","aria-label":wa,style:{position:"fixed",left:0,top:0,width:oe.width,height:oe.height,transform:`translate(${W.current.x}px, ${W.current.y}px)`,display:"flex",flexDirection:"column",backgroundColor:A?d.color.bg:M.card,borderRadius:A?d.radius.sheet:6,border:A?`1px solid ${d.color.accent}55`:u?`2px solid ${M.primary}`:`1px solid ${M.border}`,boxShadow:A?`0 0 14px ${d.color.accent}38`:u?`0 0 12px ${M.primary}7A`:`0 0 20px ${M.primary}4D`,...A?{overflow:"hidden"}:null,boxSizing:"border-box",zIndex:Xe??1e3,...s.container},children:[Ta,b("div",{onPointerDown:Br,onPointerMove:Dr,onPointerUp:zr,onPointerCancel:Fr,style:{borderTopLeftRadius:A?d.radius.sheet:6,borderTopRightRadius:A?d.radius.sheet:6,backgroundColor:A?"transparent":M.card,minHeight:56,border:A?"none":`1px solid ${M.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:xt?"grabbing":"grab",position:"relative"},children:b(yr,{header:r,isResizing:xt||Le,mode:P,onMinimize:z?Ce:void 0,variant:wt})}),ka,xa,["bottomLeft","bottomRight"].map(g=>b("div",{onPointerDown:Hr(g),onPointerMove:jr,onPointerUp:Ca,onPointerCancel:Ca,style:{position:"absolute",width:30,height:30,bottom:4,...g==="bottomLeft"?{left:4}:{right:4},zIndex:1e3,touchAction:"none",cursor:g==="bottomLeft"?"nesw-resize":"nwse-resize"},children:b("div",{style:{width:20,height:20,borderRadius:10,boxSizing:"border-box",backgroundColor:u?`${$.success}1A`:"transparent",border:u?`2px solid ${$.success}`:"none",boxShadow:u?`0 0 8px ${$.success}99`:"none"}})},g))]},"floating")}return b("div",{style:{position:"fixed",inset:0,zIndex:Xe??1e3,pointerEvents:"none"},children:b("div",{ref:et,style:{position:"absolute",bottom:0,left:0,right:0,pointerEvents:"auto"},children:V("div",{ref:It,role:"dialog","aria-label":wa,style:{height:Se.current,display:"flex",flexDirection:"column",backgroundColor:A?d.color.bg:M.card,borderTopLeftRadius:A?d.radius.sheet:6,borderTopRightRadius:A?d.radius.sheet:6,border:A?`1px solid ${d.color.accent}55`:`1px solid ${M.border}`,boxShadow:A?`0 -4px 10px ${d.color.accent}38`:`0 -4px 12px ${M.primary}33`,...A?{overflow:"hidden"}:null,boxSizing:"border-box",position:"relative",...s.container},children:[Ta,b("div",{onPointerDown:Lr,onPointerMove:Mr,onPointerUp:Nr,onPointerCancel:$r,style:{borderTopLeftRadius:A?d.radius.sheet:6,borderTopRightRadius:A?d.radius.sheet:6,backgroundColor:A?"transparent":M.card,minHeight:56,border:A?"none":`1px solid ${M.border}`,boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,touchAction:"none",userSelect:"none",cursor:"ns-resize",position:"relative"},children:b(yr,{header:r,isResizing:Le,mode:P,onMinimize:z?Ce:void 0,variant:wt})}),ka,Or&&Rr&&!_r&&b(dp,{onAcknowledge:Pr}),xa]})})},"bottomSheet")},gp=ra(e=>Oa()().status!=="admitted"?e.visible?b(fr,{}):null:b(hp,{...e}));import{memo as fp,useMemo as pp}from"react";var ce=class ym{constructor(t,a){this.ordinal=t;this.formatBits=a}};ce.LOW=new ce(0,1),ce.MEDIUM=new ce(1,0),ce.QUARTILE=new ce(2,3),ce.HIGH=new ce(3,2);var mt=ce,ee=class Sm{constructor(t,a){this.modeBits=t;this.numBitsCharCount=a}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}};ee.NUMERIC=new ee(1,[10,12,14]),ee.ALPHANUMERIC=new ee(2,[9,11,13]),ee.BYTE=new ee(4,[8,16,16]),ee.KANJI=new ee(8,[8,10,12]),ee.ECI=new ee(7,[0,0,0]);var bt=ee,ue=class T{constructor(t,a,r,s){this.version=t;this.errorCorrectionLevel=a;this.modules=[];this.isFunction=[];if(t<T.MIN_VERSION||t>T.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let o=[];for(let i=0;i<this.size;i++)o.push(false);for(let i=0;i<this.size;i++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let n=this.addEccAndInterleave(r);if(this.drawCodewords(n),s==-1){let i=1e9;for(let l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);let c=this.getPenaltyScore();c<i&&(s=l,i=c),this.applyMask(l)}}K(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}static encodeText(t,a){let r=ca.makeSegments(t);return T.encodeSegments(r,a)}static encodeBinary(t,a){let r=ca.makeBytes(t);return T.encodeSegments([r],a)}static encodeSegments(t,a,r=1,s=40,o=-1,n=true){if(!(T.MIN_VERSION<=r&&r<=s&&s<=T.MAX_VERSION)||o<-1||o>7)throw new RangeError("Invalid value");let i,l;for(i=r;;i++){let h=T.getNumDataCodewords(i,a)*8,f=ca.getTotalBits(t,i);if(f<=h){l=f;break}if(i>=s)throw new RangeError("Data too long")}for(let h of[mt.MEDIUM,mt.QUARTILE,mt.HIGH])n&&l<=T.getNumDataCodewords(i,h)*8&&(a=h);let c=[];for(let h of t){G(h.mode.modeBits,4,c),G(h.numChars,h.mode.numCharCountBits(i),c);for(let f of h.getData())c.push(f)}K(c.length==l);let p=T.getNumDataCodewords(i,a)*8;K(c.length<=p),G(0,Math.min(4,p-c.length),c),G(0,(8-c.length%8)%8,c),K(c.length%8==0);for(let h=236;c.length<p;h^=253)G(h,8,c);let y=[];for(;y.length*8<c.length;)y.push(0);return c.forEach((h,f)=>y[f>>>3]|=h<<7-(f&7)),new T(i,a,y,o)}getModule(t,a){return 0<=t&&t<this.size&&0<=a&&a<this.size&&this.modules[a][t]}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2==0),this.setFunctionModule(r,6,r%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),a=t.length;for(let r=0;r<a;r++)for(let s=0;s<a;s++)r==0&&s==0||r==0&&s==a-1||r==a-1&&s==0||this.drawAlignmentPattern(t[r],t[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let a=this.errorCorrectionLevel.formatBits<<3|t,r=a;for(let o=0;o<10;o++)r=r<<1^(r>>>9)*1335;let s=(a<<10|r)^21522;K(s>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,de(s,o));this.setFunctionModule(8,7,de(s,6)),this.setFunctionModule(8,8,de(s,7)),this.setFunctionModule(7,8,de(s,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,de(s,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,de(s,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,de(s,o));this.setFunctionModule(8,this.size-8,true)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;let a=this.version<<12|t;K(a>>>18==0);for(let r=0;r<18;r++){let s=de(a,r),o=this.size-11+r%3,n=Math.floor(r/3);this.setFunctionModule(o,n,s),this.setFunctionModule(n,o,s)}}drawFinderPattern(t,a){for(let r=-4;r<=4;r++)for(let s=-4;s<=4;s++){let o=Math.max(Math.abs(s),Math.abs(r)),n=t+s,i=a+r;0<=n&&n<this.size&&0<=i&&i<this.size&&this.setFunctionModule(n,i,o!=2&&o!=4)}}drawAlignmentPattern(t,a){for(let r=-2;r<=2;r++)for(let s=-2;s<=2;s++)this.setFunctionModule(t+s,a+r,Math.max(Math.abs(s),Math.abs(r))!=1)}setFunctionModule(t,a,r){this.modules[a][t]=r,this.isFunction[a][t]=true}addEccAndInterleave(t){let a=this.version,r=this.errorCorrectionLevel;if(t.length!=T.getNumDataCodewords(a,r))throw new RangeError("Invalid argument");let s=T.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][a],o=T.ECC_CODEWORDS_PER_BLOCK[r.ordinal][a],n=Math.floor(T.getNumRawDataModules(a)/8),i=s-n%s,l=Math.floor(n/s),c=[],p=T.reedSolomonComputeDivisor(o);for(let h=0,f=0;h<s;h++){let v=t.slice(f,f+l-o+(h<i?0:1));f+=v.length;let _=T.reedSolomonComputeRemainder(v,p);h<i&&v.push(0),c.push(v.concat(_))}let y=[];for(let h=0;h<c[0].length;h++)c.forEach((f,v)=>{(h!=l-o||v>=i)&&y.push(f[h])});return K(y.length==n),y}drawCodewords(t){if(t.length!=Math.floor(T.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let a=0;for(let r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(let s=0;s<this.size;s++)for(let o=0;o<2;o++){let n=r-o,i=(r+1&2)==0?this.size-1-s:s;!this.isFunction[i][n]&&a<t.length*8&&(this.modules[i][n]=de(t[a>>>3],7-(a&7)),a++)}}K(a==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let a=0;a<this.size;a++)for(let r=0;r<this.size;r++){let s;switch(t){case 0:s=(r+a)%2==0;break;case 1:s=a%2==0;break;case 2:s=r%3==0;break;case 3:s=(r+a)%3==0;break;case 4:s=(Math.floor(r/3)+Math.floor(a/2))%2==0;break;case 5:s=r*a%2+r*a%3==0;break;case 6:s=(r*a%2+r*a%3)%2==0;break;case 7:s=((r+a)%2+r*a%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[a][r]&&s&&(this.modules[a][r]=!this.modules[a][r])}}getPenaltyScore(){let t=0;for(let o=0;o<this.size;o++){let n=false,i=0,l=[0,0,0,0,0,0,0];for(let c=0;c<this.size;c++)this.modules[o][c]==n?(i++,i==5?t+=T.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,l),n||(t+=this.finderPenaltyCountPatterns(l)*T.PENALTY_N3),n=this.modules[o][c],i=1);t+=this.finderPenaltyTerminateAndCount(n,i,l)*T.PENALTY_N3}for(let o=0;o<this.size;o++){let n=false,i=0,l=[0,0,0,0,0,0,0];for(let c=0;c<this.size;c++)this.modules[c][o]==n?(i++,i==5?t+=T.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,l),n||(t+=this.finderPenaltyCountPatterns(l)*T.PENALTY_N3),n=this.modules[c][o],i=1);t+=this.finderPenaltyTerminateAndCount(n,i,l)*T.PENALTY_N3}for(let o=0;o<this.size-1;o++)for(let n=0;n<this.size-1;n++){let i=this.modules[o][n];i==this.modules[o][n+1]&&i==this.modules[o+1][n]&&i==this.modules[o+1][n+1]&&(t+=T.PENALTY_N2)}let a=0;for(let o of this.modules)a=o.reduce((n,i)=>n+(i?1:0),a);let r=this.size*this.size,s=Math.ceil(Math.abs(a*20-r*10)/r)-1;return K(0<=s&&s<=9),t+=s*T.PENALTY_N4,K(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let t=Math.floor(this.version/7)+2,a=Math.floor((this.version*8+t*3+5)/(t*4-4))*2,r=[6];for(let s=this.size-7;r.length<t;s-=a)r.splice(1,0,s);return r}}static getNumRawDataModules(t){if(t<T.MIN_VERSION||t>T.MAX_VERSION)throw new RangeError("Version number out of range");let a=(16*t+128)*t+64;if(t>=2){let r=Math.floor(t/7)+2;a-=(25*r-10)*r-55,t>=7&&(a-=36)}return K(208<=a&&a<=29648),a}static getNumDataCodewords(t,a){return Math.floor(T.getNumRawDataModules(t)/8)-T.ECC_CODEWORDS_PER_BLOCK[a.ordinal][t]*T.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let a=[];for(let s=0;s<t-1;s++)a.push(0);a.push(1);let r=1;for(let s=0;s<t;s++){for(let o=0;o<a.length;o++)a[o]=T.reedSolomonMultiply(a[o],r),o+1<a.length&&(a[o]^=a[o+1]);r=T.reedSolomonMultiply(r,2)}return a}static reedSolomonComputeRemainder(t,a){let r=a.map(s=>0);for(let s of t){let o=s^r.shift();r.push(0),a.forEach((n,i)=>r[i]^=T.reedSolomonMultiply(n,o))}return r}static reedSolomonMultiply(t,a){if(t>>>8||a>>>8)throw new RangeError("Byte out of range");let r=0;for(let s=7;s>=0;s--)r=r<<1^(r>>>7)*285,r^=(a>>>s&1)*t;return K(r>>>8==0),r}finderPenaltyCountPatterns(t){let a=t[1];K(a<=this.size*3);let r=a>0&&t[2]==a&&t[3]==a*3&&t[4]==a&&t[5]==a;return(r&&t[0]>=a*4&&t[6]>=a?1:0)+(r&&t[6]>=a*4&&t[0]>=a?1:0)}finderPenaltyTerminateAndCount(t,a,r){return t&&(this.finderPenaltyAddHistory(a,r),a=0),a+=this.size,this.finderPenaltyAddHistory(a,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,a){a[0]==0&&(t+=this.size),a.pop(),a.unshift(t)}};ue.MIN_VERSION=1,ue.MAX_VERSION=40,ue.PENALTY_N1=3,ue.PENALTY_N2=3,ue.PENALTY_N3=40,ue.PENALTY_N4=10,ue.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],ue.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];var mp=ue;function G(e,t,a){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)a.push(e>>>r&1)}function de(e,t){return(e>>>t&1)!=0}function K(e){if(!e)throw new Error("Assertion error")}var yt=class N{constructor(t,a,r){this.mode=t;this.numChars=a;this.bitData=r;if(a<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let a=[];for(let r of t)G(r,8,a);return new N(bt.BYTE,t.length,a)}static makeNumeric(t){if(!N.isNumeric(t))throw new RangeError("String contains non-numeric characters");let a=[];for(let r=0;r<t.length;){let s=Math.min(t.length-r,3);G(parseInt(t.substring(r,r+s),10),s*3+1,a),r+=s}return new N(bt.NUMERIC,t.length,a)}static makeAlphanumeric(t){if(!N.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let a=[],r;for(r=0;r+2<=t.length;r+=2){let s=N.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;s+=N.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),G(s,11,a)}return r<t.length&&G(N.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,a),new N(bt.ALPHANUMERIC,t.length,a)}static makeSegments(t){return t==""?[]:N.isNumeric(t)?[N.makeNumeric(t)]:N.isAlphanumeric(t)?[N.makeAlphanumeric(t)]:[N.makeBytes(N.toUtf8ByteArray(t))]}static makeEci(t){let a=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)G(t,8,a);else if(t<16384)G(2,2,a),G(t,14,a);else if(t<1e6)G(6,3,a),G(t,21,a);else throw new RangeError("ECI assignment value out of range");return new N(bt.ECI,0,a)}static isNumeric(t){return N.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return N.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(t,a){let r=0;for(let s of t){let o=s.mode.numCharCountBits(a);if(s.numChars>=1<<o)return 1/0;r+=4+o+s.bitData.length}return r}static toUtf8ByteArray(t){t=encodeURI(t);let a=[];for(let r=0;r<t.length;r++)t.charAt(r)!="%"?a.push(t.charCodeAt(r)):(a.push(parseInt(t.substring(r+1,r+3),16)),r+=2);return a}};yt.NUMERIC_REGEX=/^[0-9]*$/,yt.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,yt.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";var ca=yt;import{jsx as ua}from"react/jsx-runtime";var Sr=2,bp=fp(function({value:e,size:t,color:a="#000",background:r="#fff"}){let s=pp(()=>{let i=mp.encodeText(e,mt.MEDIUM),l=[];for(let c=0;c<i.size;c++){let p=[];for(let y=0;y<i.size;y++){let h=i.getModule(y,c),f=p[p.length-1];f&&f.dark===h?f.length+=1:p.push({dark:h,length:1})}l.push(p)}return l},[e]),o=s.length+Sr*2,n=t/o;return ua(x,{accessibilityRole:"image",accessibilityLabel:"QR code",style:{width:t,height:t,backgroundColor:r,padding:n*Sr},children:s.map((i,l)=>ua(x,{style:{flexDirection:"row",height:n},children:i.map((c,p)=>ua(x,{style:{width:c.length*n,height:n,backgroundColor:c.dark?a:r}},p))},l))})});import{Children as yp,useEffect as Sp,useRef as vp}from"react";import{Fragment as Cp,jsx as j,jsxs as St}from"react/jsx-runtime";function wp({children:e,style:t}){return j(B,{style:[m.sectionLabel,t],children:e})}function Tp({children:e,centered:t,tone:a="tertiary",style:r}){let s=He.flatten(r),o=!!s&&(s.marginHorizontal!=null||s.margin!=null);return j(B,{style:[m.footnote,o?null:m.footnoteInset,a==="secondary"?m.footnoteSecondary:null,a==="warning"?m.footnoteWarning:null,a==="danger"?m.footnoteDanger:null,t?m.footnoteCentered:null,r],children:e})}function xp({children:e,padded:t,glass:a,style:r}){return j(x,{style:[m.card,a?m.cardGlass:null,t?m.cardPadded:null,r],children:e})}function vr({inset:e=d.rowPadH}){return j(x,{style:[m.separator,{marginLeft:e}]})}function kp({children:e,inset:t=d.rowPadH}){let a=yp.toArray(e);return j(Cp,{children:a.map((r,s)=>St(x,{children:[s>0?j(vr,{inset:t}):null,r]},r.key??s))})}var Cr=56,wr=32,vt=22,Tr=5,Ip=Cr-vt-Tr*2;function Ep({value:e,onValueChange:t,disabled:a,testID:r,accessibilityLabel:s}){let o=vp(new $t.Value(e?1:0)).current;return Sp(()=>{$t.timing(o,{toValue:e?1:0,duration:200,useNativeDriver:lg.OS!=="web"}).start()},[e,o]),j(it,{activeOpacity:.8,disabled:a,onPress:()=>t(!e),testID:r,accessibilityLabel:s,accessibilityRole:"switch",accessibilityState:{checked:e,disabled:a},hitSlop:{top:8,bottom:8,left:8,right:8},style:[m.switchTrack,e?m.switchTrackOn:null,a?m.switchDisabled:null],children:j($t.View,{style:[m.switchThumb,e?m.switchThumbOn:null,{transform:[{translateX:o.interpolate({inputRange:[0,1],outputRange:[0,Ip]})}]}]})})}function Ap({label:e,selected:t,onPress:a,disabled:r,icon:s,testID:o}){return St(it,{activeOpacity:.7,disabled:r||!a,onPress:a,testID:o,style:[m.chip,t?m.chipSelected:null,r?m.chipDisabled:null],children:[s,j(B,{style:[m.chipText,t?m.chipTextSelected:null],children:e})]})}function Rp({label:e,onPress:t,variant:a="secondary",size:r="lg",icon:s,disabled:o,fullWidth:n=true,testID:i,accessibilityLabel:l}){let c=a==="primary"?d.color.onAccent:a==="tertiary"?d.color.text:a==="destructive"?d.color.danger:d.color.accent;return St(it,{activeOpacity:.7,disabled:o,onPress:t,testID:i,accessibilityRole:"button",accessibilityLabel:l??e,accessibilityState:{disabled:!!o},style:[m.button,r==="md"?m.buttonMd:m.buttonLg,a==="primary"?m.buttonPrimary:a==="ghost"?m.buttonGhost:m.buttonPlate,n?m.buttonFullWidth:null,o?m.buttonDisabled:null],children:[s,j(B,{style:[r==="md"?m.buttonTextMd:m.buttonTextLg,{color:c}],children:e})]})}function Op({tabs:e,activeKey:t,onChange:a,size:r="md",glass:s,testIDPrefix:o}){let n=r==="sm";return j(x,{style:[m.segmentTrack,s?m.segmentTrackGlass:null],children:e.map(i=>{let l=i.key===t;return St(it,{activeOpacity:.7,testID:o?`${o}-${i.key}`:void 0,accessibilityRole:"tab",accessibilityState:{selected:l},accessibilityLabel:i.label,onPress:()=>a(i.key),style:[m.segment,n?m.segmentSm:null,l?s?m.segmentActiveGlass:m.segmentActive:null],children:[j(B,{style:[m.segmentText,n?m.segmentTextSm:null,l?m.segmentTextActive:null],children:i.label}),l?j(x,{style:[m.segmentUnderline,n?m.segmentUnderlineSm:null]}):null]},i.key)})})}function _p({label:e,tone:t="neutral"}){let a=t==="accent"?m.badgeAccent:t==="warning"?m.badgeWarning:t==="danger"?m.badgeDanger:t==="info"?m.badgeInfo:m.badgeNeutral,r=t==="accent"?m.badgeTextAccent:t==="warning"?m.badgeTextWarning:t==="danger"?m.badgeTextDanger:t==="info"?m.badgeTextInfo:m.badgeTextNeutral;return j(x,{style:[m.badge,a],children:j(B,{style:[m.badgeText,r],children:e})})}var m=He.create({sectionLabel:{color:d.color.textSecondary,fontSize:d.font.label,fontWeight:"600",letterSpacing:Na,textTransform:"uppercase",marginBottom:8,marginLeft:d.labelInset},footnote:{color:d.color.textTertiary,fontSize:d.font.caption,fontWeight:"500",lineHeight:d.font.caption*1.4,marginTop:8},footnoteInset:{marginLeft:d.labelInset},footnoteSecondary:{color:d.color.textSecondary},footnoteWarning:{color:d.color.warning},footnoteDanger:{color:d.color.danger},footnoteCentered:{textAlign:"center",marginLeft:0},card:{backgroundColor:d.color.surface,borderRadius:d.radius.card,borderWidth:1,borderColor:d.color.border,overflow:"hidden"},cardGlass:{backgroundColor:d.color.glass,borderColor:d.color.glassBorder},cardPadded:{padding:d.cardPad,gap:10},separator:{height:He.hairlineWidth,backgroundColor:d.color.separator},switchTrack:{width:Cr,height:wr,borderRadius:wr/2,borderWidth:1,borderColor:d.color.fillTertiary,backgroundColor:d.color.surfaceElevated,paddingHorizontal:Tr,justifyContent:"center",overflow:"hidden"},switchTrackOn:{backgroundColor:d.color.accentFill,borderColor:d.color.accentBorderStrong},switchDisabled:{opacity:.4},switchThumb:{width:vt,height:vt,borderRadius:vt/2,backgroundColor:d.color.knob},switchThumbOn:{backgroundColor:d.color.accent},chip:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:14,paddingVertical:9,borderRadius:d.radius.chip,borderWidth:1.5,backgroundColor:d.color.buttonSurface,borderColor:d.color.fillTertiary},chipSelected:{borderColor:d.color.accentBorderStrong},chipDisabled:{opacity:.4},chipText:{fontSize:d.font.body,fontWeight:"500",color:d.color.textSecondary},chipTextSelected:{color:d.color.accent},button:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},buttonMd:{height:34,paddingHorizontal:16,borderRadius:17},buttonLg:{height:50,paddingHorizontal:20,borderRadius:25},buttonPrimary:{backgroundColor:d.color.accent},buttonPlate:{backgroundColor:d.color.button},buttonGhost:{backgroundColor:"transparent"},buttonFullWidth:{alignSelf:"stretch"},buttonDisabled:{opacity:.4},buttonTextMd:{fontSize:15,fontWeight:"600"},buttonTextLg:{fontSize:17,fontWeight:"600"},segmentTrack:{flex:1,flexDirection:"row",backgroundColor:d.color.bg,borderRadius:d.radius.row,borderWidth:1,borderColor:d.color.border,padding:3},segment:{flex:1,paddingVertical:8,alignItems:"center",justifyContent:"center",borderRadius:d.radius.segment},segmentTrackGlass:{backgroundColor:d.color.glass,borderColor:d.color.glassBorder},segmentActive:{backgroundColor:d.color.surfaceElevated},segmentActiveGlass:{backgroundColor:d.color.glassElevated},segmentText:{fontSize:d.font.caption,fontWeight:"500",color:d.color.textSecondary},segmentTextActive:{fontWeight:"600",color:d.color.text},segmentUnderline:{position:"absolute",bottom:2,width:24,height:2.5,borderRadius:1.25,backgroundColor:d.color.accent,shadowColor:d.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:6},segmentSm:{paddingVertical:5},segmentTextSm:{fontSize:12},segmentUnderlineSm:{bottom:1.5,width:20,height:2,borderRadius:1},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:d.radius.badge,alignSelf:"flex-start"},badgeText:{fontSize:d.font.micro,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase"},badgeAccent:{backgroundColor:d.color.accentSoft},badgeTextAccent:{color:d.color.accent},badgeWarning:{backgroundColor:d.color.warningSoft},badgeTextWarning:{color:d.color.warning},badgeDanger:{backgroundColor:d.color.dangerSoft},badgeTextDanger:{color:d.color.danger},badgeInfo:{backgroundColor:d.color.infoSoft},badgeTextInfo:{color:d.color.info},badgeNeutral:{backgroundColor:d.color.fillSecondary},badgeTextNeutral:{color:d.color.textSecondary}});import{jsx as Pe,jsxs as Pp}from"react/jsx-runtime";function da(e){switch(Lt(String(e))){case"dev":return{label:"DEV",backgroundColor:w.warning};case"qa":return{label:"QA",backgroundColor:w.optional};case"staging":return{label:"STAGING",backgroundColor:w.success};case"prod":return{label:"PROD",backgroundColor:w.error};case"local":default:return{label:"LOCAL",backgroundColor:w.info}}}function Lp({color:e}){return Pe("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:Pe("path",{d:"M6 9l6 6 6-6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Mp({environment:e,interactive:t=false,onPress:a}){let r=da(e);return Pp("button",{onClick:t?a:void 0,"aria-label":`Environment: ${r.label}`,style:{display:"flex",flexDirection:"row",alignItems:"center",padding:`6px ${t?4:8}px 6px 8px`,flexShrink:0,background:"none",border:"none",cursor:t?"pointer":"default"},children:[Pe("div",{style:{width:8,height:8,borderRadius:4,backgroundColor:r.backgroundColor,marginRight:6,boxShadow:`0 0 4px ${r.backgroundColor}99`}}),Pe("span",{style:{fontSize:11,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:r.label}),t&&Pe("span",{style:{marginLeft:2,display:"flex"},children:Pe(Lp,{color:"#7A8599"})})]})}import{jsx as Ee,jsxs as ha}from"react/jsx-runtime";var Np=140,$p=28,xr=44,Bp=8,Dp=24;function ga(e){switch(Lt(e)){case"local":return{label:"LOCAL",backgroundColor:w.info};case"dev":return{label:"DEV",backgroundColor:w.warning};case"qa":return{label:"QA",backgroundColor:w.optional};case"staging":return{label:"STAGING",backgroundColor:w.success};case"prod":return{label:"PROD",backgroundColor:w.error};default:return{label:"LOCAL",backgroundColor:w.info}}}function zp({environment:e,isSelected:t,onPress:a}){let r=ga(e);return ha(cg,{onPress:a,style:({pressed:s})=>[he.optionContainer,t&&he.optionContainerSelected,s&&he.optionContainerPressed],children:[ha(x,{style:he.optionLeft,children:[Ee(x,{style:[he.optionDot,{backgroundColor:r.backgroundColor},{shadowColor:r.backgroundColor,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:4,elevation:2}]}),Ee(B,{style:he.optionLabel,children:r.label})]}),t&&Ee($a,{size:14,color:w.success,strokeWidth:3})]})}function Fp({hasItems:e,currentEnvironment:t,availableEnvironments:a,onSelect:r,width:s=Np,collapsedContent:o}){let n=Bp+a.length*xr+Dp+4,i=ha(x,{style:he.collapsedEnvBadge,children:[Ee(x,{style:[he.collapsedDot,{backgroundColor:ga(t).backgroundColor}]}),Ee(B,{style:he.collapsedLabel,children:ga(t).label})]});return Ee(La,{hasItems:e,width:s,expandedHeight:n,peekHeight:$p,showCount:false,collapsedContent:o||i,collapsedLabel:`Switch environment from ${t}`,children:a.map(l=>Ee(zp,{environment:l,isSelected:l===t,onPress:()=>r(l)},l))})}var he=He.create({collapsedEnvBadge:{flexDirection:"row",alignItems:"center",gap:6},collapsedDot:{width:8,height:8,borderRadius:4},collapsedLabel:{fontSize:11,fontWeight:"600",color:w.primaryLight,letterSpacing:.5},optionContainer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,height:xr,width:"100%"},optionContainerSelected:{backgroundColor:"rgba(128, 128, 128, 0.1)"},optionContainerPressed:{backgroundColor:"rgba(128, 128, 128, 0.2)"},optionLeft:{flexDirection:"row",alignItems:"center",flex:1},optionDot:{width:8,height:8,borderRadius:4,marginRight:10},optionLabel:{fontSize:12,fontWeight:"600",color:w.primaryLight,letterSpacing:.5}});import{useState as kr}from"react";import{jsx as te,jsxs as Ct}from"react/jsx-runtime";var Ir=36;function Hp({color:e,flipped:t}){return te("svg",{width:10,height:10,viewBox:"0 0 24 24","aria-hidden":"true",style:{transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:te("path",{d:"M18 15l-6-6-6 6",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function jp(){return te("svg",{width:12,height:12,viewBox:"0 0 24 24","aria-hidden":"true",children:te("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"#4AFF9F",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function Wp({currentEnvironment:e,availableEnvironments:t,onSelect:a}){let[r,s]=kr(false),[o,n]=kr(null),i=da(e),l=t.length*Ir;return Ct("div",{style:{position:"relative",zIndex:1e3,flexShrink:0},children:[te("div",{style:{position:"absolute",bottom:"100%",left:0,right:0,height:r?l:0,opacity:r?1:0,overflow:"hidden",transition:"height 200ms ease, opacity 200ms ease",backgroundColor:"rgba(8,12,21,0.95)",border:"1px solid #00B8E666",borderBottomWidth:0,borderTopLeftRadius:6,borderTopRightRadius:6,boxShadow:"0 -4px 8px rgba(0,0,0,0.3)"},children:t.map(c=>{let p=da(c),y=String(c).toLowerCase()===String(e).toLowerCase();return Ct("button",{onClick:()=>{s(false),a(c)},onMouseEnter:()=>n(String(c)),onMouseLeave:()=>n(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:Ir,padding:"0 10px",background:y?"rgba(128,128,128,0.1)":o===String(c)?"rgba(128,128,128,0.2)":"none",border:"none",cursor:"pointer"},children:[Ct("span",{style:{display:"flex",alignItems:"center"},children:[te("span",{style:{width:6,height:6,borderRadius:3,backgroundColor:p.backgroundColor,marginRight:8}}),te("span",{style:{fontSize:10,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:p.label})]}),y&&te(jp,{})]},String(c))})}),Ct("button",{onClick:()=>s(c=>!c),"aria-expanded":r,"aria-label":`Environment: ${i.label}. Click to switch.`,style:{display:"flex",alignItems:"center",gap:6,padding:"6px 6px 6px 8px",borderRadius:6,borderTopLeftRadius:r?0:6,borderTopRightRadius:r?0:6,backgroundColor:r?"rgba(8,12,21,0.95)":"transparent",border:"none",cursor:"pointer"},children:[te("span",{style:{width:8,height:8,borderRadius:4,backgroundColor:i.backgroundColor,boxShadow:`0 0 4px ${i.backgroundColor}99`}}),te("span",{style:{fontSize:11,fontWeight:600,color:w.primaryLight,letterSpacing:.5},children:i.label}),te(Hp,{color:"#7A8599",flipped:r})]})]})}export{yl as ARROW_BOTTOM_OFFSET,Sl as ARROW_HEIGHT,Cc as ASSETS_ICON_COLOR,fr as AccountSetup,_a as AccountSetupButton,Wo as ActionCopyButton,qc as Activity,uu as ActivityIcon,wi as AddFilterButton,Si as AddFilterInput,eu as AlertCircle,wd as AlertCircleIcon,au as AlertOctagon,su as AlertTriangle,fu as AlertTriangleIcon,od as AskBuoyIcon,yc as AssetsIcon,bn as BACKGROUND_PRESETS,Bn as BACKGROUND_STORAGE_KEY,Md as BENCHMARK_ICON_COLOR,eg as BUOY_SYNTHETIC_MARK,Ai as BackButton,Qn as BackgroundSwitcher,Ri as Badge,Dc as BarChart3,Hc as BarChart3Icon,hg as BaseEventStore,Rd as BenchmarkIcon,_h as BenchmarkLegacyIcon,lu as Bookmark,hu as Box,yu as BoxIcon,Vf as BubbleSettingsDetail,Uf as BubbleSettingsSection,mu as Bug,rd as BugIcon,to as CELLS,gl as CLIP_OFFSCREEN_CELLS,eh as CLOCK_TOOL_ICON_COLOR,Zl as CONSOLE_ICON_COLOR,nr as COPY_PAYLOAD_MAX_BYTES,Xl as CameraIcon,Og as ChangeLog,zo as ChangeRow,$a as Check,vu as CheckCircle,Tc as CheckCircle2,Ed as CheckCircle2Icon,ku as CheckCircleIcon,wu as CheckIcon,Kc as CheckSquare,bc as CheckSquareIcon,Eu as ChevronDown,Ru as ChevronDownIcon,_u as ChevronLeft,Lu as ChevronLeftIcon,Nu as ChevronRight,Bu as ChevronRightIcon,zu as ChevronUp,Kl as ChevronUpIcon,pi as ChipStrip,Qi as ClipboardHintBanner,ql as Clock,ju as ClockIcon,Jd as ClockToolIcon,Vc as Cloud,Jc as CloudIcon,$n as CollapsibleSection,Qs as CompactFilterChips,bl as CompactRow,co as CompareBar,Jh as ConsoleIcon,Uu as Copy,Mo as CopyButton,Yu as CopyIcon,Bi as CountBadge,Ma as CyberpunkSectionButton,Cn as DEFAULT_BACKGROUND,dn as DEVTOOLS_CARD_CONSTANTS,Fn as DataInspector,Ba as Database,ld as DatabaseIcon,il as DaylightTunable,Yi as DeepFieldTunable,xn as DetailView,Co as DetailViewToggle,pn as DevToolsCard,io as DiffModeTabs,Zu as DockBottom,sd as Download,Yd as DownloadIcon,An as DraggableHeader,Kn as DynamicFilterView,Gh as ENV_ICON_COLOR,ml as EVENT_LIST_PRESET,cd as Edit3,Xu as Edit3Icon,Gi as EmptyState,ii as EntityFilterView,Wh as EnvIcon,vd as EnvLaptopIcon,Mp as EnvironmentIndicator,Fp as EnvironmentSelector,Wp as EnvironmentSelectorInline,go as EventHistoryViewer,rn as EventListItem,mo as EventPickerModal,ol as EventStepperFooter,Cu as EventsIcon,La as ExpandablePopover,hl as ExpandedInfoRow,Ci as ExportPreview,yd as Eye,ad as EyeIcon,Da as EyeOff,nd as EyeOffIcon,On as FeatureGate,oc as FileCode,hd as FileCodeIcon,Td as FileJson,lh as FileJsonIcon,Ad as FileText,md as FileTextIcon,Ld as Film,Zc as FilmIcon,Dd as Filter,mi as FilterBadge,Cd as FilterIcon,ki as FilterList,gi as FilterSection,Wd as FlaskConical,Id as FlaskConicalIcon,Kd as FloatWindow,El as FloatingTool,xl as FloatingToolDivider,Ll as FloatingToolHost,kl as FloatingToolUserStatus,ri as FooterButton,Xo as FooterCaption,ei as FooterMessage,Ko as FooterRow,wo as FreeAccountPrompt,Gl as GAME_UI_ALERT_STATES,Hl as GameUICollapsibleSection,Ul as GameUICompactStats,Vl as GameUIIssuesList,Wl as GameUIStatusHeader,Zd as GitBranch,_d as GitBranchIcon,sh as Globe,gd as GlobeIcon,Pn as GripVerticalIcon,Ac as Hand,yh as HandIcon,cc as HardDrive,$d as HardDriveIcon,ch as Hash,Hd as HashIcon,Sn as HeaderSearchButton,iu as HelpCircle,Vu as HighlightIcon,Ch as HighlightUpdatesIcon,ud as HighlighterIcon,an as HintsProvider,Xr as HistoryEntryRow,Qr as HistoryList,Vr as HistoryProvider,fh as Home,Ic as HomeIcon,fc as IMAGES_ICON_COLOR,Lc as IMAGE_OVERLAY_ICON_COLOR,Ec as IMPERSONATE_ICON_COLOR,pd as IconBackground,Gu as IconCircle,Hu as IconContainer,td as IconLine,qu as IconRect,Sh as Image,ru as ImageIcon,Rc as ImageOverlayIcon,dc as ImagesIcon,xc as ImpersonateIcon,xh as Info,Gd as InfoIcon,yo as InfoRow,Bo as InlineCopyButton,Gc as JOTAI_ICON_COLOR,jc as JotaiIcon,gp as JsModal,Rh as Key,Xd as KeyIcon,vh as LIFECYCLE_TOOL_ICON_COLOR,Oh as LOCATION_TOOL_ICON_COLOR,fo as LOGIN_COMMAND,ro as LOG_LIST_PRESET,kd as LaptopIcon,Mh as Layers,ah as LayersIcon,fn as LicenseEntryModal,ph as LifecycleToolIcon,Wi as LinearFade,Dh as Link,gh as LinkIcon,ui as ListItem,gn as LiveSkyTunable,kh as LocationToolIcon,Hh as Lock,Qd as LockIcon,Zt as LogLevel,Zt as LogLevelEnum,ea as LogType,ea as LogTypeEnum,vo as MAX_PERIOD,mc as Maximize2,nh as Maximize2Icon,Vi as MethodBadge,Uh as Minus,hh as MinusIcon,ti as ModalHeader,si as ModalHintBanner,al as MoonlightTunable,Yh as Music,nu as MusicIcon,Fh as NETWORK_ICON_COLOR,Na as NIGHT_LABEL_TRACKING,Ud as NOTIFICATIONS_ICON_COLOR,qh as Navigation,ih as NavigationIcon,dd as NetworkGlobeIcon,Bh as NetworkIcon,_p as NightBadge,Rp as NightButton,xp as NightCard,Ap as NightChip,Tp as NightFootnote,kp as NightRows,wp as NightSectionLabel,Op as NightSegmented,vr as NightSeparator,Ep as NightSwitch,qi as NoDataEmptyState,en as NoResultsEmptyState,sn as NoSearchResultsEmptyState,zd as NotificationsIcon,zn as OTTO_ANCHORS,Wn as OTTO_ANCHOR_SIZE,Tn as OTTO_GRID,el as OTTO_GROUPS,Yn as OTTO_NOTES,En as OTTO_PALETTE,nl as OTTO_REEL,Zs as OTTO_SCENES,Oi as OTTO_SCENE_BY_ID,Mi as OTTO_SCENE_CROP_H,fi as OTTO_SCENE_H,bi as OTTO_SCENE_OTTO,li as OTTO_SCENE_PALETTE,di as OTTO_SCENE_W,Nn as OTTO_STATES,qn as OTTO_STATE_NAMES,sl as OTTO_USES,oi as Otto,Zo as OttoMotionView,Uo as OttoPixels,Di as OttoSceneFrame,ji as OttoSceneStill,Yo as OttoStill,uh as PERMISSIONS_ICON_COLOR,ht as PERSONAL_SETTING_KEYS,or as PREVIEW_ITEM_RENDER_BYTE_LIMIT,ec as Palette,bh as PaletteIcon,sc as Pause,wh as PauseIcon,oh as PermissionsIcon,du as Phone,pu as PhoneIcon,jo as Pill,pl as PillBadge,tc as Pin,lc as Play,Eh as PlayIcon,hc as Plus,Ph as PlusIcon,pc as Power,Bd as PowerIcon,ul as PowerToggleButton,id as PrimitiveGlobeIcon,yn as ProBadge,Dn as ProFeatureBanner,wn as ProUpgradeModal,bp as QrCodeView,fd as QueryIcon,hs as REMOTE_RELOAD_DELAY_MS,zi as RadialGlow,Ni as RasterLayer,Od as ReactQueryIcon,Ju as ReduxIcon,Sc as RefreshCw,$h as RefreshCwIcon,$o as RelativeTime,Ih as RenderCountIcon,mh as RenderPulseIcon,Pc as Route,$u as RouteDotIcon,th as RouteIcon,qd as RouteMapIcon,Pu as RoutePathIcon,Au as RoutePinIcon,Fu as RouteTwoPinsIcon,xu as RoutesIcon,vl as SPACING_GAP,Sd as ScenariosIcon,wc as Search,Un as SearchBar,zh as SearchIcon,ni as SectionHeader,Nd as SentryBugIcon,bu as SentryIcon,cr as SentryLogger,kc as Server,Pd as ServerIcon,Nt as Settings,jh as SettingsIcon,Oc as SettingsSolid,ar as SettingsSync,Mc as Shield,Vh as ShieldIcon,Su as Smartphone,Tu as SmartphoneIcon,Uc as Square,Qc as SquareDashed,vc as SquareDashedIcon,gc as SquareIcon,dh as StackPulseIcon,Zr as StandaloneHistoryList,nn as StatsCard,Li as StatusBadge,mn as StatusIndicator,ed as StorageIcon,Fd as StorageStackIcon,$i as StorageTypeBadge,Aa as Subscribable,Qa as TEAM_SETTING_KEYS,ko as TIER_LIMITS,nc as TIME_MACHINE_ICON_COLOR,bo as TRANSPARENT,Ji as TabSelector,_c as TestTube2,Kh as TestTube2Icon,Eo as TickProvider,vn as TimeDisplay,rc as TimeMachineIcon,Iu as Timer,Ou as TimerIcon,ci as ToggleRow,Mt as ToolBackground,Zi as ToolButton,ln as ToolEmptyState,Vo as ToolFooter,sr as ToolScreenHeaderContext,Go as ToolbarClearButton,Fo as ToolbarCopyButton,Mu as Touchpad,Du as TouchpadIcon,Fc as Trash,Bc as Trash2,Ql as Trash2Icon,Th as TrashIcon,Nc as TriangleAlert,Ah as TriangleAlertIcon,Hi as TypeBadge,Wc as Unlock,rh as UnlockIcon,jn as UpgradeModal,In as UpgradePrompt,Yc as Upload,jd as UploadIcon,Xc as User,Lh as UserIcon,Jl as Users,Wu as UsersIcon,Pi as ValueTypeBadge,ao as ViewToggleCards,Ku as Volume,Qu as VolumeIcon,ho as WATER_CELLS,po as WATER_FRAMES,oo as WATER_ROW0,lo as WATER_ROWS,dt as WIRE_DETAIL_LIMIT_BYTES,Ya as WIRE_INLINE_LIMIT_BYTES,tu as Wifi,xd as WifiBifIcon,Vd as WifiCircuitIcon,bd as WifiIcon,tl as WindowControls,Xi as Wormhole,cu as X,ou as XCircle,ic as XCircleIcon,ac as XIcon,zc as ZUSTAND_ICON_COLOR,gu as Zap,uc as ZapIcon,$c as ZustandIcon,jl as absoluteFill,lr as add,ut as approxJsonSize,Ae as assertAccountAccess,Hn as backgroundStore,bs as browserRouter,Y as buoyColors,Tl as calculateTargetPosition,wl as calculateTooltipPosition,pf as canOpenBuoyTools,Ja as capDetail,Ef as classifyPreviewItem,Hf as clearEntries,Ki as copyToClipboard,tg as countBuoyListener,Fi as createAutoDetectedClipboard,Tf as createRestoreScope,Jg as createSyncAdapter,sf as createToolFactory,Rg as createToolStore,Po as cycleIndexes,Yf as definePersistedSetting,rf as defineToolPreset,Kg as detailByIdAction,xe as devToolsStorageKeys,Qh as dialColors,_l as dismissFloatingTool,df as dispatchToolAction,zl as displayValue,xf as emptyRestoreResult,Of as entityColor,Ft as expandKeyedArrays,kf as failedRestore,Ga as findKeyPath,Io as flatColors,Hs as flattenObject,ir as formatBytes,Lf as formatDuration,Bf as formatHttpStatus,Mf as formatNumber,js as formatPath,xo as formatRelativeTime,Ds as formatValue,_f as formatValuePreview,w as gameUIColors,fe as getAccountAccess,Ui as getAutoDetectedClipboard,Il as getBubbleAnchorPosition,Gf as getBubbleVisibilitySettings,Us as getCachedOptionalModule,Ls as getConstructorName,fs as getDevServerOrigin,is as getDeviceInfo,Ff as getEntries,Al as getFloatingTools,Df as getMethodColor,Ln as getPreset,ag as getRealAppState,Es as getRegisteredToolModule,Gs as getRenderCaptureProvider,Zh as getSafeAreaInsets,Ts as getSafeCurrentPathname,xs as getSafeCurrentRoute,ws as getSafeRouter,Cl as getScreenCenterY,tn as getSkyScrub,Js as getStateSnapshotProvider,Ks as getStateSnapshotProviders,ng as getStorageBackendType,Oe as getToolAdapters,bf as getToolAttention,ls as getToolModuleVersion,zs as getTypeColor,Oa as getUseAccountAccess,Gn as getUseIsPro,Jn as getUseLicense,Zn as getUseTier,Ns as getValueSize,Os as getValueType,To as gridKey,rr as guardToolAdapter,q as hasAccountAccess,zt as identityField,Z as ignoredPatternsStore,sg as isDevToolsStorageKey,Ms as isEmpty,ks as isExpoRouterAvailable,Ra as isJsonSerializable,Wg as isOnDeviceMarker,Wt as isOverWireBudget,$s as isPlainObjectUtil,_s as isPrimitive,rl as isProNow,Kt as isToolRegistryReady,bg as isUrlIgnored,ig as isUsingPersistentStorage,Ps as isValidJson,Re as listShapes,cf as listSnapshotToolIds,lf as listToolActions,nf as listToolIds,Ws as loadOptionalModule,ns as logDeviceInfo,ot as macOSColors,Vg as memoByIdentity,Xa as mergeChangeSources,Nh as monoFont,Ho as motionUnits,Gg as newestFitting,d as night,Qo as noWindowDragProps,Lt as normalizeEnvironment,ze as notifySubscriberCountChange,jg as onDeviceMarker,Xg as onSettingsApplied,ff as openBuoyTool,Ol as openFloatingTool,Ro as ottoCycle,cl as ottoReel,fl as ottoRuns,Ii as ottoSceneBounds,Ti as ottoSceneRuns,Do as ottoSheets,_n as ottoWaterRows,Fl as parseDisplayValue,Ht as parsePath,zf as parseUrl,Bs as parseValue,Dg as patchFromPath,F as persistentStorage,Rn as presetAt,kn as presetIndex,qa as readParams,Bg as readPath,uf as readToolSnapshot,Pt as realNow,No as rectsOf,Xh as refreshGameUIColors,Hg as refusalText,ps as registerBrowserRouter,Pl as registerPersistentFloatingTool,Ys as registerStateSnapshotProvider,of as registerToolAdapters,Is as registerToolModules,gf as registerToolOpener,ds as reloadApp,dl as renderOttoFrame,vi as renderOttoScene,ts as resetPersistedStateCache,Ao as resolveEffectiveTier,hn as resolveListEmptyState,us as resolveReloadStrategy,so as retryAccountAccess,$l as safeStringify,xi as scatter,gs as scheduleReloadApp,Wf as sentryLogger,Xn as setExpandableWindowControls,Vs as setRenderCaptureProvider,on as setSkyScrub,mf as setToolAttention,Pf as shallowDiffSummary,Ve as shapeKind,We as shapeOf,Ng as shapeSummary,Lg as shapesWereTruncated,no as signOutOfBuoy,Yg as sizeOrStub,yi as sizeWarningLevel,If as skippedRestore,tf as startSettingsSync,Fe as subscribeAccountAccess,ms as subscribeBrowserNavigation,Rl as subscribeFloatingTools,rg as subscribeRealAppState,cs as subscribeToStateSnapshotProviders,Rs as subscribeToSubscriberCountChanges,yf as subscribeToolAttention,As as subscriberCountNotifier,zg as suggestedPatch,Dl as superJsonDeserialize,Bl as superJsonSerialize,af as syncSettingsNow,lt as teamSettingsStore,Ug as toWire,ll as toolTheme,$f as truncateMiddle,Nf as truncatePayload,Fs as truncateText,Ka as truncatedNote,jt as typedEditViolations,Rf as unionKeys,Mg as unshapedLists,za as urlMatchesIgnoredPattern,Jr as useAllHistoryEntries,as as useChangeLog,hi as useChipTap,os as useDeviceInfo,ss as useEventStoreEvents,Mn as useFeatureGate,Ml as useFilterManager,Yl as useGameUIAlertState,un as useHintsContext,Pa as useHintsDisabled,Kr as useHistoryAdapter,Yr as useHistoryAdapters,Gr as useHistoryContext,qr as useHistoryEntryCounts,xg as useIgnoredPatterns,_o as useLimit,eo as useLoop,ai as useOttoAnchorMotion,qo as useOttoReel,es as usePersistedState,_i as usePulse,Lo as useRelativeTime,Nl as useSafeAreaInsets,Cs as useSafeGlobalSearchParams,Ss as useSafePathname,ys as useSafeRouter,vs as useSafeSegments,cn as useSkyScrub,rs as useSubscribedValue,Eg as useTeamList,Oo as useTick,Vn as useToolBackground,wf as useToolScreenHeader,hf as waitForToolRegistry,Jo as windowDragProps,Ei as withBgAlpha,Af as wontApply};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/shared-ui",
3
- "version": "7.0.50",
3
+ "version": "7.0.51",
4
4
  "description": "Shared UI components, hooks, and utilities",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -225,11 +225,11 @@
225
225
  ],
226
226
  "sideEffects": false,
227
227
  "dependencies": {
228
- "@buoy-gg/floating-tools-core": "^7.0.50",
229
- "@buoy-gg/floating-tools-react": "^7.0.50"
228
+ "@buoy-gg/floating-tools-core": "^7.0.51",
229
+ "@buoy-gg/floating-tools-react": "^7.0.51"
230
230
  },
231
231
  "peerDependencies": {
232
- "@buoy-gg/license": "7.0.50",
232
+ "@buoy-gg/license": "7.0.51",
233
233
  "react": "*"
234
234
  },
235
235
  "peerDependenciesMeta": {
@@ -262,7 +262,7 @@
262
262
  "expo-clipboard": "~7.1.5",
263
263
  "react-native-safe-area-context": "^5.6.2",
264
264
  "typescript": "~5.8.3",
265
- "@buoy-gg/license": "^7.0.50"
265
+ "@buoy-gg/license": "^7.0.51"
266
266
  },
267
267
  "react-native-builder-bob": {
268
268
  "source": "src",