@securitydept/client 0.3.0-beta.5 → 0.3.0-beta.6

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 (32) hide show
  1. package/dist/{create-Bm-XRA3G.mjs → create-99Ksgl_O.mjs} +13 -634
  2. package/dist/create-99Ksgl_O.mjs.map +1 -0
  3. package/dist/handle-TnxwtQ4T.mjs +634 -0
  4. package/dist/handle-TnxwtQ4T.mjs.map +1 -0
  5. package/dist/{index-Ch8lrE44.d.mts → index-Cg_iY2yY.d.mts} +4 -21
  6. package/dist/{index-D5mW18cM.d.mts → index-DmIapvr-.d.mts} +50 -29
  7. package/dist/{index-BT-u3qNI.d.mts → index-O1A3CdBV.d.mts} +4 -18
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +9 -8
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/{router-BJ8LqNJ1.mjs → router-DUh3bhLy.mjs} +4 -4
  12. package/dist/{router-BJ8LqNJ1.mjs.map → router-DUh3bhLy.mjs.map} +1 -1
  13. package/dist/rx/index.d.mts +1 -2
  14. package/dist/rx/index.mjs +1 -1
  15. package/dist/{rx-BoB32Dzg.mjs → rx-B3OU17wu.mjs} +1 -2
  16. package/dist/{rx-BoB32Dzg.mjs.map → rx-B3OU17wu.mjs.map} +1 -1
  17. package/dist/server/index.d.mts +1 -2
  18. package/dist/server/index.mjs +1 -1
  19. package/dist/server/index.mjs.map +1 -1
  20. package/dist/test/index.d.mts +2 -3
  21. package/dist/test/index.mjs +3 -3
  22. package/dist/test/index.mjs.map +1 -1
  23. package/dist/{uri-string-BfnIT4gJ.mjs → uri-string-BPNbIMgv.mjs} +5 -3
  24. package/dist/{uri-string-BfnIT4gJ.mjs.map → uri-string-BPNbIMgv.mjs.map} +1 -1
  25. package/dist/web/index.d.mts +16 -4
  26. package/dist/web/index.mjs +27 -21
  27. package/dist/web/index.mjs.map +1 -1
  28. package/dist/webext/index.d.mts +2 -3
  29. package/dist/webext/index.mjs +12 -10
  30. package/dist/webext/index.mjs.map +1 -1
  31. package/package.json +5 -5
  32. package/dist/create-Bm-XRA3G.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle-TnxwtQ4T.mjs","names":["UserRecoveryValue","ClientErrorKindValue","defineType"],"sources":["../src/errors/presentation-descriptor.ts","../src/signals/signal.ts","../src/popup/errors.ts","../src/protocol/json-rpc/types.ts","../src/protocol/json-rpc/create.ts","../src/popup/session.ts","../src/popup/handle.ts"],"sourcesContent":["import { ClientError } from \"./client-error\";\nimport {\n\ttype ClientErrorKind,\n\tClientErrorKind as ClientErrorKindValue,\n\ttype ErrorPresentation,\n\ttype ErrorPresentationActionDescriptor,\n\ttype ErrorPresentationDescriptor,\n\tErrorPresentationTone,\n\ttype ReadErrorPresentationDescriptorOptions,\n\ttype UserRecovery,\n\tUserRecovery as UserRecoveryValue,\n} from \"./types\";\n\ninterface ClientErrorLike {\n\tcode: string | null;\n\tkind: ClientErrorKind | null;\n\trecovery: UserRecovery;\n\tretryable: boolean;\n\tsource?: string;\n\tpresentation?: ErrorPresentation;\n}\n\nconst DEFAULT_RECOVERY_LABELS: Record<UserRecovery, string> = {\n\t[UserRecoveryValue.None]: \"\",\n\t[UserRecoveryValue.Retry]: \"Try again\",\n\t[UserRecoveryValue.RestartFlow]: \"Restart flow\",\n\t[UserRecoveryValue.Reauthenticate]: \"Sign in again\",\n\t[UserRecoveryValue.ContactSupport]: \"Contact support\",\n};\n\nconst userRecoveryValues = new Set<string>(Object.values(UserRecoveryValue));\nconst clientErrorKindValues = new Set<string>(\n\tObject.values(ClientErrorKindValue),\n);\n\nexport function readErrorPresentationDescriptor(\n\terror: unknown,\n\toptions: ReadErrorPresentationDescriptorOptions = {},\n): ErrorPresentationDescriptor {\n\tconst clientError =\n\t\terror instanceof ClientError ? error : coerceClientErrorLike(error);\n\tif (!clientError) {\n\t\treturn {\n\t\t\tcode: null,\n\t\t\tkind: null,\n\t\t\ttitle: options.fallbackTitle ?? \"Operation failed\",\n\t\t\tdescription:\n\t\t\t\toptions.fallbackDescription ??\n\t\t\t\t\"An unexpected error prevented the operation from completing.\",\n\t\t\trecovery: UserRecoveryValue.None,\n\t\t\tretryable: false,\n\t\t\ttone: ErrorPresentationTone.Danger,\n\t\t\tprimaryAction: null,\n\t\t};\n\t}\n\n\tconst code = clientError.presentation?.code ?? clientError.code;\n\tconst codePresentation = code ? options.codePresentations?.[code] : undefined;\n\tconst recovery =\n\t\tclientError.presentation?.recovery ??\n\t\tcodePresentation?.recovery ??\n\t\tclientError.recovery;\n\tconst generic = readGenericPresentation(clientError.kind);\n\n\treturn {\n\t\tcode,\n\t\tkind: clientError.kind,\n\t\tsource: clientError.source,\n\t\ttitle: codePresentation?.title ?? generic.title,\n\t\tdescription:\n\t\t\tclientError.presentation?.message ??\n\t\t\tcodePresentation?.description ??\n\t\t\tgeneric.description,\n\t\trecovery,\n\t\tretryable: clientError.retryable,\n\t\ttone:\n\t\t\tcodePresentation?.tone ?? readClientErrorTone(clientError.kind, recovery),\n\t\tprimaryAction: readPrimaryAction(recovery, options),\n\t};\n}\n\nfunction readGenericPresentation(kind: ClientErrorKind | null): {\n\ttitle: string;\n\tdescription: string;\n} {\n\tswitch (kind) {\n\t\tcase ClientErrorKindValue.Unauthenticated:\n\t\t\treturn {\n\t\t\t\ttitle: \"Authentication required\",\n\t\t\t\tdescription: \"Sign in again to continue.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Unauthorized:\n\t\t\treturn {\n\t\t\t\ttitle: \"Access denied\",\n\t\t\t\tdescription: \"You do not have permission to complete this operation.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Cancelled:\n\t\t\treturn {\n\t\t\t\ttitle: \"Operation cancelled\",\n\t\t\t\tdescription: \"The operation was cancelled before it completed.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Timeout:\n\t\t\treturn {\n\t\t\t\ttitle: \"Request timed out\",\n\t\t\t\tdescription: \"The operation did not complete in time.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Configuration:\n\t\t\treturn {\n\t\t\t\ttitle: \"Configuration error\",\n\t\t\t\tdescription: \"The client is not configured to complete this operation.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Storage:\n\t\t\treturn {\n\t\t\t\ttitle: \"Storage failed\",\n\t\t\t\tdescription: \"The client could not access required stored data.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Transport:\n\t\t\treturn {\n\t\t\t\ttitle: \"Network request failed\",\n\t\t\t\tdescription: \"The client could not reach the service.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Server:\n\t\t\treturn {\n\t\t\t\ttitle: \"Server request failed\",\n\t\t\t\tdescription: \"The service could not complete the request.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Protocol:\n\t\t\treturn {\n\t\t\t\ttitle: \"Invalid response\",\n\t\t\t\tdescription:\n\t\t\t\t\t\"The service response did not satisfy the expected protocol.\",\n\t\t\t};\n\t\tcase ClientErrorKindValue.Authorization:\n\t\t\treturn {\n\t\t\t\ttitle: \"Authorization failed\",\n\t\t\t\tdescription: \"The authorization flow could not be completed.\",\n\t\t\t};\n\t\tdefault:\n\t\t\treturn {\n\t\t\t\ttitle: \"Operation failed\",\n\t\t\t\tdescription: \"The operation could not be completed.\",\n\t\t\t};\n\t}\n}\n\nfunction readClientErrorTone(\n\tkind: ClientErrorKind | null,\n\trecovery: UserRecovery,\n) {\n\tif (kind === ClientErrorKindValue.Cancelled) {\n\t\treturn ErrorPresentationTone.Neutral;\n\t}\n\tif (\n\t\tkind === ClientErrorKindValue.Unauthenticated ||\n\t\tkind === ClientErrorKindValue.Timeout ||\n\t\tkind === ClientErrorKindValue.Transport ||\n\t\tkind === ClientErrorKindValue.Server ||\n\t\trecovery === UserRecoveryValue.Retry ||\n\t\trecovery === UserRecoveryValue.RestartFlow ||\n\t\trecovery === UserRecoveryValue.Reauthenticate\n\t) {\n\t\treturn ErrorPresentationTone.Warning;\n\t}\n\treturn ErrorPresentationTone.Danger;\n}\n\nfunction coerceClientErrorLike(error: unknown): ClientErrorLike | null {\n\tif (typeof error !== \"object\" || error === null) {\n\t\treturn null;\n\t}\n\tconst candidate = error as Record<string, unknown>;\n\tif (\n\t\ttypeof candidate.kind !== \"string\" ||\n\t\t!clientErrorKindValues.has(candidate.kind)\n\t) {\n\t\treturn null;\n\t}\n\treturn {\n\t\tcode: typeof candidate.code === \"string\" ? candidate.code : null,\n\t\tkind: candidate.kind as ClientErrorKind,\n\t\trecovery:\n\t\t\ttypeof candidate.recovery === \"string\" &&\n\t\t\tuserRecoveryValues.has(candidate.recovery)\n\t\t\t\t? (candidate.recovery as UserRecovery)\n\t\t\t\t: UserRecoveryValue.None,\n\t\tretryable: candidate.retryable === true,\n\t\tsource: typeof candidate.source === \"string\" ? candidate.source : undefined,\n\t\tpresentation: isErrorPresentation(candidate.presentation)\n\t\t\t? candidate.presentation\n\t\t\t: undefined,\n\t};\n}\n\nfunction isErrorPresentation(value: unknown): value is ErrorPresentation {\n\treturn (\n\t\ttypeof value === \"object\" &&\n\t\tvalue !== null &&\n\t\ttypeof (value as Record<string, unknown>).code === \"string\" &&\n\t\ttypeof (value as Record<string, unknown>).message === \"string\" &&\n\t\ttypeof (value as Record<string, unknown>).recovery === \"string\" &&\n\t\tuserRecoveryValues.has(\n\t\t\t(value as Record<string, unknown>).recovery as string,\n\t\t)\n\t);\n}\n\nfunction readPrimaryAction(\n\trecovery: UserRecovery,\n\toptions: ReadErrorPresentationDescriptorOptions,\n): ErrorPresentationActionDescriptor | null {\n\tif (recovery === UserRecoveryValue.None) {\n\t\treturn null;\n\t}\n\tconst label =\n\t\toptions.recoveryLabels?.[recovery] ?? DEFAULT_RECOVERY_LABELS[recovery];\n\tif (!label) {\n\t\treturn null;\n\t}\n\treturn {\n\t\trecovery,\n\t\tlabel,\n\t\thref: options.recoveryLinks?.[recovery] ?? null,\n\t};\n}\n","import { SYMBOL_OBSERVABLE } from \"../compat\";\nimport { RxStateSignal } from \"../rx/signal\";\nimport {\n\ttype ReadableSignalTrait,\n\ttype SignalOptions,\n\ttype WritableSignalTrait,\n} from \"./types\";\n\n/**\n * Minimal writable signal implementation.\n * `set()` always publishes a write. Equality-based value-version suppression is\n * handled by the underlying Rx signal for computed dependency validation.\n */\nexport function createSignal<T>(\n\tinitial: T,\n\toptions?: SignalOptions<T>,\n): WritableSignalTrait<T> {\n\treturn RxStateSignal.fromInitialValue(initial, options);\n}\n\n/**\n * Create a read-only view of a writable signal.\n */\nexport function readonlySignal<T>(\n\tsignal: WritableSignalTrait<T>,\n): ReadableSignalTrait<T> {\n\treturn signal;\n}\n\nexport function isSignalTrait<T>(obj: unknown): obj is ReadableSignalTrait<T> {\n\treturn (\n\t\ttypeof obj === \"object\" &&\n\t\tobj !== null &&\n\t\ttypeof (obj as ReadableSignalTrait<T>).equals === \"function\" &&\n\t\ttypeof (obj as ReadableSignalTrait<T>).get === \"function\" &&\n\t\ttypeof (obj as ReadableSignalTrait<T>).watchStream === \"function\" &&\n\t\ttypeof (obj as ReadableSignalTrait<T>)[SYMBOL_OBSERVABLE] === \"function\"\n\t);\n}\n","export const PopupErrorCode = {\n\tBlocked: \"popup.blocked\",\n\tClosed: \"popup.closed_by_user\",\n} as const;\n\nexport type PopupErrorCode =\n\t(typeof PopupErrorCode)[keyof typeof PopupErrorCode];\n\nexport function readPopupErrorPresentationDescriptor(\n\terror: unknown,\n\toptions: ReadErrorPresentationDescriptorOptions = {},\n): ErrorPresentationDescriptor {\n\treturn readErrorPresentationDescriptor(error, {\n\t\t...options,\n\t\tcodePresentations: {\n\t\t\t[PopupErrorCode.Blocked]: {\n\t\t\t\ttitle: \"Popup was blocked\",\n\t\t\t\tdescription:\n\t\t\t\t\t\"The browser blocked the popup window. Allow popups for this site, then try again.\",\n\t\t\t\trecovery: UserRecovery.Retry,\n\t\t\t\ttone: ErrorPresentationTone.Warning,\n\t\t\t},\n\t\t\t[PopupErrorCode.Closed]: {\n\t\t\t\ttitle: \"Popup was closed\",\n\t\t\t\tdescription:\n\t\t\t\t\t\"The popup window was closed before the operation completed. Start the flow again.\",\n\t\t\t\trecovery: UserRecovery.RestartFlow,\n\t\t\t\ttone: ErrorPresentationTone.Warning,\n\t\t\t},\n\t\t\t...options.codePresentations,\n\t\t},\n\t});\n}\n\nimport {\n\ttype ErrorPresentationDescriptor,\n\tErrorPresentationTone,\n\ttype ReadErrorPresentationDescriptorOptions,\n\treadErrorPresentationDescriptor,\n\tUserRecovery,\n} from \"../errors\";\n","import { type as defineType } from \"arktype\";\nimport { type DisposableTrait } from \"../../compat\";\nimport { type EventStreamTrait } from \"../../events\";\nimport { type TimeTrait } from \"../../scheduling/types\";\n\nexport const JsonRpcIdSchema = defineType(\"string | number\");\n\nexport type JsonRpcId = typeof JsonRpcIdSchema.infer;\n\nexport const JsonRpcErrorPayloadSchema = defineType({\n\tcode: \"number\",\n\tmessage: \"string\",\n\tdata: \"unknown?\",\n});\n\nexport type JsonRpcErrorPayload = typeof JsonRpcErrorPayloadSchema.infer;\n\nexport const JsonRpcRequestMessageSchema = defineType({\n\tjsonrpc: '\"2.0\"',\n\tid: JsonRpcIdSchema,\n\tmethod: \"string\",\n\tparams: \"unknown?\",\n});\n\nexport type JsonRpcRequestMessage = typeof JsonRpcRequestMessageSchema.infer;\n\nexport const JsonRpcNotificationMessageSchema = defineType({\n\tjsonrpc: '\"2.0\"',\n\tmethod: \"string\",\n\tparams: \"unknown?\",\n});\n\nexport type JsonRpcNotificationMessage =\n\ttypeof JsonRpcNotificationMessageSchema.infer;\n\nexport const JsonRpcSuccessResponseMessageSchema = defineType({\n\tjsonrpc: '\"2.0\"',\n\tid: JsonRpcIdSchema,\n\tresult: \"unknown\",\n});\n\nexport type JsonRpcSuccessResponseMessage =\n\ttypeof JsonRpcSuccessResponseMessageSchema.infer;\n\nexport const JsonRpcErrorResponseMessageSchema = defineType({\n\tjsonrpc: '\"2.0\"',\n\tid: JsonRpcIdSchema,\n\terror: JsonRpcErrorPayloadSchema,\n});\n\nexport type JsonRpcErrorResponseMessage =\n\ttypeof JsonRpcErrorResponseMessageSchema.infer;\n\nexport const JsonRpcMessageSchema = JsonRpcRequestMessageSchema.or(\n\tJsonRpcNotificationMessageSchema,\n)\n\t.or(JsonRpcSuccessResponseMessageSchema)\n\t.or(JsonRpcErrorResponseMessageSchema);\n\nexport type JsonRpcMessage = typeof JsonRpcMessageSchema.infer;\n\nexport interface JsonRpcRequestEvent {\n\tid: JsonRpcId;\n\tmethod: string;\n\tparams?: unknown;\n}\n\nexport interface JsonRpcNotificationEvent {\n\tmethod: string;\n\tparams?: unknown;\n}\n\nexport interface JsonRpcRequestOptions {\n\ttimeoutMs?: number;\n}\n\nexport interface JsonRpcSendOptions {\n\tsend(message: JsonRpcMessage): void;\n}\n\nexport interface CreateJsonRpcClientOptions extends JsonRpcSendOptions {\n\ttime: TimeTrait;\n\tdefaultRequestTimeoutMs?: number;\n}\n\nexport interface CreateJsonRpcServerOptions extends JsonRpcSendOptions {}\n\nexport interface CreateJsonRpcServerAndClientOptions\n\textends JsonRpcSendOptions {\n\ttime: TimeTrait;\n\tdefaultRequestTimeoutMs?: number;\n}\n\nexport interface JsonRpcClientTrait extends DisposableTrait {\n\treadonly onNotification: EventStreamTrait<JsonRpcNotificationEvent>;\n\trequest<TResult = unknown>(\n\t\tmethod: string,\n\t\tparams?: unknown,\n\t\toptions?: JsonRpcRequestOptions,\n\t): Promise<TResult>;\n\tnotify(method: string, params?: unknown): void;\n\treceive(message: unknown): void;\n\trejectAllPendingRequests(reason: unknown): void;\n}\n\nexport interface JsonRpcServerTrait extends DisposableTrait {\n\treadonly onRequest: EventStreamTrait<JsonRpcRequestEvent>;\n\treadonly onNotification: EventStreamTrait<JsonRpcNotificationEvent>;\n\tnotify(method: string, params?: unknown): void;\n\treceive(message: unknown): void;\n\trespondSuccess(id: JsonRpcId, result: unknown): void;\n\trespondError(id: JsonRpcId, error: JsonRpcErrorPayload): void;\n}\n\nexport interface JsonRpcServerAndClientTrait\n\textends JsonRpcClientTrait,\n\t\tJsonRpcServerTrait {}\n","import { SYMBOL_DISPOSE } from \"../../compat\";\nimport { type EventStreamTrait } from \"../../events\";\nimport { RxEventSubject } from \"../../rx/event\";\nimport { validateWithSchemaSync } from \"../../validation\";\nimport {\n\ttype CreateJsonRpcClientOptions,\n\ttype CreateJsonRpcServerAndClientOptions,\n\ttype CreateJsonRpcServerOptions,\n\ttype JsonRpcClientTrait,\n\ttype JsonRpcErrorPayload,\n\ttype JsonRpcErrorResponseMessage,\n\ttype JsonRpcId,\n\ttype JsonRpcMessage,\n\tJsonRpcMessageSchema,\n\ttype JsonRpcNotificationEvent,\n\ttype JsonRpcNotificationMessage,\n\ttype JsonRpcRequestEvent,\n\ttype JsonRpcRequestMessage,\n\ttype JsonRpcRequestOptions,\n\ttype JsonRpcServerAndClientTrait,\n\ttype JsonRpcServerTrait,\n\ttype JsonRpcSuccessResponseMessage,\n} from \"./types\";\n\ntype JsonRpcResponseMessage =\n\t| JsonRpcSuccessResponseMessage\n\t| JsonRpcErrorResponseMessage;\n\ninterface PendingRequest {\n\tmethod: string;\n\treject(reason: unknown): void;\n\tresolve(value: unknown): void;\n\ttimeoutHandle?: unknown;\n}\n\nexport function createJsonRpcClient(\n\toptions: CreateJsonRpcClientOptions,\n): JsonRpcClientTrait {\n\treturn new JsonRpcClient(options);\n}\n\nexport function createJsonRpcServer(\n\toptions: CreateJsonRpcServerOptions,\n): JsonRpcServerTrait {\n\treturn new JsonRpcServer(options);\n}\n\nexport function createJsonRpcServerAndClient(\n\toptions: CreateJsonRpcServerAndClientOptions,\n): JsonRpcServerAndClientTrait {\n\treturn new JsonRpcServerAndClient(options);\n}\n\nclass JsonRpcClient implements JsonRpcClientTrait {\n\treadonly onNotification: EventStreamTrait<JsonRpcNotificationEvent>;\n\n\tprivate readonly notificationSubject =\n\t\tnew RxEventSubject<JsonRpcNotificationEvent>();\n\tprivate readonly pendingRequests = new Map<JsonRpcId, PendingRequest>();\n\tprivate disposed = false;\n\tprivate nextRequestId = 1;\n\n\tconstructor(private readonly options: CreateJsonRpcClientOptions) {\n\t\tthis.onNotification = this.notificationSubject;\n\t}\n\n\trequest<TResult = unknown>(\n\t\tmethod: string,\n\t\tparams?: unknown,\n\t\trequestOptions: JsonRpcRequestOptions = {},\n\t): Promise<TResult> {\n\t\tif (this.disposed) {\n\t\t\treturn Promise.reject(createJsonRpcDisposedError(\"client\"));\n\t\t}\n\n\t\tconst id = this.nextRequestId++;\n\t\tconst timeoutMs =\n\t\t\trequestOptions.timeoutMs ?? this.options.defaultRequestTimeoutMs;\n\n\t\treturn new Promise<TResult>((resolve, reject) => {\n\t\t\tconst pendingRequest: PendingRequest = {\n\t\t\t\tmethod,\n\t\t\t\treject,\n\t\t\t\tresolve,\n\t\t\t};\n\n\t\t\tif (timeoutMs !== undefined) {\n\t\t\t\tpendingRequest.timeoutHandle = this.options.time.setTimeout(() => {\n\t\t\t\t\tthis.pendingRequests.delete(id);\n\t\t\t\t\treject(new Error(`JSON-RPC request timed out for ${method}.`));\n\t\t\t\t}, timeoutMs);\n\t\t\t}\n\n\t\t\tthis.pendingRequests.set(id, pendingRequest);\n\n\t\t\ttry {\n\t\t\t\tthis.options.send({\n\t\t\t\t\tjsonrpc: \"2.0\",\n\t\t\t\t\tid,\n\t\t\t\t\tmethod,\n\t\t\t\t\tparams,\n\t\t\t\t} satisfies JsonRpcRequestMessage);\n\t\t\t} catch (error) {\n\t\t\t\tthis.clearPendingRequest(id);\n\t\t\t\treject(error);\n\t\t\t}\n\t\t});\n\t}\n\n\tnotify(method: string, params?: unknown): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\tthis.options.send({\n\t\t\tjsonrpc: \"2.0\",\n\t\t\tmethod,\n\t\t\tparams,\n\t\t} satisfies JsonRpcNotificationMessage);\n\t}\n\n\treceive(message: unknown): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (const parsedMessage of parseIncomingMessages(message)) {\n\t\t\tif (isJsonRpcResponseMessage(parsedMessage)) {\n\t\t\t\tthis.resolvePendingRequest(parsedMessage);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (isJsonRpcNotificationMessage(parsedMessage)) {\n\t\t\t\tthis.notificationSubject.next({\n\t\t\t\t\tmethod: parsedMessage.method,\n\t\t\t\t\tparams: parsedMessage.params,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\trejectAllPendingRequests(reason: unknown): void {\n\t\tfor (const [id, pendingRequest] of this.pendingRequests) {\n\t\t\tthis.clearPendingRequest(id);\n\t\t\tpendingRequest.reject(reason);\n\t\t}\n\t}\n\n\tdispose(): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disposed = true;\n\t\tthis.rejectAllPendingRequests(new Error(\"JSON-RPC client disposed.\"));\n\t\tthis.notificationSubject.complete();\n\t}\n\n\t[SYMBOL_DISPOSE](): void {\n\t\tthis.dispose();\n\t}\n\n\tprivate resolvePendingRequest(message: JsonRpcResponseMessage): void {\n\t\tconst pendingRequest = this.pendingRequests.get(message.id);\n\t\tif (!pendingRequest) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.clearPendingRequest(message.id);\n\n\t\tif (\"error\" in message) {\n\t\t\tpendingRequest.reject(\n\t\t\t\tnew Error(\n\t\t\t\t\t`JSON-RPC request failed for ${pendingRequest.method}: ${message.error.message}`,\n\t\t\t\t),\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tpendingRequest.resolve(message.result);\n\t}\n\n\tprivate clearPendingRequest(id: JsonRpcId): void {\n\t\tconst pendingRequest = this.pendingRequests.get(id);\n\t\tif (!pendingRequest) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (pendingRequest.timeoutHandle !== undefined) {\n\t\t\tthis.options.time.clearTimeout(pendingRequest.timeoutHandle);\n\t\t}\n\n\t\tthis.pendingRequests.delete(id);\n\t}\n}\n\nclass JsonRpcServer implements JsonRpcServerTrait {\n\treadonly onRequest: EventStreamTrait<JsonRpcRequestEvent>;\n\treadonly onNotification: EventStreamTrait<JsonRpcNotificationEvent>;\n\n\tprivate readonly requestSubject = new RxEventSubject<JsonRpcRequestEvent>();\n\tprivate readonly notificationSubject =\n\t\tnew RxEventSubject<JsonRpcNotificationEvent>();\n\tprivate disposed = false;\n\n\tconstructor(private readonly options: CreateJsonRpcServerOptions) {\n\t\tthis.onRequest = this.requestSubject;\n\t\tthis.onNotification = this.notificationSubject;\n\t}\n\n\tnotify(method: string, params?: unknown): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\tthis.options.send({\n\t\t\tjsonrpc: \"2.0\",\n\t\t\tmethod,\n\t\t\tparams,\n\t\t} satisfies JsonRpcNotificationMessage);\n\t}\n\n\treceive(message: unknown): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (const parsedMessage of parseIncomingMessages(message)) {\n\t\t\tif (isJsonRpcRequestMessage(parsedMessage)) {\n\t\t\t\tthis.requestSubject.next({\n\t\t\t\t\tid: parsedMessage.id,\n\t\t\t\t\tmethod: parsedMessage.method,\n\t\t\t\t\tparams: parsedMessage.params,\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (isJsonRpcNotificationMessage(parsedMessage)) {\n\t\t\t\tthis.notificationSubject.next({\n\t\t\t\t\tmethod: parsedMessage.method,\n\t\t\t\t\tparams: parsedMessage.params,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\trespondSuccess(id: JsonRpcId, result: unknown): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\tthis.options.send({\n\t\t\tjsonrpc: \"2.0\",\n\t\t\tid,\n\t\t\tresult,\n\t\t} satisfies JsonRpcSuccessResponseMessage);\n\t}\n\n\trespondError(id: JsonRpcId, error: JsonRpcErrorPayload): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\tthis.options.send({\n\t\t\tjsonrpc: \"2.0\",\n\t\t\tid,\n\t\t\terror,\n\t\t} satisfies JsonRpcErrorResponseMessage);\n\t}\n\n\tdispose(): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disposed = true;\n\t\tthis.requestSubject.complete();\n\t\tthis.notificationSubject.complete();\n\t}\n\n\t[SYMBOL_DISPOSE](): void {\n\t\tthis.dispose();\n\t}\n}\n\nclass JsonRpcServerAndClient implements JsonRpcServerAndClientTrait {\n\treadonly onNotification: EventStreamTrait<JsonRpcNotificationEvent>;\n\treadonly onRequest: EventStreamTrait<JsonRpcRequestEvent>;\n\n\tprivate readonly client: JsonRpcClient;\n\tprivate readonly server: JsonRpcServer;\n\tprivate disposed = false;\n\n\tconstructor(options: CreateJsonRpcServerAndClientOptions) {\n\t\tthis.client = new JsonRpcClient(options);\n\t\tthis.server = new JsonRpcServer(options);\n\t\tthis.onNotification = this.server.onNotification;\n\t\tthis.onRequest = this.server.onRequest;\n\t}\n\n\trequest<TResult = unknown>(\n\t\tmethod: string,\n\t\tparams?: unknown,\n\t\toptions?: JsonRpcRequestOptions,\n\t): Promise<TResult> {\n\t\treturn this.client.request<TResult>(method, params, options);\n\t}\n\n\tnotify(method: string, params?: unknown): void {\n\t\tthis.client.notify(method, params);\n\t}\n\n\treceive(message: unknown): void {\n\t\tfor (const parsedMessage of parseIncomingMessages(message)) {\n\t\t\tif (isJsonRpcResponseMessage(parsedMessage)) {\n\t\t\t\tthis.client.receive(parsedMessage);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.server.receive(parsedMessage);\n\t\t}\n\t}\n\n\trejectAllPendingRequests(reason: unknown): void {\n\t\tthis.client.rejectAllPendingRequests(reason);\n\t}\n\n\trespondSuccess(id: JsonRpcId, result: unknown): void {\n\t\tthis.server.respondSuccess(id, result);\n\t}\n\n\trespondError(id: JsonRpcId, error: JsonRpcErrorPayload): void {\n\t\tthis.server.respondError(id, error);\n\t}\n\n\tdispose(): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disposed = true;\n\t\tthis.client.dispose();\n\t\tthis.server.dispose();\n\t}\n\n\t[SYMBOL_DISPOSE](): void {\n\t\tthis.dispose();\n\t}\n}\n\nfunction parseIncomingMessages(message: unknown): JsonRpcMessage[] {\n\tif (!Array.isArray(message)) {\n\t\treturn parseJsonRpcMessage(message);\n\t}\n\n\tconst parsedMessages: JsonRpcMessage[] = [];\n\tfor (const entry of message) {\n\t\tparsedMessages.push(...parseJsonRpcMessage(entry));\n\t}\n\treturn parsedMessages;\n}\n\nfunction parseJsonRpcMessage(message: unknown): JsonRpcMessage[] {\n\tconst result = validateWithSchemaSync(JsonRpcMessageSchema, message);\n\treturn result.success ? [result.value] : [];\n}\n\nfunction isJsonRpcRequestMessage(\n\tmessage: JsonRpcMessage,\n): message is JsonRpcRequestMessage {\n\treturn \"method\" in message && \"id\" in message;\n}\n\nfunction isJsonRpcResponseMessage(\n\tmessage: JsonRpcMessage,\n): message is JsonRpcResponseMessage {\n\treturn \"id\" in message && !(\"method\" in message);\n}\n\nfunction isJsonRpcNotificationMessage(\n\tmessage: JsonRpcMessage,\n): message is JsonRpcNotificationMessage {\n\treturn \"method\" in message && !(\"id\" in message);\n}\n\nfunction createJsonRpcDisposedError(role: \"client\" | \"server\"): Error {\n\treturn new Error(`JSON-RPC ${role} disposed.`);\n}\n","import {\n\tBehaviorSubject,\n\tcatchError,\n\tdelayWhen,\n\tdistinctUntilChanged,\n\texhaustMap,\n\tfilter,\n\tfrom,\n\tmap,\n\tmerge,\n\tof,\n\tReplaySubject,\n\tSubject,\n\tshareReplay,\n\ttake,\n\ttakeUntil,\n\ttimeout,\n\ttimer,\n} from \"rxjs\";\nimport { SYMBOL_DISPOSE } from \"../compat\";\nimport { ClientError, ClientErrorKind, UserRecovery } from \"../errors\";\nimport { type EventStreamTrait } from \"../events\";\nimport {\n\ttype JsonRpcClientTrait,\n\ttype JsonRpcNotificationEvent,\n\ttype JsonRpcServerTrait,\n} from \"../protocol/json-rpc\";\nimport { createAsyncSchedulerWithTimestampProvider } from \"../rx\";\nimport { type TimeTrait } from \"../scheduling/types\";\nimport { createSignal } from \"../signals\";\nimport { PopupErrorCode } from \"./errors\";\n\nexport const PopupSessionControlMethod = {\n\tReady: \"securitydept.popup.session.ready\",\n\tPing: \"securitydept.popup.session.ping\",\n\tPong: \"securitydept.popup.session.pong\",\n} as const;\n\nconst DEFAULT_READY_TIMEOUT_MS = 10_000;\nconst DEFAULT_HEARTBEAT_INTERVAL_MS = 5_000;\nconst DEFAULT_HEARTBEAT_TIMEOUT_MS = 15_000;\n\nexport interface CreatePopupClientSessionOptions {\n\tjsonRpc: JsonRpcClientTrait;\n\ttime: TimeTrait;\n\tclosedStream: EventStreamTrait<boolean>;\n\treadyTimeoutMs?: number;\n\theartbeatIntervalMs?: number;\n\theartbeatTimeoutMs?: number;\n}\n\nexport interface CreatePopupServerSessionOptions {\n\tjsonRpc: JsonRpcServerTrait;\n}\n\nexport class PopupClientSession {\n\treadonly failure = createSignal<ClientError | null>(null);\n\treadonly isActive = createSignal(false);\n\n\tprivate readonly init$ = new ReplaySubject<true>();\n\tprivate readonly destroyed = createSignal<boolean>(false);\n\tprivate readonly destroyed$ = from(this.destroyed).pipe(\n\t\tdistinctUntilChanged(),\n\t\tfilter(Boolean),\n\t\tshareReplay(1),\n\t);\n\n\tconstructor(options: CreatePopupClientSessionOptions) {\n\t\tconst timestampScheduler = createAsyncSchedulerWithTimestampProvider(\n\t\t\toptions.time,\n\t\t);\n\t\tconst ready$ = new Subject<boolean>();\n\t\tconst pong$ = new Subject<boolean>();\n\t\tconst closed$ = from(options.closedStream).pipe(filter(Boolean));\n\n\t\tconst ping$ = merge(\n\t\t\tready$.pipe(filter(Boolean)),\n\t\t\tpong$.pipe(filter(Boolean)),\n\t\t).pipe(\n\t\t\tdelayWhen(() =>\n\t\t\t\ttimer(\n\t\t\t\t\toptions.heartbeatIntervalMs ?? DEFAULT_HEARTBEAT_INTERVAL_MS,\n\t\t\t\t\ttimestampScheduler,\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\tfrom(this.init$)\n\t\t\t.pipe(\n\t\t\t\texhaustMap(() =>\n\t\t\t\t\tfrom(options.jsonRpc.onNotification).pipe(\n\t\t\t\t\t\tfilter(function isReadyNotification(event): event is {\n\t\t\t\t\t\t\tmethod: typeof PopupSessionControlMethod.Ready;\n\t\t\t\t\t\t} {\n\t\t\t\t\t\t\treturn event.method === PopupSessionControlMethod.Ready;\n\t\t\t\t\t\t}),\n\t\t\t\t\t\ttake(1),\n\t\t\t\t\t\ttimeout({\n\t\t\t\t\t\t\teach: options.readyTimeoutMs ?? DEFAULT_READY_TIMEOUT_MS,\n\t\t\t\t\t\t\tscheduler: timestampScheduler,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tmap(() => true),\n\t\t\t\t\t\tcatchError(() => of(false)),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntil(this.destroyed$),\n\t\t\t)\n\t\t\t.subscribe(ready$);\n\n\t\tping$\n\t\t\t.pipe(\n\t\t\t\texhaustMap(() =>\n\t\t\t\t\tfrom(options.jsonRpc.onNotification).pipe(\n\t\t\t\t\t\tfilter(function isPongNotification(event): event is {\n\t\t\t\t\t\t\tmethod: typeof PopupSessionControlMethod.Pong;\n\t\t\t\t\t\t} {\n\t\t\t\t\t\t\treturn event.method === PopupSessionControlMethod.Pong;\n\t\t\t\t\t\t}),\n\t\t\t\t\t\ttake(1),\n\t\t\t\t\t\ttimeout({\n\t\t\t\t\t\t\tfirst: options.heartbeatTimeoutMs ?? DEFAULT_HEARTBEAT_TIMEOUT_MS,\n\t\t\t\t\t\t\tscheduler: timestampScheduler,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tmap(() => true),\n\t\t\t\t\t\tcatchError(() => of(false)),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\ttakeUntil(this.destroyed$),\n\t\t\t)\n\t\t\t.subscribe(pong$);\n\n\t\tmerge(\n\t\t\tclosed$.pipe(\n\t\t\t\tmap(\n\t\t\t\t\t() =>\n\t\t\t\t\t\tnew ClientError({\n\t\t\t\t\t\t\tkind: ClientErrorKind.Authorization,\n\t\t\t\t\t\t\tcode: PopupErrorCode.Closed,\n\t\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\t\"Popup window was closed before completing the login flow.\",\n\t\t\t\t\t\t\trecovery: UserRecovery.RestartFlow,\n\t\t\t\t\t\t\tsource: \"popup\",\n\t\t\t\t\t\t}),\n\t\t\t\t),\n\t\t\t),\n\t\t\tready$.pipe(\n\t\t\t\tmap((success) =>\n\t\t\t\t\t!success\n\t\t\t\t\t\t? new ClientError({\n\t\t\t\t\t\t\t\tkind: ClientErrorKind.Protocol,\n\t\t\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\t\t\"Did not receive ready notification from popup within the expected time.\",\n\t\t\t\t\t\t\t\trecovery: UserRecovery.RestartFlow,\n\t\t\t\t\t\t\t\tsource: \"popup\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: null,\n\t\t\t\t),\n\t\t\t),\n\t\t\tpong$.pipe(\n\t\t\t\tmap((success) =>\n\t\t\t\t\t!success\n\t\t\t\t\t\t? new ClientError({\n\t\t\t\t\t\t\t\tkind: ClientErrorKind.Protocol,\n\t\t\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\t\t\"Did not receive pong notification from popup within the expected time.\",\n\t\t\t\t\t\t\t\trecovery: UserRecovery.RestartFlow,\n\t\t\t\t\t\t\t\tsource: \"popup\",\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: null,\n\t\t\t\t),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(\n\t\t\t\ttakeUntil(this.destroyed$),\n\t\t\t\tshareReplay({\n\t\t\t\t\tbufferSize: 1,\n\t\t\t\t\trefCount: false,\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.subscribe((error) => this.failure.set(error));\n\n\t\tmerge(\n\t\t\tclosed$.pipe(map(() => false)),\n\t\t\tready$.pipe(map(Boolean)),\n\t\t\tpong$.pipe(map(Boolean)),\n\t\t)\n\t\t\t.pipe(takeUntil(this.destroyed$))\n\t\t\t.subscribe((nextIsActive) => {\n\t\t\t\tthis.isActive.set(nextIsActive);\n\t\t\t});\n\t}\n\n\tinit(): void {\n\t\tthis.init$.next(true);\n\t}\n\n\tdispose(): void {\n\t\tthis.destroyed.set(true);\n\t}\n\n\t[SYMBOL_DISPOSE](): void {\n\t\tthis.dispose();\n\t}\n}\n\nexport class PopupServerSession {\n\tprivate readonly init$ = new ReplaySubject<true>();\n\tprivate readonly destroyed$$ = new BehaviorSubject<boolean>(false);\n\tprivate readonly destroyed$ = this.destroyed$$.pipe(\n\t\tdistinctUntilChanged(),\n\t\tfilter(Boolean),\n\t\tshareReplay(1),\n\t);\n\n\tconstructor(options: CreatePopupServerSessionOptions) {\n\t\tconst ready$ = from(this.init$);\n\t\tconst ping$ = from(options.jsonRpc.onNotification).pipe(\n\t\t\tfilter(function isPing(event) {\n\t\t\t\treturn event.method === PopupSessionControlMethod.Ping;\n\t\t\t}),\n\t\t);\n\t\tconst pong$ = ping$;\n\n\t\tmerge(\n\t\t\tready$.pipe(\n\t\t\t\tmap(function createReadyNotify(): JsonRpcNotificationEvent {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tmethod: PopupSessionControlMethod.Ready,\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t),\n\t\t\tpong$.pipe(\n\t\t\t\tmap(function createPongNotify(): JsonRpcNotificationEvent {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tmethod: PopupSessionControlMethod.Pong,\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(takeUntil(this.destroyed$))\n\t\t\t.subscribe((event) => {\n\t\t\t\toptions.jsonRpc.notify(event.method, event.params);\n\t\t\t});\n\t}\n\n\tinit(): void {\n\t\tthis.init$.next(true);\n\t}\n\n\tdispose(): void {\n\t\tthis.destroyed$$.next(true);\n\t}\n\n\t[SYMBOL_DISPOSE](): void {\n\t\tthis.dispose();\n\t}\n}\n","import { type DisposableTrait, SYMBOL_DISPOSE } from \"../compat\";\nimport { type ClientError } from \"../errors\";\nimport {\n\ttype EventStreamTrait,\n\ttype EventSubjectTrait,\n\ttype EventSubscriptionTrait,\n} from \"../events\";\nimport {\n\tcreateJsonRpcClient,\n\tcreateJsonRpcServer,\n\ttype JsonRpcClientTrait,\n\ttype JsonRpcMessage,\n\ttype JsonRpcNotificationEvent,\n\ttype JsonRpcRequestEvent,\n\ttype JsonRpcRequestOptions,\n\ttype JsonRpcServerTrait,\n} from \"../protocol/json-rpc\";\nimport { type TimeTrait } from \"../scheduling/types\";\nimport { type ReadableSignalTrait } from \"../signals\";\nimport { PopupClientSession, PopupServerSession } from \"./session\";\n\nexport interface PopupMessageChannelTrait<\n\tTOutgoing = unknown,\n\tTIncoming = unknown,\n> {\n\toutgoing: EventSubjectTrait<TOutgoing>;\n\tincoming: EventStreamTrait<TIncoming>;\n}\n\nexport interface PopupWindowHandleTrait extends DisposableTrait {\n\tmessaging: PopupMessageChannelTrait;\n\treadonly onNotification: EventStreamTrait<JsonRpcNotificationEvent>;\n\tclose(): void;\n\tdispose(): void;\n\tnotify(method: string, params?: unknown): Promise<void>;\n}\n\nexport interface PopupClientWindowHandleTrait extends PopupWindowHandleTrait {\n\treadonly failure: ReadableSignalTrait<ClientError | null>;\n\treadonly isActive: ReadableSignalTrait<boolean>;\n\trequest<TResult = unknown>(\n\t\tmethod: string,\n\t\tparams?: unknown,\n\t\toptions?: JsonRpcRequestOptions,\n\t): Promise<TResult>;\n}\n\nexport interface PopupServerWindowHandleTrait extends PopupWindowHandleTrait {}\n\nexport interface PopupClientWindowHandleOptions {\n\tclose(): void;\n\tmessaging: PopupMessageChannelTrait<JsonRpcMessage, unknown>;\n\ttime: TimeTrait;\n\tclosedStream: EventStreamTrait<boolean>;\n}\n\nexport interface PopupServerWindowHandleOptions {\n\tclose(): void;\n\tmessaging: PopupMessageChannelTrait<JsonRpcMessage, unknown>;\n}\n\n/**\n * popup opener\n */\nexport class PopupClientWindowHandle implements PopupClientWindowHandleTrait {\n\treadonly messaging: PopupMessageChannelTrait<JsonRpcMessage, unknown>;\n\tprivate disposed = false;\n\tprivate readonly jsonRpc: JsonRpcClientTrait;\n\tprivate readonly session: PopupClientSession;\n\tprivate readonly incomingSubscription: EventSubscriptionTrait;\n\tprivate readonly closePopup: () => void;\n\n\tconstructor(options: PopupClientWindowHandleOptions) {\n\t\tthis.messaging = options.messaging;\n\t\tthis.closePopup = options.close;\n\t\tthis.jsonRpc = createJsonRpcClient({\n\t\t\tsend: (message) => {\n\t\t\t\toptions.messaging.outgoing.next(message);\n\t\t\t},\n\t\t\ttime: options.time,\n\t\t});\n\t\tthis.session = new PopupClientSession({\n\t\t\tjsonRpc: this.jsonRpc,\n\t\t\ttime: options.time,\n\t\t\tclosedStream: options.closedStream,\n\t\t});\n\t\tthis.incomingSubscription = options.messaging.incoming.subscribe({\n\t\t\tnext: (message) => {\n\t\t\t\tthis.jsonRpc.receive(message);\n\t\t\t},\n\t\t});\n\t\tthis.session.init();\n\t}\n\n\tget onNotification(): EventStreamTrait<JsonRpcNotificationEvent> {\n\t\treturn this.jsonRpc.onNotification;\n\t}\n\n\tget failure(): ReadableSignalTrait<ClientError | null> {\n\t\treturn this.session.failure;\n\t}\n\n\tget isActive(): ReadableSignalTrait<boolean> {\n\t\treturn this.session.isActive;\n\t}\n\n\tasync notify(method: string, params?: unknown): Promise<void> {\n\t\tthis.jsonRpc.notify(method, params);\n\t}\n\n\trequest<TResult = unknown>(\n\t\tmethod: string,\n\t\tparams?: unknown,\n\t\toptions?: JsonRpcRequestOptions,\n\t): Promise<TResult> {\n\t\treturn this.jsonRpc.request(method, params, options);\n\t}\n\n\tclose(): void {\n\t\tthis.closePopup();\n\t}\n\n\tdispose(): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\tthis.disposed = true;\n\t\tthis.session.dispose();\n\t\tthis.jsonRpc.dispose();\n\t\tthis.incomingSubscription.unsubscribe();\n\t\tthis.messaging.outgoing.complete();\n\t}\n\n\t[SYMBOL_DISPOSE](): void {\n\t\tthis.dispose();\n\t}\n}\n\n/**\n * popup target\n */\nexport class PopupServerWindowHandle implements PopupServerWindowHandleTrait {\n\treadonly messaging: PopupMessageChannelTrait<JsonRpcMessage, unknown>;\n\tprivate disposed = false;\n\tprivate readonly jsonRpc: JsonRpcServerTrait;\n\tprivate readonly session: PopupServerSession;\n\tprivate readonly incomingSubscription: EventSubscriptionTrait;\n\tprivate readonly closePopup: () => void;\n\n\tconstructor(options: PopupServerWindowHandleOptions) {\n\t\tthis.messaging = options.messaging;\n\t\tthis.closePopup = options.close;\n\t\tthis.jsonRpc = createJsonRpcServer({\n\t\t\tsend: (message) => {\n\t\t\t\toptions.messaging.outgoing.next(message);\n\t\t\t},\n\t\t});\n\t\tthis.session = new PopupServerSession({ jsonRpc: this.jsonRpc });\n\t\tthis.incomingSubscription = options.messaging.incoming.subscribe({\n\t\t\tnext: (message) => {\n\t\t\t\tthis.jsonRpc.receive(message);\n\t\t\t},\n\t\t});\n\t\tthis.session.init();\n\t}\n\n\tget onNotification(): EventStreamTrait<JsonRpcNotificationEvent> {\n\t\treturn this.jsonRpc.onNotification;\n\t}\n\n\tget onRequest(): EventStreamTrait<JsonRpcRequestEvent> {\n\t\treturn this.jsonRpc.onRequest;\n\t}\n\n\tnotify(method: string, params?: unknown): Promise<void> {\n\t\tthis.jsonRpc.notify(method, params);\n\t\treturn Promise.resolve();\n\t}\n\n\tclose(): void {\n\t\tthis.closePopup();\n\t}\n\n\tdispose(): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\tthis.disposed = true;\n\t\tthis.session.dispose();\n\t\tthis.jsonRpc.dispose();\n\t\tthis.incomingSubscription.unsubscribe();\n\t\tthis.messaging.outgo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AgB,QAAiC;EACvD,KAAK,QAAQ,OAAO,QAAQ,MAAM;EAClC,OAAO,QAAQ,QAAQ;CACxB;CAEA,QAAc;EACb,KAAK,WAAW;CACjB;CAEA,UAAgB;EACf,IAAI,KAAK,UACR;EAED,KAAK,WAAW;EAChB,KAAK,QAAQ,QAAQ;EACrB,KAAK,QAAQ,QAAQ;EACrB,KAAK,qBAAqB,YAAY;EACtC,KAAK,UAAU,SAAS,SAAS;CAClC;CAEA,CAAC,kBAAwB;EACxB,KAAK,QAAQ;CACd;AACD"}
@@ -1,4 +1,3 @@
1
- import * as _$injection_js0 from "injection-js";
2
1
  import { InjectionToken, Injector } from "injection-js";
3
2
  import { BehaviorSubject, Observable, ObservableInput, OperatorFunction, ReplaySubject, Subject } from "rxjs";
4
3
  //#region src/injection/types.d.ts
@@ -6,7 +5,7 @@ declare class SecuritydeptInjectionToken<T> extends InjectionToken<T> {}
6
5
  type SecuritydeptAbstractType<T> = abstract new (...args: never[]) => T;
7
6
  type SecuritydeptDependencyToken<T> = SecuritydeptInjectionToken<T> | SecuritydeptAbstractType<T>;
8
7
  type SecuritydeptTypeProvider<T> = SecuritydeptAbstractType<T>;
9
- declare const SecurityDeptOptional: _$injection_js0.OptionalDecorator;
8
+ declare const SecurityDeptOptional: import("injection-js").OptionalDecorator;
10
9
  type SecuritydeptOptionalDependency<T> = readonly [InstanceType<typeof SecurityDeptOptional>, SecuritydeptDependencyToken<T>] | readonly [SecuritydeptDependencyToken<T>, InstanceType<typeof SecurityDeptOptional>];
11
10
  type SecuritydeptDependencyDescriptor<T> = SecuritydeptDependencyToken<T> | SecuritydeptOptionalDependency<T>;
12
11
  interface SecuritydeptValueProvider<T> {
@@ -93,15 +92,6 @@ declare class StdDisposableStack implements DisposableStackTrait {
93
92
  declare function createDisposableStack(): DisposableStackTrait;
94
93
  declare function withDisposableStack(index: number, isOptions?: boolean): <TThis, TArgs extends unknown[], TReturn>(target: (this: TThis, ...args: TArgs) => TReturn, _context: ClassMethodDecoratorContext<TThis, (this: TThis, ...args: TArgs) => TReturn>) => (this: TThis, ...args: TArgs) => TReturn;
95
94
  //#endregion
96
- //#region src/injection/destroy.d.ts
97
- declare abstract class SecuritydeptDestroyRef implements DisposableTrait {
98
- abstract readonly destroyed: boolean;
99
- abstract onDestroy(callback: () => void): () => void;
100
- abstract dispose(): void;
101
- [SYMBOL_DISPOSE](): void;
102
- }
103
- declare function createSecuritydeptDestroyRef(): SecuritydeptDestroyRef;
104
- //#endregion
105
95
  //#region src/injection/injector.d.ts
106
96
  declare class SecuritydeptInjector implements SecuritydeptInjectorTrait {
107
97
  private readonly runtimeInjector;
@@ -132,7 +122,7 @@ interface SubscribableTrait<T> {
132
122
  interface InteropObservableTrait<T> {
133
123
  [SYMBOL_OBSERVABLE](): SubscribableTrait<T>;
134
124
  }
135
- type WithInteropObservableTraitCompat<O extends InteropObservableTrait<unknown>, T extends (O extends InteropObservableTrait<infer U> ? U : never)> = O & InteropObservableTrait<T>;
125
+ type WithInteropObservableTraitCompat<O extends InteropObservableTrait<unknown>, T extends O extends InteropObservableTrait<infer U> ? U : never> = O & InteropObservableTrait<T>;
136
126
  declare function isInteropObservableTrait<T>(value: unknown): value is InteropObservableTrait<T>;
137
127
  //#endregion
138
128
  //#region src/events/types.d.ts
@@ -614,12 +604,5 @@ declare function resourceFromSnapshots<T>(source: () => ResourceSnapshot<T>): Wi
614
604
  declare function mapResource<T, U>(source: ResourceTrait<T>, mapValue: (value: T) => U): WithInteropObservableTraitCompat<ResourceTrait<U>, ResourceSnapshot<U>>;
615
605
  declare function rxResource<T, R = undefined>(options: RxResourceOptions<T, R>): WithInteropObservableTraitCompat<ResourceTrait<T>, ResourceSnapshot<T>>;
616
606
  //#endregion
617
- //#region src/scheduling/duration.d.ts
618
- /**
619
- * Parse a human-readable duration string (for example `5m` or `300s`) into
620
- * milliseconds.
621
- */
622
- declare function parseDurationToMs(duration: string): number;
623
- //#endregion
624
- export { ErrorPresentationActionDescriptor as $, notMissingProvider as $t, ResourceErrorSnapshot as A, StdDisposableStack as At, SignalOptions as B, SecuritydeptClassProvider as Bt, IDLE_CALLBACK_TRAIT_TOKEN as C, AsyncDisposableTrait as Ct, TimestampProviderTrait as D, SYMBOL_DISPOSABLE_STACK as Dt, TimeTrait as E, SYMBOL_ASYNC_DISPOSE as Et, ResourceResolvedSnapshot as F, inject$1 as Ft, CancellationTokenTrait as G, SecuritydeptInjectionToken as Gt, CancelableHandle as H, SecuritydeptDependencyToken as Ht, ResourceSnapshot as I, runInInjectionContext$1 as It, ClientErrorFromUnknownOptions as J, SecuritydeptTypeProvider as Jt, ClientError as K, SecuritydeptInjectorTrait as Kt, ResourceStatus as L, tryInjectInInjectionContext as Lt, ResourceLoadingErrorSnapshot as M, injectDisposableStackFrom as Mt, ResourceLoadingSnapshot as N, withDisposableStack as Nt, ComputedSignalTrait as O, SYMBOL_DISPOSE as Ot, ResourceReloadingSnapshot as P, SecuritydeptInjectOptions as Pt, ErrorPresentation as Q, getSecuritydeptProviderToken as Qt, ResourceTrait as R, SecurityDeptOptional as Rt, isCancellationTokenTrait as S, createSecuritydeptDestroyRef as St, TIME_TRAIT_TOKEN as T, DisposableTrait as Tt, CancellationTokenOptions as U, SecuritydeptExistingProvider as Ut, WritableSignalTrait as V, SecuritydeptDependencyDescriptor as Vt, CancellationTokenSourceTrait as W, SecuritydeptFactoryProvider as Wt, ClientErrorSource as X, WithTraitDeps as Xt, ClientErrorKind as Y, SecuritydeptValueProvider as Yt, ErrorCodePresentationDescriptor as Z, createProviderIfTokenMissing as Zt, RxEventReplaySubject as _, WithInteropObservableTraitCompat as _t, mapResource as a, EventOperatorFunction as at, createLinkedCancellationToken as b, SecuritydeptInjector as bt, RxComputedSignal as c, EventStreamTrait as ct, RxSignalOptions as d, RuntimeEventEnvelope as dt, ErrorPresentationDescriptor as et, RxSignalWatchCanceller as f, InteropObservableTrait as ft, RxStateSignalCompat as g, SubscriptionTrait as gt, RxStateSignal as h, SubscribableTrait as ht, RxResourceStreamContext as i, EventObserverTrait as it, ResourceIdleSnapshot as j, createDisposableStack as jt, ReadableSignalTrait as k, SimpleDisposableStack as kt, RxComputedSignalCompat as l, EventSubjectTrait as lt, RxSignalWatchScheduler as m, SYMBOL_OBSERVABLE as mt, RxResource as n, ReadErrorPresentationDescriptorOptions as nt, resourceFromSnapshots as o, EventSource as ot, RxSignalWatchOptions as p, ObserverTrait as pt, ClientErrorFromHttpResponseOptions as q, SecuritydeptProvider as qt, RxResourceOptions as r, UserRecovery as rt, rxResource as s, EventSourceKind as st, parseDurationToMs as t, ErrorPresentationTone as tt, RxSignalDirtyEvent as u, EventSubscriptionTrait as ut, RxEventStream as v, isInteropObservableTrait as vt, IdleCallbackTrait as w, DisposableStackTrait as wt, createCancellationTokenSource as x, SecuritydeptDestroyRef as xt, RxEventSubject as y, INJECTOR_TOKEN as yt, ResourceWhenValueOptions as z, SecuritydeptAbstractType as zt };
625
- //# sourceMappingURL=index-Ch8lrE44.d.mts.map
607
+ export { ErrorPresentationDescriptor as $, ResourceIdleSnapshot as A, withDisposableStack as At, WritableSignalTrait as B, SecuritydeptExistingProvider as Bt, IdleCallbackTrait as C, SYMBOL_ASYNC_DISPOSE as Ct, ComputedSignalTrait as D, StdDisposableStack as Dt, TimestampProviderTrait as E, SimpleDisposableStack as Et, ResourceSnapshot as F, SecurityDeptOptional as Ft, ClientError as G, SecuritydeptTypeProvider as Gt, CancellationTokenOptions as H, SecuritydeptInjectionToken as Ht, ResourceStatus as I, SecuritydeptAbstractType as It, ClientErrorKind as J, createProviderIfTokenMissing as Jt, ClientErrorFromHttpResponseOptions as K, SecuritydeptValueProvider as Kt, ResourceTrait as L, SecuritydeptClassProvider as Lt, ResourceLoadingSnapshot as M, inject$1 as Mt, ResourceReloadingSnapshot as N, runInInjectionContext$1 as Nt, ReadableSignalTrait as O, createDisposableStack as Ot, ResourceResolvedSnapshot as P, tryInjectInInjectionContext as Pt, ErrorPresentationActionDescriptor as Q, ResourceWhenValueOptions as R, SecuritydeptDependencyDescriptor as Rt, IDLE_CALLBACK_TRAIT_TOKEN as S, DisposableTrait as St, TimeTrait as T, SYMBOL_DISPOSE as Tt, CancellationTokenSourceTrait as U, SecuritydeptInjectorTrait as Ut, CancelableHandle as V, SecuritydeptFactoryProvider as Vt, CancellationTokenTrait as W, SecuritydeptProvider as Wt, ErrorCodePresentationDescriptor as X, notMissingProvider as Xt, ClientErrorSource as Y, getSecuritydeptProviderToken as Yt, ErrorPresentation as Z, RxEventStream as _, isInteropObservableTrait as _t, resourceFromSnapshots as a, EventSource as at, createCancellationTokenSource as b, AsyncDisposableTrait as bt, RxComputedSignalCompat as c, EventSubjectTrait as ct, RxSignalWatchCanceller as d, InteropObservableTrait as dt, ErrorPresentationTone as et, RxSignalWatchOptions as f, ObserverTrait as ft, RxEventReplaySubject as g, WithInteropObservableTraitCompat as gt, RxStateSignalCompat as h, SubscriptionTrait as ht, mapResource as i, EventOperatorFunction as it, ResourceLoadingErrorSnapshot as j, SecuritydeptInjectOptions as jt, ResourceErrorSnapshot as k, injectDisposableStackFrom as kt, RxSignalDirtyEvent as l, EventSubscriptionTrait as lt, RxStateSignal as m, SubscribableTrait as mt, RxResourceOptions as n, UserRecovery as nt, rxResource as o, EventSourceKind as ot, RxSignalWatchScheduler as p, SYMBOL_OBSERVABLE as pt, ClientErrorFromUnknownOptions as q, WithTraitDeps as qt, RxResourceStreamContext as r, EventObserverTrait as rt, RxComputedSignal as s, EventStreamTrait as st, RxResource as t, ReadErrorPresentationDescriptorOptions as tt, RxSignalOptions as u, RuntimeEventEnvelope as ut, RxEventSubject as v, INJECTOR_TOKEN as vt, TIME_TRAIT_TOKEN as w, SYMBOL_DISPOSABLE_STACK as wt, isCancellationTokenTrait as x, DisposableStackTrait as xt, createLinkedCancellationToken as y, SecuritydeptInjector as yt, SignalOptions as z, SecuritydeptDependencyToken as zt };
608
+ //# sourceMappingURL=index-Cg_iY2yY.d.mts.map
@@ -1,9 +1,14 @@
1
- import { B as SignalOptions, D as TimestampProviderTrait, E as TimeTrait, G as CancellationTokenTrait, Gt as SecuritydeptInjectionToken, I as ResourceSnapshot, K as ClientError, Kt as SecuritydeptInjectorTrait, O as ComputedSignalTrait, Ot as SYMBOL_DISPOSE, R as ResourceTrait, Tt as DisposableTrait, V as WritableSignalTrait, Y as ClientErrorKind, bt as SecuritydeptInjector, ct as EventStreamTrait, et as ErrorPresentationDescriptor, ft as InteropObservableTrait, it as EventObserverTrait, k as ReadableSignalTrait, lt as EventSubjectTrait, nt as ReadErrorPresentationDescriptorOptions, qt as SecuritydeptProvider, rt as UserRecovery, w as IdleCallbackTrait, z as ResourceWhenValueOptions } from "./index-Ch8lrE44.mjs";
2
- import * as _$arktype from "arktype";
3
- import * as _$arktype_internal_variants_object_ts0 from "arktype/internal/variants/object.ts";
4
- import * as _$arktype_internal_variants_string_ts0 from "arktype/internal/variants/string.ts";
1
+ import { $ as ErrorPresentationDescriptor, B as WritableSignalTrait, C as IdleCallbackTrait, D as ComputedSignalTrait, E as TimestampProviderTrait, F as ResourceSnapshot, G as ClientError, Ht as SecuritydeptInjectionToken, J as ClientErrorKind, L as ResourceTrait, O as ReadableSignalTrait, R as ResourceWhenValueOptions, St as DisposableTrait, T as TimeTrait, Tt as SYMBOL_DISPOSE, Ut as SecuritydeptInjectorTrait, W as CancellationTokenTrait, Wt as SecuritydeptProvider, ct as EventSubjectTrait, dt as InteropObservableTrait, nt as UserRecovery, rt as EventObserverTrait, st as EventStreamTrait, tt as ReadErrorPresentationDescriptorOptions, yt as SecuritydeptInjector, z as SignalOptions } from "./index-Cg_iY2yY.mjs";
5
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
6
-
3
+ //#region src/injection/destroy.d.ts
4
+ declare abstract class SecuritydeptDestroyRef implements DisposableTrait {
5
+ abstract readonly destroyed: boolean;
6
+ abstract onDestroy(callback: () => void): () => void;
7
+ abstract dispose(): void;
8
+ [SYMBOL_DISPOSE](): void;
9
+ }
10
+ declare function createSecuritydeptDestroyRef(): SecuritydeptDestroyRef;
11
+ //#endregion
7
12
  //#region src/compat/base64.d.ts
8
13
  declare const Base64CompatErrorCode: {
9
14
  readonly EncoderUnavailable: "compat.base64.encoder_unavailable";
@@ -64,34 +69,34 @@ type ToEventStreamInput<T> = InteropObservableTrait<T> | Promise<T> | AsyncItera
64
69
  declare function toEventStream<T>(input: ToEventStreamInput<T>): EventStreamTrait<T>;
65
70
  //#endregion
66
71
  //#region src/protocol/json-rpc/types.d.ts
67
- declare const JsonRpcIdSchema: _$arktype.BaseType<string | number, {}>;
72
+ declare const JsonRpcIdSchema: import("arktype").BaseType<string | number, {}>;
68
73
  type JsonRpcId = typeof JsonRpcIdSchema.infer;
69
- declare const JsonRpcErrorPayloadSchema: _$arktype_internal_variants_object_ts0.ObjectType<{
74
+ declare const JsonRpcErrorPayloadSchema: import("arktype/internal/variants/object.ts").ObjectType<{
70
75
  code: number;
71
76
  message: string;
72
77
  data?: unknown;
73
78
  }, {}>;
74
79
  type JsonRpcErrorPayload = typeof JsonRpcErrorPayloadSchema.infer;
75
- declare const JsonRpcRequestMessageSchema: _$arktype_internal_variants_object_ts0.ObjectType<{
80
+ declare const JsonRpcRequestMessageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
76
81
  jsonrpc: "2.0";
77
82
  id: string | number;
78
83
  method: string;
79
84
  params?: unknown;
80
85
  }, {}>;
81
86
  type JsonRpcRequestMessage = typeof JsonRpcRequestMessageSchema.infer;
82
- declare const JsonRpcNotificationMessageSchema: _$arktype_internal_variants_object_ts0.ObjectType<{
87
+ declare const JsonRpcNotificationMessageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
83
88
  jsonrpc: "2.0";
84
89
  method: string;
85
90
  params?: unknown;
86
91
  }, {}>;
87
92
  type JsonRpcNotificationMessage = typeof JsonRpcNotificationMessageSchema.infer;
88
- declare const JsonRpcSuccessResponseMessageSchema: _$arktype_internal_variants_object_ts0.ObjectType<{
93
+ declare const JsonRpcSuccessResponseMessageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
89
94
  jsonrpc: "2.0";
90
95
  id: string | number;
91
96
  result: unknown;
92
97
  }, {}>;
93
98
  type JsonRpcSuccessResponseMessage = typeof JsonRpcSuccessResponseMessageSchema.infer;
94
- declare const JsonRpcErrorResponseMessageSchema: _$arktype_internal_variants_object_ts0.ObjectType<{
99
+ declare const JsonRpcErrorResponseMessageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
95
100
  jsonrpc: "2.0";
96
101
  id: string | number;
97
102
  error: {
@@ -101,7 +106,7 @@ declare const JsonRpcErrorResponseMessageSchema: _$arktype_internal_variants_obj
101
106
  };
102
107
  }, {}>;
103
108
  type JsonRpcErrorResponseMessage = typeof JsonRpcErrorResponseMessageSchema.infer;
104
- declare const JsonRpcMessageSchema: _$arktype_internal_variants_object_ts0.ObjectType<{
109
+ declare const JsonRpcMessageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
105
110
  jsonrpc: "2.0";
106
111
  id: string | number;
107
112
  method: string;
@@ -367,10 +372,10 @@ interface PopupTrait {
367
372
  declare const POPUP_TRAIT_TOKEN: SecuritydeptInjectionToken<PopupTrait | null>;
368
373
  //#endregion
369
374
  //#region src/validation/schemas/uri.d.ts
370
- declare const UriStringSchema: _$arktype_internal_variants_string_ts0.StringType<string, {}>;
371
- declare const BaseURIStringSchema: _$arktype_internal_variants_string_ts0.StringType<string, {}>;
372
- declare const UriRelativeStringSchema: _$arktype_internal_variants_string_ts0.StringType<string, {}>;
373
- declare const UriReferenceStringSchema: _$arktype_internal_variants_string_ts0.StringType<string, {}>;
375
+ declare const UriStringSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
376
+ declare const BaseURIStringSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
377
+ declare const UriRelativeStringSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
378
+ declare const UriReferenceStringSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
374
379
  //#endregion
375
380
  //#region src/router/metadata.d.ts
376
381
  /** Route-data key holding the SecurityDept metadata blob for a segment. */
@@ -1057,7 +1062,9 @@ interface RequirementResolution {
1057
1062
  }
1058
1063
  /** Overall plan status. */
1059
1064
  declare const PlanStatus: {
1060
- /** There are still pending requirements. */readonly Pending: "pending"; /** All requirements have been resolved. */
1065
+ /** There are still pending requirements. */
1066
+ readonly Pending: "pending";
1067
+ /** All requirements have been resolved. */
1061
1068
  readonly Settled: "settled";
1062
1069
  };
1063
1070
  type PlanStatus = (typeof PlanStatus)[keyof typeof PlanStatus];
@@ -1086,8 +1093,10 @@ type UnauthenticatedAction = boolean | string | Promise<boolean | string>;
1086
1093
  */
1087
1094
  type RequirementBehaviourContext<TAuthRequirement extends AuthRequirement = AuthRequirement, TPlanContext = {}> = {
1088
1095
  readonly planContext: TPlanContext;
1089
- readonly environment: FoundationEnvironment; /** The full effective requirement list for the active plan. */
1090
- readonly requirements: readonly TAuthRequirement[]; /** Resolutions collected so far (in requirement order). */
1096
+ readonly environment: FoundationEnvironment;
1097
+ /** The full effective requirement list for the active plan. */
1098
+ readonly requirements: readonly TAuthRequirement[];
1099
+ /** Resolutions collected so far (in requirement order). */
1091
1100
  readonly resolutionList: readonly RequirementResolution[];
1092
1101
  };
1093
1102
  /** Stream of unauthenticated requirements discovered by the planner. */
@@ -1101,7 +1110,8 @@ type RequirementCandidateGenerator<TAuthRequirement extends AuthRequirement = Au
1101
1110
  * stream with `for await`.
1102
1111
  */
1103
1112
  type RequirementCandidateSelectionContext<TAuthRequirement extends AuthRequirement = AuthRequirement, TPlanContext = {}> = RequirementBehaviourContext<TAuthRequirement, TPlanContext> & {
1104
- /** Requirements not yet satisfied, yielded as their checks complete. */readonly candidateList: RequirementCandidateGenerator<TAuthRequirement>;
1113
+ /** Requirements not yet satisfied, yielded as their checks complete. */
1114
+ readonly candidateList: RequirementCandidateGenerator<TAuthRequirement>;
1105
1115
  };
1106
1116
  /** Decide whether a single requirement is already satisfied. */
1107
1117
  type CheckAuthenticated<TAuthRequirement extends AuthRequirement = AuthRequirement, TPlanContext = {}> = (requirement: TAuthRequirement, context: RequirementBehaviourContext<TAuthRequirement, TPlanContext>) => AuthenticatedCheck;
@@ -1132,9 +1142,13 @@ declare function isRouteBehaviourContextExtra(value: unknown): value is RouteBeh
1132
1142
  type RequirementBehaviourWithRouteContext<TAuthRequirement extends AuthRequirement = AuthRequirement> = RequirementBehaviour<TAuthRequirement, RouteBehaviourContextExtra>;
1133
1143
  /** Outcome of a pipeline step or run. */
1134
1144
  declare const PipelineOutcome: {
1135
- /** No candidates remain — the plan is satisfied. */readonly Settled: "settled"; /** A candidate was resolved as fulfilled; more may remain. */
1136
- readonly Resolved: "resolved"; /** A candidate's handler blocked progress. */
1137
- readonly Blocked: "blocked"; /** A candidate's handler requested a redirect. */
1145
+ /** No candidates remain — the plan is satisfied. */
1146
+ readonly Settled: "settled";
1147
+ /** A candidate was resolved as fulfilled; more may remain. */
1148
+ readonly Resolved: "resolved";
1149
+ /** A candidate's handler blocked progress. */
1150
+ readonly Blocked: "blocked";
1151
+ /** A candidate's handler requested a redirect. */
1138
1152
  readonly Redirect: "redirect";
1139
1153
  };
1140
1154
  type PipelineOutcome = (typeof PipelineOutcome)[keyof typeof PipelineOutcome];
@@ -1418,20 +1432,20 @@ declare function parseIdentityPrincipalWire(input: unknown): IdentityPrincipal;
1418
1432
  declare function projectIdentityPrincipal(options: ProjectIdentityPrincipalOptions): IdentityPrincipal;
1419
1433
  //#endregion
1420
1434
  //#region src/identity/schemas.d.ts
1421
- declare const IdentityPrincipalSchema: _$arktype_internal_variants_object_ts0.ObjectType<(In: {
1435
+ declare const IdentityPrincipalSchema: import("arktype/internal/variants/object.ts").ObjectType<(In: {
1422
1436
  subject: string;
1423
1437
  displayName?: string | null | undefined;
1424
1438
  picture?: string | null | undefined;
1425
1439
  issuer?: string | null | undefined;
1426
1440
  claims?: object | null | undefined;
1427
- }) => _$arktype.Out<IdentityPrincipal>, {}>;
1428
- declare const IdentityPrincipalWireSchema: _$arktype_internal_variants_object_ts0.ObjectType<(In: {
1441
+ }) => import("arktype").Out<IdentityPrincipal>, {}>;
1442
+ declare const IdentityPrincipalWireSchema: import("arktype/internal/variants/object.ts").ObjectType<(In: {
1429
1443
  subject: string;
1430
1444
  display_name?: string | null | undefined;
1431
1445
  picture?: string | null | undefined;
1432
1446
  issuer?: string | null | undefined;
1433
1447
  claims?: object | null | undefined;
1434
- }) => _$arktype.Out<IdentityPrincipal>, {}>;
1448
+ }) => import("arktype").Out<IdentityPrincipal>, {}>;
1435
1449
  //#endregion
1436
1450
  //#region src/protocol/jwt/types.d.ts
1437
1451
  type JwtAudienceClaim = string | readonly string[];
@@ -1470,6 +1484,13 @@ declare class JwtDecodeError extends ClientError {
1470
1484
  });
1471
1485
  }
1472
1486
  //#endregion
1487
+ //#region src/scheduling/duration.d.ts
1488
+ /**
1489
+ * Parse a human-readable duration string (for example `5m` or `300s`) into
1490
+ * milliseconds.
1491
+ */
1492
+ declare function parseDurationToMs(duration: string): number;
1493
+ //#endregion
1473
1494
  //#region src/span/span.d.ts
1474
1495
  declare function createRootSpan(options?: SpanCreateOptions & WithTraitInputValidator<TraitInputValidator>): SpanTrait;
1475
1496
  //#endregion
@@ -1644,5 +1665,5 @@ declare function createTraceTimelineStore(limit?: number): TraceTimelineStore;
1644
1665
  */
1645
1666
  declare function isLoopbackHttpUrl(url: URL): boolean;
1646
1667
  //#endregion
1647
- export { REQUIREMENT_PLANNER_HOST as $, isCompatFragmentBlock as $n, CreateJsonRpcClientOptions as $r, REALM_STORAGE_TRAIT_TOKEN as $t, cancellationTokenToAbortSignal as A, decodeBase64ToUint8Array as Ai, validateTraitInput as An, PopupClientWindowHandle as Ar, UnauthenticatedAction as At, IdentityPrincipalWireSchema as B, RouterNavigationRequest as Bn, flattenResourceSnapshot as Br, TracingCreateOptions as Bt, OnceAsyncLockSuccess as C, readErrorPresentationDescriptor as Ci, ValidateTraitInputOptions as Cn, PopupAttachSuccess as Cr, RouteBehaviourContextExtra as Ct, createEphemeralFlowStore as D, PageLifecycleTrait as Di, WithTraitInputValidator as Dn, CreatePopupServerSessionOptions as Dr, SelectCandidate as Dt, createJsonCodec as E, PAGE_LIFECYCLE_TRAIT_TOKEN as Ei, ValidationSuccess as En, CreatePopupClientSessionOptions as Er, RouteTreeSegment as Et, decodeJwtPayload as F, SpanCreateOptions as Fn, PopupWindowHandleTrait as Fr, createFoundationEnvironment as Ft, ProjectIdentityPrincipalOptions as G, AppendOrReplaceCompatFragmentResult as Gn, createResource as Gr, TracingEvent as Gt, parseIdentityPrincipalWire as H, TakeCompatFragmentFromRouterOptions as Hn, whenResourceSnapshotValue as Hr, TracingSubscriberTrait as Ht, DecodeJwtPayloadOptions as I, SpanTrait as In, createSignal as Ir, ENVIRONMENT_TOKEN as It, MergeRequirementPlanner as J, SECURITYDEPT_COMPAT_FRAGMENT_VERSION as Jn, ResourceValueUnavailableErrorOptions as Jr, Codec as Jt, StaticRequirementPlanner as K, CompatFragment as Kn, ResourceError as Kr, TracingLevel as Kt, JwtAudienceClaim as L, ROUTER_TRAIT_TOKEN as Ln, readonlySignal as Lr, EnvironmentValidators as Lt, createRootSpan as M, validateWithSchemaSync as Mn, PopupMessageChannelTrait as Mr, isRouteStateSnapshotTrait as Mt, JwtDecodeError as N, OperationSpanTrait as Nn, PopupServerWindowHandle as Nr, resolveEffectiveRequirements as Nt, createKeyedEphemeralFlowStore as O, promisesToRacedAsyncGenerator as Oi, formatValidationFailure as On, PopupErrorCode as Or, StaticAttrsAuthRequirement as Ot, JwtDecodeErrorCode as P, SPAN_TRAIT_TOKEN as Pn, PopupServerWindowHandleTrait as Pr, CreateFoundationEnvironmentOptions as Pt, ProvideRequirementPlannerHostOptions as Q, appendOrReplaceCompatFragment as Qn, createJsonRpcServerAndClient as Qr, PersistentAuthStore as Qt, JwtClaimsSet as R, RouterNavigationIntent as Rn, ResourceSnapshotUpdate as Rr, FoundationEnvironment as Rt, OnceAsyncLockState as S, abortSignalToEventStream as Si, TraitInputValidator as Sn, PopupAttachResult as Sr, ResolutionStatus as St, createInMemoryRecordStore as T, describeError as Ti, ValidationResult as Tn, PopupTrait as Tr, RouteStateSnapshotTrait as Tt, projectIdentityPrincipal as U, takeCompatFragmentFromRouter as Un, CreateResourceOptions as Ur, OperationTraceEventType as Ut, parseIdentityPrincipal as V, RouterTrait as Vn, reduceResourceSnapshot as Vr, createTracing as Vt, IdentityPrincipal as W, AppendOrReplaceCompatFragmentOptions as Wn, ResourceStreamContext as Wr, TRACING_TRAIT_TOKEN as Wt, RequirementPlan as X, TakeCompatFragmentResult as Xn, createJsonRpcClient as Xr, KeyedEphemeralFlowStore as Xt, BaseRequirementPlanner as Y, TakeCompatFragmentOptions as Yn, createComputed as Yr, EphemeralFlowStore as Yt, InjectRequirementPlannerHostOptions as Z, UpdateUriFragmentHash as Zn, createJsonRpcServer as Zr, PERSISTENT_STORAGE_TRAIT_TOKEN as Zt, OnceAsyncLock as _, createEmptyEventStream as _i, AuthorizationSignal as _n, UriRelativeStringSchema as _r, RequirementCandidateGenerator as _t, createConsoleTracingSubscriber as a, JsonRpcId as ai, StoredEnvelope as an, UriReferenceStringInput as ar, provideRequirementPlannerHost as at, OnceAsyncLockInit as b, createEventSubject as bi, TimeForStdCreateOptions as bn, PopupAttachFailure as br, RequirementResolution as bt, InstrumentMethodResolvedOptions as c, JsonRpcNotificationMessage as ci, FetchTransportRedirectKind as cn, UriRelativeString as cr, CheckAuthenticated as ct, defineInstrumentMethodDecorator as d, JsonRpcRequestOptions as di, HttpRequest as dn, SECURITYDEPT_ROUTE_METADATA_KEY as dr, PipelineRunResult as dt, CreateJsonRpcServerAndClientOptions as ei, RecoverableStateStore as en, parseCompatFragment as er, RequirementPlannerHost as et, OperationSpan as f, JsonRpcServerAndClientTrait as fi, HttpResponse as fn, SecuritydeptRouteMetadata as fr, PipelineStepResult as ft, runOperation as g, toEventStream as gi, AuthorizationInterceptedFetchPredicate as gn, UriReferenceStringSchema as gr, RequirementBehaviourWithRouteContext as gt, RunOperationOptionsBase as h, ToEventStreamInput as hi, TransportErrorCode as hn, BaseURIStringSchema as hr, RequirementBehaviourContext as ht, createTraceTimelineStore as i, JsonRpcErrorResponseMessage as ii, StorageTrait as in, UriReferenceString as ir, injectRequirementPlannerHost as it, normalizeAbortError as j, encodeUint8ArrayToBase64 as ji, validateWithSchema as jn, PopupClientWindowHandleTrait as jr, isRouteBehaviourContextExtra as jt, abortSignalToCancellationToken as k, Base64CompatErrorCode as ki, throwValidationClientError as kn, readPopupErrorPresentationDescriptor as kr, StaticAttrsAuthRequirementInput as kt, InstrumentMethodThisContext as l, JsonRpcRequestEvent as li, createBaseTransportForStdFetch as ln, UriSearchParamsInit as lr, OnUnauthenticated as lt, RunOperationOptions as m, JsonRpcSuccessResponseMessage as mi, TRANSPORT_TRAIT_TOKEN as mn, writeSecuritydeptRouteMetadata as mr, RequirementBehaviour as mt, TraceTimelineEntry as n, JsonRpcClientTrait as ni, StorageChangeEvent as nn, UriFragmentPart as nr, RequirementPlannerHostOptions as nt, DefineInstrumentMethodDecoratorContext as o, JsonRpcMessage as oi, SyncStorageTrait as on, UriReferenceStringLike as or, AuthRequirement as ot, RunOperationEnvironment as p, JsonRpcServerTrait as pi, HttpResponseJsonBody as pn, readSecuritydeptRouteMetadata as pr, PlanStatus as pt, RouteCompositionRequirementPlanner as q, CompatFragmentParameters as qn, ResourceErrorCode as qr, TracingTrait as qt, TraceTimelineStore as r, JsonRpcErrorPayload as ri, StorageChangeEventOrigin as rn, UriParseError as rr, defaultSelectCandidate as rt, DefineInstrumentMethodDecoratorFactory as s, JsonRpcNotificationEvent as si, BaseTransportForStdFetchCreateOptions as sn, UriRelativeParts as sr, AuthenticatedCheck as st, isLoopbackHttpUrl as t, CreateJsonRpcServerOptions as ti, SESSION_STORAGE_TRAIT_TOKEN as tn, takeCompatFragment as tr, RequirementPlannerHostBehaviour as tt, InstrumentMethodThisResolver as u, JsonRpcRequestMessage as ui, BaseTransportTrait as un, UriString as ur, PipelineOutcome as ut, OnceAsyncLockCallable as v, createEventReplaySubject as vi, CreateAuthorizationInterceptedFetchOptions as vn, UriStringSchema as vr, RequirementCandidateSelectionContext as vt, createOnceAsyncLockCallable as w, ErrorSummary as wi, ValidationFailure as wn, PopupOpenOptions as wr, RouteRequirementsDeclaration as wt, OnceAsyncLockRunning as x, createNeverEventStream as xi, createTimeForStd as xn, PopupAttachFailureReason as xr, RequirementsComposition as xt, OnceAsyncLockError as y, createEventStream as yi, createAuthorizationInterceptedFetch as yn, POPUP_TRAIT_TOKEN as yr, RequirementPlannerError as yt, IdentityPrincipalSchema as z, RouterNavigationMode as zn, ResourceSnapshotUpdateKind as zr, ServiceWorkerEnvironment as zt };
1648
- //# sourceMappingURL=index-D5mW18cM.d.mts.map
1668
+ export { ProvideRequirementPlannerHostOptions as $, appendOrReplaceCompatFragment as $n, createJsonRpcServerAndClient as $r, PersistentAuthStore as $t, cancellationTokenToAbortSignal as A, Base64CompatErrorCode as Ai, throwValidationClientError as An, readPopupErrorPresentationDescriptor as Ar, StaticAttrsAuthRequirementInput as At, IdentityPrincipalSchema as B, RouterNavigationMode as Bn, ResourceSnapshotUpdateKind as Br, ServiceWorkerEnvironment as Bt, OnceAsyncLockSuccess as C, abortSignalToEventStream as Ci, TraitInputValidator as Cn, PopupAttachResult as Cr, ResolutionStatus as Ct, createEphemeralFlowStore as D, PAGE_LIFECYCLE_TRAIT_TOKEN as Di, ValidationSuccess as Dn, CreatePopupClientSessionOptions as Dr, RouteTreeSegment as Dt, createJsonCodec as E, describeError as Ei, ValidationResult as En, PopupTrait as Er, RouteStateSnapshotTrait as Et, JwtDecodeErrorCode as F, SPAN_TRAIT_TOKEN as Fn, PopupServerWindowHandleTrait as Fr, CreateFoundationEnvironmentOptions as Ft, IdentityPrincipal as G, AppendOrReplaceCompatFragmentOptions as Gn, ResourceStreamContext as Gr, TRACING_TRAIT_TOKEN as Gt, parseIdentityPrincipal as H, RouterTrait as Hn, reduceResourceSnapshot as Hr, createTracing as Ht, decodeJwtPayload as I, SpanCreateOptions as In, PopupWindowHandleTrait as Ir, createFoundationEnvironment as It, RouteCompositionRequirementPlanner as J, CompatFragmentParameters as Jn, ResourceErrorCode as Jr, TracingTrait as Jt, ProjectIdentityPrincipalOptions as K, AppendOrReplaceCompatFragmentResult as Kn, createResource as Kr, TracingEvent as Kt, DecodeJwtPayloadOptions as L, SpanTrait as Ln, createSignal as Lr, ENVIRONMENT_TOKEN as Lt, createRootSpan as M, encodeUint8ArrayToBase64 as Mi, validateWithSchema as Mn, PopupClientWindowHandleTrait as Mr, isRouteBehaviourContextExtra as Mt, parseDurationToMs as N, SecuritydeptDestroyRef as Ni, validateWithSchemaSync as Nn, PopupMessageChannelTrait as Nr, isRouteStateSnapshotTrait as Nt, createKeyedEphemeralFlowStore as O, PageLifecycleTrait as Oi, WithTraitInputValidator as On, CreatePopupServerSessionOptions as Or, SelectCandidate as Ot, JwtDecodeError as P, createSecuritydeptDestroyRef as Pi, OperationSpanTrait as Pn, PopupServerWindowHandle as Pr, resolveEffectiveRequirements as Pt, InjectRequirementPlannerHostOptions as Q, UpdateUriFragmentHash as Qn, createJsonRpcServer as Qr, PERSISTENT_STORAGE_TRAIT_TOKEN as Qt, JwtAudienceClaim as R, ROUTER_TRAIT_TOKEN as Rn, readonlySignal as Rr, EnvironmentValidators as Rt, OnceAsyncLockState as S, createNeverEventStream as Si, createTimeForStd as Sn, PopupAttachFailureReason as Sr, RequirementsComposition as St, createInMemoryRecordStore as T, ErrorSummary as Ti, ValidationFailure as Tn, PopupOpenOptions as Tr, RouteRequirementsDeclaration as Tt, parseIdentityPrincipalWire as U, TakeCompatFragmentFromRouterOptions as Un, whenResourceSnapshotValue as Ur, TracingSubscriberTrait as Ut, IdentityPrincipalWireSchema as V, RouterNavigationRequest as Vn, flattenResourceSnapshot as Vr, TracingCreateOptions as Vt, projectIdentityPrincipal as W, takeCompatFragmentFromRouter as Wn, CreateResourceOptions as Wr, OperationTraceEventType as Wt, BaseRequirementPlanner as X, TakeCompatFragmentOptions as Xn, createComputed as Xr, EphemeralFlowStore as Xt, MergeRequirementPlanner as Y, SECURITYDEPT_COMPAT_FRAGMENT_VERSION as Yn, ResourceValueUnavailableErrorOptions as Yr, Codec as Yt, RequirementPlan as Z, TakeCompatFragmentResult as Zn, createJsonRpcClient as Zr, KeyedEphemeralFlowStore as Zt, OnceAsyncLock as _, toEventStream as _i, AuthorizationInterceptedFetchPredicate as _n, UriReferenceStringSchema as _r, RequirementBehaviourWithRouteContext as _t, createConsoleTracingSubscriber as a, JsonRpcErrorResponseMessage as ai, StorageTrait as an, UriReferenceString as ar, injectRequirementPlannerHost as at, OnceAsyncLockInit as b, createEventStream as bi, createAuthorizationInterceptedFetch as bn, POPUP_TRAIT_TOKEN as br, RequirementPlannerError as bt, InstrumentMethodResolvedOptions as c, JsonRpcNotificationEvent as ci, BaseTransportForStdFetchCreateOptions as cn, UriRelativeParts as cr, AuthenticatedCheck as ct, defineInstrumentMethodDecorator as d, JsonRpcRequestMessage as di, BaseTransportTrait as dn, UriString as dr, PipelineOutcome as dt, CreateJsonRpcClientOptions as ei, REALM_STORAGE_TRAIT_TOKEN as en, isCompatFragmentBlock as er, REQUIREMENT_PLANNER_HOST as et, OperationSpan as f, JsonRpcRequestOptions as fi, HttpRequest as fn, SECURITYDEPT_ROUTE_METADATA_KEY as fr, PipelineRunResult as ft, runOperation as g, ToEventStreamInput as gi, TransportErrorCode as gn, BaseURIStringSchema as gr, RequirementBehaviourContext as gt, RunOperationOptionsBase as h, JsonRpcSuccessResponseMessage as hi, TRANSPORT_TRAIT_TOKEN as hn, writeSecuritydeptRouteMetadata as hr, RequirementBehaviour as ht, createTraceTimelineStore as i, JsonRpcErrorPayload as ii, StorageChangeEventOrigin as in, UriParseError as ir, defaultSelectCandidate as it, normalizeAbortError as j, decodeBase64ToUint8Array as ji, validateTraitInput as jn, PopupClientWindowHandle as jr, UnauthenticatedAction as jt, abortSignalToCancellationToken as k, promisesToRacedAsyncGenerator as ki, formatValidationFailure as kn, PopupErrorCode as kr, StaticAttrsAuthRequirement as kt, InstrumentMethodThisContext as l, JsonRpcNotificationMessage as li, FetchTransportRedirectKind as ln, UriRelativeString as lr, CheckAuthenticated as lt, RunOperationOptions as m, JsonRpcServerTrait as mi, HttpResponseJsonBody as mn, readSecuritydeptRouteMetadata as mr, PlanStatus as mt, TraceTimelineEntry as n, CreateJsonRpcServerOptions as ni, SESSION_STORAGE_TRAIT_TOKEN as nn, takeCompatFragment as nr, RequirementPlannerHostBehaviour as nt, DefineInstrumentMethodDecoratorContext as o, JsonRpcId as oi, StoredEnvelope as on, UriReferenceStringInput as or, provideRequirementPlannerHost as ot, RunOperationEnvironment as p, JsonRpcServerAndClientTrait as pi, HttpResponse as pn, SecuritydeptRouteMetadata as pr, PipelineStepResult as pt, StaticRequirementPlanner as q, CompatFragment as qn, ResourceError as qr, TracingLevel as qt, TraceTimelineStore as r, JsonRpcClientTrait as ri, StorageChangeEvent as rn, UriFragmentPart as rr, RequirementPlannerHostOptions as rt, DefineInstrumentMethodDecoratorFactory as s, JsonRpcMessage as si, SyncStorageTrait as sn, UriReferenceStringLike as sr, AuthRequirement as st, isLoopbackHttpUrl as t, CreateJsonRpcServerAndClientOptions as ti, RecoverableStateStore as tn, parseCompatFragment as tr, RequirementPlannerHost as tt, InstrumentMethodThisResolver as u, JsonRpcRequestEvent as ui, createBaseTransportForStdFetch as un, UriSearchParamsInit as ur, OnUnauthenticated as ut, OnceAsyncLockCallable as v, createEmptyEventStream as vi, AuthorizationSignal as vn, UriRelativeStringSchema as vr, RequirementCandidateGenerator as vt, createOnceAsyncLockCallable as w, readErrorPresentationDescriptor as wi, ValidateTraitInputOptions as wn, PopupAttachSuccess as wr, RouteBehaviourContextExtra as wt, OnceAsyncLockRunning as x, createEventSubject as xi, TimeForStdCreateOptions as xn, PopupAttachFailure as xr, RequirementResolution as xt, OnceAsyncLockError as y, createEventReplaySubject as yi, CreateAuthorizationInterceptedFetchOptions as yn, UriStringSchema as yr, RequirementCandidateSelectionContext as yt, JwtClaimsSet as z, RouterNavigationIntent as zn, ResourceSnapshotUpdate as zr, FoundationEnvironment as zt };
1669
+ //# sourceMappingURL=index-DmIapvr-.d.mts.map
@@ -1,19 +1,5 @@
1
- import { ct as EventStreamTrait } from "./index-Ch8lrE44.mjs";
2
- import { Bn as RouterNavigationRequest, Di as PageLifecycleTrait, Dn as WithTraitInputValidator, Lt as EnvironmentValidators, Vn as RouterTrait, ir as UriReferenceString } from "./index-D5mW18cM.mjs";
3
-
4
- //#region src/web/events/from-storage.d.ts
5
- interface StorageEventTarget {
6
- addEventListener(type: "storage", listener: EventListener): void;
7
- removeEventListener(type: "storage", listener: EventListener): void;
8
- }
9
- interface FromStorageEventOptions {
10
- storageEventTarget: StorageEventTarget;
11
- }
12
- /**
13
- * Adapt browser `storage` events into an event stream.
14
- */
15
- declare function fromStorageEvent(options: FromStorageEventOptions): EventStreamTrait<StorageEvent>;
16
- //#endregion
1
+ import { st as EventStreamTrait } from "./index-Cg_iY2yY.mjs";
2
+ import { Hn as RouterTrait, Oi as PageLifecycleTrait, On as WithTraitInputValidator, Rt as EnvironmentValidators, Vn as RouterNavigationRequest, ar as UriReferenceString } from "./index-DmIapvr-.mjs";
17
3
  //#region src/web/events/page-resume.d.ts
18
4
  declare const PageResumeTriggerKind: {
19
5
  readonly Visibility: "visibility";
@@ -129,5 +115,5 @@ declare class WebLegacyRouter extends NativeWebRouterBase {
129
115
  navigate(request: RouterNavigationRequest): Promise<void>;
130
116
  }
131
117
  //#endregion
132
- export { createPageResumeSource as _, NativeWebWindowLike as a, fromStorageEvent as b, WebNavigationRouter as c, createPageLifecycleForNativeWeb as d, CreatePageResumeSourceOptions as f, PageResumeWindowTarget as g, PageResumeTriggerKind as h, NativeWebRouter as i, createRouterForNativeWeb as l, PageResumeEvent as m, NativeWebLocationLike as n, RouterForNativeWebCreateOptions as o, PageResumeDocumentTarget as p, NativeWebNavigationLike as r, WebLegacyRouter as s, NativeWebHistoryLike as t, PageLifecycleForNativeWebCreateOptions as u, FromStorageEventOptions as v, StorageEventTarget as y };
133
- //# sourceMappingURL=index-BT-u3qNI.d.mts.map
118
+ export { createPageResumeSource as _, NativeWebWindowLike as a, WebNavigationRouter as c, createPageLifecycleForNativeWeb as d, CreatePageResumeSourceOptions as f, PageResumeWindowTarget as g, PageResumeTriggerKind as h, NativeWebRouter as i, createRouterForNativeWeb as l, PageResumeEvent as m, NativeWebLocationLike as n, RouterForNativeWebCreateOptions as o, PageResumeDocumentTarget as p, NativeWebNavigationLike as r, WebLegacyRouter as s, NativeWebHistoryLike as t, PageLifecycleForNativeWebCreateOptions as u };
119
+ //# sourceMappingURL=index-O1A3CdBV.d.mts.map
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as ErrorPresentationActionDescriptor, $t as notMissingProvider, A as ResourceErrorSnapshot, At as StdDisposableStack, Bt as SecuritydeptClassProvider, C as IDLE_CALLBACK_TRAIT_TOKEN, Ct as AsyncDisposableTrait, D as TimestampProviderTrait, Dt as SYMBOL_DISPOSABLE_STACK, E as TimeTrait, Et as SYMBOL_ASYNC_DISPOSE, F as ResourceResolvedSnapshot, Ft as inject, G as CancellationTokenTrait, Gt as SecuritydeptInjectionToken, H as CancelableHandle, Ht as SecuritydeptDependencyToken, I as ResourceSnapshot, It as runInInjectionContext, J as ClientErrorFromUnknownOptions, Jt as SecuritydeptTypeProvider, K as ClientError, Kt as SecuritydeptInjectorTrait, L as ResourceStatus, Lt as tryInjectInInjectionContext, M as ResourceLoadingErrorSnapshot, Mt as injectDisposableStackFrom, N as ResourceLoadingSnapshot, Nt as withDisposableStack, O as ComputedSignalTrait, Ot as SYMBOL_DISPOSE, P as ResourceReloadingSnapshot, Pt as SecuritydeptInjectOptions, Q as ErrorPresentation, Qt as getSecuritydeptProviderToken, R as ResourceTrait, Rt as SecurityDeptOptional, S as isCancellationTokenTrait, St as createSecuritydeptDestroyRef, T as TIME_TRAIT_TOKEN, Tt as DisposableTrait, U as CancellationTokenOptions, Ut as SecuritydeptExistingProvider, V as WritableSignalTrait, Vt as SecuritydeptDependencyDescriptor, W as CancellationTokenSourceTrait, Wt as SecuritydeptFactoryProvider, X as ClientErrorSource, Xt as WithTraitDeps, Y as ClientErrorKind, Yt as SecuritydeptValueProvider, Z as ErrorCodePresentationDescriptor, Zt as createProviderIfTokenMissing, _t as WithInteropObservableTraitCompat, a as mapResource, at as EventOperatorFunction, b as createLinkedCancellationToken, bt as SecuritydeptInjector, ct as EventStreamTrait, dt as RuntimeEventEnvelope, et as ErrorPresentationDescriptor, ft as InteropObservableTrait, gt as SubscriptionTrait, ht as SubscribableTrait, it as EventObserverTrait, j as ResourceIdleSnapshot, jt as createDisposableStack, k as ReadableSignalTrait, kt as SimpleDisposableStack, lt as EventSubjectTrait, mt as SYMBOL_OBSERVABLE, nt as ReadErrorPresentationDescriptorOptions, o as resourceFromSnapshots, ot as EventSource, pt as ObserverTrait, q as ClientErrorFromHttpResponseOptions, qt as SecuritydeptProvider, rt as UserRecovery, st as EventSourceKind, t as parseDurationToMs, tt as ErrorPresentationTone, ut as EventSubscriptionTrait, vt as isInteropObservableTrait, w as IdleCallbackTrait, wt as DisposableStackTrait, x as createCancellationTokenSource, xt as SecuritydeptDestroyRef, yt as INJECTOR_TOKEN, z as ResourceWhenValueOptions, zt as SecuritydeptAbstractType } from "./index-Ch8lrE44.mjs";
2
- import { $ as REQUIREMENT_PLANNER_HOST, $n as isCompatFragmentBlock, $r as CreateJsonRpcClientOptions, $t as REALM_STORAGE_TRAIT_TOKEN, A as cancellationTokenToAbortSignal, Ai as decodeBase64ToUint8Array, An as validateTraitInput, Ar as PopupClientWindowHandle, At as UnauthenticatedAction, B as IdentityPrincipalWireSchema, Bn as RouterNavigationRequest, Br as flattenResourceSnapshot, Bt as TracingCreateOptions, C as OnceAsyncLockSuccess, Ci as readErrorPresentationDescriptor, Cn as ValidateTraitInputOptions, Cr as PopupAttachSuccess, Ct as RouteBehaviourContextExtra, D as createEphemeralFlowStore, Di as PageLifecycleTrait, Dn as WithTraitInputValidator, Dr as CreatePopupServerSessionOptions, Dt as SelectCandidate, E as createJsonCodec, Ei as PAGE_LIFECYCLE_TRAIT_TOKEN, En as ValidationSuccess, Er as CreatePopupClientSessionOptions, Et as RouteTreeSegment, F as decodeJwtPayload, Fn as SpanCreateOptions, Fr as PopupWindowHandleTrait, Ft as createFoundationEnvironment, G as ProjectIdentityPrincipalOptions, Gn as AppendOrReplaceCompatFragmentResult, Gr as createResource, Gt as TracingEvent, H as parseIdentityPrincipalWire, Hn as TakeCompatFragmentFromRouterOptions, Hr as whenResourceSnapshotValue, Ht as TracingSubscriberTrait, I as DecodeJwtPayloadOptions, In as SpanTrait, Ir as createSignal, It as ENVIRONMENT_TOKEN, J as MergeRequirementPlanner, Jn as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, Jr as ResourceValueUnavailableErrorOptions, Jt as Codec, K as StaticRequirementPlanner, Kn as CompatFragment, Kr as ResourceError, Kt as TracingLevel, L as JwtAudienceClaim, Ln as ROUTER_TRAIT_TOKEN, Lr as readonlySignal, Lt as EnvironmentValidators, M as createRootSpan, Mn as validateWithSchemaSync, Mr as PopupMessageChannelTrait, Mt as isRouteStateSnapshotTrait, N as JwtDecodeError, Nn as OperationSpanTrait, Nr as PopupServerWindowHandle, Nt as resolveEffectiveRequirements, O as createKeyedEphemeralFlowStore, Oi as promisesToRacedAsyncGenerator, On as formatValidationFailure, Or as PopupErrorCode, Ot as StaticAttrsAuthRequirement, P as JwtDecodeErrorCode, Pn as SPAN_TRAIT_TOKEN, Pr as PopupServerWindowHandleTrait, Pt as CreateFoundationEnvironmentOptions, Q as ProvideRequirementPlannerHostOptions, Qn as appendOrReplaceCompatFragment, Qr as createJsonRpcServerAndClient, Qt as PersistentAuthStore, R as JwtClaimsSet, Rn as RouterNavigationIntent, Rr as ResourceSnapshotUpdate, Rt as FoundationEnvironment, S as OnceAsyncLockState, Si as abortSignalToEventStream, Sn as TraitInputValidator, Sr as PopupAttachResult, St as ResolutionStatus, T as createInMemoryRecordStore, Ti as describeError, Tn as ValidationResult, Tr as PopupTrait, Tt as RouteStateSnapshotTrait, U as projectIdentityPrincipal, Un as takeCompatFragmentFromRouter, Ur as CreateResourceOptions, Ut as OperationTraceEventType, V as parseIdentityPrincipal, Vn as RouterTrait, Vr as reduceResourceSnapshot, Vt as createTracing, W as IdentityPrincipal, Wn as AppendOrReplaceCompatFragmentOptions, Wr as ResourceStreamContext, Wt as TRACING_TRAIT_TOKEN, X as RequirementPlan, Xn as TakeCompatFragmentResult, Xr as createJsonRpcClient, Xt as KeyedEphemeralFlowStore, Y as BaseRequirementPlanner, Yn as TakeCompatFragmentOptions, Yr as createComputed, Yt as EphemeralFlowStore, Z as InjectRequirementPlannerHostOptions, Zn as UpdateUriFragmentHash, Zr as createJsonRpcServer, Zt as PERSISTENT_STORAGE_TRAIT_TOKEN, _ as OnceAsyncLock, _i as createEmptyEventStream, _n as AuthorizationSignal, _r as UriRelativeStringSchema, _t as RequirementCandidateGenerator, a as createConsoleTracingSubscriber, ai as JsonRpcId, an as StoredEnvelope, ar as UriReferenceStringInput, at as provideRequirementPlannerHost, b as OnceAsyncLockInit, bi as createEventSubject, bn as TimeForStdCreateOptions, br as PopupAttachFailure, bt as RequirementResolution, c as InstrumentMethodResolvedOptions, ci as JsonRpcNotificationMessage, cn as FetchTransportRedirectKind, cr as UriRelativeString, ct as CheckAuthenticated, d as defineInstrumentMethodDecorator, di as JsonRpcRequestOptions, dn as HttpRequest, dr as SECURITYDEPT_ROUTE_METADATA_KEY, dt as PipelineRunResult, ei as CreateJsonRpcServerAndClientOptions, en as RecoverableStateStore, er as parseCompatFragment, et as RequirementPlannerHost, f as OperationSpan, fi as JsonRpcServerAndClientTrait, fn as HttpResponse, fr as SecuritydeptRouteMetadata, ft as PipelineStepResult, g as runOperation, gi as toEventStream, gn as AuthorizationInterceptedFetchPredicate, gr as UriReferenceStringSchema, gt as RequirementBehaviourWithRouteContext, h as RunOperationOptionsBase, hi as ToEventStreamInput, hn as TransportErrorCode, hr as BaseURIStringSchema, ht as RequirementBehaviourContext, i as createTraceTimelineStore, ii as JsonRpcErrorResponseMessage, in as StorageTrait, ir as UriReferenceString, it as injectRequirementPlannerHost, j as normalizeAbortError, ji as encodeUint8ArrayToBase64, jn as validateWithSchema, jr as PopupClientWindowHandleTrait, jt as isRouteBehaviourContextExtra, k as abortSignalToCancellationToken, ki as Base64CompatErrorCode, kn as throwValidationClientError, kr as readPopupErrorPresentationDescriptor, kt as StaticAttrsAuthRequirementInput, l as InstrumentMethodThisContext, li as JsonRpcRequestEvent, ln as createBaseTransportForStdFetch, lr as UriSearchParamsInit, lt as OnUnauthenticated, m as RunOperationOptions, mi as JsonRpcSuccessResponseMessage, mn as TRANSPORT_TRAIT_TOKEN, mr as writeSecuritydeptRouteMetadata, mt as RequirementBehaviour, n as TraceTimelineEntry, ni as JsonRpcClientTrait, nn as StorageChangeEvent, nr as UriFragmentPart, nt as RequirementPlannerHostOptions, o as DefineInstrumentMethodDecoratorContext, oi as JsonRpcMessage, on as SyncStorageTrait, or as UriReferenceStringLike, ot as AuthRequirement, p as RunOperationEnvironment, pi as JsonRpcServerTrait, pn as HttpResponseJsonBody, pr as readSecuritydeptRouteMetadata, pt as PlanStatus, q as RouteCompositionRequirementPlanner, qn as CompatFragmentParameters, qr as ResourceErrorCode, qt as TracingTrait, r as TraceTimelineStore, ri as JsonRpcErrorPayload, rn as StorageChangeEventOrigin, rr as UriParseError, rt as defaultSelectCandidate, s as DefineInstrumentMethodDecoratorFactory, si as JsonRpcNotificationEvent, sn as BaseTransportForStdFetchCreateOptions, sr as UriRelativeParts, st as AuthenticatedCheck, t as isLoopbackHttpUrl, ti as CreateJsonRpcServerOptions, tn as SESSION_STORAGE_TRAIT_TOKEN, tr as takeCompatFragment, tt as RequirementPlannerHostBehaviour, u as InstrumentMethodThisResolver, ui as JsonRpcRequestMessage, un as BaseTransportTrait, ur as UriString, ut as PipelineOutcome, v as OnceAsyncLockCallable, vi as createEventReplaySubject, vn as CreateAuthorizationInterceptedFetchOptions, vr as UriStringSchema, vt as RequirementCandidateSelectionContext, w as createOnceAsyncLockCallable, wi as ErrorSummary, wn as ValidationFailure, wr as PopupOpenOptions, wt as RouteRequirementsDeclaration, x as OnceAsyncLockRunning, xi as createNeverEventStream, xn as createTimeForStd, xr as PopupAttachFailureReason, xt as RequirementsComposition, y as OnceAsyncLockError, yi as createEventStream, yn as createAuthorizationInterceptedFetch, yr as POPUP_TRAIT_TOKEN, yt as RequirementPlannerError, z as IdentityPrincipalSchema, zn as RouterNavigationMode, zr as ResourceSnapshotUpdateKind, zt as ServiceWorkerEnvironment } from "./index-D5mW18cM.mjs";
3
- export { AppendOrReplaceCompatFragmentOptions, AppendOrReplaceCompatFragmentResult, AsyncDisposableTrait, AuthRequirement, AuthenticatedCheck, AuthorizationInterceptedFetchPredicate, AuthorizationSignal, Base64CompatErrorCode, BaseRequirementPlanner, BaseTransportForStdFetchCreateOptions, BaseTransportTrait, BaseURIStringSchema, CancelableHandle, CancellationTokenOptions, CancellationTokenSourceTrait, CancellationTokenTrait, CheckAuthenticated, ClientError, ClientErrorFromHttpResponseOptions, ClientErrorFromUnknownOptions, ClientErrorKind, ClientErrorSource, Codec, CompatFragment, CompatFragmentParameters, ComputedSignalTrait, CreateAuthorizationInterceptedFetchOptions, CreateFoundationEnvironmentOptions, CreateJsonRpcClientOptions, CreateJsonRpcServerAndClientOptions, CreateJsonRpcServerOptions, CreatePopupClientSessionOptions, CreatePopupServerSessionOptions, CreateResourceOptions, DecodeJwtPayloadOptions, DefineInstrumentMethodDecoratorContext, DefineInstrumentMethodDecoratorFactory, DisposableStackTrait, DisposableTrait, ENVIRONMENT_TOKEN, EnvironmentValidators, EphemeralFlowStore, ErrorCodePresentationDescriptor, ErrorPresentation, ErrorPresentationActionDescriptor, ErrorPresentationDescriptor, ErrorPresentationTone, ErrorSummary, EventObserverTrait, EventOperatorFunction, EventSource, EventSourceKind, EventStreamTrait, EventSubjectTrait, EventSubscriptionTrait, FetchTransportRedirectKind, FoundationEnvironment, HttpRequest, HttpResponse, HttpResponseJsonBody, IDLE_CALLBACK_TRAIT_TOKEN, INJECTOR_TOKEN, IdentityPrincipal, IdentityPrincipalSchema, IdentityPrincipalWireSchema, IdleCallbackTrait, InjectRequirementPlannerHostOptions, InstrumentMethodResolvedOptions, InstrumentMethodThisContext, InstrumentMethodThisResolver, InteropObservableTrait, JsonRpcClientTrait, JsonRpcErrorPayload, JsonRpcErrorResponseMessage, JsonRpcId, JsonRpcMessage, JsonRpcNotificationEvent, JsonRpcNotificationMessage, JsonRpcRequestEvent, JsonRpcRequestMessage, JsonRpcRequestOptions, JsonRpcServerAndClientTrait, JsonRpcServerTrait, JsonRpcSuccessResponseMessage, JwtAudienceClaim, JwtClaimsSet, JwtDecodeError, JwtDecodeErrorCode, KeyedEphemeralFlowStore, MergeRequirementPlanner, ObserverTrait, OnUnauthenticated, OnceAsyncLock, OnceAsyncLockCallable, OnceAsyncLockError, OnceAsyncLockInit, OnceAsyncLockRunning, OnceAsyncLockState, OnceAsyncLockSuccess, OperationSpan, OperationSpanTrait, OperationTraceEventType, PAGE_LIFECYCLE_TRAIT_TOKEN, PERSISTENT_STORAGE_TRAIT_TOKEN, POPUP_TRAIT_TOKEN, PageLifecycleTrait, PersistentAuthStore, PipelineOutcome, PipelineRunResult, PipelineStepResult, PlanStatus, PopupAttachFailure, PopupAttachFailureReason, PopupAttachResult, PopupAttachSuccess, PopupClientWindowHandle, PopupClientWindowHandleTrait, PopupErrorCode, PopupMessageChannelTrait, PopupOpenOptions, PopupServerWindowHandle, PopupServerWindowHandleTrait, PopupTrait, PopupWindowHandleTrait, ProjectIdentityPrincipalOptions, ProvideRequirementPlannerHostOptions, REALM_STORAGE_TRAIT_TOKEN, REQUIREMENT_PLANNER_HOST, ROUTER_TRAIT_TOKEN, ReadErrorPresentationDescriptorOptions, ReadableSignalTrait, RecoverableStateStore, RequirementBehaviour, RequirementBehaviourContext, RequirementBehaviourWithRouteContext, RequirementCandidateGenerator, RequirementCandidateSelectionContext, RequirementPlan, RequirementPlannerError, RequirementPlannerHost, RequirementPlannerHostBehaviour, RequirementPlannerHostOptions, RequirementResolution, RequirementsComposition, ResolutionStatus, ResourceError, ResourceErrorCode, ResourceErrorSnapshot, ResourceIdleSnapshot, ResourceLoadingErrorSnapshot, ResourceLoadingSnapshot, ResourceReloadingSnapshot, ResourceResolvedSnapshot, ResourceSnapshot, ResourceSnapshotUpdate, ResourceSnapshotUpdateKind, ResourceStatus, ResourceStreamContext, ResourceTrait, ResourceValueUnavailableErrorOptions, ResourceWhenValueOptions, RouteBehaviourContextExtra, RouteCompositionRequirementPlanner, RouteRequirementsDeclaration, RouteStateSnapshotTrait, RouteTreeSegment, RouterNavigationIntent, RouterNavigationMode, RouterNavigationRequest, RouterTrait, RunOperationEnvironment, RunOperationOptions, RunOperationOptionsBase, RuntimeEventEnvelope, SECURITYDEPT_COMPAT_FRAGMENT_VERSION, SECURITYDEPT_ROUTE_METADATA_KEY, SESSION_STORAGE_TRAIT_TOKEN, SPAN_TRAIT_TOKEN, SYMBOL_ASYNC_DISPOSE, SYMBOL_DISPOSABLE_STACK, SYMBOL_DISPOSE, SYMBOL_OBSERVABLE, SecurityDeptOptional, SecuritydeptAbstractType, SecuritydeptClassProvider, SecuritydeptDependencyDescriptor, SecuritydeptDependencyToken, SecuritydeptDestroyRef, SecuritydeptExistingProvider, SecuritydeptFactoryProvider, SecuritydeptInjectOptions, SecuritydeptInjectionToken, SecuritydeptInjector, SecuritydeptInjectorTrait, SecuritydeptProvider, SecuritydeptRouteMetadata, SecuritydeptTypeProvider, SecuritydeptValueProvider, SelectCandidate, ServiceWorkerEnvironment, SimpleDisposableStack, SpanCreateOptions, SpanTrait, StaticAttrsAuthRequirement, StaticAttrsAuthRequirementInput, StaticRequirementPlanner, StdDisposableStack, StorageChangeEvent, StorageChangeEventOrigin, StorageTrait, StoredEnvelope, SubscribableTrait, SubscriptionTrait, SyncStorageTrait, TIME_TRAIT_TOKEN, TRACING_TRAIT_TOKEN, TRANSPORT_TRAIT_TOKEN, TakeCompatFragmentFromRouterOptions, TakeCompatFragmentOptions, TakeCompatFragmentResult, TimeForStdCreateOptions, TimeTrait, TimestampProviderTrait, ToEventStreamInput, TraceTimelineEntry, TraceTimelineStore, TracingCreateOptions, TracingEvent, TracingLevel, TracingSubscriberTrait, TracingTrait, TraitInputValidator, TransportErrorCode, UnauthenticatedAction, UpdateUriFragmentHash, UriFragmentPart, UriParseError, UriReferenceString, UriReferenceStringInput, UriReferenceStringLike, UriReferenceStringSchema, UriRelativeParts, UriRelativeString, UriRelativeStringSchema, UriSearchParamsInit, UriString, UriStringSchema, UserRecovery, ValidateTraitInputOptions, ValidationFailure, ValidationResult, ValidationSuccess, WithInteropObservableTraitCompat, WithTraitDeps, WithTraitInputValidator, WritableSignalTrait, abortSignalToCancellationToken, abortSignalToEventStream, appendOrReplaceCompatFragment, cancellationTokenToAbortSignal, createAuthorizationInterceptedFetch, createBaseTransportForStdFetch, createCancellationTokenSource, createComputed, createConsoleTracingSubscriber, createDisposableStack, createEmptyEventStream, createEphemeralFlowStore, createEventReplaySubject, createEventStream, createEventSubject, createFoundationEnvironment, createInMemoryRecordStore, createJsonCodec, createJsonRpcClient, createJsonRpcServer, createJsonRpcServerAndClient, createKeyedEphemeralFlowStore, createLinkedCancellationToken, createNeverEventStream, createOnceAsyncLockCallable, createProviderIfTokenMissing, createResource, createRootSpan, createSecuritydeptDestroyRef, createSignal, createTimeForStd, createTraceTimelineStore, createTracing, decodeBase64ToUint8Array, decodeJwtPayload, defaultSelectCandidate, defineInstrumentMethodDecorator, describeError, encodeUint8ArrayToBase64, flattenResourceSnapshot, formatValidationFailure, getSecuritydeptProviderToken, inject, injectDisposableStackFrom, injectRequirementPlannerHost, isCancellationTokenTrait, isCompatFragmentBlock, isInteropObservableTrait, isLoopbackHttpUrl, isRouteBehaviourContextExtra, isRouteStateSnapshotTrait, mapResource, normalizeAbortError, notMissingProvider, parseCompatFragment, parseDurationToMs, parseIdentityPrincipal, parseIdentityPrincipalWire, projectIdentityPrincipal, promisesToRacedAsyncGenerator, provideRequirementPlannerHost, readErrorPresentationDescriptor, readPopupErrorPresentationDescriptor, readSecuritydeptRouteMetadata, readonlySignal, reduceResourceSnapshot, resolveEffectiveRequirements, resourceFromSnapshots, runInInjectionContext, runOperation, takeCompatFragment, takeCompatFragmentFromRouter, throwValidationClientError, toEventStream, tryInjectInInjectionContext, validateTraitInput, validateWithSchema, validateWithSchemaSync, whenResourceSnapshotValue, withDisposableStack, writeSecuritydeptRouteMetadata };
1
+ import { $ as ErrorPresentationDescriptor, A as ResourceIdleSnapshot, At as withDisposableStack, B as WritableSignalTrait, Bt as SecuritydeptExistingProvider, C as IdleCallbackTrait, Ct as SYMBOL_ASYNC_DISPOSE, D as ComputedSignalTrait, Dt as StdDisposableStack, E as TimestampProviderTrait, Et as SimpleDisposableStack, F as ResourceSnapshot, Ft as SecurityDeptOptional, G as ClientError, Gt as SecuritydeptTypeProvider, H as CancellationTokenOptions, Ht as SecuritydeptInjectionToken, I as ResourceStatus, It as SecuritydeptAbstractType, J as ClientErrorKind, Jt as createProviderIfTokenMissing, K as ClientErrorFromHttpResponseOptions, Kt as SecuritydeptValueProvider, L as ResourceTrait, Lt as SecuritydeptClassProvider, M as ResourceLoadingSnapshot, Mt as inject, N as ResourceReloadingSnapshot, Nt as runInInjectionContext, O as ReadableSignalTrait, Ot as createDisposableStack, P as ResourceResolvedSnapshot, Pt as tryInjectInInjectionContext, Q as ErrorPresentationActionDescriptor, R as ResourceWhenValueOptions, Rt as SecuritydeptDependencyDescriptor, S as IDLE_CALLBACK_TRAIT_TOKEN, St as DisposableTrait, T as TimeTrait, Tt as SYMBOL_DISPOSE, U as CancellationTokenSourceTrait, Ut as SecuritydeptInjectorTrait, V as CancelableHandle, Vt as SecuritydeptFactoryProvider, W as CancellationTokenTrait, Wt as SecuritydeptProvider, X as ErrorCodePresentationDescriptor, Xt as notMissingProvider, Y as ClientErrorSource, Yt as getSecuritydeptProviderToken, Z as ErrorPresentation, _t as isInteropObservableTrait, a as resourceFromSnapshots, at as EventSource, b as createCancellationTokenSource, bt as AsyncDisposableTrait, ct as EventSubjectTrait, dt as InteropObservableTrait, et as ErrorPresentationTone, ft as ObserverTrait, gt as WithInteropObservableTraitCompat, ht as SubscriptionTrait, i as mapResource, it as EventOperatorFunction, j as ResourceLoadingErrorSnapshot, jt as SecuritydeptInjectOptions, k as ResourceErrorSnapshot, kt as injectDisposableStackFrom, lt as EventSubscriptionTrait, mt as SubscribableTrait, nt as UserRecovery, ot as EventSourceKind, pt as SYMBOL_OBSERVABLE, q as ClientErrorFromUnknownOptions, qt as WithTraitDeps, rt as EventObserverTrait, st as EventStreamTrait, tt as ReadErrorPresentationDescriptorOptions, ut as RuntimeEventEnvelope, vt as INJECTOR_TOKEN, w as TIME_TRAIT_TOKEN, wt as SYMBOL_DISPOSABLE_STACK, x as isCancellationTokenTrait, xt as DisposableStackTrait, y as createLinkedCancellationToken, yt as SecuritydeptInjector, zt as SecuritydeptDependencyToken } from "./index-Cg_iY2yY.mjs";
2
+ import { $ as ProvideRequirementPlannerHostOptions, $n as appendOrReplaceCompatFragment, $r as createJsonRpcServerAndClient, $t as PersistentAuthStore, A as cancellationTokenToAbortSignal, Ai as Base64CompatErrorCode, An as throwValidationClientError, Ar as readPopupErrorPresentationDescriptor, At as StaticAttrsAuthRequirementInput, B as IdentityPrincipalSchema, Bn as RouterNavigationMode, Br as ResourceSnapshotUpdateKind, Bt as ServiceWorkerEnvironment, C as OnceAsyncLockSuccess, Ci as abortSignalToEventStream, Cn as TraitInputValidator, Cr as PopupAttachResult, Ct as ResolutionStatus, D as createEphemeralFlowStore, Di as PAGE_LIFECYCLE_TRAIT_TOKEN, Dn as ValidationSuccess, Dr as CreatePopupClientSessionOptions, Dt as RouteTreeSegment, E as createJsonCodec, Ei as describeError, En as ValidationResult, Er as PopupTrait, Et as RouteStateSnapshotTrait, F as JwtDecodeErrorCode, Fn as SPAN_TRAIT_TOKEN, Fr as PopupServerWindowHandleTrait, Ft as CreateFoundationEnvironmentOptions, G as IdentityPrincipal, Gn as AppendOrReplaceCompatFragmentOptions, Gr as ResourceStreamContext, Gt as TRACING_TRAIT_TOKEN, H as parseIdentityPrincipal, Hn as RouterTrait, Hr as reduceResourceSnapshot, Ht as createTracing, I as decodeJwtPayload, In as SpanCreateOptions, Ir as PopupWindowHandleTrait, It as createFoundationEnvironment, J as RouteCompositionRequirementPlanner, Jn as CompatFragmentParameters, Jr as ResourceErrorCode, Jt as TracingTrait, K as ProjectIdentityPrincipalOptions, Kn as AppendOrReplaceCompatFragmentResult, Kr as createResource, Kt as TracingEvent, L as DecodeJwtPayloadOptions, Ln as SpanTrait, Lr as createSignal, Lt as ENVIRONMENT_TOKEN, M as createRootSpan, Mi as encodeUint8ArrayToBase64, Mn as validateWithSchema, Mr as PopupClientWindowHandleTrait, Mt as isRouteBehaviourContextExtra, N as parseDurationToMs, Ni as SecuritydeptDestroyRef, Nn as validateWithSchemaSync, Nr as PopupMessageChannelTrait, Nt as isRouteStateSnapshotTrait, O as createKeyedEphemeralFlowStore, Oi as PageLifecycleTrait, On as WithTraitInputValidator, Or as CreatePopupServerSessionOptions, Ot as SelectCandidate, P as JwtDecodeError, Pi as createSecuritydeptDestroyRef, Pn as OperationSpanTrait, Pr as PopupServerWindowHandle, Pt as resolveEffectiveRequirements, Q as InjectRequirementPlannerHostOptions, Qn as UpdateUriFragmentHash, Qr as createJsonRpcServer, Qt as PERSISTENT_STORAGE_TRAIT_TOKEN, R as JwtAudienceClaim, Rn as ROUTER_TRAIT_TOKEN, Rr as readonlySignal, Rt as EnvironmentValidators, S as OnceAsyncLockState, Si as createNeverEventStream, Sn as createTimeForStd, Sr as PopupAttachFailureReason, St as RequirementsComposition, T as createInMemoryRecordStore, Ti as ErrorSummary, Tn as ValidationFailure, Tr as PopupOpenOptions, Tt as RouteRequirementsDeclaration, U as parseIdentityPrincipalWire, Un as TakeCompatFragmentFromRouterOptions, Ur as whenResourceSnapshotValue, Ut as TracingSubscriberTrait, V as IdentityPrincipalWireSchema, Vn as RouterNavigationRequest, Vr as flattenResourceSnapshot, Vt as TracingCreateOptions, W as projectIdentityPrincipal, Wn as takeCompatFragmentFromRouter, Wr as CreateResourceOptions, Wt as OperationTraceEventType, X as BaseRequirementPlanner, Xn as TakeCompatFragmentOptions, Xr as createComputed, Xt as EphemeralFlowStore, Y as MergeRequirementPlanner, Yn as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, Yr as ResourceValueUnavailableErrorOptions, Yt as Codec, Z as RequirementPlan, Zn as TakeCompatFragmentResult, Zr as createJsonRpcClient, Zt as KeyedEphemeralFlowStore, _ as OnceAsyncLock, _i as toEventStream, _n as AuthorizationInterceptedFetchPredicate, _r as UriReferenceStringSchema, _t as RequirementBehaviourWithRouteContext, a as createConsoleTracingSubscriber, ai as JsonRpcErrorResponseMessage, an as StorageTrait, ar as UriReferenceString, at as injectRequirementPlannerHost, b as OnceAsyncLockInit, bi as createEventStream, bn as createAuthorizationInterceptedFetch, br as POPUP_TRAIT_TOKEN, bt as RequirementPlannerError, c as InstrumentMethodResolvedOptions, ci as JsonRpcNotificationEvent, cn as BaseTransportForStdFetchCreateOptions, cr as UriRelativeParts, ct as AuthenticatedCheck, d as defineInstrumentMethodDecorator, di as JsonRpcRequestMessage, dn as BaseTransportTrait, dr as UriString, dt as PipelineOutcome, ei as CreateJsonRpcClientOptions, en as REALM_STORAGE_TRAIT_TOKEN, er as isCompatFragmentBlock, et as REQUIREMENT_PLANNER_HOST, f as OperationSpan, fi as JsonRpcRequestOptions, fn as HttpRequest, fr as SECURITYDEPT_ROUTE_METADATA_KEY, ft as PipelineRunResult, g as runOperation, gi as ToEventStreamInput, gn as TransportErrorCode, gr as BaseURIStringSchema, gt as RequirementBehaviourContext, h as RunOperationOptionsBase, hi as JsonRpcSuccessResponseMessage, hn as TRANSPORT_TRAIT_TOKEN, hr as writeSecuritydeptRouteMetadata, ht as RequirementBehaviour, i as createTraceTimelineStore, ii as JsonRpcErrorPayload, in as StorageChangeEventOrigin, ir as UriParseError, it as defaultSelectCandidate, j as normalizeAbortError, ji as decodeBase64ToUint8Array, jn as validateTraitInput, jr as PopupClientWindowHandle, jt as UnauthenticatedAction, k as abortSignalToCancellationToken, ki as promisesToRacedAsyncGenerator, kn as formatValidationFailure, kr as PopupErrorCode, kt as StaticAttrsAuthRequirement, l as InstrumentMethodThisContext, li as JsonRpcNotificationMessage, ln as FetchTransportRedirectKind, lr as UriRelativeString, lt as CheckAuthenticated, m as RunOperationOptions, mi as JsonRpcServerTrait, mn as HttpResponseJsonBody, mr as readSecuritydeptRouteMetadata, mt as PlanStatus, n as TraceTimelineEntry, ni as CreateJsonRpcServerOptions, nn as SESSION_STORAGE_TRAIT_TOKEN, nr as takeCompatFragment, nt as RequirementPlannerHostBehaviour, o as DefineInstrumentMethodDecoratorContext, oi as JsonRpcId, on as StoredEnvelope, or as UriReferenceStringInput, ot as provideRequirementPlannerHost, p as RunOperationEnvironment, pi as JsonRpcServerAndClientTrait, pn as HttpResponse, pr as SecuritydeptRouteMetadata, pt as PipelineStepResult, q as StaticRequirementPlanner, qn as CompatFragment, qr as ResourceError, qt as TracingLevel, r as TraceTimelineStore, ri as JsonRpcClientTrait, rn as StorageChangeEvent, rr as UriFragmentPart, rt as RequirementPlannerHostOptions, s as DefineInstrumentMethodDecoratorFactory, si as JsonRpcMessage, sn as SyncStorageTrait, sr as UriReferenceStringLike, st as AuthRequirement, t as isLoopbackHttpUrl, ti as CreateJsonRpcServerAndClientOptions, tn as RecoverableStateStore, tr as parseCompatFragment, tt as RequirementPlannerHost, u as InstrumentMethodThisResolver, ui as JsonRpcRequestEvent, un as createBaseTransportForStdFetch, ur as UriSearchParamsInit, ut as OnUnauthenticated, v as OnceAsyncLockCallable, vi as createEmptyEventStream, vn as AuthorizationSignal, vr as UriRelativeStringSchema, vt as RequirementCandidateGenerator, w as createOnceAsyncLockCallable, wi as readErrorPresentationDescriptor, wn as ValidateTraitInputOptions, wr as PopupAttachSuccess, wt as RouteBehaviourContextExtra, x as OnceAsyncLockRunning, xi as createEventSubject, xn as TimeForStdCreateOptions, xr as PopupAttachFailure, xt as RequirementResolution, y as OnceAsyncLockError, yi as createEventReplaySubject, yn as CreateAuthorizationInterceptedFetchOptions, yr as UriStringSchema, yt as RequirementCandidateSelectionContext, z as JwtClaimsSet, zn as RouterNavigationIntent, zr as ResourceSnapshotUpdate, zt as FoundationEnvironment } from "./index-DmIapvr-.mjs";
3
+ export { type AppendOrReplaceCompatFragmentOptions, type AppendOrReplaceCompatFragmentResult, type AsyncDisposableTrait, type AuthRequirement, type AuthenticatedCheck, type AuthorizationInterceptedFetchPredicate, type AuthorizationSignal, Base64CompatErrorCode, BaseRequirementPlanner, type BaseTransportForStdFetchCreateOptions, type BaseTransportTrait, BaseURIStringSchema, type CancelableHandle, type CancellationTokenOptions, type CancellationTokenSourceTrait, type CancellationTokenTrait, type CheckAuthenticated, ClientError, type ClientErrorFromHttpResponseOptions, type ClientErrorFromUnknownOptions, ClientErrorKind, ClientErrorSource, type Codec, type CompatFragment, type CompatFragmentParameters, type ComputedSignalTrait, type CreateAuthorizationInterceptedFetchOptions, type CreateFoundationEnvironmentOptions, type CreateJsonRpcClientOptions, type CreateJsonRpcServerAndClientOptions, type CreateJsonRpcServerOptions, type CreatePopupClientSessionOptions, type CreatePopupServerSessionOptions, type CreateResourceOptions, type DecodeJwtPayloadOptions, type DefineInstrumentMethodDecoratorContext, type DefineInstrumentMethodDecoratorFactory, type DisposableStackTrait, type DisposableTrait, ENVIRONMENT_TOKEN, type EnvironmentValidators, type EphemeralFlowStore, type ErrorCodePresentationDescriptor, type ErrorPresentation, type ErrorPresentationActionDescriptor, type ErrorPresentationDescriptor, ErrorPresentationTone, type ErrorSummary, type EventObserverTrait, type EventOperatorFunction, type EventSource, EventSourceKind, type EventStreamTrait, type EventSubjectTrait, type EventSubscriptionTrait, FetchTransportRedirectKind, type FoundationEnvironment, type HttpRequest, type HttpResponse, type HttpResponseJsonBody, IDLE_CALLBACK_TRAIT_TOKEN, INJECTOR_TOKEN, type IdentityPrincipal, IdentityPrincipalSchema, IdentityPrincipalWireSchema, type IdleCallbackTrait, type InjectRequirementPlannerHostOptions, type InstrumentMethodResolvedOptions, type InstrumentMethodThisContext, type InstrumentMethodThisResolver, type InteropObservableTrait, type JsonRpcClientTrait, type JsonRpcErrorPayload, type JsonRpcErrorResponseMessage, type JsonRpcId, type JsonRpcMessage, type JsonRpcNotificationEvent, type JsonRpcNotificationMessage, type JsonRpcRequestEvent, type JsonRpcRequestMessage, type JsonRpcRequestOptions, type JsonRpcServerAndClientTrait, type JsonRpcServerTrait, type JsonRpcSuccessResponseMessage, type JwtAudienceClaim, type JwtClaimsSet, JwtDecodeError, JwtDecodeErrorCode, type KeyedEphemeralFlowStore, MergeRequirementPlanner, type ObserverTrait, type OnUnauthenticated, type OnceAsyncLock, type OnceAsyncLockCallable, type OnceAsyncLockError, type OnceAsyncLockInit, type OnceAsyncLockRunning, OnceAsyncLockState, type OnceAsyncLockSuccess, OperationSpan, type OperationSpanTrait, OperationTraceEventType, PAGE_LIFECYCLE_TRAIT_TOKEN, PERSISTENT_STORAGE_TRAIT_TOKEN, POPUP_TRAIT_TOKEN, type PageLifecycleTrait, type PersistentAuthStore, PipelineOutcome, type PipelineRunResult, type PipelineStepResult, PlanStatus, type PopupAttachFailure, PopupAttachFailureReason, type PopupAttachResult, type PopupAttachSuccess, PopupClientWindowHandle, type PopupClientWindowHandleTrait, PopupErrorCode, type PopupMessageChannelTrait, type PopupOpenOptions, PopupServerWindowHandle, type PopupServerWindowHandleTrait, type PopupTrait, type PopupWindowHandleTrait, type ProjectIdentityPrincipalOptions, type ProvideRequirementPlannerHostOptions, REALM_STORAGE_TRAIT_TOKEN, REQUIREMENT_PLANNER_HOST, ROUTER_TRAIT_TOKEN, type ReadErrorPresentationDescriptorOptions, type ReadableSignalTrait, type RecoverableStateStore, type RequirementBehaviour, type RequirementBehaviourContext, type RequirementBehaviourWithRouteContext, type RequirementCandidateGenerator, type RequirementCandidateSelectionContext, type RequirementPlan, RequirementPlannerError, RequirementPlannerHost, type RequirementPlannerHostBehaviour, type RequirementPlannerHostOptions, type RequirementResolution, RequirementsComposition, ResolutionStatus, ResourceError, ResourceErrorCode, type ResourceErrorSnapshot, type ResourceIdleSnapshot, type ResourceLoadingErrorSnapshot, type ResourceLoadingSnapshot, type ResourceReloadingSnapshot, type ResourceResolvedSnapshot, type ResourceSnapshot, type ResourceSnapshotUpdate, ResourceSnapshotUpdateKind, ResourceStatus, type ResourceStreamContext, type ResourceTrait, type ResourceValueUnavailableErrorOptions, type ResourceWhenValueOptions, type RouteBehaviourContextExtra, RouteCompositionRequirementPlanner, type RouteRequirementsDeclaration, type RouteStateSnapshotTrait, type RouteTreeSegment, RouterNavigationIntent, RouterNavigationMode, type RouterNavigationRequest, type RouterTrait, type RunOperationEnvironment, type RunOperationOptions, type RunOperationOptionsBase, type RuntimeEventEnvelope, SECURITYDEPT_COMPAT_FRAGMENT_VERSION, SECURITYDEPT_ROUTE_METADATA_KEY, SESSION_STORAGE_TRAIT_TOKEN, SPAN_TRAIT_TOKEN, SYMBOL_ASYNC_DISPOSE, SYMBOL_DISPOSABLE_STACK, SYMBOL_DISPOSE, SYMBOL_OBSERVABLE, SecurityDeptOptional, type SecuritydeptAbstractType, type SecuritydeptClassProvider, type SecuritydeptDependencyDescriptor, type SecuritydeptDependencyToken, SecuritydeptDestroyRef, type SecuritydeptExistingProvider, type SecuritydeptFactoryProvider, type SecuritydeptInjectOptions, SecuritydeptInjectionToken, SecuritydeptInjector, type SecuritydeptInjectorTrait, type SecuritydeptProvider, type SecuritydeptRouteMetadata, type SecuritydeptTypeProvider, type SecuritydeptValueProvider, type SelectCandidate, type ServiceWorkerEnvironment, SimpleDisposableStack, type SpanCreateOptions, type SpanTrait, StaticAttrsAuthRequirement, type StaticAttrsAuthRequirementInput, StaticRequirementPlanner, StdDisposableStack, type StorageChangeEvent, StorageChangeEventOrigin, type StorageTrait, type StoredEnvelope, type SubscribableTrait, type SubscriptionTrait, type SyncStorageTrait, TIME_TRAIT_TOKEN, TRACING_TRAIT_TOKEN, TRANSPORT_TRAIT_TOKEN, type TakeCompatFragmentFromRouterOptions, type TakeCompatFragmentOptions, type TakeCompatFragmentResult, type TimeForStdCreateOptions, type TimeTrait, type TimestampProviderTrait, type ToEventStreamInput, type TraceTimelineEntry, type TraceTimelineStore, type TracingCreateOptions, type TracingEvent, TracingLevel, type TracingSubscriberTrait, type TracingTrait, type TraitInputValidator, TransportErrorCode, type UnauthenticatedAction, type UpdateUriFragmentHash, type UriFragmentPart, UriParseError, UriReferenceString, type UriReferenceStringInput, type UriReferenceStringLike, UriReferenceStringSchema, type UriRelativeParts, UriRelativeString, UriRelativeStringSchema, type UriSearchParamsInit, UriString, UriStringSchema, UserRecovery, type ValidateTraitInputOptions, type ValidationFailure, type ValidationResult, type ValidationSuccess, type WithInteropObservableTraitCompat, type WithTraitDeps, type WithTraitInputValidator, type WritableSignalTrait, abortSignalToCancellationToken, abortSignalToEventStream, appendOrReplaceCompatFragment, cancellationTokenToAbortSignal, createAuthorizationInterceptedFetch, createBaseTransportForStdFetch, createCancellationTokenSource, createComputed, createConsoleTracingSubscriber, createDisposableStack, createEmptyEventStream, createEphemeralFlowStore, createEventReplaySubject, createEventStream, createEventSubject, createFoundationEnvironment, createInMemoryRecordStore, createJsonCodec, createJsonRpcClient, createJsonRpcServer, createJsonRpcServerAndClient, createKeyedEphemeralFlowStore, createLinkedCancellationToken, createNeverEventStream, createOnceAsyncLockCallable, createProviderIfTokenMissing, createResource, createRootSpan, createSecuritydeptDestroyRef, createSignal, createTimeForStd, createTraceTimelineStore, createTracing, decodeBase64ToUint8Array, decodeJwtPayload, defaultSelectCandidate, defineInstrumentMethodDecorator, describeError, encodeUint8ArrayToBase64, flattenResourceSnapshot, formatValidationFailure, getSecuritydeptProviderToken, inject, injectDisposableStackFrom, injectRequirementPlannerHost, isCancellationTokenTrait, isCompatFragmentBlock, isInteropObservableTrait, isLoopbackHttpUrl, isRouteBehaviourContextExtra, isRouteStateSnapshotTrait, mapResource, normalizeAbortError, notMissingProvider, parseCompatFragment, parseDurationToMs, parseIdentityPrincipal, parseIdentityPrincipalWire, projectIdentityPrincipal, promisesToRacedAsyncGenerator, provideRequirementPlannerHost, readErrorPresentationDescriptor, readPopupErrorPresentationDescriptor, readSecuritydeptRouteMetadata, readonlySignal, reduceResourceSnapshot, resolveEffectiveRequirements, resourceFromSnapshots, runInInjectionContext, runOperation, takeCompatFragment, takeCompatFragmentFromRouter, throwValidationClientError, toEventStream, tryInjectInInjectionContext, validateTraitInput, validateWithSchema, validateWithSchemaSync, whenResourceSnapshotValue, withDisposableStack, writeSecuritydeptRouteMetadata };
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
- import { A as RxEventSubject, B as withDisposableStack, E as RxComputedSignal, F as SYMBOL_DISPOSE, G as UserRecovery, H as ClientErrorKind, I as SimpleDisposableStack, L as StdDisposableStack, M as isInteropObservableTrait, N as SYMBOL_ASYNC_DISPOSE, O as RxEventReplaySubject, P as SYMBOL_DISPOSABLE_STACK, R as createDisposableStack, U as ClientErrorSource, V as ClientError, W as ErrorPresentationTone, a as ResourceSnapshotUpdateKind, c as whenResourceSnapshotValue, d as ResourceErrorCode, f as CancellationToken, i as rxResource, j as SYMBOL_OBSERVABLE, k as RxEventStream, l as ResourceStatus, m as isCancellationTokenTrait, n as mapResource, o as flattenResourceSnapshot, p as createCancellationTokenSource, r as resourceFromSnapshots, s as reduceResourceSnapshot, u as ResourceError, z as injectDisposableStackFrom } from "./rx-BoB32Dzg.mjs";
2
- import { $ as INJECTOR_TOKEN, A as appendOrReplaceCompatFragment, B as createJsonRpcServerAndClient, C as IDLE_CALLBACK_TRAIT_TOKEN, D as RouterNavigationMode, E as RouterNavigationIntent, F as PopupAttachFailureReason, G as validateWithSchemaSync, H as throwValidationClientError, I as PopupClientWindowHandle, J as PAGE_LIFECYCLE_TRAIT_TOKEN, K as PopupErrorCode, L as PopupServerWindowHandle, M as parseCompatFragment, N as takeCompatFragment, O as takeCompatFragmentFromRouter, P as POPUP_TRAIT_TOKEN, Q as readonlySignal, R as createJsonRpcClient, S as SPAN_TRAIT_TOKEN, T as ROUTER_TRAIT_TOKEN, U as validateTraitInput, V as formatValidationFailure, W as validateWithSchema, X as isEventStreamTrait, Y as EventSourceKind, Z as createSignal, _ as abortSignalToCancellationToken, a as TracingLevel, at as createProviderIfTokenMissing, b as abortSignalToEventStream, c as PERSISTENT_STORAGE_TRAIT_TOKEN, ct as readErrorPresentationDescriptor, d as StorageChangeEventOrigin, et as PARENT_INJECTOR_TOKEN, f as FetchTransportRedirectKind, g as createTimeForStd, h as TransportErrorCode, i as TRACING_TRAIT_TOKEN, it as SecuritydeptInjectionToken, j as isCompatFragmentBlock, k as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, l as REALM_STORAGE_TRAIT_TOKEN, m as TRANSPORT_TRAIT_TOKEN, n as ENVIRONMENT_TOKEN, nt as toRuntimeInjector, o as createTracing, ot as getSecuritydeptProviderToken, p as createBaseTransportForStdFetch, q as readPopupErrorPresentationDescriptor, r as OperationTraceEventType, rt as SecurityDeptOptional, s as createInMemoryRecordStore, st as notMissingProvider, t as createFoundationEnvironment, tt as SecuritydeptInjector, u as SESSION_STORAGE_TRAIT_TOKEN, v as cancellationTokenToAbortSignal, w as TIME_TRAIT_TOKEN, x as createRootSpan, y as normalizeAbortError, z as createJsonRpcServer } from "./create-Bm-XRA3G.mjs";
3
- import { i as UriString, n as UriReferenceString, r as UriRelativeString, t as UriParseError } from "./uri-string-BfnIT4gJ.mjs";
1
+ import { A as RxEventSubject, B as withDisposableStack, E as RxComputedSignal, F as SYMBOL_DISPOSE, G as UserRecovery, H as ClientErrorKind, I as SimpleDisposableStack, L as StdDisposableStack, M as isInteropObservableTrait, N as SYMBOL_ASYNC_DISPOSE, O as RxEventReplaySubject, P as SYMBOL_DISPOSABLE_STACK, R as createDisposableStack, U as ClientErrorSource, V as ClientError, W as ErrorPresentationTone, a as ResourceSnapshotUpdateKind, c as whenResourceSnapshotValue, d as ResourceErrorCode, f as CancellationToken, i as rxResource, j as SYMBOL_OBSERVABLE, k as RxEventStream, l as ResourceStatus, m as isCancellationTokenTrait, n as mapResource, o as flattenResourceSnapshot, p as createCancellationTokenSource, r as resourceFromSnapshots, s as reduceResourceSnapshot, u as ResourceError, z as injectDisposableStackFrom } from "./rx-B3OU17wu.mjs";
2
+ import { a as createJsonRpcServerAndClient, c as createSignal, i as createJsonRpcServer, l as readonlySignal, n as PopupServerWindowHandle, o as PopupErrorCode, r as createJsonRpcClient, s as readPopupErrorPresentationDescriptor, t as PopupClientWindowHandle, u as readErrorPresentationDescriptor } from "./handle-TnxwtQ4T.mjs";
3
+ import { A as appendOrReplaceCompatFragment, B as validateWithSchemaSync, C as IDLE_CALLBACK_TRAIT_TOKEN, D as RouterNavigationMode, E as RouterNavigationIntent, F as PopupAttachFailureReason, G as PARENT_INJECTOR_TOKEN, H as EventSourceKind, I as formatValidationFailure, J as SecurityDeptOptional, K as SecuritydeptInjector, L as throwValidationClientError, M as parseCompatFragment, N as takeCompatFragment, O as takeCompatFragmentFromRouter, P as POPUP_TRAIT_TOKEN, Q as notMissingProvider, R as validateTraitInput, S as SPAN_TRAIT_TOKEN, T as ROUTER_TRAIT_TOKEN, U as isEventStreamTrait, V as PAGE_LIFECYCLE_TRAIT_TOKEN, W as INJECTOR_TOKEN, X as createProviderIfTokenMissing, Y as SecuritydeptInjectionToken, Z as getSecuritydeptProviderToken, _ as abortSignalToCancellationToken, a as TracingLevel, b as abortSignalToEventStream, c as PERSISTENT_STORAGE_TRAIT_TOKEN, d as StorageChangeEventOrigin, f as FetchTransportRedirectKind, g as createTimeForStd, h as TransportErrorCode, i as TRACING_TRAIT_TOKEN, j as isCompatFragmentBlock, k as SECURITYDEPT_COMPAT_FRAGMENT_VERSION, l as REALM_STORAGE_TRAIT_TOKEN, m as TRANSPORT_TRAIT_TOKEN, n as ENVIRONMENT_TOKEN, o as createTracing, p as createBaseTransportForStdFetch, q as toRuntimeInjector, r as OperationTraceEventType, s as createInMemoryRecordStore, t as createFoundationEnvironment, u as SESSION_STORAGE_TRAIT_TOKEN, v as cancellationTokenToAbortSignal, w as TIME_TRAIT_TOKEN, x as createRootSpan, y as normalizeAbortError, z as validateWithSchema } from "./create-99Ksgl_O.mjs";
4
+ import { i as UriString, n as UriReferenceString, r as UriRelativeString, t as UriParseError } from "./uri-string-BPNbIMgv.mjs";
4
5
  import { v7 } from "uuid";
5
6
  import { inject as inject$1, runInInjectionContext as runInInjectionContext$1 } from "injection-js";
6
7
  import { EMPTY, NEVER, ReplaySubject, filter, from, merge, take, takeUntil } from "rxjs";
@@ -316,8 +317,9 @@ function readSecuritydeptRouteMetadata(data) {
316
317
  /** Merge SecurityDept route metadata into a route `data` bag. */
317
318
  function writeSecuritydeptRouteMetadata(base, patch) {
318
319
  const data = { ...base ?? {} };
320
+ const previous = data["__securitydept__"] ?? {};
319
321
  data[SECURITYDEPT_ROUTE_METADATA_KEY] = {
320
- ...data["__securitydept__"] ?? {},
322
+ ...previous,
321
323
  ...patch
322
324
  };
323
325
  return data;
@@ -473,9 +475,7 @@ function createConsoleTracingSubscriber() {
473
475
  case "warn":
474
476
  console.warn(label, event.fields ?? {});
475
477
  break;
476
- case "error":
477
- console.error(label, event.fields ?? {});
478
- break;
478
+ case "error": console.error(label, event.fields ?? {});
479
479
  }
480
480
  } };
481
481
  }
@@ -817,7 +817,8 @@ var RouteCompositionRequirementPlanner = class RouteCompositionRequirementPlanne
817
817
  const nextEffective = foldSegments(currentSegments);
818
818
  const shared = sharedPrefixLength(previousPlanner.effectiveRequirements, nextEffective);
819
819
  const sharedIds = new Set(nextEffective.slice(0, shared).map((requirement) => requirement.id));
820
- return new RouteCompositionRequirementPlanner(host, currentSegments, routeState, previousPlan.resolutionList.filter((resolution) => sharedIds.has(resolution.requirementId)));
820
+ const preserved = previousPlan.resolutionList.filter((resolution) => sharedIds.has(resolution.requirementId));
821
+ return new RouteCompositionRequirementPlanner(host, currentSegments, routeState, preserved);
821
822
  }
822
823
  get planContext() {
823
824
  return this._planContext;