@sorbetai/acp 0.1.0-alpha.11 → 0.1.0-alpha.12

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.
Files changed (43) hide show
  1. package/COMPATIBILITY.md +3 -3
  2. package/agent.json +1 -1
  3. package/dist/LICENSE.sorbet +21 -0
  4. package/dist/{W3CTraceContextPropagator-C-0YW1n_.js → W3CTraceContextPropagator-DsHQSdka.js} +3 -3
  5. package/dist/{W3CTraceContextPropagator-C-0YW1n_.js.map → W3CTraceContextPropagator-DsHQSdka.js.map} +1 -1
  6. package/dist/{agent-C5TwHSXu.js → agent-CR2lZVLL.js} +17 -4
  7. package/dist/agent-CR2lZVLL.js.map +1 -0
  8. package/dist/{agent-Dublc8Nl.d.ts → agent-DJrPETIg.d.ts} +3 -3
  9. package/dist/{authentication-BGigU3A4.js → authentication-CAbUrojJ.js} +2 -2
  10. package/dist/{authentication-BGigU3A4.js.map → authentication-CAbUrojJ.js.map} +1 -1
  11. package/dist/{compatibility-DHKXJ5QO.js → compatibility-BZ8l6GWK.js} +5 -5
  12. package/dist/{compatibility-DHKXJ5QO.js.map → compatibility-BZ8l6GWK.js.map} +1 -1
  13. package/dist/{compatibility-BEe-9K6g.d.ts → compatibility-DS4fhgg8.d.ts} +5 -5
  14. package/dist/compatibility.d.ts +1 -1
  15. package/dist/compatibility.js +1 -1
  16. package/dist/{credentials-BxrruOgS.d.ts → credentials-BokzF9ZK.d.ts} +92 -85
  17. package/dist/{experimental-v2-C06PfYNP.js → experimental-v2-Bm3HJFap.js} +39 -20
  18. package/dist/experimental-v2-Bm3HJFap.js.map +1 -0
  19. package/dist/{experimental-v2-DQ7lAXBf.d.ts → experimental-v2-CGLYuQaH.d.ts} +3 -3
  20. package/dist/experimental-v2.d.ts +3 -3
  21. package/dist/experimental-v2.js +3 -3
  22. package/dist/{index-CZa4v-uc.d.ts → index-BjYqLLBr.d.ts} +7 -7
  23. package/dist/index.d.ts +4 -4
  24. package/dist/index.js +5 -5
  25. package/dist/{mcp-host-profile-BqnAfaHX.js → mcp-host-profile-B1jrHd6J.js} +3 -3
  26. package/dist/{mcp-host-profile-BqnAfaHX.js.map → mcp-host-profile-B1jrHd6J.js.map} +1 -1
  27. package/dist/mcp-host.d.ts +1 -1
  28. package/dist/mcp-host.js +1 -1
  29. package/dist/{otlp-BnduAfOQ.js → otlp-DvnK-tQA.js} +2 -2
  30. package/dist/{otlp-BnduAfOQ.js.map → otlp-DvnK-tQA.js.map} +1 -1
  31. package/dist/{prompt-work-DtGBG05E.js → prompt-work-CBAK5U_Z.js} +173 -55
  32. package/dist/prompt-work-CBAK5U_Z.js.map +1 -0
  33. package/dist/{stdio-BCCik0Px.js → stdio-Bln14zsN.js} +3 -3
  34. package/dist/{stdio-BCCik0Px.js.map → stdio-Bln14zsN.js.map} +1 -1
  35. package/dist/{stdio-cli-main-nFkv2HGn.js → stdio-cli-main-1V66EOjJ.js} +12 -12
  36. package/dist/{stdio-cli-main-nFkv2HGn.js.map → stdio-cli-main-1V66EOjJ.js.map} +1 -1
  37. package/dist/stdio-cli.js +1 -1
  38. package/dist/stdio.d.ts +4 -4
  39. package/dist/stdio.js +5 -5
  40. package/package.json +12 -11
  41. package/dist/agent-C5TwHSXu.js.map +0 -1
  42. package/dist/experimental-v2-C06PfYNP.js.map +0 -1
  43. package/dist/prompt-work-DtGBG05E.js.map +0 -1
package/COMPATIBILITY.md CHANGED
@@ -33,7 +33,7 @@ supported behavior is connected and operational.
33
33
  | Experimental v2 Client methods | 7 | 0 | 0 | 7 |
34
34
  | Experimental v2 Session updates | 15 | 0 | 4 | 19 |
35
35
  | Shared protocol methods | 1 | 0 | 0 | 1 |
36
- | Lody extension capabilities | 8 | 0 | 6 | 14 |
36
+ | Lody extension capabilities | 10 | 0 | 4 | 14 |
37
37
  | Lody custom methods | 8 | 0 | 5 | 13 |
38
38
  | Sorbet extensions | 13 | 0 | 1 | 14 |
39
39
 
@@ -197,12 +197,12 @@ supported behavior is connected and operational.
197
197
  | `sessionTitle` | ✅ Supported | Advertised at version 1; generates and pushes tagged durable titles after each turn. |
198
198
  | `usage` | ✅ Supported | Advertised at version 1 with standard and detailed per-model usage updates. |
199
199
  | `promptSuggestions` | ❌ Unsupported | Prompt suggestion notifications are not advertised or emitted. |
200
- | `sessionActivity` | ❌ Unsupported | Session activity notifications are not advertised or emitted. |
200
+ | `sessionActivity` | ✅ Supported | Publishes Session execution state and live child-agent and background-command counts, including outside prompts. |
201
201
  | `subagentEvents` | ❌ Unsupported | Subagent event notifications are not advertised or emitted. |
202
202
  | `rateLimits` | ❌ Unsupported | No rate-limit query or update source is connected or advertised. |
203
203
  | `forkAtTurn` | ✅ Supported | Publishes durable Run ids as turn boundaries and forks the selected Journal prefix. |
204
204
  | `steering` | ✅ Supported | Advertised at version 1 for request-based steering of the active upstream turn. |
205
- | `tasks` | ❌ Unsupported | No Lody background or scheduled task lifecycle is projected or advertised. |
205
+ | `tasks` | ✅ Supported | Background command handoffs and terminal states are projected as Lody task snapshots; scheduled tasks are not advertised. |
206
206
  | `subagents` | ✅ Supported | Advertises lifecycle plus durable listing, cancellation, and output for Sorbet children. |
207
207
  | `goal` | ✅ Supported | Advertises pause/clear requests and active-owner resume; prompt metadata starts or owns Goal work when idle. Goal prompts stay open across automatic continuations. |
208
208
  | `compaction` | ✅ Supported | Projects durable compaction start and terminal facts through Lody activity metadata. |
package/agent.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "sorbet",
3
3
  "name": "Sorbet",
4
- "version": "0.1.0-alpha.11",
4
+ "version": "0.1.0-alpha.12",
5
5
  "description": "A durable Agent Harness with Pi-backed model access and ACP v1 plus experimental ACP v2 support.",
6
6
  "repository": "https://github.com/lodyspeak/sorbet",
7
7
  "license": "MIT",
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Loro LLC.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -867,8 +867,8 @@ var TraceAPI = class TraceAPI$1 {
867
867
  const trace = TraceAPI.getInstance();
868
868
 
869
869
  //#endregion
870
- //#region ../observability/dist/metrics-CFjv_GTW.js
871
- var version = "0.1.0-alpha.11";
870
+ //#region ../observability/dist/metrics-D3AxebnN.js
871
+ var version = "0.1.0-alpha.12";
872
872
  const seconds = [
873
873
  .001,
874
874
  .005,
@@ -1840,4 +1840,4 @@ var W3CTraceContextPropagator = class {
1840
1840
 
1841
1841
  //#endregion
1842
1842
  export { METRIC_REGISTRY as a, trace as c, isValidTraceId as d, INVALID_SPAN_CONTEXT as f, DiagAPI as h, isTracingSuppressed as i, ContextAPI as l, ROOT_CONTEXT as m, parseTraceParent as n, MetricAggregation as o, TraceFlags as p, TraceState as r, version as s, W3CTraceContextPropagator as t, isSpanContextValid as u };
1843
- //# sourceMappingURL=W3CTraceContextPropagator-C-0YW1n_.js.map
1843
+ //# sourceMappingURL=W3CTraceContextPropagator-DsHQSdka.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"W3CTraceContextPropagator-C-0YW1n_.js","names":["VERSION","isCompatible","VERSION","VERSION","API_NAME","DiagAPI","self","self","TraceFlags","API_NAME","ContextAPI","version","version","TraceAPI","version","#limit","#index","#series","#removePath","TraceState","TraceState$1"],"sources":["../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/version.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/internal/semver.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/internal/global-utils.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/api/diag.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/context/context.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/trace_flags.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/context/NoopContextManager.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/api/context.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/context-utils.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/NoopTracer.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/api/trace.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace-api.mjs","../../observability/dist/metrics-CFjv_GTW.js","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/suppress-tracing.mjs","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/internal/validators.mjs","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/TraceState.mjs","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/W3CTraceContextPropagator.mjs"],"sourcesContent":["//#region src/version.ts\nconst VERSION = \"1.10.0\";\n//#endregion\nexport { VERSION };\n\n//# sourceMappingURL=version.mjs.map","import { VERSION } from \"../version.mjs\";\n//#region src/internal/semver.ts\nconst re = /^(\\d+)\\.(\\d+)\\.(\\d+)(-(.+))?$/;\n/**\n* Create a function to test an API version to see if it is compatible with the provided ownVersion.\n*\n* The returned function has the following semantics:\n* - Exact match is always compatible\n* - Major versions must match exactly\n* - 1.x package cannot use global 2.x package\n* - 2.x package cannot use global 1.x package\n* - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n* - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n* - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n* - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n* - Patch and build tag differences are not considered at this time\n*\n* @param ownVersion version which should be checked against\n*/\nfunction _makeCompatibilityCheck(ownVersion) {\n\tconst acceptedVersions = /* @__PURE__ */ new Set([ownVersion]);\n\tconst rejectedVersions = /* @__PURE__ */ new Set();\n\tconst myVersionMatch = ownVersion.match(re);\n\tif (!myVersionMatch) return () => false;\n\tconst ownVersionParsed = {\n\t\tmajor: +myVersionMatch[1],\n\t\tminor: +myVersionMatch[2],\n\t\tpatch: +myVersionMatch[3],\n\t\tprerelease: myVersionMatch[4]\n\t};\n\tif (ownVersionParsed.prerelease != null) return function isExactmatch(globalVersion) {\n\t\treturn globalVersion === ownVersion;\n\t};\n\tfunction _reject(v) {\n\t\trejectedVersions.add(v);\n\t\treturn false;\n\t}\n\tfunction _accept(v) {\n\t\tacceptedVersions.add(v);\n\t\treturn true;\n\t}\n\treturn function isCompatible(globalVersion) {\n\t\tif (acceptedVersions.has(globalVersion)) return true;\n\t\tif (rejectedVersions.has(globalVersion)) return false;\n\t\tconst globalVersionMatch = globalVersion.match(re);\n\t\tif (!globalVersionMatch) return _reject(globalVersion);\n\t\tconst globalVersionParsed = {\n\t\t\tmajor: +globalVersionMatch[1],\n\t\t\tminor: +globalVersionMatch[2],\n\t\t\tpatch: +globalVersionMatch[3],\n\t\t\tprerelease: globalVersionMatch[4]\n\t\t};\n\t\tif (globalVersionParsed.prerelease != null) return _reject(globalVersion);\n\t\tif (ownVersionParsed.major !== globalVersionParsed.major) return _reject(globalVersion);\n\t\tif (ownVersionParsed.major === 0) {\n\t\t\tif (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) return _accept(globalVersion);\n\t\t\treturn _reject(globalVersion);\n\t\t}\n\t\tif (ownVersionParsed.minor <= globalVersionParsed.minor) return _accept(globalVersion);\n\t\treturn _reject(globalVersion);\n\t};\n}\n/**\n* Test an API version to see if it is compatible with this API.\n*\n* - Exact match is always compatible\n* - Major versions must match exactly\n* - 1.x package cannot use global 2.x package\n* - 2.x package cannot use global 1.x package\n* - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n* - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n* - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n* - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n* - Patch and build tag differences are not considered at this time\n*\n* @param version version of the API requesting an instance of the global API\n*/\nconst isCompatible = _makeCompatibilityCheck(VERSION);\n//#endregion\nexport { _makeCompatibilityCheck, isCompatible };\n\n//# sourceMappingURL=semver.mjs.map","import { VERSION } from \"../version.mjs\";\nimport { isCompatible } from \"./semver.mjs\";\n//#region src/internal/global-utils.ts\nconst major = VERSION.split(\".\")[0];\nconst GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);\nconst _global = typeof globalThis === \"object\" ? globalThis : typeof self === \"object\" ? self : typeof window === \"object\" ? window : typeof global === \"object\" ? global : {};\nfunction _makeGlobalApi() {\n\treturn Object.defineProperty({}, \"version\", {\n\t\tvalue: VERSION,\n\t\tenumerable: true,\n\t\twritable: false,\n\t\tconfigurable: false\n\t});\n}\nfunction registerGlobal(type, instance, diag, allowOverride = false) {\n\tvar _global$GLOBAL_OPENTE;\n\tconst api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_global$GLOBAL_OPENTE = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _global$GLOBAL_OPENTE !== void 0 ? _global$GLOBAL_OPENTE : _makeGlobalApi();\n\tif (!allowOverride && api[type]) {\n\t\tconst err = /* @__PURE__ */ new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);\n\t\tdiag.error(err.stack || err.message);\n\t\treturn false;\n\t}\n\tif (api.version !== \"1.10.0\") {\n\t\tconst err = /* @__PURE__ */ new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${VERSION}`);\n\t\tdiag.error(err.stack || err.message);\n\t\treturn false;\n\t}\n\tapi[type] = instance;\n\tdiag.debug(`@opentelemetry/api: Registered a global for ${type} v${VERSION}.`);\n\treturn true;\n}\nlet _compatibleGlobalApi;\nfunction getGlobal(type) {\n\tconst api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n\tif (api == null) return;\n\tif (api !== _compatibleGlobalApi) {\n\t\tif (!api.version || !isCompatible(api.version)) return;\n\t\t_compatibleGlobalApi = api;\n\t}\n\treturn api[type];\n}\nfunction unregisterGlobal(type, diag) {\n\tdiag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${VERSION}.`);\n\tconst api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n\tif (api) delete api[type];\n}\n//#endregion\nexport { getGlobal, registerGlobal, unregisterGlobal };\n\n//# sourceMappingURL=global-utils.mjs.map","import { getGlobal } from \"../internal/global-utils.mjs\";\n//#region src/diag/ComponentLogger.ts\n/**\n* Component Logger which is meant to be used as part of any component which\n* will add automatically additional namespace in front of the log message.\n* It will then forward all message to global diag logger\n* @example\n* const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });\n* cLogger.debug('test');\n* // @opentelemetry/instrumentation-http test\n*/\nvar DiagComponentLogger = class {\n\tconstructor(props) {\n\t\tthis._namespace = props.namespace || \"DiagComponentLogger\";\n\t}\n\tdebug(...args) {\n\t\treturn logProxy(\"debug\", this._namespace, args);\n\t}\n\terror(...args) {\n\t\treturn logProxy(\"error\", this._namespace, args);\n\t}\n\tinfo(...args) {\n\t\treturn logProxy(\"info\", this._namespace, args);\n\t}\n\twarn(...args) {\n\t\treturn logProxy(\"warn\", this._namespace, args);\n\t}\n\tverbose(...args) {\n\t\treturn logProxy(\"verbose\", this._namespace, args);\n\t}\n};\nfunction logProxy(funcName, namespace, args) {\n\tconst logger = getGlobal(\"diag\");\n\tif (!logger) return;\n\treturn logger[funcName](namespace, ...args);\n}\n//#endregion\nexport { DiagComponentLogger };\n\n//# sourceMappingURL=ComponentLogger.mjs.map","import \"../types.mjs\";\n//#region src/diag/internal/logLevelLogger.ts\nfunction createLogLevelDiagLogger(maxLevel, logger) {\n\tif (maxLevel < 0) maxLevel = 0;\n\telse if (maxLevel > 9999) maxLevel = 9999;\n\tlogger = logger || {};\n\tfunction _filterFunc(funcName, theLevel) {\n\t\tconst theFunc = logger[funcName];\n\t\tif (typeof theFunc === \"function\" && maxLevel >= theLevel) return theFunc.bind(logger);\n\t\treturn function() {};\n\t}\n\treturn {\n\t\terror: _filterFunc(\"error\", 30),\n\t\twarn: _filterFunc(\"warn\", 50),\n\t\tinfo: _filterFunc(\"info\", 60),\n\t\tdebug: _filterFunc(\"debug\", 70),\n\t\tverbose: _filterFunc(\"verbose\", 80)\n\t};\n}\n//#endregion\nexport { createLogLevelDiagLogger };\n\n//# sourceMappingURL=logLevelLogger.mjs.map","import { getGlobal, registerGlobal, unregisterGlobal } from \"../internal/global-utils.mjs\";\nimport { DiagComponentLogger } from \"../diag/ComponentLogger.mjs\";\nimport \"../diag/types.mjs\";\nimport { createLogLevelDiagLogger } from \"../diag/internal/logLevelLogger.mjs\";\n//#region src/api/diag.ts\nconst API_NAME = \"diag\";\n/**\n* Singleton object which represents the entry point to the OpenTelemetry internal\n* diagnostic API\n*\n* @since 1.0.0\n*/\nvar DiagAPI = class DiagAPI {\n\t/** Get the singleton instance of the DiagAPI API */\n\tstatic instance() {\n\t\tif (!this._instance) this._instance = new DiagAPI();\n\t\treturn this._instance;\n\t}\n\t/**\n\t* Private internal constructor\n\t* @private\n\t*/\n\tconstructor() {\n\t\tfunction _logProxy(funcName) {\n\t\t\treturn function(...args) {\n\t\t\t\tconst logger = getGlobal(\"diag\");\n\t\t\t\tif (!logger) return;\n\t\t\t\treturn logger[funcName](...args);\n\t\t\t};\n\t\t}\n\t\tconst self = this;\n\t\tconst setLogger = (logger, optionsOrLogLevel = { logLevel: 60 }) => {\n\t\t\tvar _optionsOrLogLevel$lo;\n\t\t\tif (logger === self) {\n\t\t\t\tvar _err$stack;\n\t\t\t\tconst err = /* @__PURE__ */ new Error(\"Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation\");\n\t\t\t\tself.error((_err$stack = err.stack) !== null && _err$stack !== void 0 ? _err$stack : err.message);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (typeof optionsOrLogLevel === \"number\") optionsOrLogLevel = { logLevel: optionsOrLogLevel };\n\t\t\tconst oldLogger = getGlobal(\"diag\");\n\t\t\tconst newLogger = createLogLevelDiagLogger((_optionsOrLogLevel$lo = optionsOrLogLevel.logLevel) !== null && _optionsOrLogLevel$lo !== void 0 ? _optionsOrLogLevel$lo : 60, logger);\n\t\t\tif (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {\n\t\t\t\tvar _Error$stack;\n\t\t\t\tconst stack = (_Error$stack = (/* @__PURE__ */ new Error()).stack) !== null && _Error$stack !== void 0 ? _Error$stack : \"<failed to generate stacktrace>\";\n\t\t\t\toldLogger.warn(`Current logger will be overwritten from ${stack}`);\n\t\t\t\tnewLogger.warn(`Current logger will overwrite one already registered from ${stack}`);\n\t\t\t}\n\t\t\treturn registerGlobal(\"diag\", newLogger, self, true);\n\t\t};\n\t\tself.setLogger = setLogger;\n\t\tself.disable = () => {\n\t\t\tunregisterGlobal(API_NAME, self);\n\t\t};\n\t\tself.createComponentLogger = (options) => {\n\t\t\treturn new DiagComponentLogger(options);\n\t\t};\n\t\tself.verbose = _logProxy(\"verbose\");\n\t\tself.debug = _logProxy(\"debug\");\n\t\tself.info = _logProxy(\"info\");\n\t\tself.warn = _logProxy(\"warn\");\n\t\tself.error = _logProxy(\"error\");\n\t}\n};\n//#endregion\nexport { DiagAPI };\n\n//# sourceMappingURL=diag.mjs.map","//#region src/context/context.ts\n/**\n* Get a key to uniquely identify a context value\n*\n* @since 1.0.0\n*/\nfunction createContextKey(description) {\n\treturn Symbol.for(description);\n}\n/**\n* The root context is used as the default parent context when there is no active context\n*\n* @since 1.0.0\n*/\nconst ROOT_CONTEXT = new class BaseContext {\n\t/**\n\t* Construct a new context which inherits values from an optional parent context.\n\t*\n\t* @param parentContext a context from which to inherit values\n\t*/\n\tconstructor(parentContext) {\n\t\tconst self = this;\n\t\tself._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();\n\t\tself.getValue = (key) => self._currentContext.get(key);\n\t\tself.setValue = (key, value) => {\n\t\t\tconst context = new BaseContext(self._currentContext);\n\t\t\tcontext._currentContext.set(key, value);\n\t\t\treturn context;\n\t\t};\n\t\tself.deleteValue = (key) => {\n\t\t\tconst context = new BaseContext(self._currentContext);\n\t\t\tcontext._currentContext.delete(key);\n\t\t\treturn context;\n\t\t};\n\t}\n}();\n//#endregion\nexport { ROOT_CONTEXT, createContextKey };\n\n//# sourceMappingURL=context.mjs.map","//#region src/trace/trace_flags.ts\n/**\n* @since 1.0.0\n*/\nlet TraceFlags = /* @__PURE__ */ function(TraceFlags) {\n\t/** Represents no flag set. */\n\tTraceFlags[TraceFlags[\"NONE\"] = 0] = \"NONE\";\n\t/** Bit to represent whether trace is sampled in trace flags. */\n\tTraceFlags[TraceFlags[\"SAMPLED\"] = 1] = \"SAMPLED\";\n\treturn TraceFlags;\n}({});\n//#endregion\nexport { TraceFlags };\n\n//# sourceMappingURL=trace_flags.mjs.map","import \"./trace_flags.mjs\";\n//#region src/trace/invalid-span-constants.ts\n/**\n* @since 1.0.0\n*/\nconst INVALID_SPANID = \"0000000000000000\";\n/**\n* @since 1.0.0\n*/\nconst INVALID_TRACEID = \"00000000000000000000000000000000\";\n/**\n* @since 1.0.0\n*/\nconst INVALID_SPAN_CONTEXT = {\n\ttraceId: INVALID_TRACEID,\n\tspanId: INVALID_SPANID,\n\ttraceFlags: 0\n};\n//#endregion\nexport { INVALID_SPANID, INVALID_SPAN_CONTEXT, INVALID_TRACEID };\n\n//# sourceMappingURL=invalid-span-constants.mjs.map","import { INVALID_SPAN_CONTEXT } from \"./invalid-span-constants.mjs\";\n//#region src/trace/NonRecordingSpan.ts\n/**\n* The NonRecordingSpan is the default {@link Span} that is used when no Span\n* implementation is available. All operations are no-op including context\n* propagation.\n*/\nvar NonRecordingSpan = class {\n\tconstructor(spanContext = INVALID_SPAN_CONTEXT) {\n\t\tthis._spanContext = spanContext;\n\t}\n\tspanContext() {\n\t\treturn this._spanContext;\n\t}\n\tsetAttribute(_key, _value) {\n\t\treturn this;\n\t}\n\tsetAttributes(_attributes) {\n\t\treturn this;\n\t}\n\taddEvent(_name, _attributes) {\n\t\treturn this;\n\t}\n\taddLink(_link) {\n\t\treturn this;\n\t}\n\taddLinks(_links) {\n\t\treturn this;\n\t}\n\tsetStatus(_status) {\n\t\treturn this;\n\t}\n\tupdateName(_name) {\n\t\treturn this;\n\t}\n\tend(_endTime) {}\n\tisRecording() {\n\t\treturn false;\n\t}\n\trecordException(_exception, _time) {}\n};\n//#endregion\nexport { NonRecordingSpan };\n\n//# sourceMappingURL=NonRecordingSpan.mjs.map","import \"./invalid-span-constants.mjs\";\nimport { NonRecordingSpan } from \"./NonRecordingSpan.mjs\";\n//#region src/trace/spancontext-utils.ts\nconst isHex = new Uint8Array([\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1\n]);\nfunction isValidHex(id, length) {\n\tif (typeof id !== \"string\" || id.length !== length) return false;\n\tlet r = 0;\n\tfor (let i = 0; i < id.length; i += 4) r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);\n\treturn r === length;\n}\n/**\n* @since 1.0.0\n*/\nfunction isValidTraceId(traceId) {\n\treturn isValidHex(traceId, 32) && traceId !== \"00000000000000000000000000000000\";\n}\n/**\n* @since 1.0.0\n*/\nfunction isValidSpanId(spanId) {\n\treturn isValidHex(spanId, 16) && spanId !== \"0000000000000000\";\n}\n/**\n* Returns true if this {@link SpanContext} is valid.\n* @return true if this {@link SpanContext} is valid.\n*\n* @since 1.0.0\n*/\nfunction isSpanContextValid(spanContext) {\n\treturn isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);\n}\n/**\n* Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n*\n* @param spanContext span context to be wrapped\n* @returns a new non-recording {@link Span} with the provided context\n*/\nfunction wrapSpanContext(spanContext) {\n\treturn new NonRecordingSpan(spanContext);\n}\n//#endregion\nexport { isSpanContextValid, isValidSpanId, isValidTraceId, wrapSpanContext };\n\n//# sourceMappingURL=spancontext-utils.mjs.map","import { ROOT_CONTEXT } from \"./context.mjs\";\n//#region src/context/NoopContextManager.ts\nvar NoopContextManager = class {\n\tactive() {\n\t\treturn ROOT_CONTEXT;\n\t}\n\twith(_context, fn, thisArg, ...args) {\n\t\treturn fn.call(thisArg, ...args);\n\t}\n\tbind(_context, target) {\n\t\treturn target;\n\t}\n\tenable() {\n\t\treturn this;\n\t}\n\tdisable() {\n\t\treturn this;\n\t}\n\t/** @experimental This API is experimental and may change in minor releases without prior notice. */\n\tattach(_context) {\n\t\treturn { dispose() {} };\n\t}\n};\n//#endregion\nexport { NoopContextManager };\n\n//# sourceMappingURL=NoopContextManager.mjs.map","import { getGlobal, registerGlobal, unregisterGlobal } from \"../internal/global-utils.mjs\";\nimport { DiagAPI } from \"./diag.mjs\";\nimport { NoopContextManager } from \"../context/NoopContextManager.mjs\";\n//#region src/api/context.ts\nconst API_NAME = \"context\";\nconst NOOP_CONTEXT_MANAGER = new NoopContextManager();\nconst NOOP_TOKEN = Object.freeze({ dispose: () => {} });\n/**\n* Singleton object which represents the entry point to the OpenTelemetry Context API\n*\n* @since 1.0.0\n*/\nvar ContextAPI = class ContextAPI {\n\t/** Empty private constructor prevents end users from constructing a new instance of the API */\n\tconstructor() {\n\t\tthis._attachUnsupportedWarned = false;\n\t}\n\t/** Get the singleton instance of the Context API */\n\tstatic getInstance() {\n\t\tif (!this._instance) this._instance = new ContextAPI();\n\t\treturn this._instance;\n\t}\n\t/**\n\t* Set the current context manager.\n\t*\n\t* @returns true if the context manager was successfully registered, else false\n\t*/\n\tsetGlobalContextManager(contextManager) {\n\t\treturn registerGlobal(API_NAME, contextManager, DiagAPI.instance());\n\t}\n\t/**\n\t* Get the currently active context\n\t*/\n\tactive() {\n\t\treturn this._getContextManager().active();\n\t}\n\t/**\n\t* Execute a function with an active context\n\t*\n\t* @param context context to be active during function execution\n\t* @param fn function to execute in a context\n\t* @param thisArg optional receiver to be used for calling fn\n\t* @param args optional arguments forwarded to fn\n\t*/\n\twith(context, fn, thisArg, ...args) {\n\t\treturn this._getContextManager().with(context, fn, thisArg, ...args);\n\t}\n\t/**\n\t* Bind a context to a target function or event emitter\n\t*\n\t* @param context context to bind to the event emitter or function. Defaults to the currently active context\n\t* @param target function or event emitter to bind\n\t*/\n\tbind(context, target) {\n\t\treturn this._getContextManager().bind(context, target);\n\t}\n\t/**\n\t* Imperatively sets `context` as active, returning a {@link ContextManagementToken} whose\n\t* {@link ContextManagementToken.dispose} restores the previous context.\n\t*\n\t* This is a delicate, low-level API - prefer {@link with}/{@link bind}, which\n\t* restore context automatically. Use `attach` only to bridge callback\n\t* boundaries that `with` cannot wrap. Call `token.dispose()` when the\n\t* operation is done.\n\t*\n\t* **Caveat for async functions:** If called inside an async function before\n\t* the first `await`, the context change may leak into the caller's context\n\t* and remain active there. Prefer {@link with} for async code.\n\t*\n\t* Support is best-effort and varies by the active ContextManager (see\n\t* {@link ContextManager.attach}); if it does not implement `attach`, this logs\n\t* a warning and returns a no-op token.\n\t*\n\t* @param context The Context to attach\n\t* @returns A {@link ContextManagementToken} whose dispose() restores the previous Context\n\t* @since 1.10.0\n\t* @experimental This API is experimental and may change in minor releases without prior notice.\n\t*/\n\tattach(context) {\n\t\tconst contextManager = this._getContextManager();\n\t\tif (contextManager.attach) return contextManager.attach(context);\n\t\tif (!this._attachUnsupportedWarned) {\n\t\t\tthis._attachUnsupportedWarned = true;\n\t\t\tDiagAPI.instance().warn(\"The current ContextManager does not implement attach(). The context will not be attached. Use a ContextManager that supports attach() (e.g. AsyncLocalStorageContextManager) or use with()/bind() instead.\");\n\t\t}\n\t\treturn NOOP_TOKEN;\n\t}\n\t_getContextManager() {\n\t\treturn getGlobal(API_NAME) || NOOP_CONTEXT_MANAGER;\n\t}\n\t/** Disable and remove the global context manager */\n\tdisable() {\n\t\tthis._getContextManager().disable();\n\t\tunregisterGlobal(API_NAME, DiagAPI.instance());\n\t}\n};\n//#endregion\nexport { ContextAPI };\n\n//# sourceMappingURL=context.mjs.map","import { createContextKey } from \"../context/context.mjs\";\nimport { ContextAPI } from \"../api/context.mjs\";\nimport { NonRecordingSpan } from \"./NonRecordingSpan.mjs\";\n//#region src/trace/context-utils.ts\n/**\n* span key\n*/\nconst SPAN_KEY = createContextKey(\"OpenTelemetry Context Key SPAN\");\n/**\n* Return the span if one exists\n*\n* @param context context to get span from\n*/\nfunction getSpan(context) {\n\treturn context.getValue(SPAN_KEY) || void 0;\n}\n/**\n* Gets the span from the current context, if one exists.\n*/\nfunction getActiveSpan() {\n\treturn getSpan(ContextAPI.getInstance().active());\n}\n/**\n* Set the span on a context\n*\n* @param context context to use as parent\n* @param span span to set active\n*/\nfunction setSpan(context, span) {\n\treturn context.setValue(SPAN_KEY, span);\n}\n/**\n* Remove current span stored in the context\n*\n* @param context context to delete span from\n*/\nfunction deleteSpan(context) {\n\treturn context.deleteValue(SPAN_KEY);\n}\n/**\n* Wrap span context in a NoopSpan and set as span in a new\n* context\n*\n* @param context context to set active span on\n* @param spanContext span context to be wrapped\n*/\nfunction setSpanContext(context, spanContext) {\n\treturn setSpan(context, new NonRecordingSpan(spanContext));\n}\n/**\n* Get the span context of the span if it exists.\n*\n* @param context context to get values from\n*/\nfunction getSpanContext(context) {\n\tvar _getSpan;\n\treturn (_getSpan = getSpan(context)) === null || _getSpan === void 0 ? void 0 : _getSpan.spanContext();\n}\n//#endregion\nexport { deleteSpan, getActiveSpan, getSpan, getSpanContext, setSpan, setSpanContext };\n\n//# sourceMappingURL=context-utils.mjs.map","import { ContextAPI } from \"../api/context.mjs\";\nimport { NonRecordingSpan } from \"./NonRecordingSpan.mjs\";\nimport { getSpanContext, setSpan } from \"./context-utils.mjs\";\nimport { isSpanContextValid } from \"./spancontext-utils.mjs\";\n//#region src/trace/NoopTracer.ts\nconst contextApi = ContextAPI.getInstance();\n/**\n* No-op implementations of {@link Tracer}.\n*/\nvar NoopTracer = class {\n\tstartSpan(name, options, context = contextApi.active()) {\n\t\tif (Boolean(options === null || options === void 0 ? void 0 : options.root)) return new NonRecordingSpan();\n\t\tconst parentFromContext = context && getSpanContext(context);\n\t\tif (isSpanContext(parentFromContext) && isSpanContextValid(parentFromContext)) return new NonRecordingSpan(parentFromContext);\n\t\telse return new NonRecordingSpan();\n\t}\n\tstartActiveSpan(name, arg2, arg3, arg4) {\n\t\tvar _ctx;\n\t\tlet opts;\n\t\tlet ctx;\n\t\tlet fn;\n\t\tif (arguments.length < 2) return;\n\t\telse if (arguments.length === 2) fn = arg2;\n\t\telse if (arguments.length === 3) {\n\t\t\topts = arg2;\n\t\t\tfn = arg3;\n\t\t} else {\n\t\t\topts = arg2;\n\t\t\tctx = arg3;\n\t\t\tfn = arg4;\n\t\t}\n\t\tconst parentContext = (_ctx = ctx) !== null && _ctx !== void 0 ? _ctx : contextApi.active();\n\t\tconst span = this.startSpan(name, opts, parentContext);\n\t\tconst contextWithSpanSet = setSpan(parentContext, span);\n\t\treturn contextApi.with(contextWithSpanSet, fn, void 0, span);\n\t}\n};\nfunction isSpanContext(spanContext) {\n\treturn spanContext !== null && typeof spanContext === \"object\" && \"spanId\" in spanContext && typeof spanContext[\"spanId\"] === \"string\" && \"traceId\" in spanContext && typeof spanContext[\"traceId\"] === \"string\" && \"traceFlags\" in spanContext && typeof spanContext[\"traceFlags\"] === \"number\";\n}\n//#endregion\nexport { NoopTracer };\n\n//# sourceMappingURL=NoopTracer.mjs.map","import { NoopTracer } from \"./NoopTracer.mjs\";\n//#region src/trace/ProxyTracer.ts\nconst NOOP_TRACER = new NoopTracer();\n/**\n* Proxy tracer provided by the proxy tracer provider\n*\n* @since 1.0.0\n*/\nvar ProxyTracer = class {\n\tconstructor(provider, name, version, options) {\n\t\tthis._provider = provider;\n\t\tthis.name = name;\n\t\tthis.version = version;\n\t\tthis.options = options;\n\t}\n\tstartSpan(name, options, context) {\n\t\treturn this._getTracer().startSpan(name, options, context);\n\t}\n\tstartActiveSpan(_name, _options, _context, _fn) {\n\t\tconst tracer = this._getTracer();\n\t\treturn Reflect.apply(tracer.startActiveSpan, tracer, arguments);\n\t}\n\t/**\n\t* Try to get a tracer from the proxy tracer provider.\n\t* If the proxy tracer provider has no delegate, return a noop tracer.\n\t*/\n\t_getTracer() {\n\t\tif (this._delegate) return this._delegate;\n\t\tconst tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);\n\t\tif (!tracer) return NOOP_TRACER;\n\t\tthis._delegate = tracer;\n\t\treturn this._delegate;\n\t}\n};\n//#endregion\nexport { ProxyTracer };\n\n//# sourceMappingURL=ProxyTracer.mjs.map","import { NoopTracer } from \"./NoopTracer.mjs\";\n//#region src/trace/NoopTracerProvider.ts\n/**\n* An implementation of the {@link TracerProvider} which returns an impotent\n* Tracer for all calls to `getTracer`.\n*\n* All operations are no-op.\n*/\nvar NoopTracerProvider = class {\n\tgetTracer(_name, _version, _options) {\n\t\treturn new NoopTracer();\n\t}\n};\n//#endregion\nexport { NoopTracerProvider };\n\n//# sourceMappingURL=NoopTracerProvider.mjs.map","import { ProxyTracer } from \"./ProxyTracer.mjs\";\nimport { NoopTracerProvider } from \"./NoopTracerProvider.mjs\";\n//#region src/trace/ProxyTracerProvider.ts\nconst NOOP_TRACER_PROVIDER = new NoopTracerProvider();\n/**\n* Tracer provider which provides {@link ProxyTracer}s.\n*\n* Before a delegate is set, tracers provided are NoOp.\n* When a delegate is set, traces are provided from the delegate.\n* When a delegate is set after tracers have already been provided,\n* all tracers already provided will use the provided delegate implementation.\n*\n* @deprecated This will be removed in the next major version.\n* @since 1.0.0\n*/\nvar ProxyTracerProvider = class {\n\t/**\n\t* Get a {@link ProxyTracer}\n\t*/\n\tgetTracer(name, version, options) {\n\t\tvar _this$getDelegateTrac;\n\t\treturn (_this$getDelegateTrac = this.getDelegateTracer(name, version, options)) !== null && _this$getDelegateTrac !== void 0 ? _this$getDelegateTrac : new ProxyTracer(this, name, version, options);\n\t}\n\tgetDelegate() {\n\t\tvar _this$_delegate;\n\t\treturn (_this$_delegate = this._delegate) !== null && _this$_delegate !== void 0 ? _this$_delegate : NOOP_TRACER_PROVIDER;\n\t}\n\t/**\n\t* Set the delegate tracer provider\n\t*/\n\tsetDelegate(delegate) {\n\t\tthis._delegate = delegate;\n\t}\n\tgetDelegateTracer(name, version, options) {\n\t\tvar _this$_delegate2;\n\t\treturn (_this$_delegate2 = this._delegate) === null || _this$_delegate2 === void 0 ? void 0 : _this$_delegate2.getTracer(name, version, options);\n\t}\n};\n//#endregion\nexport { ProxyTracerProvider };\n\n//# sourceMappingURL=ProxyTracerProvider.mjs.map","import { getGlobal, registerGlobal, unregisterGlobal } from \"../internal/global-utils.mjs\";\nimport { DiagAPI } from \"./diag.mjs\";\nimport { deleteSpan, getActiveSpan, getSpan, getSpanContext, setSpan, setSpanContext } from \"../trace/context-utils.mjs\";\nimport { isSpanContextValid, wrapSpanContext } from \"../trace/spancontext-utils.mjs\";\nimport { ProxyTracerProvider } from \"../trace/ProxyTracerProvider.mjs\";\n//#region src/api/trace.ts\nconst API_NAME = \"trace\";\n/**\n* Singleton object which represents the entry point to the OpenTelemetry Tracing API\n*\n* @since 1.0.0\n*/\nvar TraceAPI = class TraceAPI {\n\t/** Empty private constructor prevents end users from constructing a new instance of the API */\n\tconstructor() {\n\t\tthis._proxyTracerProvider = new ProxyTracerProvider();\n\t\tthis.wrapSpanContext = wrapSpanContext;\n\t\tthis.isSpanContextValid = isSpanContextValid;\n\t\tthis.deleteSpan = deleteSpan;\n\t\tthis.getSpan = getSpan;\n\t\tthis.getActiveSpan = getActiveSpan;\n\t\tthis.getSpanContext = getSpanContext;\n\t\tthis.setSpan = setSpan;\n\t\tthis.setSpanContext = setSpanContext;\n\t}\n\t/** Get the singleton instance of the Trace API */\n\tstatic getInstance() {\n\t\tif (!this._instance) this._instance = new TraceAPI();\n\t\treturn this._instance;\n\t}\n\t/**\n\t* Set the current global tracer.\n\t*\n\t* @returns true if the tracer provider was successfully registered, else false\n\t*/\n\tsetGlobalTracerProvider(provider) {\n\t\tconst success = registerGlobal(API_NAME, this._proxyTracerProvider, DiagAPI.instance());\n\t\tif (success) this._proxyTracerProvider.setDelegate(provider);\n\t\treturn success;\n\t}\n\t/**\n\t* Returns the global tracer provider.\n\t*/\n\tgetTracerProvider() {\n\t\treturn getGlobal(API_NAME) || this._proxyTracerProvider;\n\t}\n\t/**\n\t* Returns a tracer from the global tracer provider.\n\t*/\n\tgetTracer(name, version) {\n\t\treturn this.getTracerProvider().getTracer(name, version);\n\t}\n\t/** Remove the global tracer provider */\n\tdisable() {\n\t\tunregisterGlobal(API_NAME, DiagAPI.instance());\n\t\tthis._proxyTracerProvider = new ProxyTracerProvider();\n\t}\n};\n//#endregion\nexport { TraceAPI };\n\n//# sourceMappingURL=trace.mjs.map","import { TraceAPI } from \"./api/trace.mjs\";\n//#region src/trace-api.ts\n/**\n* Entrypoint for trace API\n*\n* @since 1.0.0\n*/\nconst trace = TraceAPI.getInstance();\n//#endregion\nexport { trace };\n\n//# sourceMappingURL=trace-api.mjs.map","//#region package.json\nvar version = \"0.1.0-alpha.11\";\n\n//#endregion\n//#region src/metrics.ts\nconst seconds = [\n\t.001,\n\t.005,\n\t.01,\n\t.05,\n\t.1,\n\t.5,\n\t1,\n\t5,\n\t15,\n\t60,\n\t300,\n\t3600\n];\nconst amounts = [\n\t1,\n\t10,\n\t100,\n\t1e3,\n\t1e4,\n\t1e5,\n\t1e6,\n\t1e7\n];\nconst METRIC_REGISTRY = {\n\t\"sorbet.telemetry.callback.failure\": {\n\t\tdescription: \"Isolated Host observation adapter callback failures.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.compaction.duration\": {\n\t\tdescription: \"Monotonic compaction boundary time including unsuccessful attempts.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.compaction.reduction_ratio\": {\n\t\tdescription: \"Relative reduction between comparable full-request token estimates.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"1\",\n\t\tbuckets: [\n\t\t\t-1,\n\t\t\t-.5,\n\t\t\t0,\n\t\t\t.1,\n\t\t\t.25,\n\t\t\t.5,\n\t\t\t.75,\n\t\t\t1\n\t\t]\n\t},\n\t\"sorbet.compaction.attempts\": {\n\t\tdescription: \"Physical compaction model attempts observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{attempt}\"\n\t},\n\t\"sorbet.model.dispatched\": {\n\t\tdescription: \"Pi dispatch attempts after committed write-ahead request evidence.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{request}\"\n\t},\n\t\"process.memory.usage\": {\n\t\tdescription: \"OS resident footprint of the observed Host process.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"process.cpu.time\": {\n\t\tdescription: \"Cumulative Host process CPU time by user and system mode.\",\n\t\tkind: \"counter\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.runtime.heap.used\": {\n\t\tdescription: \"Host V8 managed heap currently occupied.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.heap.total\": {\n\t\tdescription: \"Host V8 allocated managed heap capacity.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.external\": {\n\t\tdescription: \"Host Node externally allocated memory; distinct from resident footprint.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.array_buffers\": {\n\t\tdescription: \"Host Node ArrayBuffer and SharedArrayBuffer allocation footprint.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.limit\": {\n\t\tdescription: \"Known operating-system process memory constraint; absent when unavailable.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.high_water\": {\n\t\tdescription: \"Largest sampled Host RSS since this observation collection began.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.gc.pause.duration\": {\n\t\tdescription: \"Node performance observer GC pause durations by coarse kind.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"nodejs.eventloop.delay.p99\": {\n\t\tdescription: \"Host event-loop delay p99 during the last sampled interval.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"nodejs.eventloop.utilization\": {\n\t\tdescription: \"Host event-loop utilization during the last sampled interval.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.runtime.sample.age\": {\n\t\tdescription: \"Monotonic age since the last successful Host resource sample; stale gauges are omitted.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.runtime.sample.failed\": {\n\t\tdescription: \"Unavailable OS or runtime sampling observations by bounded cause.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{sample}\"\n\t},\n\t\"sorbet.run.accepted\": {\n\t\tdescription: \"Newly committed durable Run admissions observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{run}\"\n\t},\n\t\"sorbet.run.oldest_active.age\": {\n\t\tdescription: \"Monotonic age of the oldest locally owned undrained execution.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.run.resource_wait.duration\": {\n\t\tdescription: \"Monotonic wait for the existing execution resource owner.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.run.cancel_to_drain.duration\": {\n\t\tdescription: \"Owner-measured cancellation to actual resource drain time.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.retry_backoff.duration\": {\n\t\tdescription: \"Actual scheduled retry wait until attempt start or interruption.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.run.waiting\": {\n\t\tdescription: \"Observed pending owner waits; nested reasons overlap and must not be summed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{wait}\"\n\t},\n\t\"sorbet.run.wait.oldest.age\": {\n\t\tdescription: \"Monotonic age of the oldest observed pending wait by finite reason.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.wait.evicted\": {\n\t\tdescription: \"Wait observations rejected or evicted from the bounded live inventory.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{wait}\"\n\t},\n\t\"sorbet.run.active\": {\n\t\tdescription: \"Locally owned executions from actual start through confirmed drain.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{run}\"\n\t},\n\t\"sorbet.recovery.unresolved\": {\n\t\tdescription: \"Projected open or unknown work with explicit inventory scope.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{item}\"\n\t},\n\t\"sorbet.recovery.catalog_incomplete\": {\n\t\tdescription: \"One when the latest historical catalogue census is incomplete.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.recovery.sessions\": {\n\t\tdescription: \"Observed or unavailable Sessions within the indicated inventory scope.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{session}\"\n\t},\n\t\"sorbet.context.source.estimated_tokens\": {\n\t\tdescription: \"Character-based component estimates partitioning actual dispatched input.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.context.source.change.tokens\": {\n\t\tdescription: \"Absolute component token changes between comparable requests in each Session, by increase or decrease; estimates only.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{token}\"\n\t},\n\t\"sorbet.tool.output.bytes\": {\n\t\tdescription: \"UTF-8 text or archive bytes at the existing output shaping boundary.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"By\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.tool.output.estimated_tokens\": {\n\t\tdescription: \"Character-based Tool text estimates before and after limiting.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.session.delivery.backlog\": {\n\t\tdescription: \"Ledger-owned pending, dispatching or accepted-but-not-included deliveries.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{delivery}\"\n\t},\n\t\"sorbet.session.delivery.oldest_age\": {\n\t\tdescription: \"Wall-clock bound of the oldest eligible pending delivery with known enqueue time.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.session.delivery.unknown_age\": {\n\t\tdescription: \"Pending deliveries whose historical enqueue age is unavailable.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{delivery}\"\n\t},\n\t\"sorbet.session.delivery.to_request.duration\": {\n\t\tdescription: \"Durable enqueue to evidenced request inclusion wall-clock bound; not model attention.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.session.delivery.transition\": {\n\t\tdescription: \"Newly committed child delivery transitions observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{transition}\"\n\t},\n\t\"sorbet.child.active\": {\n\t\tdescription: \"Child Sessions with nonterminal Runs in observed Units.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{agent}\"\n\t},\n\t\"sorbet.child.completion_wait.duration\": {\n\t\tdescription: \"Monotonic parent wait or join duration by owner outcome.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.mounts\": {\n\t\tdescription: \"Owner-reported mount inventory by phase, execution profile and pending cause.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{mount}\"\n\t},\n\t\"sorbet.plugin.invocation.queue_wait.duration\": {\n\t\tdescription: \"Native owner invocation wait before acquiring its actual execution slot.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.callbacks.pending\": {\n\t\tdescription: \"Isolate Host callbacks still owned, including work surviving process exit.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{callback}\"\n\t},\n\t\"sorbet.plugin.native.dependencies\": {\n\t\tdescription: \"Cordis-owned Fiber inventory by actual lifecycle state.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{dependency}\"\n\t},\n\t\"sorbet.plugin.borrows\": {\n\t\tdescription: \"Current retained activation and dependency borrows in observed scopes.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{borrow}\"\n\t},\n\t\"sorbet.plugin.cleanup_uncertain\": {\n\t\tdescription: \"Composition activations lacking confirmed owner cleanup.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{activation}\"\n\t},\n\t\"sorbet.plugin.activation.duration\": {\n\t\tdescription: \"Monotonic owner activation time by execution profile and result.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.retirement.duration\": {\n\t\tdescription: \"Monotonic owner retirement time including deadline and late-cleanup results.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.worker.capacity_utilization\": {\n\t\tdescription: \"Starting and owned isolate processes divided by configured loader capacity.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.plugin.invocations.pending\": {\n\t\tdescription: \"Actual owner pending invocations by execution profile.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{call}\"\n\t},\n\t\"sorbet.plugin.native.backend\": {\n\t\tdescription: \"Native host inventory by reported backend drain proof state.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{host}\"\n\t},\n\t\"sorbet.plugin.native.cleanup_uncertain\": {\n\t\tdescription: \"Released or uncertain native hosts without backend drain proof.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{host}\"\n\t},\n\t\"sorbet.plugin.isolate.output_queue.bytes\": {\n\t\tdescription: \"Current outgoing transport bytes owned by observed isolate loaders.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.plugin.isolate.ipc.bytes\": {\n\t\tdescription: \"Already encoded or received protocol frame sizes; not peer receipt proof.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"By\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.plugin.isolate.protocol_failure\": {\n\t\tdescription: \"Concrete protocol framing, schema, transport or callback failures.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.plugin.worker.rss_sum\": {\n\t\tdescription: \"Sum of sampled host-visible owned PID RSS; shared pages may be counted repeatedly.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.run.terminal\": {\n\t\tdescription: \"Newly committed authoritative Run terminals observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{run}\"\n\t},\n\t\"sorbet.run.execution_episode.duration\": {\n\t\tdescription: \"Owner-measured Run admission to terminal within a single process episode.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.context.capacity_failure\": {\n\t\tdescription: \"Actual owner request-capacity failures; near-capacity estimates alone are not failures.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.approval.review.duration\": {\n\t\tdescription: \"Monotonic whole approval reviewer boundary, not physical Provider latency.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.approval.completion_wait.duration\": {\n\t\tdescription: \"Caller wait for opaque reviewer completion including timeout or cancellation; no drain proof.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.tool.inflight\": {\n\t\tdescription: \"Authorized actual Tool invocations from dispatch through owner settlement.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{tool}\"\n\t},\n\t\"sorbet.context.prepare.duration\": {\n\t\tdescription: \"Monotonic Context preparation or rebase time at its existing owner boundary.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.context.completed.tokens\": {\n\t\tdescription: \"Pi-normalized completed-response Context anchor including output; distinct from dispatched input.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.context.completed.utilization\": {\n\t\tdescription: \"Pi-normalized completed-response Context anchor divided by known model window.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"1\",\n\t\tbuckets: [\n\t\t\t.25,\n\t\t\t.5,\n\t\t\t.75,\n\t\t\t.9,\n\t\t\t1\n\t\t]\n\t},\n\t\"sorbet.context.request.tokens\": {\n\t\tdescription: \"Character-based actual dispatched input estimate, not completed response or cumulative billed input.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.context.request.utilization\": {\n\t\tdescription: \"Character-based dispatched input estimate divided by known model window.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"1\",\n\t\tbuckets: [\n\t\t\t.25,\n\t\t\t.5,\n\t\t\t.75,\n\t\t\t.9,\n\t\t\t1\n\t\t]\n\t},\n\t\"sorbet.model.request.duration\": {\n\t\tdescription: \"Physical Pi dispatch to complete response, excluding Context and response commit.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.token.usage\": {\n\t\tdescription: \"Reported per-request token categories by purpose and explicit provider or reviewer source.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.model.first_token.duration\": {\n\t\tdescription: \"Pi dispatch to first nonempty text delta; silent or Tool-only output is unavailable.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.stream.duration\": {\n\t\tdescription: \"First nonempty Pi text delta to complete response.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.response_commit.duration\": {\n\t\tdescription: \"Monotonic durable response commit time after Pi settlement.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.cost\": {\n\t\tdescription: \"Reported request pricing estimates by provider or reviewer source, including committed failures; not invoice spend.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"USD\",\n\t\tbuckets: [\n\t\t\t.001,\n\t\t\t.01,\n\t\t\t.1,\n\t\t\t1,\n\t\t\t10,\n\t\t\t100\n\t\t]\n\t},\n\t\"sorbet.model.retry\": {\n\t\tdescription: \"Owner-scheduled retry attempts distinct from logical model calls.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{attempt}\"\n\t},\n\t\"sorbet.model.request.unknown\": {\n\t\tdescription: \"Newly committed abandoned request uncertainty; not proof of no provider dispatch.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{request}\"\n\t},\n\t\"sorbet.tool.execution.duration\": {\n\t\tdescription: \"Monotonic authorized Tool invocation duration by actual outcome.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.tool.permission_wait.duration\": {\n\t\tdescription: \"Monotonic permission resolution time separate from Tool execution.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.tool.effect.outcome\": {\n\t\tdescription: \"Newly committed Effect terminals with unknown kept distinct from success and failure.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{effect}\"\n\t},\n\t\"sorbet.journal.append_batch.duration\": {\n\t\tdescription: \"Monotonic physical JSONL batch append time through configured durability boundary.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.journal.append.failure\": {\n\t\tdescription: \"Failed durable JSONL append batches observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.journal.append_queue.facts\": {\n\t\tdescription: \"Prepared facts still awaiting their durable append boundary.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{fact}\"\n\t},\n\t\"sorbet.journal.append_queue.bytes\": {\n\t\tdescription: \"Already encoded prepared fact bytes awaiting durable append.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.journal.projection.duration\": {\n\t\tdescription: \"Actual in-memory usage or inspection projection time; excludes Journal I/O.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.journal.file.bytes\": {\n\t\tdescription: \"Known physical JSONL bytes in bounded observed Sessions, not all catalogue storage.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.journal.files.unavailable\": {\n\t\tdescription: \"Observed files whose current physical size is not established.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{file}\"\n\t},\n\t\"sorbet.journal.reopen.duration\": {\n\t\tdescription: \"Monotonic JSONL reopen and validation time by outcome.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.worker.tracked_processes\": {\n\t\tdescription: \"Bounded diagnostic PID inventory size, distinct from actual owner process counts.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{process}\"\n\t},\n\t\"sorbet.plugin.worker.processes\": {\n\t\tdescription: \"Actual owned isolate processes summed across bounded observed loader inventories.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{process}\"\n\t},\n\t\"sorbet.plugin.worker.exits\": {\n\t\tdescription: \"Observed isolate exits by original owner termination cause.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{exit}\"\n\t},\n\t\"sorbet.plugin.invocation.duration\": {\n\t\tdescription: \"Owner callback or IPC service time including joined Host work.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.diagnostic.dropped\": {\n\t\tdescription: \"Worker diagnostic lines discarded by explicit capture policy or bounds.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{line}\"\n\t},\n\t\"sorbet.telemetry.recording.last_drop.time\": {\n\t\tdescription: \"Unix timestamp of the latest rejected or unacknowledged local record; zero means none observed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.recording.dropped\": {\n\t\tdescription: \"Local boundary records rejected or unacknowledged after write failure.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.recording.write.failure\": {\n\t\tdescription: \"Failed local recording write batches.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.telemetry.recording.retention.failure\": {\n\t\tdescription: \"Incomplete or failed local recording retention passes.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.telemetry.recording.retention.evicted\": {\n\t\tdescription: \"Historical recording segments removed by retention or capacity policy.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{file}\"\n\t},\n\t\"sorbet.telemetry.recording.pending.records\": {\n\t\tdescription: \"Queued records including the one in-flight write batch.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.recording.pending.bytes\": {\n\t\tdescription: \"Conservative local recording queue quota usage, not measured heap.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.telemetry.recording.pending.age\": {\n\t\tdescription: \"Monotonic age of the oldest queued local observation.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.recording.failed\": {\n\t\tdescription: \"One after a local write failure until a later batch is written successfully.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.telemetry.correlation.evicted\": {\n\t\tdescription: \"Tracing associations lost to bounded cache eviction or expiry.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{entry}\"\n\t},\n\t\"sorbet.telemetry.history.evicted\": {\n\t\tdescription: \"Volatile history removed by retention or capacity; independent of delivery.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.delivery.last_gap.time\": {\n\t\tdescription: \"Unix timestamp of the latest unavailable sequence coverage by selected signal.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.delivery.gap\": {\n\t\tdescription: \"Sequence coverage unavailable before a selected exporter could inspect it.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.journal.append.last_failure.time\": {\n\t\tdescription: \"Unix timestamp of the latest observed failed durable append; zero means none observed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.export.last_failure.time\": {\n\t\tdescription: \"Unix timestamp of the latest failed or timed-out export; zero means none observed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.dropped\": {\n\t\tdescription: \"Rejected observations or metric samples; normal history eviction is separate.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.export.failure\": {\n\t\tdescription: \"Metadata export failures or deadlines; execution remains independent.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.telemetry.queue.bytes\": {\n\t\tdescription: \"Current scalar diagnostic ring footprint.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t}\n};\nconst attributeKeys = [\n\t\"call_type\",\n\t\"cancellation\",\n\t\"cpu_mode\",\n\t\"direction\",\n\t\"gc_kind\",\n\t\"kind\",\n\t\"measurement\",\n\t\"origin\",\n\t\"outcome\",\n\t\"owner\",\n\t\"phase\",\n\t\"profile\",\n\t\"purpose\",\n\t\"reason\",\n\t\"route\",\n\t\"section\",\n\t\"state\",\n\t\"token_type\"\n];\nconst emptyAttributes = Object.freeze({});\n/** Only the Host adapter records instruments; execution owners never receive this collector. */\nvar MetricAggregation = class {\n\t#series = /* @__PURE__ */ new Set();\n\t#limit;\n\t#index = /* @__PURE__ */ new Map();\n\tdropped = 0;\n\tconstructor(limit) {\n\t\tthis.#limit = limit;\n\t}\n\trecord(name, value, attributes = emptyAttributes) {\n\t\tif (!Number.isFinite(value) || value < 0 && name !== \"sorbet.compaction.reduction_ratio\") {\n\t\t\tthis.dropped += 1;\n\t\t\treturn;\n\t\t}\n\t\tlet node = this.#index.get(name);\n\t\tif (node !== void 0 && attributes !== emptyAttributes) for (const key of attributeKeys) {\n\t\t\tconst label = attributes[key];\n\t\t\tif (label === void 0) continue;\n\t\t\tnode = node.children[key]?.get(label);\n\t\t\tif (node === void 0) break;\n\t\t}\n\t\tlet series = node?.series;\n\t\tif (series === void 0) {\n\t\t\tif (this.#series.size >= this.#limit) {\n\t\t\t\tthis.dropped += 1;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet root = this.#index.get(name);\n\t\t\tif (root === void 0) {\n\t\t\t\troot = {\n\t\t\t\t\tchildren: {},\n\t\t\t\t\tchildCount: 0\n\t\t\t\t};\n\t\t\t\tthis.#index.set(name, root);\n\t\t\t}\n\t\t\tlet insertionNode = root;\n\t\t\tlet labels;\n\t\t\tfor (const key of attributeKeys) {\n\t\t\t\tconst label = attributes[key];\n\t\t\t\tif (label === void 0) continue;\n\t\t\t\tlabels ??= {};\n\t\t\t\tlabels[key] = label;\n\t\t\t\tlet children = insertionNode.children[key];\n\t\t\t\tif (children === void 0) {\n\t\t\t\t\tchildren = /* @__PURE__ */ new Map();\n\t\t\t\t\tinsertionNode.children[key] = children;\n\t\t\t\t}\n\t\t\t\tlet child = children.get(label);\n\t\t\t\tif (child === void 0) {\n\t\t\t\t\tchild = {\n\t\t\t\t\t\tchildren: {},\n\t\t\t\t\t\tchildCount: 0\n\t\t\t\t\t};\n\t\t\t\t\tchildren.set(label, child);\n\t\t\t\t\tinsertionNode.childCount += 1;\n\t\t\t\t}\n\t\t\t\tinsertionNode = child;\n\t\t\t}\n\t\t\tconst instrument = METRIC_REGISTRY[name];\n\t\t\tconst bounds = instrument.buckets ?? [];\n\t\t\tseries = {\n\t\t\t\tname,\n\t\t\t\tkind: instrument.kind,\n\t\t\t\tunit: instrument.unit,\n\t\t\t\tattributes: labels ?? emptyAttributes,\n\t\t\t\tvalue: 0,\n\t\t\t\tcount: 0,\n\t\t\t\tbounds,\n\t\t\t\tbuckets: Array.from({ length: bounds.length + 1 }, () => 0),\n\t\t\t\trecordedAt: Date.now()\n\t\t\t};\n\t\t\tinsertionNode.series = series;\n\t\t\tthis.#series.add(series);\n\t\t}\n\t\tseries.count += 1;\n\t\tseries.recordedAt = Date.now();\n\t\tif (series.kind === \"gauge\" || name === \"process.cpu.time\") series.value = value;\n\t\telse series.value += value;\n\t\tif (series.kind === \"histogram\") {\n\t\t\tconst index = series.bounds.findIndex((bound) => value <= bound);\n\t\t\tconst bucket = index === -1 ? series.bounds.length : index;\n\t\t\tseries.buckets[bucket] = (series.buckets[bucket] ?? 0) + 1;\n\t\t}\n\t}\n\tsnapshot() {\n\t\treturn structuredClone([...this.#series.values()].map((series) => ({\n\t\t\t...series,\n\t\t\trecordedAt: new Date(series.recordedAt).toISOString()\n\t\t})));\n\t}\n\tremove(name, attributes = emptyAttributes) {\n\t\tconst node = this.#index.get(name);\n\t\tif (node === void 0) return;\n\t\tthis.#removePath(node, attributes, 0);\n\t\tif (node.series === void 0 && node.childCount === 0) this.#index.delete(name);\n\t}\n\tremoveAll(name) {\n\t\tthis.#index.delete(name);\n\t\tfor (const series of this.#series) if (series.name === name) this.#series.delete(series);\n\t}\n\t#removePath(node, attributes, position) {\n\t\tconst key = attributeKeys[position];\n\t\tif (key === void 0) {\n\t\t\tif (node.series !== void 0) this.#series.delete(node.series);\n\t\t\tnode.series = void 0;\n\t\t\treturn;\n\t\t}\n\t\tconst label = attributes[key];\n\t\tif (label === void 0) {\n\t\t\tthis.#removePath(node, attributes, position + 1);\n\t\t\treturn;\n\t\t}\n\t\tconst children = node.children[key];\n\t\tif (children === void 0) return;\n\t\tconst child = children.get(label);\n\t\tif (child === void 0) return;\n\t\tthis.#removePath(child, attributes, position + 1);\n\t\tif (child.series === void 0 && child.childCount === 0) {\n\t\t\tchildren.delete(label);\n\t\t\tnode.childCount -= 1;\n\t\t\tif (children.size === 0) delete node.children[key];\n\t\t}\n\t}\n};\n\n//#endregion\nexport { MetricAggregation as n, version as r, METRIC_REGISTRY as t };\n//# sourceMappingURL=metrics-CFjv_GTW.js.map","import { createContextKey } from \"@opentelemetry/api\";\n//#region src/trace/suppress-tracing.ts\nconst SUPPRESS_TRACING_KEY = createContextKey(\"OpenTelemetry SDK Context Key SUPPRESS_TRACING\");\nfunction suppressTracing(context) {\n\treturn context.setValue(SUPPRESS_TRACING_KEY, true);\n}\nfunction unsuppressTracing(context) {\n\treturn context.deleteValue(SUPPRESS_TRACING_KEY);\n}\nfunction isTracingSuppressed(context) {\n\treturn context.getValue(SUPPRESS_TRACING_KEY) === true;\n}\n//#endregion\nexport { isTracingSuppressed, suppressTracing, unsuppressTracing };\n\n//# sourceMappingURL=suppress-tracing.mjs.map","//#region src/internal/validators.ts\nconst VALID_KEY_CHAR_RANGE = \"[_0-9a-z-*/]\";\nconst VALID_KEY_REGEX = new RegExp(`^(?:${`[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`}|${`[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`})$`);\nconst VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nconst INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n/**\n* Key is opaque string up to 256 characters printable. It MUST begin with a\n* lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n* underscores _, dashes -, asterisks *, and forward slashes /.\n* For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n* vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n* see https://www.w3.org/TR/trace-context/#key\n*/\nfunction validateKey(key) {\n\treturn VALID_KEY_REGEX.test(key);\n}\n/**\n* Value is opaque string up to 256 characters printable ASCII RFC0020\n* characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n*/\nfunction validateValue(value) {\n\treturn VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);\n}\n//#endregion\nexport { validateKey, validateValue };\n\n//# sourceMappingURL=validators.mjs.map","import { validateKey, validateValue } from \"../internal/validators.mjs\";\n//#region src/trace/TraceState.ts\nconst MAX_TRACE_STATE_ITEMS = 32;\nconst MAX_TRACE_STATE_LEN = 512;\nconst LIST_MEMBERS_SEPARATOR = \",\";\nconst LIST_MEMBER_KEY_VALUE_SPLITTER = \"=\";\n/**\n* TraceState must be a class and not a simple object type because of the spec\n* requirement (https://www.w3.org/TR/trace-context/#tracestate-field).\n*\n* Here is the list of allowed mutations:\n* - New key-value pair should be added into the beginning of the list\n* - The value of any key can be updated. Modified keys MUST be moved to the\n* beginning of the list.\n*/\nvar TraceState = class TraceState {\n\t_length;\n\t_rawTraceState;\n\t_internalState;\n\tconstructor(rawTraceState) {\n\t\tthis._rawTraceState = typeof rawTraceState === \"string\" ? rawTraceState : \"\";\n\t\tthis._length = this._rawTraceState.length;\n\t}\n\tset(key, value) {\n\t\tif (!validateKey(key) || !validateValue(value)) return this;\n\t\tconst currState = this._getState();\n\t\tconst currValue = currState.get(key);\n\t\tlet newLength = this._length;\n\t\tif (typeof currValue === \"string\") newLength += value.length - currValue.length;\n\t\telse {\n\t\t\tif (currState.size >= MAX_TRACE_STATE_ITEMS) return this;\n\t\t\tnewLength += key.length + value.length + (currState.size > 0 ? 2 : 1);\n\t\t}\n\t\tif (newLength > MAX_TRACE_STATE_LEN) return this;\n\t\tconst newState = new Map(currState);\n\t\tnewState.delete(key);\n\t\tnewState.set(key, value);\n\t\treturn this._fromState(newState, newLength);\n\t}\n\tunset(key) {\n\t\tconst currState = this._getState();\n\t\tconst currValue = currState.get(key);\n\t\tif (typeof currValue !== \"string\") return this;\n\t\tlet newLength = this._length - (key.length + currValue.length + 1);\n\t\tif (currState.size > 1) newLength = newLength - 1;\n\t\tconst newState = new Map(currState);\n\t\tnewState.delete(key);\n\t\treturn this._fromState(newState, newLength);\n\t}\n\tget(key) {\n\t\treturn this._getState().get(key);\n\t}\n\tserialize() {\n\t\tlet serialized = \"\";\n\t\tlet index = 0;\n\t\tfor (const entry of this._getState()) {\n\t\t\tif (index > 0) serialized = LIST_MEMBERS_SEPARATOR + serialized;\n\t\t\tserialized = `${entry[0]}${LIST_MEMBER_KEY_VALUE_SPLITTER}${entry[1]}` + serialized;\n\t\t\tindex++;\n\t\t}\n\t\treturn serialized;\n\t}\n\t_getState() {\n\t\tif (this._internalState) return this._internalState;\n\t\tconst vendorMembers = this._rawTraceState.split(LIST_MEMBERS_SEPARATOR);\n\t\tconst vendorEntries = /* @__PURE__ */ new Map();\n\t\tlet currentLength = 0;\n\t\tfor (const member of vendorMembers) {\n\t\t\tconst m = member.trim();\n\t\t\tconst idx = m.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);\n\t\t\tif (idx === -1) continue;\n\t\t\tconst key = m.slice(0, idx);\n\t\t\tconst value = m.slice(idx + 1);\n\t\t\tif (!validateKey(key) || !validateValue(value)) continue;\n\t\t\tconst futureLength = currentLength + m.length + (vendorEntries.size > 0 ? 1 : 0);\n\t\t\tif (futureLength > MAX_TRACE_STATE_LEN) continue;\n\t\t\tvendorEntries.set(key, value);\n\t\t\tcurrentLength = futureLength;\n\t\t\tif (vendorEntries.size >= MAX_TRACE_STATE_ITEMS) break;\n\t\t}\n\t\tthis._length = currentLength;\n\t\tthis._internalState = new Map(Array.from(vendorEntries.entries()).reverse());\n\t\treturn this._internalState;\n\t}\n\t_fromState(state, length) {\n\t\tconst traceState = Object.create(TraceState.prototype);\n\t\ttraceState._internalState = state;\n\t\ttraceState._length = length;\n\t\treturn traceState;\n\t}\n};\n//#endregion\nexport { TraceState };\n\n//# sourceMappingURL=TraceState.mjs.map","import { isTracingSuppressed } from \"./suppress-tracing.mjs\";\nimport { TraceState as TraceState$1 } from \"./TraceState.mjs\";\nimport { TraceFlags, isSpanContextValid, trace } from \"@opentelemetry/api\";\n//#region src/trace/W3CTraceContextPropagator.ts\nconst TRACE_PARENT_HEADER = \"traceparent\";\nconst TRACE_STATE_HEADER = \"tracestate\";\nconst VERSION = \"00\";\nconst TRACE_PARENT_REGEX = new RegExp(`^\\\\s?((?!ff)[\\\\da-f]{2})-((?![0]{32})[\\\\da-f]{32})-((?![0]{16})[\\\\da-f]{16})-([\\\\da-f]{2})(-.*)?\\\\s?$`);\n/**\n* Parses information from the [traceparent] span tag and converts it into {@link SpanContext}\n* @param traceParent - A meta property that comes from server.\n* It should be dynamically generated server side to have the server's request trace Id,\n* a parent span Id that was set on the server's request span,\n* and the trace flags to indicate the server's sampling decision\n* (01 = sampled, 00 = not sampled).\n* for example: '{version}-{traceId}-{spanId}-{sampleDecision}'\n* For more information see {@link https://www.w3.org/TR/trace-context/}\n*/\nfunction parseTraceParent(traceParent) {\n\tconst match = TRACE_PARENT_REGEX.exec(traceParent);\n\tif (!match) return null;\n\tif (match[1] === \"00\" && match[5]) return null;\n\treturn {\n\t\ttraceId: match[2],\n\t\tspanId: match[3],\n\t\ttraceFlags: parseInt(match[4], 16)\n\t};\n}\n/**\n* Propagates {@link SpanContext} through Trace Context format propagation.\n*\n* Based on the Trace Context specification:\n* https://www.w3.org/TR/trace-context/\n*/\nvar W3CTraceContextPropagator = class {\n\tinject(context, carrier, setter) {\n\t\tconst spanContext = trace.getSpanContext(context);\n\t\tif (!spanContext || isTracingSuppressed(context) || !isSpanContextValid(spanContext)) return;\n\t\tconst traceParent = `${VERSION}-${spanContext.traceId}-${spanContext.spanId}-0${Number(spanContext.traceFlags || TraceFlags.NONE).toString(16)}`;\n\t\tsetter.set(carrier, TRACE_PARENT_HEADER, traceParent);\n\t\tif (spanContext.traceState) setter.set(carrier, TRACE_STATE_HEADER, spanContext.traceState.serialize());\n\t}\n\textract(context, carrier, getter) {\n\t\tconst traceParentHeader = getter.get(carrier, TRACE_PARENT_HEADER);\n\t\tif (!traceParentHeader) return context;\n\t\tconst traceParent = Array.isArray(traceParentHeader) ? traceParentHeader[0] : traceParentHeader;\n\t\tif (typeof traceParent !== \"string\") return context;\n\t\tconst spanContext = parseTraceParent(traceParent);\n\t\tif (!spanContext) return context;\n\t\tspanContext.isRemote = true;\n\t\tconst traceStateHeader = getter.get(carrier, TRACE_STATE_HEADER);\n\t\tif (traceStateHeader) {\n\t\t\tconst state = Array.isArray(traceStateHeader) ? traceStateHeader.join(\",\") : traceStateHeader;\n\t\t\tspanContext.traceState = new TraceState$1(typeof state === \"string\" ? state : void 0);\n\t\t}\n\t\treturn trace.setSpanContext(context, spanContext);\n\t}\n\tfields() {\n\t\treturn [TRACE_PARENT_HEADER, TRACE_STATE_HEADER];\n\t}\n};\n//#endregion\nexport { TRACE_PARENT_HEADER, TRACE_STATE_HEADER, W3CTraceContextPropagator, parseTraceParent };\n\n//# sourceMappingURL=W3CTraceContextPropagator.mjs.map"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24],"mappings":";AACA,MAAMA,YAAU;;;;ACChB,MAAM,KAAK;;;;;;;;;;;;;;;;;AAiBX,SAAS,wBAAwB,YAAY;CAC5C,MAAM,mCAAmC,IAAI,IAAI,CAAC,WAAW,CAAC;CAC9D,MAAM,mCAAmC,IAAI,KAAK;CAClD,MAAM,iBAAiB,WAAW,MAAM,GAAG;AAC3C,KAAI,CAAC,eAAgB,cAAa;CAClC,MAAM,mBAAmB;EACxB,OAAO,CAAC,eAAe;EACvB,OAAO,CAAC,eAAe;EACvB,OAAO,CAAC,eAAe;EACvB,YAAY,eAAe;EAC3B;AACD,KAAI,iBAAiB,cAAc,KAAM,QAAO,SAAS,aAAa,eAAe;AACpF,SAAO,kBAAkB;;CAE1B,SAAS,QAAQ,GAAG;AACnB,mBAAiB,IAAI,EAAE;AACvB,SAAO;;CAER,SAAS,QAAQ,GAAG;AACnB,mBAAiB,IAAI,EAAE;AACvB,SAAO;;AAER,QAAO,SAASC,eAAa,eAAe;AAC3C,MAAI,iBAAiB,IAAI,cAAc,CAAE,QAAO;AAChD,MAAI,iBAAiB,IAAI,cAAc,CAAE,QAAO;EAChD,M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AM,uBAAuB;CAC5B,SAAS;CACT,QAAQ;CACR,YAAY;CACZ;;;;;;;;;ACVD,IAAI,mBAAmB,MAAM;CAC5B,YAAY,cAAc,sBAAsB;AAC/C,OAAK,eAAe;;CAErB,cAAc;AACb,SAAO,KAAK;;CAEb,aAAa,MAAM,QAAQ;AAC1B,SAAO;;CAER,cAAc,aAAa;AAC1B,SAAO;;CAER,SAAS,OAAO,aAAa;AAC5B,SAAO;;CAER,QAAQ,OAAO;AACd,SAAO;;CAER,SAAS,QAAQ;AAChB,SAAO;;CAER,UAAU,SAAS;AAClB,SAAO;;CAER,WAAW,OAAO;AACjB,SAAO;;CAER,IAAI,UAAU;CACd,cAAc;AACb,SAAO;;CAER,gBAAgB,YAAY,OAAO;;;;;ACpCpC,MAAM,QAAQ,IAAI,WAAW;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AACF,SAAS,WAAW,IAAI,QAAQ;AAC/B,KAAI,OAAO,OAAO,YAAY,GAAG,WAAW,OAAQ,QAAO;CAC3D,IAAI,IAAI;AACR,MAAK,IAAI,IAAI,GAAG,IAAI,GAAG,QAAQ,KAAK,EAAG,OAAM,MAAM,GAAG,WAAW,EAAE,IAAI,MAAM,MAAM,GAAG,W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B;EAC9B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,6BAA6B;EAC5B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uBAAuB;EACtB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,sBAAsB;EACrB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qBAAqB;EACpB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,+CAA+C;EAC9C,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uBAAuB;EACtB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,yCAAyC;EACxC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wBAAwB;EACvB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gDAAgD;EAC/C,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,yBAAyB;EACxB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,6CAA6C;EAC5C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4CAA4C;EAC3C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uBAAuB;EACtB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,yCAAyC;EACxC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,4CAA4C;EAC3C,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wBAAwB;EACvB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wCAAwC;EACvC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;GACR;GACA;GACA;GACA;GACA;GACA;EACD;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;GACR;GACA;GACA;GACA;GACA;GACA;EACD;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,yCAAyC;EACxC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,qBAAqB;EACpB,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;GACR;GACA;GACA;GACA;GACA;GACA;GACA;EACD;CACD,sBAAsB;EACrB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,kCAAkC;EACjC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wCAAwC;EACvC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,wCAAwC;EACvC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,6BAA6B;EAC5B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,kCAAkC;EACjC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,kCAAkC;EACjC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,6CAA6C;EAC5C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4CAA4C;EAC3C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gDAAgD;EAC/C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gDAAgD;EAC/C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8CA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GAAG,kBAAkB,KAAK;AAC9E,MAAI,OAAO,gBAAgB,SAAU,QAAO;EAC5C,MAAM,cAAc,iBAAiB,YAAY;AACjD,MAAI,CAAC,YAAa,QAAO;AACzB,cAAY,WAAW;EACvB,MAAM,mBAAmB,OAAO,IAAI,SAAS,mBAAmB;AAChE,MAAI,kBAAkB;GACrB,MAAM,QAAQ,MAAM,QAAQ,iBAAiB,GAAG,iBAAiB,KAAK,IAAI,GAAG;AAC7E,eAAY,aAAa,IAAIC,WAAa,OAAO,UAAU,WAAW,QAAQ,KAAK,EAAE;;AAEtF,SAAO,MAAM,eAAe,SAAS,YAAY;;CAElD,SAAS;AACR,SAAO,CAAC,qBAAqB,mBAAmB"}
1
+ {"version":3,"file":"W3CTraceContextPropagator-DsHQSdka.js","names":["VERSION","isCompatible","VERSION","VERSION","API_NAME","DiagAPI","self","self","TraceFlags","API_NAME","ContextAPI","version","version","TraceAPI","version","#limit","#index","#series","#removePath","TraceState","TraceState$1"],"sources":["../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/version.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/internal/semver.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/internal/global-utils.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/api/diag.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/context/context.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/trace_flags.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/context/NoopContextManager.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/api/context.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/context-utils.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/NoopTracer.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/api/trace.mjs","../../../node_modules/.pnpm/@opentelemetry+api@1.10.0/node_modules/@opentelemetry/api/dist/trace-api.mjs","../../observability/dist/metrics-D3AxebnN.js","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/suppress-tracing.mjs","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/internal/validators.mjs","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/TraceState.mjs","../../../node_modules/.pnpm/@opentelemetry+core@3.0.0_@opentelemetry+api@1.10.0/node_modules/@opentelemetry/core/dist/trace/W3CTraceContextPropagator.mjs"],"sourcesContent":["//#region src/version.ts\nconst VERSION = \"1.10.0\";\n//#endregion\nexport { VERSION };\n\n//# sourceMappingURL=version.mjs.map","import { VERSION } from \"../version.mjs\";\n//#region src/internal/semver.ts\nconst re = /^(\\d+)\\.(\\d+)\\.(\\d+)(-(.+))?$/;\n/**\n* Create a function to test an API version to see if it is compatible with the provided ownVersion.\n*\n* The returned function has the following semantics:\n* - Exact match is always compatible\n* - Major versions must match exactly\n* - 1.x package cannot use global 2.x package\n* - 2.x package cannot use global 1.x package\n* - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n* - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n* - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n* - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n* - Patch and build tag differences are not considered at this time\n*\n* @param ownVersion version which should be checked against\n*/\nfunction _makeCompatibilityCheck(ownVersion) {\n\tconst acceptedVersions = /* @__PURE__ */ new Set([ownVersion]);\n\tconst rejectedVersions = /* @__PURE__ */ new Set();\n\tconst myVersionMatch = ownVersion.match(re);\n\tif (!myVersionMatch) return () => false;\n\tconst ownVersionParsed = {\n\t\tmajor: +myVersionMatch[1],\n\t\tminor: +myVersionMatch[2],\n\t\tpatch: +myVersionMatch[3],\n\t\tprerelease: myVersionMatch[4]\n\t};\n\tif (ownVersionParsed.prerelease != null) return function isExactmatch(globalVersion) {\n\t\treturn globalVersion === ownVersion;\n\t};\n\tfunction _reject(v) {\n\t\trejectedVersions.add(v);\n\t\treturn false;\n\t}\n\tfunction _accept(v) {\n\t\tacceptedVersions.add(v);\n\t\treturn true;\n\t}\n\treturn function isCompatible(globalVersion) {\n\t\tif (acceptedVersions.has(globalVersion)) return true;\n\t\tif (rejectedVersions.has(globalVersion)) return false;\n\t\tconst globalVersionMatch = globalVersion.match(re);\n\t\tif (!globalVersionMatch) return _reject(globalVersion);\n\t\tconst globalVersionParsed = {\n\t\t\tmajor: +globalVersionMatch[1],\n\t\t\tminor: +globalVersionMatch[2],\n\t\t\tpatch: +globalVersionMatch[3],\n\t\t\tprerelease: globalVersionMatch[4]\n\t\t};\n\t\tif (globalVersionParsed.prerelease != null) return _reject(globalVersion);\n\t\tif (ownVersionParsed.major !== globalVersionParsed.major) return _reject(globalVersion);\n\t\tif (ownVersionParsed.major === 0) {\n\t\t\tif (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) return _accept(globalVersion);\n\t\t\treturn _reject(globalVersion);\n\t\t}\n\t\tif (ownVersionParsed.minor <= globalVersionParsed.minor) return _accept(globalVersion);\n\t\treturn _reject(globalVersion);\n\t};\n}\n/**\n* Test an API version to see if it is compatible with this API.\n*\n* - Exact match is always compatible\n* - Major versions must match exactly\n* - 1.x package cannot use global 2.x package\n* - 2.x package cannot use global 1.x package\n* - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n* - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n* - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n* - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n* - Patch and build tag differences are not considered at this time\n*\n* @param version version of the API requesting an instance of the global API\n*/\nconst isCompatible = _makeCompatibilityCheck(VERSION);\n//#endregion\nexport { _makeCompatibilityCheck, isCompatible };\n\n//# sourceMappingURL=semver.mjs.map","import { VERSION } from \"../version.mjs\";\nimport { isCompatible } from \"./semver.mjs\";\n//#region src/internal/global-utils.ts\nconst major = VERSION.split(\".\")[0];\nconst GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);\nconst _global = typeof globalThis === \"object\" ? globalThis : typeof self === \"object\" ? self : typeof window === \"object\" ? window : typeof global === \"object\" ? global : {};\nfunction _makeGlobalApi() {\n\treturn Object.defineProperty({}, \"version\", {\n\t\tvalue: VERSION,\n\t\tenumerable: true,\n\t\twritable: false,\n\t\tconfigurable: false\n\t});\n}\nfunction registerGlobal(type, instance, diag, allowOverride = false) {\n\tvar _global$GLOBAL_OPENTE;\n\tconst api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_global$GLOBAL_OPENTE = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _global$GLOBAL_OPENTE !== void 0 ? _global$GLOBAL_OPENTE : _makeGlobalApi();\n\tif (!allowOverride && api[type]) {\n\t\tconst err = /* @__PURE__ */ new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);\n\t\tdiag.error(err.stack || err.message);\n\t\treturn false;\n\t}\n\tif (api.version !== \"1.10.0\") {\n\t\tconst err = /* @__PURE__ */ new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${VERSION}`);\n\t\tdiag.error(err.stack || err.message);\n\t\treturn false;\n\t}\n\tapi[type] = instance;\n\tdiag.debug(`@opentelemetry/api: Registered a global for ${type} v${VERSION}.`);\n\treturn true;\n}\nlet _compatibleGlobalApi;\nfunction getGlobal(type) {\n\tconst api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n\tif (api == null) return;\n\tif (api !== _compatibleGlobalApi) {\n\t\tif (!api.version || !isCompatible(api.version)) return;\n\t\t_compatibleGlobalApi = api;\n\t}\n\treturn api[type];\n}\nfunction unregisterGlobal(type, diag) {\n\tdiag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${VERSION}.`);\n\tconst api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n\tif (api) delete api[type];\n}\n//#endregion\nexport { getGlobal, registerGlobal, unregisterGlobal };\n\n//# sourceMappingURL=global-utils.mjs.map","import { getGlobal } from \"../internal/global-utils.mjs\";\n//#region src/diag/ComponentLogger.ts\n/**\n* Component Logger which is meant to be used as part of any component which\n* will add automatically additional namespace in front of the log message.\n* It will then forward all message to global diag logger\n* @example\n* const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });\n* cLogger.debug('test');\n* // @opentelemetry/instrumentation-http test\n*/\nvar DiagComponentLogger = class {\n\tconstructor(props) {\n\t\tthis._namespace = props.namespace || \"DiagComponentLogger\";\n\t}\n\tdebug(...args) {\n\t\treturn logProxy(\"debug\", this._namespace, args);\n\t}\n\terror(...args) {\n\t\treturn logProxy(\"error\", this._namespace, args);\n\t}\n\tinfo(...args) {\n\t\treturn logProxy(\"info\", this._namespace, args);\n\t}\n\twarn(...args) {\n\t\treturn logProxy(\"warn\", this._namespace, args);\n\t}\n\tverbose(...args) {\n\t\treturn logProxy(\"verbose\", this._namespace, args);\n\t}\n};\nfunction logProxy(funcName, namespace, args) {\n\tconst logger = getGlobal(\"diag\");\n\tif (!logger) return;\n\treturn logger[funcName](namespace, ...args);\n}\n//#endregion\nexport { DiagComponentLogger };\n\n//# sourceMappingURL=ComponentLogger.mjs.map","import \"../types.mjs\";\n//#region src/diag/internal/logLevelLogger.ts\nfunction createLogLevelDiagLogger(maxLevel, logger) {\n\tif (maxLevel < 0) maxLevel = 0;\n\telse if (maxLevel > 9999) maxLevel = 9999;\n\tlogger = logger || {};\n\tfunction _filterFunc(funcName, theLevel) {\n\t\tconst theFunc = logger[funcName];\n\t\tif (typeof theFunc === \"function\" && maxLevel >= theLevel) return theFunc.bind(logger);\n\t\treturn function() {};\n\t}\n\treturn {\n\t\terror: _filterFunc(\"error\", 30),\n\t\twarn: _filterFunc(\"warn\", 50),\n\t\tinfo: _filterFunc(\"info\", 60),\n\t\tdebug: _filterFunc(\"debug\", 70),\n\t\tverbose: _filterFunc(\"verbose\", 80)\n\t};\n}\n//#endregion\nexport { createLogLevelDiagLogger };\n\n//# sourceMappingURL=logLevelLogger.mjs.map","import { getGlobal, registerGlobal, unregisterGlobal } from \"../internal/global-utils.mjs\";\nimport { DiagComponentLogger } from \"../diag/ComponentLogger.mjs\";\nimport \"../diag/types.mjs\";\nimport { createLogLevelDiagLogger } from \"../diag/internal/logLevelLogger.mjs\";\n//#region src/api/diag.ts\nconst API_NAME = \"diag\";\n/**\n* Singleton object which represents the entry point to the OpenTelemetry internal\n* diagnostic API\n*\n* @since 1.0.0\n*/\nvar DiagAPI = class DiagAPI {\n\t/** Get the singleton instance of the DiagAPI API */\n\tstatic instance() {\n\t\tif (!this._instance) this._instance = new DiagAPI();\n\t\treturn this._instance;\n\t}\n\t/**\n\t* Private internal constructor\n\t* @private\n\t*/\n\tconstructor() {\n\t\tfunction _logProxy(funcName) {\n\t\t\treturn function(...args) {\n\t\t\t\tconst logger = getGlobal(\"diag\");\n\t\t\t\tif (!logger) return;\n\t\t\t\treturn logger[funcName](...args);\n\t\t\t};\n\t\t}\n\t\tconst self = this;\n\t\tconst setLogger = (logger, optionsOrLogLevel = { logLevel: 60 }) => {\n\t\t\tvar _optionsOrLogLevel$lo;\n\t\t\tif (logger === self) {\n\t\t\t\tvar _err$stack;\n\t\t\t\tconst err = /* @__PURE__ */ new Error(\"Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation\");\n\t\t\t\tself.error((_err$stack = err.stack) !== null && _err$stack !== void 0 ? _err$stack : err.message);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (typeof optionsOrLogLevel === \"number\") optionsOrLogLevel = { logLevel: optionsOrLogLevel };\n\t\t\tconst oldLogger = getGlobal(\"diag\");\n\t\t\tconst newLogger = createLogLevelDiagLogger((_optionsOrLogLevel$lo = optionsOrLogLevel.logLevel) !== null && _optionsOrLogLevel$lo !== void 0 ? _optionsOrLogLevel$lo : 60, logger);\n\t\t\tif (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {\n\t\t\t\tvar _Error$stack;\n\t\t\t\tconst stack = (_Error$stack = (/* @__PURE__ */ new Error()).stack) !== null && _Error$stack !== void 0 ? _Error$stack : \"<failed to generate stacktrace>\";\n\t\t\t\toldLogger.warn(`Current logger will be overwritten from ${stack}`);\n\t\t\t\tnewLogger.warn(`Current logger will overwrite one already registered from ${stack}`);\n\t\t\t}\n\t\t\treturn registerGlobal(\"diag\", newLogger, self, true);\n\t\t};\n\t\tself.setLogger = setLogger;\n\t\tself.disable = () => {\n\t\t\tunregisterGlobal(API_NAME, self);\n\t\t};\n\t\tself.createComponentLogger = (options) => {\n\t\t\treturn new DiagComponentLogger(options);\n\t\t};\n\t\tself.verbose = _logProxy(\"verbose\");\n\t\tself.debug = _logProxy(\"debug\");\n\t\tself.info = _logProxy(\"info\");\n\t\tself.warn = _logProxy(\"warn\");\n\t\tself.error = _logProxy(\"error\");\n\t}\n};\n//#endregion\nexport { DiagAPI };\n\n//# sourceMappingURL=diag.mjs.map","//#region src/context/context.ts\n/**\n* Get a key to uniquely identify a context value\n*\n* @since 1.0.0\n*/\nfunction createContextKey(description) {\n\treturn Symbol.for(description);\n}\n/**\n* The root context is used as the default parent context when there is no active context\n*\n* @since 1.0.0\n*/\nconst ROOT_CONTEXT = new class BaseContext {\n\t/**\n\t* Construct a new context which inherits values from an optional parent context.\n\t*\n\t* @param parentContext a context from which to inherit values\n\t*/\n\tconstructor(parentContext) {\n\t\tconst self = this;\n\t\tself._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();\n\t\tself.getValue = (key) => self._currentContext.get(key);\n\t\tself.setValue = (key, value) => {\n\t\t\tconst context = new BaseContext(self._currentContext);\n\t\t\tcontext._currentContext.set(key, value);\n\t\t\treturn context;\n\t\t};\n\t\tself.deleteValue = (key) => {\n\t\t\tconst context = new BaseContext(self._currentContext);\n\t\t\tcontext._currentContext.delete(key);\n\t\t\treturn context;\n\t\t};\n\t}\n}();\n//#endregion\nexport { ROOT_CONTEXT, createContextKey };\n\n//# sourceMappingURL=context.mjs.map","//#region src/trace/trace_flags.ts\n/**\n* @since 1.0.0\n*/\nlet TraceFlags = /* @__PURE__ */ function(TraceFlags) {\n\t/** Represents no flag set. */\n\tTraceFlags[TraceFlags[\"NONE\"] = 0] = \"NONE\";\n\t/** Bit to represent whether trace is sampled in trace flags. */\n\tTraceFlags[TraceFlags[\"SAMPLED\"] = 1] = \"SAMPLED\";\n\treturn TraceFlags;\n}({});\n//#endregion\nexport { TraceFlags };\n\n//# sourceMappingURL=trace_flags.mjs.map","import \"./trace_flags.mjs\";\n//#region src/trace/invalid-span-constants.ts\n/**\n* @since 1.0.0\n*/\nconst INVALID_SPANID = \"0000000000000000\";\n/**\n* @since 1.0.0\n*/\nconst INVALID_TRACEID = \"00000000000000000000000000000000\";\n/**\n* @since 1.0.0\n*/\nconst INVALID_SPAN_CONTEXT = {\n\ttraceId: INVALID_TRACEID,\n\tspanId: INVALID_SPANID,\n\ttraceFlags: 0\n};\n//#endregion\nexport { INVALID_SPANID, INVALID_SPAN_CONTEXT, INVALID_TRACEID };\n\n//# sourceMappingURL=invalid-span-constants.mjs.map","import { INVALID_SPAN_CONTEXT } from \"./invalid-span-constants.mjs\";\n//#region src/trace/NonRecordingSpan.ts\n/**\n* The NonRecordingSpan is the default {@link Span} that is used when no Span\n* implementation is available. All operations are no-op including context\n* propagation.\n*/\nvar NonRecordingSpan = class {\n\tconstructor(spanContext = INVALID_SPAN_CONTEXT) {\n\t\tthis._spanContext = spanContext;\n\t}\n\tspanContext() {\n\t\treturn this._spanContext;\n\t}\n\tsetAttribute(_key, _value) {\n\t\treturn this;\n\t}\n\tsetAttributes(_attributes) {\n\t\treturn this;\n\t}\n\taddEvent(_name, _attributes) {\n\t\treturn this;\n\t}\n\taddLink(_link) {\n\t\treturn this;\n\t}\n\taddLinks(_links) {\n\t\treturn this;\n\t}\n\tsetStatus(_status) {\n\t\treturn this;\n\t}\n\tupdateName(_name) {\n\t\treturn this;\n\t}\n\tend(_endTime) {}\n\tisRecording() {\n\t\treturn false;\n\t}\n\trecordException(_exception, _time) {}\n};\n//#endregion\nexport { NonRecordingSpan };\n\n//# sourceMappingURL=NonRecordingSpan.mjs.map","import \"./invalid-span-constants.mjs\";\nimport { NonRecordingSpan } from \"./NonRecordingSpan.mjs\";\n//#region src/trace/spancontext-utils.ts\nconst isHex = new Uint8Array([\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t0,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1,\n\t1\n]);\nfunction isValidHex(id, length) {\n\tif (typeof id !== \"string\" || id.length !== length) return false;\n\tlet r = 0;\n\tfor (let i = 0; i < id.length; i += 4) r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);\n\treturn r === length;\n}\n/**\n* @since 1.0.0\n*/\nfunction isValidTraceId(traceId) {\n\treturn isValidHex(traceId, 32) && traceId !== \"00000000000000000000000000000000\";\n}\n/**\n* @since 1.0.0\n*/\nfunction isValidSpanId(spanId) {\n\treturn isValidHex(spanId, 16) && spanId !== \"0000000000000000\";\n}\n/**\n* Returns true if this {@link SpanContext} is valid.\n* @return true if this {@link SpanContext} is valid.\n*\n* @since 1.0.0\n*/\nfunction isSpanContextValid(spanContext) {\n\treturn isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);\n}\n/**\n* Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n*\n* @param spanContext span context to be wrapped\n* @returns a new non-recording {@link Span} with the provided context\n*/\nfunction wrapSpanContext(spanContext) {\n\treturn new NonRecordingSpan(spanContext);\n}\n//#endregion\nexport { isSpanContextValid, isValidSpanId, isValidTraceId, wrapSpanContext };\n\n//# sourceMappingURL=spancontext-utils.mjs.map","import { ROOT_CONTEXT } from \"./context.mjs\";\n//#region src/context/NoopContextManager.ts\nvar NoopContextManager = class {\n\tactive() {\n\t\treturn ROOT_CONTEXT;\n\t}\n\twith(_context, fn, thisArg, ...args) {\n\t\treturn fn.call(thisArg, ...args);\n\t}\n\tbind(_context, target) {\n\t\treturn target;\n\t}\n\tenable() {\n\t\treturn this;\n\t}\n\tdisable() {\n\t\treturn this;\n\t}\n\t/** @experimental This API is experimental and may change in minor releases without prior notice. */\n\tattach(_context) {\n\t\treturn { dispose() {} };\n\t}\n};\n//#endregion\nexport { NoopContextManager };\n\n//# sourceMappingURL=NoopContextManager.mjs.map","import { getGlobal, registerGlobal, unregisterGlobal } from \"../internal/global-utils.mjs\";\nimport { DiagAPI } from \"./diag.mjs\";\nimport { NoopContextManager } from \"../context/NoopContextManager.mjs\";\n//#region src/api/context.ts\nconst API_NAME = \"context\";\nconst NOOP_CONTEXT_MANAGER = new NoopContextManager();\nconst NOOP_TOKEN = Object.freeze({ dispose: () => {} });\n/**\n* Singleton object which represents the entry point to the OpenTelemetry Context API\n*\n* @since 1.0.0\n*/\nvar ContextAPI = class ContextAPI {\n\t/** Empty private constructor prevents end users from constructing a new instance of the API */\n\tconstructor() {\n\t\tthis._attachUnsupportedWarned = false;\n\t}\n\t/** Get the singleton instance of the Context API */\n\tstatic getInstance() {\n\t\tif (!this._instance) this._instance = new ContextAPI();\n\t\treturn this._instance;\n\t}\n\t/**\n\t* Set the current context manager.\n\t*\n\t* @returns true if the context manager was successfully registered, else false\n\t*/\n\tsetGlobalContextManager(contextManager) {\n\t\treturn registerGlobal(API_NAME, contextManager, DiagAPI.instance());\n\t}\n\t/**\n\t* Get the currently active context\n\t*/\n\tactive() {\n\t\treturn this._getContextManager().active();\n\t}\n\t/**\n\t* Execute a function with an active context\n\t*\n\t* @param context context to be active during function execution\n\t* @param fn function to execute in a context\n\t* @param thisArg optional receiver to be used for calling fn\n\t* @param args optional arguments forwarded to fn\n\t*/\n\twith(context, fn, thisArg, ...args) {\n\t\treturn this._getContextManager().with(context, fn, thisArg, ...args);\n\t}\n\t/**\n\t* Bind a context to a target function or event emitter\n\t*\n\t* @param context context to bind to the event emitter or function. Defaults to the currently active context\n\t* @param target function or event emitter to bind\n\t*/\n\tbind(context, target) {\n\t\treturn this._getContextManager().bind(context, target);\n\t}\n\t/**\n\t* Imperatively sets `context` as active, returning a {@link ContextManagementToken} whose\n\t* {@link ContextManagementToken.dispose} restores the previous context.\n\t*\n\t* This is a delicate, low-level API - prefer {@link with}/{@link bind}, which\n\t* restore context automatically. Use `attach` only to bridge callback\n\t* boundaries that `with` cannot wrap. Call `token.dispose()` when the\n\t* operation is done.\n\t*\n\t* **Caveat for async functions:** If called inside an async function before\n\t* the first `await`, the context change may leak into the caller's context\n\t* and remain active there. Prefer {@link with} for async code.\n\t*\n\t* Support is best-effort and varies by the active ContextManager (see\n\t* {@link ContextManager.attach}); if it does not implement `attach`, this logs\n\t* a warning and returns a no-op token.\n\t*\n\t* @param context The Context to attach\n\t* @returns A {@link ContextManagementToken} whose dispose() restores the previous Context\n\t* @since 1.10.0\n\t* @experimental This API is experimental and may change in minor releases without prior notice.\n\t*/\n\tattach(context) {\n\t\tconst contextManager = this._getContextManager();\n\t\tif (contextManager.attach) return contextManager.attach(context);\n\t\tif (!this._attachUnsupportedWarned) {\n\t\t\tthis._attachUnsupportedWarned = true;\n\t\t\tDiagAPI.instance().warn(\"The current ContextManager does not implement attach(). The context will not be attached. Use a ContextManager that supports attach() (e.g. AsyncLocalStorageContextManager) or use with()/bind() instead.\");\n\t\t}\n\t\treturn NOOP_TOKEN;\n\t}\n\t_getContextManager() {\n\t\treturn getGlobal(API_NAME) || NOOP_CONTEXT_MANAGER;\n\t}\n\t/** Disable and remove the global context manager */\n\tdisable() {\n\t\tthis._getContextManager().disable();\n\t\tunregisterGlobal(API_NAME, DiagAPI.instance());\n\t}\n};\n//#endregion\nexport { ContextAPI };\n\n//# sourceMappingURL=context.mjs.map","import { createContextKey } from \"../context/context.mjs\";\nimport { ContextAPI } from \"../api/context.mjs\";\nimport { NonRecordingSpan } from \"./NonRecordingSpan.mjs\";\n//#region src/trace/context-utils.ts\n/**\n* span key\n*/\nconst SPAN_KEY = createContextKey(\"OpenTelemetry Context Key SPAN\");\n/**\n* Return the span if one exists\n*\n* @param context context to get span from\n*/\nfunction getSpan(context) {\n\treturn context.getValue(SPAN_KEY) || void 0;\n}\n/**\n* Gets the span from the current context, if one exists.\n*/\nfunction getActiveSpan() {\n\treturn getSpan(ContextAPI.getInstance().active());\n}\n/**\n* Set the span on a context\n*\n* @param context context to use as parent\n* @param span span to set active\n*/\nfunction setSpan(context, span) {\n\treturn context.setValue(SPAN_KEY, span);\n}\n/**\n* Remove current span stored in the context\n*\n* @param context context to delete span from\n*/\nfunction deleteSpan(context) {\n\treturn context.deleteValue(SPAN_KEY);\n}\n/**\n* Wrap span context in a NoopSpan and set as span in a new\n* context\n*\n* @param context context to set active span on\n* @param spanContext span context to be wrapped\n*/\nfunction setSpanContext(context, spanContext) {\n\treturn setSpan(context, new NonRecordingSpan(spanContext));\n}\n/**\n* Get the span context of the span if it exists.\n*\n* @param context context to get values from\n*/\nfunction getSpanContext(context) {\n\tvar _getSpan;\n\treturn (_getSpan = getSpan(context)) === null || _getSpan === void 0 ? void 0 : _getSpan.spanContext();\n}\n//#endregion\nexport { deleteSpan, getActiveSpan, getSpan, getSpanContext, setSpan, setSpanContext };\n\n//# sourceMappingURL=context-utils.mjs.map","import { ContextAPI } from \"../api/context.mjs\";\nimport { NonRecordingSpan } from \"./NonRecordingSpan.mjs\";\nimport { getSpanContext, setSpan } from \"./context-utils.mjs\";\nimport { isSpanContextValid } from \"./spancontext-utils.mjs\";\n//#region src/trace/NoopTracer.ts\nconst contextApi = ContextAPI.getInstance();\n/**\n* No-op implementations of {@link Tracer}.\n*/\nvar NoopTracer = class {\n\tstartSpan(name, options, context = contextApi.active()) {\n\t\tif (Boolean(options === null || options === void 0 ? void 0 : options.root)) return new NonRecordingSpan();\n\t\tconst parentFromContext = context && getSpanContext(context);\n\t\tif (isSpanContext(parentFromContext) && isSpanContextValid(parentFromContext)) return new NonRecordingSpan(parentFromContext);\n\t\telse return new NonRecordingSpan();\n\t}\n\tstartActiveSpan(name, arg2, arg3, arg4) {\n\t\tvar _ctx;\n\t\tlet opts;\n\t\tlet ctx;\n\t\tlet fn;\n\t\tif (arguments.length < 2) return;\n\t\telse if (arguments.length === 2) fn = arg2;\n\t\telse if (arguments.length === 3) {\n\t\t\topts = arg2;\n\t\t\tfn = arg3;\n\t\t} else {\n\t\t\topts = arg2;\n\t\t\tctx = arg3;\n\t\t\tfn = arg4;\n\t\t}\n\t\tconst parentContext = (_ctx = ctx) !== null && _ctx !== void 0 ? _ctx : contextApi.active();\n\t\tconst span = this.startSpan(name, opts, parentContext);\n\t\tconst contextWithSpanSet = setSpan(parentContext, span);\n\t\treturn contextApi.with(contextWithSpanSet, fn, void 0, span);\n\t}\n};\nfunction isSpanContext(spanContext) {\n\treturn spanContext !== null && typeof spanContext === \"object\" && \"spanId\" in spanContext && typeof spanContext[\"spanId\"] === \"string\" && \"traceId\" in spanContext && typeof spanContext[\"traceId\"] === \"string\" && \"traceFlags\" in spanContext && typeof spanContext[\"traceFlags\"] === \"number\";\n}\n//#endregion\nexport { NoopTracer };\n\n//# sourceMappingURL=NoopTracer.mjs.map","import { NoopTracer } from \"./NoopTracer.mjs\";\n//#region src/trace/ProxyTracer.ts\nconst NOOP_TRACER = new NoopTracer();\n/**\n* Proxy tracer provided by the proxy tracer provider\n*\n* @since 1.0.0\n*/\nvar ProxyTracer = class {\n\tconstructor(provider, name, version, options) {\n\t\tthis._provider = provider;\n\t\tthis.name = name;\n\t\tthis.version = version;\n\t\tthis.options = options;\n\t}\n\tstartSpan(name, options, context) {\n\t\treturn this._getTracer().startSpan(name, options, context);\n\t}\n\tstartActiveSpan(_name, _options, _context, _fn) {\n\t\tconst tracer = this._getTracer();\n\t\treturn Reflect.apply(tracer.startActiveSpan, tracer, arguments);\n\t}\n\t/**\n\t* Try to get a tracer from the proxy tracer provider.\n\t* If the proxy tracer provider has no delegate, return a noop tracer.\n\t*/\n\t_getTracer() {\n\t\tif (this._delegate) return this._delegate;\n\t\tconst tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);\n\t\tif (!tracer) return NOOP_TRACER;\n\t\tthis._delegate = tracer;\n\t\treturn this._delegate;\n\t}\n};\n//#endregion\nexport { ProxyTracer };\n\n//# sourceMappingURL=ProxyTracer.mjs.map","import { NoopTracer } from \"./NoopTracer.mjs\";\n//#region src/trace/NoopTracerProvider.ts\n/**\n* An implementation of the {@link TracerProvider} which returns an impotent\n* Tracer for all calls to `getTracer`.\n*\n* All operations are no-op.\n*/\nvar NoopTracerProvider = class {\n\tgetTracer(_name, _version, _options) {\n\t\treturn new NoopTracer();\n\t}\n};\n//#endregion\nexport { NoopTracerProvider };\n\n//# sourceMappingURL=NoopTracerProvider.mjs.map","import { ProxyTracer } from \"./ProxyTracer.mjs\";\nimport { NoopTracerProvider } from \"./NoopTracerProvider.mjs\";\n//#region src/trace/ProxyTracerProvider.ts\nconst NOOP_TRACER_PROVIDER = new NoopTracerProvider();\n/**\n* Tracer provider which provides {@link ProxyTracer}s.\n*\n* Before a delegate is set, tracers provided are NoOp.\n* When a delegate is set, traces are provided from the delegate.\n* When a delegate is set after tracers have already been provided,\n* all tracers already provided will use the provided delegate implementation.\n*\n* @deprecated This will be removed in the next major version.\n* @since 1.0.0\n*/\nvar ProxyTracerProvider = class {\n\t/**\n\t* Get a {@link ProxyTracer}\n\t*/\n\tgetTracer(name, version, options) {\n\t\tvar _this$getDelegateTrac;\n\t\treturn (_this$getDelegateTrac = this.getDelegateTracer(name, version, options)) !== null && _this$getDelegateTrac !== void 0 ? _this$getDelegateTrac : new ProxyTracer(this, name, version, options);\n\t}\n\tgetDelegate() {\n\t\tvar _this$_delegate;\n\t\treturn (_this$_delegate = this._delegate) !== null && _this$_delegate !== void 0 ? _this$_delegate : NOOP_TRACER_PROVIDER;\n\t}\n\t/**\n\t* Set the delegate tracer provider\n\t*/\n\tsetDelegate(delegate) {\n\t\tthis._delegate = delegate;\n\t}\n\tgetDelegateTracer(name, version, options) {\n\t\tvar _this$_delegate2;\n\t\treturn (_this$_delegate2 = this._delegate) === null || _this$_delegate2 === void 0 ? void 0 : _this$_delegate2.getTracer(name, version, options);\n\t}\n};\n//#endregion\nexport { ProxyTracerProvider };\n\n//# sourceMappingURL=ProxyTracerProvider.mjs.map","import { getGlobal, registerGlobal, unregisterGlobal } from \"../internal/global-utils.mjs\";\nimport { DiagAPI } from \"./diag.mjs\";\nimport { deleteSpan, getActiveSpan, getSpan, getSpanContext, setSpan, setSpanContext } from \"../trace/context-utils.mjs\";\nimport { isSpanContextValid, wrapSpanContext } from \"../trace/spancontext-utils.mjs\";\nimport { ProxyTracerProvider } from \"../trace/ProxyTracerProvider.mjs\";\n//#region src/api/trace.ts\nconst API_NAME = \"trace\";\n/**\n* Singleton object which represents the entry point to the OpenTelemetry Tracing API\n*\n* @since 1.0.0\n*/\nvar TraceAPI = class TraceAPI {\n\t/** Empty private constructor prevents end users from constructing a new instance of the API */\n\tconstructor() {\n\t\tthis._proxyTracerProvider = new ProxyTracerProvider();\n\t\tthis.wrapSpanContext = wrapSpanContext;\n\t\tthis.isSpanContextValid = isSpanContextValid;\n\t\tthis.deleteSpan = deleteSpan;\n\t\tthis.getSpan = getSpan;\n\t\tthis.getActiveSpan = getActiveSpan;\n\t\tthis.getSpanContext = getSpanContext;\n\t\tthis.setSpan = setSpan;\n\t\tthis.setSpanContext = setSpanContext;\n\t}\n\t/** Get the singleton instance of the Trace API */\n\tstatic getInstance() {\n\t\tif (!this._instance) this._instance = new TraceAPI();\n\t\treturn this._instance;\n\t}\n\t/**\n\t* Set the current global tracer.\n\t*\n\t* @returns true if the tracer provider was successfully registered, else false\n\t*/\n\tsetGlobalTracerProvider(provider) {\n\t\tconst success = registerGlobal(API_NAME, this._proxyTracerProvider, DiagAPI.instance());\n\t\tif (success) this._proxyTracerProvider.setDelegate(provider);\n\t\treturn success;\n\t}\n\t/**\n\t* Returns the global tracer provider.\n\t*/\n\tgetTracerProvider() {\n\t\treturn getGlobal(API_NAME) || this._proxyTracerProvider;\n\t}\n\t/**\n\t* Returns a tracer from the global tracer provider.\n\t*/\n\tgetTracer(name, version) {\n\t\treturn this.getTracerProvider().getTracer(name, version);\n\t}\n\t/** Remove the global tracer provider */\n\tdisable() {\n\t\tunregisterGlobal(API_NAME, DiagAPI.instance());\n\t\tthis._proxyTracerProvider = new ProxyTracerProvider();\n\t}\n};\n//#endregion\nexport { TraceAPI };\n\n//# sourceMappingURL=trace.mjs.map","import { TraceAPI } from \"./api/trace.mjs\";\n//#region src/trace-api.ts\n/**\n* Entrypoint for trace API\n*\n* @since 1.0.0\n*/\nconst trace = TraceAPI.getInstance();\n//#endregion\nexport { trace };\n\n//# sourceMappingURL=trace-api.mjs.map","//#region package.json\nvar version = \"0.1.0-alpha.12\";\n\n//#endregion\n//#region src/metrics.ts\nconst seconds = [\n\t.001,\n\t.005,\n\t.01,\n\t.05,\n\t.1,\n\t.5,\n\t1,\n\t5,\n\t15,\n\t60,\n\t300,\n\t3600\n];\nconst amounts = [\n\t1,\n\t10,\n\t100,\n\t1e3,\n\t1e4,\n\t1e5,\n\t1e6,\n\t1e7\n];\nconst METRIC_REGISTRY = {\n\t\"sorbet.telemetry.callback.failure\": {\n\t\tdescription: \"Isolated Host observation adapter callback failures.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.compaction.duration\": {\n\t\tdescription: \"Monotonic compaction boundary time including unsuccessful attempts.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.compaction.reduction_ratio\": {\n\t\tdescription: \"Relative reduction between comparable full-request token estimates.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"1\",\n\t\tbuckets: [\n\t\t\t-1,\n\t\t\t-.5,\n\t\t\t0,\n\t\t\t.1,\n\t\t\t.25,\n\t\t\t.5,\n\t\t\t.75,\n\t\t\t1\n\t\t]\n\t},\n\t\"sorbet.compaction.attempts\": {\n\t\tdescription: \"Physical compaction model attempts observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{attempt}\"\n\t},\n\t\"sorbet.model.dispatched\": {\n\t\tdescription: \"Pi dispatch attempts after committed write-ahead request evidence.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{request}\"\n\t},\n\t\"process.memory.usage\": {\n\t\tdescription: \"OS resident footprint of the observed Host process.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"process.cpu.time\": {\n\t\tdescription: \"Cumulative Host process CPU time by user and system mode.\",\n\t\tkind: \"counter\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.runtime.heap.used\": {\n\t\tdescription: \"Host V8 managed heap currently occupied.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.heap.total\": {\n\t\tdescription: \"Host V8 allocated managed heap capacity.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.external\": {\n\t\tdescription: \"Host Node externally allocated memory; distinct from resident footprint.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.array_buffers\": {\n\t\tdescription: \"Host Node ArrayBuffer and SharedArrayBuffer allocation footprint.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.limit\": {\n\t\tdescription: \"Known operating-system process memory constraint; absent when unavailable.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.memory.high_water\": {\n\t\tdescription: \"Largest sampled Host RSS since this observation collection began.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.runtime.gc.pause.duration\": {\n\t\tdescription: \"Node performance observer GC pause durations by coarse kind.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"nodejs.eventloop.delay.p99\": {\n\t\tdescription: \"Host event-loop delay p99 during the last sampled interval.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"nodejs.eventloop.utilization\": {\n\t\tdescription: \"Host event-loop utilization during the last sampled interval.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.runtime.sample.age\": {\n\t\tdescription: \"Monotonic age since the last successful Host resource sample; stale gauges are omitted.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.runtime.sample.failed\": {\n\t\tdescription: \"Unavailable OS or runtime sampling observations by bounded cause.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{sample}\"\n\t},\n\t\"sorbet.run.accepted\": {\n\t\tdescription: \"Newly committed durable Run admissions observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{run}\"\n\t},\n\t\"sorbet.run.oldest_active.age\": {\n\t\tdescription: \"Monotonic age of the oldest locally owned undrained execution.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.run.resource_wait.duration\": {\n\t\tdescription: \"Monotonic wait for the existing execution resource owner.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.run.cancel_to_drain.duration\": {\n\t\tdescription: \"Owner-measured cancellation to actual resource drain time.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.retry_backoff.duration\": {\n\t\tdescription: \"Actual scheduled retry wait until attempt start or interruption.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.run.waiting\": {\n\t\tdescription: \"Observed pending owner waits; nested reasons overlap and must not be summed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{wait}\"\n\t},\n\t\"sorbet.run.wait.oldest.age\": {\n\t\tdescription: \"Monotonic age of the oldest observed pending wait by finite reason.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.wait.evicted\": {\n\t\tdescription: \"Wait observations rejected or evicted from the bounded live inventory.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{wait}\"\n\t},\n\t\"sorbet.run.active\": {\n\t\tdescription: \"Locally owned executions from actual start through confirmed drain.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{run}\"\n\t},\n\t\"sorbet.recovery.unresolved\": {\n\t\tdescription: \"Projected open or unknown work with explicit inventory scope.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{item}\"\n\t},\n\t\"sorbet.recovery.catalog_incomplete\": {\n\t\tdescription: \"One when the latest historical catalogue census is incomplete.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.recovery.sessions\": {\n\t\tdescription: \"Observed or unavailable Sessions within the indicated inventory scope.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{session}\"\n\t},\n\t\"sorbet.context.source.estimated_tokens\": {\n\t\tdescription: \"Character-based component estimates partitioning actual dispatched input.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.context.source.change.tokens\": {\n\t\tdescription: \"Absolute component token changes between comparable requests in each Session, by increase or decrease; estimates only.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{token}\"\n\t},\n\t\"sorbet.tool.output.bytes\": {\n\t\tdescription: \"UTF-8 text or archive bytes at the existing output shaping boundary.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"By\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.tool.output.estimated_tokens\": {\n\t\tdescription: \"Character-based Tool text estimates before and after limiting.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.session.delivery.backlog\": {\n\t\tdescription: \"Ledger-owned pending, dispatching or accepted-but-not-included deliveries.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{delivery}\"\n\t},\n\t\"sorbet.session.delivery.oldest_age\": {\n\t\tdescription: \"Wall-clock bound of the oldest eligible pending delivery with known enqueue time.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.session.delivery.unknown_age\": {\n\t\tdescription: \"Pending deliveries whose historical enqueue age is unavailable.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{delivery}\"\n\t},\n\t\"sorbet.session.delivery.to_request.duration\": {\n\t\tdescription: \"Durable enqueue to evidenced request inclusion wall-clock bound; not model attention.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.session.delivery.transition\": {\n\t\tdescription: \"Newly committed child delivery transitions observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{transition}\"\n\t},\n\t\"sorbet.child.active\": {\n\t\tdescription: \"Child Sessions with nonterminal Runs in observed Units.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{agent}\"\n\t},\n\t\"sorbet.child.completion_wait.duration\": {\n\t\tdescription: \"Monotonic parent wait or join duration by owner outcome.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.mounts\": {\n\t\tdescription: \"Owner-reported mount inventory by phase, execution profile and pending cause.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{mount}\"\n\t},\n\t\"sorbet.plugin.invocation.queue_wait.duration\": {\n\t\tdescription: \"Native owner invocation wait before acquiring its actual execution slot.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.callbacks.pending\": {\n\t\tdescription: \"Isolate Host callbacks still owned, including work surviving process exit.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{callback}\"\n\t},\n\t\"sorbet.plugin.native.dependencies\": {\n\t\tdescription: \"Cordis-owned Fiber inventory by actual lifecycle state.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{dependency}\"\n\t},\n\t\"sorbet.plugin.borrows\": {\n\t\tdescription: \"Current retained activation and dependency borrows in observed scopes.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{borrow}\"\n\t},\n\t\"sorbet.plugin.cleanup_uncertain\": {\n\t\tdescription: \"Composition activations lacking confirmed owner cleanup.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{activation}\"\n\t},\n\t\"sorbet.plugin.activation.duration\": {\n\t\tdescription: \"Monotonic owner activation time by execution profile and result.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.retirement.duration\": {\n\t\tdescription: \"Monotonic owner retirement time including deadline and late-cleanup results.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.worker.capacity_utilization\": {\n\t\tdescription: \"Starting and owned isolate processes divided by configured loader capacity.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.plugin.invocations.pending\": {\n\t\tdescription: \"Actual owner pending invocations by execution profile.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{call}\"\n\t},\n\t\"sorbet.plugin.native.backend\": {\n\t\tdescription: \"Native host inventory by reported backend drain proof state.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{host}\"\n\t},\n\t\"sorbet.plugin.native.cleanup_uncertain\": {\n\t\tdescription: \"Released or uncertain native hosts without backend drain proof.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{host}\"\n\t},\n\t\"sorbet.plugin.isolate.output_queue.bytes\": {\n\t\tdescription: \"Current outgoing transport bytes owned by observed isolate loaders.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.plugin.isolate.ipc.bytes\": {\n\t\tdescription: \"Already encoded or received protocol frame sizes; not peer receipt proof.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"By\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.plugin.isolate.protocol_failure\": {\n\t\tdescription: \"Concrete protocol framing, schema, transport or callback failures.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.plugin.worker.rss_sum\": {\n\t\tdescription: \"Sum of sampled host-visible owned PID RSS; shared pages may be counted repeatedly.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.run.terminal\": {\n\t\tdescription: \"Newly committed authoritative Run terminals observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{run}\"\n\t},\n\t\"sorbet.run.execution_episode.duration\": {\n\t\tdescription: \"Owner-measured Run admission to terminal within a single process episode.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.context.capacity_failure\": {\n\t\tdescription: \"Actual owner request-capacity failures; near-capacity estimates alone are not failures.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.approval.review.duration\": {\n\t\tdescription: \"Monotonic whole approval reviewer boundary, not physical Provider latency.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.approval.completion_wait.duration\": {\n\t\tdescription: \"Caller wait for opaque reviewer completion including timeout or cancellation; no drain proof.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.tool.inflight\": {\n\t\tdescription: \"Authorized actual Tool invocations from dispatch through owner settlement.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{tool}\"\n\t},\n\t\"sorbet.context.prepare.duration\": {\n\t\tdescription: \"Monotonic Context preparation or rebase time at its existing owner boundary.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.context.completed.tokens\": {\n\t\tdescription: \"Pi-normalized completed-response Context anchor including output; distinct from dispatched input.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.context.completed.utilization\": {\n\t\tdescription: \"Pi-normalized completed-response Context anchor divided by known model window.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"1\",\n\t\tbuckets: [\n\t\t\t.25,\n\t\t\t.5,\n\t\t\t.75,\n\t\t\t.9,\n\t\t\t1\n\t\t]\n\t},\n\t\"sorbet.context.request.tokens\": {\n\t\tdescription: \"Character-based actual dispatched input estimate, not completed response or cumulative billed input.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.context.request.utilization\": {\n\t\tdescription: \"Character-based dispatched input estimate divided by known model window.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"1\",\n\t\tbuckets: [\n\t\t\t.25,\n\t\t\t.5,\n\t\t\t.75,\n\t\t\t.9,\n\t\t\t1\n\t\t]\n\t},\n\t\"sorbet.model.request.duration\": {\n\t\tdescription: \"Physical Pi dispatch to complete response, excluding Context and response commit.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.token.usage\": {\n\t\tdescription: \"Reported per-request token categories by purpose and explicit provider or reviewer source.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"{token}\",\n\t\tbuckets: amounts\n\t},\n\t\"sorbet.model.first_token.duration\": {\n\t\tdescription: \"Pi dispatch to first nonempty text delta; silent or Tool-only output is unavailable.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.stream.duration\": {\n\t\tdescription: \"First nonempty Pi text delta to complete response.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.response_commit.duration\": {\n\t\tdescription: \"Monotonic durable response commit time after Pi settlement.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.model.cost\": {\n\t\tdescription: \"Reported request pricing estimates by provider or reviewer source, including committed failures; not invoice spend.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"USD\",\n\t\tbuckets: [\n\t\t\t.001,\n\t\t\t.01,\n\t\t\t.1,\n\t\t\t1,\n\t\t\t10,\n\t\t\t100\n\t\t]\n\t},\n\t\"sorbet.model.retry\": {\n\t\tdescription: \"Owner-scheduled retry attempts distinct from logical model calls.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{attempt}\"\n\t},\n\t\"sorbet.model.request.unknown\": {\n\t\tdescription: \"Newly committed abandoned request uncertainty; not proof of no provider dispatch.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{request}\"\n\t},\n\t\"sorbet.tool.execution.duration\": {\n\t\tdescription: \"Monotonic authorized Tool invocation duration by actual outcome.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.tool.permission_wait.duration\": {\n\t\tdescription: \"Monotonic permission resolution time separate from Tool execution.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.tool.effect.outcome\": {\n\t\tdescription: \"Newly committed Effect terminals with unknown kept distinct from success and failure.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{effect}\"\n\t},\n\t\"sorbet.journal.append_batch.duration\": {\n\t\tdescription: \"Monotonic physical JSONL batch append time through configured durability boundary.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.journal.append.failure\": {\n\t\tdescription: \"Failed durable JSONL append batches observed in this collection.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.journal.append_queue.facts\": {\n\t\tdescription: \"Prepared facts still awaiting their durable append boundary.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{fact}\"\n\t},\n\t\"sorbet.journal.append_queue.bytes\": {\n\t\tdescription: \"Already encoded prepared fact bytes awaiting durable append.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.journal.projection.duration\": {\n\t\tdescription: \"Actual in-memory usage or inspection projection time; excludes Journal I/O.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.journal.file.bytes\": {\n\t\tdescription: \"Known physical JSONL bytes in bounded observed Sessions, not all catalogue storage.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.journal.files.unavailable\": {\n\t\tdescription: \"Observed files whose current physical size is not established.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{file}\"\n\t},\n\t\"sorbet.journal.reopen.duration\": {\n\t\tdescription: \"Monotonic JSONL reopen and validation time by outcome.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.worker.tracked_processes\": {\n\t\tdescription: \"Bounded diagnostic PID inventory size, distinct from actual owner process counts.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{process}\"\n\t},\n\t\"sorbet.plugin.worker.processes\": {\n\t\tdescription: \"Actual owned isolate processes summed across bounded observed loader inventories.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{process}\"\n\t},\n\t\"sorbet.plugin.worker.exits\": {\n\t\tdescription: \"Observed isolate exits by original owner termination cause.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{exit}\"\n\t},\n\t\"sorbet.plugin.invocation.duration\": {\n\t\tdescription: \"Owner callback or IPC service time including joined Host work.\",\n\t\tkind: \"histogram\",\n\t\tunit: \"s\",\n\t\tbuckets: seconds\n\t},\n\t\"sorbet.plugin.diagnostic.dropped\": {\n\t\tdescription: \"Worker diagnostic lines discarded by explicit capture policy or bounds.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{line}\"\n\t},\n\t\"sorbet.telemetry.recording.last_drop.time\": {\n\t\tdescription: \"Unix timestamp of the latest rejected or unacknowledged local record; zero means none observed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.recording.dropped\": {\n\t\tdescription: \"Local boundary records rejected or unacknowledged after write failure.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.recording.write.failure\": {\n\t\tdescription: \"Failed local recording write batches.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.telemetry.recording.retention.failure\": {\n\t\tdescription: \"Incomplete or failed local recording retention passes.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.telemetry.recording.retention.evicted\": {\n\t\tdescription: \"Historical recording segments removed by retention or capacity policy.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{file}\"\n\t},\n\t\"sorbet.telemetry.recording.pending.records\": {\n\t\tdescription: \"Queued records including the one in-flight write batch.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.recording.pending.bytes\": {\n\t\tdescription: \"Conservative local recording queue quota usage, not measured heap.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t},\n\t\"sorbet.telemetry.recording.pending.age\": {\n\t\tdescription: \"Monotonic age of the oldest queued local observation.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.recording.failed\": {\n\t\tdescription: \"One after a local write failure until a later batch is written successfully.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"1\"\n\t},\n\t\"sorbet.telemetry.correlation.evicted\": {\n\t\tdescription: \"Tracing associations lost to bounded cache eviction or expiry.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{entry}\"\n\t},\n\t\"sorbet.telemetry.history.evicted\": {\n\t\tdescription: \"Volatile history removed by retention or capacity; independent of delivery.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.delivery.last_gap.time\": {\n\t\tdescription: \"Unix timestamp of the latest unavailable sequence coverage by selected signal.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.delivery.gap\": {\n\t\tdescription: \"Sequence coverage unavailable before a selected exporter could inspect it.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.journal.append.last_failure.time\": {\n\t\tdescription: \"Unix timestamp of the latest observed failed durable append; zero means none observed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.export.last_failure.time\": {\n\t\tdescription: \"Unix timestamp of the latest failed or timed-out export; zero means none observed.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"s\"\n\t},\n\t\"sorbet.telemetry.dropped\": {\n\t\tdescription: \"Rejected observations or metric samples; normal history eviction is separate.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{observation}\"\n\t},\n\t\"sorbet.telemetry.export.failure\": {\n\t\tdescription: \"Metadata export failures or deadlines; execution remains independent.\",\n\t\tkind: \"counter\",\n\t\tunit: \"{failure}\"\n\t},\n\t\"sorbet.telemetry.queue.bytes\": {\n\t\tdescription: \"Current scalar diagnostic ring footprint.\",\n\t\tkind: \"gauge\",\n\t\tunit: \"By\"\n\t}\n};\nconst attributeKeys = [\n\t\"call_type\",\n\t\"cancellation\",\n\t\"cpu_mode\",\n\t\"direction\",\n\t\"gc_kind\",\n\t\"kind\",\n\t\"measurement\",\n\t\"origin\",\n\t\"outcome\",\n\t\"owner\",\n\t\"phase\",\n\t\"profile\",\n\t\"purpose\",\n\t\"reason\",\n\t\"route\",\n\t\"section\",\n\t\"state\",\n\t\"token_type\"\n];\nconst emptyAttributes = Object.freeze({});\n/** Only the Host adapter records instruments; execution owners never receive this collector. */\nvar MetricAggregation = class {\n\t#series = /* @__PURE__ */ new Set();\n\t#limit;\n\t#index = /* @__PURE__ */ new Map();\n\tdropped = 0;\n\tconstructor(limit) {\n\t\tthis.#limit = limit;\n\t}\n\trecord(name, value, attributes = emptyAttributes) {\n\t\tif (!Number.isFinite(value) || value < 0 && name !== \"sorbet.compaction.reduction_ratio\") {\n\t\t\tthis.dropped += 1;\n\t\t\treturn;\n\t\t}\n\t\tlet node = this.#index.get(name);\n\t\tif (node !== void 0 && attributes !== emptyAttributes) for (const key of attributeKeys) {\n\t\t\tconst label = attributes[key];\n\t\t\tif (label === void 0) continue;\n\t\t\tnode = node.children[key]?.get(label);\n\t\t\tif (node === void 0) break;\n\t\t}\n\t\tlet series = node?.series;\n\t\tif (series === void 0) {\n\t\t\tif (this.#series.size >= this.#limit) {\n\t\t\t\tthis.dropped += 1;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet root = this.#index.get(name);\n\t\t\tif (root === void 0) {\n\t\t\t\troot = {\n\t\t\t\t\tchildren: {},\n\t\t\t\t\tchildCount: 0\n\t\t\t\t};\n\t\t\t\tthis.#index.set(name, root);\n\t\t\t}\n\t\t\tlet insertionNode = root;\n\t\t\tlet labels;\n\t\t\tfor (const key of attributeKeys) {\n\t\t\t\tconst label = attributes[key];\n\t\t\t\tif (label === void 0) continue;\n\t\t\t\tlabels ??= {};\n\t\t\t\tlabels[key] = label;\n\t\t\t\tlet children = insertionNode.children[key];\n\t\t\t\tif (children === void 0) {\n\t\t\t\t\tchildren = /* @__PURE__ */ new Map();\n\t\t\t\t\tinsertionNode.children[key] = children;\n\t\t\t\t}\n\t\t\t\tlet child = children.get(label);\n\t\t\t\tif (child === void 0) {\n\t\t\t\t\tchild = {\n\t\t\t\t\t\tchildren: {},\n\t\t\t\t\t\tchildCount: 0\n\t\t\t\t\t};\n\t\t\t\t\tchildren.set(label, child);\n\t\t\t\t\tinsertionNode.childCount += 1;\n\t\t\t\t}\n\t\t\t\tinsertionNode = child;\n\t\t\t}\n\t\t\tconst instrument = METRIC_REGISTRY[name];\n\t\t\tconst bounds = instrument.buckets ?? [];\n\t\t\tseries = {\n\t\t\t\tname,\n\t\t\t\tkind: instrument.kind,\n\t\t\t\tunit: instrument.unit,\n\t\t\t\tattributes: labels ?? emptyAttributes,\n\t\t\t\tvalue: 0,\n\t\t\t\tcount: 0,\n\t\t\t\tbounds,\n\t\t\t\tbuckets: Array.from({ length: bounds.length + 1 }, () => 0),\n\t\t\t\trecordedAt: Date.now()\n\t\t\t};\n\t\t\tinsertionNode.series = series;\n\t\t\tthis.#series.add(series);\n\t\t}\n\t\tseries.count += 1;\n\t\tseries.recordedAt = Date.now();\n\t\tif (series.kind === \"gauge\" || name === \"process.cpu.time\") series.value = value;\n\t\telse series.value += value;\n\t\tif (series.kind === \"histogram\") {\n\t\t\tconst index = series.bounds.findIndex((bound) => value <= bound);\n\t\t\tconst bucket = index === -1 ? series.bounds.length : index;\n\t\t\tseries.buckets[bucket] = (series.buckets[bucket] ?? 0) + 1;\n\t\t}\n\t}\n\tsnapshot() {\n\t\treturn structuredClone([...this.#series.values()].map((series) => ({\n\t\t\t...series,\n\t\t\trecordedAt: new Date(series.recordedAt).toISOString()\n\t\t})));\n\t}\n\tremove(name, attributes = emptyAttributes) {\n\t\tconst node = this.#index.get(name);\n\t\tif (node === void 0) return;\n\t\tthis.#removePath(node, attributes, 0);\n\t\tif (node.series === void 0 && node.childCount === 0) this.#index.delete(name);\n\t}\n\tremoveAll(name) {\n\t\tthis.#index.delete(name);\n\t\tfor (const series of this.#series) if (series.name === name) this.#series.delete(series);\n\t}\n\t#removePath(node, attributes, position) {\n\t\tconst key = attributeKeys[position];\n\t\tif (key === void 0) {\n\t\t\tif (node.series !== void 0) this.#series.delete(node.series);\n\t\t\tnode.series = void 0;\n\t\t\treturn;\n\t\t}\n\t\tconst label = attributes[key];\n\t\tif (label === void 0) {\n\t\t\tthis.#removePath(node, attributes, position + 1);\n\t\t\treturn;\n\t\t}\n\t\tconst children = node.children[key];\n\t\tif (children === void 0) return;\n\t\tconst child = children.get(label);\n\t\tif (child === void 0) return;\n\t\tthis.#removePath(child, attributes, position + 1);\n\t\tif (child.series === void 0 && child.childCount === 0) {\n\t\t\tchildren.delete(label);\n\t\t\tnode.childCount -= 1;\n\t\t\tif (children.size === 0) delete node.children[key];\n\t\t}\n\t}\n};\n\n//#endregion\nexport { MetricAggregation as n, version as r, METRIC_REGISTRY as t };\n//# sourceMappingURL=metrics-D3AxebnN.js.map","import { createContextKey } from \"@opentelemetry/api\";\n//#region src/trace/suppress-tracing.ts\nconst SUPPRESS_TRACING_KEY = createContextKey(\"OpenTelemetry SDK Context Key SUPPRESS_TRACING\");\nfunction suppressTracing(context) {\n\treturn context.setValue(SUPPRESS_TRACING_KEY, true);\n}\nfunction unsuppressTracing(context) {\n\treturn context.deleteValue(SUPPRESS_TRACING_KEY);\n}\nfunction isTracingSuppressed(context) {\n\treturn context.getValue(SUPPRESS_TRACING_KEY) === true;\n}\n//#endregion\nexport { isTracingSuppressed, suppressTracing, unsuppressTracing };\n\n//# sourceMappingURL=suppress-tracing.mjs.map","//#region src/internal/validators.ts\nconst VALID_KEY_CHAR_RANGE = \"[_0-9a-z-*/]\";\nconst VALID_KEY_REGEX = new RegExp(`^(?:${`[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`}|${`[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`})$`);\nconst VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nconst INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n/**\n* Key is opaque string up to 256 characters printable. It MUST begin with a\n* lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n* underscores _, dashes -, asterisks *, and forward slashes /.\n* For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n* vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n* see https://www.w3.org/TR/trace-context/#key\n*/\nfunction validateKey(key) {\n\treturn VALID_KEY_REGEX.test(key);\n}\n/**\n* Value is opaque string up to 256 characters printable ASCII RFC0020\n* characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n*/\nfunction validateValue(value) {\n\treturn VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);\n}\n//#endregion\nexport { validateKey, validateValue };\n\n//# sourceMappingURL=validators.mjs.map","import { validateKey, validateValue } from \"../internal/validators.mjs\";\n//#region src/trace/TraceState.ts\nconst MAX_TRACE_STATE_ITEMS = 32;\nconst MAX_TRACE_STATE_LEN = 512;\nconst LIST_MEMBERS_SEPARATOR = \",\";\nconst LIST_MEMBER_KEY_VALUE_SPLITTER = \"=\";\n/**\n* TraceState must be a class and not a simple object type because of the spec\n* requirement (https://www.w3.org/TR/trace-context/#tracestate-field).\n*\n* Here is the list of allowed mutations:\n* - New key-value pair should be added into the beginning of the list\n* - The value of any key can be updated. Modified keys MUST be moved to the\n* beginning of the list.\n*/\nvar TraceState = class TraceState {\n\t_length;\n\t_rawTraceState;\n\t_internalState;\n\tconstructor(rawTraceState) {\n\t\tthis._rawTraceState = typeof rawTraceState === \"string\" ? rawTraceState : \"\";\n\t\tthis._length = this._rawTraceState.length;\n\t}\n\tset(key, value) {\n\t\tif (!validateKey(key) || !validateValue(value)) return this;\n\t\tconst currState = this._getState();\n\t\tconst currValue = currState.get(key);\n\t\tlet newLength = this._length;\n\t\tif (typeof currValue === \"string\") newLength += value.length - currValue.length;\n\t\telse {\n\t\t\tif (currState.size >= MAX_TRACE_STATE_ITEMS) return this;\n\t\t\tnewLength += key.length + value.length + (currState.size > 0 ? 2 : 1);\n\t\t}\n\t\tif (newLength > MAX_TRACE_STATE_LEN) return this;\n\t\tconst newState = new Map(currState);\n\t\tnewState.delete(key);\n\t\tnewState.set(key, value);\n\t\treturn this._fromState(newState, newLength);\n\t}\n\tunset(key) {\n\t\tconst currState = this._getState();\n\t\tconst currValue = currState.get(key);\n\t\tif (typeof currValue !== \"string\") return this;\n\t\tlet newLength = this._length - (key.length + currValue.length + 1);\n\t\tif (currState.size > 1) newLength = newLength - 1;\n\t\tconst newState = new Map(currState);\n\t\tnewState.delete(key);\n\t\treturn this._fromState(newState, newLength);\n\t}\n\tget(key) {\n\t\treturn this._getState().get(key);\n\t}\n\tserialize() {\n\t\tlet serialized = \"\";\n\t\tlet index = 0;\n\t\tfor (const entry of this._getState()) {\n\t\t\tif (index > 0) serialized = LIST_MEMBERS_SEPARATOR + serialized;\n\t\t\tserialized = `${entry[0]}${LIST_MEMBER_KEY_VALUE_SPLITTER}${entry[1]}` + serialized;\n\t\t\tindex++;\n\t\t}\n\t\treturn serialized;\n\t}\n\t_getState() {\n\t\tif (this._internalState) return this._internalState;\n\t\tconst vendorMembers = this._rawTraceState.split(LIST_MEMBERS_SEPARATOR);\n\t\tconst vendorEntries = /* @__PURE__ */ new Map();\n\t\tlet currentLength = 0;\n\t\tfor (const member of vendorMembers) {\n\t\t\tconst m = member.trim();\n\t\t\tconst idx = m.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);\n\t\t\tif (idx === -1) continue;\n\t\t\tconst key = m.slice(0, idx);\n\t\t\tconst value = m.slice(idx + 1);\n\t\t\tif (!validateKey(key) || !validateValue(value)) continue;\n\t\t\tconst futureLength = currentLength + m.length + (vendorEntries.size > 0 ? 1 : 0);\n\t\t\tif (futureLength > MAX_TRACE_STATE_LEN) continue;\n\t\t\tvendorEntries.set(key, value);\n\t\t\tcurrentLength = futureLength;\n\t\t\tif (vendorEntries.size >= MAX_TRACE_STATE_ITEMS) break;\n\t\t}\n\t\tthis._length = currentLength;\n\t\tthis._internalState = new Map(Array.from(vendorEntries.entries()).reverse());\n\t\treturn this._internalState;\n\t}\n\t_fromState(state, length) {\n\t\tconst traceState = Object.create(TraceState.prototype);\n\t\ttraceState._internalState = state;\n\t\ttraceState._length = length;\n\t\treturn traceState;\n\t}\n};\n//#endregion\nexport { TraceState };\n\n//# sourceMappingURL=TraceState.mjs.map","import { isTracingSuppressed } from \"./suppress-tracing.mjs\";\nimport { TraceState as TraceState$1 } from \"./TraceState.mjs\";\nimport { TraceFlags, isSpanContextValid, trace } from \"@opentelemetry/api\";\n//#region src/trace/W3CTraceContextPropagator.ts\nconst TRACE_PARENT_HEADER = \"traceparent\";\nconst TRACE_STATE_HEADER = \"tracestate\";\nconst VERSION = \"00\";\nconst TRACE_PARENT_REGEX = new RegExp(`^\\\\s?((?!ff)[\\\\da-f]{2})-((?![0]{32})[\\\\da-f]{32})-((?![0]{16})[\\\\da-f]{16})-([\\\\da-f]{2})(-.*)?\\\\s?$`);\n/**\n* Parses information from the [traceparent] span tag and converts it into {@link SpanContext}\n* @param traceParent - A meta property that comes from server.\n* It should be dynamically generated server side to have the server's request trace Id,\n* a parent span Id that was set on the server's request span,\n* and the trace flags to indicate the server's sampling decision\n* (01 = sampled, 00 = not sampled).\n* for example: '{version}-{traceId}-{spanId}-{sampleDecision}'\n* For more information see {@link https://www.w3.org/TR/trace-context/}\n*/\nfunction parseTraceParent(traceParent) {\n\tconst match = TRACE_PARENT_REGEX.exec(traceParent);\n\tif (!match) return null;\n\tif (match[1] === \"00\" && match[5]) return null;\n\treturn {\n\t\ttraceId: match[2],\n\t\tspanId: match[3],\n\t\ttraceFlags: parseInt(match[4], 16)\n\t};\n}\n/**\n* Propagates {@link SpanContext} through Trace Context format propagation.\n*\n* Based on the Trace Context specification:\n* https://www.w3.org/TR/trace-context/\n*/\nvar W3CTraceContextPropagator = class {\n\tinject(context, carrier, setter) {\n\t\tconst spanContext = trace.getSpanContext(context);\n\t\tif (!spanContext || isTracingSuppressed(context) || !isSpanContextValid(spanContext)) return;\n\t\tconst traceParent = `${VERSION}-${spanContext.traceId}-${spanContext.spanId}-0${Number(spanContext.traceFlags || TraceFlags.NONE).toString(16)}`;\n\t\tsetter.set(carrier, TRACE_PARENT_HEADER, traceParent);\n\t\tif (spanContext.traceState) setter.set(carrier, TRACE_STATE_HEADER, spanContext.traceState.serialize());\n\t}\n\textract(context, carrier, getter) {\n\t\tconst traceParentHeader = getter.get(carrier, TRACE_PARENT_HEADER);\n\t\tif (!traceParentHeader) return context;\n\t\tconst traceParent = Array.isArray(traceParentHeader) ? traceParentHeader[0] : traceParentHeader;\n\t\tif (typeof traceParent !== \"string\") return context;\n\t\tconst spanContext = parseTraceParent(traceParent);\n\t\tif (!spanContext) return context;\n\t\tspanContext.isRemote = true;\n\t\tconst traceStateHeader = getter.get(carrier, TRACE_STATE_HEADER);\n\t\tif (traceStateHeader) {\n\t\t\tconst state = Array.isArray(traceStateHeader) ? traceStateHeader.join(\",\") : traceStateHeader;\n\t\t\tspanContext.traceState = new TraceState$1(typeof state === \"string\" ? state : void 0);\n\t\t}\n\t\treturn trace.setSpanContext(context, spanContext);\n\t}\n\tfields() {\n\t\treturn [TRACE_PARENT_HEADER, TRACE_STATE_HEADER];\n\t}\n};\n//#endregion\nexport { TRACE_PARENT_HEADER, TRACE_STATE_HEADER, W3CTraceContextPropagator, parseTraceParent };\n\n//# sourceMappingURL=W3CTraceContextPropagator.mjs.map"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24],"mappings":";AACA,MAAMA,YAAU;;;;ACChB,MAAM,KAAK;;;;;;;;;;;;;;;;;AAiBX,SAAS,wBAAwB,YAAY;CAC5C,MAAM,mCAAmC,IAAI,IAAI,CAAC,WAAW,CAAC;CAC9D,MAAM,mCAAmC,IAAI,KAAK;CAClD,MAAM,iBAAiB,WAAW,MAAM,GAAG;AAC3C,KAAI,CAAC,eAAgB,cAAa;CAClC,MAAM,mB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A;EACD;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,2BAA2B;EAC1B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,wBAAwB;EACvB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oBAAoB;EACnB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,6BAA6B;EAC5B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,kCAAkC;EACjC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,+BAA+B;EAC9B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,6BAA6B;EAC5B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uBAAuB;EACtB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,sBAAsB;EACrB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qBAAqB;EACpB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uCAAuC;EACtC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,+CAA+C;EAC9C,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uBAAuB;EACtB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,yCAAyC;EACxC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wBAAwB;EACvB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gDAAgD;EAC/C,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,yBAAyB;EACxB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,6CAA6C;EAC5C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4CAA4C;EAC3C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,uBAAuB;EACtB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,yCAAyC;EACxC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,4CAA4C;EAC3C,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wBAAwB;EACvB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wCAAwC;EACvC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;GACR;GACA;GACA;GACA;GACA;GACA;EACD;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;GACR;GACA;GACA;GACA;GACA;GACA;EACD;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,yCAAyC;EACxC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,qBAAqB;EACpB,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;GACR;GACA;GACA;GACA;GACA;GACA;GACA;EACD;CACD,sBAAsB;EACrB,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,kCAAkC;EACjC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,wCAAwC;EACvC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,wCAAwC;EACvC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,6BAA6B;EAC5B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,kCAAkC;EACjC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,kCAAkC;EACjC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8BAA8B;EAC7B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN,SAAS;EACT;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,6CAA6C;EAC5C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,sCAAsC;EACrC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4CAA4C;EAC3C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gDAAgD;EAC/C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gDAAgD;EAC/C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,8CAA8C;EAC7C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4CAA4C;EAC3C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,0CAA0C;EACzC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,qCAAqC;EACpC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,wCAAwC;EACvC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,oCAAoC;EACnC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,2CAA2C;EAC1C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,iCAAiC;EAChC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,2CAA2C;EAC1C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,6CAA6C;EAC5C,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,4BAA4B;EAC3B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,mCAAmC;EAClC,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD,gCAAgC;EAC/B,aAAa;EACb,MAAM;EACN,MAAM;EACN;CACD;AACD,MAAM,gBAAgB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,M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