{"version":3,"sources":["../../src/network/constants.ts"],"names":["NETWORK_CONSTANTS","RTT_THRESHOLDS","SPEED_THRESHOLDS","NETWORK_SCORES","NETWORK_TIMEOUTS","CACHE_TTL","CACHE_STALE","DEDUPE_TIME","RETRY_ATTEMPTS","RETRY_DELAYS","RETRY_BACKOFF","BATCH_SIZES","PAGE_SIZES"],"mappings":";AAYO,IAAMA,CAAAA,CAAoB,CAI/B,cAAA,CAAgB,CAAA,CAKhB,cAAA,CAAgB,GAAA,CAKhB,gBAAA,CAAkB,CAAA,CAKlB,eAAA,CAAiB,GAAA,CAKjB,sBAAA,CAAwB,GAC1B,EAMaC,CAAAA,CAAiB,CAI5B,SAAA,CAAW,EAAA,CAKX,IAAA,CAAM,GAAA,CAKN,IAAA,CAAM,GACR,CAAA,CAMaC,CAAAA,CAAmB,CAI9B,SAAA,CAAW,EAAA,CAKX,IAAA,CAAM,CAAA,CAKN,IAAA,CAAM,EACR,CAAA,CAMaC,CAAAA,CAAiB,CAI5B,SAAA,CAAW,GAAA,CAKX,IAAA,CAAM,EAAA,CAKN,IAAA,CAAM,EAAA,CAKN,IAAA,CAAM,EAAA,CAKN,OAAA,CAAS,CACX,CAAA,CAMaC,CAAAA,CAAmB,CAI9B,KAAM,IAAA,CAKN,MAAA,CAAQ,GAAA,CAKR,IAAA,CAAM,GAAA,CAKN,SAAA,CAAW,GAAA,CAKX,OAAA,CAAS,GACX,CAAA,CAMaC,CAAAA,CAAY,CAIvB,KAAA,CAAO,GAAA,CAKP,MAAA,CAAQ,GAAA,CAKR,IAAA,CAAM,IACR,CAAA,CAMaC,CAAAA,CAAc,CAIzB,KAAA,CAAO,EAAA,CAKP,MAAA,CAAQ,GAAA,CAKR,IAAA,CAAM,GACR,CAAA,CAMaC,CAAAA,CAAc,CAIzB,UAAA,CAAY,GAAA,CAKZ,QAAA,CAAU,GAAA,CAKV,aAAc,GAChB,CAAA,CAMaC,CAAAA,CAAiB,CAI5B,GAAA,CAAK,CAAA,CAKL,QAAA,CAAU,CAAA,CAKV,KAAM,CACR,CAAA,CAMaC,CAAAA,CAAe,CAI1B,KAAA,CAAO,GAAA,CAKP,IAAA,CAAM,GAAA,CAKN,IAAK,GACP,CAAA,CAMaC,CAAAA,CAAgB,CAI3B,KAAA,CAAO,GAAA,CAKP,MAAA,CAAQ,CAAA,CAKR,KAAA,CAAO,GACT,CAAA,CAMaC,CAAAA,CAAc,CAIzB,IAAA,CAAM,EAAA,CAKN,KAAA,CAAO,GAKP,MAAA,CAAQ,EAAA,CAKR,KAAA,CAAO,CAAA,CAKP,IAAA,CAAM,CACR,CAAA,CAMaC,CAAAA,CAAa,CAIxB,IAAA,CAAM,GAAA,CAKN,KAAA,CAAO,EAAA,CAKP,MAAA,CAAQ,EAAA,CAKR,KAAA,CAAO,EAAA,CAKP,KAAM,CACR","file":"index.cjs","sourcesContent":["/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n  /**\n   * Minimum value for an IPv4 octet (excluding 0 for first octet)\n   */\n  IPV4_OCTET_MIN: 1,\n\n  /**\n   * Maximum value for an IPv4 octet\n   */\n  IPV4_OCTET_MAX: 255,\n\n  /**\n   * Number of octets in an IPv4 address\n   */\n  IPV4_OCTET_COUNT: 4,\n\n  /**\n   * Maximum value for a random byte (256 exclusive)\n   */\n  RANDOM_BYTE_MAX: 256,\n\n  /**\n   * Default maximum process ID for testing\n   */\n  DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Round-trip time (RTT) thresholds in milliseconds\n * Used to classify network latency quality\n */\nexport const RTT_THRESHOLDS = {\n  /**\n   * Excellent network latency - under 50ms\n   */\n  EXCELLENT: 50,\n\n  /**\n   * Good network latency - under 150ms\n   */\n  GOOD: 150,\n\n  /**\n   * Fair network latency - under 400ms\n   */\n  FAIR: 400,\n} as const;\n\n/**\n * Network speed thresholds in Mbps\n * Used to classify connection speed quality\n */\nexport const SPEED_THRESHOLDS = {\n  /**\n   * Excellent connection speed - 10+ Mbps\n   */\n  EXCELLENT: 10,\n\n  /**\n   * Good connection speed - 2+ Mbps\n   */\n  GOOD: 2,\n\n  /**\n   * Fair connection speed - 0.5+ Mbps\n   */\n  FAIR: 0.5,\n} as const;\n\n/**\n * Network quality scores (0-100 scale)\n * Used to quantify overall network performance\n */\nexport const NETWORK_SCORES = {\n  /**\n   * Excellent network quality score\n   */\n  EXCELLENT: 100,\n\n  /**\n   * Good network quality score\n   */\n  GOOD: 75,\n\n  /**\n   * Fair network quality score\n   */\n  FAIR: 50,\n\n  /**\n   * Poor network quality score\n   */\n  POOR: 25,\n\n  /**\n   * Offline - no network connection\n   */\n  OFFLINE: 0,\n} as const;\n\n/**\n * Network timeout constants in milliseconds\n * Used for request timeout configuration based on network quality\n */\nexport const NETWORK_TIMEOUTS = {\n  /**\n   * Fast network timeout - 15 seconds\n   */\n  FAST: 15000,\n\n  /**\n   * Medium network timeout - 30 seconds\n   */\n  MEDIUM: 30000,\n\n  /**\n   * Slow network timeout - 60 seconds\n   */\n  SLOW: 60000,\n\n  /**\n   * Very slow network timeout - 90 seconds\n   */\n  VERY_SLOW: 90000,\n\n  /**\n   * Offline timeout - 5 seconds (fail fast)\n   */\n  OFFLINE: 5000,\n} as const;\n\n/**\n * Cache TTL (Time-To-Live) constants in seconds\n * Used for cache expiration strategies\n */\nexport const CACHE_TTL = {\n  /**\n   * Short cache TTL - 5 minutes\n   */\n  SHORT: 300,\n\n  /**\n   * Medium cache TTL - 10 minutes\n   */\n  MEDIUM: 600,\n\n  /**\n   * Long cache TTL - 30 minutes\n   */\n  LONG: 1800,\n} as const;\n\n/**\n * Cache stale time constants in seconds\n * Used to determine when cached data is considered stale\n */\nexport const CACHE_STALE = {\n  /**\n   * Short stale time - 1 minute\n   */\n  SHORT: 60,\n\n  /**\n   * Medium stale time - 5 minutes\n   */\n  MEDIUM: 300,\n\n  /**\n   * Long stale time - 15 minutes\n   */\n  LONG: 900,\n} as const;\n\n/**\n * Request deduplication time constants in milliseconds\n * Used to prevent duplicate requests within time windows\n */\nexport const DEDUPE_TIME = {\n  /**\n   * Aggressive deduplication - 1 second\n   */\n  AGGRESSIVE: 1000,\n\n  /**\n   * Balanced deduplication - 2 seconds\n   */\n  BALANCED: 2000,\n\n  /**\n   * Conservative deduplication - 5 seconds\n   */\n  CONSERVATIVE: 5000,\n} as const;\n\n/**\n * Retry attempt constants\n * Number of retry attempts for failed requests\n */\nexport const RETRY_ATTEMPTS = {\n  /**\n   * Few retry attempts - 2\n   */\n  FEW: 2,\n\n  /**\n   * Standard retry attempts - 3\n   */\n  STANDARD: 3,\n\n  /**\n   * Many retry attempts - 5\n   */\n  MANY: 5,\n} as const;\n\n/**\n * Retry delay constants in milliseconds\n * Initial delays between retry attempts\n */\nexport const RETRY_DELAYS = {\n  /**\n   * Short retry delay - 1 second\n   */\n  SHORT: 1000,\n\n  /**\n   * Long retry delay - 2 seconds\n   */\n  LONG: 2000,\n\n  /**\n   * Maximum retry delay - 30 seconds\n   */\n  MAX: 30000,\n} as const;\n\n/**\n * Retry backoff multiplier constants\n * Exponential backoff multipliers for retry delays\n */\nexport const RETRY_BACKOFF = {\n  /**\n   * Small backoff multiplier - 1.5x\n   */\n  SMALL: 1.5,\n\n  /**\n   * Medium backoff multiplier - 2x\n   */\n  MEDIUM: 2,\n\n  /**\n   * Large backoff multiplier - 2.5x\n   */\n  LARGE: 2.5,\n} as const;\n\n/**\n * Batch size constants\n * Number of items to process in a single batch\n */\nexport const BATCH_SIZES = {\n  /**\n   * Huge batch size - 50 items\n   */\n  HUGE: 50,\n\n  /**\n   * Large batch size - 25 items\n   */\n  LARGE: 25,\n\n  /**\n   * Medium batch size - 10 items\n   */\n  MEDIUM: 10,\n\n  /**\n   * Small batch size - 5 items\n   */\n  SMALL: 5,\n\n  /**\n   * No batching - 0 items\n   */\n  NONE: 0,\n} as const;\n\n/**\n * Page size constants\n * Number of items per page for pagination\n */\nexport const PAGE_SIZES = {\n  /**\n   * Huge page size - 100 items\n   */\n  HUGE: 100,\n\n  /**\n   * Large page size - 50 items\n   */\n  LARGE: 50,\n\n  /**\n   * Medium page size - 25 items\n   */\n  MEDIUM: 25,\n\n  /**\n   * Small page size - 10 items\n   */\n  SMALL: 10,\n\n  /**\n   * No pagination - 0 items\n   */\n  NONE: 0,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n\n/**\n * Type for RTT threshold values\n */\nexport type RTTThreshold = (typeof RTT_THRESHOLDS)[keyof typeof RTT_THRESHOLDS];\n\n/**\n * Type for speed threshold values\n */\nexport type SpeedThreshold = (typeof SPEED_THRESHOLDS)[keyof typeof SPEED_THRESHOLDS];\n\n/**\n * Type for network score values\n */\nexport type NetworkScore = (typeof NETWORK_SCORES)[keyof typeof NETWORK_SCORES];\n\n/**\n * Type for network timeout values\n */\nexport type NetworkTimeout = (typeof NETWORK_TIMEOUTS)[keyof typeof NETWORK_TIMEOUTS];\n\n/**\n * Type for cache TTL values\n */\nexport type CacheTTL = (typeof CACHE_TTL)[keyof typeof CACHE_TTL];\n\n/**\n * Type for cache stale values\n */\nexport type CacheStale = (typeof CACHE_STALE)[keyof typeof CACHE_STALE];\n\n/**\n * Type for dedupe time values\n */\nexport type DedupeTime = (typeof DEDUPE_TIME)[keyof typeof DEDUPE_TIME];\n\n/**\n * Type for retry attempt values\n */\nexport type RetryAttempt = (typeof RETRY_ATTEMPTS)[keyof typeof RETRY_ATTEMPTS];\n\n/**\n * Type for retry delay values\n */\nexport type RetryDelay = (typeof RETRY_DELAYS)[keyof typeof RETRY_DELAYS];\n\n/**\n * Type for retry backoff values\n */\nexport type RetryBackoff = (typeof RETRY_BACKOFF)[keyof typeof RETRY_BACKOFF];\n\n/**\n * Type for batch size values\n */\nexport type BatchSize = (typeof BATCH_SIZES)[keyof typeof BATCH_SIZES];\n\n/**\n * Type for page size values\n */\nexport type PageSize = (typeof PAGE_SIZES)[keyof typeof PAGE_SIZES];\n"]}