@plyaz/config 1.6.4 → 1.7.0
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.
- package/dist/api/index.cjs +3 -0
- package/dist/api/index.cjs.map +1 -0
- package/dist/api/index.mjs +3 -0
- package/dist/api/index.mjs.map +1 -0
- package/dist/auth/constants.d.ts +6 -0
- package/dist/auth/constants.d.ts.map +1 -0
- package/dist/auth/index.cjs +3 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.mjs +3 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/chains/supportedChains.d.ts +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/notifications/index.cjs +3 -0
- package/dist/notifications/index.cjs.map +1 -0
- package/dist/notifications/index.mjs +3 -0
- package/dist/notifications/index.mjs.map +1 -0
- package/package.json +15 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
'use strict';// @plyaz package - Built with tsup
|
|
2
|
+
var e={SECOND:1e3,THIRTY_SECONDS:3e4,TWO_MINUTES:12e4};var i={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:false,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"minimal",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},o={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},s={timeout:e.TWO_MINUTES,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:true},enrichedHeaders:{enabled:true,preset:"full",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,includePerformance:true,respectDoNotTrack:false,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:false,adaptConfig:false,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"immediate",eventStrategy:"immediate",telemetry:false},retryStrategy:"conservative",encryption:{enabled:false,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}};var T={baseURL:"",timeout:e.THIRTY_SECONDS,retry:{attempts:3,delay:e.SECOND,maxDelay:e.THIRTY_SECONDS,backoff:1.5},cache:{ttl:60,stale:300},headers:{"Content-Type":"application/json",Accept:"application/json"},strategy:"softFail"},l={enrichedHeaders:{enabled:true,preset:"standard"}};exports.DEFAULT_API_CLIENT_OPTIONS=l;exports.DEFAULT_API_CONFIG=T;exports.DEVELOPMENT_CONFIG=s;exports.PRODUCTION_CONFIG=i;exports.STAGING_CONFIG=o;//# sourceMappingURL=index.cjs.map
|
|
3
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/time/constants.ts","../../src/api/environments.ts","../../src/api/package/defaults.ts"],"names":["TIME_CONSTANTS","PRODUCTION_CONFIG","STAGING_CONFIG","DEVELOPMENT_CONFIG","DEFAULT_API_CONFIG","DEFAULT_API_CLIENT_OPTIONS"],"mappings":"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","file":"index.cjs","sourcesContent":["/**\n * Time-related Constants\n *\n * Common time values and durations used throughout the application\n * for timeouts, delays, caching, and other time-based operations.\n *\n * @module time/constants\n */\n\n/**\n * Time conversion and duration constants\n */\nexport const TIME_CONSTANTS = {\n // Time unit conversions (in milliseconds)\n /**\n * One millisecond in milliseconds\n */\n MILLISECOND: 1,\n\n /**\n * One second in milliseconds\n */\n SECOND: 1000,\n\n /**\n * One minute in milliseconds\n */\n MINUTE: 60000,\n\n /**\n * One hour in milliseconds\n */\n HOUR: 3600000,\n\n /**\n * One day in milliseconds\n */\n DAY: 86400000,\n\n /**\n * One week in milliseconds\n */\n WEEK: 604800000,\n\n /**\n * One month in milliseconds (30 days average)\n */\n MONTH: 2592000000,\n\n /**\n * One year in milliseconds (365 days)\n */\n YEAR: 31536000000,\n\n // Time unit ratios\n /**\n * Number of milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Number of seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Number of minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Number of hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Number of days in one week\n */\n DAYS_PER_WEEK: 7,\n\n /**\n * Number of days in one month (average)\n */\n DAYS_PER_MONTH: 30,\n\n /**\n * Number of days in one year\n */\n DAYS_PER_YEAR: 365,\n\n /**\n * Number of weeks in one year\n */\n WEEKS_PER_YEAR: 52,\n\n /**\n * Number of months in one year\n */\n MONTHS_PER_YEAR: 12,\n\n // Common durations in milliseconds\n /**\n * 100 milliseconds\n */\n HUNDRED_MS: 100,\n\n /**\n * 250 milliseconds\n */\n QUARTER_SECOND: 250,\n\n /**\n * 500 milliseconds (half second)\n */\n HALF_SECOND: 500,\n\n /**\n * 2 seconds in milliseconds\n */\n TWO_SECONDS: 2000,\n\n /**\n * 3 seconds in milliseconds\n */\n THREE_SECONDS: 3000,\n\n /**\n * 5 seconds in milliseconds\n */\n FIVE_SECONDS: 5000,\n\n /**\n * 10 seconds in milliseconds\n */\n TEN_SECONDS: 10000,\n\n /**\n * 30 seconds in milliseconds\n */\n THIRTY_SECONDS: 30000,\n\n /**\n * 2 minutes in milliseconds\n */\n TWO_MINUTES: 120000,\n\n /**\n * 5 minutes in milliseconds\n */\n FIVE_MINUTES: 300000,\n\n /**\n * 10 minutes in milliseconds\n */\n TEN_MINUTES: 600000,\n\n /**\n * 15 minutes in milliseconds\n */\n FIFTEEN_MINUTES: 900000,\n\n /**\n * 30 minutes in milliseconds\n */\n THIRTY_MINUTES: 1800000,\n\n /**\n * 1 hour in milliseconds\n */\n ONE_HOUR: 3600000,\n\n /**\n * 2 hours in milliseconds\n */\n TWO_HOURS: 7200000,\n\n /**\n * 6 hours in milliseconds\n */\n SIX_HOURS: 21600000,\n\n /**\n * 12 hours in milliseconds\n */\n TWELVE_HOURS: 43200000,\n\n // Default values\n /**\n * Default timeout duration in milliseconds (5 seconds)\n */\n DEFAULT_TIMEOUT: 5000,\n\n /**\n * Default short timeout in milliseconds (1 second)\n */\n DEFAULT_SHORT_TIMEOUT: 1000,\n\n /**\n * Default long timeout in milliseconds (30 seconds)\n */\n DEFAULT_LONG_TIMEOUT: 30000,\n\n /**\n * Default retry delay in milliseconds (100ms)\n */\n DEFAULT_RETRY_DELAY: 100,\n\n /**\n * Default exponential backoff base delay in milliseconds (1 second)\n */\n DEFAULT_BACKOFF_BASE: 1000,\n\n /**\n * Default maximum backoff delay in milliseconds (30 seconds)\n */\n DEFAULT_MAX_BACKOFF: 30000,\n\n /**\n * Default number of retry attempts\n */\n DEFAULT_RETRY_ATTEMPTS: 3,\n\n /**\n * Default debounce delay in milliseconds (50ms)\n */\n DEFAULT_DEBOUNCE_DELAY: 50,\n\n /**\n * Default throttle delay in milliseconds (100ms)\n */\n DEFAULT_THROTTLE_DELAY: 100,\n\n /**\n * Default animation frame duration in milliseconds (~60fps)\n */\n DEFAULT_ANIMATION_FRAME: 16.67,\n\n /**\n * Default transition duration in milliseconds (300ms)\n */\n DEFAULT_TRANSITION_DURATION: 300,\n\n /**\n * Default cache time-to-live in seconds (5 minutes)\n */\n DEFAULT_CACHE_TTL: 300,\n\n /**\n * Default short cache TTL in seconds (1 minute)\n */\n DEFAULT_SHORT_CACHE_TTL: 60,\n\n /**\n * Default long cache TTL in seconds (1 hour)\n */\n DEFAULT_LONG_CACHE_TTL: 3600,\n\n /**\n * Default session timeout in milliseconds (30 minutes)\n */\n DEFAULT_SESSION_TIMEOUT: 1800000,\n\n /**\n * Default idle timeout in milliseconds (15 minutes)\n */\n DEFAULT_IDLE_TIMEOUT: 900000,\n\n /**\n * Default poll interval in milliseconds (5 seconds)\n */\n DEFAULT_POLL_INTERVAL: 5000,\n\n /**\n * Default heartbeat interval in milliseconds (30 seconds)\n */\n DEFAULT_HEARTBEAT_INTERVAL: 30000,\n\n // Network and ports\n /**\n * Default port number for servers\n */\n DEFAULT_PORT: 3000,\n\n /**\n * Default HTTP port\n */\n HTTP_PORT: 80,\n\n /**\n * Default HTTPS port\n */\n HTTPS_PORT: 443,\n\n /**\n * Default WebSocket port\n */\n WEBSOCKET_PORT: 8080,\n\n /**\n * Default database port (PostgreSQL)\n */\n DATABASE_PORT: 5432,\n\n /**\n * Default Redis port\n */\n REDIS_PORT: 6379,\n\n // WebSocket specific\n /**\n * WebSocket normal closure code\n */\n WEBSOCKET_CLOSE_NORMAL: 1000,\n\n /**\n * WebSocket going away code\n */\n WEBSOCKET_CLOSE_GOING_AWAY: 1001,\n\n /**\n * WebSocket protocol error code\n */\n WEBSOCKET_CLOSE_PROTOCOL_ERROR: 1002,\n\n /**\n * WebSocket unsupported data code\n */\n WEBSOCKET_CLOSE_UNSUPPORTED: 1003,\n\n /**\n * WebSocket abnormal closure code\n */\n WEBSOCKET_CLOSE_ABNORMAL: 1006,\n\n /**\n * WebSocket retry delay in milliseconds (500ms)\n */\n WEBSOCKET_RETRY_DELAY: 500,\n\n /**\n * WebSocket ping interval in milliseconds (30 seconds)\n */\n WEBSOCKET_PING_INTERVAL: 30000,\n\n /**\n * WebSocket reconnect delay in milliseconds (1 second)\n */\n WEBSOCKET_RECONNECT_DELAY: 1000,\n\n /**\n * WebSocket max reconnect delay in milliseconds (30 seconds)\n */\n WEBSOCKET_MAX_RECONNECT_DELAY: 30000,\n} as const;\n\n/**\n * Type for time constant values\n */\nexport type TimeConstant = (typeof TIME_CONSTANTS)[keyof typeof TIME_CONSTANTS];\n","/**\n * API Client Environment Configurations\n *\n * Provides environment-specific default configurations for the API client service.\n * These configs are optimized for production, staging, and development environments.\n *\n * @module config/api/environments\n */\n\nimport type { ApiConfig, HeaderPresetName, EncryptionKey } from '@plyaz/types/api';\nimport { TIME_CONSTANTS } from '../time';\n\n/**\n * Production configuration for the API client service.\n * Optimized for reliability, security, and performance in production environments.\n *\n * Key Production Features:\n * - Encryption REQUIRED (enforced)\n * - Minimal headers (privacy-focused)\n * - Network adaptation enabled (auto-adjust to conditions)\n * - Balanced telemetry (monitoring without overhead)\n * - Aggressive retry strategy (5 attempts with exponential backoff)\n * - Uses retry PRESET strings instead of hardcoded values\n */\nexport const PRODUCTION_CONFIG: Partial<ApiConfig> = {\n // Core settings\n timeout: TIME_CONSTANTS.THIRTY_SECONDS,\n\n // Unified strategy - includes cache, retry, performance strategies\n // 'interactive' = standard cache + standard retry + balanced performance\n unifiedStrategy: 'interactive',\n\n // Revalidation strategy - NOT covered by unifiedStrategy\n // Controls when to revalidate cached data (SWR pattern)\n revalidationStrategy: 'balanced', // Revalidate on focus, network reconnect\n\n // Error handling strategy - return {data, error} without throwing\n strategy: 'softFail',\n\n // Default JSON headers for most API interactions\n headers: {\n presets: ['json' as unknown as HeaderPresetName] as const, // Sets Accept and Content-Type to application/json\n autoDetectNetwork: true,\n requestClientHints: false,\n },\n\n // Enriched headers - minimal preset with GLOBAL compliance\n // Adds ~5-7 headers: platform, app version, timezone, locale, network type\n // Privacy-conscious: respects DNT, no device fingerprinting\n // Global compliance: covers GDPR, CCPA, PIPL, APPI automatically\n enrichedHeaders: {\n enabled: true,\n preset: 'standard', // standard context headers\n includeDevice: false, // No device fingerprinting (privacy)\n includeNetwork: true, // Network type (wifi/cellular/etc)\n includePlatform: true, // Platform (web/ios/android)\n includeCompliance: true, // Timezone, locale for regional compliance\n respectDoNotTrack: true, // Honor DNT header (GDPR/CCPA)\n autoDetectRegion: true, // Auto-detect region from timezone\n regionalPreset: 'global', // Global compliance (GDPR+CCPA+PIPL+APPI)\n useTimezone: true, // Use timezone for region detection\n },\n\n // Network awareness - monitoring enabled, WITH auto-adaptation\n // Adjusts strategies based on network quality\n networkAware: {\n enabled: true, // Enable network quality monitoring\n adaptConfig: true, // Auto-adjust strategies based on network\n requestClientHints: false, // Don't request extra browser hints\n },\n\n // Tracking configuration - balanced for production (monitoring without overhead)\n tracking: {\n enabled: true,\n operations: true,\n events: true,\n performanceMode: 'minimal', // Not 'full' - avoid overhead in prod\n queueStrategy: 'batch',\n eventStrategy: 'queued',\n telemetry: true, // Send to monitoring in production\n },\n\n // Retry strategy - use preset instead of hardcoded values\n retryStrategy: 'aggressive', // More retries for production reliability (5 attempts)\n // Note: unifiedStrategy 'interactive' already includes 'standard' retry (3 attempts)\n // This overrides it for production to be more aggressive\n\n // Encryption - ENABLED by default for regulatory compliance (GDPR, CCPA, PIPL, etc.)\n // Encrypts common sensitive fields automatically\n // User MUST provide encryption key via init() - defaults don't include key\n encryption: {\n enabled: true,\n algorithm: 'AES-GCM', // Industry standard, FIPS 140-2 compliant\n autoDecrypt: true, // Auto-decrypt responses\n target: ['all'], // Encrypt in request body and query params\n // Key will be provided by user during initialization\n key: undefined as unknown as EncryptionKey, // Placeholder - user must provide via apiConfig\n\n // Common sensitive field patterns (uses glob matching)\n // Covers: email, SSN, phone, card numbers, passwords, tokens, wallet addresses\n fields: [\n // Personal Identifiable Information (PII) - GDPR Art. 9\n '*.email',\n '*.ssn',\n '*.taxId',\n '*.nationalId',\n '*.passport',\n '*.driverLicense',\n '*.governmentId',\n\n // Contact Information - GDPR Art. 4(1)\n '*.phone',\n '*.phoneNumber',\n '*.mobile',\n '*.telephone',\n '*.address.street',\n '*.address.line1',\n '*.address.line2',\n '*.postalCode',\n '*.zipCode',\n\n // Financial Information - PCI-DSS Req 3.4\n '*.cardNumber',\n '*.creditCard',\n '*.debitCard',\n '*.cvv',\n '*.cvc',\n '*.iban',\n '*.accountNumber',\n '*.routingNumber',\n '*.swiftCode',\n '*.sortCode',\n\n // Authentication Credentials - OWASP ASVS 2.1\n '*.password',\n '*.apiKey',\n '*.secret',\n '*.token',\n '*.accessToken',\n '*.refreshToken',\n '*.privateKey',\n '*.secretKey',\n\n // Crypto/Blockchain - Web3 security\n '*.wallet',\n '*.walletAddress',\n '*.mnemonic',\n '*.seedPhrase',\n '*.privateKeyHex',\n\n // Health Information - HIPAA §164.312(a)(2)(iv)\n '*.medicalRecord',\n '*.medicalRecordNumber',\n '*.healthInfo',\n '*.diagnosis',\n '*.prescription',\n '*.healthInsurance',\n\n // Biometric Data - GDPR Art. 9(1)\n '*.fingerprint',\n '*.faceId',\n '*.biometric',\n\n // Date of Birth - Age verification\n '*.birthDate',\n '*.dateOfBirth',\n '*.dob',\n\n // IP Addresses - GDPR considers PII\n '*.ipAddress',\n '*.ip',\n ],\n\n // Key provider - MUST be provided by user via init()\n // Supports three patterns:\n //\n // 1. EncryptionKey object (with metadata):\n // key: {\n // id: 'prod-key-v1',\n // key: process.env.ENCRYPTION_KEY!,\n // algorithm: 'AES-GCM',\n // format: 'raw'\n // }\n //\n // 2. KeyProvider function (for key rotation):\n // key: async (context) => {\n // const keyId = await getActiveKeyId();\n // const key = await keyManagementService.getKey(keyId);\n // return { id: keyId, key, algorithm: 'AES-GCM' };\n // }\n //\n // 3. Simple string (auto-converted to EncryptionKey):\n // key: process.env.ENCRYPTION_KEY!\n //\n // NO default key - user provides via init()\n },\n};\n\n/**\n * Staging configuration for the API client service.\n * ALIGNED with production for accurate pre-production testing.\n * Only differences: standard headers for debugging, full performance tracking.\n *\n * Key Staging Features:\n * - Encryption ENABLED (same as production)\n * - Standard headers (slightly more context for debugging than prod)\n * - Full performance tracking (catch issues before production)\n * - Same retry strategy as production (aggressive)\n * - Same network adaptation as production\n */\nexport const STAGING_CONFIG: Partial<ApiConfig> = {\n // Core settings - SAME AS PRODUCTION\n timeout: TIME_CONSTANTS.THIRTY_SECONDS,\n\n // Unified strategy - SAME AS PRODUCTION\n unifiedStrategy: 'interactive',\n\n // Revalidation strategy - SAME AS PRODUCTION\n revalidationStrategy: 'balanced',\n\n // Error handling strategy - SAME AS PRODUCTION\n strategy: 'softFail',\n\n // Headers preset - SAME AS PRODUCTION\n headers: {\n presets: ['json' as unknown as HeaderPresetName] as const,\n autoDetectNetwork: true,\n requestClientHints: false, // Same as prod\n },\n\n // Enriched headers - SLIGHTLY MORE than prod for debugging\n enrichedHeaders: {\n enabled: true,\n preset: 'standard', // One level up from prod's 'minimal'\n includeDevice: true, // Include device info for debugging\n includeNetwork: true,\n includePlatform: true,\n includeCompliance: true,\n respectDoNotTrack: true, // Same as prod\n autoDetectRegion: true,\n regionalPreset: 'global', // Same as prod\n useTimezone: true,\n },\n\n // Network awareness - SAME AS PRODUCTION\n networkAware: {\n enabled: true,\n adaptConfig: true, // Same as prod\n requestClientHints: false, // Same as prod\n },\n\n // Tracking configuration - FULL in staging (only difference from prod)\n tracking: {\n enabled: true,\n operations: true,\n events: true,\n performanceMode: 'full', // Full tracking to catch issues (prod uses 'balanced')\n queueStrategy: 'batch',\n eventStrategy: 'queued',\n telemetry: true, // Same as prod\n },\n\n // Retry strategy - SAME AS PRODUCTION\n retryStrategy: 'aggressive', // Same aggressive retries as production\n // Test production retry behavior in staging\n\n // Encryption - SAME AS PRODUCTION (REQUIRED)\n encryption: {\n enabled: true, // REQUIRED in staging (same as prod)\n algorithm: 'AES-GCM',\n autoDecrypt: true,\n target: ['all'],\n key: undefined as unknown as EncryptionKey, // Placeholder - user must provide via apiConfig\n fields: [\n // Same 50+ fields as production\n '*.email',\n '*.ssn',\n '*.taxId',\n '*.nationalId',\n '*.passport',\n '*.driverLicense',\n '*.governmentId',\n '*.phone',\n '*.phoneNumber',\n '*.mobile',\n '*.telephone',\n '*.address.street',\n '*.address.line1',\n '*.address.line2',\n '*.postalCode',\n '*.zipCode',\n '*.cardNumber',\n '*.creditCard',\n '*.debitCard',\n '*.cvv',\n '*.cvc',\n '*.iban',\n '*.accountNumber',\n '*.routingNumber',\n '*.swiftCode',\n '*.sortCode',\n '*.password',\n '*.apiKey',\n '*.secret',\n '*.token',\n '*.accessToken',\n '*.refreshToken',\n '*.privateKey',\n '*.secretKey',\n '*.wallet',\n '*.walletAddress',\n '*.mnemonic',\n '*.seedPhrase',\n '*.privateKeyHex',\n '*.medicalRecord',\n '*.medicalRecordNumber',\n '*.healthInfo',\n '*.diagnosis',\n '*.prescription',\n '*.healthInsurance',\n '*.fingerprint',\n '*.faceId',\n '*.biometric',\n '*.birthDate',\n '*.dateOfBirth',\n '*.dob',\n '*.ipAddress',\n '*.ip',\n ],\n },\n};\n\n/**\n * Development configuration for the API client service.\n * Optimized for debugging and fast feedback during development.\n *\n * Key Development Features:\n * - Encryption OPTIONAL (disable for easier debugging)\n * - Full headers (all context for debugging)\n * - No network adaptation (consistent behavior)\n * - Minimal retries (fail fast to see errors quickly)\n * - Full performance tracking (optimize during development)\n * - Longer timeout (allow for debugging/breakpoints)\n */\nexport const DEVELOPMENT_CONFIG: Partial<ApiConfig> = {\n // Core settings - longer timeout for debugging\n timeout: TIME_CONSTANTS.TWO_MINUTES,\n\n // Unified strategy - interactive works well for dev\n unifiedStrategy: 'interactive',\n\n // Revalidation strategy\n revalidationStrategy: 'balanced',\n\n // Error handling strategy\n strategy: 'softFail',\n\n // Full headers preset for maximum debugging context\n headers: {\n presets: ['json' as unknown as HeaderPresetName] as const,\n autoDetectNetwork: true,\n requestClientHints: true,\n },\n\n // Enriched headers - FULL preset with all context\n enrichedHeaders: {\n enabled: true,\n preset: 'full', // All possible headers for debugging\n includeDevice: true, // Include everything\n includeNetwork: true,\n includePlatform: true,\n includeCompliance: true,\n includePerformance: true, // Performance hints\n respectDoNotTrack: false, // Ignore DNT in dev\n autoDetectRegion: true,\n regionalPreset: 'global',\n useTimezone: true,\n },\n\n // Network awareness - DISABLED (consistent behavior in dev)\n networkAware: {\n enabled: false, // Don't adapt config in dev\n adaptConfig: false,\n requestClientHints: false,\n },\n\n // Tracking configuration - FULL to see everything\n tracking: {\n enabled: true,\n operations: true,\n events: true,\n performanceMode: 'full', // Track everything in dev\n queueStrategy: 'immediate', // Process immediately (no batching)\n eventStrategy: 'immediate', // Immediate events for debugging\n telemetry: false, // Don't send to monitoring from dev\n },\n\n // Retry strategy - MINIMAL (fail fast to see errors)\n retryStrategy: 'conservative', // Minimal retries (1 attempt) to see errors immediately\n // Note: unifiedStrategy 'interactive' includes 'standard' retry (3 attempts)\n // This overrides it for development to fail faster\n\n // Encryption - DISABLED by default but with SAME fields as production\n // This allows developers to test encryption locally when needed\n encryption: {\n enabled: false, // Disabled in dev by default (enable via apiConfig when testing)\n algorithm: 'AES-GCM',\n autoDecrypt: true,\n target: ['all'],\n\n // NO default key in development - encryption is disabled\n // To test encryption locally, pass key via apiConfig:\n // encryption: {\n // enabled: true,\n // key: \"your-test-key\" // Auto-converted to EncryptionKey\n // // Or use EncryptionKey object:\n // // key: { id: \"test-1\", key: \"your-key\", algorithm: \"AES-GCM\" }\n // }\n key: undefined as unknown as EncryptionKey, // Placeholder - encryption disabled in development\n\n // Same 50+ fields as production for testing\n fields: [\n '*.email',\n '*.ssn',\n '*.taxId',\n '*.nationalId',\n '*.passport',\n '*.driverLicense',\n '*.governmentId',\n '*.phone',\n '*.phoneNumber',\n '*.mobile',\n '*.telephone',\n '*.address.street',\n '*.address.line1',\n '*.address.line2',\n '*.postalCode',\n '*.zipCode',\n '*.cardNumber',\n '*.creditCard',\n '*.debitCard',\n '*.cvv',\n '*.cvc',\n '*.iban',\n '*.accountNumber',\n '*.routingNumber',\n '*.swiftCode',\n '*.sortCode',\n '*.password',\n '*.apiKey',\n '*.secret',\n '*.token',\n '*.accessToken',\n '*.refreshToken',\n '*.privateKey',\n '*.secretKey',\n '*.wallet',\n '*.walletAddress',\n '*.mnemonic',\n '*.seedPhrase',\n '*.privateKeyHex',\n '*.medicalRecord',\n '*.medicalRecordNumber',\n '*.healthInfo',\n '*.diagnosis',\n '*.prescription',\n '*.healthInsurance',\n '*.fingerprint',\n '*.faceId',\n '*.biometric',\n '*.birthDate',\n '*.dateOfBirth',\n '*.dob',\n '*.ipAddress',\n '*.ip',\n ],\n },\n};\n","import type { ApiClientOptions, ApiConfig } from '@plyaz/types/api';\nimport { TIME_CONSTANTS } from '../../time/constants';\n\n/**\n * Default configuration for API clients\n *\n * These defaults provide sensible out-of-the-box behavior:\n * - 30 second timeout for requests\n * - 3 retry attempts with exponential backoff\n * - 60 second cache TTL with 5 minute stale time\n * - Standard JSON content-type headers\n * - Soft-fail error strategy (returns error without throwing)\n */\nexport const DEFAULT_API_CONFIG: ApiConfig = {\n baseURL: '',\n timeout: TIME_CONSTANTS.THIRTY_SECONDS,\n retry: {\n attempts: 3,\n delay: TIME_CONSTANTS.SECOND,\n maxDelay: TIME_CONSTANTS.THIRTY_SECONDS,\n backoff: 1.5,\n },\n cache: {\n ttl: 60,\n stale: 300,\n },\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n },\n strategy: 'softFail',\n};\n\n/**\n * Default client options with global compliance enabled by default\n *\n * This ensures maximum privacy protection out of the box:\n * - Enriched headers enabled with standard preset\n * - Global compliance level (minimum data collection)\n */\nexport const DEFAULT_API_CLIENT_OPTIONS: Partial<ApiClientOptions> = {\n enrichedHeaders: {\n enabled: true,\n preset: 'standard', // Uses 'global' compliance by default\n },\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @plyaz package - Built with tsup
|
|
2
|
+
var e={SECOND:1e3,THIRTY_SECONDS:3e4,TWO_MINUTES:12e4};var i={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:false,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"minimal",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},o={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},s={timeout:e.TWO_MINUTES,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:true},enrichedHeaders:{enabled:true,preset:"full",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,includePerformance:true,respectDoNotTrack:false,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:false,adaptConfig:false,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"immediate",eventStrategy:"immediate",telemetry:false},retryStrategy:"conservative",encryption:{enabled:false,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}};var T={baseURL:"",timeout:e.THIRTY_SECONDS,retry:{attempts:3,delay:e.SECOND,maxDelay:e.THIRTY_SECONDS,backoff:1.5},cache:{ttl:60,stale:300},headers:{"Content-Type":"application/json",Accept:"application/json"},strategy:"softFail"},l={enrichedHeaders:{enabled:true,preset:"standard"}};export{l as DEFAULT_API_CLIENT_OPTIONS,T as DEFAULT_API_CONFIG,s as DEVELOPMENT_CONFIG,i as PRODUCTION_CONFIG,o as STAGING_CONFIG};//# sourceMappingURL=index.mjs.map
|
|
3
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/time/constants.ts","../../src/api/environments.ts","../../src/api/package/defaults.ts"],"names":["TIME_CONSTANTS","PRODUCTION_CONFIG","STAGING_CONFIG","DEVELOPMENT_CONFIG","DEFAULT_API_CONFIG","DEFAULT_API_CLIENT_OPTIONS"],"mappings":"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","file":"index.mjs","sourcesContent":["/**\n * Time-related Constants\n *\n * Common time values and durations used throughout the application\n * for timeouts, delays, caching, and other time-based operations.\n *\n * @module time/constants\n */\n\n/**\n * Time conversion and duration constants\n */\nexport const TIME_CONSTANTS = {\n // Time unit conversions (in milliseconds)\n /**\n * One millisecond in milliseconds\n */\n MILLISECOND: 1,\n\n /**\n * One second in milliseconds\n */\n SECOND: 1000,\n\n /**\n * One minute in milliseconds\n */\n MINUTE: 60000,\n\n /**\n * One hour in milliseconds\n */\n HOUR: 3600000,\n\n /**\n * One day in milliseconds\n */\n DAY: 86400000,\n\n /**\n * One week in milliseconds\n */\n WEEK: 604800000,\n\n /**\n * One month in milliseconds (30 days average)\n */\n MONTH: 2592000000,\n\n /**\n * One year in milliseconds (365 days)\n */\n YEAR: 31536000000,\n\n // Time unit ratios\n /**\n * Number of milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Number of seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Number of minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Number of hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Number of days in one week\n */\n DAYS_PER_WEEK: 7,\n\n /**\n * Number of days in one month (average)\n */\n DAYS_PER_MONTH: 30,\n\n /**\n * Number of days in one year\n */\n DAYS_PER_YEAR: 365,\n\n /**\n * Number of weeks in one year\n */\n WEEKS_PER_YEAR: 52,\n\n /**\n * Number of months in one year\n */\n MONTHS_PER_YEAR: 12,\n\n // Common durations in milliseconds\n /**\n * 100 milliseconds\n */\n HUNDRED_MS: 100,\n\n /**\n * 250 milliseconds\n */\n QUARTER_SECOND: 250,\n\n /**\n * 500 milliseconds (half second)\n */\n HALF_SECOND: 500,\n\n /**\n * 2 seconds in milliseconds\n */\n TWO_SECONDS: 2000,\n\n /**\n * 3 seconds in milliseconds\n */\n THREE_SECONDS: 3000,\n\n /**\n * 5 seconds in milliseconds\n */\n FIVE_SECONDS: 5000,\n\n /**\n * 10 seconds in milliseconds\n */\n TEN_SECONDS: 10000,\n\n /**\n * 30 seconds in milliseconds\n */\n THIRTY_SECONDS: 30000,\n\n /**\n * 2 minutes in milliseconds\n */\n TWO_MINUTES: 120000,\n\n /**\n * 5 minutes in milliseconds\n */\n FIVE_MINUTES: 300000,\n\n /**\n * 10 minutes in milliseconds\n */\n TEN_MINUTES: 600000,\n\n /**\n * 15 minutes in milliseconds\n */\n FIFTEEN_MINUTES: 900000,\n\n /**\n * 30 minutes in milliseconds\n */\n THIRTY_MINUTES: 1800000,\n\n /**\n * 1 hour in milliseconds\n */\n ONE_HOUR: 3600000,\n\n /**\n * 2 hours in milliseconds\n */\n TWO_HOURS: 7200000,\n\n /**\n * 6 hours in milliseconds\n */\n SIX_HOURS: 21600000,\n\n /**\n * 12 hours in milliseconds\n */\n TWELVE_HOURS: 43200000,\n\n // Default values\n /**\n * Default timeout duration in milliseconds (5 seconds)\n */\n DEFAULT_TIMEOUT: 5000,\n\n /**\n * Default short timeout in milliseconds (1 second)\n */\n DEFAULT_SHORT_TIMEOUT: 1000,\n\n /**\n * Default long timeout in milliseconds (30 seconds)\n */\n DEFAULT_LONG_TIMEOUT: 30000,\n\n /**\n * Default retry delay in milliseconds (100ms)\n */\n DEFAULT_RETRY_DELAY: 100,\n\n /**\n * Default exponential backoff base delay in milliseconds (1 second)\n */\n DEFAULT_BACKOFF_BASE: 1000,\n\n /**\n * Default maximum backoff delay in milliseconds (30 seconds)\n */\n DEFAULT_MAX_BACKOFF: 30000,\n\n /**\n * Default number of retry attempts\n */\n DEFAULT_RETRY_ATTEMPTS: 3,\n\n /**\n * Default debounce delay in milliseconds (50ms)\n */\n DEFAULT_DEBOUNCE_DELAY: 50,\n\n /**\n * Default throttle delay in milliseconds (100ms)\n */\n DEFAULT_THROTTLE_DELAY: 100,\n\n /**\n * Default animation frame duration in milliseconds (~60fps)\n */\n DEFAULT_ANIMATION_FRAME: 16.67,\n\n /**\n * Default transition duration in milliseconds (300ms)\n */\n DEFAULT_TRANSITION_DURATION: 300,\n\n /**\n * Default cache time-to-live in seconds (5 minutes)\n */\n DEFAULT_CACHE_TTL: 300,\n\n /**\n * Default short cache TTL in seconds (1 minute)\n */\n DEFAULT_SHORT_CACHE_TTL: 60,\n\n /**\n * Default long cache TTL in seconds (1 hour)\n */\n DEFAULT_LONG_CACHE_TTL: 3600,\n\n /**\n * Default session timeout in milliseconds (30 minutes)\n */\n DEFAULT_SESSION_TIMEOUT: 1800000,\n\n /**\n * Default idle timeout in milliseconds (15 minutes)\n */\n DEFAULT_IDLE_TIMEOUT: 900000,\n\n /**\n * Default poll interval in milliseconds (5 seconds)\n */\n DEFAULT_POLL_INTERVAL: 5000,\n\n /**\n * Default heartbeat interval in milliseconds (30 seconds)\n */\n DEFAULT_HEARTBEAT_INTERVAL: 30000,\n\n // Network and ports\n /**\n * Default port number for servers\n */\n DEFAULT_PORT: 3000,\n\n /**\n * Default HTTP port\n */\n HTTP_PORT: 80,\n\n /**\n * Default HTTPS port\n */\n HTTPS_PORT: 443,\n\n /**\n * Default WebSocket port\n */\n WEBSOCKET_PORT: 8080,\n\n /**\n * Default database port (PostgreSQL)\n */\n DATABASE_PORT: 5432,\n\n /**\n * Default Redis port\n */\n REDIS_PORT: 6379,\n\n // WebSocket specific\n /**\n * WebSocket normal closure code\n */\n WEBSOCKET_CLOSE_NORMAL: 1000,\n\n /**\n * WebSocket going away code\n */\n WEBSOCKET_CLOSE_GOING_AWAY: 1001,\n\n /**\n * WebSocket protocol error code\n */\n WEBSOCKET_CLOSE_PROTOCOL_ERROR: 1002,\n\n /**\n * WebSocket unsupported data code\n */\n WEBSOCKET_CLOSE_UNSUPPORTED: 1003,\n\n /**\n * WebSocket abnormal closure code\n */\n WEBSOCKET_CLOSE_ABNORMAL: 1006,\n\n /**\n * WebSocket retry delay in milliseconds (500ms)\n */\n WEBSOCKET_RETRY_DELAY: 500,\n\n /**\n * WebSocket ping interval in milliseconds (30 seconds)\n */\n WEBSOCKET_PING_INTERVAL: 30000,\n\n /**\n * WebSocket reconnect delay in milliseconds (1 second)\n */\n WEBSOCKET_RECONNECT_DELAY: 1000,\n\n /**\n * WebSocket max reconnect delay in milliseconds (30 seconds)\n */\n WEBSOCKET_MAX_RECONNECT_DELAY: 30000,\n} as const;\n\n/**\n * Type for time constant values\n */\nexport type TimeConstant = (typeof TIME_CONSTANTS)[keyof typeof TIME_CONSTANTS];\n","/**\n * API Client Environment Configurations\n *\n * Provides environment-specific default configurations for the API client service.\n * These configs are optimized for production, staging, and development environments.\n *\n * @module config/api/environments\n */\n\nimport type { ApiConfig, HeaderPresetName, EncryptionKey } from '@plyaz/types/api';\nimport { TIME_CONSTANTS } from '../time';\n\n/**\n * Production configuration for the API client service.\n * Optimized for reliability, security, and performance in production environments.\n *\n * Key Production Features:\n * - Encryption REQUIRED (enforced)\n * - Minimal headers (privacy-focused)\n * - Network adaptation enabled (auto-adjust to conditions)\n * - Balanced telemetry (monitoring without overhead)\n * - Aggressive retry strategy (5 attempts with exponential backoff)\n * - Uses retry PRESET strings instead of hardcoded values\n */\nexport const PRODUCTION_CONFIG: Partial<ApiConfig> = {\n // Core settings\n timeout: TIME_CONSTANTS.THIRTY_SECONDS,\n\n // Unified strategy - includes cache, retry, performance strategies\n // 'interactive' = standard cache + standard retry + balanced performance\n unifiedStrategy: 'interactive',\n\n // Revalidation strategy - NOT covered by unifiedStrategy\n // Controls when to revalidate cached data (SWR pattern)\n revalidationStrategy: 'balanced', // Revalidate on focus, network reconnect\n\n // Error handling strategy - return {data, error} without throwing\n strategy: 'softFail',\n\n // Default JSON headers for most API interactions\n headers: {\n presets: ['json' as unknown as HeaderPresetName] as const, // Sets Accept and Content-Type to application/json\n autoDetectNetwork: true,\n requestClientHints: false,\n },\n\n // Enriched headers - minimal preset with GLOBAL compliance\n // Adds ~5-7 headers: platform, app version, timezone, locale, network type\n // Privacy-conscious: respects DNT, no device fingerprinting\n // Global compliance: covers GDPR, CCPA, PIPL, APPI automatically\n enrichedHeaders: {\n enabled: true,\n preset: 'standard', // standard context headers\n includeDevice: false, // No device fingerprinting (privacy)\n includeNetwork: true, // Network type (wifi/cellular/etc)\n includePlatform: true, // Platform (web/ios/android)\n includeCompliance: true, // Timezone, locale for regional compliance\n respectDoNotTrack: true, // Honor DNT header (GDPR/CCPA)\n autoDetectRegion: true, // Auto-detect region from timezone\n regionalPreset: 'global', // Global compliance (GDPR+CCPA+PIPL+APPI)\n useTimezone: true, // Use timezone for region detection\n },\n\n // Network awareness - monitoring enabled, WITH auto-adaptation\n // Adjusts strategies based on network quality\n networkAware: {\n enabled: true, // Enable network quality monitoring\n adaptConfig: true, // Auto-adjust strategies based on network\n requestClientHints: false, // Don't request extra browser hints\n },\n\n // Tracking configuration - balanced for production (monitoring without overhead)\n tracking: {\n enabled: true,\n operations: true,\n events: true,\n performanceMode: 'minimal', // Not 'full' - avoid overhead in prod\n queueStrategy: 'batch',\n eventStrategy: 'queued',\n telemetry: true, // Send to monitoring in production\n },\n\n // Retry strategy - use preset instead of hardcoded values\n retryStrategy: 'aggressive', // More retries for production reliability (5 attempts)\n // Note: unifiedStrategy 'interactive' already includes 'standard' retry (3 attempts)\n // This overrides it for production to be more aggressive\n\n // Encryption - ENABLED by default for regulatory compliance (GDPR, CCPA, PIPL, etc.)\n // Encrypts common sensitive fields automatically\n // User MUST provide encryption key via init() - defaults don't include key\n encryption: {\n enabled: true,\n algorithm: 'AES-GCM', // Industry standard, FIPS 140-2 compliant\n autoDecrypt: true, // Auto-decrypt responses\n target: ['all'], // Encrypt in request body and query params\n // Key will be provided by user during initialization\n key: undefined as unknown as EncryptionKey, // Placeholder - user must provide via apiConfig\n\n // Common sensitive field patterns (uses glob matching)\n // Covers: email, SSN, phone, card numbers, passwords, tokens, wallet addresses\n fields: [\n // Personal Identifiable Information (PII) - GDPR Art. 9\n '*.email',\n '*.ssn',\n '*.taxId',\n '*.nationalId',\n '*.passport',\n '*.driverLicense',\n '*.governmentId',\n\n // Contact Information - GDPR Art. 4(1)\n '*.phone',\n '*.phoneNumber',\n '*.mobile',\n '*.telephone',\n '*.address.street',\n '*.address.line1',\n '*.address.line2',\n '*.postalCode',\n '*.zipCode',\n\n // Financial Information - PCI-DSS Req 3.4\n '*.cardNumber',\n '*.creditCard',\n '*.debitCard',\n '*.cvv',\n '*.cvc',\n '*.iban',\n '*.accountNumber',\n '*.routingNumber',\n '*.swiftCode',\n '*.sortCode',\n\n // Authentication Credentials - OWASP ASVS 2.1\n '*.password',\n '*.apiKey',\n '*.secret',\n '*.token',\n '*.accessToken',\n '*.refreshToken',\n '*.privateKey',\n '*.secretKey',\n\n // Crypto/Blockchain - Web3 security\n '*.wallet',\n '*.walletAddress',\n '*.mnemonic',\n '*.seedPhrase',\n '*.privateKeyHex',\n\n // Health Information - HIPAA §164.312(a)(2)(iv)\n '*.medicalRecord',\n '*.medicalRecordNumber',\n '*.healthInfo',\n '*.diagnosis',\n '*.prescription',\n '*.healthInsurance',\n\n // Biometric Data - GDPR Art. 9(1)\n '*.fingerprint',\n '*.faceId',\n '*.biometric',\n\n // Date of Birth - Age verification\n '*.birthDate',\n '*.dateOfBirth',\n '*.dob',\n\n // IP Addresses - GDPR considers PII\n '*.ipAddress',\n '*.ip',\n ],\n\n // Key provider - MUST be provided by user via init()\n // Supports three patterns:\n //\n // 1. EncryptionKey object (with metadata):\n // key: {\n // id: 'prod-key-v1',\n // key: process.env.ENCRYPTION_KEY!,\n // algorithm: 'AES-GCM',\n // format: 'raw'\n // }\n //\n // 2. KeyProvider function (for key rotation):\n // key: async (context) => {\n // const keyId = await getActiveKeyId();\n // const key = await keyManagementService.getKey(keyId);\n // return { id: keyId, key, algorithm: 'AES-GCM' };\n // }\n //\n // 3. Simple string (auto-converted to EncryptionKey):\n // key: process.env.ENCRYPTION_KEY!\n //\n // NO default key - user provides via init()\n },\n};\n\n/**\n * Staging configuration for the API client service.\n * ALIGNED with production for accurate pre-production testing.\n * Only differences: standard headers for debugging, full performance tracking.\n *\n * Key Staging Features:\n * - Encryption ENABLED (same as production)\n * - Standard headers (slightly more context for debugging than prod)\n * - Full performance tracking (catch issues before production)\n * - Same retry strategy as production (aggressive)\n * - Same network adaptation as production\n */\nexport const STAGING_CONFIG: Partial<ApiConfig> = {\n // Core settings - SAME AS PRODUCTION\n timeout: TIME_CONSTANTS.THIRTY_SECONDS,\n\n // Unified strategy - SAME AS PRODUCTION\n unifiedStrategy: 'interactive',\n\n // Revalidation strategy - SAME AS PRODUCTION\n revalidationStrategy: 'balanced',\n\n // Error handling strategy - SAME AS PRODUCTION\n strategy: 'softFail',\n\n // Headers preset - SAME AS PRODUCTION\n headers: {\n presets: ['json' as unknown as HeaderPresetName] as const,\n autoDetectNetwork: true,\n requestClientHints: false, // Same as prod\n },\n\n // Enriched headers - SLIGHTLY MORE than prod for debugging\n enrichedHeaders: {\n enabled: true,\n preset: 'standard', // One level up from prod's 'minimal'\n includeDevice: true, // Include device info for debugging\n includeNetwork: true,\n includePlatform: true,\n includeCompliance: true,\n respectDoNotTrack: true, // Same as prod\n autoDetectRegion: true,\n regionalPreset: 'global', // Same as prod\n useTimezone: true,\n },\n\n // Network awareness - SAME AS PRODUCTION\n networkAware: {\n enabled: true,\n adaptConfig: true, // Same as prod\n requestClientHints: false, // Same as prod\n },\n\n // Tracking configuration - FULL in staging (only difference from prod)\n tracking: {\n enabled: true,\n operations: true,\n events: true,\n performanceMode: 'full', // Full tracking to catch issues (prod uses 'balanced')\n queueStrategy: 'batch',\n eventStrategy: 'queued',\n telemetry: true, // Same as prod\n },\n\n // Retry strategy - SAME AS PRODUCTION\n retryStrategy: 'aggressive', // Same aggressive retries as production\n // Test production retry behavior in staging\n\n // Encryption - SAME AS PRODUCTION (REQUIRED)\n encryption: {\n enabled: true, // REQUIRED in staging (same as prod)\n algorithm: 'AES-GCM',\n autoDecrypt: true,\n target: ['all'],\n key: undefined as unknown as EncryptionKey, // Placeholder - user must provide via apiConfig\n fields: [\n // Same 50+ fields as production\n '*.email',\n '*.ssn',\n '*.taxId',\n '*.nationalId',\n '*.passport',\n '*.driverLicense',\n '*.governmentId',\n '*.phone',\n '*.phoneNumber',\n '*.mobile',\n '*.telephone',\n '*.address.street',\n '*.address.line1',\n '*.address.line2',\n '*.postalCode',\n '*.zipCode',\n '*.cardNumber',\n '*.creditCard',\n '*.debitCard',\n '*.cvv',\n '*.cvc',\n '*.iban',\n '*.accountNumber',\n '*.routingNumber',\n '*.swiftCode',\n '*.sortCode',\n '*.password',\n '*.apiKey',\n '*.secret',\n '*.token',\n '*.accessToken',\n '*.refreshToken',\n '*.privateKey',\n '*.secretKey',\n '*.wallet',\n '*.walletAddress',\n '*.mnemonic',\n '*.seedPhrase',\n '*.privateKeyHex',\n '*.medicalRecord',\n '*.medicalRecordNumber',\n '*.healthInfo',\n '*.diagnosis',\n '*.prescription',\n '*.healthInsurance',\n '*.fingerprint',\n '*.faceId',\n '*.biometric',\n '*.birthDate',\n '*.dateOfBirth',\n '*.dob',\n '*.ipAddress',\n '*.ip',\n ],\n },\n};\n\n/**\n * Development configuration for the API client service.\n * Optimized for debugging and fast feedback during development.\n *\n * Key Development Features:\n * - Encryption OPTIONAL (disable for easier debugging)\n * - Full headers (all context for debugging)\n * - No network adaptation (consistent behavior)\n * - Minimal retries (fail fast to see errors quickly)\n * - Full performance tracking (optimize during development)\n * - Longer timeout (allow for debugging/breakpoints)\n */\nexport const DEVELOPMENT_CONFIG: Partial<ApiConfig> = {\n // Core settings - longer timeout for debugging\n timeout: TIME_CONSTANTS.TWO_MINUTES,\n\n // Unified strategy - interactive works well for dev\n unifiedStrategy: 'interactive',\n\n // Revalidation strategy\n revalidationStrategy: 'balanced',\n\n // Error handling strategy\n strategy: 'softFail',\n\n // Full headers preset for maximum debugging context\n headers: {\n presets: ['json' as unknown as HeaderPresetName] as const,\n autoDetectNetwork: true,\n requestClientHints: true,\n },\n\n // Enriched headers - FULL preset with all context\n enrichedHeaders: {\n enabled: true,\n preset: 'full', // All possible headers for debugging\n includeDevice: true, // Include everything\n includeNetwork: true,\n includePlatform: true,\n includeCompliance: true,\n includePerformance: true, // Performance hints\n respectDoNotTrack: false, // Ignore DNT in dev\n autoDetectRegion: true,\n regionalPreset: 'global',\n useTimezone: true,\n },\n\n // Network awareness - DISABLED (consistent behavior in dev)\n networkAware: {\n enabled: false, // Don't adapt config in dev\n adaptConfig: false,\n requestClientHints: false,\n },\n\n // Tracking configuration - FULL to see everything\n tracking: {\n enabled: true,\n operations: true,\n events: true,\n performanceMode: 'full', // Track everything in dev\n queueStrategy: 'immediate', // Process immediately (no batching)\n eventStrategy: 'immediate', // Immediate events for debugging\n telemetry: false, // Don't send to monitoring from dev\n },\n\n // Retry strategy - MINIMAL (fail fast to see errors)\n retryStrategy: 'conservative', // Minimal retries (1 attempt) to see errors immediately\n // Note: unifiedStrategy 'interactive' includes 'standard' retry (3 attempts)\n // This overrides it for development to fail faster\n\n // Encryption - DISABLED by default but with SAME fields as production\n // This allows developers to test encryption locally when needed\n encryption: {\n enabled: false, // Disabled in dev by default (enable via apiConfig when testing)\n algorithm: 'AES-GCM',\n autoDecrypt: true,\n target: ['all'],\n\n // NO default key in development - encryption is disabled\n // To test encryption locally, pass key via apiConfig:\n // encryption: {\n // enabled: true,\n // key: \"your-test-key\" // Auto-converted to EncryptionKey\n // // Or use EncryptionKey object:\n // // key: { id: \"test-1\", key: \"your-key\", algorithm: \"AES-GCM\" }\n // }\n key: undefined as unknown as EncryptionKey, // Placeholder - encryption disabled in development\n\n // Same 50+ fields as production for testing\n fields: [\n '*.email',\n '*.ssn',\n '*.taxId',\n '*.nationalId',\n '*.passport',\n '*.driverLicense',\n '*.governmentId',\n '*.phone',\n '*.phoneNumber',\n '*.mobile',\n '*.telephone',\n '*.address.street',\n '*.address.line1',\n '*.address.line2',\n '*.postalCode',\n '*.zipCode',\n '*.cardNumber',\n '*.creditCard',\n '*.debitCard',\n '*.cvv',\n '*.cvc',\n '*.iban',\n '*.accountNumber',\n '*.routingNumber',\n '*.swiftCode',\n '*.sortCode',\n '*.password',\n '*.apiKey',\n '*.secret',\n '*.token',\n '*.accessToken',\n '*.refreshToken',\n '*.privateKey',\n '*.secretKey',\n '*.wallet',\n '*.walletAddress',\n '*.mnemonic',\n '*.seedPhrase',\n '*.privateKeyHex',\n '*.medicalRecord',\n '*.medicalRecordNumber',\n '*.healthInfo',\n '*.diagnosis',\n '*.prescription',\n '*.healthInsurance',\n '*.fingerprint',\n '*.faceId',\n '*.biometric',\n '*.birthDate',\n '*.dateOfBirth',\n '*.dob',\n '*.ipAddress',\n '*.ip',\n ],\n },\n};\n","import type { ApiClientOptions, ApiConfig } from '@plyaz/types/api';\nimport { TIME_CONSTANTS } from '../../time/constants';\n\n/**\n * Default configuration for API clients\n *\n * These defaults provide sensible out-of-the-box behavior:\n * - 30 second timeout for requests\n * - 3 retry attempts with exponential backoff\n * - 60 second cache TTL with 5 minute stale time\n * - Standard JSON content-type headers\n * - Soft-fail error strategy (returns error without throwing)\n */\nexport const DEFAULT_API_CONFIG: ApiConfig = {\n baseURL: '',\n timeout: TIME_CONSTANTS.THIRTY_SECONDS,\n retry: {\n attempts: 3,\n delay: TIME_CONSTANTS.SECOND,\n maxDelay: TIME_CONSTANTS.THIRTY_SECONDS,\n backoff: 1.5,\n },\n cache: {\n ttl: 60,\n stale: 300,\n },\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n },\n strategy: 'softFail',\n};\n\n/**\n * Default client options with global compliance enabled by default\n *\n * This ensures maximum privacy protection out of the box:\n * - Enriched headers enabled with standard preset\n * - Global compliance level (minimum data collection)\n */\nexport const DEFAULT_API_CLIENT_OPTIONS: Partial<ApiClientOptions> = {\n enrichedHeaders: {\n enabled: true,\n preset: 'standard', // Uses 'global' compliance by default\n },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/auth/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAiE,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
'use strict';// @plyaz package - Built with tsup
|
|
2
|
+
var _={SUPABASE_URL:globalThis.process.env.NEXT_PUBLIC_SUPABASE_URL??"",SUPABASE_ANON_KEY:globalThis.process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY??""},E=globalThis.process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY??"";exports.CLERK_PUBLISHABLE_KEY=E;exports.SUPABASE_CONFIG=_;//# sourceMappingURL=index.cjs.map
|
|
3
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/auth/constants.ts"],"names":["SUPABASE_CONFIG","CLERK_PUBLISHABLE_KEY"],"mappings":";AAAO,IAAMA,EAAkB,CAC7B,YAAA,CAAc,WAAW,OAAA,CAAQ,GAAA,CAAI,0BAA4B,EAAA,CACjE,iBAAA,CAAmB,WAAW,OAAA,CAAQ,GAAA,CAAI,+BAAiC,EAC7E,CAAA,CAEaC,EAAwB,UAAA,CAAW,OAAA,CAAQ,IAAI,iCAAA,EAAqC","file":"index.cjs","sourcesContent":["export const SUPABASE_CONFIG = {\n SUPABASE_URL: globalThis.process.env.NEXT_PUBLIC_SUPABASE_URL ?? '',\n SUPABASE_ANON_KEY: globalThis.process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? '',\n};\n\nexport const CLERK_PUBLISHABLE_KEY = globalThis.process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY ?? '';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @plyaz package - Built with tsup
|
|
2
|
+
var _={SUPABASE_URL:globalThis.process.env.NEXT_PUBLIC_SUPABASE_URL??"",SUPABASE_ANON_KEY:globalThis.process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY??""},E=globalThis.process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY??"";export{E as CLERK_PUBLISHABLE_KEY,_ as SUPABASE_CONFIG};//# sourceMappingURL=index.mjs.map
|
|
3
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/auth/constants.ts"],"names":["SUPABASE_CONFIG","CLERK_PUBLISHABLE_KEY"],"mappings":";AAAO,IAAMA,EAAkB,CAC7B,YAAA,CAAc,WAAW,OAAA,CAAQ,GAAA,CAAI,0BAA4B,EAAA,CACjE,iBAAA,CAAmB,WAAW,OAAA,CAAQ,GAAA,CAAI,+BAAiC,EAC7E,CAAA,CAEaC,EAAwB,UAAA,CAAW,OAAA,CAAQ,IAAI,iCAAA,EAAqC","file":"index.mjs","sourcesContent":["export const SUPABASE_CONFIG = {\n SUPABASE_URL: globalThis.process.env.NEXT_PUBLIC_SUPABASE_URL ?? '',\n SUPABASE_ANON_KEY: globalThis.process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? '',\n};\n\nexport const CLERK_PUBLISHABLE_KEY = globalThis.process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY ?? '';\n"]}
|
|
@@ -126,7 +126,7 @@ export declare const STAGING_SUPPORTED_CHAINS: {
|
|
|
126
126
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
127
127
|
rpcUrls: {
|
|
128
128
|
readonly default: {
|
|
129
|
-
readonly http: readonly ["https://
|
|
129
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
132
|
sourceId?: number | undefined | undefined;
|
|
@@ -174,7 +174,7 @@ export declare const DEV_SUPPORTED_CHAINS: {
|
|
|
174
174
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
175
175
|
rpcUrls: {
|
|
176
176
|
readonly default: {
|
|
177
|
-
readonly http: readonly ["https://
|
|
177
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
sourceId?: number | undefined | undefined;
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';var chains=require('viem/chains');// @plyaz package - Built with tsup
|
|
2
|
-
var A=typeof window>"u",t=globalThis.process.env.NODE_ENV==="development",T=globalThis.process.env.NODE_ENV==="production",_=globalThis.process.env.NODE_ENV==="test";var N={apiKey:globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY,rpcUrls:{ethereum:`https://eth-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,polygon:`https://polygon-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,arbitrum:`https://arb-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,optimism:`https://opt-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,base:`https://base-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,solana:`https://solana-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`}};var S={google:{clientId:globalThis.process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID,clientSecret:globalThis.process.env.GOOGLE_CLIENT_SECRET,redirectUri:globalThis.process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI,scopes:["openid","profile","email"]},discord:{clientId:globalThis.process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID,clientSecret:globalThis.process.env.DISCORD_CLIENT_SECRET,redirectUri:globalThis.process.env.NEXT_PUBLIC_DISCORD_REDIRECT_URI,scopes:["identify","email"]},facebook:{clientId:globalThis.process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID,clientSecret:globalThis.process.env.FACEBOOK_CLIENT_SECRET,redirectUri:globalThis.process.env.NEXT_PUBLIC_FACEBOOK_REDIRECT_URI,scopes:["public_profile","email"]}};var C={nftManager:{read:{arbitrum:""},write:{arbitrum:""}},tokenManager:{read:{arbitrum:""},write:{arbitrum:""}}};var
|
|
2
|
+
var A=typeof window>"u",t=globalThis.process.env.NODE_ENV==="development",T=globalThis.process.env.NODE_ENV==="production",_=globalThis.process.env.NODE_ENV==="test";var N={apiKey:globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY,rpcUrls:{ethereum:`https://eth-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,polygon:`https://polygon-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,arbitrum:`https://arb-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,optimism:`https://opt-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,base:`https://base-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,solana:`https://solana-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`}};var S={google:{clientId:globalThis.process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID,clientSecret:globalThis.process.env.GOOGLE_CLIENT_SECRET,redirectUri:globalThis.process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI,scopes:["openid","profile","email"]},discord:{clientId:globalThis.process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID,clientSecret:globalThis.process.env.DISCORD_CLIENT_SECRET,redirectUri:globalThis.process.env.NEXT_PUBLIC_DISCORD_REDIRECT_URI,scopes:["identify","email"]},facebook:{clientId:globalThis.process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID,clientSecret:globalThis.process.env.FACEBOOK_CLIENT_SECRET,redirectUri:globalThis.process.env.NEXT_PUBLIC_FACEBOOK_REDIRECT_URI,scopes:["public_profile","email"]}};var C={nftManager:{read:{arbitrum:""},write:{arbitrum:""}},tokenManager:{read:{arbitrum:""},write:{arbitrum:""}}};var u={ethereum:chains.mainnet},p={ethereum:chains.mainnet,sepolia:chains.sepolia},D={sepolia:chains.sepolia};var H={AUTH_GOOGLE:true,AUTH_DISCORD:t,AUTH_FACEBOOK:false,AUTH_GITHUB:true},f={provider:"database",isCacheEnabled:true,cacheTtl:300,refreshInterval:60,shouldFallbackToDefaults:true,isLoggingEnabled:globalThis.process.env.NODE_ENV==="development"},G={provider:"memory",isCacheEnabled:true,cacheTtl:300,refreshInterval:0,shouldFallbackToDefaults:true,isLoggingEnabled:false},d=100,m=300,B=6e4,b=1e3,Y=.1,F={MEMORY:"memory",FILE:"file",REDIS:"redis",API:"api",DATABASE:"database"},x={JSON:"json",YAML:"yaml"},K={DEFAULT:"src/config/feature-provider.json",JSON_EXAMPLE:"src/config/feature-provider.json.example",YAML_EXAMPLE:"src/config/feature-provider.yaml.example"},h={DEFAULT:"default",OVERRIDE:"override",RULE_MATCH:"rule_match",FLAG_DISABLED:"flag_disabled",ERROR:"error"};var k={app:"https://plyaz.co.uk",api:globalThis.process.env.NEXT_PUBLIC_API_URL};var o="en",r=["en","es","pt"],W="America/Sao_Paulo",V=-3,Z="BR",w="BRL",J="en";var j={NAME:"Plyaz",VERSION:"1.0.0",DEFAULT_LOCALE:"en",SUPPORTED_LOCALES:r},q={NAME:"Plyaz The App",VERSION:"1.0.0",DEFAULT_LOCALE:"en",SUPPORTED_LOCALES:r};var ee={BLOCKED_REGIONS:["KP","SY","IR","CU","SD","SO","UA-CR","UA-DP","UA-LU"]};var re={RANDOM_STRING_START:2,RANDOM_STRING_LENGTH:9,UUID_RANDOM_MULTIPLIER:16,UUID_HEX_MASK:3,UUID_HEX_OR_VALUE:8},te={JSON_INDENT_SPACES:2,CODE_INDENT_SPACES:2,TAB_SIZE:4,MAX_LINE_LENGTH:80,PRETTIER_LINE_WIDTH:100,DEFAULT_ENCODING:"utf-8",LINE_ENDING_LF:`
|
|
3
3
|
`,LINE_ENDING_CRLF:`\r
|
|
4
4
|
`,EXTENSION_JSON:".json",EXTENSION_JS:".js",EXTENSION_TS:".ts",EXTENSION_TSX:".tsx",EXTENSION_JSX:".jsx",EXTENSION_CSS:".css",EXTENSION_SCSS:".scss",EXTENSION_MD:".md",EXTENSION_YML:".yml",EXTENSION_YAML:".yaml",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',BACKTICK:"`",COMMA:",",SEMICOLON:";",COLON:":",DOT:".",SLASH:"/",BACKSLASH:"\\",UNDERSCORE:"_",HYPHEN:"-",PIPE:"|",SPACE:" ",EMPTY_STRING:"",TAB:" ",NEWLINE:`
|
|
5
|
-
`,CARRIAGE_RETURN:"\r",FORM_FEED:"\f",VERTICAL_TAB:"\v",OPEN_PAREN:"(",CLOSE_PAREN:")",OPEN_BRACKET:"[",CLOSE_BRACKET:"]",OPEN_BRACE:"{",CLOSE_BRACE:"}",OPEN_ANGLE:"<",CLOSE_ANGLE:">"};var Ae={ARRAY_SPLIT_CENTER:.5,DEFAULT_PAGE_SIZE:10,DEFAULT_MAX_RETRIES:3,THREE_ITEMS:3};var Ne={FNV_32_PRIME:16777619,FNV_32_OFFSET:2166136261,FNV_64_PRIME:BigInt("0x100000001b3"),FNV_64_OFFSET:BigInt("0xcbf29ce484222325"),MASK_32:4294967295,BITS_32:32,BITS_64:64},se={MAX_SAFE_SEED:2147483647,MAX_UINT32:4294967295},Se={DEFAULT_BUCKET_COUNT:10,DEFAULT_PERCENTAGE_BUCKETS:100,HASH_SHIFT:5},Re={SHA1_LENGTH:20,SHA256_LENGTH:32,SHA384_LENGTH:48,SHA512_LENGTH:64,SHA_BLOCK_SIZE:64,SHA512_BLOCK_SIZE:128},Oe={MD5_LENGTH:16,MD5_BLOCK_SIZE:64},Ie={HEX:"hex",BASE64:"base64",BASE64URL:"base64url",BINARY:"binary",UTF8:"utf8"},ce={MD5:"md5",SHA1:"sha1",SHA256:"sha256",SHA384:"sha384",SHA512:"sha512",SHA3_256:"sha3-256",SHA3_384:"sha3-384",SHA3_512:"sha3-512",BLAKE2B:"blake2b",BLAKE2S:"blake2s",FNV1A_32:"fnv1a-32",FNV1A_64:"fnv1a-64"},Ce={MURMUR3_32_SEED:0,MURMUR3_32_C1:3432918353,MURMUR3_32_C2:461845907,MURMUR3_32_R1:15,MURMUR3_32_R2:13,MURMUR3_32_M:5,MURMUR3_32_N:3864292196},le={CRC32_POLYNOMIAL:3988292384,CRC32_INITIAL:4294967295,CRC32_XOR_OUTPUT:4294967295,CRC16_POLYNOMIAL:40961,CRC16_INITIAL:0};var Ue={CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,EARLY_HINTS:103,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,ALREADY_REPORTED:208,IM_USED:226,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,IM_A_TEAPOT:418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511};var e={MILLISECOND:1,SECOND:1e3,MINUTE:6e4,HOUR:36e5,DAY:864e5,WEEK:6048e5,MONTH:2592e6,YEAR:31536e6,MILLISECONDS_PER_SECOND:1e3,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,DAYS_PER_WEEK:7,DAYS_PER_MONTH:30,DAYS_PER_YEAR:365,WEEKS_PER_YEAR:52,MONTHS_PER_YEAR:12,HUNDRED_MS:100,QUARTER_SECOND:250,HALF_SECOND:500,TWO_SECONDS:2e3,THREE_SECONDS:3e3,FIVE_SECONDS:5e3,TEN_SECONDS:1e4,THIRTY_SECONDS:3e4,TWO_MINUTES:12e4,FIVE_MINUTES:3e5,TEN_MINUTES:6e5,FIFTEEN_MINUTES:9e5,THIRTY_MINUTES:18e5,ONE_HOUR:36e5,TWO_HOURS:72e5,SIX_HOURS:216e5,TWELVE_HOURS:432e5,DEFAULT_TIMEOUT:5e3,DEFAULT_SHORT_TIMEOUT:1e3,DEFAULT_LONG_TIMEOUT:3e4,DEFAULT_RETRY_DELAY:100,DEFAULT_BACKOFF_BASE:1e3,DEFAULT_MAX_BACKOFF:3e4,DEFAULT_RETRY_ATTEMPTS:3,DEFAULT_DEBOUNCE_DELAY:50,DEFAULT_THROTTLE_DELAY:100,DEFAULT_ANIMATION_FRAME:16.67,DEFAULT_TRANSITION_DURATION:300,DEFAULT_CACHE_TTL:300,DEFAULT_SHORT_CACHE_TTL:60,DEFAULT_LONG_CACHE_TTL:3600,DEFAULT_SESSION_TIMEOUT:18e5,DEFAULT_IDLE_TIMEOUT:9e5,DEFAULT_POLL_INTERVAL:5e3,DEFAULT_HEARTBEAT_INTERVAL:3e4,DEFAULT_PORT:3e3,HTTP_PORT:80,HTTPS_PORT:443,WEBSOCKET_PORT:8080,DATABASE_PORT:5432,REDIS_PORT:6379,WEBSOCKET_CLOSE_NORMAL:1e3,WEBSOCKET_CLOSE_GOING_AWAY:1001,WEBSOCKET_CLOSE_PROTOCOL_ERROR:1002,WEBSOCKET_CLOSE_UNSUPPORTED:1003,WEBSOCKET_CLOSE_ABNORMAL:1006,WEBSOCKET_RETRY_DELAY:500,WEBSOCKET_PING_INTERVAL:3e4,WEBSOCKET_RECONNECT_DELAY:1e3,WEBSOCKET_MAX_RECONNECT_DELAY:3e4};var be={BINARY_BASE:2,OCTAL_BASE:8,DECIMAL_BASE:10,DUODECIMAL_BASE:12,HEX_BASE:16,BASE32:32,BASE36:36,BASE58:58,BASE62:62,BASE64:64,HEX_PAD_LENGTH:2,HEX_COLOR_LENGTH:6,HEX_COLOR_ALPHA_LENGTH:8,BITS_PER_BYTE:8,BITS_PER_NIBBLE:4,BYTES_PER_KB:1024,BYTES_PER_MB:1048576,BYTES_PER_GB:1073741824,CURRENCY_DECIMAL_PLACES:2,PERCENTAGE_DECIMAL_PLACES:2,COORDINATE_DECIMAL_PLACES:6,MAX_SAFE_INTEGER:9007199254740991,MIN_SAFE_INTEGER:-9007199254740991,MAX_INT32:2147483647,MIN_INT32:-2147483648,MAX_UINT16:65535,MAX_UINT8:255,DEGREES_FULL_CIRCLE:360,DEGREES_HALF_CIRCLE:180,DEGREES_RIGHT_ANGLE:90,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,PI:3.141592653589793,TWO_PI:6.283185307179586,HALF_PI:1.5707963267948966,E:2.718281828459045,GOLDEN_RATIO:1.618033988749895,SQRT2:1.4142135623730951,SQRT3:1.7320508075688772,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518},Be={PERCENTAGE_MAX:100,HALF:.5,TENTH:.1,TWENTIETH:.05,PERCENT_95:.95,PERCENT_99:.99,QUADRATIC_THRESHOLD:1.5,EXPONENTIAL_THRESHOLD:3,VARIANCE_MULTIPLIER:4,VARIANCE_OFFSET:2},Ye={ONE_AND_HALF:1.5,DOUBLE:2,TRIPLE:3,QUADRUPLE:4,QUINTUPLE:5,TEN:10},Fe={MILLISECONDS_PER_SECOND:1e3,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,NEGATIVE_ONE:-1,ZERO:0,ONE:1,TWO:2,THREE:3,FIVE:5,TEN:10};var Xe={MEMORY_LEAK_THRESHOLD:.1,DEFAULT_BENCHMARK_RUNS:100,DEFAULT_WARMUP_RUNS:10};var We={IPV4_OCTET_MIN:1,IPV4_OCTET_MAX:255,IPV4_OCTET_COUNT:4,RANDOM_BYTE_MAX:256,DEFAULT_PROCESS_ID_MAX:1e4},ve={EXCELLENT:50,GOOD:150,FAIR:400},Ve={EXCELLENT:10,GOOD:2,FAIR:.5},Ze={EXCELLENT:100,GOOD:75,FAIR:50,POOR:25,OFFLINE:0},we={FAST:15e3,MEDIUM:3e4,SLOW:6e4,VERY_SLOW:9e4,OFFLINE:5e3},Je={SHORT:300,MEDIUM:600,LONG:1800},Qe={SHORT:60,MEDIUM:300,LONG:900},ze={AGGRESSIVE:1e3,BALANCED:2e3,CONSERVATIVE:5e3},je={FEW:2,STANDARD:3,MANY:5},qe={SHORT:1e3,LONG:2e3,MAX:3e4},$e={SMALL:1.5,MEDIUM:2,LARGE:2.5},eo={HUGE:50,LARGE:25,MEDIUM:10,SMALL:5,NONE:0},oo={HUGE:100,LARGE:50,MEDIUM:25,SMALL:10,NONE:0};var no={CHART_BAR_MAX_LENGTH:40,CHART_SEPARATOR_LENGTH:60,DECIMAL_PRECISION:3},ao={LOWERCASE_A:97,ALPHABET_SIZE:26,SPACE:32};var io={x:"https://x.com/Plyaz_",instagram:"https://instagram.com/plyaz_",linkedin:"https://linkedin.com/company/plyaz"},No={docs:"https://plyaz.gitbook.io/plyaz",community:"https://community.plyaz.co.uk",support:"mailto:help@plyaz.co.uk"},so={INITIAL_POSTS_TO_SHOW:3,POSTS_INCREMENT:3,ANIMATION_DELAY:100};var Ro={FOCUS_CHECK_DELAY:100,FOCUS_TAB_COUNT:10,MIN_FOCUS_VISIBLE_TIME:200,MAX_FOCUS_WAIT_TIME:3e3,SCREEN_READER_DEBOUNCE:150,MIN_LARGE_TEXT_SIZE:18,MIN_LARGE_TEXT_BOLD_SIZE:14,MIN_NORMAL_TEXT_SIZE:14,MIN_TOUCH_TARGET_SIZE:44,MIN_INLINE_TARGET_SIZE:24,COLOR_CHANNEL_MAX:255,SRGB_THRESHOLD:.03928,SRGB_DIVISOR:12.92,SRGB_OFFSET:.055,SRGB_SCALE:1.055,SRGB_EXPONENT:2.4,LUMINANCE_RED:.2126,LUMINANCE_GREEN:.7152,LUMINANCE_BLUE:.0722,LUMINANCE_OFFSET:.05,CONTRAST_RATIO_AA:4.5,CONTRAST_RATIO_AA_LARGE:3,CONTRAST_RATIO_AAA:7,CONTRAST_RATIO_AAA_LARGE:4.5,CONTRAST_RATIO_GRAPHICS:3,PERCENTAGE_MAX:100,MAX_ESSENTIAL_ANIMATION_DURATION:5e3,REDUCED_MOTION_DURATION:1,MAX_FLASH_RATE:3,MIN_AUTO_UPDATE_INTERVAL:5,MIN_TIMEOUT_WARNING:20,DEFAULT_SESSION_TIMEOUT:20,EXTENDED_SESSION_TIMEOUT:120,MAX_BACKGROUND_AUDIO_LEVEL:-20,DEFAULT_CAPTION_OFFSET:50,MIN_CAPTION_FONT_SIZE:16,AUDIO_DESCRIPTION_DELAY:100,VALIDATION_DELAY:1e3,MAX_ERROR_MESSAGE_LENGTH:150,MIN_PASSWORD_LENGTH:8,MAX_ZOOM_WITHOUT_SCROLL:200,MIN_ZOOM_LEVEL:50,MAX_ZOOM_LEVEL:500,MAX_LINE_LENGTH:80,OPTIMAL_LINE_LENGTH:66,MIN_LINE_HEIGHT:1.5,MAX_PARAGRAPH_WIDTH:600},Oo={BANNER:"banner",COMPLEMENTARY:"complementary",CONTENTINFO:"contentinfo",FORM:"form",MAIN:"main",NAVIGATION:"navigation",REGION:"region",SEARCH:"search",APPLICATION:"application",ARTICLE:"article",CELL:"cell",COLUMNHEADER:"columnheader",DEFINITION:"definition",DIRECTORY:"directory",DOCUMENT:"document",FEED:"feed",FIGURE:"figure",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTITEM:"listitem",MATH:"math",NOTE:"note",PRESENTATION:"presentation",ROW:"row",ROWGROUP:"rowgroup",ROWHEADER:"rowheader",SEPARATOR:"separator",TABLE:"table",TERM:"term",ALERT:"alert",ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GRIDCELL:"gridcell",LINK:"link",LISTBOX:"listbox",LOG:"log",MARQUEE:"marquee",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",OPTION:"option",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",SCROLLBAR:"scrollbar",SEARCHBOX:"searchbox",SLIDER:"slider",SPINBUTTON:"spinbutton",STATUS:"status",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TABPANEL:"tabpanel",TEXTBOX:"textbox",TIMER:"timer",TOOLBAR:"toolbar",TOOLTIP:"tooltip",TREE:"tree",TREEGRID:"treegrid",TREEITEM:"treeitem",COMMAND:"command",COMPOSITE:"composite",INPUT:"input",LANDMARK:"landmark",RANGE:"range",ROLETYPE:"roletype",SECTION:"section",SECTIONHEAD:"sectionhead",SELECT:"select",STRUCTURE:"structure",WIDGET:"widget",WINDOW:"window"},Io={ARIA_AUTOCOMPLETE:"aria-autocomplete",ARIA_CHECKED:"aria-checked",ARIA_DISABLED:"aria-disabled",ARIA_ERRORMESSAGE:"aria-errormessage",ARIA_EXPANDED:"aria-expanded",ARIA_HASPOPUP:"aria-haspopup",ARIA_HIDDEN:"aria-hidden",ARIA_INVALID:"aria-invalid",ARIA_LABEL:"aria-label",ARIA_LEVEL:"aria-level",ARIA_MODAL:"aria-modal",ARIA_MULTILINE:"aria-multiline",ARIA_MULTISELECTABLE:"aria-multiselectable",ARIA_ORIENTATION:"aria-orientation",ARIA_PLACEHOLDER:"aria-placeholder",ARIA_PRESSED:"aria-pressed",ARIA_READONLY:"aria-readonly",ARIA_REQUIRED:"aria-required",ARIA_SELECTED:"aria-selected",ARIA_SORT:"aria-sort",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",ARIA_VALUETEXT:"aria-valuetext",ARIA_LIVE:"aria-live",ARIA_ATOMIC:"aria-atomic",ARIA_RELEVANT:"aria-relevant",ARIA_BUSY:"aria-busy",ARIA_DROPEFFECT:"aria-dropeffect",ARIA_GRABBED:"aria-grabbed",ARIA_ACTIVEDESCENDANT:"aria-activedescendant",ARIA_COLCOUNT:"aria-colcount",ARIA_COLINDEX:"aria-colindex",ARIA_COLSPAN:"aria-colspan",ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_DETAILS:"aria-details",ARIA_FLOWTO:"aria-flowto",ARIA_LABELLEDBY:"aria-labelledby",ARIA_OWNS:"aria-owns",ARIA_POSINSET:"aria-posinset",ARIA_ROWCOUNT:"aria-rowcount",ARIA_ROWINDEX:"aria-rowindex",ARIA_ROWSPAN:"aria-rowspan",ARIA_SETSIZE:"aria-setsize",ARIA_CURRENT:"aria-current",ARIA_DESCRIPTION:"aria-description",ARIA_KEYSHORTCUTS:"aria-keyshortcuts",ARIA_ROLEDESCRIPTION:"aria-roledescription"},co={TAB:"Tab",ENTER:"Enter",SPACE:" ",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",TAB_KEYCODE:9,ENTER_KEYCODE:13,ESCAPE_KEYCODE:27,SPACE_KEYCODE:32,ARROW_LEFT_KEYCODE:37,ARROW_UP_KEYCODE:38,ARROW_RIGHT_KEYCODE:39,ARROW_DOWN_KEYCODE:40},Co={POLITE:"polite",ASSERTIVE:"assertive",OFF:"off"},lo={INITIAL_FOCUS:"[data-focus-initial], [autofocus]",FOCUSABLE_ELEMENTS:'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',INTERACTIVE_ELEMENTS:'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',SKIP_LINK:"[data-skip-link], .skip-link"};var Do={ISO_COUNTRY_CODE_LENGTH:2,ISO_COUNTRY_CODE_ALPHA3_LENGTH:3,ISO_LANGUAGE_CODE_LENGTH:2,ISO_LANGUAGE_CODE_ALPHA3_LENGTH:3,ISO_CURRENCY_CODE_LENGTH:3,ISO_DATE_LENGTH:10,ISO_DATETIME_LENGTH:24,ISO_TIME_LENGTH:8,ISO_WEEK_DATE_LENGTH:8,BCP47_MIN_LENGTH:2,BCP47_WITH_REGION_LENGTH:5,RFC5646_MAX_LENGTH:35,ISO_NUMERIC_COUNTRY_CODE_LENGTH:3,ISO_639_3_LENGTH:3};var yo={LOCALE_SEPARATOR:"-",BCP47_SEPARATOR:"-",CURRENCY_DECIMALS:2,CURRENCY_SYMBOL_BEFORE:true,THOUSANDS_SEPARATOR:",",DECIMAL_SEPARATOR:".",MAX_LOCALE_LENGTH:35,MIN_LOCALE_LENGTH:2,PERCENTAGE_DECIMALS:2,DEFAULT_FRACTION_DIGITS:2,MAX_FRACTION_DIGITS:20},Mo={ISO_DATE:"YYYY-MM-DD",ISO_DATETIME:"YYYY-MM-DDTHH:mm:ss.sssZ",ISO_TIME:"HH:mm:ss",US_DATE:"MM/DD/YYYY",EU_DATE:"DD/MM/YYYY",UK_DATE:"DD/MM/YYYY",JP_DATE:"YYYY/MM/DD",SHORT_DATE:"MMM DD",LONG_DATE:"MMMM DD, YYYY",FULL_DATE:"dddd, MMMM DD, YYYY",TIME_12H:"hh:mm A",TIME_24H:"HH:mm",TIME_12H_SECONDS:"hh:mm:ss A",TIME_24H_SECONDS:"HH:mm:ss",RELATIVE_TIME_THRESHOLD:86400,MONTH_YEAR:"MMMM YYYY",SHORT_MONTH_YEAR:"MMM YYYY",YEAR_ONLY:"YYYY"},Uo={LTR:"ltr",RTL:"rtl",AUTO:"auto"};var Ho={INTERNATIONAL_PREFIX:"+",IDD_PREFIX:"00",US_COUNTRY_CODE:"1",UK_COUNTRY_CODE:"44",DE_COUNTRY_CODE:"49",FR_COUNTRY_CODE:"33",JP_COUNTRY_CODE:"81",CN_COUNTRY_CODE:"86",IN_COUNTRY_CODE:"91",BR_COUNTRY_CODE:"55",US_PHONE_LENGTH:10,UK_PHONE_LENGTH:10,MIN_PHONE_LENGTH:7,MAX_PHONE_LENGTH:15,E164_MAX_LENGTH:16,E164_MIN_LENGTH:8,US_AREA_CODE_LENGTH:3,US_EXCHANGE_CODE_LENGTH:3,US_LINE_NUMBER_LENGTH:4,MAX_EXTENSION_LENGTH:6,MAX_COUNTRY_CODE_LENGTH:3,MAX_NATIONAL_NUMBER_LENGTH:15},fo={US_FORMAT:"(XXX) XXX-XXXX",UK_FORMAT:"XXXX XXX XXXX",INTERNATIONAL_FORMAT:"+X XXX XXX XXXX",E164_FORMAT:"+XXXXXXXXXXXX",EXTENSION_FORMAT:"ext. XXXX"};var mo={US_ZIP_LENGTH:5,US_ZIP_PLUS4_LENGTH:9,US_ZIP_SEPARATOR:"-",CA_POSTAL_CODE_LENGTH:6,UK_POSTCODE_MIN_LENGTH:5,UK_POSTCODE_MAX_LENGTH:8,DE_POSTAL_CODE_LENGTH:5,FR_POSTAL_CODE_LENGTH:5,JP_POSTAL_CODE_LENGTH:7,AU_POSTAL_CODE_LENGTH:4,BR_CEP_LENGTH:8,STATE_CODE_LENGTH:2,STATE_NAME_MAX_LENGTH:50,MAX_ADDRESS_LINE_LENGTH:100,MIN_ADDRESS_LINE_LENGTH:3,MAX_CITY_LENGTH:50,MIN_CITY_LENGTH:2,MAX_COUNTRY_LENGTH:56,MAX_BUILDING_NUMBER_LENGTH:10,MAX_UNIT_NUMBER_LENGTH:10,MAX_PO_BOX_LENGTH:10,MAX_ADDRESS_LINES:3},bo={ADDRESS_LINE_1:"addressLine1",ADDRESS_LINE_2:"addressLine2",CITY:"city",STATE:"state",POSTAL_CODE:"postalCode",COUNTRY:"country",BUILDING_NUMBER:"buildingNumber",UNIT_NUMBER:"unitNumber",PO_BOX:"poBox",DISTRICT:"district",COUNTY:"county"};var Yo={USD:"USD",EUR:"EUR",GBP:"GBP",JPY:"JPY",CHF:"CHF",CAD:"CAD",AUD:"AUD",CNY:"CNY",INR:"INR",KRW:"KRW",SGD:"SGD",HKD:"HKD",TWD:"TWD",THB:"THB",IDR:"IDR",MYR:"MYR",PHP:"PHP",VND:"VND",BDT:"BDT",PKR:"PKR",LKR:"LKR",SEK:"SEK",NOK:"NOK",DKK:"DKK",PLN:"PLN",CZK:"CZK",HUF:"HUF",RON:"RON",BGN:"BGN",HRK:"HRK",RSD:"RSD",ISK:"ISK",BRL:"BRL",MXN:"MXN",ARS:"ARS",CLP:"CLP",COP:"COP",PEN:"PEN",UYU:"UYU",VES:"VES",BOB:"BOB",PYG:"PYG",CRC:"CRC",GTQ:"GTQ",HNL:"HNL",NIO:"NIO",PAB:"PAB",DOP:"DOP",JMD:"JMD",TTD:"TTD",BBD:"BBD",AED:"AED",SAR:"SAR",QAR:"QAR",KWD:"KWD",BHD:"BHD",OMR:"OMR",JOD:"JOD",ILS:"ILS",TRY:"TRY",IQD:"IQD",IRR:"IRR",LBP:"LBP",SYP:"SYP",ZAR:"ZAR",NGN:"NGN",EGP:"EGP",KES:"KES",GHS:"GHS",MAD:"MAD",TND:"TND",DZD:"DZD",ETB:"ETB",TZS:"TZS",UGX:"UGX",ZMW:"ZMW",BWP:"BWP",MUR:"MUR",NZD:"NZD",FJD:"FJD",PGK:"PGK",RUB:"RUB",UAH:"UAH",BYN:"BYN",KZT:"KZT",UZS:"UZS",AZN:"AZN",GEL:"GEL",AMD:"AMD",BTC:"BTC",ETH:"ETH",USDT:"USDT",USDC:"USDC"},Fo={NO_DECIMAL_CURRENCIES:["JPY","KRW","VND","IDR","CLP","ISK","TWD"],THREE_DECIMAL_CURRENCIES:["BHD","IQD","JOD","KWD","OMR","TND"],RESERVE_CURRENCIES:["USD","EUR","GBP","JPY","CNY"],G7_CURRENCIES:["USD","EUR","GBP","JPY","CAD"],DEFAULT_DECIMAL_PLACES:2};var Ko={US:"US",CA:"CA",MX:"MX",BR:"BR",AR:"AR",CL:"CL",CO:"CO",PE:"PE",VE:"VE",EC:"EC",BO:"BO",PY:"PY",UY:"UY",GY:"GY",SR:"SR",GF:"GF",FK:"FK",CU:"CU",DO:"DO",HT:"HT",JM:"JM",TT:"TT",BB:"BB",BS:"BS",PR:"PR",GT:"GT",HN:"HN",SV:"SV",NI:"NI",CR:"CR",PA:"PA",BZ:"BZ",GB:"GB",FR:"FR",DE:"DE",IT:"IT",ES:"ES",PT:"PT",NL:"NL",BE:"BE",LU:"LU",CH:"CH",AT:"AT",IE:"IE",DK:"DK",SE:"SE",NO:"NO",FI:"FI",IS:"IS",PL:"PL",CZ:"CZ",SK:"SK",HU:"HU",RO:"RO",BG:"BG",GR:"GR",HR:"HR",SI:"SI",RS:"RS",BA:"BA",ME:"ME",MK:"MK",AL:"AL",XK:"XK",EE:"EE",LV:"LV",LT:"LT",BY:"BY",UA:"UA",MD:"MD",RU:"RU",CY:"CY",MT:"MT",AD:"AD",MC:"MC",SM:"SM",VA:"VA",LI:"LI",CN:"CN",JP:"JP",KR:"KR",KP:"KP",TW:"TW",HK:"HK",MO:"MO",IN:"IN",PK:"PK",BD:"BD",LK:"LK",NP:"NP",BT:"BT",MV:"MV",AF:"AF",TH:"TH",VN:"VN",MY:"MY",SG:"SG",ID:"ID",PH:"PH",BN:"BN",KH:"KH",LA:"LA",MM:"MM",TL:"TL",MN:"MN",KZ:"KZ",UZ:"UZ",TJ:"TJ",KG:"KG",TM:"TM",AZ:"AZ",GE:"GE",AM:"AM",SA:"SA",AE:"AE",QA:"QA",KW:"KW",BH:"BH",OM:"OM",YE:"YE",JO:"JO",LB:"LB",SY:"SY",IQ:"IQ",IR:"IR",IL:"IL",PS:"PS",TR:"TR",EG:"EG",LY:"LY",TN:"TN",DZ:"DZ",MA:"MA",EH:"EH",MR:"MR",ML:"ML",NE:"NE",TD:"TD",SD:"SD",SS:"SS",ER:"ER",DJ:"DJ",SO:"SO",ET:"ET",KE:"KE",UG:"UG",RW:"RW",BI:"BI",TZ:"TZ",MZ:"MZ",MW:"MW",ZM:"ZM",ZW:"ZW",BW:"BW",NA:"NA",ZA:"ZA",LS:"LS",SZ:"SZ",AO:"AO",CD:"CD",CG:"CG",GA:"GA",GQ:"GQ",CM:"CM",CF:"CF",NG:"NG",BJ:"BJ",TG:"TG",GH:"GH",BF:"BF",CI:"CI",LR:"LR",SL:"SL",GN:"GN",GW:"GW",SN:"SN",GM:"GM",CV:"CV",ST:"ST",MG:"MG",MU:"MU",SC:"SC",KM:"KM",RE:"RE",AU:"AU",NZ:"NZ",PG:"PG",FJ:"FJ",SB:"SB",VU:"VU",NC:"NC",PF:"PF",WS:"WS",TO:"TO",TV:"TV",NR:"NR",KI:"KI",PW:"PW",MH:"MH",FM:"FM",GU:"GU",MP:"MP",AS:"AS",CK:"CK",NU:"NU",TK:"TK",WF:"WF",PN:"PN",AQ:"AQ"},ho={"+1":["US","CA"],"+20":["EG"],"+27":["ZA"],"+30":["GR"],"+31":["NL"],"+32":["BE"],"+33":["FR"],"+34":["ES"],"+36":["HU"],"+39":["IT"],"+40":["RO"],"+41":["CH"],"+43":["AT"],"+44":["GB"],"+45":["DK"],"+46":["SE"],"+47":["NO"],"+48":["PL"],"+49":["DE"],"+51":["PE"],"+52":["MX"],"+53":["CU"],"+54":["AR"],"+55":["BR"],"+56":["CL"],"+57":["CO"],"+58":["VE"],"+60":["MY"],"+61":["AU"],"+62":["ID"],"+63":["PH"],"+64":["NZ"],"+65":["SG"],"+66":["TH"],"+7":["RU","KZ"],"+81":["JP"],"+82":["KR"],"+84":["VN"],"+86":["CN"],"+90":["TR"],"+91":["IN"],"+92":["PK"],"+93":["AF"],"+94":["LK"],"+95":["MM"],"+98":["IR"],"+212":["MA"],"+213":["DZ"],"+216":["TN"],"+218":["LY"],"+220":["GM"],"+221":["SN"],"+223":["ML"],"+224":["GN"],"+225":["CI"],"+226":["BF"],"+227":["NE"],"+228":["TG"],"+229":["BJ"],"+230":["MU"],"+231":["LR"],"+232":["SL"],"+233":["GH"],"+234":["NG"],"+235":["TD"],"+236":["CF"],"+237":["CM"],"+238":["CV"],"+239":["ST"],"+240":["GQ"],"+241":["GA"],"+242":["CG"],"+243":["CD"],"+244":["AO"],"+245":["GW"],"+254":["KE"],"+255":["TZ"],"+256":["UG"],"+257":["BI"],"+258":["MZ"],"+260":["ZM"],"+261":["MG"],"+263":["ZW"],"+264":["NA"],"+265":["MW"],"+266":["LS"],"+267":["BW"],"+268":["SZ"],"+248":["SC"],"+250":["RW"],"+251":["ET"],"+252":["SO"],"+253":["DJ"],"+852":["HK"],"+853":["MO"],"+880":["BD"],"+886":["TW"],"+960":["MV"],"+961":["LB"],"+962":["JO"],"+963":["SY"],"+964":["IQ"],"+965":["KW"],"+966":["SA"],"+967":["YE"],"+968":["OM"],"+970":["PS"],"+971":["AE"],"+972":["IL"],"+973":["BH"],"+974":["QA"],"+975":["BT"],"+976":["MN"],"+977":["NP"],"+992":["TJ"],"+993":["TM"],"+994":["AZ"],"+995":["GE"],"+996":["KG"],"+998":["UZ"]},Xo={EU:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],NORTH_AMERICA:["US","CA","MX"],SOUTH_AMERICA:["AR","BO","BR","CL","CO","EC","GF","GY","PY","PE","SR","UY","VE"],G7:["US","CA","GB","FR","DE","IT","JP"],G20:["AR","AU","BR","CA","CN","FR","DE","IN","ID","IT","JP","KR","MX","RU","SA","ZA","TR","GB","US"],ASEAN:["BN","KH","ID","LA","MY","MM","PH","SG","TH","VN"],BRICS:["BR","RU","IN","CN","ZA"],OECD:["AU","AT","BE","CA","CL","CO","CR","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IL","IT","JP","KR","LV","LT","LU","MX","NL","NZ","NO","PL","PT","SK","SI","ES","SE","CH","TR","GB","US"],COMMONWEALTH:["AG","AU","BS","BD","BB","BZ","BW","BN","CM","CA","CY","DM","FJ","GM","GH","GD","GY","IN","JM","KE","KI","LS","MW","MY","MV","MT","MU","MZ","NA","NR","NZ","NG","PK","PG","RW","KN","LC","VC","WS","SC","SL","SG","SB","ZA","LK","SZ","TZ","TO","TT","TV","UG","GB","VU","ZM"]},ko={DE:{region:"eu"},FR:{region:"eu"},IT:{region:"eu"},ES:{region:"eu"},NL:{region:"eu"},BE:{region:"eu"},AT:{region:"eu"},SE:{region:"eu"},DK:{region:"eu"},FI:{region:"eu"},NO:{region:"eu"},PL:{region:"eu"},CZ:{region:"eu"},HU:{region:"eu"},SK:{region:"eu"},SI:{region:"eu"},HR:{region:"eu"},BG:{region:"eu"},RO:{region:"eu"},GR:{region:"eu"},PT:{region:"eu"},IE:{region:"eu"},LU:{region:"eu"},MT:{region:"eu"},CY:{region:"eu"},EE:{region:"eu"},LV:{region:"eu"},LT:{region:"eu"},GB:{region:"eu"},IS:{region:"eu"},LI:{region:"eu"},CH:{region:"eu"},US:{region:"us"},CA:{region:"ca"},CN:{region:"cn"},HK:{region:"cn"},MO:{region:"cn"},JP:{region:"jp"},KR:{region:"global"},TW:{region:"global"},SG:{region:"global"},MY:{region:"global"},TH:{region:"global"},IN:{region:"global"},ID:{region:"global"},PH:{region:"global"},VN:{region:"global"},AU:{region:"global"},NZ:{region:"global"},MX:{region:"global"},BR:{region:"global"},AR:{region:"global"},CL:{region:"global"},CO:{region:"global"},AE:{region:"global"},SA:{region:"global"},IL:{region:"global"},TR:{region:"global"},ZA:{region:"global"},EG:{region:"global"},NG:{region:"global"},KE:{region:"global"},RU:{region:"global"}};var vo={AMERICAS:["en-US","es-MX","pt-BR","en-CA","fr-CA"],EUROPE:["en-GB","de-DE","fr-FR","it-IT","es-ES","nl-NL"],ASIA_PACIFIC:["zh-CN","ja-JP","ko-KR","hi-IN","en-AU"],MIDDLE_EAST_AFRICA:["ar-SA","he-IL","tr-TR","en-ZA"]},Vo={de:{region:"eu",country:"DE"},"de-de":{region:"eu",country:"DE"},"de-at":{region:"eu",country:"AT"},"de-ch":{region:"eu",country:"CH"},"it-ch":{region:"eu",country:"CH"},"fr-ch":{region:"eu",country:"CH"},fr:{region:"eu",country:"FR"},"fr-fr":{region:"eu",country:"FR"},"fr-be":{region:"eu",country:"BE"},es:{region:"eu",country:"ES"},"es-es":{region:"eu",country:"ES"},it:{region:"eu",country:"IT"},"it-it":{region:"eu",country:"IT"},nl:{region:"eu",country:"NL"},"nl-nl":{region:"eu",country:"NL"},"nl-be":{region:"eu",country:"BE"},pl:{region:"eu",country:"PL"},"pl-pl":{region:"eu",country:"PL"},pt:{region:"eu",country:"PT"},"pt-pt":{region:"eu",country:"PT"},sv:{region:"eu",country:"SE"},"sv-se":{region:"eu",country:"SE"},"sv-fi":{region:"eu",country:"FI"},da:{region:"eu",country:"DK"},"da-dk":{region:"eu",country:"DK"},fi:{region:"eu",country:"FI"},"fi-fi":{region:"eu",country:"FI"},"en-gb":{region:"eu",country:"GB"},"en-ie":{region:"eu",country:"IE"},"en-us":{region:"us",country:"US"},en:{region:"global",country:void 0},zh:{region:"cn",country:"CN"},"zh-cn":{region:"cn",country:"CN"},"zh-hans":{region:"cn",country:"CN"},"zh-hk":{region:"cn",country:"HK"},"zh-tw":{region:"global",country:"TW"},ja:{region:"jp",country:"JP"},"ja-jp":{region:"jp",country:"JP"},"en-ca":{region:"ca",country:"CA"},"fr-ca":{region:"ca",country:"CA"},"en-au":{region:"global",country:"AU"},"en-nz":{region:"global",country:"NZ"},ko:{region:"global",country:"KR"},"ko-kr":{region:"global",country:"KR"},"pt-br":{region:"global",country:"BR"},"es-mx":{region:"global",country:"MX"},"es-ar":{region:"global",country:"AR"},"es-cl":{region:"global",country:"CL"},"es-co":{region:"global",country:"CO"},"es-pe":{region:"global",country:"PE"},"es-VE":{region:"global",country:"VE"},"es-EC":{region:"global",country:"EC"},"es-UY":{region:"global",country:"UY"},"es-PY":{region:"global",country:"PY"},"es-BO":{region:"global",country:"BO"},"es-DO":{region:"global",country:"DO"},"es-GT":{region:"global",country:"GT"},"es-HN":{region:"global",country:"HN"},"es-NI":{region:"global",country:"NI"},"es-PA":{region:"global",country:"PA"},"es-CR":{region:"global",country:"CR"},"es-SV":{region:"global",country:"SV"},"zh-SG":{region:"global",country:"SG"},"en-SG":{region:"global",country:"SG"},"en-IN":{region:"global",country:"IN"},"hi-IN":{region:"global",country:"IN"},"en-PH":{region:"global",country:"PH"},"tl-PH":{region:"global",country:"PH"},"id-ID":{region:"global",country:"ID"},"ms-MY":{region:"global",country:"MY"},"en-MY":{region:"global",country:"MY"},"th-TH":{region:"global",country:"TH"},"vi-VN":{region:"global",country:"VN"},"ar-SA":{region:"global",country:"SA"},"ar-AE":{region:"global",country:"AE"},"ar-EG":{region:"global",country:"EG"},"ar-DZ":{region:"global",country:"DZ"},"ar-MA":{region:"global",country:"MA"},"he-IL":{region:"global",country:"IL"},"tr-TR":{region:"global",country:"TR"},"en-ZA":{region:"global",country:"ZA"},"af-ZA":{region:"global",country:"ZA"},"en-NG":{region:"global",country:"NG"},"en-KE":{region:"global",country:"KE"},"sw-KE":{region:"global",country:"KE"},"ru-RU":{region:"global",country:"RU"},"uk-UA":{region:"eu",country:"UA"},"be-BY":{region:"global",country:"BY"},"kk-KZ":{region:"global",country:"KZ"}};var wo={"Europe/London":{region:"eu",country:"GB"},"Europe/Berlin":{region:"eu",country:"DE"},"Europe/Paris":{region:"eu",country:"FR"},"Europe/Rome":{region:"eu",country:"IT"},"Europe/Madrid":{region:"eu",country:"ES"},"Europe/Amsterdam":{region:"eu",country:"NL"},"Europe/Stockholm":{region:"eu",country:"SE"},"Europe/Helsinki":{region:"eu",country:"FI"},"Europe/Vienna":{region:"eu",country:"AT"},"Europe/Brussels":{region:"eu",country:"BE"},"Europe/Dublin":{region:"eu",country:"IE"},"Europe/Copenhagen":{region:"eu",country:"DK"},"Europe/Warsaw":{region:"eu",country:"PL"},"Europe/Prague":{region:"eu",country:"CZ"},"Europe/Budapest":{region:"eu",country:"HU"},"Europe/Bucharest":{region:"eu",country:"RO"},"Europe/Athens":{region:"eu",country:"GR"},"Europe/Lisbon":{region:"eu",country:"PT"},"Europe/Zagreb":{region:"eu",country:"HR"},"Europe/Ljubljana":{region:"eu",country:"SI"},"Europe/Bratislava":{region:"eu",country:"SK"},"Europe/Sofia":{region:"eu",country:"BG"},"Europe/Tallinn":{region:"eu",country:"EE"},"Europe/Riga":{region:"eu",country:"LV"},"Europe/Vilnius":{region:"eu",country:"LT"},"Europe/Luxembourg":{region:"eu",country:"LU"},"Europe/Malta":{region:"eu",country:"MT"},"Europe/Oslo":{region:"eu",country:"NO"},"Europe/Zurich":{region:"eu",country:"CH"},"Europe/Reykjavik":{region:"eu",country:"IS"},"Europe/Kiev":{region:"eu",country:"UA"},"Europe/Minsk":{region:"global",country:"BY"},"Europe/Moscow":{region:"global",country:"RU"},"America/Los_Angeles":{region:"us",country:"US",state:"ca"},"America/San_Francisco":{region:"us",country:"US",state:"ca"},"America/New_York":{region:"us",country:"US",state:"ny"},"America/Chicago":{region:"us",country:"US",state:"il"},"America/Denver":{region:"us",country:"US",state:"co"},"America/Phoenix":{region:"us",country:"US",state:"az"},"America/Detroit":{region:"us",country:"US",state:"mi"},"America/Atlanta":{region:"us",country:"US",state:"ga"},"America/Miami":{region:"us",country:"US",state:"fl"},"America/Dallas":{region:"us",country:"US",state:"tx"},"America/Houston":{region:"us",country:"US",state:"tx"},"America/Seattle":{region:"us",country:"US",state:"wa"},"America/Boston":{region:"us",country:"US",state:"ma"},"America/Philadelphia":{region:"us",country:"US",state:"pa"},"Asia/Shanghai":{region:"cn",country:"CN"},"Asia/Beijing":{region:"cn",country:"CN"},"Asia/Hong_Kong":{region:"cn",country:"HK"},"Asia/Macau":{region:"cn",country:"MO"},"Asia/Chongqing":{region:"cn",country:"CN"},"Asia/Urumqi":{region:"cn",country:"CN"},"Asia/Tokyo":{region:"jp",country:"JP"},"Asia/Osaka":{region:"jp",country:"JP"},"Asia/Bangkok":{region:"global",country:"TH"},"Asia/Jakarta":{region:"global",country:"ID"},"Asia/Manila":{region:"global",country:"PH"},"Asia/Kuala_Lumpur":{region:"global",country:"MY"},"Asia/Ho_Chi_Minh":{region:"global",country:"VN"},"Asia/Taipei":{region:"global",country:"TW"},"Asia/Kolkata":{region:"global",country:"IN"},"Asia/Delhi":{region:"global",country:"IN"},"Asia/Karachi":{region:"global",country:"PK"},"Asia/Dhaka":{region:"global",country:"BD"},"Asia/Colombo":{region:"global",country:"LK"},"Asia/Kathmandu":{region:"global",country:"NP"},"Pacific/Fiji":{region:"global",country:"FJ"},"Pacific/Guam":{region:"us",country:"GU"},"Pacific/Honolulu":{region:"us",country:"US",state:"hi"},"America/Toronto":{region:"us",country:"CA"},"America/Vancouver":{region:"us",country:"CA"},"America/Montreal":{region:"us",country:"CA"},"America/Edmonton":{region:"us",country:"CA"},"America/Winnipeg":{region:"us",country:"CA"},"America/Halifax":{region:"us",country:"CA"},"Australia/Sydney":{region:"global",country:"AU"},"Australia/Melbourne":{region:"global",country:"AU"},"Australia/Brisbane":{region:"global",country:"AU"},"Australia/Perth":{region:"global",country:"AU"},"Australia/Adelaide":{region:"global",country:"AU"},"Australia/Darwin":{region:"global",country:"AU"},"Australia/Hobart":{region:"global",country:"AU"},"Pacific/Auckland":{region:"global",country:"NZ"},"Pacific/Wellington":{region:"global",country:"NZ"},"Pacific/Christchurch":{region:"global",country:"NZ"},"Asia/Singapore":{region:"global",country:"SG"},"Asia/Seoul":{region:"global",country:"KR"},"Asia/Mumbai":{region:"global",country:"IN"},"Asia/Dubai":{region:"global",country:"AE"},"Asia/Riyadh":{region:"global",country:"SA"},"Asia/Jerusalem":{region:"global",country:"IL"},"Asia/Tel_Aviv":{region:"global",country:"IL"},"Asia/Istanbul":{region:"global",country:"TR"},"Asia/Tehran":{region:"global",country:"IR"},"Asia/Baghdad":{region:"global",country:"IQ"},"Asia/Kuwait":{region:"global",country:"KW"},"Asia/Doha":{region:"global",country:"QA"},"Asia/Muscat":{region:"global",country:"OM"},"Asia/Amman":{region:"global",country:"JO"},"Asia/Beirut":{region:"global",country:"LB"},"Asia/Damascus":{region:"global",country:"SY"},"America/Sao_Paulo":{region:"global",country:"BR"},"America/Rio_de_Janeiro":{region:"global",country:"BR"},"America/Brasilia":{region:"global",country:"BR"},"America/Mexico_City":{region:"global",country:"MX"},"America/Tijuana":{region:"global",country:"MX"},"America/Monterrey":{region:"global",country:"MX"},"America/Buenos_Aires":{region:"global",country:"AR"},"America/Santiago":{region:"global",country:"CL"},"America/Bogota":{region:"global",country:"CO"},"America/Lima":{region:"global",country:"PE"},"America/Caracas":{region:"global",country:"VE"},"America/La_Paz":{region:"global",country:"BO"},"America/Guayaquil":{region:"global",country:"EC"},"America/Montevideo":{region:"global",country:"UY"},"America/Asuncion":{region:"global",country:"PY"},"America/Santo_Domingo":{region:"global",country:"DO"},"America/Havana":{region:"global",country:"CU"},"America/Panama":{region:"global",country:"PA"},"America/Guatemala":{region:"global",country:"GT"},"America/Costa_Rica":{region:"global",country:"CR"},"America/San_Salvador":{region:"global",country:"SV"},"America/Tegucigalpa":{region:"global",country:"HN"},"America/Managua":{region:"global",country:"NI"},"America/Jamaica":{region:"global",country:"JM"},"America/Port-au-Prince":{region:"global",country:"HT"},"Africa/Johannesburg":{region:"global",country:"ZA"},"Africa/Cairo":{region:"global",country:"EG"},"Africa/Lagos":{region:"global",country:"NG"},"Africa/Nairobi":{region:"global",country:"KE"},"Africa/Casablanca":{region:"global",country:"MA"},"Africa/Algiers":{region:"global",country:"DZ"},"Africa/Tunis":{region:"global",country:"TN"},"Africa/Addis_Ababa":{region:"global",country:"ET"},"Africa/Dar_es_Salaam":{region:"global",country:"TZ"},"Africa/Kinshasa":{region:"global",country:"CD"},"Africa/Luanda":{region:"global",country:"AO"},"Africa/Kampala":{region:"global",country:"UG"},"Africa/Harare":{region:"global",country:"ZW"},"Africa/Accra":{region:"global",country:"GH"},"Africa/Dakar":{region:"global",country:"SN"},"Africa/Abidjan":{region:"global",country:"CI"},"Europe/":{region:"eu"},"America/":{region:"us"},"Asia/":{region:"asia"},"Africa/":{region:"global"},"Pacific/":{region:"global"}};var a={validation_error:{status:400,message:"errors.validation.error"},unauthorized:{status:401,message:"errors.auth.unauthorized"},payment_failed:{status:402,message:"errors.payment.failed"},forbidden:{status:403,message:"errors.auth.forbidden"},not_found:{status:404,message:"errors.common.notFound"},method_not_allowed:{status:405,message:"errors.common.methodNotAllowed"},user_already_exists:{status:409,message:"errors.user.alreadyExists"},unprocessable_entity:{status:422,message:"errors.validation.unprocessable"},too_many_requests:{status:429,message:"errors.rateLimit.tooManyRequests"},internal_server_error:{status:500,message:"errors.server.internal"},not_implemented:{status:501,message:"errors.server.notImplemented"},bad_gateway:{status:502,message:"errors.server.badGateway"},service_unavailable:{status:503,message:"errors.server.serviceUnavailable"},gateway_timeout:{status:504,message:"errors.server.gatewayTimeout"}},Er={InvalidInput:{type:"form",message:"Invalid input",timestamp:new Date().toISOString()},[a.internal_server_error.status]:{type:"server",message:"Something went wrong",timestamp:new Date().toISOString()},[a.unauthorized.status]:{type:"auth",message:"Please log in again",timestamp:new Date().toISOString()}};var Tr={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},_r=["email","password","wallet","token","secret","ssn"],ir=[{target:"pino-pretty",options:{colorize:true}}];var Or={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:false,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"minimal",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},Ir={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},cr={timeout:e.TWO_MINUTES,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:true},enrichedHeaders:{enabled:true,preset:"full",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,includePerformance:true,respectDoNotTrack:false,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:false,adaptConfig:false,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"immediate",eventStrategy:"immediate",telemetry:false},retryStrategy:"conservative",encryption:{enabled:false,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}};var ur={baseURL:"",timeout:e.THIRTY_SECONDS,retry:{attempts:3,delay:e.SECOND,maxDelay:e.THIRTY_SECONDS,backoff:1.5},cache:{ttl:60,stale:300},headers:{"Content-Type":"application/json",Accept:"application/json"},strategy:"softFail"},Lr={enrichedHeaders:{enabled:true,preset:"standard"}};
|
|
6
|
-
exports.A11Y_CONSTANTS=Ro;exports.ADDRESS_FIELDS=
|
|
5
|
+
`,CARRIAGE_RETURN:"\r",FORM_FEED:"\f",VERTICAL_TAB:"\v",OPEN_PAREN:"(",CLOSE_PAREN:")",OPEN_BRACKET:"[",CLOSE_BRACKET:"]",OPEN_BRACE:"{",CLOSE_BRACE:"}",OPEN_ANGLE:"<",CLOSE_ANGLE:">"};var Ae={ARRAY_SPLIT_CENTER:.5,DEFAULT_PAGE_SIZE:10,DEFAULT_MAX_RETRIES:3,THREE_ITEMS:3};var Ne={FNV_32_PRIME:16777619,FNV_32_OFFSET:2166136261,FNV_64_PRIME:BigInt("0x100000001b3"),FNV_64_OFFSET:BigInt("0xcbf29ce484222325"),MASK_32:4294967295,BITS_32:32,BITS_64:64},se={MAX_SAFE_SEED:2147483647,MAX_UINT32:4294967295},Se={DEFAULT_BUCKET_COUNT:10,DEFAULT_PERCENTAGE_BUCKETS:100,HASH_SHIFT:5},Re={SHA1_LENGTH:20,SHA256_LENGTH:32,SHA384_LENGTH:48,SHA512_LENGTH:64,SHA_BLOCK_SIZE:64,SHA512_BLOCK_SIZE:128},Oe={MD5_LENGTH:16,MD5_BLOCK_SIZE:64},Ie={HEX:"hex",BASE64:"base64",BASE64URL:"base64url",BINARY:"binary",UTF8:"utf8"},ce={MD5:"md5",SHA1:"sha1",SHA256:"sha256",SHA384:"sha384",SHA512:"sha512",SHA3_256:"sha3-256",SHA3_384:"sha3-384",SHA3_512:"sha3-512",BLAKE2B:"blake2b",BLAKE2S:"blake2s",FNV1A_32:"fnv1a-32",FNV1A_64:"fnv1a-64"},Ce={MURMUR3_32_SEED:0,MURMUR3_32_C1:3432918353,MURMUR3_32_C2:461845907,MURMUR3_32_R1:15,MURMUR3_32_R2:13,MURMUR3_32_M:5,MURMUR3_32_N:3864292196},le={CRC32_POLYNOMIAL:3988292384,CRC32_INITIAL:4294967295,CRC32_XOR_OUTPUT:4294967295,CRC16_POLYNOMIAL:40961,CRC16_INITIAL:0};var Ue={CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,EARLY_HINTS:103,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,ALREADY_REPORTED:208,IM_USED:226,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,IM_A_TEAPOT:418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511};var e={MILLISECOND:1,SECOND:1e3,MINUTE:6e4,HOUR:36e5,DAY:864e5,WEEK:6048e5,MONTH:2592e6,YEAR:31536e6,MILLISECONDS_PER_SECOND:1e3,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,DAYS_PER_WEEK:7,DAYS_PER_MONTH:30,DAYS_PER_YEAR:365,WEEKS_PER_YEAR:52,MONTHS_PER_YEAR:12,HUNDRED_MS:100,QUARTER_SECOND:250,HALF_SECOND:500,TWO_SECONDS:2e3,THREE_SECONDS:3e3,FIVE_SECONDS:5e3,TEN_SECONDS:1e4,THIRTY_SECONDS:3e4,TWO_MINUTES:12e4,FIVE_MINUTES:3e5,TEN_MINUTES:6e5,FIFTEEN_MINUTES:9e5,THIRTY_MINUTES:18e5,ONE_HOUR:36e5,TWO_HOURS:72e5,SIX_HOURS:216e5,TWELVE_HOURS:432e5,DEFAULT_TIMEOUT:5e3,DEFAULT_SHORT_TIMEOUT:1e3,DEFAULT_LONG_TIMEOUT:3e4,DEFAULT_RETRY_DELAY:100,DEFAULT_BACKOFF_BASE:1e3,DEFAULT_MAX_BACKOFF:3e4,DEFAULT_RETRY_ATTEMPTS:3,DEFAULT_DEBOUNCE_DELAY:50,DEFAULT_THROTTLE_DELAY:100,DEFAULT_ANIMATION_FRAME:16.67,DEFAULT_TRANSITION_DURATION:300,DEFAULT_CACHE_TTL:300,DEFAULT_SHORT_CACHE_TTL:60,DEFAULT_LONG_CACHE_TTL:3600,DEFAULT_SESSION_TIMEOUT:18e5,DEFAULT_IDLE_TIMEOUT:9e5,DEFAULT_POLL_INTERVAL:5e3,DEFAULT_HEARTBEAT_INTERVAL:3e4,DEFAULT_PORT:3e3,HTTP_PORT:80,HTTPS_PORT:443,WEBSOCKET_PORT:8080,DATABASE_PORT:5432,REDIS_PORT:6379,WEBSOCKET_CLOSE_NORMAL:1e3,WEBSOCKET_CLOSE_GOING_AWAY:1001,WEBSOCKET_CLOSE_PROTOCOL_ERROR:1002,WEBSOCKET_CLOSE_UNSUPPORTED:1003,WEBSOCKET_CLOSE_ABNORMAL:1006,WEBSOCKET_RETRY_DELAY:500,WEBSOCKET_PING_INTERVAL:3e4,WEBSOCKET_RECONNECT_DELAY:1e3,WEBSOCKET_MAX_RECONNECT_DELAY:3e4};var Be={BINARY_BASE:2,OCTAL_BASE:8,DECIMAL_BASE:10,DUODECIMAL_BASE:12,HEX_BASE:16,BASE32:32,BASE36:36,BASE58:58,BASE62:62,BASE64:64,HEX_PAD_LENGTH:2,HEX_COLOR_LENGTH:6,HEX_COLOR_ALPHA_LENGTH:8,BITS_PER_BYTE:8,BITS_PER_NIBBLE:4,BYTES_PER_KB:1024,BYTES_PER_MB:1048576,BYTES_PER_GB:1073741824,CURRENCY_DECIMAL_PLACES:2,PERCENTAGE_DECIMAL_PLACES:2,COORDINATE_DECIMAL_PLACES:6,MAX_SAFE_INTEGER:9007199254740991,MIN_SAFE_INTEGER:-9007199254740991,MAX_INT32:2147483647,MIN_INT32:-2147483648,MAX_UINT16:65535,MAX_UINT8:255,DEGREES_FULL_CIRCLE:360,DEGREES_HALF_CIRCLE:180,DEGREES_RIGHT_ANGLE:90,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,PI:3.141592653589793,TWO_PI:6.283185307179586,HALF_PI:1.5707963267948966,E:2.718281828459045,GOLDEN_RATIO:1.618033988749895,SQRT2:1.4142135623730951,SQRT3:1.7320508075688772,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518},be={PERCENTAGE_MAX:100,HALF:.5,TENTH:.1,TWENTIETH:.05,PERCENT_95:.95,PERCENT_99:.99,QUADRATIC_THRESHOLD:1.5,EXPONENTIAL_THRESHOLD:3,VARIANCE_MULTIPLIER:4,VARIANCE_OFFSET:2},Ye={ONE_AND_HALF:1.5,DOUBLE:2,TRIPLE:3,QUADRUPLE:4,QUINTUPLE:5,TEN:10},Fe={MILLISECONDS_PER_SECOND:1e3,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,NEGATIVE_ONE:-1,ZERO:0,ONE:1,TWO:2,THREE:3,FIVE:5,TEN:10};var Xe={MEMORY_LEAK_THRESHOLD:.1,DEFAULT_BENCHMARK_RUNS:100,DEFAULT_WARMUP_RUNS:10};var ve={IPV4_OCTET_MIN:1,IPV4_OCTET_MAX:255,IPV4_OCTET_COUNT:4,RANDOM_BYTE_MAX:256,DEFAULT_PROCESS_ID_MAX:1e4},We={EXCELLENT:50,GOOD:150,FAIR:400},Ve={EXCELLENT:10,GOOD:2,FAIR:.5},Ze={EXCELLENT:100,GOOD:75,FAIR:50,POOR:25,OFFLINE:0},we={FAST:15e3,MEDIUM:3e4,SLOW:6e4,VERY_SLOW:9e4,OFFLINE:5e3},Je={SHORT:300,MEDIUM:600,LONG:1800},Qe={SHORT:60,MEDIUM:300,LONG:900},ze={AGGRESSIVE:1e3,BALANCED:2e3,CONSERVATIVE:5e3},je={FEW:2,STANDARD:3,MANY:5},qe={SHORT:1e3,LONG:2e3,MAX:3e4},$e={SMALL:1.5,MEDIUM:2,LARGE:2.5},eo={HUGE:50,LARGE:25,MEDIUM:10,SMALL:5,NONE:0},oo={HUGE:100,LARGE:50,MEDIUM:25,SMALL:10,NONE:0};var no={CHART_BAR_MAX_LENGTH:40,CHART_SEPARATOR_LENGTH:60,DECIMAL_PRECISION:3},ao={LOWERCASE_A:97,ALPHABET_SIZE:26,SPACE:32};var io={x:"https://x.com/Plyaz_",instagram:"https://instagram.com/plyaz_",linkedin:"https://linkedin.com/company/plyaz"},No={docs:"https://plyaz.gitbook.io/plyaz",community:"https://community.plyaz.co.uk",support:"mailto:help@plyaz.co.uk"},so={INITIAL_POSTS_TO_SHOW:3,POSTS_INCREMENT:3,ANIMATION_DELAY:100};var Ro={FOCUS_CHECK_DELAY:100,FOCUS_TAB_COUNT:10,MIN_FOCUS_VISIBLE_TIME:200,MAX_FOCUS_WAIT_TIME:3e3,SCREEN_READER_DEBOUNCE:150,MIN_LARGE_TEXT_SIZE:18,MIN_LARGE_TEXT_BOLD_SIZE:14,MIN_NORMAL_TEXT_SIZE:14,MIN_TOUCH_TARGET_SIZE:44,MIN_INLINE_TARGET_SIZE:24,COLOR_CHANNEL_MAX:255,SRGB_THRESHOLD:.03928,SRGB_DIVISOR:12.92,SRGB_OFFSET:.055,SRGB_SCALE:1.055,SRGB_EXPONENT:2.4,LUMINANCE_RED:.2126,LUMINANCE_GREEN:.7152,LUMINANCE_BLUE:.0722,LUMINANCE_OFFSET:.05,CONTRAST_RATIO_AA:4.5,CONTRAST_RATIO_AA_LARGE:3,CONTRAST_RATIO_AAA:7,CONTRAST_RATIO_AAA_LARGE:4.5,CONTRAST_RATIO_GRAPHICS:3,PERCENTAGE_MAX:100,MAX_ESSENTIAL_ANIMATION_DURATION:5e3,REDUCED_MOTION_DURATION:1,MAX_FLASH_RATE:3,MIN_AUTO_UPDATE_INTERVAL:5,MIN_TIMEOUT_WARNING:20,DEFAULT_SESSION_TIMEOUT:20,EXTENDED_SESSION_TIMEOUT:120,MAX_BACKGROUND_AUDIO_LEVEL:-20,DEFAULT_CAPTION_OFFSET:50,MIN_CAPTION_FONT_SIZE:16,AUDIO_DESCRIPTION_DELAY:100,VALIDATION_DELAY:1e3,MAX_ERROR_MESSAGE_LENGTH:150,MIN_PASSWORD_LENGTH:8,MAX_ZOOM_WITHOUT_SCROLL:200,MIN_ZOOM_LEVEL:50,MAX_ZOOM_LEVEL:500,MAX_LINE_LENGTH:80,OPTIMAL_LINE_LENGTH:66,MIN_LINE_HEIGHT:1.5,MAX_PARAGRAPH_WIDTH:600},Oo={BANNER:"banner",COMPLEMENTARY:"complementary",CONTENTINFO:"contentinfo",FORM:"form",MAIN:"main",NAVIGATION:"navigation",REGION:"region",SEARCH:"search",APPLICATION:"application",ARTICLE:"article",CELL:"cell",COLUMNHEADER:"columnheader",DEFINITION:"definition",DIRECTORY:"directory",DOCUMENT:"document",FEED:"feed",FIGURE:"figure",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTITEM:"listitem",MATH:"math",NOTE:"note",PRESENTATION:"presentation",ROW:"row",ROWGROUP:"rowgroup",ROWHEADER:"rowheader",SEPARATOR:"separator",TABLE:"table",TERM:"term",ALERT:"alert",ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GRIDCELL:"gridcell",LINK:"link",LISTBOX:"listbox",LOG:"log",MARQUEE:"marquee",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",OPTION:"option",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",SCROLLBAR:"scrollbar",SEARCHBOX:"searchbox",SLIDER:"slider",SPINBUTTON:"spinbutton",STATUS:"status",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TABPANEL:"tabpanel",TEXTBOX:"textbox",TIMER:"timer",TOOLBAR:"toolbar",TOOLTIP:"tooltip",TREE:"tree",TREEGRID:"treegrid",TREEITEM:"treeitem",COMMAND:"command",COMPOSITE:"composite",INPUT:"input",LANDMARK:"landmark",RANGE:"range",ROLETYPE:"roletype",SECTION:"section",SECTIONHEAD:"sectionhead",SELECT:"select",STRUCTURE:"structure",WIDGET:"widget",WINDOW:"window"},Io={ARIA_AUTOCOMPLETE:"aria-autocomplete",ARIA_CHECKED:"aria-checked",ARIA_DISABLED:"aria-disabled",ARIA_ERRORMESSAGE:"aria-errormessage",ARIA_EXPANDED:"aria-expanded",ARIA_HASPOPUP:"aria-haspopup",ARIA_HIDDEN:"aria-hidden",ARIA_INVALID:"aria-invalid",ARIA_LABEL:"aria-label",ARIA_LEVEL:"aria-level",ARIA_MODAL:"aria-modal",ARIA_MULTILINE:"aria-multiline",ARIA_MULTISELECTABLE:"aria-multiselectable",ARIA_ORIENTATION:"aria-orientation",ARIA_PLACEHOLDER:"aria-placeholder",ARIA_PRESSED:"aria-pressed",ARIA_READONLY:"aria-readonly",ARIA_REQUIRED:"aria-required",ARIA_SELECTED:"aria-selected",ARIA_SORT:"aria-sort",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",ARIA_VALUETEXT:"aria-valuetext",ARIA_LIVE:"aria-live",ARIA_ATOMIC:"aria-atomic",ARIA_RELEVANT:"aria-relevant",ARIA_BUSY:"aria-busy",ARIA_DROPEFFECT:"aria-dropeffect",ARIA_GRABBED:"aria-grabbed",ARIA_ACTIVEDESCENDANT:"aria-activedescendant",ARIA_COLCOUNT:"aria-colcount",ARIA_COLINDEX:"aria-colindex",ARIA_COLSPAN:"aria-colspan",ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_DETAILS:"aria-details",ARIA_FLOWTO:"aria-flowto",ARIA_LABELLEDBY:"aria-labelledby",ARIA_OWNS:"aria-owns",ARIA_POSINSET:"aria-posinset",ARIA_ROWCOUNT:"aria-rowcount",ARIA_ROWINDEX:"aria-rowindex",ARIA_ROWSPAN:"aria-rowspan",ARIA_SETSIZE:"aria-setsize",ARIA_CURRENT:"aria-current",ARIA_DESCRIPTION:"aria-description",ARIA_KEYSHORTCUTS:"aria-keyshortcuts",ARIA_ROLEDESCRIPTION:"aria-roledescription"},co={TAB:"Tab",ENTER:"Enter",SPACE:" ",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",TAB_KEYCODE:9,ENTER_KEYCODE:13,ESCAPE_KEYCODE:27,SPACE_KEYCODE:32,ARROW_LEFT_KEYCODE:37,ARROW_UP_KEYCODE:38,ARROW_RIGHT_KEYCODE:39,ARROW_DOWN_KEYCODE:40},Co={POLITE:"polite",ASSERTIVE:"assertive",OFF:"off"},lo={INITIAL_FOCUS:"[data-focus-initial], [autofocus]",FOCUSABLE_ELEMENTS:'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',INTERACTIVE_ELEMENTS:'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',SKIP_LINK:"[data-skip-link], .skip-link"};var Do={ISO_COUNTRY_CODE_LENGTH:2,ISO_COUNTRY_CODE_ALPHA3_LENGTH:3,ISO_LANGUAGE_CODE_LENGTH:2,ISO_LANGUAGE_CODE_ALPHA3_LENGTH:3,ISO_CURRENCY_CODE_LENGTH:3,ISO_DATE_LENGTH:10,ISO_DATETIME_LENGTH:24,ISO_TIME_LENGTH:8,ISO_WEEK_DATE_LENGTH:8,BCP47_MIN_LENGTH:2,BCP47_WITH_REGION_LENGTH:5,RFC5646_MAX_LENGTH:35,ISO_NUMERIC_COUNTRY_CODE_LENGTH:3,ISO_639_3_LENGTH:3};var yo={LOCALE_SEPARATOR:"-",BCP47_SEPARATOR:"-",CURRENCY_DECIMALS:2,CURRENCY_SYMBOL_BEFORE:true,THOUSANDS_SEPARATOR:",",DECIMAL_SEPARATOR:".",MAX_LOCALE_LENGTH:35,MIN_LOCALE_LENGTH:2,PERCENTAGE_DECIMALS:2,DEFAULT_FRACTION_DIGITS:2,MAX_FRACTION_DIGITS:20},Mo={ISO_DATE:"YYYY-MM-DD",ISO_DATETIME:"YYYY-MM-DDTHH:mm:ss.sssZ",ISO_TIME:"HH:mm:ss",US_DATE:"MM/DD/YYYY",EU_DATE:"DD/MM/YYYY",UK_DATE:"DD/MM/YYYY",JP_DATE:"YYYY/MM/DD",SHORT_DATE:"MMM DD",LONG_DATE:"MMMM DD, YYYY",FULL_DATE:"dddd, MMMM DD, YYYY",TIME_12H:"hh:mm A",TIME_24H:"HH:mm",TIME_12H_SECONDS:"hh:mm:ss A",TIME_24H_SECONDS:"HH:mm:ss",RELATIVE_TIME_THRESHOLD:86400,MONTH_YEAR:"MMMM YYYY",SHORT_MONTH_YEAR:"MMM YYYY",YEAR_ONLY:"YYYY"},Uo={LTR:"ltr",RTL:"rtl",AUTO:"auto"};var Ho={INTERNATIONAL_PREFIX:"+",IDD_PREFIX:"00",US_COUNTRY_CODE:"1",UK_COUNTRY_CODE:"44",DE_COUNTRY_CODE:"49",FR_COUNTRY_CODE:"33",JP_COUNTRY_CODE:"81",CN_COUNTRY_CODE:"86",IN_COUNTRY_CODE:"91",BR_COUNTRY_CODE:"55",US_PHONE_LENGTH:10,UK_PHONE_LENGTH:10,MIN_PHONE_LENGTH:7,MAX_PHONE_LENGTH:15,E164_MAX_LENGTH:16,E164_MIN_LENGTH:8,US_AREA_CODE_LENGTH:3,US_EXCHANGE_CODE_LENGTH:3,US_LINE_NUMBER_LENGTH:4,MAX_EXTENSION_LENGTH:6,MAX_COUNTRY_CODE_LENGTH:3,MAX_NATIONAL_NUMBER_LENGTH:15},fo={US_FORMAT:"(XXX) XXX-XXXX",UK_FORMAT:"XXXX XXX XXXX",INTERNATIONAL_FORMAT:"+X XXX XXX XXXX",E164_FORMAT:"+XXXXXXXXXXXX",EXTENSION_FORMAT:"ext. XXXX"};var mo={US_ZIP_LENGTH:5,US_ZIP_PLUS4_LENGTH:9,US_ZIP_SEPARATOR:"-",CA_POSTAL_CODE_LENGTH:6,UK_POSTCODE_MIN_LENGTH:5,UK_POSTCODE_MAX_LENGTH:8,DE_POSTAL_CODE_LENGTH:5,FR_POSTAL_CODE_LENGTH:5,JP_POSTAL_CODE_LENGTH:7,AU_POSTAL_CODE_LENGTH:4,BR_CEP_LENGTH:8,STATE_CODE_LENGTH:2,STATE_NAME_MAX_LENGTH:50,MAX_ADDRESS_LINE_LENGTH:100,MIN_ADDRESS_LINE_LENGTH:3,MAX_CITY_LENGTH:50,MIN_CITY_LENGTH:2,MAX_COUNTRY_LENGTH:56,MAX_BUILDING_NUMBER_LENGTH:10,MAX_UNIT_NUMBER_LENGTH:10,MAX_PO_BOX_LENGTH:10,MAX_ADDRESS_LINES:3},Bo={ADDRESS_LINE_1:"addressLine1",ADDRESS_LINE_2:"addressLine2",CITY:"city",STATE:"state",POSTAL_CODE:"postalCode",COUNTRY:"country",BUILDING_NUMBER:"buildingNumber",UNIT_NUMBER:"unitNumber",PO_BOX:"poBox",DISTRICT:"district",COUNTY:"county"};var Yo={USD:"USD",EUR:"EUR",GBP:"GBP",JPY:"JPY",CHF:"CHF",CAD:"CAD",AUD:"AUD",CNY:"CNY",INR:"INR",KRW:"KRW",SGD:"SGD",HKD:"HKD",TWD:"TWD",THB:"THB",IDR:"IDR",MYR:"MYR",PHP:"PHP",VND:"VND",BDT:"BDT",PKR:"PKR",LKR:"LKR",SEK:"SEK",NOK:"NOK",DKK:"DKK",PLN:"PLN",CZK:"CZK",HUF:"HUF",RON:"RON",BGN:"BGN",HRK:"HRK",RSD:"RSD",ISK:"ISK",BRL:"BRL",MXN:"MXN",ARS:"ARS",CLP:"CLP",COP:"COP",PEN:"PEN",UYU:"UYU",VES:"VES",BOB:"BOB",PYG:"PYG",CRC:"CRC",GTQ:"GTQ",HNL:"HNL",NIO:"NIO",PAB:"PAB",DOP:"DOP",JMD:"JMD",TTD:"TTD",BBD:"BBD",AED:"AED",SAR:"SAR",QAR:"QAR",KWD:"KWD",BHD:"BHD",OMR:"OMR",JOD:"JOD",ILS:"ILS",TRY:"TRY",IQD:"IQD",IRR:"IRR",LBP:"LBP",SYP:"SYP",ZAR:"ZAR",NGN:"NGN",EGP:"EGP",KES:"KES",GHS:"GHS",MAD:"MAD",TND:"TND",DZD:"DZD",ETB:"ETB",TZS:"TZS",UGX:"UGX",ZMW:"ZMW",BWP:"BWP",MUR:"MUR",NZD:"NZD",FJD:"FJD",PGK:"PGK",RUB:"RUB",UAH:"UAH",BYN:"BYN",KZT:"KZT",UZS:"UZS",AZN:"AZN",GEL:"GEL",AMD:"AMD",BTC:"BTC",ETH:"ETH",USDT:"USDT",USDC:"USDC"},Fo={NO_DECIMAL_CURRENCIES:["JPY","KRW","VND","IDR","CLP","ISK","TWD"],THREE_DECIMAL_CURRENCIES:["BHD","IQD","JOD","KWD","OMR","TND"],RESERVE_CURRENCIES:["USD","EUR","GBP","JPY","CNY"],G7_CURRENCIES:["USD","EUR","GBP","JPY","CAD"],DEFAULT_DECIMAL_PLACES:2};var Ko={US:"US",CA:"CA",MX:"MX",BR:"BR",AR:"AR",CL:"CL",CO:"CO",PE:"PE",VE:"VE",EC:"EC",BO:"BO",PY:"PY",UY:"UY",GY:"GY",SR:"SR",GF:"GF",FK:"FK",CU:"CU",DO:"DO",HT:"HT",JM:"JM",TT:"TT",BB:"BB",BS:"BS",PR:"PR",GT:"GT",HN:"HN",SV:"SV",NI:"NI",CR:"CR",PA:"PA",BZ:"BZ",GB:"GB",FR:"FR",DE:"DE",IT:"IT",ES:"ES",PT:"PT",NL:"NL",BE:"BE",LU:"LU",CH:"CH",AT:"AT",IE:"IE",DK:"DK",SE:"SE",NO:"NO",FI:"FI",IS:"IS",PL:"PL",CZ:"CZ",SK:"SK",HU:"HU",RO:"RO",BG:"BG",GR:"GR",HR:"HR",SI:"SI",RS:"RS",BA:"BA",ME:"ME",MK:"MK",AL:"AL",XK:"XK",EE:"EE",LV:"LV",LT:"LT",BY:"BY",UA:"UA",MD:"MD",RU:"RU",CY:"CY",MT:"MT",AD:"AD",MC:"MC",SM:"SM",VA:"VA",LI:"LI",CN:"CN",JP:"JP",KR:"KR",KP:"KP",TW:"TW",HK:"HK",MO:"MO",IN:"IN",PK:"PK",BD:"BD",LK:"LK",NP:"NP",BT:"BT",MV:"MV",AF:"AF",TH:"TH",VN:"VN",MY:"MY",SG:"SG",ID:"ID",PH:"PH",BN:"BN",KH:"KH",LA:"LA",MM:"MM",TL:"TL",MN:"MN",KZ:"KZ",UZ:"UZ",TJ:"TJ",KG:"KG",TM:"TM",AZ:"AZ",GE:"GE",AM:"AM",SA:"SA",AE:"AE",QA:"QA",KW:"KW",BH:"BH",OM:"OM",YE:"YE",JO:"JO",LB:"LB",SY:"SY",IQ:"IQ",IR:"IR",IL:"IL",PS:"PS",TR:"TR",EG:"EG",LY:"LY",TN:"TN",DZ:"DZ",MA:"MA",EH:"EH",MR:"MR",ML:"ML",NE:"NE",TD:"TD",SD:"SD",SS:"SS",ER:"ER",DJ:"DJ",SO:"SO",ET:"ET",KE:"KE",UG:"UG",RW:"RW",BI:"BI",TZ:"TZ",MZ:"MZ",MW:"MW",ZM:"ZM",ZW:"ZW",BW:"BW",NA:"NA",ZA:"ZA",LS:"LS",SZ:"SZ",AO:"AO",CD:"CD",CG:"CG",GA:"GA",GQ:"GQ",CM:"CM",CF:"CF",NG:"NG",BJ:"BJ",TG:"TG",GH:"GH",BF:"BF",CI:"CI",LR:"LR",SL:"SL",GN:"GN",GW:"GW",SN:"SN",GM:"GM",CV:"CV",ST:"ST",MG:"MG",MU:"MU",SC:"SC",KM:"KM",RE:"RE",AU:"AU",NZ:"NZ",PG:"PG",FJ:"FJ",SB:"SB",VU:"VU",NC:"NC",PF:"PF",WS:"WS",TO:"TO",TV:"TV",NR:"NR",KI:"KI",PW:"PW",MH:"MH",FM:"FM",GU:"GU",MP:"MP",AS:"AS",CK:"CK",NU:"NU",TK:"TK",WF:"WF",PN:"PN",AQ:"AQ"},ho={"+1":["US","CA"],"+20":["EG"],"+27":["ZA"],"+30":["GR"],"+31":["NL"],"+32":["BE"],"+33":["FR"],"+34":["ES"],"+36":["HU"],"+39":["IT"],"+40":["RO"],"+41":["CH"],"+43":["AT"],"+44":["GB"],"+45":["DK"],"+46":["SE"],"+47":["NO"],"+48":["PL"],"+49":["DE"],"+51":["PE"],"+52":["MX"],"+53":["CU"],"+54":["AR"],"+55":["BR"],"+56":["CL"],"+57":["CO"],"+58":["VE"],"+60":["MY"],"+61":["AU"],"+62":["ID"],"+63":["PH"],"+64":["NZ"],"+65":["SG"],"+66":["TH"],"+7":["RU","KZ"],"+81":["JP"],"+82":["KR"],"+84":["VN"],"+86":["CN"],"+90":["TR"],"+91":["IN"],"+92":["PK"],"+93":["AF"],"+94":["LK"],"+95":["MM"],"+98":["IR"],"+212":["MA"],"+213":["DZ"],"+216":["TN"],"+218":["LY"],"+220":["GM"],"+221":["SN"],"+223":["ML"],"+224":["GN"],"+225":["CI"],"+226":["BF"],"+227":["NE"],"+228":["TG"],"+229":["BJ"],"+230":["MU"],"+231":["LR"],"+232":["SL"],"+233":["GH"],"+234":["NG"],"+235":["TD"],"+236":["CF"],"+237":["CM"],"+238":["CV"],"+239":["ST"],"+240":["GQ"],"+241":["GA"],"+242":["CG"],"+243":["CD"],"+244":["AO"],"+245":["GW"],"+254":["KE"],"+255":["TZ"],"+256":["UG"],"+257":["BI"],"+258":["MZ"],"+260":["ZM"],"+261":["MG"],"+263":["ZW"],"+264":["NA"],"+265":["MW"],"+266":["LS"],"+267":["BW"],"+268":["SZ"],"+248":["SC"],"+250":["RW"],"+251":["ET"],"+252":["SO"],"+253":["DJ"],"+852":["HK"],"+853":["MO"],"+880":["BD"],"+886":["TW"],"+960":["MV"],"+961":["LB"],"+962":["JO"],"+963":["SY"],"+964":["IQ"],"+965":["KW"],"+966":["SA"],"+967":["YE"],"+968":["OM"],"+970":["PS"],"+971":["AE"],"+972":["IL"],"+973":["BH"],"+974":["QA"],"+975":["BT"],"+976":["MN"],"+977":["NP"],"+992":["TJ"],"+993":["TM"],"+994":["AZ"],"+995":["GE"],"+996":["KG"],"+998":["UZ"]},Xo={EU:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],NORTH_AMERICA:["US","CA","MX"],SOUTH_AMERICA:["AR","BO","BR","CL","CO","EC","GF","GY","PY","PE","SR","UY","VE"],G7:["US","CA","GB","FR","DE","IT","JP"],G20:["AR","AU","BR","CA","CN","FR","DE","IN","ID","IT","JP","KR","MX","RU","SA","ZA","TR","GB","US"],ASEAN:["BN","KH","ID","LA","MY","MM","PH","SG","TH","VN"],BRICS:["BR","RU","IN","CN","ZA"],OECD:["AU","AT","BE","CA","CL","CO","CR","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IL","IT","JP","KR","LV","LT","LU","MX","NL","NZ","NO","PL","PT","SK","SI","ES","SE","CH","TR","GB","US"],COMMONWEALTH:["AG","AU","BS","BD","BB","BZ","BW","BN","CM","CA","CY","DM","FJ","GM","GH","GD","GY","IN","JM","KE","KI","LS","MW","MY","MV","MT","MU","MZ","NA","NR","NZ","NG","PK","PG","RW","KN","LC","VC","WS","SC","SL","SG","SB","ZA","LK","SZ","TZ","TO","TT","TV","UG","GB","VU","ZM"]},ko={DE:{region:"eu"},FR:{region:"eu"},IT:{region:"eu"},ES:{region:"eu"},NL:{region:"eu"},BE:{region:"eu"},AT:{region:"eu"},SE:{region:"eu"},DK:{region:"eu"},FI:{region:"eu"},NO:{region:"eu"},PL:{region:"eu"},CZ:{region:"eu"},HU:{region:"eu"},SK:{region:"eu"},SI:{region:"eu"},HR:{region:"eu"},BG:{region:"eu"},RO:{region:"eu"},GR:{region:"eu"},PT:{region:"eu"},IE:{region:"eu"},LU:{region:"eu"},MT:{region:"eu"},CY:{region:"eu"},EE:{region:"eu"},LV:{region:"eu"},LT:{region:"eu"},GB:{region:"eu"},IS:{region:"eu"},LI:{region:"eu"},CH:{region:"eu"},US:{region:"us"},CA:{region:"ca"},CN:{region:"cn"},HK:{region:"cn"},MO:{region:"cn"},JP:{region:"jp"},KR:{region:"global"},TW:{region:"global"},SG:{region:"global"},MY:{region:"global"},TH:{region:"global"},IN:{region:"global"},ID:{region:"global"},PH:{region:"global"},VN:{region:"global"},AU:{region:"global"},NZ:{region:"global"},MX:{region:"global"},BR:{region:"global"},AR:{region:"global"},CL:{region:"global"},CO:{region:"global"},AE:{region:"global"},SA:{region:"global"},IL:{region:"global"},TR:{region:"global"},ZA:{region:"global"},EG:{region:"global"},NG:{region:"global"},KE:{region:"global"},RU:{region:"global"}};var Wo={AMERICAS:["en-US","es-MX","pt-BR","en-CA","fr-CA"],EUROPE:["en-GB","de-DE","fr-FR","it-IT","es-ES","nl-NL"],ASIA_PACIFIC:["zh-CN","ja-JP","ko-KR","hi-IN","en-AU"],MIDDLE_EAST_AFRICA:["ar-SA","he-IL","tr-TR","en-ZA"]},Vo={de:{region:"eu",country:"DE"},"de-de":{region:"eu",country:"DE"},"de-at":{region:"eu",country:"AT"},"de-ch":{region:"eu",country:"CH"},"it-ch":{region:"eu",country:"CH"},"fr-ch":{region:"eu",country:"CH"},fr:{region:"eu",country:"FR"},"fr-fr":{region:"eu",country:"FR"},"fr-be":{region:"eu",country:"BE"},es:{region:"eu",country:"ES"},"es-es":{region:"eu",country:"ES"},it:{region:"eu",country:"IT"},"it-it":{region:"eu",country:"IT"},nl:{region:"eu",country:"NL"},"nl-nl":{region:"eu",country:"NL"},"nl-be":{region:"eu",country:"BE"},pl:{region:"eu",country:"PL"},"pl-pl":{region:"eu",country:"PL"},pt:{region:"eu",country:"PT"},"pt-pt":{region:"eu",country:"PT"},sv:{region:"eu",country:"SE"},"sv-se":{region:"eu",country:"SE"},"sv-fi":{region:"eu",country:"FI"},da:{region:"eu",country:"DK"},"da-dk":{region:"eu",country:"DK"},fi:{region:"eu",country:"FI"},"fi-fi":{region:"eu",country:"FI"},"en-gb":{region:"eu",country:"GB"},"en-ie":{region:"eu",country:"IE"},"en-us":{region:"us",country:"US"},en:{region:"global",country:void 0},zh:{region:"cn",country:"CN"},"zh-cn":{region:"cn",country:"CN"},"zh-hans":{region:"cn",country:"CN"},"zh-hk":{region:"cn",country:"HK"},"zh-tw":{region:"global",country:"TW"},ja:{region:"jp",country:"JP"},"ja-jp":{region:"jp",country:"JP"},"en-ca":{region:"ca",country:"CA"},"fr-ca":{region:"ca",country:"CA"},"en-au":{region:"global",country:"AU"},"en-nz":{region:"global",country:"NZ"},ko:{region:"global",country:"KR"},"ko-kr":{region:"global",country:"KR"},"pt-br":{region:"global",country:"BR"},"es-mx":{region:"global",country:"MX"},"es-ar":{region:"global",country:"AR"},"es-cl":{region:"global",country:"CL"},"es-co":{region:"global",country:"CO"},"es-pe":{region:"global",country:"PE"},"es-VE":{region:"global",country:"VE"},"es-EC":{region:"global",country:"EC"},"es-UY":{region:"global",country:"UY"},"es-PY":{region:"global",country:"PY"},"es-BO":{region:"global",country:"BO"},"es-DO":{region:"global",country:"DO"},"es-GT":{region:"global",country:"GT"},"es-HN":{region:"global",country:"HN"},"es-NI":{region:"global",country:"NI"},"es-PA":{region:"global",country:"PA"},"es-CR":{region:"global",country:"CR"},"es-SV":{region:"global",country:"SV"},"zh-SG":{region:"global",country:"SG"},"en-SG":{region:"global",country:"SG"},"en-IN":{region:"global",country:"IN"},"hi-IN":{region:"global",country:"IN"},"en-PH":{region:"global",country:"PH"},"tl-PH":{region:"global",country:"PH"},"id-ID":{region:"global",country:"ID"},"ms-MY":{region:"global",country:"MY"},"en-MY":{region:"global",country:"MY"},"th-TH":{region:"global",country:"TH"},"vi-VN":{region:"global",country:"VN"},"ar-SA":{region:"global",country:"SA"},"ar-AE":{region:"global",country:"AE"},"ar-EG":{region:"global",country:"EG"},"ar-DZ":{region:"global",country:"DZ"},"ar-MA":{region:"global",country:"MA"},"he-IL":{region:"global",country:"IL"},"tr-TR":{region:"global",country:"TR"},"en-ZA":{region:"global",country:"ZA"},"af-ZA":{region:"global",country:"ZA"},"en-NG":{region:"global",country:"NG"},"en-KE":{region:"global",country:"KE"},"sw-KE":{region:"global",country:"KE"},"ru-RU":{region:"global",country:"RU"},"uk-UA":{region:"eu",country:"UA"},"be-BY":{region:"global",country:"BY"},"kk-KZ":{region:"global",country:"KZ"}};var wo={"Europe/London":{region:"eu",country:"GB"},"Europe/Berlin":{region:"eu",country:"DE"},"Europe/Paris":{region:"eu",country:"FR"},"Europe/Rome":{region:"eu",country:"IT"},"Europe/Madrid":{region:"eu",country:"ES"},"Europe/Amsterdam":{region:"eu",country:"NL"},"Europe/Stockholm":{region:"eu",country:"SE"},"Europe/Helsinki":{region:"eu",country:"FI"},"Europe/Vienna":{region:"eu",country:"AT"},"Europe/Brussels":{region:"eu",country:"BE"},"Europe/Dublin":{region:"eu",country:"IE"},"Europe/Copenhagen":{region:"eu",country:"DK"},"Europe/Warsaw":{region:"eu",country:"PL"},"Europe/Prague":{region:"eu",country:"CZ"},"Europe/Budapest":{region:"eu",country:"HU"},"Europe/Bucharest":{region:"eu",country:"RO"},"Europe/Athens":{region:"eu",country:"GR"},"Europe/Lisbon":{region:"eu",country:"PT"},"Europe/Zagreb":{region:"eu",country:"HR"},"Europe/Ljubljana":{region:"eu",country:"SI"},"Europe/Bratislava":{region:"eu",country:"SK"},"Europe/Sofia":{region:"eu",country:"BG"},"Europe/Tallinn":{region:"eu",country:"EE"},"Europe/Riga":{region:"eu",country:"LV"},"Europe/Vilnius":{region:"eu",country:"LT"},"Europe/Luxembourg":{region:"eu",country:"LU"},"Europe/Malta":{region:"eu",country:"MT"},"Europe/Oslo":{region:"eu",country:"NO"},"Europe/Zurich":{region:"eu",country:"CH"},"Europe/Reykjavik":{region:"eu",country:"IS"},"Europe/Kiev":{region:"eu",country:"UA"},"Europe/Minsk":{region:"global",country:"BY"},"Europe/Moscow":{region:"global",country:"RU"},"America/Los_Angeles":{region:"us",country:"US",state:"ca"},"America/San_Francisco":{region:"us",country:"US",state:"ca"},"America/New_York":{region:"us",country:"US",state:"ny"},"America/Chicago":{region:"us",country:"US",state:"il"},"America/Denver":{region:"us",country:"US",state:"co"},"America/Phoenix":{region:"us",country:"US",state:"az"},"America/Detroit":{region:"us",country:"US",state:"mi"},"America/Atlanta":{region:"us",country:"US",state:"ga"},"America/Miami":{region:"us",country:"US",state:"fl"},"America/Dallas":{region:"us",country:"US",state:"tx"},"America/Houston":{region:"us",country:"US",state:"tx"},"America/Seattle":{region:"us",country:"US",state:"wa"},"America/Boston":{region:"us",country:"US",state:"ma"},"America/Philadelphia":{region:"us",country:"US",state:"pa"},"Asia/Shanghai":{region:"cn",country:"CN"},"Asia/Beijing":{region:"cn",country:"CN"},"Asia/Hong_Kong":{region:"cn",country:"HK"},"Asia/Macau":{region:"cn",country:"MO"},"Asia/Chongqing":{region:"cn",country:"CN"},"Asia/Urumqi":{region:"cn",country:"CN"},"Asia/Tokyo":{region:"jp",country:"JP"},"Asia/Osaka":{region:"jp",country:"JP"},"Asia/Bangkok":{region:"global",country:"TH"},"Asia/Jakarta":{region:"global",country:"ID"},"Asia/Manila":{region:"global",country:"PH"},"Asia/Kuala_Lumpur":{region:"global",country:"MY"},"Asia/Ho_Chi_Minh":{region:"global",country:"VN"},"Asia/Taipei":{region:"global",country:"TW"},"Asia/Kolkata":{region:"global",country:"IN"},"Asia/Delhi":{region:"global",country:"IN"},"Asia/Karachi":{region:"global",country:"PK"},"Asia/Dhaka":{region:"global",country:"BD"},"Asia/Colombo":{region:"global",country:"LK"},"Asia/Kathmandu":{region:"global",country:"NP"},"Pacific/Fiji":{region:"global",country:"FJ"},"Pacific/Guam":{region:"us",country:"GU"},"Pacific/Honolulu":{region:"us",country:"US",state:"hi"},"America/Toronto":{region:"us",country:"CA"},"America/Vancouver":{region:"us",country:"CA"},"America/Montreal":{region:"us",country:"CA"},"America/Edmonton":{region:"us",country:"CA"},"America/Winnipeg":{region:"us",country:"CA"},"America/Halifax":{region:"us",country:"CA"},"Australia/Sydney":{region:"global",country:"AU"},"Australia/Melbourne":{region:"global",country:"AU"},"Australia/Brisbane":{region:"global",country:"AU"},"Australia/Perth":{region:"global",country:"AU"},"Australia/Adelaide":{region:"global",country:"AU"},"Australia/Darwin":{region:"global",country:"AU"},"Australia/Hobart":{region:"global",country:"AU"},"Pacific/Auckland":{region:"global",country:"NZ"},"Pacific/Wellington":{region:"global",country:"NZ"},"Pacific/Christchurch":{region:"global",country:"NZ"},"Asia/Singapore":{region:"global",country:"SG"},"Asia/Seoul":{region:"global",country:"KR"},"Asia/Mumbai":{region:"global",country:"IN"},"Asia/Dubai":{region:"global",country:"AE"},"Asia/Riyadh":{region:"global",country:"SA"},"Asia/Jerusalem":{region:"global",country:"IL"},"Asia/Tel_Aviv":{region:"global",country:"IL"},"Asia/Istanbul":{region:"global",country:"TR"},"Asia/Tehran":{region:"global",country:"IR"},"Asia/Baghdad":{region:"global",country:"IQ"},"Asia/Kuwait":{region:"global",country:"KW"},"Asia/Doha":{region:"global",country:"QA"},"Asia/Muscat":{region:"global",country:"OM"},"Asia/Amman":{region:"global",country:"JO"},"Asia/Beirut":{region:"global",country:"LB"},"Asia/Damascus":{region:"global",country:"SY"},"America/Sao_Paulo":{region:"global",country:"BR"},"America/Rio_de_Janeiro":{region:"global",country:"BR"},"America/Brasilia":{region:"global",country:"BR"},"America/Mexico_City":{region:"global",country:"MX"},"America/Tijuana":{region:"global",country:"MX"},"America/Monterrey":{region:"global",country:"MX"},"America/Buenos_Aires":{region:"global",country:"AR"},"America/Santiago":{region:"global",country:"CL"},"America/Bogota":{region:"global",country:"CO"},"America/Lima":{region:"global",country:"PE"},"America/Caracas":{region:"global",country:"VE"},"America/La_Paz":{region:"global",country:"BO"},"America/Guayaquil":{region:"global",country:"EC"},"America/Montevideo":{region:"global",country:"UY"},"America/Asuncion":{region:"global",country:"PY"},"America/Santo_Domingo":{region:"global",country:"DO"},"America/Havana":{region:"global",country:"CU"},"America/Panama":{region:"global",country:"PA"},"America/Guatemala":{region:"global",country:"GT"},"America/Costa_Rica":{region:"global",country:"CR"},"America/San_Salvador":{region:"global",country:"SV"},"America/Tegucigalpa":{region:"global",country:"HN"},"America/Managua":{region:"global",country:"NI"},"America/Jamaica":{region:"global",country:"JM"},"America/Port-au-Prince":{region:"global",country:"HT"},"Africa/Johannesburg":{region:"global",country:"ZA"},"Africa/Cairo":{region:"global",country:"EG"},"Africa/Lagos":{region:"global",country:"NG"},"Africa/Nairobi":{region:"global",country:"KE"},"Africa/Casablanca":{region:"global",country:"MA"},"Africa/Algiers":{region:"global",country:"DZ"},"Africa/Tunis":{region:"global",country:"TN"},"Africa/Addis_Ababa":{region:"global",country:"ET"},"Africa/Dar_es_Salaam":{region:"global",country:"TZ"},"Africa/Kinshasa":{region:"global",country:"CD"},"Africa/Luanda":{region:"global",country:"AO"},"Africa/Kampala":{region:"global",country:"UG"},"Africa/Harare":{region:"global",country:"ZW"},"Africa/Accra":{region:"global",country:"GH"},"Africa/Dakar":{region:"global",country:"SN"},"Africa/Abidjan":{region:"global",country:"CI"},"Europe/":{region:"eu"},"America/":{region:"us"},"Asia/":{region:"asia"},"Africa/":{region:"global"},"Pacific/":{region:"global"}};var a={validation_error:{status:400,message:"errors.validation.error"},unauthorized:{status:401,message:"errors.auth.unauthorized"},payment_failed:{status:402,message:"errors.payment.failed"},forbidden:{status:403,message:"errors.auth.forbidden"},not_found:{status:404,message:"errors.common.notFound"},method_not_allowed:{status:405,message:"errors.common.methodNotAllowed"},user_already_exists:{status:409,message:"errors.user.alreadyExists"},unprocessable_entity:{status:422,message:"errors.validation.unprocessable"},too_many_requests:{status:429,message:"errors.rateLimit.tooManyRequests"},internal_server_error:{status:500,message:"errors.server.internal"},not_implemented:{status:501,message:"errors.server.notImplemented"},bad_gateway:{status:502,message:"errors.server.badGateway"},service_unavailable:{status:503,message:"errors.server.serviceUnavailable"},gateway_timeout:{status:504,message:"errors.server.gatewayTimeout"}},Er={InvalidInput:{type:"form",message:"Invalid input",timestamp:new Date().toISOString()},[a.internal_server_error.status]:{type:"server",message:"Something went wrong",timestamp:new Date().toISOString()},[a.unauthorized.status]:{type:"auth",message:"Please log in again",timestamp:new Date().toISOString()}};var Tr={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},_r=["email","password","wallet","token","secret","ssn"],ir=[{target:"pino-pretty",options:{colorize:true}}];var Or={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:false,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"minimal",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},Ir={timeout:e.THIRTY_SECONDS,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:false},enrichedHeaders:{enabled:true,preset:"standard",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,respectDoNotTrack:true,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:true,adaptConfig:true,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"batch",eventStrategy:"queued",telemetry:true},retryStrategy:"aggressive",encryption:{enabled:true,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}},cr={timeout:e.TWO_MINUTES,unifiedStrategy:"interactive",revalidationStrategy:"balanced",strategy:"softFail",headers:{presets:["json"],autoDetectNetwork:true,requestClientHints:true},enrichedHeaders:{enabled:true,preset:"full",includeDevice:true,includeNetwork:true,includePlatform:true,includeCompliance:true,includePerformance:true,respectDoNotTrack:false,autoDetectRegion:true,regionalPreset:"global",useTimezone:true},networkAware:{enabled:false,adaptConfig:false,requestClientHints:false},tracking:{enabled:true,operations:true,events:true,performanceMode:"full",queueStrategy:"immediate",eventStrategy:"immediate",telemetry:false},retryStrategy:"conservative",encryption:{enabled:false,algorithm:"AES-GCM",autoDecrypt:true,target:["all"],key:void 0,fields:["*.email","*.ssn","*.taxId","*.nationalId","*.passport","*.driverLicense","*.governmentId","*.phone","*.phoneNumber","*.mobile","*.telephone","*.address.street","*.address.line1","*.address.line2","*.postalCode","*.zipCode","*.cardNumber","*.creditCard","*.debitCard","*.cvv","*.cvc","*.iban","*.accountNumber","*.routingNumber","*.swiftCode","*.sortCode","*.password","*.apiKey","*.secret","*.token","*.accessToken","*.refreshToken","*.privateKey","*.secretKey","*.wallet","*.walletAddress","*.mnemonic","*.seedPhrase","*.privateKeyHex","*.medicalRecord","*.medicalRecordNumber","*.healthInfo","*.diagnosis","*.prescription","*.healthInsurance","*.fingerprint","*.faceId","*.biometric","*.birthDate","*.dateOfBirth","*.dob","*.ipAddress","*.ip"]}};var Lr={baseURL:"",timeout:e.THIRTY_SECONDS,retry:{attempts:3,delay:e.SECOND,maxDelay:e.THIRTY_SECONDS,backoff:1.5},cache:{ttl:60,stale:300},headers:{"Content-Type":"application/json",Accept:"application/json"},strategy:"softFail"},ur={enrichedHeaders:{enabled:true,preset:"standard"}};var Mr={SUPABASE_URL:globalThis.process.env.NEXT_PUBLIC_SUPABASE_URL??"",SUPABASE_ANON_KEY:globalThis.process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY??""},Ur=globalThis.process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY??"";
|
|
6
|
+
exports.A11Y_CONSTANTS=Ro;exports.ADDRESS_FIELDS=Bo;exports.ADDRESS_FORMATS=mo;exports.ALCHEMY_CONFIG=N;exports.ANNOUNCEMENT_PRIORITY=Co;exports.ARIA_ATTRIBUTES=Io;exports.ARIA_ROLES=Oo;exports.BASE_ERRORS_RESPONSE=Er;exports.BATCH_SIZES=eo;exports.BLOG=so;exports.CACHE_CLEANUP_INTERVAL_DEFAULT=B;exports.CACHE_EVICTION_PERCENTAGE=Y;exports.CACHE_MAX_SIZE_DEFAULT=b;exports.CACHE_STALE=Qe;exports.CACHE_TTL=Je;exports.CHAR_CODES=ao;exports.CLERK_PUBLISHABLE_KEY=Ur;exports.COLLECTION_CONSTANTS=Ae;exports.CONTRACTS=C;exports.COUNTRY_CALLING_CODES=ho;exports.COUNTRY_CODES=Ko;exports.COUNTRY_REGIONS=Xo;exports.COUNTRY_REGIONS_DETAILED=ko;exports.CRC_CONSTANTS=le;exports.CURRENCY_CODES=Yo;exports.CURRENCY_INFO=Fo;exports.DATE_FORMATS=Mo;exports.DEDUPE_TIME=ze;exports.DEFAULT_API_CLIENT_OPTIONS=ur;exports.DEFAULT_API_CONFIG=Lr;exports.DEFAULT_BACKEND_CONFIG=f;exports.DEFAULT_COUNTRY=Z;exports.DEFAULT_CURRENCY=w;exports.DEFAULT_FRONTEND_CONFIG=G;exports.DEFAULT_LANGUAGE=J;exports.DEFAULT_LOCALE=o;exports.DEVELOPMENT_CONFIG=cr;exports.DEV_SUPPORTED_CHAINS=D;exports.DISPLAY_CONSTANTS=no;exports.DOMAINS=k;exports.ERRORS_CODES=a;exports.FEATURES=H;exports.FEATURE_FLAG_CACHE_TTL_DEFAULT=m;exports.FEATURE_FLAG_EVALUATION_REASONS=h;exports.FEATURE_FLAG_FILE_FORMATS=x;exports.FEATURE_FLAG_FILE_PATHS=K;exports.FEATURE_FLAG_PROVIDERS=F;exports.FILE_CHECK_INTERVAL_DEFAULT=d;exports.FNV_CONSTANTS=Ne;exports.FOCUS_TRAP=lo;exports.FORMAT_CONSTANTS=te;exports.HASH_ALGORITHMS=ce;exports.HASH_DISTRIBUTION_CONSTANTS=Se;exports.HASH_ENCODING=Ie;exports.HASH_SEED_CONSTANTS=se;exports.HTTP_STATUS=Ue;exports.ISO_STANDARDS=Do;exports.KEYBOARD_CODES=co;exports.LANDING_PAGE_APP=j;exports.LOCALE_FORMATS=yo;exports.LOCALE_REGIONS=Wo;exports.LOCALE_REGIONS_DETAILED=Vo;exports.LOGGER_LEVELS=Tr;exports.LOGGER_TRANSPORT_CONFIGURATION=ir;exports.MATH_CONSTANTS=be;exports.MD5_CONSTANTS=Oe;exports.MULTIPLIERS=Ye;exports.MURMUR_CONSTANTS=Ce;exports.NETWORK_CONSTANTS=ve;exports.NETWORK_SCORES=Ze;exports.NETWORK_TIMEOUTS=we;exports.NUMBER_SYSTEM=Be;exports.NUMERIC_CONSTANTS=Fe;exports.OAUTH_PROVIDERS=S;exports.PAGE_SIZES=oo;exports.PERFORMANCE_CONSTANTS=Xe;exports.PHONE_FORMATS=Ho;exports.PHONE_PATTERNS=fo;exports.PRODUCTION_CONFIG=Or;exports.PRODUCT_LINKS=No;exports.PROD_SUPPORTED_CHAINS=u;exports.RETRY_ATTEMPTS=je;exports.RETRY_BACKOFF=$e;exports.RETRY_DELAYS=qe;exports.RTT_THRESHOLDS=We;exports.SECURITY=ee;exports.SENSITIVE_DATA=_r;exports.SHA_CONSTANTS=Re;exports.SOCIAL_LINKS=io;exports.SPEED_THRESHOLDS=Ve;exports.STAGING_CONFIG=Ir;exports.STAGING_SUPPORTED_CHAINS=p;exports.STRING_CONSTANTS=re;exports.SUPABASE_CONFIG=Mr;exports.SUPPORTED_LOCALES=r;exports.TEXT_DIRECTION=Uo;exports.TIMEZONE=W;exports.TIMEZONE_OFFSET=V;exports.TIMEZONE_REGIONS=wo;exports.TIME_CONSTANTS=e;exports.WEB_APP=q;exports.isDev=t;exports.isProd=T;exports.isServer=A;exports.isTest=_;//# sourceMappingURL=index.cjs.map
|
|
7
7
|
//# sourceMappingURL=index.cjs.map
|