alepha 0.18.2 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/devtools-ui/200.html +2 -2
- package/assets/devtools-ui/200.html.br +0 -0
- package/assets/devtools-ui/404.html +2 -2
- package/assets/devtools-ui/404.html.br +0 -0
- package/assets/devtools-ui/{asset.BfSBZ5Dd.css → asset.hG_f8HuK.css} +1 -1
- package/assets/devtools-ui/asset.hG_f8HuK.css.br +0 -0
- package/assets/devtools-ui/chunk.B3au4Lhg.js +1 -0
- package/assets/devtools-ui/chunk.B3au4Lhg.js.br +0 -0
- package/assets/devtools-ui/chunk.BLOrlnMB.js +1 -0
- package/assets/devtools-ui/chunk.BLOrlnMB.js.br +0 -0
- package/assets/devtools-ui/chunk.BLR01ljW.js +1 -0
- package/assets/devtools-ui/chunk.BLR01ljW.js.br +0 -0
- package/assets/devtools-ui/chunk.BTXaIUlA.js +1 -0
- package/assets/devtools-ui/chunk.BTXaIUlA.js.br +0 -0
- package/assets/devtools-ui/{chunk.lJL-lgnW.js → chunk.BhJaxmm8.js} +1 -1
- package/assets/devtools-ui/chunk.BhJaxmm8.js.br +0 -0
- package/assets/devtools-ui/chunk.BtoNxFuL.js +1 -0
- package/assets/devtools-ui/chunk.BtoNxFuL.js.br +0 -0
- package/assets/devtools-ui/chunk.C8YUV2Wd.js +1 -0
- package/assets/devtools-ui/chunk.C8YUV2Wd.js.br +0 -0
- package/assets/devtools-ui/{chunk.M6wyKO_3.js → chunk.CBbIgDzE.js} +2 -2
- package/assets/devtools-ui/chunk.CBbIgDzE.js.br +0 -0
- package/assets/devtools-ui/chunk.CFqIniwA.js +1 -0
- package/assets/devtools-ui/chunk.CFqIniwA.js.br +0 -0
- package/assets/devtools-ui/chunk.CLFF7f7-.js +1 -0
- package/assets/devtools-ui/chunk.CLFF7f7-.js.br +0 -0
- package/assets/devtools-ui/chunk.CRsBbA10.js +1 -0
- package/assets/devtools-ui/chunk.CRsBbA10.js.br +0 -0
- package/assets/devtools-ui/{chunk.DbEH1oOB.js → chunk.CZPo6v95.js} +1 -1
- package/assets/devtools-ui/chunk.CZPo6v95.js.br +0 -0
- package/assets/devtools-ui/chunk.D0fWgNos.js +1 -0
- package/assets/devtools-ui/chunk.D0fWgNos.js.br +1 -0
- package/assets/devtools-ui/chunk.D7-0ziQ6.js +1 -0
- package/assets/devtools-ui/chunk.D7-0ziQ6.js.br +0 -0
- package/assets/devtools-ui/chunk.DAewe0vm.js +1 -0
- package/assets/devtools-ui/chunk.DAewe0vm.js.br +0 -0
- package/assets/devtools-ui/chunk.DJRQEYqK.js +1 -0
- package/assets/devtools-ui/chunk.DJRQEYqK.js.br +0 -0
- package/assets/devtools-ui/{chunk.CZl6J9DF.js → chunk.DMAxv14p.js} +1 -1
- package/assets/devtools-ui/chunk.DMAxv14p.js.br +0 -0
- package/assets/devtools-ui/{chunk.BT2IiBkZ.js → chunk.DMImnNjU.js} +1 -1
- package/assets/devtools-ui/chunk.DMImnNjU.js.br +0 -0
- package/assets/devtools-ui/chunk.DeeQsidk.js +9 -0
- package/assets/devtools-ui/chunk.DeeQsidk.js.br +0 -0
- package/assets/devtools-ui/chunk.DqEwn9Vj.js +7 -0
- package/assets/devtools-ui/chunk.DqEwn9Vj.js.br +0 -0
- package/assets/devtools-ui/chunk.Dt8OsQey.js +1 -0
- package/assets/devtools-ui/chunk.Dt8OsQey.js.br +0 -0
- package/assets/devtools-ui/{chunk.B9pX3zit.js → chunk.Dtp8oa_f.js} +1 -1
- package/assets/devtools-ui/chunk.Dtp8oa_f.js.br +0 -0
- package/assets/devtools-ui/chunk.Dx3JzAYM.js +1 -0
- package/assets/devtools-ui/chunk.Dx3JzAYM.js.br +0 -0
- package/assets/devtools-ui/chunk.GCOj1-5E.js +1 -0
- package/assets/devtools-ui/chunk.GCOj1-5E.js.br +0 -0
- package/assets/devtools-ui/chunk.IC1LD8BH.js +1 -0
- package/assets/devtools-ui/chunk.IC1LD8BH.js.br +0 -0
- package/assets/devtools-ui/chunk.IwuB_TqW.js +1 -0
- package/assets/devtools-ui/chunk.IwuB_TqW.js.br +0 -0
- package/assets/devtools-ui/chunk.Qqapj2zq.js +1 -0
- package/assets/devtools-ui/chunk.Qqapj2zq.js.br +0 -0
- package/assets/devtools-ui/{chunk.C79YouPp.js → chunk.TKKKndOy.js} +1 -1
- package/assets/devtools-ui/chunk.TKKKndOy.js.br +0 -0
- package/assets/devtools-ui/chunk.YHTVhFQT.js +1 -0
- package/assets/devtools-ui/chunk.YHTVhFQT.js.br +0 -0
- package/assets/devtools-ui/chunk.fnod6uEi.js +1 -0
- package/assets/devtools-ui/chunk.fnod6uEi.js.br +0 -0
- package/assets/devtools-ui/chunk.mOCRmXjo.js +1 -0
- package/assets/devtools-ui/chunk.mOCRmXjo.js.br +0 -0
- package/assets/devtools-ui/chunk.qZTNEAK0.js +1 -0
- package/assets/devtools-ui/chunk.qZTNEAK0.js.br +0 -0
- package/assets/devtools-ui/chunk.rc9m0y4-.js +1 -0
- package/assets/devtools-ui/chunk.rc9m0y4-.js.br +0 -0
- package/assets/devtools-ui/entry.Cxc5QLCU.js +80 -0
- package/assets/devtools-ui/entry.Cxc5QLCU.js.br +0 -0
- package/assets/devtools-ui/index.html +2 -2
- package/assets/devtools-ui/index.html.br +0 -0
- package/assets/swagger-ui/swagger-ui-bundle.js +1 -1
- package/assets/swagger-ui/swagger-ui.css +1 -1
- package/dist/api/audits/index.d.ts +61 -5
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/files/index.d.ts +61 -5
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/jobs/index.d.ts +61 -5
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +4 -2
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +5 -5
- package/dist/api/notifications/index.browser.js +44 -1
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +187 -2
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +143 -8
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.d.ts +61 -5
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/users/index.d.ts +330 -93
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +27 -36
- package/dist/api/users/index.js.map +1 -1
- package/dist/cli/config/index.d.ts +46 -0
- package/dist/cli/config/index.d.ts.map +1 -0
- package/dist/cli/config/index.js +20 -0
- package/dist/cli/config/index.js.map +1 -0
- package/dist/cli/core/index.d.ts +69 -66
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +329 -196
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +302 -63
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +455 -25
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/core/index.browser.js +125 -87
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +62 -53
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +125 -87
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +125 -87
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +125 -87
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.d.ts +18 -1
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js +29 -3
- package/dist/crypto/index.js.map +1 -1
- package/dist/devtools/index.js +3 -12
- package/dist/devtools/index.js.map +1 -1
- package/dist/logger/index.d.ts +10 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +19 -9
- package/dist/logger/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +57 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +378 -19
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +328 -9
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +384 -21
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js +49 -17
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +47 -21
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js +52 -17
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/react/core/index.d.ts +1 -1
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +6 -1
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +28 -18
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +92 -56
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/router/index.browser.js +448 -116
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +102 -40
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +453 -92
- package/dist/react/router/index.js.map +1 -1
- package/dist/security/index.d.ts +3 -11
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +6 -11
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +22 -24
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +102 -82
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.d.ts +7 -4
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +13 -12
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.d.ts +288 -4
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +375 -2
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/links/index.browser.js +10 -71
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +32 -49
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +73 -100
- package/dist/server/links/index.js.map +1 -1
- package/dist/system/index.browser.js +221 -2
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +63 -1
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +221 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.workerd.js +224 -4
- package/dist/system/index.workerd.js.map +1 -1
- package/package.json +10 -5
- package/src/api/jobs/providers/JobProvider.ts +6 -3
- package/src/api/notifications/controllers/AdminNotificationController.ts +83 -0
- package/src/api/notifications/index.browser.ts +3 -0
- package/src/api/notifications/index.ts +14 -2
- package/src/api/notifications/jobs/NotificationJobs.ts +11 -2
- package/src/api/notifications/schemas/notificationDetailResourceSchema.ts +20 -0
- package/src/api/notifications/schemas/notificationQuerySchema.ts +19 -0
- package/src/api/notifications/schemas/notificationResourceSchema.ts +18 -0
- package/src/api/notifications/services/NotificationSenderService.ts +15 -2
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +28 -32
- package/src/api/users/buckets/UserBuckets.ts +1 -1
- package/src/api/users/jobs/UserJobs.ts +1 -1
- package/src/api/users/primitives/$realm.ts +8 -49
- package/src/api/users/providers/RealmProvider.ts +2 -3
- package/src/api/users/services/RegistrationService.spec.ts +7 -7
- package/src/api/users/services/RegistrationService.ts +3 -3
- package/src/api/users/services/SessionService.spec.ts +4 -4
- package/src/api/users/services/SessionService.ts +3 -3
- package/src/cli/{core → config}/defineConfig.ts +14 -20
- package/src/cli/config/index.ts +1 -0
- package/src/cli/core/commands/db.ts +65 -1
- package/src/cli/core/commands/dev.ts +1 -0
- package/src/cli/core/commands/init.ts +2 -192
- package/src/cli/core/index.ts +34 -11
- package/src/cli/core/providers/ViteDevServerProvider.ts +52 -13
- package/src/cli/core/services/PackageManagerUtils.ts +43 -21
- package/src/cli/core/services/ProjectScaffolder.ts +214 -2
- package/src/cli/core/services/ViteUtils.ts +57 -0
- package/src/cli/core/tasks/BuildClientTask.ts +7 -2
- package/src/cli/core/tasks/BuildCloudflareTask.ts +4 -12
- package/src/cli/core/tasks/BuildServerTask.ts +2 -0
- package/src/cli/core/tasks/BuildVercelTask.ts +165 -168
- package/src/cli/core/templates/alephaConfigTs.ts +1 -1
- package/src/cli/core/templates/apiAppSecurityTs.ts +5 -8
- package/src/cli/core/templates/tsconfigJson.ts +6 -1
- package/src/cli/platform/adapters/CloudflareAdapter.spec.ts +1 -1
- package/src/cli/platform/adapters/CloudflareAdapter.ts +30 -29
- package/src/cli/platform/atoms/platformOptions.ts +21 -0
- package/src/cli/platform/commands/SecretsCommand.spec.ts +298 -0
- package/src/cli/platform/commands/SecretsCommand.ts +283 -0
- package/src/cli/platform/commands/platform.ts +12 -0
- package/src/cli/platform/index.ts +14 -28
- package/src/cli/platform/providers/GitHubSecretStore.spec.ts +153 -0
- package/src/cli/platform/providers/GitHubSecretStore.ts +112 -0
- package/src/cli/platform/providers/MemorySecretStore.ts +114 -0
- package/src/cli/platform/providers/SecretStoreProvider.ts +39 -0
- package/src/cli/platform/schemas/cloudflare.ts +2 -0
- package/src/cli/platform/services/CloudflareApi.ts +5 -2
- package/src/cli/platform/services/DockerComposeGenerator.spec.ts +115 -0
- package/src/cli/platform/services/DockerComposeGenerator.ts +46 -1
- package/src/cli/platform/services/SecretFilterService.spec.ts +111 -0
- package/src/cli/platform/services/SecretFilterService.ts +54 -0
- package/src/core/Alepha.ts +94 -25
- package/src/core/__tests__/Alepha-parseEnv.spec.ts +20 -0
- package/src/core/primitives/$memoize.ts +38 -26
- package/src/core/providers/AlsProvider.ts +2 -0
- package/src/core/providers/EventManager.ts +4 -0
- package/src/core/providers/KeylessJsonSchemaCodec.spec.ts +1 -4
- package/src/core/providers/KeylessJsonSchemaCodec.ts +19 -125
- package/src/core/providers/SchemaValidator.spec.ts +36 -0
- package/src/core/providers/SchemaValidator.ts +9 -0
- package/src/crypto/index.ts +6 -1
- package/src/crypto/providers/SecretProvider.ts +36 -0
- package/src/devtools/providers/DevToolsProvider.ts +3 -12
- package/src/logger/index.ts +33 -6
- package/src/logger/providers/PrettyFormatterProvider.ts +5 -3
- package/src/orm/__tests__/orm-next-tests.ts +492 -0
- package/src/orm/__tests__/orm-next.spec.ts +140 -0
- package/src/orm/core/constants/PG_SYMBOLS.ts +17 -0
- package/src/orm/core/index.bun.ts +3 -6
- package/src/orm/core/index.shared-server.ts +2 -0
- package/src/orm/core/index.shared.ts +2 -0
- package/src/orm/core/index.ts +5 -7
- package/src/orm/core/interfaces/AggregateQuery.ts +103 -0
- package/src/orm/core/interfaces/PgQueryWhere.ts +7 -0
- package/src/orm/core/primitives/$entity.ts +8 -0
- package/src/orm/core/primitives/$repository.ts +6 -3
- package/src/orm/core/primitives/$view.ts +88 -0
- package/src/orm/core/providers/DbCacheProvider.ts +66 -0
- package/src/orm/core/providers/DrizzleKitProvider.ts +42 -0
- package/src/orm/core/providers/drivers/BunSqliteProvider.ts +2 -3
- package/src/orm/core/providers/drivers/CloudflareD1Provider.ts +12 -0
- package/src/orm/core/providers/drivers/DatabaseProvider.ts +39 -0
- package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +2 -3
- package/src/orm/core/schemas/databaseEnvSchema.ts +31 -0
- package/src/orm/core/schemas/insertSchema.ts +13 -3
- package/src/orm/core/schemas/updateSchema.ts +14 -3
- package/src/orm/core/services/ModelBuilder.ts +26 -14
- package/src/orm/core/services/QueryManager.ts +13 -0
- package/src/orm/core/services/Repository.ts +307 -5
- package/src/orm/core/services/SqliteModelBuilder.ts +38 -0
- package/src/orm/postgres/index.bun.ts +4 -7
- package/src/orm/postgres/index.ts +4 -7
- package/src/orm/postgres/providers/BunPostgresProvider.ts +12 -2
- package/src/orm/postgres/providers/NodePostgresProvider.ts +7 -0
- package/src/orm/postgres/providers/PglitePostgresProvider.ts +10 -17
- package/src/orm/postgres/providers/PostgresProvider.ts +7 -36
- package/src/orm/postgres/schemas/postgresEnvSchema.ts +32 -0
- package/src/orm/postgres/services/PostgresModelBuilder.ts +40 -0
- package/src/react/core/components/ErrorBoundary.tsx +5 -2
- package/src/react/form/hooks/useFieldValue.ts +34 -0
- package/src/react/form/hooks/useForm.browser.spec.tsx +94 -9
- package/src/react/form/hooks/useForm.ts +14 -2
- package/src/react/form/hooks/useFormState.ts +10 -10
- package/src/react/form/hooks/useFormValues.ts +29 -0
- package/src/react/form/index.ts +3 -1
- package/src/react/form/services/FormModel.ts +53 -122
- package/src/react/router/components/ErrorViewer.tsx +333 -34
- package/src/react/router/components/NestedView.tsx +10 -3
- package/src/react/router/primitives/$page.browser.spec.tsx +34 -0
- package/src/react/router/primitives/$page.spec.tsx +20 -0
- package/src/react/router/primitives/$page.ts +24 -0
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +14 -2
- package/src/react/router/providers/ReactPageProvider.ts +156 -73
- package/src/react/router/providers/ReactServerProvider.ts +40 -2
- package/src/react/router/providers/ReactServerTemplateProvider.ts +13 -1
- package/src/security/providers/SecurityProvider.ts +5 -27
- package/src/server/auth/primitives/$auth.ts +52 -19
- package/src/server/auth/providers/ServerAuthProvider.ts +145 -139
- package/src/server/cookies/providers/ServerCookiesProvider.ts +12 -24
- package/src/server/core/index.ts +3 -1
- package/src/server/core/primitives/$sse.spec.ts +315 -0
- package/src/server/core/primitives/$sse.ts +715 -0
- package/src/server/links/index.browser.ts +1 -3
- package/src/server/links/index.ts +0 -3
- package/src/server/links/providers/LinkProvider.spec.ts +12 -21
- package/src/server/links/providers/LinkProvider.ts +20 -52
- package/src/server/links/providers/ServerLinksProvider.spec.ts +106 -0
- package/src/server/links/providers/ServerLinksProvider.ts +113 -73
- package/src/server/links/schemas/apiLinksResponseSchema.ts +4 -21
- package/src/server/links/services/BatchCollector.ts +5 -3
- package/src/system/index.browser.ts +1 -0
- package/src/system/index.ts +3 -0
- package/src/system/index.workerd.ts +39 -1
- package/src/system/providers/WorkerdFileSystemProvider.ts +365 -0
- package/assets/devtools-ui/asset.BfSBZ5Dd.css.br +0 -0
- package/assets/devtools-ui/chunk.2NYaoqWt.js +0 -1
- package/assets/devtools-ui/chunk.2NYaoqWt.js.br +0 -0
- package/assets/devtools-ui/chunk.B052Z_xQ.js +0 -1
- package/assets/devtools-ui/chunk.B052Z_xQ.js.br +0 -0
- package/assets/devtools-ui/chunk.B4kVY90C.js +0 -1
- package/assets/devtools-ui/chunk.B4kVY90C.js.br +0 -0
- package/assets/devtools-ui/chunk.B7QJXctB.js +0 -1
- package/assets/devtools-ui/chunk.B7QJXctB.js.br +0 -0
- package/assets/devtools-ui/chunk.B9pX3zit.js.br +0 -0
- package/assets/devtools-ui/chunk.BKF9JxIo.js +0 -1
- package/assets/devtools-ui/chunk.BKF9JxIo.js.br +0 -0
- package/assets/devtools-ui/chunk.BOHgdTP-.js +0 -1
- package/assets/devtools-ui/chunk.BOHgdTP-.js.br +0 -0
- package/assets/devtools-ui/chunk.BOVFxkYC.js +0 -1
- package/assets/devtools-ui/chunk.BOVFxkYC.js.br +0 -0
- package/assets/devtools-ui/chunk.BR842zj5.js +0 -1
- package/assets/devtools-ui/chunk.BR842zj5.js.br +0 -0
- package/assets/devtools-ui/chunk.BT2IiBkZ.js.br +0 -0
- package/assets/devtools-ui/chunk.C79YouPp.js.br +0 -0
- package/assets/devtools-ui/chunk.C8mlBrjW.js +0 -9
- package/assets/devtools-ui/chunk.C8mlBrjW.js.br +0 -0
- package/assets/devtools-ui/chunk.CK0ow3AZ.js +0 -1
- package/assets/devtools-ui/chunk.CK0ow3AZ.js.br +0 -0
- package/assets/devtools-ui/chunk.CZl6J9DF.js.br +0 -0
- package/assets/devtools-ui/chunk.CdNr0YzS.js +0 -1
- package/assets/devtools-ui/chunk.CdNr0YzS.js.br +0 -0
- package/assets/devtools-ui/chunk.Ce6_6iIF.js +0 -1
- package/assets/devtools-ui/chunk.Ce6_6iIF.js.br +0 -0
- package/assets/devtools-ui/chunk.CpyDMr6O.js +0 -1
- package/assets/devtools-ui/chunk.CpyDMr6O.js.br +0 -0
- package/assets/devtools-ui/chunk.CyPmvPnY.js +0 -1
- package/assets/devtools-ui/chunk.CyPmvPnY.js.br +0 -0
- package/assets/devtools-ui/chunk.DTI_geWu.js +0 -1
- package/assets/devtools-ui/chunk.DTI_geWu.js.br +0 -0
- package/assets/devtools-ui/chunk.DbEH1oOB.js.br +0 -0
- package/assets/devtools-ui/chunk.Ddeqj5gv.js +0 -1
- package/assets/devtools-ui/chunk.Ddeqj5gv.js.br +0 -0
- package/assets/devtools-ui/chunk.DpRnB4vJ.js +0 -1
- package/assets/devtools-ui/chunk.DpRnB4vJ.js.br +0 -0
- package/assets/devtools-ui/chunk.DxPGTlsg.js +0 -1
- package/assets/devtools-ui/chunk.DxPGTlsg.js.br +0 -0
- package/assets/devtools-ui/chunk.G7_MMBJS.js +0 -1
- package/assets/devtools-ui/chunk.G7_MMBJS.js.br +0 -0
- package/assets/devtools-ui/chunk.M6wyKO_3.js.br +0 -0
- package/assets/devtools-ui/chunk.OUxNGmQ6.js +0 -1
- package/assets/devtools-ui/chunk.OUxNGmQ6.js.br +0 -0
- package/assets/devtools-ui/chunk.T1kle-fF.js +0 -1
- package/assets/devtools-ui/chunk.T1kle-fF.js.br +0 -0
- package/assets/devtools-ui/chunk.WjpsbQAv.js +0 -1
- package/assets/devtools-ui/chunk.WjpsbQAv.js.br +0 -0
- package/assets/devtools-ui/chunk.c6YgVx86.js +0 -1
- package/assets/devtools-ui/chunk.c6YgVx86.js.br +0 -0
- package/assets/devtools-ui/chunk.dwU3E_MU.js +0 -1
- package/assets/devtools-ui/chunk.dwU3E_MU.js.br +0 -0
- package/assets/devtools-ui/chunk.lJL-lgnW.js.br +0 -0
- package/assets/devtools-ui/chunk.lPWRmvA-.js +0 -7
- package/assets/devtools-ui/chunk.lPWRmvA-.js.br +0 -0
- package/assets/devtools-ui/chunk.p3HJvugM.js +0 -1
- package/assets/devtools-ui/chunk.p3HJvugM.js.br +0 -0
- package/assets/devtools-ui/chunk.r_Xoa_CI.js +0 -1
- package/assets/devtools-ui/chunk.r_Xoa_CI.js.br +0 -0
- package/assets/devtools-ui/chunk.sRNuTYXb.js +0 -1
- package/assets/devtools-ui/chunk.sRNuTYXb.js.br +0 -0
- package/assets/devtools-ui/chunk.tUjcyX5C.js +0 -1
- package/assets/devtools-ui/chunk.tUjcyX5C.js.br +0 -0
- package/assets/devtools-ui/chunk.thjBxvCA.js +0 -1
- package/assets/devtools-ui/chunk.thjBxvCA.js.br +0 -0
- package/assets/devtools-ui/entry.GYhBVRpC.js +0 -78
- package/assets/devtools-ui/entry.GYhBVRpC.js.br +0 -0
- package/src/server/links/services/DefinitionsPool.spec.ts +0 -86
- package/src/server/links/services/DefinitionsPool.ts +0 -43
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.c6YgVx86.js","chunk.CpyDMr6O.js","chunk.DpRnB4vJ.js","chunk.dwU3E_MU.js","chunk.BOHgdTP-.js","chunk.WjpsbQAv.js","chunk.p3HJvugM.js","chunk.r_Xoa_CI.js","chunk.thjBxvCA.js","chunk.Ce6_6iIF.js","chunk.CyPmvPnY.js","chunk.lJL-lgnW.js","chunk.BR842zj5.js","chunk.DbEH1oOB.js","chunk.B7QJXctB.js","chunk.BT2IiBkZ.js","chunk.CK0ow3AZ.js","chunk.DTI_geWu.js","chunk.C8mlBrjW.js","chunk.sRNuTYXb.js","chunk.BKF9JxIo.js","chunk.T1kle-fF.js","chunk.G7_MMBJS.js","chunk.B9pX3zit.js","chunk.B052Z_xQ.js","chunk.CZl6J9DF.js","chunk.C79YouPp.js","chunk.tUjcyX5C.js","chunk.Ddeqj5gv.js","chunk.BOVFxkYC.js","chunk.lPWRmvA-.js","asset.BZV40eAE.css","chunk.2NYaoqWt.js","chunk.DxPGTlsg.js","chunk.M6wyKO_3.js","chunk.OUxNGmQ6.js","chunk.B4kVY90C.js","chunk.CdNr0YzS.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var IT=Object.defineProperty;var L5=(t,e,n)=>e in t?IT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var o=(t,e)=>IT(t,"name",{value:e,configurable:!0});var dn=(t,e,n)=>L5(t,typeof e!="symbol"?e+"":e,n);function z5(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in t)){const c=Object.getOwnPropertyDescriptor(r,a);c&&Object.defineProperty(t,a,c.get?c:{enumerable:!0,get:o(()=>r[a],"get")})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}o(z5,"_mergeNamespaces");o(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const c of a)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function n(a){const c={};return a.integrity&&(c.integrity=a.integrity),a.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?c.credentials="include":a.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}o(n,"getFetchOpts");function r(a){if(a.ep)return;a.ep=!0;const c=n(a);fetch(a.href,c)}o(r,"processPreload")},"polyfill")();const Un=Symbol.for("Alepha.Kind"),Ln=Symbol.for("Alepha.Module"),Ks=Symbol.for("Alepha.Options"),yS=class yS extends Error{name="AlephaError"};o(yS,"AlephaError");let _t=yS;const bS=class bS extends _t{name="CircularDependencyError";constructor(e,n){super(`Instance not available. Looks like a circular dependency. ? -> ${n?.map(r=>`${r} -> `).join("")}${e} -> ?`)}};o(bS,"CircularDependencyError");let E0=bS;const vS=class vS extends _t{name="ContainerLockedError";constructor(e="Container is locked. No more providers can be added."){super(e)}};o(vS,"ContainerLockedError");let fm=vS;const SS=class SS extends _t{name="TooLateSubstitutionError";constructor(e,n){super(`Service already substituted. Please, substitute Service '${e}' with Service '${n}' before using it.`)}};o(SS,"TooLateSubstitutionError");let w0=SS;const xS=class xS extends _t{name="MissingContextError";constructor(){super("Missing context. Did you forget to call Alepha.create()?"),this.name="MissingContextError"}};o(xS,"MissingContextError");let T0=xS;const _r={},Pu=o(()=>{if(!_r.alepha)throw new T0;return{alepha:_r.alepha,service:_r.service,module:_r.service?.[Ln]}},"$context"),ES=class ES{alepha;options;config;constructor(e){this.alepha=e.alepha,this.options=e.options,this.config={propertyKey:"",service:e.service,module:e.module}}onInit(){}};o(ES,"Primitive");let ni=ES;const cs=o((t,e)=>{const{alepha:n,service:r}=Pu();return Ln in t&&t[Ln]&&n.with(t[Ln]),n.inject(t,{lifetime:"transient",args:[{options:e,alepha:n,service:r??Ke}]})},"createPrimitive");function B5(t){if(typeof t!="function")return!1;const e=Object.getOwnPropertyDescriptor(t,"prototype");return!!e&&!e.writable}o(B5,"isClass");const Fn=o(t=>{var c;const{services:e=[],primitives:n=[],name:r}=t;if(!r||!gl.NAME_REGEX.test(r))throw new _t(`Invalid module name '${r}'. It should be in the format of 'project.module.submodule'`);const a=(c=class extends gl{options=t;register(d){if(t.atoms)for(const h of t.atoms)d.store.register(h);if(typeof t.register=="function"){t.register(d);return}for(const h of e)d.inject(h,{parent:this.constructor})}},o(c,"$"),c);Object.defineProperty(a,"name",{value:r,writable:!1});for(const f of e)gl.is(f)||(f[Ln]=a);for(const f of n)typeof f[Un]=="function"&&(f[Un][Ln]=a);return a},"$module");var es;let gl=(es=class{static is(e){return e.prototype instanceof es}static of(e){return e[Ln]}},o(es,"Module"),dn(es,"NAME_REGEX",/^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/),es);const il=Symbol("als.parent"),wu=class wu{als;constructor(){this.als=wu.create()}createContextId(){return crypto.randomUUID()}run(e,n={}){if(!this.als)return e();const r=this.als.getStore()??void 0;return n.registry??=new Map,n.context??=this.createContextId(),this.als.run({...n,[il]:r},e)}exists(){return!!this.get("context")}get(e,n){if(!this.als)return;const r=this.als.getStore();if(!r||n==="app")return;if(n==="current")return e in r?r[e]:void 0;if(n==="parent")return r[il]?.[e];if(e in r)return r[e];let a=r[il];for(;a;){if(e in a)return a[e];a=a[il]}}has(e){if(!this.als)return!1;const n=this.als.getStore();if(!n)return!1;if(e in n)return!0;let r=n[il];for(;r;){if(e in r)return!0;r=r[il]}return!1}set(e,n){if(!this.als)return;const r=this.als.getStore();r&&(r[e]=n)}};o(wu,"AlsProvider"),dn(wu,"create",o(()=>{},"create"));let dm=wu;const Ot=o((t,e={})=>{const{alepha:n,service:r}=Pu();return t===n.constructor?n:n.inject(t,{parent:r??n.constructor,...e})},"$inject");var El;let U5=(El=class{stringify=JSON.stringify;parse=JSON.parse},o(El,"Json"),El);const wS=class wS{};o(wS,"SchemaCodec");let mm=wS;const TS=class TS extends mm{json=Ot(U5);encoder=new TextEncoder;decoder=new TextDecoder;encodeToString(e,n){return this.json.stringify(n)}encodeToBinary(e,n){return this.encoder.encode(this.encodeToString(e,n))}decode(e,n){if(n instanceof Uint8Array){const r=this.decoder.decode(n);return this.json.parse(r)}if(typeof n=="string"){const r=n.trim();return r.startsWith("{")||r.startsWith("[")?this.json.parse(n):n}return n}};o(TS,"JsonSchemaCodec");let hm=TS;const rr=o(t=>cs(pm,t),"$hook"),AS=class AS extends ni{called=0;onInit(){const e=this.options.handler,n=o(r=>r?(Array.isArray(r)?r:[r]).map(c=>c.constructor):void 0,"resolveDeps");this.alepha.events.on(this.options.on,{caller:this.config.service,priority:this.options.priority,before:n(this.options.before),after:n(this.options.after),callback:o(r=>(this.called+=1,e(r)),"callback")})}};o(AS,"HookPrimitive");let pm=AS;rr[Un]=pm;function Xe(t,e){return{...t,...e}}o(Xe,"Assign");function Wo(t,e,n){return t>=e&&t<=n}o(Wo,"IsBetween");function LT(t){return Wo(t,127462,127487)}o(LT,"IsRegionalIndicator");function H5(t){return Wo(t,65024,65039)}o(H5,"IsVariationSelector");function k5(t){return Wo(t,768,879)||Wo(t,6832,6911)||Wo(t,7616,7679)||Wo(t,65056,65071)}o(k5,"IsCombiningMark");function Qd(t){return t>65535?2:1}o(Qd,"CodePointLength");function zT(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(k5(n)||H5(n))e+=Qd(n);else break}return e}o(zT,"ConsumeModifiers");function Mb(t,e){const n=t.codePointAt(e);let r=e+Qd(n);for(r=zT(t,r);r<t.length-1&&t[r]==="";){const a=t.codePointAt(r+1);r+=1+Qd(a),r=zT(t,r)}return LT(n)&&r<t.length&<(t.codePointAt(r))&&(r+=Qd(t.codePointAt(r))),r}o(Mb,"NextGraphemeClusterIndex");function wC(t){return Wo(t,55296,56319)||Wo(t,768,879)||t===8205}o(wC,"IsGraphemeCodePoint");function F5(t){let e=0,n=0;for(;n<t.length;)n=Mb(t,n),e++;return e}o(F5,"GraphemeCount$1");function q5(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=Mb(t,r),n++,n>=e)return!0;return!1}o(q5,"IsMinLength$3");function P5(t,e){let n=0,r=0;for(;r<t.length;)if(r=Mb(t,r),n++,n>e)return!1;return!0}o(P5,"IsMaxLength$3");function G5(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(wC(t.charCodeAt(n)))return q5(t,e);if(n++,n>=e)return!0}return!1}o(G5,"IsMinLengthFast");function Y5(t,e){let n=0;for(;n<t.length;){if(wC(t.charCodeAt(n)))return P5(t,e);if(n++,n>e)return!1}return!0}o(Y5,"IsMaxLengthFast");function wt(t){return Array.isArray(t)}o(wt,"IsArray$2");function TC(t){return Mt(t)&&Symbol.asyncIterator in t}o(TC,"IsAsyncIterator$2");function Oe(t){return R(typeof t,"bigint")}o(Oe,"IsBigInt$2");function Fe(t){return R(typeof t,"boolean")}o(Fe,"IsBoolean$3");function Ob(t){if(pe(t)||!so(t))return!1;const e=Function.prototype.toString.call(t);return!!(/^class\s/.test(e)||/\[native code\]/.test(e))}o(Ob,"IsConstructor$2");function so(t){return R(typeof t,"function")}o(so,"IsFunction$2");function ih(t){return Number.isInteger(t)}o(ih,"IsInteger$2");function AC(t){return Mt(t)&&Symbol.iterator in t}o(AC,"IsIterator$2");function qn(t){return R(t,null)}o(qn,"IsNull$2");function Vt(t){return Number.isFinite(t)}o(Vt,"IsNumber$3");function fo(t){return Mt(t)&&!wt(t)}o(fo,"IsObjectNotArray$1");function Mt(t){return R(typeof t,"object")&&!qn(t)}o(Mt,"IsObject$2");function jt(t){return R(typeof t,"string")}o(jt,"IsString$3");function Rb(t){return R(typeof t,"symbol")}o(Rb,"IsSymbol$2");function pe(t){return R(t,void 0)}o(pe,"IsUndefined$2");function R(t,e){return t===e}o(R,"IsEqual$1");function Ll(t,e){return t>e}o(Ll,"IsGreaterThan$1");function oh(t,e){return t<e}o(oh,"IsLessThan$1");function mo(t,e){return t<=e}o(mo,"IsLessEqualThan$1");function zl(t,e){return t>=e}o(zl,"IsGreaterEqualThan$1");function CC(t,e){if(Oe(t)||Oe(e))return BigInt(t)%BigInt(e)===0n;const n=1e-10;if(!Vt(t)||ih(t)&&1/e%1===0)return!0;const r=t%e;return Math.min(Math.abs(r),Math.abs(r-e))<n}o(CC,"IsMultipleOf$1");function $C(t){if(!Mt(t))return!1;const e=globalThis.Object.getPrototypeOf(t);return qn(e)?!1:R(typeof e.constructor,"function")&&!(R(e.constructor,globalThis.Object)||R(e.constructor.name,"Object"))}o($C,"IsClassInstance");function Gu(t){return Oe(t)||Fe(t)||qn(t)||Vt(t)||jt(t)||pe(t)}o(Gu,"IsValueLike");function V5(t){return F5(t)}o(V5,"GraphemeCount");function MC(t,e){return Y5(t,e)}o(MC,"IsMaxLength$2");function OC(t,e){return G5(t,e)}o(OC,"IsMinLength$2");function hn(t,e,n){for(let r=e;r<t.length;r++)if(!n(t[r],r))return!1;return!0}o(hn,"Every$1");function pn(t,e,n){let r=!0;for(let a=e;a<t.length;a++)n(t[a],a)||(r=!1);return r}o(pn,"EveryAll");function at(t,e){return R(e,"__proto__")||R(e,"constructor")?Object.prototype.hasOwnProperty.call(t,e):e in t}o(at,"HasPropertyKey$1");function Nb(t){return gt(t).map(e=>[new RegExp(`^${e}$`),t[e]])}o(Nb,"EntriesRegExp");function Qe(t){return Object.entries(t)}o(Qe,"Entries$2");function gt(t){return Object.getOwnPropertyNames(t)}o(gt,"Keys$1");function K5(t){return Object.getOwnPropertySymbols(t)}o(K5,"Symbols");function _b(t){return Object.values(t)}o(_b,"Values");function X5(t,e){if(!Mt(e))return!1;const n=gt(t);return R(n.length,gt(e).length)&&n.every(r=>Yu(t[r],e[r]))}o(X5,"DeepEqualObject");function Q5(t,e){return wt(e)&&R(t.length,e.length)&&t.every((n,r)=>Yu(t[r],e[r]))}o(Q5,"DeepEqualArray");function Yu(t,e){return wt(t)?Q5(t,e):Mt(t)?X5(t,e):R(t,e)}o(Yu,"IsDeepEqual$1");const Z5=Object.freeze(Object.defineProperty({__proto__:null,Entries:Qe,EntriesRegExp:Nb,Every:hn,EveryAll:pn,GraphemeCount:V5,HasPropertyKey:at,IsArray:wt,IsAsyncIterator:TC,IsBigInt:Oe,IsBoolean:Fe,IsClassInstance:$C,IsConstructor:Ob,IsDeepEqual:Yu,IsEqual:R,IsFunction:so,IsGreaterEqualThan:zl,IsGreaterThan:Ll,IsInteger:ih,IsIterator:AC,IsLessEqualThan:mo,IsLessThan:oh,IsMaxLength:MC,IsMinLength:OC,IsMultipleOf:CC,IsNull:qn,IsNumber:Vt,IsObject:Mt,IsObjectNotArray:fo,IsString:jt,IsSymbol:Rb,IsUndefined:pe,IsValueLike:Gu,Keys:gt,Symbols:K5,Values:_b},Symbol.toStringTag,{value:"Module"})),J5=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function W5(t){return J5.test(t)}o(W5,"IsIdentifier$1");function hr(t,e){return`(${t} && ${e})`}o(hr,"And");function be(t,e){return`(${t} || ${e})`}o(be,"Or");function An(t){return`!(${t})`}o(An,"Not");function gm(t){return`Array.isArray(${t})`}o(gm,"IsArray$1");function t_(t){return`Guard.IsAsyncIterator(${t})`}o(t_,"IsAsyncIterator$1");function RC(t){return`typeof ${t} === "bigint"`}o(RC,"IsBigInt$1");function e_(t){return`typeof ${t} === "boolean"`}o(e_,"IsBoolean$2");function n_(t){return`Number.isInteger(${t})`}o(n_,"IsInteger$1");function r_(t){return`Guard.IsIterator(${t})`}o(r_,"IsIterator$1");function i_(t){return`${t} === null`}o(i_,"IsNull$1");function NC(t){return`Number.isFinite(${t})`}o(NC,"IsNumber$2");function _C(t){return hr(DC(t),An(gm(t)))}o(_C,"IsObjectNotArray");function DC(t){return`typeof ${t} === "object" && ${t} !== null`}o(DC,"IsObject$1");function jC(t){return`typeof ${t} === "string"`}o(jC,"IsString$2");function o_(t){return`typeof ${t} === "symbol"`}o(o_,"IsSymbol$1");function A0(t){return`${t} === undefined`}o(A0,"IsUndefined$1");function s_(t){return`typeof ${t} === "function"`}o(s_,"IsFunction$1");function a_(t){return`Guard.IsConstructor(${t})`}o(a_,"IsConstructor$1");function or(t,e){return`${t} === ${e}`}o(or,"IsEqual");function IC(t,e){return`${t} > ${e}`}o(IC,"IsGreaterThan");function LC(t,e){return`${t} < ${e}`}o(LC,"IsLessThan");function Bl(t,e){return`${t} <= ${e}`}o(Bl,"IsLessEqualThan");function sh(t,e){return`${t} >= ${e}`}o(sh,"IsGreaterEqualThan");function l_(t,e){return`Guard.IsMinLength(${t}, ${e})`}o(l_,"IsMinLength$1");function c_(t,e){return`Guard.IsMaxLength(${t}, ${e})`}o(c_,"IsMaxLength$1");function sa(t,e,n,r){return R(e,"0")?`${t}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${e}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${n[0]}, ${n[1]}) => ${r})`}o(sa,"Every");function zC(t){return`Object.entries(${t})`}o(zC,"Entries$1");function aa(t){return`Object.getOwnPropertyNames(${t})`}o(aa,"Keys");function Zs(t,e){return R(e,'"__proto__"')||R(e,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${e})`:`${e} in ${t}`}o(Zs,"HasPropertyKey");function BC(t,e){return`Guard.IsDeepEqual(${t}, ${e})`}o(BC,"IsDeepEqual");function u_(t){return`[${t.join(", ")}]`}o(u_,"ArrayLiteral");function sr(t,e){return`((${t.join(", ")}) => ${e})`}o(sr,"ArrowFunction");function ne(t,e){return`${t}(${e.join(", ")})`}o(ne,"Call$1");function Db(t,e){return`new ${t}(${e.join(", ")})`}o(Db,"New");function Dt(t,e){return`${t}${W5(e)?`.${e}`:`[${St(e)}]`}`}o(Dt,"Member");function St(t){return jt(t)?JSON.stringify(t):`${t}`}o(St,"Constant");function ah(t,e,n){return`(${t} ? ${e} : ${n})`}o(ah,"Ternary");function lh(t){return`{ ${t.join("; ")}; }`}o(lh,"Statements");function io(t,e){return`const ${t} = ${e}`}o(io,"ConstDeclaration");function UC(t,e){return`if(${t}) { ${e} }`}o(UC,"If$1");function ch(t){return`return ${t}`}o(ch,"Return");function vn(t){return R(t.length,0)?"true":t.reduce((e,n)=>hr(e,n))}o(vn,"ReduceAnd");function jb(t){return R(t.length,0)?"false":t.reduce((e,n)=>be(e,n))}o(jb,"ReduceOr");function Ib(t){return`++${t}`}o(Ib,"PrefixIncrement");function f_(t,e){return`Guard.IsMultipleOf(${t}, ${e})`}o(f_,"MultipleOf");function d_(t){return t instanceof Boolean}o(d_,"IsBoolean$1");function m_(t){return t instanceof Number}o(m_,"IsNumber$1");function h_(t){return t instanceof String}o(h_,"IsString$1");function HC(t){return globalThis.ArrayBuffer.isView(t)}o(HC,"IsTypeArray");function p_(t){return t instanceof globalThis.RegExp}o(p_,"IsRegExp");function g_(t){return t instanceof globalThis.Date}o(g_,"IsDate$1");function y_(t){return t instanceof globalThis.Set}o(y_,"IsSet");function b_(t){return t instanceof globalThis.Map}o(b_,"IsMap");function v_(t){return Mt(t)&&at(t,"~guard")}o(v_,"IsGuard$1");function S_(t){return t.map(e=>Lb(e))}o(S_,"FromArray$c");function x_(t){const e={},n=Object.getOwnPropertyDescriptors(t);for(const r of Object.keys(n)){const a=n[r];at(a,"value")&&Object.defineProperty(e,r,{...a,value:Lb(a.value)})}return e}o(x_,"FromObject$f");function E_(t){return new RegExp(t.source,t.flags)}o(E_,"FromRegExp$1");function Lb(t){return t instanceof RegExp?E_(t):v_(t)?t:wt(t)?S_(t):Mt(t)?x_(t):t}o(Lb,"FromValue$3");function kC(t){return Lb(t)}o(kC,"Clone$1");const FC={immutableTypes:!1,maxErrors:8,useEval:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1};function w_(t){for(const e of gt(t)){const n=t[e];n!==void 0&&Object.defineProperty(FC,e,{value:n})}}o(w_,"Set$2");function us(){return FC}o(us,"Get$3");function T_(t,e,n={}){for(const r of Object.keys(e))Object.defineProperty(t,r,{configurable:!0,writable:!0,enumerable:!1,value:e[r]});return t}o(T_,"MergeHidden");function BT(t,e){return{...t,...e}}o(BT,"Merge");function Rt(t,e,n={}){const r=us(),a=BT(e,n),c=r.enumerableKind?BT(a,t):T_(a,t);return r.immutableTypes?Object.freeze(c):c}o(Rt,"Create$1");function kr(t,e){const n={},r=Object.getOwnPropertyDescriptors(kC(t)),a=new Set(e);for(const c of Object.keys(r))a.has(c)||Object.defineProperty(n,c,r[c]);return n}o(kr,"Discard");function Qt(t,e,n){const r=us(),a=kC(t);for(const c of Object.keys(e))Object.defineProperty(a,c,{configurable:!0,writable:!0,enumerable:r.enumerableKind,value:e[c]});for(const c of Object.keys(n))Object.defineProperty(a,c,{configurable:!0,enumerable:!0,writable:!0,value:n[c]});return a}o(Qt,"Update$1");function kt(t,e){return Mt(t)&&at(t,"~kind")&&R(t["~kind"],e)}o(kt,"IsKind");function Ut(t){return Mt(t)}o(Ut,"IsSchema$1");function A_(t){return Rt({"~kind":"OptionalAddAction"},{type:t},{})}o(A_,"OptionalAddAction");function C_(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&R(t["~kind"],"OptionalAddAction")&&Ut(t.type)}o(C_,"IsOptionalAddAction");function $_(t){return Rt({"~kind":"OptionalRemoveAction"},{type:t},{})}o($_,"OptionalRemoveAction");function M_(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&R(t["~kind"],"OptionalRemoveAction")&&Ut(t.type)}o(M_,"IsOptionalRemoveAction");function O_(t){return Rt({"~kind":"ReadonlyAddAction"},{type:t},{})}o(O_,"ReadonlyAddAction");function R_(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&R(t["~kind"],"ReadonlyAddAction")&&Ut(t.type)}o(R_,"IsReadonlyAddAction");function N_(t){return Rt({"~kind":"ReadonlyRemoveAction"},{type:t},{})}o(N_,"ReadonlyRemoveAction");function __(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&R(t["~kind"],"ReadonlyRemoveAction")&&Ut(t.type)}o(__,"IsReadonlyRemoveAction");function de(t,e,n){return Rt({"~kind":"Deferred"},{action:t,parameters:e,options:n},{})}o(de,"Deferred");function D_(t){return kt(t,"Deferred")}o(D_,"IsDeferred");function qC(t){return Qt(t,{"~immutable":!0},{})}o(qC,"ImmutableAdd");function uh(t){return qC(t)}o(uh,"Immutable");function ym(t){return Ut(t)&&at(t,"~immutable")}o(ym,"IsImmutable");function zb(t){return kr(t,["~optional"])}o(zb,"OptionalRemove");function Lr(t){return Qt(t,{"~optional":!0},{})}o(Lr,"OptionalAdd");function Bb(t){return Lr(t)}o(Bb,"Optional$2");function Hn(t){return Ut(t)&&at(t,"~optional")}o(Hn,"IsOptional");function PC(t){return kr(t,["~readonly"])}o(PC,"ReadonlyRemove");function zr(t){return Qt(t,{"~readonly":!0},{})}o(zr,"ReadonlyAdd");function GC(t){return zr(t)}o(GC,"Readonly$1");function bm(t){return Ut(t)&&at(t,"~readonly")}o(bm,"IsReadonly");function la(t,e){return Rt({"~kind":"Array"},{type:"array",items:t},e)}o(la,"Array$1");function en(t){return kt(t,"Array")}o(en,"IsArray");function YC(t){return kr(t,["~kind","type","items"])}o(YC,"ArrayOptions");function Vu(t,e){return Rt({"~kind":"AsyncIterator"},{type:"asyncIterator",iteratorItems:t},e)}o(Vu,"AsyncIterator");function fs(t){return kt(t,"AsyncIterator")}o(fs,"IsAsyncIterator");function j_(t){return kr(t,["~kind","type","iteratorItems"])}o(j_,"AsyncIteratorOptions");function UT(t){return{enumerable:us().enumerableKind,writable:!1,configurable:!1,value:t}}o(UT,"BaseProperty");var wl;let VC=(wl=class{constructor(){globalThis.Object.defineProperty(this,"~kind",UT("Base")),globalThis.Object.defineProperty(this,"~guard",UT({check:o(e=>this.Check(e),"check"),errors:o(e=>this.Errors(e),"errors")}))}Check(e){return!0}Errors(e){return[]}Convert(e){return e}Clean(e){return e}Default(e){return e}Create(){throw new Error("Create not implemented")}Clone(){throw Error("Clone not implemented")}},o(wl,"Base"),wl);function Ul(t){return kt(t,"Base")}o(Ul,"IsBase");function fh(t,e,n={}){return Rt({"~kind":"Constructor"},{type:"constructor",parameters:t,instanceType:e},n)}o(fh,"Constructor$1");function ji(t){return kt(t,"Constructor")}o(ji,"IsConstructor");function I_(t){return kr(t,["~kind","type","parameters","instanceType"])}o(I_,"ConstructorOptions");function dh(t,e,n={}){return Rt({"~kind":"Function"},{type:"function",parameters:t,returnType:e},n)}o(dh,"_Function_$1");function Ii(t){return kt(t,"Function")}o(Ii,"IsFunction");function L_(t){return kr(t,["~kind","type","parameters","returnType"])}o(L_,"FunctionOptions");function ar(t,e){return Rt({"~kind":"Ref"},{$ref:t},e)}o(ar,"Ref$1");function Cn(t){return kt(t,"Ref")}o(Cn,"IsRef$1");function Ku(t,e){return Rt({"~kind":"Generic"},{type:"generic",parameters:t,expression:e})}o(Ku,"Generic");function Ub(t){return kt(t,"Generic")}o(Ub,"IsGeneric");const z_="(?!)";function Ze(t){return Rt({"~kind":"Never"},{not:{}},t)}o(Ze,"Never");function mh(t){return kt(t,"Never")}o(mh,"IsNever");function B_(){return["(not-resolvable)",Ze()]}o(B_,"FromNotResolvable");function U_(){return["(not-generic)",Ze()]}o(U_,"FromNotGeneric");function H_(t,e,n){return[t,Ku(e,n)]}o(H_,"FromGeneric");function k_(t,e,n){return e in t?KC(t,e,t[e]):B_()}o(k_,"FromRef$9");function KC(t,e,n,r){return Ub(n)?H_(e,n.parameters,n.expression):Cn(n)?k_(t,n.$ref):U_()}o(KC,"FromType$i");function F_(t,e,n){return KC(t,"(anonymous)",e)}o(F_,"ResolveTarget");function Xu(t,e,n){const r=gt(t).reduce((a,c)=>({...a,[c]:Qt(t[c],{},{$id:c})}),{});return Rt({"~kind":"Cyclic"},{$defs:r,$ref:e},n)}o(Xu,"Cyclic");function $n(t){return kt(t,"Cyclic")}o($n,"IsCyclic");function nn(t,e){return e[t.length]?.(...t)??(()=>{throw Error("Invalid Arguments")})()}o(nn,"Match$1");function lr(t){return Rt({"~kind":"Unknown"},{},t)}o(lr,"Unknown");function is(t){return kt(t,"Unknown")}o(is,"IsUnknown");function C0(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a,a],1:r=>[r,lr(),lr()]});return Rt({"~kind":"Infer"},{type:"infer",name:e,extends:n},{})}o(C0,"Infer");function cr(t){return kt(t,"Infer")}o(cr,"IsInfer");function yl(t){return Rt({"~kind":"Any"},{},t)}o(yl,"Any");function ho(t){return kt(t,"Any")}o(ho,"IsAny");function q_(t){return fo(t)}o(q_,"IsTypeScriptEnumLike");function P_(t){return gt(t).filter(n=>isNaN(n)).reduce((n,r)=>[...n,t[r]],[])}o(P_,"TypeScriptEnumToEnumValues");function G_(t,e){const n=q_(t)?P_(t):t;return Rt({"~kind":"Enum"},{enum:n},e)}o(G_,"Enum");function li(t){return kt(t,"Enum")}o(li,"IsEnum$1");function Js(t,e={}){return Rt({"~kind":"Intersect"},{allOf:t},e)}o(Js,"Intersect");function xe(t){return kt(t,"Intersect")}o(xe,"IsIntersect");function Y_(t){return kr(t,["~kind","allOf"])}o(Y_,"IntersectOptions");function ke(){throw new Error("Unreachable")}o(ke,"Unreachable$1");let Yy;function V_(){try{return new globalThis.Function("null")(),!0}catch{return!1}}o(V_,"TryEval");function Hb(){return pe(Yy)&&(Yy=V_()),Yy&&us().useEval}o(Hb,"CanEvaluate");function K_(t){const e=new Set;let n=t;for(;n&&n!==Object.prototype;){for(const r of Reflect.ownKeys(n))r!=="constructor"&&typeof r!="symbol"&&e.add(r);n=Object.getPrototypeOf(n)}return[...e]}o(K_,"InstanceKeys");function X_(t){return typeof t=="number"}o(X_,"IsIEEE754");var Sn;(function(t){t[t.Array=0]="Array",t[t.BigInt=1]="BigInt",t[t.Boolean=2]="Boolean",t[t.Date=3]="Date",t[t.Constructor=4]="Constructor",t[t.Function=5]="Function",t[t.Null=6]="Null",t[t.Number=7]="Number",t[t.Object=8]="Object",t[t.RegExp=9]="RegExp",t[t.String=10]="String",t[t.Symbol=11]="Symbol",t[t.TypeArray=12]="TypeArray",t[t.Undefined=13]="Undefined"})(Sn||(Sn={}));let hl=BigInt("14695981039346656037");const[Q_,Z_]=[BigInt("1099511628211"),BigInt("18446744073709551616")],J_=Array.from({length:256}).map((t,e)=>BigInt(e)),XC=new Float64Array(1),QC=new DataView(XC.buffer),ZC=new Uint8Array(XC.buffer);function tn(t){hl=hl^J_[t],hl=hl*Q_%Z_}o(tn,"FNV1A64_OP");function W_(t){tn(Sn.Array);for(const e of t)os(e)}o(W_,"FromArray$b");function t6(t){tn(Sn.BigInt),QC.setBigInt64(0,t);for(const e of ZC)tn(e)}o(t6,"FromBigInt$8");function HT(t){tn(Sn.Boolean),tn(t?1:0)}o(HT,"FromBoolean$8");function e6(t){tn(Sn.Constructor),os(t.toString())}o(e6,"FromConstructor$1");function n6(t){tn(Sn.Date),os(t.getTime())}o(n6,"FromDate");function r6(t){tn(Sn.Function),os(t.toString())}o(r6,"FromFunction$1");function i6(t){tn(Sn.Null)}o(i6,"FromNull$8");function kT(t){tn(Sn.Number),QC.setFloat64(0,t,!0);for(const e of ZC)tn(e)}o(kT,"FromNumber$8");function o6(t){tn(Sn.Object);for(const e of K_(t).sort())os(e),os(t[e])}o(o6,"FromObject$e");function s6(t){tn(Sn.RegExp),$0(t.toString())}o(s6,"FromRegExp");const a6=new TextEncoder;function $0(t){tn(Sn.String);for(const e of a6.encode(t))tn(e)}o($0,"FromString$8");function l6(t){tn(Sn.Symbol),os(t.toString())}o(l6,"FromSymbol$1");function c6(t){tn(Sn.TypeArray);const e=new Uint8Array(t.buffer);for(let n=0;n<e.length;n++)tn(e[n])}o(c6,"FromTypeArray");function u6(t){return tn(Sn.Undefined)}o(u6,"FromUndefined$8");function os(t){return HC(t)?c6(t):g_(t)?n6(t):p_(t)?s6(t):d_(t)?HT(t.valueOf()):h_(t)?$0(t.valueOf()):m_(t)?kT(t.valueOf()):X_(t)?kT(t):wt(t)?W_(t):Fe(t)?HT(t):Oe(t)?t6(t):Ob(t)?e6(t):qn(t)?i6():Mt(t)?o6(t):jt(t)?$0(t):Rb(t)?l6(t):pe(t)?u6():so(t)?r6(t):ke()}o(os,"FromValue$2");function JC(t){return hl=BigInt("14695981039346656037"),os(t),hl}o(JC,"HashCode");function $u(t){return JC(t).toString(16).padStart(16,"0")}o($u,"Hash");const f6=Object.freeze(Object.defineProperty({__proto__:null,Hash:$u,HashCode:JC},Symbol.toStringTag,{value:"Module"}));function d6(t){switch(t.keyword){case"additionalProperties":return"must not have additional properties";case"anyOf":return"must match a schema in anyOf";case"boolean":return"schema is false";case"const":return"must be equal to constant";case"contains":return"must contain at least 1 valid item";case"dependencies":return`must have properties ${t.params.dependencies.join(", ")} when property ${t.params.property} is present`;case"dependentRequired":return`must have properties ${t.params.dependencies.join(", ")} when property ${t.params.property} is present`;case"enum":return"must be equal to one of the allowed values";case"exclusiveMaximum":return`must be ${t.params.comparison} ${t.params.limit}`;case"exclusiveMinimum":return`must be ${t.params.comparison} ${t.params.limit}`;case"format":return`must match format "${t.params.format}"`;case"if":return`must match "${t.params.failingKeyword}" schema`;case"maxItems":return`must not have more than ${t.params.limit} items`;case"maxLength":return`must not have more than ${t.params.limit} characters`;case"maxProperties":return`must not have more than ${t.params.limit} properties`;case"maximum":return`must be ${t.params.comparison} ${t.params.limit}`;case"minItems":return`must not have fewer than ${t.params.limit} items`;case"minLength":return`must not have fewer than ${t.params.limit} characters`;case"minProperties":return`must not have fewer than ${t.params.limit} properties`;case"minimum":return`must be ${t.params.comparison} ${t.params.limit}`;case"multipleOf":return`must be multiple of ${t.params.multipleOf}`;case"not":return"must not be valid";case"oneOf":return"must match exactly one schema in oneOf";case"pattern":return`must match pattern "${t.params.pattern}"`;case"propertyNames":return`property names ${t.params.propertyNames.join(", ")} are invalid`;case"required":return`must have required properties ${t.params.requiredProperties.join(", ")}`;case"type":return typeof t.params.type=="string"?`must be ${t.params.type}`:`must be either ${t.params.type.join(" or ")}`;case"unevaluatedItems":return"must not have unevaluated items";case"unevaluatedProperties":return"must not have unevaluated properties";case"uniqueItems":return"must not have duplicate items";case"~guard":return"must match check function";case"~refine":return t.params.message;default:return"an unknown validation error occurred"}}o(d6,"en_US");let m6=d6;function h6(){return m6}o(h6,"Get$2");const CS=class CS{constructor(e,n){this.type=e,this.decode=n}Encode(e){const n=this.type,r=ur(n)?f=>this.decode(n["~codec"].decode(f)):this.decode,a=ur(n)?f=>n["~codec"].encode(e(f)):e,c={decode:r,encode:a};return Qt(this.type,{"~codec":c},{})}};o(CS,"EncodeBuilder");let vm=CS;const $S=class $S{constructor(e){this.type=e}Decode(e){return new vm(this.type,e)}};o($S,"DecodeBuilder");let Sm=$S;function kb(t){return new Sm(t)}o(kb,"Codec");function p6(t,e){return kb(t).Decode(e).Encode(()=>{throw Error("Encode not implemented")})}o(p6,"Decode$8");function g6(t,e){return kb(t).Decode(()=>{throw Error("Decode not implemented")}).Encode(e)}o(g6,"Encode$8");function ur(t){return Ut(t)&&at(t,"~codec")&&Mt(t["~codec"])&&at(t["~codec"],"encode")&&at(t["~codec"],"decode")}o(ur,"IsCodec");function y6(t,e){const n=WC(t)?[...t["~refine"],e]:[e];return Qt(t,{"~refine":n},{})}o(y6,"RefineAdd");function b6(t,e,n="error"){return y6(t,{refine:e,message:n})}o(b6,"Refine");function WC(t){return Ut(t)&&at(t,"~refine")}o(WC,"IsRefine$1");const v6="-?(?:0|[1-9][0-9]*)n";function Fb(t){return Rt({"~kind":"BigInt"},{type:"bigint"},t)}o(Fb,"BigInt$2");function ca(t){return kt(t,"BigInt")}o(ca,"IsBigInt");function qb(t){return Rt({"~kind":"Boolean"},{type:"boolean"},t)}o(qb,"Boolean$1");function po(t){return kt(t,"Boolean")}o(po,"IsBoolean");function xm(t){return Rt({"~kind":"Identifier"},{name:t})}o(xm,"Identifier");function S6(t){return kt(t,"Identifier")}o(S6,"IsIdentifier");const t$="-?(?:0|[1-9][0-9]*)";function Tl(t){return Rt({"~kind":"Integer"},{type:"integer"},t)}o(Tl,"Integer$1");function ci(t){return kt(t,"Integer")}o(ci,"IsInteger");function Qu(t,e){return Rt({"~kind":"Iterator"},{type:"iterator",iteratorItems:t},e)}o(Qu,"Iterator");function ds(t){return kt(t,"Iterator")}o(ds,"IsIterator");function x6(t){return kr(t,["~kind","type","iteratorItems"])}o(x6,"IteratorOptions");const MS=class MS extends Error{constructor(e){super("Invalid Literal value"),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};o(MS,"InvalidLiteralValue");let M0=MS;function E6(t){return Oe(t)?"bigint":Fe(t)?"boolean":Vt(t)?"number":jt(t)?"string":(()=>{throw new M0(t)})()}o(E6,"LiteralTypeName");function ge(t,e){return Rt({"~kind":"Literal"},{type:E6(t),const:t},e)}o(ge,"Literal$1");function e$(t){return Oe(t)||Fe(t)||Vt(t)||jt(t)}o(e$,"IsLiteralValue");function w6(t){return De(t)&&Oe(t.const)}o(w6,"IsLiteralBigInt");function T6(t){return De(t)&&Fe(t.const)}o(T6,"IsLiteralBoolean");function Pb(t){return De(t)&&Vt(t.const)}o(Pb,"IsLiteralNumber");function Gb(t){return De(t)&&jt(t.const)}o(Gb,"IsLiteralString");function De(t){return kt(t,"Literal")}o(De,"IsLiteral");function Xs(t){return Rt({"~kind":"Null"},{type:"null"},t)}o(Xs,"Null");function Hl(t){return kt(t,"Null")}o(Hl,"IsNull");const n$="-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?";function ao(t){return Rt({"~kind":"Number"},{type:"number"},t)}o(ao,"Number$2");function pr(t){return kt(t,"Number")}o(pr,"IsNumber");function Yb(t){return Rt({"~kind":"Symbol"},{type:"symbol"},t)}o(Yb,"Symbol$1");function Zu(t){return kt(t,"Symbol")}o(Zu,"IsSymbol");function A6(t){return gt(t).filter(e=>!Hn(t[e]))}o(A6,"RequiredArray");function C6(t){return gt(t)}o(C6,"PropertyKeys");function r$(t){return _b(t)}o(r$,"PropertyValues");function ae(t,e={}){const n=A6(t),r=n.length>0?{required:n}:{};return Rt({"~kind":"Object"},{type:"object",...r,properties:t},e)}o(ae,"_Object_$1");function Ce(t){return kt(t,"Object")}o(Ce,"IsObject");function $6(t){return kr(t,["~kind","type","properties","required"])}o($6,"ObjectOptions");function Ju(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[a,c,c],1:a=>[a,lr(),lr()]});return Rt({"~kind":"Parameter"},{name:e,extends:n,equals:r},{})}o(Ju,"Parameter$1");function M6(t){return kt(t,"Parameter")}o(M6,"IsParameter");function Wu(t,e){return Rt({"~kind":"Promise"},{type:"promise",item:t},e)}o(Wu,"Promise$1");function go(t){return kt(t,"Promise")}o(go,"IsPromise");function O6(t){return kr(t,["~kind","type","item"])}o(O6,"PromiseOptions");const i$=".*";function Br(t){return Rt({"~kind":"String"},{type:"string"},t)}o(Br,"String$2");function zn(t){return kt(t,"String")}o(zn,"IsString");function ve(t,e={}){return Rt({"~kind":"Union"},{anyOf:t},e)}o(ve,"Union");function Ht(t){return kt(t,"Union")}o(Ht,"IsUnion");function R6(t){return kr(t,["~kind","anyOf"])}o(R6,"UnionOptions");function o$(t){const e=jL(t);return R(e.length,2)?e[0]:[]}o(o$,"ParsePatternIntoTypes");function N6(t){return!0}o(N6,"FromLiteral$5");function s$(t){const[e,...n]=t;return Ut(e)?_6(e)?s$(n):!1:!0}o(s$,"FromTypesReduce");function a$(t){return R(t.length,0)?!1:s$(t)}o(a$,"FromTypes$3");function _6(t){return Ht(t)?a$(t.anyOf):De(t)?N6(t.const):!1}o(_6,"FromType$h");function l$(t){return a$(t)}o(l$,"IsTemplateLiteralFinite");function c$(t){return Rt({"~kind":"TemplateLiteral"},{type:"string",pattern:t},{})}o(c$,"TemplateLiteralCreate");function u$(t,e,n=[]){const[r,...a]=t;return jt(r)?u$(a,e,[...n,`${r}${e}`]):n}o(u$,"FromLiteralPush");function D6(t,e){return R(t.length,0)?[`${e}`]:u$(t,e)}o(D6,"FromLiteral$4");function f$(t,e,n=[]){const[r,...a]=e;return Ut(r)?f$(t,a,[...n,...d$(t,r)]):n}o(f$,"FromUnion$d");function d$(t,e){return Ht(e)?f$(t,e.anyOf):De(e)?D6(t,e.const):ke()}o(d$,"FromType$g");function m$(t,e){const[n,...r]=e;return Ut(n)?m$(d$(t,n),r):t}o(m$,"DecodeFromSpan");function j6(t){return t.map(e=>ge(e))}o(j6,"VariantsToLiterals");function I6(t){const e=m$([],t),n=j6(e);return ve(n)}o(I6,"DecodeTypesAsUnion");function L6(t){return R(t.length,0)?ke():R(t.length,1)&&De(t[0])?t[0]:I6(t)}o(L6,"DecodeTypes");function h$(t){const e=o$(t);return R(e.length,0)?Br():l$(e)?L6(e):c$(t)}o(h$,"TemplateLiteralDecodeUnsafe");function yo(t){const e=h$(t);return Fr(e)?Br():e}o(yo,"TemplateLiteralDecode");function ss(t,e){const n="object",r={[t]:e};return Rt({"~kind":"Record"},{type:n,patternProperties:r})}o(ss,"CreateRecord");const hh=`^${t$}$`,ph=`^${n$}$`,Ws=`^${i$}$`;function Vb(t,e,n={}){return de("Record",[t,e],n)}o(Vb,"RecordDeferred");function z6(t,e,n={}){return Wt({},Vb(t,e,n))}o(z6,"RecordConstruct");function Kb(t,e,n={}){return z6(t,e,n)}o(Kb,"Record");function B6(t,e){return ss(t,e)}o(B6,"RecordFromPattern");function ms(t){return gt(t.patternProperties)[0]}o(ms,"RecordPattern");function Xb(t){const e=ms(t);return R(e,Ws)?Br():R(e,hh)?Tl():R(e,ph)?ao():h$(e)}o(Xb,"RecordKey");function Li(t){return t.patternProperties[ms(t)]}o(Li,"RecordValue");function gr(t){return kt(t,"Record")}o(gr,"IsRecord");function gh(t){return Rt({"~kind":"Rest"},{type:"rest",items:t},{})}o(gh,"Rest");function yh(t){return kt(t,"Rest")}o(yh,"IsRest");function p$(t){return Rt({"~kind":"This"},{$ref:"#"},t)}o(p$,"This");function U6(t){return kt(t,"This")}o(U6,"IsThis");function ui(t,e={}){const[n,r,a]=[t,t.length,!1];return Rt({"~kind":"Tuple"},{type:"array",additionalItems:a,items:n,minItems:r},e)}o(ui,"Tuple$1");function qe(t){return kt(t,"Tuple")}o(qe,"IsTuple");function H6(t){return kr(t,["~kind","type","items","minItems","additionalItems"])}o(H6,"TupleOptions");function bh(t){return Rt({"~kind":"Undefined"},{type:"undefined"},t)}o(bh,"Undefined");function kl(t){return kt(t,"Undefined")}o(kl,"IsUndefined");function Zd(t){return Rt({"~kind":"Unsafe"},{},t)}o(Zd,"Unsafe");function g$(t){return kt(t,"Unsafe")}o(g$,"IsUnsafe");function Qb(t){return Rt({"~kind":"Void"},{type:"void"},t)}o(Qb,"Void");function hs(t){return kt(t,"Void")}o(hs,"IsVoid");function k6(t,e){return R(t,"Array")?la(e[0]):R(t,"AsyncIterator")?Vu(e[0]):R(t,"Iterator")?Qu(e[0]):R(t,"Promise")?Wu(e[0]):R(t,"Awaited")?Xv(e[0]):R(t,"Capitalize")?Ev(e[0]):R(t,"ConstructorParameters")?$v(e[0]):R(t,"Evaluate")?YM(e[0]):R(t,"Exclude")?Mv(e[0],e[1]):R(t,"Extract")?Ov(e[0],e[1]):R(t,"Index")?wh(e[0],e[1]):R(t,"InstanceType")?jv(e[0]):R(t,"Lowercase")?wv(e[0]):R(t,"NonNullable")?Lv(e[0]):R(t,"Omit")?zv(e[0],e[1]):R(t,"Options")?Ah(e[0],e[1]):R(t,"Parameters")?Uv(e[0]):R(t,"Partial")?Hv(e[0]):R(t,"Pick")?kv(e[0],e[1]):R(t,"Readonly")?Fv(e[0]):R(t,"KeyOf")?Th(e[0]):R(t,"Record")?Vb(e[0],e[1]):R(t,"Required")?qv(e[0]):R(t,"ReturnType")?Pv(e[0]):R(t,"Uncapitalize")?Tv(e[0]):R(t,"Uppercase")?Av(e[0]):OM(ar(t),e)}o(k6,"IntrinsicOrCall");function ua(){throw Error("Unreachable")}o(ua,"Unreachable");const F6=o((t,e=[])=>t.reduce((n,r)=>wt(r)&&R(r.length,2)?[...n,r[0]]:[...n,r],[]),"DelimitedDecode"),bo=o(t=>{const[e,n]=t;return F6([...e,...n])},"Delimited");function q6(t){return Ju(t[0],t[2],t[4])}o(q6,"GenericParameterExtendsEqualsMapping");function P6(t){return Ju(t[0],t[2],t[2])}o(P6,"GenericParameterExtendsMapping");function G6(t){return Ju(t[0],lr(),t[2])}o(G6,"GenericParameterEqualsMapping");function Y6(t){return Ju(t,lr(),lr())}o(Y6,"GenericParameterIdentifierMapping");function V6(t){return bo(t)}o(V6,"GenericParameterListMapping");function K6(t){return t[1]}o(K6,"GenericParametersMapping");function X6(t){return bo(t)}o(X6,"GenericCallArgumentListMapping");function Q6(t){return t[1]}o(Q6,"GenericCallArgumentsMapping");function Z6(t){return k6(t[0],t[1])}o(Z6,"GenericCallMapping");function J6(t){return null}o(J6,"OptionalSemiColonMapping");function W6(t){return Br()}o(W6,"KeywordStringMapping");function tD(t){return ao()}o(tD,"KeywordNumberMapping");function eD(t){return qb()}o(eD,"KeywordBooleanMapping");function nD(t){return bh()}o(nD,"KeywordUndefinedMapping");function rD(t){return Xs()}o(rD,"KeywordNullMapping");function iD(t){return Tl()}o(iD,"KeywordIntegerMapping");function oD(t){return Fb()}o(oD,"KeywordBigIntMapping");function sD(t){return lr()}o(sD,"KeywordUnknownMapping");function aD(t){return yl()}o(aD,"KeywordAnyMapping");function lD(t){return ae({})}o(lD,"KeywordObjectMapping");function cD(t){return Ze()}o(cD,"KeywordNeverMapping");function uD(t){return Yb()}o(uD,"KeywordSymbolMapping");function fD(t){return Qb()}o(fD,"KeywordVoidMapping");function dD(t){return p$()}o(dD,"KeywordThisMapping");function mD(t){return t[1]}o(mD,"TemplateInterpolateMapping");function hD(t){return ge(t)}o(hD,"TemplateSpanMapping");function pD(t){return R(t.length,3)?[t[0],t[1],...t[2]]:[t[0]]}o(pD,"TemplateBodyMapping");function gD(t){return t[1]}o(gD,"TemplateLiteralTypesMapping");function yD(t){return lv(t)}o(yD,"TemplateLiteralMapping");function bD(t){return ge(BigInt(t))}o(bD,"LiteralBigIntMapping");function vD(t){return ge(R(t,"true"))}o(vD,"LiteralBooleanMapping");function SD(t){return ge(parseFloat(t))}o(SD,"LiteralNumberMapping");function xD(t){return ge(t)}o(xD,"LiteralStringMapping");function ED(t){return t.length>0}o(ED,"KeyOfMapping");function wD(t){return t.reduce((e,n)=>R(n.length,3)?[...e,[n[1]]]:[...e,[]],[])}o(wD,"IndexArrayMapping");function TD(t){return R(t.length,6)?[t[1],t[3],t[5]]:[]}o(TD,"ExtendsMapping");function AD(t){return wt(t)&&R(t.length,3)?t[1]:t}o(AD,"BaseMapping");const FT=o((t,e)=>e.reduceRight((n,r)=>{const a=r;return R(a.length,1)?wh(n,a[0]):R(a.length,0)?la(n):ua()},t),"FactorIndexArray"),qT=o((t,e)=>R(e.length,3)?Cv(t,e[0],e[1],e[2]):t,"FactorExtends");function CD(t){const[e,n,r,a]=t;return qT(e?Th(FT(n,r)):FT(n,r),a)}o(CD,"FactorMapping");function Zb(t,e){return R(e.length,3)?(()=>{const[n,r,a]=e,c=Zb(r,a);if(R(n,"&"))return xe(c)?Js([t,...c.allOf]):Js([t,c]);if(R(n,"|"))return Ht(c)?ve([t,...c.anyOf]):ve([t,c]);ua()})():t}o(Zb,"ExprBinaryMapping");function $D(t){const[e,n]=t;return Zb(e,n)}o($D,"ExprTermMapping");function MD(t){const[e,n]=t;return Zb(e,n)}o(MD,"ExprMapping");function OD(t){return qC(t[1])}o(OD,"ExprReadonlyMapping");function RD(t){return t[1]}o(RD,"ExprPipeMapping");function ND(t){return Ku(t[0],t[2])}o(ND,"GenericTypeMapping");function _D(t){return R(t.length,4)?C0(t[1],t[3]):R(t.length,2)?C0(t[1],lr()):ua()}o(_D,"InferTypeMapping");function DD(t){return`${t}`}o(DD,"PropertyKeyNumberMapping");function jD(t){return ci(t[3])?hh:pr(t[3])?ph:Zu(t[3])||zn(t[3])?Ws:ua()}o(jD,"PropertyKeyIndexMapping");function ID(t){return t.length>0}o(ID,"ReadonlyMapping");function LD(t){return t.length>0}o(LD,"OptionalMapping");function zD(t){const[e,n,r,a,c]=t;return{[n]:e&&r?zr(Lr(c)):e&&!r?zr(c):!e&&r?Lr(c):c}}o(zD,"PropertyMapping");function BD(t){return bo(t)}o(BD,"PropertyListMapping");function y$(t){return t.reduce((e,n)=>at(n,hh)||at(n,ph)||at(n,Ws)?[e[0],Xe(e[1],n)]:[Xe(e[0],n),e[1]],[{},{}])}o(y$,"PropertiesReduce");function UD(t){return y$(t[1])}o(UD,"PropertiesMapping");function HD(t){const[e,n]=t,r=R(gt(n).length,0)?{}:{patternProperties:n};return ae(e,r)}o(HD,"_Object_Mapping");function kD(t){return R(t.length,5)?zr(Lr(t[4])):R(t.length,3)?t[2]:R(t.length,4)?R(t[2],"readonly")?zr(t[3]):Lr(t[3]):ua()}o(kD,"ElementNamedMapping");function FD(t){return zr(Lr(t[1]))}o(FD,"ElementReadonlyOptionalMapping");function qD(t){return zr(t[1])}o(qD,"ElementReadonlyMapping");function PD(t){return Lr(t[0])}o(PD,"ElementOptionalMapping");function GD(t){return R(t.length,2)?gh(t[1]):R(t.length,1)?t[0]:ua()}o(GD,"ElementMapping");function YD(t){return bo(t)}o(YD,"ElementListMapping");function VD(t){return ui(t[1])}o(VD,"TupleMapping");function KD(t){return zr(Lr(t[4]))}o(KD,"ParameterReadonlyOptionalMapping");function XD(t){return zr(t[3])}o(XD,"ParameterReadonlyMapping");function QD(t){return Lr(t[3])}o(QD,"ParameterOptionalMapping");function ZD(t){return t[2]}o(ZD,"ParameterTypeMapping");function JD(t){return R(t.length,2)?gh(t[1]):R(t.length,1)?t[0]:ua()}o(JD,"ParameterMapping");function WD(t){return bo(t)}o(WD,"ParameterListMapping");function tj(t){return dh(t[1],t[4])}o(tj,"_Function_Mapping");function ej(t){return fh(t[2],t[5])}o(ej,"ConstructorMapping");function PT(t,e){return R(t,"remove")?N_(e):R(t,"add")?O_(e):e}o(PT,"ApplyReadonly$1");function nj(t){return R(t.length,2)&&R(t[0],"-")?"remove":R(t.length,2)&&R(t[0],"+")||R(t.length,1)?"add":"none"}o(nj,"MappedReadonlyMapping");function GT(t,e){return R(t,"remove")?$_(e):R(t,"add")?A_(e):e}o(GT,"ApplyOptional$1");function rj(t){return R(t.length,2)&&R(t[0],"-")?"remove":R(t.length,2)&&R(t[0],"+")||R(t.length,1)?"add":"none"}o(rj,"MappedOptionalMapping");function ij(t){return R(t.length,2)?[t[1]]:[]}o(ij,"MappedAsMapping");function oj(t){return wt(t[6])&&R(t[6].length,1)?Am(xm(t[3]),t[5],t[6][0],PT(t[1],GT(t[8],t[10]))):Am(xm(t[3]),t[5],ar(t[3]),PT(t[1],GT(t[8],t[10])))}o(oj,"MappedMapping");function sj(t){return ar(t)}o(sj,"ReferenceMapping");function aj(t){return Ah(t[2],t[4])}o(aj,"OptionsMapping");function lj(t){return parseFloat(t)}o(lj,"JsonNumberMapping");function cj(t){return R(t,"true")}o(cj,"JsonBooleanMapping");function uj(t){return null}o(uj,"JsonNullMapping");function fj(t){return{[t[0]]:t[2]}}o(fj,"JsonPropertyMapping");function dj(t){return bo(t)}o(dj,"JsonPropertyListMapping");function mj(t){return t.reduce((e,n)=>Xe(e,n),{})}o(mj,"JsonObjectMappingReduce");function hj(t){return mj(t[1])}o(hj,"JsonObjectMapping");function pj(t){return bo(t)}o(pj,"JsonElementListMapping");function gj(t){return t[1]}o(gj,"JsonArrayMapping");function yj(t){return Fb()}o(yj,"PatternBigIntMapping");function bj(t){return Br()}o(bj,"PatternStringMapping");function vj(t){return ao()}o(vj,"PatternNumberMapping");function Sj(t){return Tl()}o(Sj,"PatternIntegerMapping");function xj(t){return Ze()}o(xj,"PatternNeverMapping");function Ej(t){return ge(t)}o(Ej,"PatternTextMapping");function wj(t){return ve(t[1])}o(wj,"PatternGroupMapping");function Tj(t){return t.length===3?[...t[0],...t[2]]:t.length===1?[...t[0]]:[]}o(Tj,"PatternUnionMapping");function Aj(t){return[t[0],...t[1]]}o(Aj,"PatternTermMapping");function Cj(t){return t[1]}o(Cj,"PatternMapping");function $j(t){return bo(t)}o($j,"InterfaceDeclarationHeritageListMapping");function Mj(t){return R(t.length,2)?t[1]:[]}o(Mj,"InterfaceDeclarationHeritageMapping");function Oj(t){const e=t[2],n=t[3],[r,a]=t[4],c=R(gt(a).length,0)?{}:{patternProperties:a};return{[t[1]]:Ku(e,Eh(n,r,c))}}o(Oj,"InterfaceDeclarationGenericMapping");function Rj(t){const e=t[2],[n,r]=t[3],a=R(gt(r).length,0)?{}:{patternProperties:r};return{[t[1]]:Eh(e,n,a)}}o(Rj,"InterfaceDeclarationMapping");function Nj(t){return{[t[1]]:Ku(t[2],t[4])}}o(Nj,"TypeAliasDeclarationGenericMapping");function _j(t){return{[t[1]]:t[3]}}o(_j,"TypeAliasDeclarationMapping");function Dj(t){return null}o(Dj,"ExportKeywordMapping");function jj(t){return y$(bo(t))}o(jj,"ModuleDeclarationListMapping");function Ij(t){return t[1]}o(Ij,"ModuleDeclarationMapping");function Lj(t){const e=t[0],n=t[1];return VM(Xe(e,n[0]))}o(Lj,"ModuleMapping");function Ne(t){return wt(t)&&R(t.length,2)}o(Ne,"IsResult");function zj(t,e){return R(e.indexOf(t),0)?[t,e.slice(t.length)]:[]}o(zj,"TakeVariant");function yr(t,e){const[n,...r]=t;return jt(n)?(()=>{const a=zj(n,e);return R(a.length,2)?a:yr(r,e)})():[]}o(yr,"Take");function O0(t,e){return Array.from({length:e-t+1},(n,r)=>String.fromCharCode(t+r))}o(O0,"Range");const Bj=[...O0(97,122),...O0(65,90)],b$="0",v$=O0(49,57),Jb=[b$,...v$],Uj=" ",Wb=`
|
|
3
|
-
`,tf="_",tv=".",Hj="$",S$="-",x$="//",E$="/*",kj="*/";function w$(t){const e=t.indexOf(kj);return R(e,-1)?"":t.slice(e+2)}o(w$,"DiscardMultilineComment");function T$(t){const e=t.indexOf(Wb);return R(e,-1)?"":t.slice(e)}o(T$,"DiscardLineComment");function Fj(t){return t.replace(/^[ \t\r\f\v]+/,"")}o(Fj,"TrimStartUntilNewline");function R0(t){const e=Fj(t);return e.startsWith(E$)?R0(w$(e.slice(2))):e.startsWith(x$)?R0(T$(e.slice(2))):e}o(R0,"TrimWhitespace");function lo(t){const e=t.trimStart();return e.startsWith(E$)?lo(w$(e.slice(2))):e.startsWith(x$)?lo(T$(e.slice(2))):e}o(lo,"Trim");function qj(t,e){return t.includes(e)}o(qj,"IsDiscard");function Em(t,e,n,r=""){const a=yr(t,n);return Ne(a)?qj(e,a[0])?Em(t,e,a[1],r):Em(t,e,a[1],`${r}${a[0]}`):[r,n]}o(Em,"Many");function A$(t,e){const n=yr([t],e);return Ne(n)?n:["",e]}o(A$,"Optional$1");function Pj(t){return A$(S$,t)}o(Pj,"TakeSign$1");function Gj(t){return yr(v$,t)}o(Gj,"TakeNonZero");const Yj=[...Jb,tf];function Vj(t){return Em(Yj,[tf],t)}o(Vj,"TakeDigits");function Kj(t){const e=Pj(t);return Ne(e)?(()=>{const n=yr([b$],e[1]);return Ne(n)?[`${e[0]}${n[0]}`,n[1]]:(()=>{const r=Gj(e[1]);return Ne(r)?(()=>{const a=Vj(r[1]);return Ne(a)?[`${e[0]}${r[0]}${a[0]}`,a[1]]:[]})():[]})()})():[]}o(Kj,"TakeInteger");function C$(t){return Kj(lo(t))}o(C$,"Integer");function Xj(t){const e=C$(t);return Ne(e)?(()=>{const n=yr(["n"],e[1]);return Ne(n)?[`${e[0]}`,n[1]]:[]})():[]}o(Xj,"TakeBigInt");function Qj(t){return Xj(t)}o(Qj,"BigInt$1");function Vy(t,e){return yr([t],e)}o(Vy,"TakeConst");function Z(t,e){return R(t,"")?["",e]:t.startsWith(Wb)?Vy(t,R0(e)):t.startsWith(Uj)?Vy(t,e):Vy(t,lo(e))}o(Z,"Const");const $$=[...Bj,tf,Hj];function Zj(t){return yr($$,t)}o(Zj,"TakeInitial$1");const Jj=[...$$,...Jb];function M$(t,e=""){const n=yr(Jj,t);return Ne(n)?M$(n[1],`${e}${n[0]}`):[e,t]}o(M$,"TakeRemaining");function Wj(t){const e=Zj(t);return Ne(e)?(()=>{const n=M$(e[1]);return Ne(n)?[`${e[0]}${n[0]}`,n[1]]:[]})():[]}o(Wj,"TakeIdent");function _e(t){return Wj(lo(t))}o(_e,"Ident");const tI=[...Jb,tf];function eI(t){return A$(S$,t)}o(eI,"TakeSign");function nI(t){return Ne(yr([tv],t))}o(nI,"IsLeadingDot");function O$(t){const e=Em(tI,[tf],t);return Ne(e)?R(e[0],"")?[]:[e[0],e[1]]:[]}o(O$,"TakeFractional");function rI(t,e){const n=yr([tv],e);return Ne(n)?(()=>{const r=O$(n[1]);return Ne(r)?[`${t}0${n[0]}${r[0]}`,r[1]]:[]})():[]}o(rI,"LeadingDot");function iI(t,e){const n=C$(e);return Ne(n)?(()=>{const r=yr([tv],n[1]);return Ne(r)?(()=>{const a=O$(r[1]);return Ne(a)?[`${t}${n[0]}${r[0]}${a[0]}`,a[1]]:[`${t}${n[0]}`,r[1]]})():[`${t}${n[0]}`,n[1]]})():[]}o(iI,"LeadingInteger");function oI(t){const e=eI(t);return Ne(e)?nI(e[1])?rI(e[0],e[1]):iI(e[0],e[1]):[]}o(oI,"TakeNumber");function ev(t){return oI(lo(t))}o(ev,"Number$1");function R$(t,e){const[n,...r]=t;return jt(n)?e.startsWith(n)?!0:R$(r,e):!1}o(R$,"IsEnd");function ef(t,e,n=""){return R(e,"")?[]:R$(t,e)?[n,e]:(()=>{const[r,a]=[e.slice(0,1),e.slice(1)];return ef(t,a,`${n}${r}`)})()}o(ef,"Until");function sI(t,e,n){return n.startsWith(t)?(()=>{const r=ef([e],n.slice(t.length));return Ne(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}o(sI,"MultiLine");function aI(t,e,n){return n.startsWith(t)?(()=>{const r=ef([Wb,e],n.slice(t.length));return Ne(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}o(aI,"SingleLine");function lI(t,e,n,r){return n?sI(t,e,lo(r)):aI(t,e,lo(r))}o(lI,"Span");function cI(t,e){return yr(t,e)}o(cI,"TakeInitial");function uI(t,e){return lI(t,t,!1,e)}o(uI,"TakeSpan");function fI(t,e){const n=cI(t,e);return Ne(n)?uI(n[0],`${n[0]}${n[1]}`):[]}o(fI,"TakeString");function nv(t,e){return fI(t,lo(e))}o(nv,"String$1");function dI(t,e){const n=ef(t,e);return Ne(n)?R(n[0],"")?[]:n:[]}o(dI,"Until_1");const b=o((t,e,n=()=>[])=>t.length===2?e(t):n(),"If"),mI=o(t=>b(b(_e(t),([e,n])=>b(Z("extends",n),([r,a])=>b(Pt(a),([c,f])=>b(Z("=",f),([d,h])=>b(Pt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[q6(e),n]),"GenericParameterExtendsEquals"),hI=o(t=>b(b(_e(t),([e,n])=>b(Z("extends",n),([r,a])=>b(Pt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[P6(e),n]),"GenericParameterExtends"),pI=o(t=>b(b(_e(t),([e,n])=>b(Z("=",n),([r,a])=>b(Pt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[G6(e),n]),"GenericParameterEquals"),gI=o(t=>b(_e(t),([e,n])=>[Y6(e),n]),"GenericParameterIdentifier"),N$=o(t=>b(b(mI(t),([e,n])=>[e,n],()=>b(hI(t),([e,n])=>[e,n],()=>b(pI(t),([e,n])=>[e,n],()=>b(gI(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"GenericParameter"),_$=o((t,e=[])=>b(b(N$(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>_$(r,[...e,n]),()=>[e,t]),"GenericParameterList_0"),yI=o(t=>b(b(_$(t),([e,n])=>b(b(b(N$(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[V6(e),n]),"GenericParameterList"),rv=o(t=>b(b(Z("<",t),([e,n])=>b(yI(n),([r,a])=>b(Z(">",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[K6(e),n]),"GenericParameters"),D$=o((t,e=[])=>b(b(Pt(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>D$(r,[...e,n]),()=>[e,t]),"GenericCallArgumentList_0"),bI=o(t=>b(b(D$(t),([e,n])=>b(b(b(Pt(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[X6(e),n]),"GenericCallArgumentList"),vI=o(t=>b(b(Z("<",t),([e,n])=>b(bI(n),([r,a])=>b(Z(">",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[Q6(e),n]),"GenericCallArguments"),SI=o(t=>b(b(_e(t),([e,n])=>b(vI(n),([r,a])=>[[e,r],a])),([e,n])=>[Z6(e),n]),"GenericCall"),j$=o(t=>b(b(b(Z(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[J6(),n]),"OptionalSemiColon"),I$=o(t=>b(Z("string",t),([e,n])=>[W6(),n]),"KeywordString"),L$=o(t=>b(Z("number",t),([e,n])=>[tD(),n]),"KeywordNumber"),xI=o(t=>b(Z("boolean",t),([e,n])=>[eD(),n]),"KeywordBoolean"),EI=o(t=>b(Z("undefined",t),([e,n])=>[nD(),n]),"KeywordUndefined"),wI=o(t=>b(Z("null",t),([e,n])=>[rD(),n]),"KeywordNull"),z$=o(t=>b(Z("integer",t),([e,n])=>[iD(),n]),"KeywordInteger"),TI=o(t=>b(Z("bigint",t),([e,n])=>[oD(),n]),"KeywordBigInt"),AI=o(t=>b(Z("unknown",t),([e,n])=>[sD(),n]),"KeywordUnknown"),CI=o(t=>b(Z("any",t),([e,n])=>[aD(),n]),"KeywordAny"),$I=o(t=>b(Z("object",t),([e,n])=>[lD(),n]),"KeywordObject"),MI=o(t=>b(Z("never",t),([e,n])=>[cD(),n]),"KeywordNever"),B$=o(t=>b(Z("symbol",t),([e,n])=>[uD(),n]),"KeywordSymbol"),OI=o(t=>b(Z("void",t),([e,n])=>[fD(),n]),"KeywordVoid"),RI=o(t=>b(Z("this",t),([e,n])=>[dD(),n]),"KeywordThis"),NI=o(t=>b(b(I$(t),([e,n])=>[e,n],()=>b(L$(t),([e,n])=>[e,n],()=>b(xI(t),([e,n])=>[e,n],()=>b(EI(t),([e,n])=>[e,n],()=>b(wI(t),([e,n])=>[e,n],()=>b(z$(t),([e,n])=>[e,n],()=>b(TI(t),([e,n])=>[e,n],()=>b(AI(t),([e,n])=>[e,n],()=>b(CI(t),([e,n])=>[e,n],()=>b($I(t),([e,n])=>[e,n],()=>b(MI(t),([e,n])=>[e,n],()=>b(B$(t),([e,n])=>[e,n],()=>b(OI(t),([e,n])=>[e,n],()=>b(RI(t),([e,n])=>[e,n],()=>[])))))))))))))),([e,n])=>[e,n]),"Keyword"),_I=o(t=>b(b(Z("${",t),([e,n])=>b(Pt(n),([r,a])=>b(Z("}",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[mD(e),n]),"TemplateInterpolate"),Ky=o(t=>b(ef(["${","`"],t),([e,n])=>[hD(e),n]),"TemplateSpan"),U$=o(t=>b(b(b(Ky(t),([e,n])=>b(_I(n),([r,a])=>b(U$(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>b(b(Ky(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b(b(Ky(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))),([e,n])=>[pD(e),n]),"TemplateBody"),H$=o(t=>b(b(Z("`",t),([e,n])=>b(U$(n),([r,a])=>b(Z("`",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[gD(e),n]),"TemplateLiteralTypes"),DI=o(t=>b(H$(t),([e,n])=>[yD(e),n]),"TemplateLiteral$1"),jI=o(t=>b(Qj(t),([e,n])=>[bD(e),n]),"LiteralBigInt"),II=o(t=>b(b(Z("true",t),([e,n])=>[e,n],()=>b(Z("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[vD(e),n]),"LiteralBoolean"),LI=o(t=>b(ev(t),([e,n])=>[SD(e),n]),"LiteralNumber"),zI=o(t=>b(nv(["'",'"'],t),([e,n])=>[xD(e),n]),"LiteralString"),BI=o(t=>b(b(jI(t),([e,n])=>[e,n],()=>b(II(t),([e,n])=>[e,n],()=>b(LI(t),([e,n])=>[e,n],()=>b(zI(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"Literal"),UI=o(t=>b(b(b(Z("keyof",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[ED(e),n]),"KeyOf$1"),k$=o((t,e=[])=>b(b(b(Z("[",t),([n,r])=>b(Pt(r),([a,c])=>b(Z("]",c),([f,d])=>[[n,a,f],d]))),([n,r])=>[n,r],()=>b(b(Z("[",t),([n,r])=>b(Z("]",r),([a,c])=>[[n,a],c])),([n,r])=>[n,r],()=>[])),([n,r])=>k$(r,[...e,n]),()=>[e,t]),"IndexArray_0"),HI=o(t=>b(k$(t),([e,n])=>[wD(e),n]),"IndexArray"),kI=o(t=>b(b(b(Z("extends",t),([e,n])=>b(Pt(n),([r,a])=>b(Z("?",a),([c,f])=>b(Pt(f),([d,h])=>b(Z(":",h),([g,y])=>b(Pt(y),([v,E])=>[[e,r,c,d,g,v],E])))))),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[TD(e),n]),"Extends$1"),FI=o(t=>b(b(b(Z("(",t),([e,n])=>b(Pt(n),([r,a])=>b(Z(")",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>b(NI(t),([e,n])=>[e,n],()=>b(tL(t),([e,n])=>[e,n],()=>b(sL(t),([e,n])=>[e,n],()=>b(DI(t),([e,n])=>[e,n],()=>b(BI(t),([e,n])=>[e,n],()=>b(dL(t),([e,n])=>[e,n],()=>b(fL(t),([e,n])=>[e,n],()=>b(gL(t),([e,n])=>[e,n],()=>b(bL(t),([e,n])=>[e,n],()=>b(SI(t),([e,n])=>[e,n],()=>b(yL(t),([e,n])=>[e,n],()=>[])))))))))))),([e,n])=>[AD(e),n]),"Base"),F$=o(t=>b(b(UI(t),([e,n])=>b(FI(n),([r,a])=>b(HI(a),([c,f])=>b(kI(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[CD(e),n]),"Factor"),q$=o(t=>b(b(b(Z("&",t),([e,n])=>b(F$(n),([r,a])=>b(q$(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),"ExprTermTail"),P$=o(t=>b(b(F$(t),([e,n])=>b(q$(n),([r,a])=>[[e,r],a])),([e,n])=>[$D(e),n]),"ExprTerm"),G$=o(t=>b(b(b(Z("|",t),([e,n])=>b(P$(n),([r,a])=>b(G$(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),"ExprTail"),vh=o(t=>b(b(P$(t),([e,n])=>b(G$(n),([r,a])=>[[e,r],a])),([e,n])=>[MD(e),n]),"Expr"),qI=o(t=>b(b(Z("readonly",t),([e,n])=>b(vh(n),([r,a])=>[[e,r],a])),([e,n])=>[OD(e),n]),"ExprReadonly"),PI=o(t=>b(b(Z("|",t),([e,n])=>b(vh(n),([r,a])=>[[e,r],a])),([e,n])=>[RD(e),n]),"ExprPipe"),GI=o(t=>b(b(rv(t),([e,n])=>b(Z("=",n),([r,a])=>b(Pt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[ND(e),n]),"GenericType"),YI=o(t=>b(b(b(Z("infer",t),([e,n])=>b(_e(n),([r,a])=>b(Z("extends",a),([c,f])=>b(vh(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[e,n],()=>b(b(Z("infer",t),([e,n])=>b(_e(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>[])),([e,n])=>[_D(e),n]),"InferType"),Pt=o(t=>b(b(YI(t),([e,n])=>[e,n],()=>b(PI(t),([e,n])=>[e,n],()=>b(qI(t),([e,n])=>[e,n],()=>b(vh(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"Type$1"),VI=o(t=>b(ev(t),([e,n])=>[DD(e),n]),"PropertyKeyNumber"),KI=o(t=>b(_e(t),([e,n])=>[e,n]),"PropertyKeyIdent"),XI=o(t=>b(nv(["'",'"'],t),([e,n])=>[e,n]),"PropertyKeyQuoted"),QI=o(t=>b(b(Z("[",t),([e,n])=>b(_e(n),([r,a])=>b(Z(":",a),([c,f])=>b(b(z$(f),([d,h])=>[d,h],()=>b(L$(f),([d,h])=>[d,h],()=>b(I$(f),([d,h])=>[d,h],()=>b(B$(f),([d,h])=>[d,h],()=>[])))),([d,h])=>b(Z("]",h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[jD(e),n]),"PropertyKeyIndex"),Y$=o(t=>b(b(VI(t),([e,n])=>[e,n],()=>b(KI(t),([e,n])=>[e,n],()=>b(XI(t),([e,n])=>[e,n],()=>b(QI(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"PropertyKey"),ZI=o(t=>b(b(b(Z("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[ID(e),n]),"Readonly"),JI=o(t=>b(b(b(Z("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[LD(e),n]),"Optional"),V$=o(t=>b(b(ZI(t),([e,n])=>b(Y$(n),([r,a])=>b(JI(a),([c,f])=>b(Z(":",f),([d,h])=>b(Pt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[zD(e),n]),"Property"),K$=o(t=>b(b(b(Z(",",t),([e,n])=>b(Z(`
|
|
4
|
-
`,n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(Z(";",t),([e,n])=>b(Z(`
|
|
5
|
-
`,n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(Z(",",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b(b(Z(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b(b(Z(`
|
|
6
|
-
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),"PropertyDelimiter"),X$=o((t,e=[])=>b(b(V$(t),([n,r])=>b(K$(r),([a,c])=>[[n,a],c])),([n,r])=>X$(r,[...e,n]),()=>[e,t]),"PropertyList_0"),WI=o(t=>b(b(X$(t),([e,n])=>b(b(b(V$(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[BD(e),n]),"PropertyList"),iv=o(t=>b(b(Z("{",t),([e,n])=>b(WI(n),([r,a])=>b(Z("}",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[UD(e),n]),"Properties"),tL=o(t=>b(iv(t),([e,n])=>[HD(e),n]),"_Object_"),eL=o(t=>b(b(b(_e(t),([e,n])=>b(Z("?",n),([r,a])=>b(Z(":",a),([c,f])=>b(Z("readonly",f),([d,h])=>b(Pt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[e,n],()=>b(b(_e(t),([e,n])=>b(Z(":",n),([r,a])=>b(Z("readonly",a),([c,f])=>b(Pt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[e,n],()=>b(b(_e(t),([e,n])=>b(Z("?",n),([r,a])=>b(Z(":",a),([c,f])=>b(Pt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[e,n],()=>b(b(_e(t),([e,n])=>b(Z(":",n),([r,a])=>b(Pt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>[])))),([e,n])=>[kD(e),n]),"ElementNamed"),nL=o(t=>b(b(Z("readonly",t),([e,n])=>b(Pt(n),([r,a])=>b(Z("?",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[FD(e),n]),"ElementReadonlyOptional"),rL=o(t=>b(b(Z("readonly",t),([e,n])=>b(Pt(n),([r,a])=>[[e,r],a])),([e,n])=>[qD(e),n]),"ElementReadonly"),iL=o(t=>b(b(Pt(t),([e,n])=>b(Z("?",n),([r,a])=>[[e,r],a])),([e,n])=>[PD(e),n]),"ElementOptional"),YT=o(t=>b(b(eL(t),([e,n])=>[e,n],()=>b(nL(t),([e,n])=>[e,n],()=>b(rL(t),([e,n])=>[e,n],()=>b(iL(t),([e,n])=>[e,n],()=>b(Pt(t),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),"ElementBase"),Q$=o(t=>b(b(b(Z("...",t),([e,n])=>b(YT(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(YT(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[GD(e),n]),"Element$1"),Z$=o((t,e=[])=>b(b(Q$(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>Z$(r,[...e,n]),()=>[e,t]),"ElementList_0"),oL=o(t=>b(b(Z$(t),([e,n])=>b(b(b(Q$(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[YD(e),n]),"ElementList"),sL=o(t=>b(b(Z("[",t),([e,n])=>b(oL(n),([r,a])=>b(Z("]",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[VD(e),n]),"Tuple"),aL=o(t=>b(b(_e(t),([e,n])=>b(Z("?",n),([r,a])=>b(Z(":",a),([c,f])=>b(Z("readonly",f),([d,h])=>b(Pt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[KD(e),n]),"ParameterReadonlyOptional"),lL=o(t=>b(b(_e(t),([e,n])=>b(Z(":",n),([r,a])=>b(Z("readonly",a),([c,f])=>b(Pt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[XD(e),n]),"ParameterReadonly"),cL=o(t=>b(b(_e(t),([e,n])=>b(Z("?",n),([r,a])=>b(Z(":",a),([c,f])=>b(Pt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[QD(e),n]),"ParameterOptional"),uL=o(t=>b(b(_e(t),([e,n])=>b(Z(":",n),([r,a])=>b(Pt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[ZD(e),n]),"ParameterType"),VT=o(t=>b(b(aL(t),([e,n])=>[e,n],()=>b(lL(t),([e,n])=>[e,n],()=>b(cL(t),([e,n])=>[e,n],()=>b(uL(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"ParameterBase"),J$=o(t=>b(b(b(Z("...",t),([e,n])=>b(VT(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(VT(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[JD(e),n]),"Parameter"),W$=o((t,e=[])=>b(b(J$(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>W$(r,[...e,n]),()=>[e,t]),"ParameterList_0"),tM=o(t=>b(b(W$(t),([e,n])=>b(b(b(J$(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[WD(e),n]),"ParameterList"),fL=o(t=>b(b(Z("(",t),([e,n])=>b(tM(n),([r,a])=>b(Z(")",a),([c,f])=>b(Z("=>",f),([d,h])=>b(Pt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[tj(e),n]),"_Function_"),dL=o(t=>b(b(Z("new",t),([e,n])=>b(Z("(",n),([r,a])=>b(tM(a),([c,f])=>b(Z(")",f),([d,h])=>b(Z("=>",h),([g,y])=>b(Pt(y),([v,E])=>[[e,r,c,d,g,v],E])))))),([e,n])=>[ej(e),n]),"Constructor"),mL=o(t=>b(b(b(Z("+",t),([e,n])=>b(Z("readonly",n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(Z("-",t),([e,n])=>b(Z("readonly",n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(Z("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])))),([e,n])=>[nj(e),n]),"MappedReadonly"),hL=o(t=>b(b(b(Z("+",t),([e,n])=>b(Z("?",n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(Z("-",t),([e,n])=>b(Z("?",n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(Z("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])))),([e,n])=>[rj(e),n]),"MappedOptional"),pL=o(t=>b(b(b(Z("as",t),([e,n])=>b(Pt(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[ij(e),n]),"MappedAs"),gL=o(t=>b(b(Z("{",t),([e,n])=>b(mL(n),([r,a])=>b(Z("[",a),([c,f])=>b(_e(f),([d,h])=>b(Z("in",h),([g,y])=>b(Pt(y),([v,E])=>b(pL(E),([x,C])=>b(Z("]",C),([w,M])=>b(hL(M),([L,z])=>b(Z(":",z),([I,F])=>b(Pt(F),([G,q])=>b(j$(q),([B,k])=>b(Z("}",k),([et,nt])=>[[e,r,c,d,g,v,x,w,L,I,G,B,et],nt]))))))))))))),([e,n])=>[oj(e),n]),"Mapped$1"),yL=o(t=>b(_e(t),([e,n])=>[sj(e),n]),"Reference"),bL=o(t=>b(b(Z("Options",t),([e,n])=>b(Z("<",n),([r,a])=>b(Pt(a),([c,f])=>b(Z(",",f),([d,h])=>b(rM(h),([g,y])=>b(Z(">",y),([v,E])=>[[e,r,c,d,g,v],E])))))),([e,n])=>[aj(e),n]),"Options$1"),vL=o(t=>b(ev(t),([e,n])=>[lj(e),n]),"JsonNumber"),SL=o(t=>b(b(Z("true",t),([e,n])=>[e,n],()=>b(Z("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[cj(e),n]),"JsonBoolean"),xL=o(t=>b(nv(['"',"'"],t),([e,n])=>[e,n]),"JsonString"),EL=o(t=>b(Z("null",t),([e,n])=>[uj(),n]),"JsonNull"),eM=o(t=>b(b(Y$(t),([e,n])=>b(Z(":",n),([r,a])=>b(ov(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[fj(e),n]),"JsonProperty"),nM=o((t,e=[])=>b(b(eM(t),([n,r])=>b(K$(r),([a,c])=>[[n,a],c])),([n,r])=>nM(r,[...e,n]),()=>[e,t]),"JsonPropertyList_0"),wL=o(t=>b(b(nM(t),([e,n])=>b(b(b(eM(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[dj(e),n]),"JsonPropertyList"),rM=o(t=>b(b(Z("{",t),([e,n])=>b(wL(n),([r,a])=>b(Z("}",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[hj(e),n]),"JsonObject"),iM=o((t,e=[])=>b(b(ov(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>iM(r,[...e,n]),()=>[e,t]),"JsonElementList_0"),TL=o(t=>b(b(iM(t),([e,n])=>b(b(b(ov(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[pj(e),n]),"JsonElementList"),AL=o(t=>b(b(Z("[",t),([e,n])=>b(TL(n),([r,a])=>b(Z("]",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[gj(e),n]),"JsonArray"),ov=o(t=>b(b(vL(t),([e,n])=>[e,n],()=>b(SL(t),([e,n])=>[e,n],()=>b(xL(t),([e,n])=>[e,n],()=>b(EL(t),([e,n])=>[e,n],()=>b(rM(t),([e,n])=>[e,n],()=>b(AL(t),([e,n])=>[e,n],()=>[])))))),([e,n])=>[e,n]),"Json"),CL=o(t=>b(Z("-?(?:0|[1-9][0-9]*)n",t),([e,n])=>[yj(),n]),"PatternBigInt"),$L=o(t=>b(Z(".*",t),([e,n])=>[bj(),n]),"PatternString"),ML=o(t=>b(Z("-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?",t),([e,n])=>[vj(),n]),"PatternNumber"),OL=o(t=>b(Z("-?(?:0|[1-9][0-9]*)",t),([e,n])=>[Sj(),n]),"PatternInteger"),RL=o(t=>b(Z("(?!)",t),([e,n])=>[xj(),n]),"PatternNever"),NL=o(t=>b(dI(["-?(?:0|[1-9][0-9]*)n",".*","-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?","-?(?:0|[1-9][0-9]*)","(?!)","(",")","$","|"],t),([e,n])=>[Ej(e),n]),"PatternText"),_L=o(t=>b(b(CL(t),([e,n])=>[e,n],()=>b($L(t),([e,n])=>[e,n],()=>b(ML(t),([e,n])=>[e,n],()=>b(OL(t),([e,n])=>[e,n],()=>b(RL(t),([e,n])=>[e,n],()=>b(DL(t),([e,n])=>[e,n],()=>b(NL(t),([e,n])=>[e,n],()=>[]))))))),([e,n])=>[e,n]),"PatternBase"),DL=o(t=>b(b(Z("(",t),([e,n])=>b(sv(n),([r,a])=>b(Z(")",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[wj(e),n]),"PatternGroup"),oM=o(t=>b(b(b(N0(t),([e,n])=>b(Z("|",n),([r,a])=>b(oM(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>b(b(N0(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[]))),([e,n])=>[Tj(e),n]),"PatternUnion"),N0=o(t=>b(b(_L(t),([e,n])=>b(sv(n),([r,a])=>[[e,r],a])),([e,n])=>[Aj(e),n]),"PatternTerm"),sv=o(t=>b(b(oM(t),([e,n])=>[e,n],()=>b(N0(t),([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),"PatternBody"),jL=o(t=>b(b(Z("^",t),([e,n])=>b(sv(n),([r,a])=>b(Z("$",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[Cj(e),n]),"Pattern"),sM=o((t,e=[])=>b(b(Pt(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>sM(r,[...e,n]),()=>[e,t]),"InterfaceDeclarationHeritageList_0"),IL=o(t=>b(b(sM(t),([e,n])=>b(b(b(Pt(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[$j(e),n]),"InterfaceDeclarationHeritageList"),aM=o(t=>b(b(b(Z("extends",t),([e,n])=>b(IL(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Mj(e),n]),"InterfaceDeclarationHeritage"),LL=o(t=>b(b(Z("interface",t),([e,n])=>b(_e(n),([r,a])=>b(rv(a),([c,f])=>b(aM(f),([d,h])=>b(iv(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[Oj(e),n]),"InterfaceDeclarationGeneric"),zL=o(t=>b(b(Z("interface",t),([e,n])=>b(_e(n),([r,a])=>b(aM(a),([c,f])=>b(iv(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[Rj(e),n]),"InterfaceDeclaration"),BL=o(t=>b(b(Z("type",t),([e,n])=>b(_e(n),([r,a])=>b(rv(a),([c,f])=>b(Z("=",f),([d,h])=>b(Pt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[Nj(e),n]),"TypeAliasDeclarationGeneric"),UL=o(t=>b(b(Z("type",t),([e,n])=>b(_e(n),([r,a])=>b(Z("=",a),([c,f])=>b(Pt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[_j(e),n]),"TypeAliasDeclaration"),HL=o(t=>b(b(b(Z("export",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Dj(),n]),"ExportKeyword"),kL=o(t=>b(b(b(Z(";",t),([e,n])=>b(Z(`
|
|
7
|
-
`,n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(Z(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b(b(Z(`
|
|
8
|
-
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]),"ModuleDeclarationDelimiter"),lM=o((t,e=[])=>b(b(av(t),([n,r])=>b(kL(r),([a,c])=>[[n,a],c])),([n,r])=>lM(r,[...e,n]),()=>[e,t]),"ModuleDeclarationList_0"),FL=o(t=>b(b(lM(t),([e,n])=>b(b(b(av(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[jj(e),n]),"ModuleDeclarationList"),av=o(t=>b(b(HL(t),([e,n])=>b(b(LL(n),([r,a])=>[r,a],()=>b(zL(n),([r,a])=>[r,a],()=>b(BL(n),([r,a])=>[r,a],()=>b(UL(n),([r,a])=>[r,a],()=>[])))),([r,a])=>b(j$(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[Ij(e),n]),"ModuleDeclaration"),qL=o(t=>b(b(av(t),([e,n])=>b(FL(n),([r,a])=>[[e,r],a])),([e,n])=>[Lj(e),n]),"Module$1"),PL=o(t=>b(b(qL(t),([e,n])=>[e,n],()=>b(GI(t),([e,n])=>[e,n],()=>b(Pt(t),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]),"Script$1");function GL(t){const e=H$(`\`${t}\``);return R(e.length,2)?e[0]:ke()}o(GL,"ParseTemplateIntoTypes");function lv(t,e={}){return de("TemplateLiteral",[t],e)}o(lv,"TemplateLiteralDeferred");function cM(t){return Wt({},lv(t,{}))}o(cM,"TemplateLiteralFromTypes");function YL(t){const e=GL(t);return cM(e)}o(YL,"TemplateLiteralFromString");function VL(t,e={}){const n=jt(t)?YL(t):cM(t);return Qt(n,{},e)}o(VL,"TemplateLiteral");function Fr(t){return kt(t,"TemplateLiteral")}o(Fr,"IsTemplateLiteral");function uM(t){return Rt({"~kind":"ExtendsUnion"},{inferred:t})}o(uM,"ExtendsUnion$1");function cv(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&R(t["~kind"],"ExtendsUnion")&&Mt(t.inferred)}o(cv,"IsExtendsUnion");function It(t){return Rt({"~kind":"ExtendsTrue"},{inferred:t})}o(It,"ExtendsTrue");function uv(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&R(t["~kind"],"ExtendsTrue")&&Mt(t.inferred)}o(uv,"IsExtendsTrue");function re(){return Rt({"~kind":"ExtendsFalse"},{})}o(re,"ExtendsFalse");function _0(t){return Mt(t)&&at(t,"~kind")&&R(t["~kind"],"ExtendsFalse")}o(_0,"IsExtendsFalse");function Ae(t){return cv(t)||uv(t)}o(Ae,"IsExtendsTrueLike");const KL=Object.freeze(Object.defineProperty({__proto__:null,ExtendsFalse:re,ExtendsTrue:It,ExtendsUnion:uM,IsExtendsFalse:_0,IsExtendsTrue:uv,IsExtendsTrueLike:Ae,IsExtendsUnion:cv},Symbol.toStringTag,{value:"Module"}));function XL(t){return jt(t)||Vt(t)?ge(t):qn(t)?Xs():Ze()}o(XL,"FromEnumValue");function Fl(t){return t.map(n=>XL(n))}o(Fl,"EnumValuesToVariants");function fv(t){const e=Fl(t);return ve(e)}o(fv,"EnumValuesToUnion");function dv(t){return fv(t.enum)}o(dv,"EnumToUnion");function QL(t,e,n,r){const a=Je(t,n,r);return Ae(a)?It(Xe(Xe(t,a.inferred),{[e]:n})):re()}o(QL,"ExtendsRightInfer");function ZL(t,e){return It(t)}o(ZL,"ExtendsRightAny");function JL(t,e,n){const r=fv(n);return Je(t,e,r)}o(JL,"ExtendsRightEnum");function fM(t,e,n){const[r,...a]=n;return Ut(r)?(()=>{const c=Je(t,e,r);return Ae(c)?fM(c.inferred,e,a):re()})():It(t)}o(fM,"ExtendsRightIntersect");function WL(t,e,n){const r=yo(n);return Je(t,e,r)}o(WL,"ExtendsRightTemplateLiteral");function dM(t,e,n){const[r,...a]=n;return Ut(r)?(()=>{const c=Je(t,e,r);return Ae(c)?It(c.inferred):dM(t,e,a)})():re()}o(dM,"ExtendsRightUnion");function ze(t,e,n){return ho(n)?ZL(t):li(n)?JL(t,e,n.enum):cr(n)?QL(t,n.name,e,n.extends):xe(n)?fM(t,e,n.allOf):Fr(n)?WL(t,e,n.pattern):Ht(n)?dM(t,e,n.anyOf):is(n)?It(t):re()}o(ze,"ExtendsRight");function tz(t,e,n){return cr(n)?ze(t,e,n):ho(n)||is(n)?It(t):uM(t)}o(tz,"ExtendsAny");function ez(t,e){const n=ym(t),r=ym(e);return n&&r||!n&&r?!0:!(n&&!r)}o(ez,"ExtendsImmutable");function nz(t,e,n,r){return en(r)?ez(e,r)?Je(t,n,r.items):re():ze(t,e,r)}o(nz,"ExtendsArray");function rz(t,e,n){return fs(n)?Je(t,e,n.iteratorItems):ze(t,Vu(e),n)}o(rz,"ExtendsAsyncIterator");function iz(t,e,n){return ca(n)?It(t):ze(t,e,n)}o(iz,"ExtendsBigInt");function oz(t,e,n){return po(n)?It(t):ze(t,e,n)}o(oz,"ExtendsBoolean");function sz(t,e,n,r,a){const c=cr(r)?e:r,f=cr(r)?r:e,d=Hn(e),h=Hn(r),g=Je(t,c,f);return!d&&h?re():Ae(g)?mv(g.inferred,n,a):re()}o(sz,"ParameterCompare");function az(t,e,n,r){const[a,...c]=r;return Ut(a)?sz(t,e,n,a,c):Hn(e)?It(t):re()}o(az,"ParameterRight");function lz(t,e,n){const[r,...a]=e;return Ut(r)?az(t,r,a,n):It(t)}o(lz,"ParametersLeft");function mv(t,e,n){return lz(t,e,n)}o(mv,"ExtendsParameters");function mM(t,e,n){return hs(n)?It(t):Je(t,e,n)}o(mM,"ExtendsReturnType");function cz(t,e,n,r){return ji(r)?(()=>{const a=mv(t,e,r.parameters);return Ae(a)?mM(a.inferred,n,r.instanceType):re()})():re()}o(cz,"ExtendsConstructor");function uz(t,e,n){return Je(t,dv(e),n)}o(uz,"ExtendsEnum");function fz(t,e,n,r){return Ii(r)?(()=>{const a=mv(t,e,r.parameters);return Ae(a)?mM(a.inferred,n,r.returnType):re()})():re()}o(fz,"ExtendsFunction");function dz(t,e,n){return ci(n)||pr(n)?It(t):ze(t,e,n)}o(dz,"ExtendsInteger");const hv="equal",mz="disjoint",pv="left-inside",gv="right-inside";function yv(t,e){const n=[is(t)?re():co({},t,e),is(t)?It({}):co({},e,t)];return Ae(n[0])&&Ae(n[1])?hv:Ae(n[0])&&_0(n[1])?pv:_0(n[0])&&Ae(n[1])?gv:mz}o(yv,"Compare");function hz(t){return Ht(t)?nf(t.anyOf):[t]}o(hz,"FlattenType");function nf(t){return t.reduce((e,n)=>[...e,...hz(n)],[])}o(nf,"Flatten");function hM(t){return t.reduceRight((n,r,a)=>({[a]:r,...n}),{})}o(hM,"TupleElementsToProperties");function pz(t){const e=hM(t.items);return ae(e)}o(pz,"TupleToObject");function gz(t,e){return bm(t)?!!bm(e):!1}o(gz,"IsReadonlyProperty");function yz(t,e){return Hn(t)?!!Hn(e):!1}o(yz,"IsOptionalProperty");function bz(t,e){const n=gz(t,e),r=yz(t,e),a=qr([t,e]),c=PC(zb(a));return n&&r?zr(Lr(c)):n&&!r?zr(c):!n&&r?Lr(c):c}o(bz,"CompositeProperty");function vz(t,e,n){return n in t?n in e?bz(t[n],e[n]):t[n]:n in e?e[n]:Ze()}o(vz,"CompositePropertyKey");function Sz(t,e){return[...new Set([...gt(e),...gt(t)])].reduce((r,a)=>({...r,[a]:vz(t,e,a)}),{})}o(Sz,"CompositeProperties");function KT(t){return Ce(t)?t.properties:qe(t)?hM(t.items):ke()}o(KT,"GetProperties");function xz(t,e){const n=KT(t),r=KT(e),a=Sz(n,r);return ae(a)}o(xz,"Composite");function Ez(t,e){const n=yv(t,e);return R(n,pv)?t:R(n,gv)||R(n,hv)?e:Ze()}o(Ez,"Narrow");function XT(t){return Ce(t)||qe(t)}o(XT,"IsObjectLike");function wz(t,e){const n=Ht(t),r=Ht(e);return n||r}o(wz,"IsUnionOperand");function Tz(t,e){const n=Tm(t),r=Tm(e),a=wz(n,r),c=XT(n),f=XT(r);return a?qr([n,r]):c&&f?xz(n,r):c&&!f?n:!c&&f?r:Ez(n,r)}o(Tz,"DistributeOperation");function pM(t,e,n=[]){const[r,...a]=e;return pe(r)?n.length===0?[t]:n:pM(t,a,[...n,Tz(t,r)])}o(pM,"DistributeType");function gM(t,e,n=[]){const[r,...a]=t;return Ut(r)?gM(a,e,[...n,...wm([r],e)]):n}o(gM,"DistributeUnion");function wm(t,e=[]){const[n,...r]=t;return Ut(n)?Ht(n)?wm(r,gM(n.anyOf,e)):wm(r,pM(n,e)):e}o(wm,"Distribute");function qr(t){const e=wm(t);return yM(e)}o(qr,"EvaluateIntersect");function rf(t){return yM(t)}o(rf,"EvaluateUnion");function Tm(t){return xe(t)?qr(t.allOf):Ht(t)?rf(t.anyOf):t}o(Tm,"EvaluateType");function Sh(t){return R(t.length,1)?t[0]:R(t.length,0)?Ze():ve(t)}o(Sh,"EvaluateUnionFast");function Az(t,e){return e.filter(n=>yv(t,n)!==gv)}o(Az,"BroadFilter");function Cz(t,e){const n=e.some(r=>{const a=yv(t,r);return R(a,pv)||R(a,hv)});return R(n,!1)}o(Cz,"IsBroadestType");function $z(t,e){const n=Tm(t);return ho(n)?[n]:Cz(n,e)?[...Az(n,e),n]:e}o($z,"BroadenType");function D0(t,e=[]){const[n,...r]=t;return Ut(n)?Ce(n)?D0(r,[...e,n]):D0(r,$z(n,e)):e}o(D0,"BroadenTypes");function yM(t){const e=D0(t),n=nf(e);return n.length===0?Ze():n.length===1?n[0]:ve(n)}o(yM,"Broaden");function Mz(t,e,n,r){const a=xt(t,e,n);return Qt(Tm(a),{},r)}o(Mz,"EvaluateImmediate");function Oz(t,e,n,r){return Mz(t,e,n,r)}o(Oz,"EvaluateInstantiate");function Rz(t,e,n){const r=qr(e);return Je(t,r,n)}o(Rz,"ExtendsIntersect");function Nz(t,e,n){return ds(n)?Je(t,e,n.iteratorItems):ze(t,Qu(e),n)}o(Nz,"ExtendsIterator");function xh(t,e,n){return e===n?It(t):re()}o(xh,"ExtendsLiteralValue");function _z(t,e,n){return De(n)?xh(t,e,n.const):ca(n)?It(t):ze(t,ge(e),n)}o(_z,"ExtendsLiteralBigInt");function Dz(t,e,n){return De(n)?xh(t,e,n.const):po(n)?It(t):ze(t,ge(e),n)}o(Dz,"ExtendsLiteralBoolean");function jz(t,e,n){return De(n)?xh(t,e,n.const):pr(n)?It(t):ze(t,ge(e),n)}o(jz,"ExtendsLiteralNumber");function Iz(t,e,n){return De(n)?xh(t,e,n.const):zn(n)?It(t):ze(t,ge(e),n)}o(Iz,"ExtendsLiteralString");function Lz(t,e,n){return Oe(e.const)?_z(t,e.const,n):Fe(e.const)?Dz(t,e.const,n):Vt(e.const)?jz(t,e.const,n):jt(e.const)?Iz(t,e.const,n):ke()}o(Lz,"ExtendsLiteral");function zz(t,e,n){return cr(n)?ze(t,e,n):It(t)}o(zz,"ExtendsNever");function Bz(t,e,n){return Hl(n)?It(t):ze(t,e,n)}o(Bz,"ExtendsNull");function Uz(t,e,n){return pr(n)?It(t):ze(t,e,n)}o(Uz,"ExtendsNumber");function Hz(t,e,n){return Hn(e)?Hn(n)?It(t):re():It(t)}o(Hz,"ExtendsPropertyOptional");function kz(t,e,n){return cr(n)&&mh(n.extends)?re():(()=>{const r=Je(t,e,n);return Ae(r)?Hz(r.inferred,e,n):re()})()}o(kz,"ExtendsProperty");function Fz(t,e){return t.reduce((n,r)=>r in e&&Ae(e[r])?{...n,...e[r].inferred}:ke(),{})}o(Fz,"ExtractInferredProperties");function qz(t,e,n){const r={};for(const f of gt(n))r[f]=f in e?kz({},e[f],n[f]):Hn(n[f])?cr(n[f])?It(Xe(t,{[n[f].name]:n[f].extends})):It(t):re();const a=_b(r).every(f=>Ae(f)),c=a?Fz(gt(r),r):{};return a?It(c):re()}o(qz,"ExtendsPropertiesComparer");function Pz(t,e,n){const r=qz(t,e,n);return Ae(r)?It(Xe(t,r.inferred)):re()}o(Pz,"ExtendsProperties");function Gz(t,e,n){return Pz(t,e,n)}o(Gz,"ExtendsObjectToObject");function Yz(t,e,n){return Ce(n)?Gz(t,e,n.properties):ze(t,ae(e),n)}o(Yz,"ExtendsObject");function Vz(t,e,n){return go(n)?Je(t,e,n.item):ze(t,Wu(e),n)}o(Vz,"ExtendsPromise");function Kz(t,e,n){return zn(n)?It(t):ze(t,e,n)}o(Kz,"ExtendsString");function Xz(t,e,n){return Zu(n)?It(t):ze(t,e,n)}o(Xz,"ExtendsSymbol");function Qz(t,e,n){const r=yo(e);return Je(t,r,n)}o(Qz,"ExtendsTemplateLiteral");function j0(t,e){return Rt({"~kind":"Inferrable"},{name:t,type:e},{})}o(j0,"Inferrable");function bv(t){return Mt(t)&&at(t,"~kind")&&at(t,"name")&&at(t,"type")&&R(t["~kind"],"Inferrable")&&jt(t.name)&&Mt(t.type)}o(bv,"IsInferable");function bM(t){return yh(t)?cr(t.items)?en(t.items.extends)?j0(t.items.name,t.items.extends.items):is(t.items.extends)?j0(t.items.name,t.items.extends):void 0:ke():void 0}o(bM,"TryRestInferable");function vM(t){return cr(t)?j0(t.name,t.extends):void 0}o(vM,"TryInferable");function vv(t,e,n=[]){const[r,...a]=t;return Ut(r)?(()=>{const c=Je({},r,e);return Ae(c)?vv(a,e,[...n,r]):void 0})():n}o(vv,"TryInferResults");function Zz(t,e,n,r){const a=vv(n,r);return wt(a)?It(Xe(t,{[e]:ui(a)})):re()}o(Zz,"InferTupleResult");function SM(t,e,n,r){const a=vv(n,r);return wt(a)?It(Xe(t,{[e]:ve(a)})):re()}o(SM,"InferUnionResult");function Jz(t){return[...t].reverse()}o(Jz,"Reverse");function I0(t,e){return e?Jz(t):t}o(I0,"ApplyReverse");function Wz(t){const e=t.length>0?t[0]:void 0,n=Ut(e)?bM(e):void 0;return Ut(n)}o(Wz,"Reversed");function t8(t,e,n,r,a,c){const f=Je(t,n,a);return Ae(f)?xM(f.inferred,e,r,c):re()}o(t8,"ElementsCompare");function e8(t,e,n,r,a){const c=bM(r);return bv(c)?Zz(t,c.name,I0(n,e),c.type):(()=>{const[f,...d]=n;return Ut(f)?t8(t,e,f,d,r,a):re()})()}o(e8,"ElementsLeft");function n8(t,e,n,r){const[a,...c]=r;return Ut(a)?e8(t,e,n,a,c):R(n.length,0)?It(t):re()}o(n8,"ElementsRight");function xM(t,e,n,r){return n8(t,e,n,r)}o(xM,"Elements");function r8(t,e,n){const r=Kv(t,{callstack:[]},n),a=Wz(r);return xM(t,a,I0(e,a),I0(r,a))}o(r8,"ExtendsTupleToTuple");function EM(t,e,n){const r=vM(n);return bv(r)?SM(t,r.name,e,r.type):(()=>{const[a,...c]=e;return Ut(a)?(()=>{const f=Je(t,a,n);return Ae(f)?EM(f.inferred,c,n):re()})():It(t)})()}o(EM,"ExtendsTupleToArray");function i8(t,e,n){const r=Kv(t,{callstack:[]},e);return qe(n)?r8(t,r,n.items):en(n)?EM(t,r,n.items):ze(t,ui(r),n)}o(i8,"ExtendsTuple");function o8(t,e,n){return hs(n)||kl(n)?It(t):ze(t,e,n)}o(o8,"ExtendsUndefined");function wM(t,e,n){const[r,...a]=n;return Ut(r)?(()=>{const c=Je(t,e,r);return Ae(c)?It(c.inferred):wM(t,e,a)})():re()}o(wM,"ExtendsUnionSome");function L0(t,e,n){const[r,...a]=e;return Ut(r)?(()=>{const c=wM(t,r,n);return Ae(c)?L0(c.inferred,a,n):re()})():It(t)}o(L0,"ExtendsUnionLeft");function s8(t,e,n){const r=vM(n);return bv(r)?SM(t,r.name,e,r.type):Ht(n)?L0(t,e,n.anyOf):L0(t,e,[n])}o(s8,"ExtendsUnion");function a8(t,e,n){return cr(n)?ze(t,e,n):ho(n)||is(n)?It(t):re()}o(a8,"ExtendsUnknown");function l8(t,e,n){return hs(n)?It(t):ze(t,e,n)}o(l8,"ExtendsVoid");function Je(t,e,n){return ho(e)?tz(t,e,n):en(e)?nz(t,e,e.items,n):fs(e)?rz(t,e.iteratorItems,n):ca(e)?iz(t,e,n):po(e)?oz(t,e,n):ji(e)?cz(t,e.parameters,e.instanceType,n):li(e)?uz(t,e,n):Ii(e)?fz(t,e.parameters,e.returnType,n):ci(e)?dz(t,e,n):xe(e)?Rz(t,e.allOf,n):ds(e)?Nz(t,e.iteratorItems,n):De(e)?Lz(t,e,n):mh(e)?zz(t,e,n):Hl(e)?Bz(t,e,n):pr(e)?Uz(t,e,n):Ce(e)?Yz(t,e.properties,n):go(e)?Vz(t,e.item,n):zn(e)?Kz(t,e,n):Zu(e)?Xz(t,e,n):Fr(e)?Qz(t,e.pattern,n):qe(e)?i8(t,e.items,n):kl(e)?o8(t,e,n):Ht(e)?s8(t,e.anyOf,n):is(e)?a8(t,e,n):hs(e)?l8(t,e,n):re()}o(Je,"ExtendsLeft");function Eh(t,e,n={}){return de("Interface",[t,e],n)}o(Eh,"InterfaceDeferred");function Sv(t){return Ut(t)&&at(t,"action")&&R(t.action,"Interface")}o(Sv,"IsInterfaceDeferred");function TM(t,e,n={}){return Wt({},Eh(t,e,n))}o(TM,"Interface");function c8(t,e,n){return t.includes(n)?!0:Zo([...t,n],e,e[n])}o(c8,"FromRef$8");function QT(t,e,n){const r=r$(n);return qs(t,e,r)}o(QT,"FromProperties$3");function qs(t,e,n){const[r,...a]=n;return Ut(r)?Zo(t,e,r)?!0:qs(t,e,a):!1}o(qs,"FromTypes$2");function Zo(t,e,n){return Cn(n)?c8(t,e,n.$ref):en(n)?Zo(t,e,n.items):fs(n)?Zo(t,e,n.iteratorItems):ji(n)?qs(t,e,[...n.parameters,n.instanceType]):Ii(n)?qs(t,e,[...n.parameters,n.returnType]):Sv(n)?QT(t,e,n.parameters[1]):xe(n)?qs(t,e,n.allOf):ds(n)?Zo(t,e,n.iteratorItems):Ce(n)?QT(t,e,n.properties):go(n)?Zo(t,e,n.item):Ht(n)?qs(t,e,n.anyOf):qe(n)?qs(t,e,n.items):gr(n)?Zo(t,e,Li(n)):!1}o(Zo,"FromType$f");function AM(t,e,n){return Zo(t,e,n)}o(AM,"CyclicCheck");function u8(t,e){return e.reduce((n,r)=>r in t?AM([r],t,t[r])?[...n,r]:n:ke(),[])}o(u8,"ResolveCandidateKeys");function f8(t){const e=C6(t);return u8(t,e)}o(f8,"CyclicCandidates");function d8(t,e,n){return n.includes(e)?n:e in t?Jo(t,t[e],[...n,e]):ke()}o(d8,"FromRef$7");function ZT(t,e,n){const r=r$(e);return fl(t,r,n)}o(ZT,"FromProperties$2");function fl(t,e,n){return e.reduce((r,a)=>Jo(t,a,r),n)}o(fl,"FromTypes$1");function Jo(t,e,n){return Cn(e)?d8(t,e.$ref,n):en(e)?Jo(t,e.items,n):fs(e)?Jo(t,e.iteratorItems,n):ji(e)?fl(t,[...e.parameters,e.instanceType],n):Ii(e)?fl(t,[...e.parameters,e.returnType],n):Sv(e)?ZT(t,e.parameters[1],n):xe(e)?fl(t,e.allOf,n):ds(e)?Jo(t,e.iteratorItems,n):Ce(e)?ZT(t,e.properties,n):go(e)?Jo(t,e.item,n):Ht(e)?fl(t,e.anyOf,n):qe(e)?fl(t,e.items,n):gr(e)?Jo(t,Li(e),n):n}o(Jo,"FromType$e");function m8(t,e,n){return Jo(t,n,[e])}o(m8,"CyclicDependencies");function h8(t){return yl()}o(h8,"FromRef$6");function p8(t){return gt(t).reduce((e,n)=>({...e,[n]:xi(t[n])}),{})}o(p8,"FromProperties$1");function lu(t){return t.reduce((e,n)=>[...e,xi(n)],[])}o(lu,"FromTypes");function xi(t){return Cn(t)?h8(t.$ref):en(t)?la(xi(t.items),YC(t)):fs(t)?Vu(xi(t.iteratorItems)):ji(t)?fh(lu(t.parameters),xi(t.instanceType)):Ii(t)?dh(lu(t.parameters),xi(t.returnType)):xe(t)?Js(lu(t.allOf)):ds(t)?Qu(xi(t.iteratorItems)):Ce(t)?ae(p8(t.properties)):go(t)?Wu(xi(t.item)):gr(t)?Kb(Xb(t),xi(Li(t))):Ht(t)?ve(lu(t.anyOf)):qe(t)?ui(lu(t.items)):t}o(xi,"FromType$d");function g8(t,e){return e in t?xi(t[e]):lr()}o(g8,"CyclicAnyFromParameters");function y8(t){return g8(t.$defs,t.$ref)}o(y8,"CyclicExtends");function b8(t,e,n){const r=Ai(t,{callstack:[]},e),a=Vv({},{callstack:[]},n);return qr([...r,ae(a)])}o(b8,"CyclicInterface");function v8(t,e){return gt(t).filter(r=>e.includes(r)).reduce((r,a)=>{const c=t[a],f=Sv(c)?b8(t,c.parameters[0],c.parameters[1]):c;return{...r,[a]:f}},{})}o(v8,"CyclicDefinitions");function S8(t,e,n){const r=m8(t,e,n),a=v8(t,r);return Xu(a,e)}o(S8,"InstantiateCyclic");function CM(t,e){return e in t?Cn(t[e])?CM(t,t[e].$ref):t[e]:Ze()}o(CM,"Resolve");function of(t,e){return CM(t,e)}o(of,"CyclicTarget");function JT(t){return $n(t)?y8(t):t}o(JT,"Normal");function co(t,e,n){const r=JT(e),a=JT(n);return Je(t,r,a)}o(co,"Extends");function x8(t,e,n){if(cr(e)||xv(e)||Ae(co({},e,n)))return;const r={parameter:t,extends:n,received:e};throw new Error("Generic argument does not satify constraint",{cause:r})}o(x8,"AssertArgumentExtends");function WT(t,e,n,r,a){const c=xt(t,e,a);return x8(n,c,r),Xe(t,{[n]:c})}o(WT,"BindArgument");function E8(t,e,n,r,a){const c=xt(t,e,n.extends),f=xt(t,e,n.equals),[d,...h]=a;return Ut(d)?z0(WT(t,e,n.name,c,d),e,r,h):z0(WT(t,e,n.name,c,f),e,r,[])}o(E8,"BindArguments");function z0(t,e,n,r){const[a,...c]=n;return Ut(a)?E8(t,e,a,c,r):t}o(z0,"BindParameters");function w8(t,e,n,r){return z0(t,e,n,r)}o(w8,"ResolveArgumentsContext");function T8(t){return Ll(t.length,0)?t[0]:""}o(T8,"Peek");function $M(t,e,n,r){const a=Ai(t,e,r);return OM(n,a)}o($M,"DeferredCall");function A8(t,e,n,r){return $M(t,e,ar(n),r)}o(A8,"TailCall");function C8(t,e,n,r,a,c){const f=Ai(t,e,c),d=w8(t,e,r,f),h=xt(d,{callstack:[...e.callstack,n]},a);return xt(t,e,h)}o(C8,"HeadCall");function MM(t,e,n,r){const[a,c]=F_(t,n);return Ub(c)?R(T8(e.callstack),a)?A8(t,e,a,r):C8(t,e,a,c.parameters,c.expression,r):$M(t,e,n,r)}o(MM,"CallInstantiate");function OM(t,e){return Rt({"~kind":"Call"},{target:t,arguments:e},{})}o(OM,"CallConstruct");function $8(t,e){return MM({},{callstack:[]},t,e)}o($8,"Call");function xv(t){return kt(t,"Call")}o(xv,"IsCall");function RM(t){return go(t)?RM(t.item):t}o(RM,"AwaitedAction");function M8(t,e,n,r){const a=xt(t,e,n);return Qt(RM(a),{},r)}o(M8,"AwaitedImmediate");function O8(t,e,n,r){return fe(t,[n])?M8(t,e,n,r):Xv(n,r)}o(O8,"AwaitedInstantiate");function R8(t,e){return t(e)}o(R8,"ApplyMapping");function N8(t,e){return jt(e)?ge(R8(t,e)):ge(e)}o(N8,"FromLiteral$3");function _8(t,e){const n=yo(e);return ql(t,n)}o(_8,"FromTemplateLiteral$4");function D8(t,e){const n=e.map(r=>ql(t,r));return ve(n)}o(D8,"FromUnion$c");function ql(t,e){return De(e)?N8(t,e.const):Fr(e)?_8(t,e.pattern):Ht(e)?D8(t,e.anyOf):e}o(ql,"FromType$c");function Ev(t,e={}){return de("Capitalize",[t],e)}o(Ev,"CapitalizeDeferred");function j8(t,e={}){return Wt({},Ev(t,e))}o(j8,"Capitalize");function wv(t,e={}){return de("Lowercase",[t],e)}o(wv,"LowercaseDeferred");function I8(t,e={}){return Wt({},wv(t,e))}o(I8,"Lowercase");function Tv(t,e={}){return de("Uncapitalize",[t],e)}o(Tv,"UncapitalizeDeferred");function L8(t,e={}){return Wt({},Tv(t,e))}o(L8,"Uncapitalize");function Av(t,e={}){return de("Uppercase",[t],e)}o(Av,"UppercaseDeferred");function z8(t,e={}){return Wt({},Av(t,e))}o(z8,"Uppercase");const B8=o(t=>t[0].toUpperCase()+t.slice(1),"CapitalizeMapping"),U8=o(t=>t.toLowerCase(),"LowercaseMapping"),H8=o(t=>t[0].toLowerCase()+t.slice(1),"UncapitalizeMapping"),k8=o(t=>t.toUpperCase(),"UppercaseMapping");function F8(t,e,n,r){const a=xt(t,e,n);return Qt(ql(B8,a),{},r)}o(F8,"CapitalizeImmediate");function q8(t,e,n,r){return fe(t,[n])?F8(t,e,n,r):Ev(n,r)}o(q8,"CapitalizeInstantiate");function P8(t,e,n,r){const a=xt(t,e,n);return Qt(ql(U8,a),{},r)}o(P8,"LowercaseImmediate");function G8(t,e,n,r){return fe(t,[n])?P8(t,e,n,r):wv(n,r)}o(G8,"LowercaseInstantiate");function Y8(t,e,n,r){const a=xt(t,e,n);return Qt(ql(H8,a),{},r)}o(Y8,"UncapitalizeImmediate");function V8(t,e,n,r){return fe(t,[n])?Y8(t,e,n,r):Tv(n,r)}o(V8,"UncapitalizeInstantiate");function K8(t,e,n,r){const a=xt(t,e,n);return Qt(ql(k8,a),{},r)}o(K8,"UppercaseImmediate");function X8(t,e,n,r){return fe(t,[n])?K8(t,e,n,r):Av(n,r)}o(X8,"UppercaseInstantiate");function Cv(t,e,n,r,a={}){return de("Conditional",[t,e,n,r],a)}o(Cv,"ConditionalDeferred");function Q8(t,e,n,r,a={}){return Wt({},Cv(t,e,n,r,a))}o(Q8,"Conditional");function Z8(t,e,n,r,a,c,f){const d=xt(t,e,n),h=xt(t,e,r),g=co(t,d,h);return Qt(cv(g)?ve([xt(g.inferred,e,a),xt(t,e,c)]):uv(g)?xt(g.inferred,e,a):xt(t,e,c),{},f)}o(Z8,"ConditionalImmediate");function J8(t,e,n,r,a,c,f){return fe(t,[n,r])?Z8(t,e,n,r,a,c,f):Cv(n,r,a,c,f)}o(J8,"ConditionalInstantiate");function $v(t,e={}){return de("ConstructorParameters",[t],e)}o($v,"ConstructorParametersDeferred");function W8(t,e={}){return Wt({},$v(t,e))}o(W8,"ConstructorParameters");function t9(t){return ji(t)?xt({},{callstack:[]},ui(t.parameters)):Ze()}o(t9,"ConstructorParametersAction");function e9(t,e,n,r){const a=xt(t,e,n);return Qt(t9(a),{},r)}o(e9,"ConstructorParametersImmediate");function n9(t,e,n,r){return fe(t,[n])?e9(t,e,n,r):$v(n,r)}o(n9,"ConstructorParametersInstantiate");function Mv(t,e,n={}){return de("Exclude",[t,e],n)}o(Mv,"ExcludeDeferred");function r9(t,e,n={}){return Wt({},Mv(t,e,n))}o(r9,"Exclude");function tA(t,e){return t.reduce((n,r)=>[...n,...NM(r,e)],[])}o(tA,"ExcludeUnion");function NM(t,e){const n=co({},t,e);return Ae(n)?[]:[t]}o(NM,"ExcludeType");function i9(t,e){const n=li(t)?tA(Fl(t.enum),e):Ht(t)?tA(nf(t.anyOf),e):NM(t,e);return rf(n)}o(i9,"ExcludeAction");function o9(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(i9(c,f),{},a)}o(o9,"ExcludeImmediate");function _M(t,e,n,r,a){return fe(t,[n,r])?o9(t,e,n,r,a):Mv(n,r,a)}o(_M,"ExcludeInstantiate");function Ov(t,e,n={}){return de("Extract",[t,e],n)}o(Ov,"ExtractDeferred");function s9(t,e,n={}){return Wt({},Ov(t,e,n))}o(s9,"Extract");function eA(t,e){return t.reduce((n,r)=>[...n,...DM(r,e)],[])}o(eA,"ExtractUnion");function DM(t,e){const n=co({},t,e);return Ae(n)?[t]:[]}o(DM,"ExtractType");function a9(t,e){const n=li(t)?eA(Fl(t.enum),e):Ht(t)?eA(nf(t.anyOf),e):DM(t,e);return rf(n)}o(a9,"ExtractAction");function l9(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(a9(c,f),{},a)}o(l9,"ExtractImmediate");function c9(t,e,n,r,a){return fe(t,[n,r])?l9(t,e,n,r,a):Ov(n,r,a)}o(c9,"ExtractInstantiate");const u9=new RegExp("^(?:0|[1-9][0-9]*)$");function Rv(t){const e=`${t}`;return u9.test(e)?parseInt(e):t}o(Rv,"ConvertToIntegerKey");function f9(t){return ge(Rv(t))}o(f9,"NormalizeLiteral");function nA(t){return t.map(e=>jM(e))}o(nA,"NormalizeIndexerTypes");function jM(t){return xe(t)?Js(nA(t.allOf)):Ht(t)?ve(nA(t.anyOf)):De(t)?f9(t.const):t}o(jM,"NormalizeIndexer");function d9(t,e){const n=jM(e),r=co({},n,ao());return Ae(r)?t:Ze()}o(d9,"FromArray$a");function m9(t,e){const n=of(t,e);return sf(n)}o(m9,"FromCyclic$a");function IM(t){return t.reduce((e,n)=>[...e,...sf(n)],[])}o(IM,"FromUnion$b");function h9(t){const e=Fl(t);return IM(e)}o(h9,"FromEnum$2");function p9(t){const e=qr(t);return sf(e)}o(p9,"FromIntersect$a");function g9(t){return[`${t}`]}o(g9,"FromLiteral$2");function y9(t){const e=yo(t);return sf(e)}o(y9,"FromTemplateLiteral$3");function sf(t){return $n(t)?m9(t.$defs,t.$ref):li(t)?h9(t.enum):xe(t)?p9(t.allOf):De(t)?g9(t.const):Fr(t)?y9(t.pattern):Ht(t)?IM(t.anyOf):[]}o(sf,"FromType$b");function Nv(t){return sf(t)}o(Nv,"ToIndexableKeys");function b9(t,e){return e in t?[t[e]]:[]}o(b9,"SelectProperty");function v9(t,e){return e.reduce((n,r)=>[...n,...b9(t,r)],[])}o(v9,"SelectProperties");function S9(t,e){const n=Nv(e),r=v9(t,n);return rf(r)}o(S9,"FromObject$d");function x9(t){return ge(Rv(t))}o(x9,"ConvertLiteral");function rA(t){return t.map(e=>LM(e))}o(rA,"ArrayIndexerTypes");function LM(t){return xe(t)?Js(rA(t.allOf)):Ht(t)?ve(rA(t.anyOf)):De(t)?x9(t.const):t}o(LM,"FormatArrayIndexer");function E9(t,e){return t.reduceRight((n,r,a)=>{const c=co({},ge(a),e);return Ae(c)?[r,...n]:n},[])}o(E9,"IndexElementsWithIndexer");function w9(t,e){const n=LM(e),r=E9(t,n);return Sh(r)}o(w9,"FromTupleWithIndexer");function T9(t){return Sh(t)}o(T9,"FromTupleWithoutIndexer");function A9(t,e){return pr(e)||ci(e)?T9(t):w9(t,e)}o(A9,"FromTuple$9");function C9(t){return t.reduce((e,n)=>e$(n)?[...e,ge(n)]:e,[])}o(C9,"KeysToLiterals");function _v(t){const e=C9(t);return ve(e)}o(_v,"KeysToIndexer");function wh(t,e,n={}){return de("Index",[t,e],n)}o(wh,"IndexDeferred");function zM(t,e,n={}){const r=wt(e)?_v(e):e;return Wt({},wh(t,r,n))}o(zM,"Index");function $9(t,e){const n=of(t,e);return Pl(n)}o($9,"FromCyclic$9");function M9(t,e){const n=gt(t).filter(y=>!at(e,y)),r=gt(e).filter(y=>!at(t,y)),a=gt(t).filter(y=>at(e,y)),c=n.reduce((y,v)=>({...y,[v]:t[v]}),{}),f=r.reduce((y,v)=>({...y,[v]:e[v]}),{}),d=a.reduce((y,v)=>({...y,[v]:qr([t[v],e[v]])}),{}),h=Xe(c,f);return Xe(h,d)}o(M9,"CollapseIntersectProperties");function O9(t){return t.reduce((e,n)=>M9(e,Pl(n)),{})}o(O9,"FromIntersect$9");function R9(t){const e=pz(ui(t));return Pl(e)}o(R9,"FromTuple$8");function N9(t,e){return gt(t).filter(a=>a in e).reduce((a,c)=>({...a,[c]:rf([t[c],e[c]])}),{})}o(N9,"CollapseUnionProperties");function BM(t,e){const[n,...r]=t;return Ut(n)?BM(r,N9(e,Pl(n))):e}o(BM,"ReduceVariants");function _9(t){const[e,...n]=t;return Ut(e)?BM(n,Pl(e)):ke()}o(_9,"FromUnion$a");function Pl(t){return $n(t)?$9(t.$defs,t.$ref):xe(t)?O9(t.allOf):Ht(t)?_9(t.anyOf):qe(t)?R9(t.items):Ce(t)?t.properties:{}}o(Pl,"FromType$a");function Dv(t){const e=Pl(t);return ae(e)}o(Dv,"CollapseToObject");function D9(t){return $n(t)||xe(t)||Ht(t)?Dv(t):t}o(D9,"NormalizeType$1");function j9(t,e){const n=D9(t);return en(n)?d9(n.items,e):Ce(n)?S9(n.properties,e):qe(n)?A9(n.items,e):Ze()}o(j9,"IndexAction");function I9(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(j9(c,f),{},a)}o(I9,"IndexImmediate");function L9(t,e,n,r,a){return fe(t,[n,r])?I9(t,e,n,r,a):wh(n,r,a)}o(L9,"IndexInstantiate");function jv(t,e={}){return de("InstanceType",[t],e)}o(jv,"InstanceTypeDeferred");function z9(t,e={}){return Wt({},jv(t,e))}o(z9,"InstanceType");function B9(t){return ji(t)?t.instanceType:Ze()}o(B9,"InstanceTypeAction");function U9(t,e,n,r){const a=xt(t,e,n);return Qt(B9(a),{},r)}o(U9,"InstanceTypeImmediate");function H9(t,e,n,r={}){return fe(t,[n])?U9(t,e,n,r):jv(n,r)}o(H9,"InstanceTypeInstantiate");function k9(t,e,n,r,a){const c=Ai(t,{callstack:[]},n),f=Vv(t,{callstack:[]},r),d=qr([...c,ae(f)]);return Qt(d,{},a)}o(k9,"InterfaceImmediate");function F9(t,e,n,r,a){return fe(t,n)?k9(t,e,n,r,a):Eh(n,r,a)}o(F9,"InterfaceInstantiate");function Th(t,e={}){return de("KeyOf",[t],e)}o(Th,"KeyOfDeferred");function UM(t,e={}){return Wt({},Th(t,e))}o(UM,"KeyOf");function q9(){return ve([ao(),Br(),Yb()])}o(q9,"FromAny");function P9(t){return ao()}o(P9,"FromArray$9");function G9(t){return t.reduce((n,r)=>e$(r)?[...n,ge(Rv(r))]:ke(),[])}o(G9,"FromPropertyKeys");function Y9(t){const e=gt(t),n=G9(e);return Sh(n)}o(Y9,"FromObject$b");function V9(t){return Xb(t)}o(V9,"FromRecord$6");function K9(t){const e=t.map((n,r)=>ge(r));return Sh(e)}o(K9,"FromTuple$7");function X9(t){return $n(t)||xe(t)||Ht(t)?Dv(t):t}o(X9,"NormalizeType");function Q9(t){const e=X9(t);return ho(e)?q9():en(e)?P9(e.items):Ce(e)?Y9(e.properties):gr(e)?V9(e):qe(e)?K9(e.items):Ze()}o(Q9,"KeyOfAction");function Z9(t,e,n,r){const a=xt(t,e,n);return Qt(Q9(a),{},r)}o(Z9,"KeyOfImmediate");function J9(t,e,n,r){return fe(t,[n])?Z9(t,e,n,r):Th(n,r)}o(J9,"KeyOfInstantiate");function W9(t){const e=yo(t);return Iv(e)}o(W9,"FromTemplateLiteral$2");function iA(t){return t.reduce((e,n)=>[...e,...Iv(n)],[])}o(iA,"FromUnion$9");function Iv(t){return li(t)?iA(Fl(t.enum)):Gb(t)||Pb(t)?[t]:Fr(t)?W9(t.pattern):Ht(t)?iA(t.anyOf):[]}o(Iv,"FromType$9");function tB(t){return Iv(t)}o(tB,"MappedKeys");function Am(t,e,n,r,a={}){return de("Mapped",[t,e,n,r],a)}o(Am,"MappedDeferred");function HM(t,e,n,r,a={}){return Wt({},Am(t,e,n,r,a))}o(HM,"Mapped");function eB(t,e,n,r,a){const c=Xe(t,{[n.name]:r}),f=xt(c,e,a);return Fr(f)?yo(f.pattern):f}o(eB,"InstantiateKeyAs");function nB(t,e,n,r,a){const c=Xe(t,{[n.name]:r});return xt(c,e,a)}o(nB,"InstantiateProperty");function rB(t,e,n,r,a,c){const f=nB(t,e,n,r,c),d=eB(t,e,n,r,a);return Gb(d)||Pb(d)?{[d.const]:f}:{}}o(rB,"MappedProperty");function iB(t,e,n,r,a,c){return r.reduce((f,d)=>({...f,...rB(t,e,n,d,a,c)}),{})}o(iB,"MappedProperties");function oB(t,e,n,r,a,c){const f=tB(r),d=iB(t,e,n,f,a,c);return ae(d)}o(oB,"MappedAction");function sB(t,e,n,r,a,c,f){const d=xt(t,e,r);return Qt(oB(t,e,n,d,a,c),{},f)}o(sB,"MappedImmediate");function aB(t,e,n,r,a,c,f){return fe(t,[r])?sB(t,e,n,r,a,c,f):Am(n,r,a,c,f)}o(aB,"MappedInstantiate");function lB(t,e){return gt(t).filter(r=>e.includes(r)).reduce((r,a)=>({...r,[a]:S8(t,a,t[a])}),{})}o(lB,"InstantiateCyclics");function cB(t,e){return gt(t).filter(r=>!e.includes(r)).reduce((r,a)=>({...r,[a]:xt(t,{callstack:[]},t[a])}),{})}o(cB,"InstantiateNonCyclics");function uB(t,e){const n=f8(t),r=lB(t,n),a=cB(t,n),c={...r,...a};return Qt(c,{},e)}o(uB,"InstantiateModule");function fB(t,e,n,r){const a=Xe(t,n);return uB(a,r)}o(fB,"ModuleInstantiate");function Lv(t,e={}){return de("NonNullable",[t],e)}o(Lv,"NonNullableDeferred");function dB(t,e={}){return Wt({},Lv(t,e))}o(dB,"NonNullable");function mB(t){const e=ve([Xs(),bh()]);return _M({},{callstack:[]},t,e,{})}o(mB,"NonNullableAction");function hB(t,e,n,r){const a=xt(t,e,n);return Qt(mB(a),{},r)}o(hB,"NonNullableImmediate");function pB(t,e,n,r){return fe(t,[n])?hB(t,e,n,r):Lv(n,r)}o(pB,"NonNullableInstantiate");function kM(t){const e=Dv(t);return Ce(e)?e.properties:ke()}o(kM,"ToIndexable");function zv(t,e,n={}){return de("Omit",[t,e],n)}o(zv,"OmitDeferred");function FM(t,e,n={}){const r=wt(e)?_v(e):e;return Wt({},zv(t,r,n))}o(FM,"Omit");function gB(t,e){return gt(t).reduce((r,a)=>e.includes(a)?r:{...r,[a]:t[a]},{})}o(gB,"FromKeys$1");function yB(t,e){const n=kM(t),r=Nv(e),a=gB(n,r);return ae(a)}o(yB,"OmitAction");function bB(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(yB(c,f),{},a)}o(bB,"OmitImmediate");function vB(t,e,n,r,a){return fe(t,[n,r])?bB(t,e,n,r,a):zv(n,r,a)}o(vB,"OmitInstantiate");function Ah(t,e){return de("Options",[t,e],{})}o(Ah,"OptionsDeferred");function Bv(t,e){return Wt({},Ah(t,e))}o(Bv,"Options");function SB(t,e,n,r){const a=xt(t,e,n);return Qt(a,{},r)}o(SB,"OptionsImmediate");function xB(t,e,n,r){return fe(t,[n])?SB(t,e,n,r):Ah(n,r)}o(xB,"OptionsInstantiate");function Uv(t,e={}){return de("Parameters",[t],e)}o(Uv,"ParametersDeferred");function EB(t,e={}){return Wt({},Uv(t,e))}o(EB,"Parameters");function wB(t){return Ii(t)?xt({},{callstack:[]},ui(t.parameters)):Ze()}o(wB,"ParametersAction");function TB(t,e,n,r){const a=xt(t,e,n);return Qt(wB(a),{},r)}o(TB,"ParametersImmediate");function AB(t,e,n,r){return fe(t,[n])?TB(t,e,n,r):Uv(n,r)}o(AB,"ParametersInstantiate");function Hv(t,e={}){return de("Partial",[t],e)}o(Hv,"PartialDeferred");function qM(t,e={}){return Wt({},Hv(t,e))}o(qM,"Partial");function CB(t,e){const n=of(t,e),r=Ch(n);return Xu(Xe(t,{[e]:r}),e)}o(CB,"FromCyclic$8");function $B(t){const e=t.map(n=>Ch(n));return qr(e)}o($B,"FromIntersect$8");function MB(t){const e=t.map(n=>Ch(n));return ve(e)}o(MB,"FromUnion$8");function OB(t){const e=gt(t).reduce((r,a)=>({...r,[a]:Bb(t[a])}),{});return ae(e)}o(OB,"FromObject$a");function Ch(t){return $n(t)?CB(t.$defs,t.$ref):xe(t)?$B(t.allOf):Ht(t)?MB(t.anyOf):Ce(t)?OB(t.properties):ae({})}o(Ch,"FromType$8");function RB(t,e,n,r){const a=xt(t,e,n);return Qt(Ch(a),{},r)}o(RB,"PartialImmediate");function NB(t,e,n,r){return fe(t,[n])?RB(t,e,n,r):Hv(n,r)}o(NB,"PartialInstantiate");function kv(t,e,n={}){return de("Pick",[t,e],n)}o(kv,"PickDeferred");function PM(t,e,n={}){const r=wt(e)?_v(e):e;return Wt({},kv(t,r,n))}o(PM,"Pick");function _B(t,e){return gt(t).reduce((r,a)=>e.includes(a)?Xe(r,{[a]:t[a]}):r,{})}o(_B,"FromKeys");function DB(t,e){const n=kM(t),r=Nv(e),a=_B(n,r);return ae(a)}o(DB,"PickAction");function jB(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(DB(c,f),{},a)}o(jB,"PickImmediate");function IB(t,e,n,r,a){return fe(t,[n,r])?jB(t,e,n,r,a):kv(n,r,a)}o(IB,"PickInstantiate");function Fv(t,e={}){return de("ReadonlyType",[t],e)}o(Fv,"ReadonlyTypeDeferred");function LB(t,e={}){return Wt({},Fv(t,e))}o(LB,"ReadonlyType");function zB(t){return uh(la(t))}o(zB,"FromArray$8");function BB(t,e){const n=of(t,e),r=$h(n);return Xu(Xe(t,{[e]:r}),e)}o(BB,"FromCyclic$7");function UB(t){const e=t.map(n=>$h(n));return qr(e)}o(UB,"FromIntersect$7");function HB(t){const e=gt(t).reduce((r,a)=>({...r,[a]:GC(t[a])}),{});return ae(e)}o(HB,"FromObject$9");function kB(t){return uh(ui(t))}o(kB,"FromTuple$6");function FB(t){const e=t.map(n=>$h(n));return ve(e)}o(FB,"FromUnion$7");function $h(t){return en(t)?zB(t.items):$n(t)?BB(t.$defs,t.$ref):xe(t)?UB(t.allOf):Ce(t)?HB(t.properties):qe(t)?kB(t.items):Ht(t)?FB(t.anyOf):t}o($h,"FromType$7");function qB(t,e,n,r){const a=xt(t,e,n);return Qt($h(a),{},r)}o(qB,"ReadonlyTypeImmediate");function PB(t,e,n,r){return fe(t,[n])?qB(t,e,n,r):Fv(n,r)}o(PB,"ReadonlyTypeInstantiate");function GB(t){return ss(Ws,t)}o(GB,"FromAnyKey");function YB(t){return ae({true:t,false:t})}o(YB,"FromBooleanKey");function VB(t,e){const n=fv(t);return Mh(n,e)}o(VB,"FromEnumKey");function KB(t,e){return ss(hh,e)}o(KB,"FromIntegerKey");function XB(t,e){const n=qr(t);return Mh(n,e)}o(XB,"FromIntersectKey");function QB(t,e){return jt(t)||Vt(t)?ae({[t]:e}):R(t,!1)?ae({false:e}):R(t,!0)?ae({true:e}):ae({})}o(QB,"FromLiteralKey");function ZB(t,e){return ss(ph,e)}o(ZB,"FromNumberKey");function JB(t,e){return at(t,"pattern")&&(jt(t.pattern)||t.pattern instanceof RegExp)?ss(t.pattern.toString(),e):ss(Ws,e)}o(JB,"FromStringKey");function WB(t,e){const n=o$(t);return l$(n)?Mh(yo(t),e):ss(t,e)}o(WB,"FromTemplateKey");function tU(t){return t.some(e=>zn(e)||pr(e)||ci(e))}o(tU,"StringOrNumberCheck");function eU(t,e){return R(tU(t),!0)?ss(Ws,e):void 0}o(eU,"TryBuildRecord");function nU(t,e){return t.reduce((n,r)=>De(r)&&(jt(r.const)||Vt(r.const))?{...n,[r.const]:e}:n,{})}o(nU,"CreateProperties");function rU(t,e){const n=nU(t,e);return ae(n)}o(rU,"CreateObject");function iU(t,e){const n=nf(t),r=eU(n,e);return Ut(r)?r:rU(n,e)}o(iU,"FromUnionKey");function Mh(t,e){return ho(t)?GB(e):po(t)?YB(e):li(t)?VB(t.enum,e):ci(t)?KB(t,e):xe(t)?XB(t.allOf,e):De(t)?QB(t.const,e):pr(t)?ZB(t,e):Ht(t)?iU(t.anyOf,e):zn(t)?JB(t,e):Fr(t)?WB(t.pattern,e):ae({})}o(Mh,"FromKey");function oU(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(Mh(c,f),{},a)}o(oU,"RecordImmediate");function sU(t,e,n,r,a){return fe(t,[n])?oU(t,e,n,r,a):Vb(n,r,a)}o(sU,"RecordInstantiate");function aU(t,e,n,r){return r in t?AM([r],t,t[r])?n:xt(t,e,t[r]):n}o(aU,"RefInstantiate");function lU(t,e){const n=of(t,e),r=Oh(n);return Xu(Xe(t,{[e]:r}),e)}o(lU,"FromCyclic$6");function cU(t){const e=t.map(n=>Oh(n));return qr(e)}o(cU,"FromIntersect$6");function uU(t){const e=t.map(n=>Oh(n));return ve(e)}o(uU,"FromUnion$6");function fU(t){const e=gt(t).reduce((r,a)=>({...r,[a]:zb(t[a])}),{});return ae(e)}o(fU,"FromObject$8");function Oh(t){return $n(t)?lU(t.$defs,t.$ref):xe(t)?cU(t.allOf):Ht(t)?uU(t.anyOf):Ce(t)?fU(t.properties):ae({})}o(Oh,"FromType$6");function qv(t,e={}){return de("Required",[t],e)}o(qv,"RequiredDeferred");function dU(t,e={}){return Wt({},qv(t,e))}o(dU,"Required");function mU(t,e,n,r){const a=xt(t,e,n);return Qt(Oh(a),{},r)}o(mU,"RequiredImmediate");function hU(t,e,n,r){return fe(t,[n])?mU(t,e,n,r):qv(n,r)}o(hU,"RequiredInstantiate");function Pv(t,e={}){return de("ReturnType",[t],e)}o(Pv,"ReturnTypeDeferred");function pU(t,e={}){return Wt({},Pv(t,e))}o(pU,"ReturnType");function gU(t){return Ii(t)?t.returnType:Ze()}o(gU,"ReturnTypeAction");function yU(t,e,n,r){const a=xt(t,e,n);return Qt(gU(a),{},r)}o(yU,"ReturnTypeImmediate");function bU(t,e,n,r){return fe(t,[n])?yU(t,e,n,r):Pv(n,r)}o(bU,"ReturnTypeInstantiate");function vU(t){return t.join("|")}o(vU,"JoinString");function SU(t){return t.slice(1,t.length-1)}o(SU,"UnwrapTemplateLiteralPattern");function xU(t,e,n){return ps(e,`${n}${t}`)}o(xU,"EncodeLiteral");function EU(t,e){return ps(t,`${e}${v6}`)}o(EU,"EncodeBigInt");function wU(t,e){return ps(t,`${e}${t$}`)}o(wU,"EncodeInteger");function TU(t,e){return ps(t,`${e}${n$}`)}o(TU,"EncodeNumber");function AU(t,e){return Yv(ve([ge("false"),ge("true")]),t,e)}o(AU,"EncodeBoolean");function CU(t,e){return ps(t,`${e}${i$}`)}o(CU,"EncodeString");function $U(t,e,n){return ps(e,`${n}${SU(t)}`)}o($U,"EncodeTemplateLiteral");function MU(t,e,n,r=[]){const a=Fl(t);return Gv(a,e,n)}o(MU,"EncodeEnum");function Gv(t,e,n,r=[]){const[a,...c]=t;return Ut(a)?Gv(c,e,n,[...r,Yv(a,[],"")]):ps(e,`${n}(${vU(r)})`)}o(Gv,"EncodeUnion");function Yv(t,e,n){return li(t)?MU(t.enum,e,n):ci(t)?wU(e,n):De(t)?xU(t.const,e,n):ca(t)?EU(e,n):po(t)?AU(e,n):pr(t)?TU(e,n):zn(t)?CU(e,n):Fr(t)?$U(t.pattern,e,n):Ht(t)?Gv(t.anyOf,e,n):z_}o(Yv,"EncodeType");function ps(t,e){const[n,...r]=t;return Ut(n)?Yv(n,r,e):e}o(ps,"EncodeTypes");function OU(t){return`^${ps(t,"")}$`}o(OU,"EncodePattern");function RU(t){const e=OU(t);return c$(e)}o(RU,"TemplateLiteralEncode");function NU(t,e,n,r){const a=Ai(t,e,n);return Qt(RU(a),{},r)}o(NU,"TemplateLiteralImmediate");function _U(t,e,n,r){return fe(t,n)?NU(t,e,n,r):lv(n,r)}o(_U,"TemplateLiteralInstantiate");function DU(t){return yh(t)?qe(t.items)?GM(t.items.items):cr(t.items)?[t]:Cn(t.items)?[t]:[Ze()]:[t]}o(DU,"SpreadElement");function GM(t){return t.reduce((n,r)=>[...n,...DU(r)],[])}o(GM,"RestSpread");function jU(t,e){return e in t}o(jU,"CanInstantiateRef");function IU(t,e){return xe(e)?fe(t,e.allOf):Ht(e)?fe(t,e.anyOf):Cn(e)?jU(t,e.$ref):!0}o(IU,"CanInstantiateType");function fe(t,e){const[n,...r]=e;return Ut(n)?IU(t,n)?fe(t,r):!1:!0}o(fe,"CanInstantiate");function mu(t,e,n){return __(t)?mu(t.type,"remove",n):M_(t)?mu(t.type,e,"remove"):R_(t)?mu(t.type,"add",n):C_(t)?mu(t.type,e,"add"):[t,e,n]}o(mu,"ModifierActions");function LU(t,e){return R(t,"remove")?PC(e):R(t,"add")?zr(e):e}o(LU,"ApplyReadonly");function zU(t,e){return R(t,"remove")?zb(e):R(t,"add")?Lr(e):e}o(zU,"ApplyOptional");function Vv(t,e,n){return gt(n).reduce((r,a)=>({...r,[a]:xt(t,e,n[a])}),{})}o(Vv,"InstantiateProperties");function Kv(t,e,n){const r=Ai(t,e,n);return GM(r)}o(Kv,"InstantiateElements");function Ai(t,e,n){return n.map(r=>xt(t,e,r))}o(Ai,"InstantiateTypes");function BU(t,e,n,r,a){return R(n,"Awaited")?O8(t,e,r[0],a):R(n,"Capitalize")?q8(t,e,r[0],a):R(n,"Conditional")?J8(t,e,r[0],r[1],r[2],r[3],a):R(n,"ConstructorParameters")?n9(t,e,r[0],a):R(n,"Evaluate")?Oz(t,e,r[0],a):R(n,"Exclude")?_M(t,e,r[0],r[1],a):R(n,"Extract")?c9(t,e,r[0],r[1],a):R(n,"Index")?L9(t,e,r[0],r[1],a):R(n,"InstanceType")?H9(t,e,r[0],a):R(n,"Interface")?F9(t,e,r[0],r[1],a):R(n,"KeyOf")?J9(t,e,r[0],a):R(n,"Lowercase")?G8(t,e,r[0],a):R(n,"Mapped")?aB(t,e,r[0],r[1],r[2],r[3],a):R(n,"Module")?fB(t,e,r[0],a):R(n,"NonNullable")?pB(t,e,r[0],a):R(n,"Pick")?IB(t,e,r[0],r[1],a):R(n,"Options")?xB(t,e,r[0],r[1]):R(n,"Parameters")?AB(t,e,r[0],a):R(n,"Partial")?NB(t,e,r[0],a):R(n,"Omit")?vB(t,e,r[0],r[1],a):R(n,"ReadonlyType")?PB(t,e,r[0],a):R(n,"Record")?sU(t,e,r[0],r[1],a):R(n,"Required")?hU(t,e,r[0],a):R(n,"ReturnType")?bU(t,e,r[0],a):R(n,"TemplateLiteral")?_U(t,e,r[0],a):R(n,"Uncapitalize")?V8(t,e,r[0],a):R(n,"Uppercase")?X8(t,e,r[0],a):de(n,r,a)}o(BU,"InstantiateDeferred");function xt(t,e,n){const r=ym(n),a=mu(n,bm(n)?"add":"none",Hn(n)?"add":"none"),c=Ul(a[0])?a[0].Clone():a[0],f=Cn(c)?aU(t,e,c,c.$ref):en(c)?la(xt(t,e,c.items),YC(c)):fs(c)?Vu(xt(t,e,c.iteratorItems),j_(c)):xv(c)?MM(t,e,c.target,c.arguments):ji(c)?fh(Ai(t,e,c.parameters),xt(t,e,c.instanceType),I_(c)):D_(c)?BU(t,e,c.action,c.parameters,c.options):Ii(c)?dh(Ai(t,e,c.parameters),xt(t,e,c.returnType),L_(c)):xe(c)?Js(Ai(t,e,c.allOf),Y_(c)):ds(c)?Qu(xt(t,e,c.iteratorItems),x6(c)):Ce(c)?ae(Vv(t,e,c.properties),$6(c)):go(c)?Wu(xt(t,e,c.item),O6(c)):gr(c)?B6(ms(c),xt(t,e,Li(c))):yh(c)?gh(xt(t,e,c.items)):qe(c)?ui(Kv(t,e,c.items),H6(c)):Ht(c)?ve(Ai(t,e,c.anyOf),R6(c)):c,d=r?uh(f):f;return LU(a[1],zU(a[2],d))}o(xt,"InstantiateType");function Wt(t,e){return xt(t,{callstack:[]},e)}o(Wt,"Instantiate");function Xv(t,e={}){return de("Awaited",[t],e)}o(Xv,"AwaitedDeferred");function UU(t,e={}){return Wt({},Xv(t,e))}o(UU,"Awaited");function YM(t,e={}){return de("Evaluate",[t],e)}o(YM,"EvaluateDeferred");function af(t,e={}){return Wt({},YM(t,e))}o(af,"Evaluate");function VM(t,e={}){return de("Module",[t],e)}o(VM,"ModuleDeferred");function HU(t,e={}){return Wt({},VM(t,e))}o(HU,"Module");function kU(...t){const[e,n,r]=nn(t,{2:(f,d)=>jt(f)?[{},f,d]:[f,d,{}],3:(f,d,h)=>[f,d,h],1:f=>[{},f,{}]}),a=PL(n),c=wt(a)&&R(a.length,2)?xt(e,{callstack:[]},a[0]):Ze();return Qt(c,{},r)}o(kU,"Script");const FU=Object.freeze(Object.defineProperty({__proto__:null,Any:yl,Array:la,AsyncIterator:Vu,Awaited:UU,Base:VC,BigInt:Fb,Boolean:qb,Call:$8,Capitalize:j8,Codec:kb,Conditional:Q8,Constructor:fh,ConstructorParameters:W8,Cyclic:Xu,Decode:p6,DecodeBuilder:Sm,Encode:g6,EncodeBuilder:vm,Enum:G_,Evaluate:af,Exclude:r9,Extends:co,ExtendsResult:KL,Extract:s9,Function:dh,Generic:Ku,Identifier:xm,Immutable:uh,Index:zM,Infer:C0,InstanceType:z9,Instantiate:Wt,Integer:Tl,Interface:TM,Intersect:Js,IsAny:ho,IsArray:en,IsAsyncIterator:fs,IsBase:Ul,IsBigInt:ca,IsBoolean:po,IsCall:xv,IsCodec:ur,IsConstructor:ji,IsCyclic:$n,IsEnum:li,IsFunction:Ii,IsGeneric:Ub,IsIdentifier:S6,IsImmutable:ym,IsInfer:cr,IsInteger:ci,IsIntersect:xe,IsIterator:ds,IsKind:kt,IsLiteral:De,IsNever:mh,IsNull:Hl,IsNumber:pr,IsObject:Ce,IsOptional:Hn,IsParameter:M6,IsPromise:go,IsReadonly:bm,IsRecord:gr,IsRef:Cn,IsRefine:WC,IsRest:yh,IsSchema:Ut,IsString:zn,IsSymbol:Zu,IsTemplateLiteral:Fr,IsThis:U6,IsTuple:qe,IsUndefined:kl,IsUnion:Ht,IsUnknown:is,IsUnsafe:g$,IsVoid:hs,Iterator:Qu,KeyOf:UM,Literal:ge,Lowercase:I8,Mapped:HM,Module:HU,Never:Ze,NonNullable:dB,Null:Xs,Number:ao,Object:ae,Omit:FM,Optional:Bb,Options:Bv,Parameter:Ju,Parameters:EB,Partial:qM,Pick:PM,Promise:Wu,Readonly:GC,ReadonlyType:LB,Record:Kb,RecordKey:Xb,RecordKeyAsPattern:ms,RecordValue:Li,Ref:ar,Refine:b6,Required:dU,Rest:gh,ReturnType:pU,Script:kU,String:Br,Symbol:Yb,TemplateLiteral:VL,This:p$,Tuple:ui,Uncapitalize:L8,Undefined:bh,Union:ve,Unknown:lr,Unsafe:Zd,Uppercase:z8,Void:Qb},Symbol.toStringTag,{value:"Module"})),qU=[0,31,28,31,30,31,30,31,31,30,31,30,31],PU=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function GU(t){return t%4===0&&(t%100!==0||t%400===0)}o(GU,"IsLeapYear");function Qv(t){const e=PU.exec(t);if(!e)return!1;const n=+e[1],r=+e[2],a=+e[3];return r>=1&&r<=12&&a>=1&&a<=(r===2&&GU(n)?29:qU[r])}o(Qv,"IsDate");const YU=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Zv(t,e=!0){const n=YU.exec(t);if(!n)return!1;const r=+n[1],a=+n[2],c=+n[3],f=n[4]==="-"?-1:1,d=+(n[5]||0),h=+(n[6]||0);if(d>23||h>59||e&&!n[4]&&t.toLowerCase().indexOf("z")===-1)return!1;if(r<=23&&a<=59&&c<60)return!0;const g=a-h*f,y=r-d*f-(g<0?1:0);return(y===23||y===-1)&&(g===59||g===-1)&&c<61}o(Zv,"IsTime");function KM(t,e=!0){const n=t.split(/T/i);return n.length===2&&Qv(n[0])&&Zv(n[1],e)}o(KM,"IsDateTime");const VU=/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/;function XM(t){return VU.test(t)}o(XM,"IsDuration");const KU=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function QM(t){return KU.test(t)}o(QM,"IsEmail");const XU=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;function ZM(t){return XU.test(t)}o(ZM,"IsHostname");const QU=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function JM(t){return QU.test(t)}o(JM,"IsIdnEmail");function Xy(t){const e=t.codePointAt(0);return e===void 0?!1:e>=12352&&e<=12447||e>=12448&&e<=12543&&e!==12539||e>=19968&&e<=40959}o(Xy,"IsValidAdjacentForKatakanaMiddleDot");function WM(t){if(t.length===0||t.includes(" "))return!1;const e=/[\u002E\u3002\uFF0E\uFF61]/g,n=t.normalize("NFC").replace(e,".");if(n.length>253)return!1;const r=n.split(".");if(r.some(a=>a.length===0))return!1;for(const a of r){if(a.length>63||a.startsWith("-")||a.endsWith("-"))return!1;if(/^xn--/i.test(a)){const h=a.slice(4);if(h.length<2||h.includes("---"))return!1;continue}if(/[\u302E\u302F\u3031\u3032\u3033\u3034\u3035\u303B\u0640\u07FA]/.test(a))return!1;const c=a.charAt(0);if(/[\u0903\u0300\u0488]/.test(c))return!1;for(let h=0;h<a.length;h++){const g=a.charAt(h);if(g==="·"){if(h===0||h===a.length-1)return!1;const y=a.charAt(h-1),v=a.charAt(h+1);if(!/^[lL]$/.test(y)||!/^[lL]$/.test(v))return!1}if(g==="・"){if(a.length===1)return!1;if(h===0){const y=a.charAt(h+1);if(!Xy(y))return!1}else{const y=a.charAt(h-1),v=a.charAt(h+1);if(!Xy(y)||!Xy(v))return!1}}if(g==="͵"){if(h===a.length-1)return!1;const y=a.charAt(h+1);if(!/[\u0370-\u03FF]/.test(y))return!1}if(g==="׳"||g==="״"){if(h===0)return!1;const y=a.charAt(h-1);if(!/[\u05D0-\u05EA]/.test(y))return!1}if(g===""&&(h===0||a.charAt(h-1)!=="्"))return!1}let f=!1,d=!1;for(let h=0;h<a.length;h++){const g=a.charAt(h);/[\u0660-\u0669]/.test(g)&&(f=!0),/[\u06F0-\u06F9]/.test(g)&&(d=!0)}if(f&&d)return!1}return!0}o(WM,"IsIdnHostname");const ZU=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;function tO(t){return ZU.test(t)}o(tO,"IsIPv4");const JU=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;function eO(t){return JU.test(t)}o(eO,"IsIPv6");function oA(t){try{return new URL(t,"http://example.com"),!0}catch{return!1}}o(oA,"TryUrl");function nO(t){if(t.includes(" ")||t.includes("\\")||/[\x00-\x1F\x7F]/.test(t)||/%(?![0-9a-fA-F]{2})/.test(t))return!1;if(t==="")return!0;const e=t.indexOf(":");return e>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t.substring(0,e))?oA(t):t.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&e===-1?!1:oA(t)}o(nO,"IsIriReference");function rO(t){try{return new URL(t),!0}catch{return!1}}o(rO,"IsIri");const WU=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function iO(t){return WU.test(t)}o(iO,"IsJsonPointerUriFragment");const t7=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function oO(t){return t7.test(t)}o(oO,"IsJsonPointer");function sO(t){if(t.length===0)return!1;try{return new RegExp(t),!0}catch{return!1}}o(sO,"IsRegex");const e7=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function aO(t){return e7.test(t)}o(aO,"IsRelativeJsonPointer");const n7=/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i;function lO(t){return n7.test(t)}o(lO,"IsUriReference");const r7=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function cO(t){return r7.test(t)}o(cO,"IsUriTemplate");const i7=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i;function uO(t){return i7.test(t)}o(uO,"IsUri");const o7=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function fO(t){return o7.test(t)}o(fO,"IsUrl");const s7=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function dO(t){return s7.test(t)}o(dO,"IsUuid");const he=new Map;function mO(){he.clear()}o(mO,"Clear");function a7(){return[...he.entries()]}o(a7,"Entries");function l7(t,e){he.set(t,e)}o(l7,"Set$1");function c7(t){return he.has(t)}o(c7,"Has");function u7(t){return he.get(t)}o(u7,"Get$1");function hO(t,e){return he.get(t)?.(e)??!0}o(hO,"Test");function pO(){mO(),he.set("date-time",KM),he.set("date",Qv),he.set("duration",XM),he.set("email",QM),he.set("hostname",ZM),he.set("idn-email",JM),he.set("idn-hostname",WM),he.set("ipv4",tO),he.set("ipv6",eO),he.set("iri-reference",nO),he.set("iri",rO),he.set("json-pointer-uri-fragment",iO),he.set("json-pointer",oO),he.set("regex",sO),he.set("relative-json-pointer",aO),he.set("time",Zv),he.set("uri-reference",lO),he.set("uri-template",cO),he.set("uri",uO),he.set("url",fO),he.set("uuid",dO)}o(pO,"Reset");pO();const B0=Object.freeze(Object.defineProperty({__proto__:null,Clear:mO,Entries:a7,Get:u7,Has:c7,IsDate:Qv,IsDateTime:KM,IsDuration:XM,IsEmail:QM,IsHostname:ZM,IsIPv4:tO,IsIPv6:eO,IsIdnEmail:JM,IsIdnHostname:WM,IsIri:rO,IsIriReference:nO,IsJsonPointer:oO,IsJsonPointerUriFragment:iO,IsRegex:sO,IsRelativeJsonPointer:aO,IsTime:Zv,IsUri:uO,IsUriReference:lO,IsUriTemplate:cO,IsUrl:fO,IsUuid:dO,Reset:pO,Set:l7,Test:hO},Symbol.toStringTag,{value:"Module"}));function f7(t){return Mt(t)&&at(t,"check")&&at(t,"errors")&&so(t.check)&&so(t.errors)}o(f7,"IsGuardInterface");function Jv(t){return at(t,"~guard")&&f7(t["~guard"])}o(Jv,"IsGuard");function Wv(t){return at(t,"~refine")&&wt(t["~refine"])&&hn(t["~refine"],0,e=>Mt(e)&&at(e,"refine")&&at(e,"message")&&so(e.refine)&&jt(e.message))}o(Wv,"IsRefine");function Ri(t){return Mt(t)&&!wt(t)}o(Ri,"IsSchemaObject");function Rh(t){return Fe(t)}o(Rh,"IsBooleanSchema");function Re(t){return Ri(t)||Rh(t)}o(Re,"IsSchema");function Nh(t){return at(t,"additionalItems")&&Re(t.additionalItems)}o(Nh,"IsAdditionalItems");function Gl(t){return at(t,"additionalProperties")&&Re(t.additionalProperties)}o(Gl,"IsAdditionalProperties");function t1(t){return at(t,"allOf")&&wt(t.allOf)&&t.allOf.every(e=>Re(e))}o(t1,"IsAllOf");function U0(t){return at(t,"$anchor")&&jt(t.$anchor)}o(U0,"IsAnchor");function e1(t){return at(t,"anyOf")&&wt(t.anyOf)&&t.anyOf.every(e=>Re(e))}o(e1,"IsAnyOf");function n1(t){return at(t,"const")}o(n1,"IsConst");function Yl(t){return at(t,"contains")&&Re(t.contains)}o(Yl,"IsContains");function Vl(t){return at(t,"default")}o(Vl,"IsDefault");function _h(t){return at(t,"dependencies")&&Mt(t.dependencies)&&Object.values(t.dependencies).every(e=>Re(e)||wt(e)&&e.every(n=>jt(n)))}o(_h,"IsDependencies");function Dh(t){return at(t,"dependentRequired")&&Mt(t.dependentRequired)&&Object.values(t.dependentRequired).every(e=>wt(e)&&e.every(n=>jt(n)))}o(Dh,"IsDependentRequired");function jh(t){return at(t,"dependentSchemas")&&Mt(t.dependentSchemas)&&Object.values(t.dependentSchemas).every(e=>Re(e))}o(jh,"IsDependentSchemas");function sA(t){return at(t,"$dynamicAnchor")&&jt(t.$dynamicAnchor)}o(sA,"IsDynamicAnchor");function r1(t){return at(t,"else")&&Re(t.else)}o(r1,"IsElse");function i1(t){return at(t,"enum")&&wt(t.enum)}o(i1,"IsEnum");function Ih(t){return at(t,"exclusiveMaximum")&&(Vt(t.exclusiveMaximum)||Oe(t.exclusiveMaximum))}o(Ih,"IsExclusiveMaximum");function fa(t){return at(t,"exclusiveMinimum")&&(Vt(t.exclusiveMinimum)||Oe(t.exclusiveMinimum))}o(fa,"IsExclusiveMinimum");function lf(t){return at(t,"format")&&jt(t.format)}o(lf,"IsFormat");function Mu(t){return at(t,"$id")&&jt(t.$id)}o(Mu,"IsId");function o1(t){return at(t,"if")&&Re(t.if)}o(o1,"IsIf");function Kl(t){return at(t,"items")&&(Re(t.items)||wt(t.items)&&t.items.every(e=>Re(e)))}o(Kl,"IsItems");function s1(t){return Kl(t)&&wt(t.items)}o(s1,"IsItemsSized");function Lh(t){return at(t,"maximum")&&(Vt(t.maximum)||Oe(t.maximum))}o(Lh,"IsMaximum");function zh(t){return at(t,"maxContains")&&Vt(t.maxContains)}o(zh,"IsMaxContains");function Bh(t){return at(t,"maxItems")&&Vt(t.maxItems)}o(Bh,"IsMaxItems");function Uh(t){return at(t,"maxLength")&&Vt(t.maxLength)}o(Uh,"IsMaxLength");function Hh(t){return at(t,"maxProperties")&&Vt(t.maxProperties)}o(Hh,"IsMaxProperties");function da(t){return at(t,"minimum")&&(Vt(t.minimum)||Oe(t.minimum))}o(da,"IsMinimum");function Xl(t){return at(t,"minContains")&&Vt(t.minContains)}o(Xl,"IsMinContains");function cf(t){return at(t,"minItems")&&Vt(t.minItems)}o(cf,"IsMinItems");function uf(t){return at(t,"minLength")&&Vt(t.minLength)}o(uf,"IsMinLength");function ff(t){return at(t,"minProperties")&&Vt(t.minProperties)}o(ff,"IsMinProperties");function kh(t){return at(t,"multipleOf")&&(Vt(t.multipleOf)||Oe(t.multipleOf))}o(kh,"IsMultipleOf");function a1(t){return at(t,"not")&&Re(t.not)}o(a1,"IsNot");function l1(t){return at(t,"oneOf")&&wt(t.oneOf)&&t.oneOf.every(e=>Re(e))}o(l1,"IsOneOf");function df(t){return at(t,"pattern")&&(jt(t.pattern)||t.pattern instanceof RegExp)}o(df,"IsPattern");function Ql(t){return at(t,"patternProperties")&&Mt(t.patternProperties)&&Object.values(t.patternProperties).every(e=>Re(e))}o(Ql,"IsPatternProperties");function ma(t){return at(t,"prefixItems")&&wt(t.prefixItems)&&t.prefixItems.every(e=>Re(e))}o(ma,"IsPrefixItems");function Zl(t){return at(t,"properties")&&Mt(t.properties)&&Object.values(t.properties).every(e=>Re(e))}o(Zl,"IsProperties");function Fh(t){return at(t,"propertyNames")&&(Mt(t.propertyNames)||Re(t.propertyNames))}o(Fh,"IsPropertyNames");function d7(t){return at(t,"$recursiveAnchor")&&Fe(t.$recursiveAnchor)}o(d7,"IsRecursiveAnchor");function Qy(t){return d7(t)&&R(t.$recursiveAnchor,!0)}o(Qy,"IsRecursiveAnchorTrue");function c1(t){return at(t,"$recursiveRef")&&jt(t.$recursiveRef)}o(c1,"IsRecursiveRef");function u1(t){return at(t,"$ref")&&jt(t.$ref)}o(u1,"IsRef");function gs(t){return at(t,"required")&&wt(t.required)&&t.required.every(e=>jt(e))}o(gs,"IsRequired");function f1(t){return at(t,"then")&&Re(t.then)}o(f1,"IsThen");function qh(t){return at(t,"type")&&(jt(t.type)||wt(t.type)&&t.type.every(e=>jt(e)))}o(qh,"IsType");function mf(t){return at(t,"uniqueItems")&&Fe(t.uniqueItems)}o(mf,"IsUniqueItems");function hf(t){return at(t,"unevaluatedItems")&&Re(t.unevaluatedItems)}o(hf,"IsUnevaluatedItems");function pf(t){return at(t,"unevaluatedProperties")&&Re(t.unevaluatedProperties)}o(pf,"IsUnevaluatedProperties");function m7(t){return hf(t)||pf(t)||gt(t).some(e=>Cm(t[e]))}o(m7,"HasUnevaluatedFromObject");function h7(t){return t.some(e=>Cm(e))}o(h7,"HasUnevaluatedFromArray");function Cm(t){return wt(t)?h7(t):Mt(t)?m7(t):!1}o(Cm,"HasUnevaluatedFromUnknown");function p7(t,e){return Cm(e)||gt(t).some(n=>Cm(t[n]))}o(p7,"HasUnevaluated");const OS=class OS{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}AddIndex(e){return ne(Dt("context","AddIndex"),[e])}AddKey(e){return ne(Dt("context","AddKey"),[e])}Merge(e){return ne(Dt("context","Merge"),[e])}};o(OS,"BuildContext");let H0=OS;const RS=class RS{constructor(){this.indices=new Set,this.keys=new Set}AddIndex(e){return this.indices.add(e),!0}AddKey(e){return this.keys.add(e),!0}GetIndices(){return this.indices}GetKeys(){return this.keys}Merge(e){for(const n of e)n.indices.forEach(r=>this.indices.add(r)),n.keys.forEach(r=>this.keys.add(r));return!0}};o(RS,"CheckContext");let ri=RS;const NS=class NS extends ri{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}};o(NS,"ErrorContext");let $m=NS;const _S=class _S extends $m{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};o(_S,"AccumulatedErrorContext");let ii=_S;const gO="external_";let k0=0;const bl={identifier:`${gO}${k0}`,variables:[]};function g7(){bl.identifier=`${gO}${k0}`,bl.variables=[],k0+=1}o(g7,"ResetExternal");function ha(t){const e=`${bl.identifier}[${bl.variables.length}]`;return bl.variables.push(t),e}o(ha,"CreateVariable");function y7(){return bl}o(y7,"GetExternal");function b7(t,e,n,r){return ne(Dt(Dt(ha(n),"~guard"),"check"),[r])}o(b7,"BuildGuard");function v7(t,e,n,r){return n["~guard"].check(r)}o(v7,"CheckGuard");function S7(t,e,n,r,a,c){return a["~guard"].check(c)||e.AddError({keyword:"~guard",schemaPath:n,instancePath:r,params:{errors:a["~guard"].errors(c)}})}o(S7,"ErrorGuard");function x7(t,e,n,r){const a=ha(n["~refine"].map(c=>c));return sa(a,St(0),["refinement","_"],ne(Dt("refinement","refine"),[r]))}o(x7,"BuildRefine");function E7(t,e,n,r){return hn(n["~refine"],0,(a,c)=>a.refine(r))}o(E7,"CheckRefine");function w7(t,e,n,r,a,c){return pn(a["~refine"],0,(f,d)=>f.refine(c)||e.AddError({keyword:"~refine",schemaPath:n,instancePath:r,params:{index:d,message:f.message}}))}o(w7,"ErrorRefine");let T7=0;function gn(){return`var_${T7++}`}o(gn,"Unique");function d1(t){return Kl(t)&&wt(t.items)}o(d1,"IsValid$4");function A7(t,e,n,r){if(!d1(n))return St(!0);const[a,c]=[gn(),gn()],f=Me(t,e,n.additionalItems,a),d=LC(c,St(n.items.length)),h=e.AddIndex(c),g=e.UseUnevaluated()?be(d,hr(f,h)):be(d,f);return ne(Dt(r,"every"),[sr([a,c],g)])}o(A7,"BuildAdditionalItems");function C7(t,e,n,r){return d1(n)?r.every((c,f)=>oh(f,n.items.length)||Se(t,e,n.additionalItems,c)&&e.AddIndex(f)):!0}o(C7,"CheckAdditionalItems");function $7(t,e,n,r,a,c){return d1(a)?c.every((d,h)=>{const g=`${n}/additionalItems`,y=`${r}/${h}`;return oh(h,a.items.length)||He(t,e,g,y,a.additionalItems,d)&&e.AddIndex(h)}):!0}o($7,"ErrorAdditionalItems");function M7(t){return`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`}o(M7,"GetPropertyKeyAsPattern");function m1(t){const e=[];return Ql(t)&&e.push(...gt(t.patternProperties)),Zl(t)&&e.push(...gt(t.properties).map(M7)),R(e.length,0)?"(?!)":`(${e.join("|")})`}o(m1,"GetPropertiesPattern");function O7(t,e,n){return gs(e)&&Zl(e)&&!Ql(e)&&R(e.additionalProperties,!1)&&R(gt(e.properties).length,e.required.length)}o(O7,"CanAdditionalPropertiesFast");function R7(t,e,n){return or(Dt(ne(Dt("Object","getOwnPropertyNames"),[n]),"length"),St(e.required.length))}o(R7,"BuildAdditionalPropertiesFast");function N7(t,e,n,r){const[a,c]=[gn(),gn()],f=ha(new RegExp(m1(n))),d=Me(t,e,n.additionalProperties,`${r}[${a}]`),h=ne(Dt(f,"test"),[a]),g=e.AddKey(a),y=e.UseUnevaluated()?be(h,hr(d,g)):be(h,d);return sa(aa(r),St(0),[a,c],y)}o(N7,"BuildAdditionalPropertiesStandard");function _7(t,e,n,r){return O7(e,n)?R7(e,n,r):N7(t,e,n,r)}o(_7,"BuildAdditionalProperties");function D7(t,e,n,r){const a=new RegExp(m1(n));return hn(gt(r),0,(f,d)=>a.test(f)||Se(t,e,n.additionalProperties,r[f])&&e.AddKey(f))}o(D7,"CheckAdditionalProperties");function j7(t,e,n,r,a,c){const f=new RegExp(m1(a)),d=[];return pn(gt(c),0,(g,y)=>{const v=`${n}/additionalProperties`,E=`${r}/${g}`,x=new ii,C=f.test(g)||He(t,x,v,E,a.additionalProperties,c[g])&&e.AddKey(g);return C||d.push(g),C})||e.AddError({keyword:"additionalProperties",schemaPath:n,instancePath:r,params:{additionalProperties:d}})}o(j7,"ErrorAdditionalProperties");function Ph(t,e,n,r,a){const c=io("results","[]"),f=n.map((y,v)=>io(`context_${v}`,Db("CheckContext",[]))),d=n.map((y,v)=>io(`condition_${v}`,ne(sr(["context"],Me(t,e,y,r)),[`context_${v}`]))),h=n.map((y,v)=>UC(`condition_${v}`,ne(Dt("results","push"),[`context_${v}`]))),g=ch(hr(a,e.Merge("results")));return ne(sr([],lh([c,...f,...d,...h,g])),[])}o(Ph,"Reducer");function I7(t,e,n,r){return Ph(t,e,n.allOf,r,or(Dt("results","length"),St(n.allOf.length)))}o(I7,"BuildAllOfStandard");function L7(t,e,n,r){return vn(n.allOf.map(a=>Me(t,e,a,r)))}o(L7,"BuildAllOfFast");function z7(t,e,n,r){return e.UseUnevaluated()?I7(t,e,n,r):L7(t,e,n,r)}o(z7,"BuildAllOf");function B7(t,e,n,r){const a=n.allOf.reduce((c,f)=>{const d=new ri;return Se(t,d,f,r)?[...c,d]:c},[]);return R(a.length,n.allOf.length)&&e.Merge(a)}o(B7,"CheckAllOf");function U7(t,e,n,r,a,c){const f=[],d=a.allOf.reduce((g,y,v)=>{const E=`${n}/allOf/${v}`,x=new ii,C=He(t,x,E,r,y,c);return C||f.push(x),C?[...g,x]:g},[]),h=R(d.length,a.allOf.length)&&e.Merge(d);return h||f.forEach(g=>g.GetErrors().forEach(y=>e.AddError(y))),h}o(U7,"ErrorAllOf");function H7(t,e,n,r){return Ph(t,e,n.anyOf,r,IC(Dt("results","length"),St(0)))}o(H7,"BuildAnyOfStandard");function k7(t,e,n,r){return jb(n.anyOf.map(a=>Me(t,e,a,r)))}o(k7,"BuildAnyOfFast");function F7(t,e,n,r){return e.UseUnevaluated()?H7(t,e,n,r):k7(t,e,n,r)}o(F7,"BuildAnyOf");function q7(t,e,n,r){const a=n.anyOf.reduce((c,f,d)=>{const h=new ri;return Se(t,h,f,r)?[...c,h]:c},[]);return Ll(a.length,0)&&e.Merge(a)}o(q7,"CheckAnyOf");function P7(t,e,n,r,a,c){const f=[],d=a.anyOf.reduce((g,y,v)=>{const E=new ii,x=`${n}/anyOf/${v}`,C=He(t,E,x,r,y,c);return C||f.push(E),C?[...g,E]:g},[]),h=Ll(d.length,0)&&e.Merge(d);return h||f.forEach(g=>g.GetErrors().forEach(y=>e.AddError(y))),h||e.AddError({keyword:"anyOf",schemaPath:n,instancePath:r,params:{}})}o(P7,"ErrorAnyOf");function G7(t,e,n,r){return St(!!n)}o(G7,"BuildBooleanSchema");function yO(t,e,n,r){return n}o(yO,"CheckBooleanSchema");function Y7(t,e,n,r,a,c){return yO(t,e,a)||e.AddError({keyword:"boolean",schemaPath:n,instancePath:r,params:{}})}o(Y7,"ErrorBooleanSchema");function V7(t,e,n,r){return Gu(n.const)?or(r,St(n.const)):BC(r,ha(n.const))}o(V7,"BuildConst");function bO(t,e,n,r){return Gu(n.const)?R(r,n.const):Yu(r,n.const)}o(bO,"CheckConst");function K7(t,e,n,r,a,c){return bO(t,e,a,c)||e.AddError({keyword:"const",schemaPath:n,instancePath:r,params:{allowedValue:a.const}})}o(K7,"ErrorConst");function vO(t){return!(Xl(t)&&R(t.minContains,0))}o(vO,"IsValid$3");function X7(t,e,n,r){if(!vO(n))return St(!0);const a=gn(),c=An(or(Dt(r,"length"),St(0))),f=ne(Dt(r,"some"),[sr([a],Me(t,e,n.contains,a))]);return hr(c,f)}o(X7,"BuildContains");function SO(t,e,n,r){return vO(n)?!R(r.length,0)&&r.some(a=>Se(t,e,n.contains,a)):!0}o(SO,"CheckContains");function Q7(t,e,n,r,a,c){return SO(t,e,a,c)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:1}})}o(Q7,"ErrorContains");function Z7(t,e,n,r){const a=or(Dt(aa(r),"length"),St(0)),c=vn(Qe(n.dependencies).map(([f,d])=>{const h=An(Zs(r,St(f))),g=Me(t,e,d,r),y=o(v=>vn(v.map(E=>Zs(r,St(E)))),"isEveryKey");return be(h,wt(d)?y(d):g)}));return be(a,c)}o(Z7,"BuildDependencies");function J7(t,e,n,r){const a=R(gt(r).length,0),c=hn(Qe(n.dependencies),0,([f,d])=>!at(r,f)||(wt(d)?d.every(h=>at(r,h)):Se(t,e,d,r)));return a||c}o(J7,"CheckDependencies");function W7(t,e,n,r,a,c){const f=R(gt(c).length,0),d=pn(Qe(a.dependencies),0,([h,g])=>{const y=`${n}/dependencies/${h}`;return!at(c,h)||(wt(g)?g.every(v=>at(c,v)||e.AddError({keyword:"dependencies",schemaPath:n,instancePath:r,params:{property:h,dependencies:g}})):He(t,e,y,r,g,c))});return f||d}o(W7,"ErrorDependencies");function tH(t,e,n,r){const a=or(Dt(aa(r),"length"),St(0)),c=vn(Qe(n.dependentRequired).map(([f,d])=>{const h=An(Zs(r,St(f))),g=vn(d.map(y=>Zs(r,St(y))));return be(h,g)}));return be(a,c)}o(tH,"BuildDependentRequired");function eH(t,e,n,r){const a=R(gt(r).length,0),c=hn(Qe(n.dependentRequired),0,([f,d])=>!at(r,f)||d.every(h=>at(r,h)));return a||c}o(eH,"CheckDependentRequired");function nH(t,e,n,r,a,c){const f=R(gt(c).length,0),d=pn(Qe(a.dependentRequired),0,([h,g])=>!at(c,h)||pn(g,0,y=>at(c,y)||e.AddError({keyword:"dependentRequired",schemaPath:n,instancePath:r,params:{property:h,dependencies:g}})));return f||d}o(nH,"ErrorDependentRequired");function rH(t,e,n,r){const a=or(Dt(aa(r),"length"),St(0)),c=vn(Qe(n.dependentSchemas).map(([f,d])=>{const h=An(Zs(r,St(f))),g=Me(t,e,d,r);return be(h,g)}));return be(a,c)}o(rH,"BuildDependentSchemas");function iH(t,e,n,r){const a=R(gt(r).length,0),c=hn(Qe(n.dependentSchemas),0,([f,d])=>!at(r,f)||Se(t,e,d,r));return a||c}o(iH,"CheckDependentSchemas");function oH(t,e,n,r,a,c){const f=R(gt(c).length,0),d=pn(Qe(a.dependentSchemas),0,([h,g])=>{const y=`${n}/dependentSchemas/${h}`;return!at(c,h)||He(t,e,y,r,g,c)});return f||d}o(oH,"ErrorDependentSchemas");function sH(t,e,n,r){return jb(n.enum.map(a=>{if(Gu(a))return or(r,St(a));const c=ha(a);return BC(r,c)}))}o(sH,"BuildEnum");function xO(t,e,n,r){return n.enum.some(a=>Gu(a)?R(r,a):Yu(r,a))}o(xO,"CheckEnum");function aH(t,e,n,r,a,c){return xO(t,e,a,c)||e.AddError({keyword:"enum",schemaPath:n,instancePath:r,params:{allowedValues:a.enum}})}o(aH,"ErrorEnum");function lH(t,e,n,r){return LC(r,St(n.exclusiveMaximum))}o(lH,"BuildExclusiveMaximum");function EO(t,e,n,r){return oh(r,n.exclusiveMaximum)}o(EO,"CheckExclusiveMaximum");function cH(t,e,n,r,a,c){return EO(t,e,a,c)||e.AddError({keyword:"exclusiveMaximum",schemaPath:n,instancePath:r,params:{comparison:"<",limit:a.exclusiveMaximum}})}o(cH,"ErrorExclusiveMaximum");function uH(t,e,n,r){return IC(r,St(n.exclusiveMinimum))}o(uH,"BuildExclusiveMinimum");function wO(t,e,n,r){return Ll(r,n.exclusiveMinimum)}o(wO,"CheckExclusiveMinimum");function fH(t,e,n,r,a,c){return wO(t,e,a,c)||e.AddError({keyword:"exclusiveMinimum",schemaPath:n,instancePath:r,params:{comparison:">",limit:a.exclusiveMinimum}})}o(fH,"ErrorExclusiveMinimum");function dH(t,e,n,r){return ne(Dt("Format","Test"),[St(n.format),r])}o(dH,"BuildFormat");function TO(t,e,n,r){return hO(n.format,r)}o(TO,"CheckFormat");function mH(t,e,n,r,a,c){return TO(t,e,a,c)||e.AddError({keyword:"format",schemaPath:n,instancePath:r,params:{format:a.format}})}o(mH,"ErrorFormat");function hH(t,e,n,r){const a=f1(n)?n.then:!0,c=r1(n)?n.else:!0;return ah(Me(t,e,n.if,r),Me(t,e,a,r),Me(t,e,c,r))}o(hH,"BuildIf");function pH(t,e,n,r){const a=f1(n)?n.then:!0,c=r1(n)?n.else:!0;return Se(t,e,n.if,r)?Se(t,e,a,r):Se(t,e,c,r)}o(pH,"CheckIf");function gH(t,e,n,r,a,c){const f=f1(a)?a.then:!0,d=r1(a)?a.else:!0,h=new ii,g=He(t,h,`${n}/if`,r,a.if,c)?He(t,h,`${n}/then`,r,f,c)||e.AddError({keyword:"if",schemaPath:n,instancePath:r,params:{failingKeyword:"then"}}):He(t,e,`${n}/else`,r,d,c)||e.AddError({keyword:"if",schemaPath:n,instancePath:r,params:{failingKeyword:"else"}});return g&&e.Merge([h]),g}o(gH,"ErrorIf");function yH(t,e,n,r){return vn(n.items.map((a,c)=>{const f=Bl(Dt(r,"length"),St(c)),d=Me(t,e,a,`${r}[${c}]`),h=e.AddIndex(St(c)),g=e.UseUnevaluated()?hr(d,h):d;return be(f,g)}))}o(yH,"BuildItemsSized");function bH(t,e,n,r){return hn(n.items,0,(a,c)=>mo(r.length,c)||Se(t,e,a,r[c])&&e.AddIndex(c))}o(bH,"CheckItemsSized");function vH(t,e,n,r,a,c){return pn(a.items,0,(f,d)=>{const h=`${n}/items/${d}`,g=`${r}/${d}`;return mo(c.length,d)||He(t,e,h,g,f,c[d])&&e.AddIndex(d)})}o(vH,"ErrorItemsSized");function SH(t,e,n,r){const a=ma(n)?n.prefixItems.length:0,c=Me(t,e,n.items,"element"),f=e.AddIndex("index"),d=e.UseUnevaluated()?hr(c,f):c;return sa(r,St(a),["element","index"],d)}o(SH,"BuildItemsUnsized");function xH(t,e,n,r){const a=ma(n)?n.prefixItems.length:0;return hn(r,a,(c,f)=>Se(t,e,n.items,c)&&e.AddIndex(f))}o(xH,"CheckItemsUnsized");function EH(t,e,n,r,a,c){const f=ma(a)?a.prefixItems.length:0;return pn(c,f,(d,h)=>{const g=`${n}/items`,y=`${r}/${h}`;return He(t,e,g,y,a.items,d)&&e.AddIndex(h)})}o(EH,"ErrorItemsUnsized");function wH(t,e,n,r){return s1(n)?yH(t,e,n,r):SH(t,e,n,r)}o(wH,"BuildItems");function TH(t,e,n,r){return s1(n)?bH(t,e,n,r):xH(t,e,n,r)}o(TH,"CheckItems");function AH(t,e,n,r,a,c){return s1(a)?vH(t,e,n,r,a,c):EH(t,e,n,r,a,c)}o(AH,"ErrorItems");function AO(t){return Yl(t)}o(AO,"IsValid$2");function CH(t,e,n,r){if(!AO(n))return St(!0);const[a,c]=[gn(),gn()],f=ne(Dt(r,"reduce"),[sr([a,c],ah(Me(t,e,n.contains,c),Ib(a),a)),St(0)]);return Bl(f,St(n.maxContains))}o(CH,"BuildMaxContains");function CO(t,e,n,r){if(!AO(n))return!0;const a=r.reduce((c,f)=>Se(t,e,n.contains,f)?++c:c,0);return mo(a,n.maxContains)}o(CO,"CheckMaxContains");function $H(t,e,n,r,a,c){const f=Xl(a)?a.minContains:1;return CO(t,e,a,c)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:f,maxContains:a.maxContains}})}o($H,"ErrorMaxContains");function MH(t,e,n,r){return Bl(r,St(n.maximum))}o(MH,"BuildMaximum");function $O(t,e,n,r){return mo(r,n.maximum)}o($O,"CheckMaximum");function OH(t,e,n,r,a,c){return $O(t,e,a,c)||e.AddError({keyword:"maximum",schemaPath:n,instancePath:r,params:{comparison:"<=",limit:a.maximum}})}o(OH,"ErrorMaximum");function RH(t,e,n,r){return Bl(Dt(r,"length"),St(n.maxItems))}o(RH,"BuildMaxItems");function MO(t,e,n,r){return mo(r.length,n.maxItems)}o(MO,"CheckMaxItems");function NH(t,e,n,r,a,c){return MO(t,e,a,c)||e.AddError({keyword:"maxItems",schemaPath:n,instancePath:r,params:{limit:a.maxItems}})}o(NH,"ErrorMaxItems");function _H(t,e,n,r){return c_(r,St(n.maxLength))}o(_H,"BuildMaxLength");function OO(t,e,n,r){return MC(r,n.maxLength)}o(OO,"CheckMaxLength");function DH(t,e,n,r,a,c){return OO(t,e,a,c)||e.AddError({keyword:"maxLength",schemaPath:n,instancePath:r,params:{limit:a.maxLength}})}o(DH,"ErrorMaxLength");function jH(t,e,n,r){return Bl(Dt(aa(r),"length"),St(n.maxProperties))}o(jH,"BuildMaxProperties");function RO(t,e,n,r){return mo(gt(r).length,n.maxProperties)}o(RO,"CheckMaxProperties");function IH(t,e,n,r,a,c){return RO(t,e,a,c)||e.AddError({keyword:"maxProperties",schemaPath:n,instancePath:r,params:{limit:a.maxProperties}})}o(IH,"ErrorMaxProperties");function NO(t){return Yl(t)}o(NO,"IsValid$1");function LH(t,e,n,r){if(!NO(n))return St(!0);const[a,c]=[gn(),gn()],f=ne(Dt(r,"reduce"),[sr([a,c],ah(Me(t,e,n.contains,c),Ib(a),a)),St(0)]);return sh(f,St(n.minContains))}o(LH,"BuildMinContains");function _O(t,e,n,r){if(!NO(n))return!0;const a=r.reduce((c,f)=>Se(t,e,n.contains,f)?++c:c,0);return zl(a,n.minContains)}o(_O,"CheckMinContains");function zH(t,e,n,r,a,c){return _O(t,e,a,c)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:a.minContains}})}o(zH,"ErrorMinContains");function BH(t,e,n,r){return sh(r,St(n.minimum))}o(BH,"BuildMinimum");function DO(t,e,n,r){return zl(r,n.minimum)}o(DO,"CheckMinimum");function UH(t,e,n,r,a,c){return DO(t,e,a,c)||e.AddError({keyword:"minimum",schemaPath:n,instancePath:r,params:{comparison:">=",limit:a.minimum}})}o(UH,"ErrorMinimum");function HH(t,e,n,r){return sh(Dt(r,"length"),St(n.minItems))}o(HH,"BuildMinItems");function jO(t,e,n,r){return zl(r.length,n.minItems)}o(jO,"CheckMinItems");function kH(t,e,n,r,a,c){return jO(t,e,a,c)||e.AddError({keyword:"minItems",schemaPath:n,instancePath:r,params:{limit:a.minItems}})}o(kH,"ErrorMinItems");function FH(t,e,n,r){return l_(r,St(n.minLength))}o(FH,"BuildMinLength");function IO(t,e,n,r){return OC(r,n.minLength)}o(IO,"CheckMinLength");function qH(t,e,n,r,a,c){return IO(t,e,a,c)||e.AddError({keyword:"minLength",schemaPath:n,instancePath:r,params:{limit:a.minLength}})}o(qH,"ErrorMinLength");function PH(t,e,n,r){return sh(Dt(aa(r),"length"),St(n.minProperties))}o(PH,"BuildMinProperties");function LO(t,e,n,r){return zl(gt(r).length,n.minProperties)}o(LO,"CheckMinProperties");function GH(t,e,n,r,a,c){return LO(t,e,a,c)||e.AddError({keyword:"minProperties",schemaPath:n,instancePath:r,params:{limit:a.minProperties}})}o(GH,"ErrorMinProperties");function YH(t,e,n,r){return f_(r,St(n.multipleOf))}o(YH,"BuildMultipleOf");function zO(t,e,n,r){return CC(r,n.multipleOf)}o(zO,"CheckMultipleOf");function VH(t,e,n,r,a,c){return zO(t,e,a,c)||e.AddError({keyword:"multipleOf",schemaPath:n,instancePath:r,params:{multipleOf:a.multipleOf}})}o(VH,"ErrorMultipleOf");function KH(t,e,n,r){return Ph(t,e,[n.not],r,An(or(Dt("results","length"),St(1))))}o(KH,"BuildNotUnevaluated");function XH(t,e,n,r){return An(Me(t,e,n.not,r))}o(XH,"BuildNotFast");function QH(t,e,n,r){return e.UseUnevaluated()?KH(t,e,n,r):XH(t,e,n,r)}o(QH,"BuildNot");function BO(t,e,n,r){const a=new ri;return!Se(t,a,n.not,r)&&e.Merge([a])}o(BO,"CheckNot");function ZH(t,e,n,r,a,c){return BO(t,e,a,c)||e.AddError({keyword:"not",schemaPath:n,instancePath:r,params:{}})}o(ZH,"ErrorNot");function JH(t,e,n,r){return Ph(t,e,n.oneOf,r,or(Dt("results","length"),St(1)))}o(JH,"BuildOneOfUnevaluated");function WH(t,e,n,r){const a=u_(n.oneOf.map(f=>Me(t,e,f,r))),c=ne(Dt(a,"reduce"),[sr(["count","result"],ah(or("result",St(!0)),Ib("count"),"count")),St(0)]);return or(c,St(1))}o(WH,"BuildOneOfFast");function tk(t,e,n,r){return e.UseUnevaluated()?JH(t,e,n,r):WH(t,e,n,r)}o(tk,"BuildOneOf");function ek(t,e,n,r){const a=n.oneOf.reduce((c,f)=>{const d=new ri;return Se(t,d,f,r)?[...c,d]:c},[]);return R(a.length,1)&&e.Merge(a)}o(ek,"CheckOneOf");function nk(t,e,n,r,a,c){const f=[],d=[],h=a.oneOf.reduce((y,v,E)=>{const x=new ii,C=`${n}/oneOf/${E}`,w=He(t,x,C,r,v,c);return w&&d.push(E),w||f.push(x),w?[...y,x]:y},[]),g=R(h.length,1)&&e.Merge(h);return!g&&R(d.length,0)&&f.forEach(y=>y.GetErrors().forEach(v=>e.AddError(v))),g||e.AddError({keyword:"oneOf",schemaPath:n,instancePath:r,params:{passingSchemas:d}})}o(nk,"ErrorOneOf");function rk(t,e,n,r){const a=ha(jt(n.pattern)?new RegExp(n.pattern):n.pattern);return ne(Dt(a,"test"),[r])}o(rk,"BuildPattern");function UO(t,e,n,r){return(jt(n.pattern)?new RegExp(n.pattern):n.pattern).test(r)}o(UO,"CheckPattern");function ik(t,e,n,r,a,c){return UO(t,e,a,c)||e.AddError({keyword:"pattern",schemaPath:n,instancePath:r,params:{pattern:a.pattern}})}o(ik,"ErrorPattern");function ok(t,e,n,r){return vn(Qe(n.patternProperties).map(([a,c])=>{const[f,d]=[gn(),gn()],h=ha(new RegExp(a)),g=An(ne(Dt(h,"test"),[f])),y=Me(t,e,c,d),v=e.AddKey(f),E=e.UseUnevaluated()?be(g,hr(y,v)):be(g,y);return sa(zC(r),St(0),[`[${f}, ${d}]`,"_"],E)}))}o(ok,"BuildPatternProperties");function sk(t,e,n,r){return hn(Qe(n.patternProperties),0,([a,c])=>{const f=new RegExp(a);return hn(Qe(r),0,([d,h])=>!f.test(d)||Se(t,e,c,h)&&e.AddKey(d))})}o(sk,"CheckPatternProperties");function ak(t,e,n,r,a,c){return pn(Qe(a.patternProperties),0,([f,d])=>{const h=`${n}/patternProperties/${f}`,g=new RegExp(f);return pn(Qe(c),0,([y,v])=>{const E=`${r}/${y}`;return!g.test(y)||He(t,e,h,E,d,v)&&e.AddKey(y)})})}o(ak,"ErrorPatternProperties");function lk(t,e,n,r){return vn(n.prefixItems.map((a,c)=>{const f=Bl(Dt(r,"length"),St(c)),d=Me(t,e,a,`${r}[${c}]`),h=e.AddIndex(St(c)),g=e.UseUnevaluated()?hr(d,h):d;return be(f,g)}))}o(lk,"BuildPrefixItems");function ck(t,e,n,r){return R(r.length,0)||hn(n.prefixItems,0,(a,c)=>mo(r.length,c)||Se(t,e,a,r[c])&&e.AddIndex(c))}o(ck,"CheckPrefixItems");function uk(t,e,n,r,a,c){return R(c.length,0)||pn(a.prefixItems,0,(f,d)=>{const h=`${n}/prefixItems/${d}`,g=`${r}/${d}`;return mo(c.length,d)||He(t,e,h,g,f,c[d])&&e.AddIndex(d)})}o(uk,"ErrorPrefixItems");function h1(t,e){return t.includes(e)||us().exactOptionalPropertyTypes}o(h1,"IsExactOptional");function fk(t,e){return A0(Dt(t,e))}o(fk,"InexactOptionalBuild");function HO(t,e){return pe(t[e])}o(HO,"InexactOptionalCheck");function dk(t,e,n,r){const a=gs(n)?n.required:[],c=Qe(n.properties).map(([f,d])=>{const h=An(Zs(r,St(f))),g=Me(t,e,d,Dt(r,f)),y=e.AddKey(St(f)),v=e.UseUnevaluated()?hr(g,y):g,E=a.includes(f)?v:be(h,v);return h1(a,f)?E:be(fk(r,f),E)});return vn(c)}o(dk,"BuildProperties");function mk(t,e,n,r){const a=gs(n)?n.required:[];return hn(Qe(n.properties),0,([f,d])=>{const h=!at(r,f)||Se(t,e,d,r[f])&&e.AddKey(f);return h1(a,f)?h:HO(r,f)||h})}o(mk,"CheckProperties");function hk(t,e,n,r,a,c){const f=gs(a)?a.required:[];return pn(Qe(a.properties),0,([h,g])=>{const y=`${n}/properties/${h}`,v=`${r}/${h}`,E=o(()=>!at(c,h)||He(t,e,y,v,g,c[h])&&e.AddKey(h),"isProperty");return h1(f,h)?E():HO(c,h)||E()})}o(hk,"ErrorProperties");function pk(t,e,n,r){const[a,c]=[gn(),gn()];return sa(aa(r),St(0),[a,c],Me(t,e,n.propertyNames,a))}o(pk,"BuildPropertyNames");function gk(t,e,n,r){return hn(gt(r),0,(a,c)=>Se(t,e,n.propertyNames,a))}o(gk,"CheckPropertyNames");function yk(t,e,n,r,a,c){const f=[];return pn(gt(c),0,(h,g)=>{const y=`${r}/${h}`,v=`${n}/propertyNames`,E=new ii,x=He(t,E,v,y,a.propertyNames,h);return x||f.push(h),x})||e.AddError({keyword:"propertyNames",schemaPath:n,instancePath:r,params:{propertyNames:f}})}o(yk,"ErrorPropertyNames");function bk(t,e,n,r){const a=t.RecursiveRef(n.$recursiveRef)??!1;return Gh(t,e,a,r)}o(bk,"BuildRecursiveRef");function vk(t,e,n,r){const a=t.RecursiveRef(n.$recursiveRef)??!1;return Re(a)&&Se(t,e,a,r)}o(vk,"CheckRecursiveRef");function Sk(t,e,n,r,a,c){const f=t.RecursiveRef(a.$recursiveRef)??!1;return Re(f)&&He(t,e,"#",r,f,c)}o(Sk,"ErrorRecursiveRef");function xk(t,e,n,r){const a=sr(["context","value"],Gh(t,e,n,"value")),c=sr(["context","value"],lh([io("nextContext",Db("CheckContext",[])),io("result",ne(a,["nextContext","value"])),UC("result",e.Merge("[nextContext]")),ch("result")]));return ne(c,["context",r])}o(xk,"BuildRefStandard");function Ek(t,e,n,r){return Gh(t,e,n,r)}o(Ek,"BuildRefFast");function wk(t,e,n,r){const a=t.Ref(n.$ref)??!1;return e.UseUnevaluated()?xk(t,e,a,r):Ek(t,e,a,r)}o(wk,"BuildRef");function Tk(t,e,n,r){const a=t.Ref(n.$ref)??!1,c=new ri,f=Re(a)&&Se(t,c,a,r);return f&&e.Merge([c]),f}o(Tk,"CheckRef");function Ak(t,e,n,r,a,c){const f=t.Ref(a.$ref)??!1,d=new ii,h=Re(f)&&He(t,d,"#",r,f,c);return h&&e.Merge([d]),h||d.GetErrors().forEach(g=>e.AddError(g)),h}o(Ak,"ErrorRef");function Ck(t,e,n,r){return vn(n.required.map(a=>Zs(r,St(a))))}o(Ck,"BuildRequired");function $k(t,e,n,r){return hn(n.required,0,a=>at(r,a))}o($k,"CheckRequired");function Mk(t,e,n,r,a,c){const f=[];return pn(a.required,0,h=>{const g=at(c,h);return g||f.push(h),g})||e.AddError({keyword:"required",schemaPath:n,instancePath:r,params:{requiredProperties:f}})}o(Mk,"ErrorRequired");function kO(t,e,n,r){return R(n,"object")?_C(r):R(n,"array")?gm(r):R(n,"boolean")?e_(r):R(n,"integer")?n_(r):R(n,"number")?NC(r):R(n,"null")?i_(r):R(n,"string")?jC(r):R(n,"asyncIterator")?t_(r):R(n,"bigint")?RC(r):R(n,"constructor")?a_(r):R(n,"function")?s_(r):R(n,"iterator")?r_(r):R(n,"symbol")?o_(r):R(n,"undefined")||R(n,"void")?A0(r):St(!0)}o(kO,"BuildTypeName");function p1(t,e,n,r,a){return R(n,"object")?fo(a):R(n,"array")?wt(a):R(n,"boolean")?Fe(a):R(n,"integer")?ih(a):R(n,"number")?Vt(a):R(n,"null")?qn(a):R(n,"string")?jt(a):R(n,"asyncIterator")?TC(a):R(n,"bigint")?Oe(a):R(n,"constructor")?Ob(a):R(n,"function")?so(a):R(n,"iterator")?AC(a):R(n,"symbol")?Rb(a):R(n,"undefined")||R(n,"void")?pe(a):!0}o(p1,"CheckTypeName");function Ok(t,e,n,r){return jb(n.map(a=>kO(t,e,a,r)))}o(Ok,"BuildTypeNames");function FO(t,e,n,r,a){return n.some(c=>p1(t,e,c,r,a))}o(FO,"CheckTypeNames");function Rk(t,e,n,r){return wt(n.type)?Ok(t,e,n.type,r):kO(t,e,n.type,r)}o(Rk,"BuildType");function Nk(t,e,n,r){return wt(n.type)?FO(t,e,n.type,n,r):p1(t,e,n.type,n,r)}o(Nk,"CheckType");function _k(t,e,n,r,a,c){return(wt(a.type)?FO(t,e,a.type,a,c):p1(t,e,a.type,a,c))||e.AddError({keyword:"type",schemaPath:n,instancePath:r,params:{type:a.type}})}o(_k,"ErrorType");function Dk(t,e,n,r){const[a,c]=[gn(),gn()],f=ne(Dt("context","GetIndices"),[]),d=ne(Dt("indices","has"),[a]),h=Me(t,e,n.unevaluatedItems,c),g=ne(Dt("context","AddIndex"),[a]),y=sa(r,St(0),[c,a],hr(be(d,h),g));return ne(sr(["context"],lh([io("indices",f),ch(y)])),["context"])}o(Dk,"BuildUnevaluatedItems");function jk(t,e,n,r){const a=e.GetIndices();return hn(r,0,(c,f)=>(a.has(f)||Se(t,e,n.unevaluatedItems,c))&&e.AddIndex(f))}o(jk,"CheckUnevaluatedItems");function Ik(t,e,n,r,a,c){const f=e.GetIndices(),d=[];return pn(c,0,(g,y)=>{const v=new ii,E=(f.has(y)||He(t,v,n,r,a.unevaluatedItems,g))&&e.AddIndex(y);return E||d.push(y),E})||e.AddError({keyword:"unevaluatedItems",schemaPath:n,instancePath:r,params:{unevaluatedItems:d}})}o(Ik,"ErrorUnevaluatedItems");function Lk(t,e,n,r){const[a,c]=[gn(),gn()],f=ne(Dt("context","GetKeys"),[]),d=ne(Dt("keys","has"),[a]),h=ne(Dt("context","AddKey"),[a]),g=Me(t,e,n.unevaluatedProperties,c),y=sa(zC(r),St(0),[`[${a}, ${c}]`,"_"],be(d,hr(g,h)));return ne(sr(["context"],lh([io("keys",f),ch(y)])),["context"])}o(Lk,"BuildUnevaluatedProperties");function zk(t,e,n,r){const a=e.GetKeys();return hn(Qe(r),0,([c,f])=>a.has(c)||Se(t,e,n.unevaluatedProperties,f)&&e.AddKey(c))}o(zk,"CheckUnevaluatedProperties");function Bk(t,e,n,r,a,c){const f=e.GetKeys(),d=[];return pn(Qe(c),0,([g,y])=>{const v=new ii,E=f.has(g)||He(t,v,n,r,a.unevaluatedProperties,y)&&e.AddKey(g);return E||d.push(g),E})||e.AddError({keyword:"unevaluatedProperties",schemaPath:n,instancePath:r,params:{unevaluatedProperties:d}})}o(Bk,"ErrorUnevaluatedProperties");function g1(t){return!R(t.uniqueItems,!1)}o(g1,"IsValid");function Uk(t,e,n,r){if(!g1(n))return St(!0);const a=Dt(Db("Set",[ne(Dt(r,"map"),[Dt("Hashing","Hash")])]),"size"),c=Dt(r,"length");return or(a,c)}o(Uk,"BuildUniqueItems");function Hk(t,e,n,r){if(!g1(n))return!0;const a=new Set(r.map($u)).size,c=r.length;return R(a,c)}o(Hk,"CheckUniqueItems");function kk(t,e,n,r,a,c){if(!g1(a))return!0;const f=new Set,d=c.reduce((g,y,v)=>{const E=$u(y);return f.has(E)?[...g,v]:(f.add(E),g)},[]);return R(d.length,0)||e.AddError({keyword:"uniqueItems",schemaPath:n,instancePath:r,params:{duplicateItems:d}})}o(kk,"ErrorUniqueItems");function Ou(t,e){return qh(t)&&(wt(t.type)&&t.type.includes(e)||R(t.type,e))}o(Ou,"HasTypeName");function Fk(t){return Ou(t,"object")}o(Fk,"HasObjectType");function qk(t){return Ri(t)&&(Gl(t)||_h(t)||Dh(t)||jh(t)||Zl(t)||Ql(t)||Fh(t)||ff(t)||Hh(t)||gs(t)||pf(t))}o(qk,"HasObjectKeywords");function Pk(t){return Ou(t,"array")}o(Pk,"HasArrayType");function Gk(t){return Ri(t)&&(Nh(t)||Kl(t)||Yl(t)||zh(t)||Bh(t)||Xl(t)||cf(t)||ma(t)||hf(t)||mf(t))}o(Gk,"HasArrayKeywords");function Yk(t){return Ou(t,"string")}o(Yk,"HasStringType");function Vk(t){return Ri(t)&&(uf(t)||Uh(t)||lf(t)||df(t))}o(Vk,"HasStringKeywords");function Kk(t){return Ou(t,"number")||Ou(t,"bigint")}o(Kk,"HasNumberType");function Xk(t){return Ri(t)&&(da(t)||Lh(t)||Ih(t)||fa(t)||kh(t))}o(Xk,"HasNumberKeywords");function Me(t,e,n,r){t.Push(n);const a=[];if(Rh(n))return G7(t,e,n);if(qh(n)&&a.push(Rk(t,e,n,r)),qk(n)){const f=[];gs(n)&&f.push(Ck(t,e,n,r)),Gl(n)&&f.push(_7(t,e,n,r)),_h(n)&&f.push(Z7(t,e,n,r)),Dh(n)&&f.push(tH(t,e,n,r)),jh(n)&&f.push(rH(t,e,n,r)),Ql(n)&&f.push(ok(t,e,n,r)),Zl(n)&&f.push(dk(t,e,n,r)),Fh(n)&&f.push(pk(t,e,n,r)),ff(n)&&f.push(PH(t,e,n,r)),Hh(n)&&f.push(jH(t,e,n,r));const d=vn(f),h=be(An(_C(r)),d);a.push(Fk(n)?d:h)}if(Gk(n)){const f=[];Nh(n)&&f.push(A7(t,e,n,r)),Yl(n)&&f.push(X7(t,e,n,r)),Kl(n)&&f.push(wH(t,e,n,r)),zh(n)&&f.push(CH(t,e,n,r)),Bh(n)&&f.push(RH(t,e,n,r)),Xl(n)&&f.push(LH(t,e,n,r)),cf(n)&&f.push(HH(t,e,n,r)),ma(n)&&f.push(lk(t,e,n,r)),mf(n)&&f.push(Uk(t,e,n,r));const d=vn(f),h=be(An(gm(r)),d);a.push(Pk(n)?d:h)}if(Vk(n)){const f=[];lf(n)&&f.push(dH(t,e,n,r)),Uh(n)&&f.push(_H(t,e,n,r)),uf(n)&&f.push(FH(t,e,n,r)),df(n)&&f.push(rk(t,e,n,r));const d=vn(f),h=be(An(jC(r)),d);a.push(Yk(n)?d:h)}if(Xk(n)){const f=[];Ih(n)&&f.push(lH(t,e,n,r)),fa(n)&&f.push(uH(t,e,n,r)),Lh(n)&&f.push(MH(t,e,n,r)),da(n)&&f.push(BH(t,e,n,r)),kh(n)&&f.push(YH(t,e,n,r));const d=vn(f),h=be(An(be(NC(r),RC(r))),d);a.push(Kk(n)?d:h)}c1(n)&&a.push(bk(t,e,n,r)),u1(n)&&a.push(wk(t,e,n,r)),Jv(n)&&a.push(b7(t,e,n,r)),n1(n)&&a.push(V7(t,e,n,r)),i1(n)&&a.push(sH(t,e,n,r)),o1(n)&&a.push(hH(t,e,n,r)),a1(n)&&a.push(QH(t,e,n,r)),t1(n)&&a.push(z7(t,e,n,r)),e1(n)&&a.push(F7(t,e,n,r)),l1(n)&&a.push(tk(t,e,n,r)),hf(n)&&a.push(be(An(gm(r)),Dk(t,e,n,r))),pf(n)&&a.push(be(An(DC(r)),Lk(t,e,n,r))),Wv(n)&&a.push(x7(t,e,n,r));const c=vn(a);return t.Pop(n),c}o(Me,"BuildSchema");function Se(t,e,n,r){t.Push(n);const a=Rh(n)?yO(t,e,n):(!qh(n)||Nk(t,e,n,r))&&(!(Mt(r)&&!wt(r))||(!gs(n)||$k(t,e,n,r))&&(!Gl(n)||D7(t,e,n,r))&&(!_h(n)||J7(t,e,n,r))&&(!Dh(n)||eH(t,e,n,r))&&(!jh(n)||iH(t,e,n,r))&&(!Ql(n)||sk(t,e,n,r))&&(!Zl(n)||mk(t,e,n,r))&&(!Fh(n)||gk(t,e,n,r))&&(!ff(n)||LO(t,e,n,r))&&(!Hh(n)||RO(t,e,n,r)))&&(!wt(r)||(!Nh(n)||C7(t,e,n,r))&&(!Yl(n)||SO(t,e,n,r))&&(!Kl(n)||TH(t,e,n,r))&&(!zh(n)||CO(t,e,n,r))&&(!Bh(n)||MO(t,e,n,r))&&(!Xl(n)||_O(t,e,n,r))&&(!cf(n)||jO(t,e,n,r))&&(!ma(n)||ck(t,e,n,r))&&(!mf(n)||Hk(t,e,n,r)))&&(!jt(r)||(!lf(n)||TO(t,e,n,r))&&(!Uh(n)||OO(t,e,n,r))&&(!uf(n)||IO(t,e,n,r))&&(!df(n)||UO(t,e,n,r)))&&(!(Vt(r)||Oe(r))||(!Ih(n)||EO(t,e,n,r))&&(!fa(n)||wO(t,e,n,r))&&(!Lh(n)||$O(t,e,n,r))&&(!da(n)||DO(t,e,n,r))&&(!kh(n)||zO(t,e,n,r)))&&(!c1(n)||vk(t,e,n,r))&&(!u1(n)||Tk(t,e,n,r))&&(!Jv(n)||v7(t,e,n,r))&&(!n1(n)||bO(t,e,n,r))&&(!i1(n)||xO(t,e,n,r))&&(!o1(n)||pH(t,e,n,r))&&(!a1(n)||BO(t,e,n,r))&&(!t1(n)||B7(t,e,n,r))&&(!e1(n)||q7(t,e,n,r))&&(!l1(n)||ek(t,e,n,r))&&(!hf(n)||!wt(r)||jk(t,e,n,r))&&(!pf(n)||!Mt(r)||zk(t,e,n,r))&&(!Wv(n)||E7(t,e,n,r));return t.Pop(n),a}o(Se,"CheckSchema");function He(t,e,n,r,a,c){t.Push(a);const f=Rh(a)?Y7(t,e,n,r,a):!!(+(!qh(a)||_k(t,e,n,r,a,c))&+(!(Mt(c)&&!wt(c))||!!(+(!gs(a)||Mk(t,e,n,r,a,c))&+(!Gl(a)||j7(t,e,n,r,a,c))&+(!_h(a)||W7(t,e,n,r,a,c))&+(!Dh(a)||nH(t,e,n,r,a,c))&+(!jh(a)||oH(t,e,n,r,a,c))&+(!Ql(a)||ak(t,e,n,r,a,c))&+(!Zl(a)||hk(t,e,n,r,a,c))&+(!Fh(a)||yk(t,e,n,r,a,c))&+(!ff(a)||GH(t,e,n,r,a,c))&+(!Hh(a)||IH(t,e,n,r,a,c))))&+(!wt(c)||!!(+(!Nh(a)||$7(t,e,n,r,a,c))&+(!Yl(a)||Q7(t,e,n,r,a,c))&+(!Kl(a)||AH(t,e,n,r,a,c))&+(!zh(a)||$H(t,e,n,r,a,c))&+(!Bh(a)||NH(t,e,n,r,a,c))&+(!Xl(a)||zH(t,e,n,r,a,c))&+(!cf(a)||kH(t,e,n,r,a,c))&+(!ma(a)||uk(t,e,n,r,a,c))&+(!mf(a)||kk(t,e,n,r,a,c))))&+(!jt(c)||!!(+(!lf(a)||mH(t,e,n,r,a,c))&+(!Uh(a)||DH(t,e,n,r,a,c))&+(!uf(a)||qH(t,e,n,r,a,c))&+(!df(a)||ik(t,e,n,r,a,c))))&+(!(Vt(c)||Oe(c))||!!(+(!Ih(a)||cH(t,e,n,r,a,c))&+(!fa(a)||fH(t,e,n,r,a,c))&+(!Lh(a)||OH(t,e,n,r,a,c))&+(!da(a)||UH(t,e,n,r,a,c))&+(!kh(a)||VH(t,e,n,r,a,c))))&+(!c1(a)||Sk(t,e,n,r,a,c))&+(!u1(a)||Ak(t,e,n,r,a,c))&+(!Jv(a)||S7(t,e,n,r,a,c))&+(!n1(a)||K7(t,e,n,r,a,c))&+(!i1(a)||aH(t,e,n,r,a,c))&+(!o1(a)||gH(t,e,n,r,a,c))&+(!a1(a)||ZH(t,e,n,r,a,c))&+(!t1(a)||U7(t,e,n,r,a,c))&+(!e1(a)||P7(t,e,n,r,a,c))&+(!l1(a)||nk(t,e,n,r,a,c))&+(!hf(a)||!wt(c)||Ik(t,e,n,r,a,c))&+(!pf(a)||!Mt(c)||Bk(t,e,n,r,a,c)))&&(!Wv(a)||w7(t,e,n,r,a,c));return t.Pop(a),f}o(He,"ErrorSchema");const bu=new Map;function Qk(t,e,n,r){return t.UseUnevaluated()?ne(`check_${n}`,["context",r]):ne(`check_${n}`,[r])}o(Qk,"CreateCallExpression");function Zk(t,e,n,r){const a=Me(t,e,n,"value");return e.UseUnevaluated()?io(`check_${r}`,sr(["context","value"],a)):io(`check_${r}`,sr(["value"],a))}o(Zk,"CreateFunctionExpression");function Jk(){bu.clear()}o(Jk,"ResetFunctions");function Wk(){return[...bu.values()]}o(Wk,"GetFunctions");function Gh(t,e,n,r){const a=Ri(n)?$u({__baseURL:t.BaseURL().href,...n}):$u(n),c=Qk(e,n,a,r);return bu.has(a)||(bu.set(a,""),bu.set(a,Zk(t,e,n,a))),c}o(Gh,"CreateFunction");function tF(t,e){return Mt(e)?e[t]:void 0}o(tF,"GetIndex");function eF(t,e){return t.reduce((n,r)=>tF(r,n),e)}o(eF,"GetIndices");function nF(t){if(R(t.length,0))return[];const e=t.split("/").map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"));return e.length>0&&e[0]===""?e.slice(1):e}o(nF,"Indices");function rF(t,e){const n=nF(e);return eF(n,t)}o(rF,"Get");function iF(t,e,n){if(t.$id===n.hash)return t;const r=new URL(t.$id,e.href),a=new URL(n.href,e.href);if(R(r.pathname,a.pathname))return n.hash.startsWith("#")?qO(t,e,n):t}o(iF,"MatchId");function oF(t,e,n){const r=new URL(`#${t.$anchor}`,e.href),a=new URL(n.href,e.href);if(R(r.href,a.href))return t}o(oF,"MatchAnchor");function qO(t,e,n){return n.href.endsWith("#")?t:n.hash.startsWith("#")?rF(t,decodeURIComponent(n.hash.slice(1))):void 0}o(qO,"MatchHash");function sF(t,e,n){if(Mu(t)){const r=iF(t,e,n);if(!pe(r))return r}if(U0(t)){const r=oF(t,e,n);if(!pe(r))return r}return qO(t,e,n)}o(sF,"Match");function aF(t,e,n){return t.reduce((r,a)=>{const c=y1(a,e,n);return pe(c)?r:c},void 0)}o(aF,"FromArray$7");function lF(t,e,n){return gt(t).reduce((r,a)=>{const c=y1(t[a],e,n);return pe(c)?r:c},void 0)}o(lF,"FromObject$7");function y1(t,e,n){if(e=Ri(t)&&Mu(t)?new URL(t.$id,e.href):e,Ri(t)){const r=sF(t,e,n);if(!pe(r))return r}if(wt(t))return aF(t,e,n);if(Mt(t))return lF(t,e,n)}o(y1,"FromValue$1");function kd(t,e){const n=new URL("http://unknown"),r=Mu(t)?new URL(t.$id,n.href):n,a=new URL(e,r.href);return y1(t,r,a)}o(kd,"Ref");const DS=class DS{constructor(e,n){this.context=e,this.schema=n,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,n)=>new URL(n.$id,e),new URL("http://unknown"))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Ri(e)&&(Mu(e)&&this.ids.push(e),U0(e)&&this.anchors.push(e),Qy(e)&&this.recursiveAnchors.push(e),sA(e)&&this.dynamicAnchors.push(e))}Pop(e){Ri(e)&&(Mu(e)&&this.ids.pop(),U0(e)&&this.anchors.pop(),Qy(e)&&this.recursiveAnchors.pop(),sA(e)&&this.dynamicAnchors.pop())}FromContext(e){return at(this.context,e)?this.context[e]:void 0}FromRef(e){return e.startsWith("#")?kd(this.Base(),e):kd(this.schema,e)}Ref(e){return this.FromContext(e)??this.FromRef(e)}RecursiveRef(e){return Qy(this.Base())?kd(this.recursiveAnchors[0],e):kd(this.Base(),e)}};o(DS,"Stack");let Al=DS;function cF(t){const e=t.Functions().join(`;
|
|
9
|
-
`),n=t.UseUnevaluated()?["const context = new CheckContext({}, {})",`return ${t.Call()}`]:[`return ${t.Call()}`];return`${e}; return (value) => { ${n.join("; ")} }`}o(cF,"CreateCode");function uF(t,e){return new globalThis.Function("CheckContext","Guard","Format","Hashing",t.External().identifier,e)(ri,Z5,B0,f6,t.External().variables)}o(uF,"CreateEvaluatedCheck");function fF(t){const e=new Al(t.Context(),t.Schema()),n=new ri;return r=>Se(e,n,t.Schema(),r)}o(fF,"CreateDynamicCheck");function dF(t,e){return Hb()?uF(t,e):fF(t)}o(dF,"CreateCheck");const jS=class jS{constructor(e,n,r,a,c,f){this.context=e,this.schema=n,this.external=r,this.functions=a,this.call=c,this.useUnevaluated=f}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Call(){return this.call}Evaluate(){const e=cF(this),n=dF(this,e);return{IsEvaluated:Hb(),Code:e,Check:n}}};o(jS,"BuildResult");let F0=jS;function mF(...t){const[e,n]=nn(t,{2:(h,g)=>[h,g],1:h=>[{},h]});g7(),Jk();const r=new Al(e,n),a=new H0(p7(e,n)),c=Gh(r,a,n,"value"),f=Wk(),d=y7();return new F0(e,n,d,f,c,a.UseUnevaluated())}o(mF,"Build");function hF(...t){const[e,n,r]=nn(t,{3:(y,v,E)=>[y,v,E],2:(y,v)=>[{},y,v]}),a=us(),c=h6(),f=[],d=new Al(e,n),h=new $m(y=>{if(!zl(f.length,a.maxErrors))return f.push({...y,message:c(y)})});return[He(d,h,"#","",n,r),f]}o(hF,"Errors$1");function pF(...t){const[e,n,r]=nn(t,{3:(f,d,h)=>[f,d,h],2:(f,d)=>[{},f,d]}),a=new Al(e,n),c=new ri;return Se(a,c,n,r)}o(pF,"Check$1");function Ur(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return pF(e,n,r)}o(Ur,"Check");function gf(...t){const[e,n,r]=nn(t,{3:(f,d,h)=>[f,d,h],2:(f,d)=>[{},f,d]}),[a,c]=hF(e,n,r);return c}o(gf,"Errors");const IS=class IS extends Error{constructor(e,n,r){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:r,value:n},writable:!1,configurable:!1,enumerable:!1})}};o(IS,"AssertError");let Ru=IS;function gF(t,e,n){return wt(n)?n.map(r=>oi(t,e.items,r)):n}o(gF,"FromArray$6");function yF(t,e,n){return e.Clean(n)}o(yF,"FromBase$3");function bF(t,e,n){return oi({...t,...e.$defs},ar(e.$ref),n)}o(bF,"FromCyclic$5");function vF(t,e){const n=at(e,"unevaluatedProperties")?{additionalProperties:e.unevaluatedProperties}:{},r=Wt(t,e),a=af(r);return Ce(a)?Bv(a,n):a}o(vF,"EvaluateIntersection");function SF(t,e,n){const r=vF(t,e);return oi(t,r,n)}o(SF,"FromIntersect$5");function PO(t){return at(t,"additionalProperties")?t.additionalProperties:void 0}o(PO,"GetAdditionalProperties");function xF(t,e,n){if(!Mt(n)||wt(n))return n;const r=PO(e);for(const a of gt(n)){if(at(e.properties,a)){n[a]=oi(t,e.properties[a],n[a]);continue}if(Fe(r)&&R(r,!0)||Ut(r)&&Ur(t,r,n[a])){n[a]=oi(t,r,n[a]);continue}delete n[a]}return n}o(xF,"FromObject$6");function EF(t,e,n){if(!Mt(n))return n;const r=PO(e),[a,c]=[new RegExp(ms(e)),Li(e)];for(const f of gt(n)){if(a.test(f)){n[f]=oi(t,c,n[f]);continue}if(Fe(r)&&R(r,!0)||Ut(r)&&Ur(t,r,n[f])){n[f]=oi(t,r,n[f]);continue}delete n[f]}return n}o(EF,"FromRecord$5");function wF(t,e,n){return at(t,e.$ref)?oi(t,t[e.$ref],n):n}o(wF,"FromRef$5");function TF(t,e,n){if(!wt(n))return n;const r=Math.min(n.length,e.items.length);for(let a=0;a<r;a++)n[a]=oi(t,e.items[a],n[a]);return Ll(n.length,r)?n.slice(0,r):n}o(TF,"FromTuple$5");function AF(t){const e={};for(const n of Object.getOwnPropertyNames(t))e[n]=kn(t[n]);for(const n of Object.getOwnPropertySymbols(t))e[n]=kn(t[n]);return e}o(AF,"FromObjectInstance");function CF(t){return $C(t)?t:AF(t)}o(CF,"FromObject$5");function $F(t){return t.map(e=>kn(e))}o($F,"FromArray$5");function MF(t){return t.slice()}o(MF,"FromTypedArray");function OF(t){return new Map(kn([...t.entries()]))}o(OF,"FromMap");function RF(t){return new Set(kn([...t.values()]))}o(RF,"FromSet");function kn(t){return HC(t)?MF(t):b_(t)?OF(t):y_(t)?RF(t):wt(t)?$F(t):Mt(t)?CF(t):t}o(kn,"Clone");function NF(t,e,n){for(const r of e.anyOf){const a=oi(t,r,kn(n));if(Ur(t,r,a))return a}return n}o(NF,"FromUnion$5");function oi(t,e,n){return en(e)?gF(t,e,n):Ul(e)?yF(t,e,n):$n(e)?bF(t,e,n):xe(e)?SF(t,e,n):Ce(e)?xF(t,e,n):gr(e)?EF(t,e,n):Cn(e)?wF(t,e,n):qe(e)?TF(t,e,n):Ht(e)?NF(t,e,n):n}o(oi,"FromType$5");function Yh(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return oi(e,n,r)}o(Yh,"Clean");function _F(t,e,n){return wt(n)?n.map(r=>fi(t,e.items,r)):n}o(_F,"FromArray$4");function DF(t,e,n){return e.Convert(n)}o(DF,"FromBase$2");function br(t){return Mt(t)&&at(t,"value")}o(br,"IsOk");function $t(t){return{value:t}}o($t,"Ok");function jF(t){return $t(t)}o(jF,"FromBigInt$7");function IF(t){return R(t,!0)?$t(BigInt(1)):$t(BigInt(0))}o(IF,"FromBoolean$7");function LF(t){return $t(BigInt(Math.trunc(t)))}o(LF,"FromNumber$7");function zF(t){return $t(BigInt(0))}o(zF,"FromNull$7");const BF=/^-?(0|[1-9]\d*)n$/,UF=/^-?(0|[1-9]\d*)\.\d+$/,HF=/^-?(0|[1-9]\d*)$/;function kF(t){return BF.test(t)}o(kF,"IsStringBigIntLike");function FF(t){return UF.test(t)}o(FF,"IsStringDecimalLike");function qF(t){return HF.test(t)}o(qF,"IsStringIntegerLike");function PF(t){const e=t.toLowerCase();return kF(t)?$t(BigInt(t.slice(0,t.length-1))):FF(t)?$t(BigInt(t.split(".")[0])):qF(t)?$t(BigInt(t)):R(e,"false")?$t(BigInt(0)):R(e,"true")?$t(BigInt(1)):void 0}o(PF,"FromString$7");function GF(t){return $t(BigInt(0))}o(GF,"FromUndefined$7");function b1(t){return Oe(t)?jF(t):Fe(t)?IF(t):Vt(t)?LF(t):qn(t)?zF():jt(t)?PF(t):pe(t)?GF():void 0}o(b1,"TryBigInt");function YF(t){return R(t,BigInt(0))?$t(!1):R(t,BigInt(1))?$t(!0):void 0}o(YF,"FromBigInt$6");function VF(t){return $t(t)}o(VF,"FromBoolean$6");function KF(t){return R(t,0)?$t(!1):R(t,1)?$t(!0):void 0}o(KF,"FromNumber$6");function XF(t){return $t(!1)}o(XF,"FromNull$6");function QF(t){return R(t.toLowerCase(),"false")?$t(!1):R(t.toLowerCase(),"true")?$t(!0):R(t,"0")?$t(!1):R(t,"1")?$t(!0):void 0}o(QF,"FromString$6");function ZF(t){return $t(!1)}o(ZF,"FromUndefined$6");function GO(t){return Oe(t)?YF(t):Fe(t)?VF(t):Vt(t)?KF(t):qn(t)?XF():jt(t)?QF(t):pe(t)?ZF():void 0}o(GO,"TryBoolean");function JF(t){return R(t,BigInt(0))?$t(null):void 0}o(JF,"FromBigInt$5");function WF(t){return R(t,!1)?$t(null):void 0}o(WF,"FromBoolean$5");function tq(t){return R(t,0)?$t(null):void 0}o(tq,"FromNumber$5");function eq(t){return $t(null)}o(eq,"FromNull$5");function nq(t){const e=t.toLowerCase();return R(e,"undefined")||R(e,"null")||R(t,"")||R(t,"0")?$t(null):void 0}o(nq,"FromString$5");function rq(t){return $t(null)}o(rq,"FromUndefined$5");function iq(t){return Oe(t)?JF(t):Fe(t)?WF(t):Vt(t)?tq(t):qn(t)?eq():jt(t)?nq(t):pe(t)?rq():void 0}o(iq,"TryNull");const oq=BigInt(Number.MAX_SAFE_INTEGER),sq=BigInt(Number.MIN_SAFE_INTEGER);function aq(t){return t<=oq&&t>=sq}o(aq,"CanBigIntDowncast");function YO(t){return aq(t)?$t(Number(t)):void 0}o(YO,"FromBigInt$4");function lq(t){return $t(t?1:0)}o(lq,"FromBoolean$4");function cq(t){return $t(t)}o(cq,"FromNumber$4");function uq(t){return $t(0)}o(uq,"FromNull$4");function fq(t){const e=+t;if(Vt(e))return $t(e);const n=t.toLowerCase();if(R(n,"false"))return $t(0);if(R(n,"true"))return $t(1);const r=b1(t);return br(r)?YO(r.value):void 0}o(fq,"FromString$4");function dq(t){return $t(0)}o(dq,"FromUndefined$4");function v1(t){return Oe(t)?YO(t):Fe(t)?lq(t):Vt(t)?cq(t):qn(t)?uq():jt(t)?fq(t):pe(t)?dq():void 0}o(v1,"TryNumber");function mq(t){return $t(t.toString())}o(mq,"FromBigInt$3");function hq(t){return $t(t.toString())}o(hq,"FromBoolean$3");function pq(t){return $t(t.toString())}o(pq,"FromNumber$3");function gq(t){return $t("null")}o(gq,"FromNull$3");function yq(t){return $t(t)}o(yq,"FromString$3");function bq(t){return $t("")}o(bq,"FromUndefined$3");function VO(t){return Oe(t)?mq(t):Fe(t)?hq(t):Vt(t)?pq(t):qn(t)?gq():jt(t)?yq(t):pe(t)?bq():void 0}o(VO,"TryString");function vq(t){return R(t,BigInt(0))?$t(void 0):void 0}o(vq,"FromBigInt$2");function Sq(t){return R(t,!1)?$t(void 0):void 0}o(Sq,"FromBoolean$2");function xq(t){return R(t,0)?$t(void 0):void 0}o(xq,"FromNumber$2");function Eq(t){return $t(void 0)}o(Eq,"FromNull$2");function wq(t){const e=t.toLowerCase();return R(e,"undefined")||R(e,"null")||R(t,"")||R(t,"0")?$t(void 0):void 0}o(wq,"FromString$2");function Tq(t){return $t(void 0)}o(Tq,"FromUndefined$2");function KO(t){return Oe(t)?vq(t):Fe(t)?Sq(t):Vt(t)?xq(t):qn(t)?Eq():jt(t)?wq(t):pe(t)?Tq():void 0}o(KO,"TryUndefined");function Aq(t,e,n){if(Oe(n))return n;const r=b1(n);return br(r)?r.value:n}o(Aq,"FromBigInt$1");function Cq(t,e,n){if(Fe(n))return n;const r=GO(n);return br(r)?r.value:n}o(Cq,"FromBoolean$1");function $q(t,e,n){return fi({...t,...e.$defs},ar(e.$ref),n)}o($q,"FromCyclic$4");function XO(t,e,n){if(e.anyOf.some(f=>Ur(t,f,n)))return n;const c=e.anyOf.map(f=>fi(t,f,kn(n))).find(f=>Ur(t,e,f));return pe(c)?n:c}o(XO,"FromUnion$4");function Mq(t,e,n){const r=dv(e);return XO(t,r,n)}o(Mq,"FromEnum$1");function Oq(t,e,n){if(ih(n))return n;const r=v1(n);return br(r)?Math.trunc(r.value):n}o(Oq,"FromInteger$1");function Rq(t,e,n){const r=Wt(t,e),a=af(r);return fi(t,a,n)}o(Rq,"FromIntersect$4");function Nq(t,e,n){const r=b1(n);return br(r)&&R(e.const,r.value)?r.value:n}o(Nq,"FromLiteralBigInt");function _q(t,e,n){const r=GO(n);return br(r)&&R(e.const,r.value)?r.value:n}o(_q,"FromLiteralBoolean");function Dq(t,e,n){const r=v1(n);return br(r)&&R(e.const,r.value)?r.value:n}o(Dq,"FromLiteralNumber");function jq(t,e,n){const r=VO(n);return br(r)&&R(e.const,r.value)?r.value:n}o(jq,"FromLiteralString");function Iq(t,e,n){return R(e.const,n)?n:w6(e)?Nq(t,e,n):T6(e)?_q(t,e,n):Pb(e)?Dq(t,e,n):Gb(e)?jq(t,e,n):ke()}o(Iq,"FromLiteral$1");function Lq(t,e,n){if(qn(n))return n;const r=iq(n);return br(r)?r.value:n}o(Lq,"FromNull$1");function zq(t,e,n){if(Vt(n))return n;const r=v1(n);return br(r)?r.value:n}o(zq,"FromNumber$1");function QO(t,e,n,r){const a=gt(r);for(const[c,f]of e)for(const d of a)c.test(d)||(r[d]=fi(t,n,r[d]));return r}o(QO,"FromAdditionalProperties");function S1(t,e,n){return Hn(t)&&pe(n[e])}o(S1,"IsOptionalUndefined");function Bq(t,e,n){const r=Nb(e.properties),a=gt(n);for(const[c,f]of r)for(const d of a)!c.test(d)||S1(f,d,n)||(n[d]=fi(t,f,n[d]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?QO(t,r,e.additionalProperties,n):n}o(Bq,"FromProperties");function Uq(t,e,n){return fo(n)?Bq(t,e,n):n}o(Uq,"FromObject$4");function Hq(t,e,n){const r=Nb(e.patternProperties),a=gt(n);for(const[c,f]of r)for(const d of a)c.test(d)&&(n[d]=fi(t,f,n[d]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?QO(t,r,e.additionalProperties,n):n}o(Hq,"FromPatternProperties");function kq(t,e,n){return fo(n)?Hq(t,e,n):n}o(kq,"FromRecord$4");function Fq(t,e,n){return at(t,e.$ref)?fi(t,t[e.$ref],n):n}o(Fq,"FromRef$4");function qq(t,e,n){if(jt(n))return n;const r=VO(n);return br(r)?r.value:n}o(qq,"FromString$1");function Pq(t,e,n){const r=yo(e.pattern);return fi(t,r,n)}o(Pq,"FromTemplateLiteral$1");function Gq(t,e,n){if(!wt(n))return n;for(let r=0;r<Math.min(e.items.length,n.length);r++)n[r]=fi(t,e.items[r],n[r]);return n}o(Gq,"FromTuple$4");function Yq(t,e,n){if(pe(n))return n;const r=KO(n);return br(r)?r.value:n}o(Yq,"FromUndefined$1");function Vq(t,e,n){if(pe(n))return n;const r=KO(n);return br(r)?void 0:n}o(Vq,"FromVoid$1");function fi(t,e,n){return en(e)?_F(t,e,n):Ul(e)?DF(t,e,n):ca(e)?Aq(t,e,n):po(e)?Cq(t,e,n):$n(e)?$q(t,e,n):li(e)?Mq(t,e,n):ci(e)?Oq(t,e,n):xe(e)?Rq(t,e,n):De(e)?Iq(t,e,n):Hl(e)?Lq(t,e,n):pr(e)?zq(t,e,n):Ce(e)?Uq(t,e,n):gr(e)?kq(t,e,n):Cn(e)?Fq(t,e,n):zn(e)?qq(t,e,n):Fr(e)?Pq(t,e,n):qe(e)?Gq(t,e,n):kl(e)?Yq(t,e,n):Ht(e)?XO(t,e,n):hs(e)?Vq(t,e,n):n}o(fi,"FromType$4");function Vh(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return fi(e,n,r)}o(Vh,"Convert");function Kq(t,e,n){if(!wt(n))return n;for(let r=0;r<n.length;r++)n[r]=jr(t,e.items,n[r]);return n}o(Kq,"FromArray$3");function Xq(t,e,n){return e.Default(n)}o(Xq,"FromBase$1");function Qq(t,e,n){return jr({...t,...e.$defs},ar(e.$ref),n)}o(Qq,"FromCyclic$3");function Zq(t,e){return pe(e)?so(t.default)?t.default():kn(t.default):e}o(Zq,"FromDefault$1");function Jq(t,e,n){const r=Wt(t,e),a=af(r);return jr(t,a,n)}o(Jq,"FromIntersect$3");function Wq(t,e,n){if(!Mt(n))return n;const r=gt(e.properties);for(const a of r){const c=jr(t,e.properties[a],n[a]);pe(c)&&(Hn(e.properties[a])||!at(e.properties[a],"default"))||(n[a]=jr(t,e.properties[a],n[a]))}if(!Gl(e)||Fe(e.additionalProperties))return n;for(const a of gt(n))r.includes(a)||(n[a]=jr(t,e.additionalProperties,n[a]));return n}o(Wq,"FromObject$3");function tP(t,e,n){if(!Mt(n))return n;const[r,a]=[new RegExp(ms(e)),Li(e)];for(const c of gt(n))r.test(c)&&Vl(a)&&(n[c]=jr(t,a,n[c]));if(!Gl(e))return n;for(const c of gt(n))r.test(c)||(n[c]=jr(t,e.additionalProperties,n[c]));return n}o(tP,"FromRecord$3");function eP(t,e,n){return at(t,e.$ref)?jr(t,t[e.$ref],n):n}o(eP,"FromRef$3");function nP(t,e,n){if(!wt(n))return n;const[r,a]=[e.items,Math.max(e.items.length,n.length)];for(let c=0;c<a;c++)c<r.length&&(n[c]=jr(t,r[c],n[c]));return n}o(nP,"FromTuple$3");function rP(t,e,n){for(const r of e.anyOf){const a=jr(t,r,kn(n));if(Ur(t,r,a))return a}return n}o(rP,"FromUnion$3");function jr(t,e,n){const r=Vl(e)?Zq(e,n):n;return en(e)?Kq(t,e,r):Ul(e)?Xq(t,e,r):$n(e)?Qq(t,e,r):xe(e)?Jq(t,e,r):Ce(e)?Wq(t,e,r):gr(e)?tP(t,e,r):Cn(e)?eP(t,e,r):qe(e)?nP(t,e,r):Ht(e)?rP(t,e,r):r}o(jr,"FromType$3");function Kh(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return jr(e,n,r)}o(Kh,"Default");function x1(t){return(...e)=>{const[n,r,a]=nn(e,{3:(c,f,d)=>[c,f,d],2:(c,f)=>[{},c,f]});return t.reduce((c,f)=>f(n,r,c),a)}}o(x1,"Pipeline");function iP(t,e,n){return e["~codec"].decode(n)}o(iP,"Decode$7");function oP(t,e,n){return e["~codec"].encode(n)}o(oP,"Encode$7");function Mn(t,e,n,r){return ur(n)?R(t,"Decode")?iP(e,n,r):oP(e,n,r):r}o(Mn,"Callback");function sP(t,e,n,r){if(!wt(r))return ke();for(let a=0;a<r.length;a++)r[a]=En(t,e,n.items,r[a]);return Mn(t,e,n,r)}o(sP,"Decode$6");function aP(t,e,n,r){const a=Mn(t,e,n,r);if(!wt(a))return a;for(let c=0;c<a.length;c++)a[c]=En(t,e,n.items,a[c]);return a}o(aP,"Encode$6");function lP(t,e,n,r){return R(t,"Decode")?sP(t,e,n,r):aP(t,e,n,r)}o(lP,"FromArray$2");function cP(t,e,n,r){return r=En(t,{...e,...n.$defs},ar(n.$ref),r),Mn(t,e,n,r)}o(cP,"FromCyclic$2");function uP(t,e,n,r){for(const a of n.allOf)r=En(t,e,a,r);return Mn(t,e,n,r)}o(uP,"Decode$5");function fP(t,e,n,r){let a=Mn(t,e,n,r);for(const c of n.allOf)a=En(t,e,c,a);return a}o(fP,"Encode$5");function dP(t,e,n,r){return R(t,"Decode")?uP(t,e,n,r):fP(t,e,n,r)}o(dP,"FromIntersect$2");function mP(t,e,n,r){if(!fo(r))return ke();for(const a of gt(n.properties))!at(r,a)||S1(n.properties[a],a,r)||(r[a]=En(t,e,n.properties[a],r[a]));return Mn(t,e,n,r)}o(mP,"Decode$4");function hP(t,e,n,r){const a=Mn(t,e,n,r);if(!fo(a))return a;for(const c of gt(n.properties))!at(a,c)||S1(n.properties[c],c,a)||(a[c]=En(t,e,n.properties[c],a[c]));return a}o(hP,"Encode$4");function pP(t,e,n,r){return R(t,"Decode")?mP(t,e,n,r):hP(t,e,n,r)}o(pP,"FromObject$2");function gP(t,e,n,r){if(!fo(r))return ke();const a=new RegExp(ms(n));for(const c of gt(r))a.test(c)||ke(),r[c]=En(t,e,Li(n),r[c]);return Mn(t,e,n,r)}o(gP,"Decode$3");function yP(t,e,n,r){const a=Mn(t,e,n,r);if(!fo(a))return a;const c=new RegExp(ms(n));for(const f of gt(a))c.test(f)&&(a[f]=En(t,e,Li(n),a[f]));return a}o(yP,"Encode$3");function bP(t,e,n,r){return R(t,"Decode")?gP(t,e,n,r):yP(t,e,n,r)}o(bP,"FromRecord$2");function vP(t,e,n,r){return r=at(e,n.$ref)?En(t,e,e[n.$ref],r):r,Mn(t,e,n,r)}o(vP,"FromRef$2");function SP(t,e,n,r){if(!wt(r))return ke();for(let a=0;a<Math.min(n.items.length,r.length);a++)r[a]=En(t,e,n.items[a],r[a]);return Mn(t,e,n,r)}o(SP,"Decode$2");function xP(t,e,n,r){const a=Mn(t,e,n,r);if(!wt(a))return r;for(let c=0;c<Math.min(n.items.length,a.length);c++)a[c]=En(t,e,n.items[c],a[c]);return a}o(xP,"Encode$2");function EP(t,e,n,r){return R(t,"Decode")?SP(t,e,n,r):xP(t,e,n,r)}o(EP,"FromTuple$2");function wP(t,e,n,r){for(const a of n.anyOf){if(!Ur(e,a,r))continue;const c=En(t,e,a,r);return Mn(t,e,n,c)}return ke()}o(wP,"Decode$1");function TP(t,e,n,r){let a=Mn(t,e,n,r);for(const c of n.anyOf){const f=En(t,e,c,kn(a));if(Ur(e,c,f))return f}return a}o(TP,"Encode$1");function AP(t,e,n,r){return R(t,"Decode")?wP(t,e,n,r):TP(t,e,n,r)}o(AP,"FromUnion$2");function En(t,e,n,r){return en(n)?lP(t,e,n,r):$n(n)?cP(t,e,n,r):xe(n)?dP(t,e,n,r):Ce(n)?pP(t,e,n,r):gr(n)?bP(t,e,n,r):Cn(n)?vP(t,e,n,r):qe(n)?EP(t,e,n,r):Ht(n)?AP(t,e,n,r):Mn(t,e,n,r)}o(En,"FromType$2");const LS=class LS extends Ru{constructor(e,n){super("Decode",e,n)}};o(LS,"DecodeError");let q0=LS;function CP(t,e,n){if(!Ur(t,e,n))throw new q0(n,gf(t,e,n));return n}o(CP,"Assert$2");function $P(t,e,n){return En("Decode",t,e,n)}o($P,"DecodeUnsafe");const MP=x1([(t,e,n)=>kn(n),(t,e,n)=>Kh(t,e,n),(t,e,n)=>Vh(t,e,n),(t,e,n)=>Yh(t,e,n),(t,e,n)=>CP(t,e,n),(t,e,n)=>$P(t,e,n)]);function OP(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return MP(e,n,r)}o(OP,"Decode");const zS=class zS extends Ru{constructor(e,n){super("Encode",e,n)}};o(zS,"EncodeError");let P0=zS;function RP(t,e,n){if(!Ur(t,e,n))throw new P0(n,gf(t,e,n));return n}o(RP,"Assert$1");function NP(t,e,n){return En("Encode",t,e,n)}o(NP,"EncodeUnsafe");const _P=x1([(t,e,n)=>kn(n),(t,e,n)=>NP(t,e,n),(t,e,n)=>Kh(t,e,n),(t,e,n)=>Vh(t,e,n),(t,e,n)=>Yh(t,e,n),(t,e,n)=>RP(t,e,n)]);function DP(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return _P(e,n,r)}o(DP,"Encode");function jP(t,e){return ur(e)||ys(t,e.items)}o(jP,"FromArray$1");function IP(t,e){return ur(e)||ZO({...t,...e.$defs},ar(e.$ref))}o(IP,"FromCyclic$1");function LP(t,e){return ur(e)||e.allOf.some(n=>ys(t,n))}o(LP,"FromIntersect$1");function zP(t,e){return ur(e)||gt(e.properties).some(n=>ys(t,e.properties[n]))}o(zP,"FromObject$1");function BP(t,e){return ur(e)||ys(t,Li(e))}o(BP,"FromRecord$1");function ZO(t,e){return G0.has(e.$ref)?!1:(G0.add(e.$ref),ur(e)||at(t,e.$ref)&&ys(t,t[e.$ref]))}o(ZO,"FromRef$1");function UP(t,e){return ur(e)||e.items.some(n=>ys(t,n))}o(UP,"FromTuple$1");function HP(t,e){return ur(e)||e.anyOf.some(n=>ys(t,n))}o(HP,"FromUnion$1");function ys(t,e){return en(e)?jP(t,e):$n(e)?IP(t,e):xe(e)?LP(t,e):Ce(e)?zP(t,e):gr(e)?BP(t,e):Cn(e)?ZO(t,e):qe(e)?UP(t,e):Ht(e)?HP(t,e):ur(e)}o(ys,"FromType$1");const G0=new Set;function kP(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a],1:r=>[{},r]});return G0.clear(),ys(e,n)}o(kP,"HasCodec");const BS=class BS extends Error{constructor(e,n){super(n),this.type=e}};o(BS,"CreateError");let ta=BS;function FP(t,e){return so(e.default)?e.default(e):Mt(e.default)?kn(e.default):e.default}o(FP,"FromDefault");function qP(t,e){if(mf(e)&&!Vl(e))throw new ta(e,"Arrays with uniqueItems constraints must specify a default annotation");const n=cf(e)?e.minItems:0;return Array.from({length:n},()=>vr(t,e.items))}o(qP,"FromArray");async function*PP(){}o(PP,"CreateAsyncIterator");function GP(t,e){return PP()}o(GP,"FromAsyncIterator");function YP(t,e){return e.Create()}o(YP,"FromBase");function VP(t,e){return fa(e)?BigInt(e.exclusiveMinimum)+BigInt(1):da(e)?BigInt(e.minimum):BigInt(0)}o(VP,"FromBigInt");function KP(t,e){return!1}o(KP,"FromBoolean");function XP(t,e){const n=vr(t,e.instanceType);return class{constructor(){Object.assign(this,n)}}}o(XP,"FromConstructor");function QP(t,e){return vr({...t,...e.$defs},ar(e.$ref))}o(QP,"FromCyclic");function ZP(t,e){return vr(t,dv(e))}o(ZP,"FromEnum");function JP(t,e){const n=vr(t,e.returnType);return()=>n}o(JP,"FromFunction");function WP(t,e){return fa(e)&&Vt(e.exclusiveMinimum)?e.exclusiveMinimum+1:da(e)?e.minimum:0}o(WP,"FromInteger");function tG(t,e){const n=Wt(t,e),r=af(n);return vr(t,r)}o(tG,"FromIntersect");function*eG(){}o(eG,"CreateIterator");function nG(t,e){return eG()}o(nG,"FromIterator");function rG(t,e){return e.const}o(rG,"FromLiteral");function iG(t,e){throw new ta(e,"Cannot create TNever types")}o(iG,"FromNever");function oG(t,e){return null}o(oG,"FromNull");function sG(t,e){return fa(e)&&Vt(e.exclusiveMinimum)?e.exclusiveMinimum+1:da(e)?e.minimum:0}o(sG,"FromNumber");function aG(t,e){return(pe(e.required)?[]:e.required).reduce((r,a)=>({...r,[a]:vr(t,e.properties[a])}),{})}o(aG,"FromObject");function lG(t,e){return Promise.resolve(vr(t,e.item))}o(lG,"FromPromise");function cG(t,e){if(ff(e)&&!Vl(e))throw new ta(e,"Record with the minProperties constraint must have a default annotation");return{}}o(cG,"FromRecord");function uG(t,e){return at(t,e.$ref)?vr(t,t[e.$ref]):(()=>{throw new ta(e,"Unable to deref Ref")})()}o(uG,"FromRef");function fG(t,e){if((df(e)||lf(e))&&!Vl(e))throw Error("Strings with format or pattern constraints must specify default");const r=uf(e)?e.minLength:0;return"".padEnd(r)}o(fG,"FromString");function dG(t,e){return Symbol()}o(dG,"FromSymbol");function mG(t,e){const n=yo(e.pattern);if(zn(n))throw new ta(e,"Unable to create TemplateLiteral due to infinite type expansion");return vr(t,n)}o(mG,"FromTemplateLiteral");function hG(t,e){return Array.from({length:e.minItems},(n,r)=>vr(t,e.items[r]))}o(hG,"FromTuple");function pG(t,e){if(R(e.anyOf.length,0))throw Error("Unable to create Union with no variants");return vr(t,e.anyOf[0])}o(pG,"FromUnion");function vr(t,e){return Vl(e)?FP(t,e):en(e)?qP(t,e):fs(e)?GP():Ul(e)?YP(t,e):ca(e)?VP(t,e):po(e)?KP():ji(e)?XP(t,e):$n(e)?QP(t,e):li(e)?ZP(t,e):Ii(e)?JP(t,e):ci(e)?WP(t,e):xe(e)?tG(t,e):ds(e)?nG():De(e)?rG(t,e):mh(e)?iG(t,e):Hl(e)?oG():pr(e)?sG(t,e):Ce(e)?aG(t,e):go(e)?lG(t,e):gr(e)?cG(t,e):Cn(e)?uG(t,e):zn(e)?fG(t,e):Zu(e)?dG():Fr(e)?mG(t,e):qe(e)?hG(t,e):kl(e)?void 0:Ht(e)?pG(t,e):hs(e)?void 0:void 0}o(vr,"FromType");function gG(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a],1:r=>[{},r]});return vr(e,n)}o(gG,"Create");const US=class US extends Ru{constructor(e,n){super("Parse",e,n)}};o(US,"ParseError");let Nu=US;function yG(t,e,n){if(!Ur(t,e,n))throw new Nu(n,gf(t,e,n));return n}o(yG,"Assert");const JO=x1([(t,e,n)=>kn(n),(t,e,n)=>Kh(t,e,n),(t,e,n)=>Vh(t,e,n),(t,e,n)=>Yh(t,e,n),(t,e,n)=>yG(t,e,n)]);function bG(...t){const[e,n,r]=nn(t,{3:(c,f,d)=>[c,f,d],2:(c,f)=>[{},c,f]});if(Ur(e,n,r))return r;if(us().correctiveParse)return JO(e,n,r);throw new Nu(r,gf(e,n,r))}o(bG,"Parse");const vG=ae({type:ge("insert"),path:Br(),value:lr()}),SG=Object({type:ge("update"),path:Br(),value:lr()}),xG=ae({type:ge("delete"),path:Br()});ve([vG,SG,xG]);const EG=o(t=>t&&typeof t=="object"&&"format"in t&&t.format==="binary","isTypeFile"),wG=o(t=>!!t&&typeof t=="object"&&!Array.isArray(t)&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.size=="number"&&typeof t.stream.bind(t)=="function","isFileLike");w_({correctiveParse:!0});const HS=class HS{isBigInt=o(e=>zn(e)&&"format"in e&&e.format==="bigint","isBigInt");isUUID=o(e=>zn(e)&&"format"in e&&e.format==="uuid","isUUID");isObject=Ce;isNumber=pr;isString=zn;isBoolean=po;isAny=ho;isArray=en;isOptional=Hn;isUnion=Ht;isInteger=ci;isNull=Hl;isUndefined=kl;isUnsafe=g$;isRecord=gr;isTuple=qe;isVoid=hs;isLiteral=De;isSchema=Ut;isScalar=o(e=>this.isString(e)||this.isNumber(e)||this.isInteger(e)||this.isBoolean(e),"isScalar");isFile=EG;isDateTime=o(e=>O.schema.isString(e)&&e.format==="date-time","isDateTime");isDate=o(e=>O.schema.isString(e)&&e.format==="date","isDate");isTime=o(e=>O.schema.isString(e)&&e.format==="time","isTime");isDuration=o(e=>O.schema.isString(e)&&e.format==="duration","isDuration")};o(HS,"TypeGuard");let Y0=HS;const Tn=class Tn{static translateError(e,n){return e.cause.message}static setLocale(e){}static isValidBigInt(e){if(typeof e=="number")return Number.isInteger(e);if(!e.trim()||!/^-?\d+$/.test(e))return!1;try{return BigInt(e),!0}catch{return!1}}raw=FU;any=yl;void=Qb;undefined=bh;record=Kb;union=ve;tuple=ui;null=Xs;const=ge;options=Bv;schema=new Y0;extend(e,n,r){return TM(Array.isArray(e)?e:[e],n,{additionalProperties:!1,...r})}pick(e,n,r){return PM(e,n,{additionalProperties:!1,...r})}omit(e,n,r){return FM(e,n,{additionalProperties:!1,...r})}partial(e,n){return qM(e,{additionalProperties:!1,...n})}object(e,n){return ae(e,{additionalProperties:!1,...n})}array(e,n){return la(e,{maxItems:Tn.DEFAULT_ARRAY_MAX_ITEMS,...n})}string(e={}){return Br({...e})}text(e={}){const{size:n,...r}=e,a=n==="short"?Tn.DEFAULT_SHORT_STRING_MAX_LENGTH:n==="long"?Tn.DEFAULT_LONG_STRING_MAX_LENGTH:n==="rich"?Tn.DEFAULT_RICH_STRING_MAX_LENGTH:Tn.DEFAULT_STRING_MAX_LENGTH;return Br({maxLength:a,"~options":{trim:e.trim??!0,lowercase:e.lowercase??!1},...r})}json(e){return O.record(O.text(),O.any(),e)}boolean(e){return qb({...e})}number(e){return ao({...e})}integer(e){return Tl({...e})}int32(e){return Tl({minimum:-2147483647,maximum:2147483647,...e})}int64(e){return ao({format:"int64",multipleOf:1,minimum:-9007199254740991,maximum:9007199254740991,...e})}optional(e){return Bb(e)}nullable(e,n){return ve([Xs(),e],n)}nullify=o((e,n)=>HM(xm("K"),UM(e),ar("K"),ve([zM(e,ar("K")),Xs()]),n),"nullify");enum(e,n){return Zd(O.text({enum:e,pattern:e.map(r=>`^${r}$`).join("|"),...n}))}bigint(e){return O.string({...e,format:"bigint"})}url(e){return this.string({...e,format:"url"})}binary(e={}){return this.string({...e,format:"binary"})}uuid(e){return this.string({...e,format:"uuid"})}file(e){return Zd(yl({[Ks]:e,format:"binary"}))}stream(){return Zd(yl({format:"stream",type:"string"}))}email(e){return this.text({...e,format:"email",trim:!0,lowercase:!0})}e164(e){return this.text({...e,description:"Phone number in E.164 format, e.g. +1234567890.",pattern:"^\\+[1-9]\\d{1,14}$"})}bcp47(e){return this.text({...e,description:"BCP 47 language tag, e.g. en, en-US, fr, fr-CA.",pattern:"^[a-z]{2,3}(?:-[A-Z]{2})?$"})}shortText(e){return this.text({size:"short",...e})}longText(e){return this.text({size:"long",...e})}richText(e){return this.text({size:"rich",...e})}constantCase=o(e=>this.text({pattern:"^[A-Z_-]+$",...e}),"constantCase");valueLabel=o(e=>this.object({value:this.constantCase({description:"Machine-readable value."}),label:this.text({description:"Human-readable label."}),description:this.optional(this.text({description:"Description of the value.",size:"long"}))},e),"valueLabel");datetime=o(e=>O.text({...e,format:"date-time"}),"datetime");date=o(e=>O.text({...e,format:"date"}),"date");time=o(e=>O.text({...e,format:"time"}),"time");duration=o(e=>O.text({...e,format:"duration"}),"duration")};o(Tn,"TypeProvider"),dn(Tn,"format",B0),B0.Set("bigint",e=>Tn.isValidBigInt(e)),dn(Tn,"DEFAULT_STRING_MAX_LENGTH",255),dn(Tn,"DEFAULT_SHORT_STRING_MAX_LENGTH",64),dn(Tn,"DEFAULT_LONG_STRING_MAX_LENGTH",1024),dn(Tn,"DEFAULT_RICH_STRING_MAX_LENGTH",65535),dn(Tn,"DEFAULT_ARRAY_MAX_ITEMS",1e3);let Cl=Tn;const O=new Cl,TG=new Set(["__proto__","constructor","prototype"]),kS=class kS extends mm{cache=new Map;textEncoder=new TextEncoder;textDecoder=new TextDecoder;varCounter=0;useFunctionCompilation=!0;maxArrayLength=1e4;maxStringLength=1e6;maxDepth=50;configure(e){return e.useFunctionCompilation!==void 0&&(this.useFunctionCompilation=e.useFunctionCompilation,this.cache.clear()),e.maxArrayLength!==void 0&&(this.maxArrayLength=e.maxArrayLength),e.maxStringLength!==void 0&&(this.maxStringLength=e.maxStringLength),e.maxDepth!==void 0&&(this.maxDepth=e.maxDepth),this}onConfigure=rr({on:"configure",handler:o(()=>{this.useFunctionCompilation=this.canUseFunction()},"handler")});encodeToString(e,n){return this.getCodec(e).encode(n)}encodeToBinary(e,n){return this.textEncoder.encode(this.encodeToString(e,n))}decode(e,n){if(n instanceof Uint8Array){const r=this.textDecoder.decode(n);return this.getCodec(e).decode(r)}return typeof n=="string"?this.getCodec(e).decode(n):Array.isArray(n)?this.reconstructObject(e,n):n}canUseFunction(){try{return new Function("return true")()===!0}catch{return!1}}validateSchemaKeys(e,n=0,r=new Set){if(!r.has(e)){if(r.add(e),n>this.maxDepth)throw new _t(`Schema depth exceeds maximum allowed (${this.maxDepth})`);if(O.schema.isObject(e)){const c=e.properties;for(const f of Object.keys(c)){if(TG.has(f))throw new _t(`Unsafe schema key "${f}" detected. This key is blocked to prevent prototype pollution.`);this.validateSchemaKeys(c[f],n+1,r)}}else if(O.schema.isArray(e)){const a=e;this.validateSchemaKeys(a.items,n+1,r)}else(O.schema.isUnion(e)||O.schema.isOptional(e))&&this.validateSchemaKeys(this.unwrap(e),n,r)}}validateArrayLength(e){if(e.length>this.maxArrayLength)throw new _t(`Array length (${e.length}) exceeds maximum allowed (${this.maxArrayLength})`)}validateStringLength(e){if(e.length>this.maxStringLength)throw new _t(`String length (${e.length}) exceeds maximum allowed (${this.maxStringLength})`)}getCodec(e){let n=this.cache.get(e);return n||(n=this.useFunctionCompilation?this.compileWithFunction(e):this.compileInterpreted(e),this.cache.set(e,n)),n}nextVar(){return`_${this.varCounter++}`}compileWithFunction(e){this.varCounter=0;const n=this.genEnc(e,"v");this.varCounter=0;const r=this.genDec(e),a=new Function("v",`return JSON.stringify(${n});`),c=new Function("s",`const a=JSON.parse(s);let i=0;${r.code}return ${r.result};`);return{encode:a,decode:c}}compileInterpreted(e){const n=this;return{encode(r){return JSON.stringify(n.interpretEncode(e,r))},decode(r){const a={arr:JSON.parse(r),i:0};return n.interpretDecode(e,a)}}}interpretEncode(e,n){if(this.isLeaf(e))return n;if(O.schema.isBigInt(e))return`${n}n`;if(O.schema.isArray(e)){const r=e;return!Array.isArray(n)||O.schema.isScalar(r.items)?n:n.map(a=>this.interpretEncode(r.items,a))}if(O.schema.isObject(e)){const r=[];for(const{key:a,isOpt:c,isNullable:f,inner:d}of this.getObjectFields(e)){const h=n[a];c?r.push(h!==void 0?this.interpretEncode(d,h):null):f?r.push(h!==null?this.interpretEncode(d,h):null):r.push(this.interpretEncode(d,h))}return r}if(O.schema.isOptional(e)||O.schema.isUnion(e)){const r=this.unwrap(e);return this.isNullable(e)?n!==null?this.interpretEncode(r,n):null:n!==void 0?this.interpretEncode(r,n):null}return n}interpretDecode(e,n){if(this.isLeaf(e))return n.arr[n.i++];if(O.schema.isBigInt(e))return BigInt(n.arr[n.i++].slice(0,-1));if(O.schema.isArray(e)){const r=e,a=n.arr[n.i++];return Array.isArray(a)&&O.schema.isObject(r.items)?a.map(c=>this.interpretDecodeFromValue(r.items,c)):a}if(O.schema.isObject(e)){const r={};for(const{key:a,isOpt:c,isNullable:f,inner:d}of this.getObjectFields(e)){const h=n.arr[n.i++];c?h!==null&&(r[a]=this.interpretDecodeFromValue(d,h)):f?r[a]=h===null?null:this.interpretDecodeFromValue(d,h):r[a]=this.interpretDecodeFromValue(d,h)}return r}if(O.schema.isOptional(e)||O.schema.isUnion(e)){const r=this.unwrap(e),a=n.arr[n.i++];return a===null?this.isNullable(e)?null:void 0:O.schema.isObject(r)||O.schema.isArray(r)?this.interpretDecodeFromValue(r,a):a}return n.arr[n.i++]}interpretDecodeFromValue(e,n){if(this.isLeaf(e))return n;if(O.schema.isBigInt(e))return BigInt(n.slice(0,-1));if(O.schema.isArray(e)){if(!Array.isArray(n))return n;const r=e;return O.schema.isObject(r.items)?n.map(a=>this.interpretDecodeFromValue(r.items,a)):n}if(O.schema.isObject(e)){const a=e.properties,c=Object.keys(a),f={};for(let d=0;d<c.length;d++){const h=c[d],g=this.unwrap(a[h]),y=n[d];O.schema.isObject(g)?f[h]=this.interpretDecodeFromValue(g,y):O.schema.isBigInt(g)?f[h]=BigInt(y.slice(0,-1)):f[h]=y}return f}return n}genEnc(e,n){if(this.isLeaf(e))return n;if(O.schema.isBigInt(e))return`${n}+'n'`;if(O.schema.isArray(e)){const r=e,a=this.genEnc(r.items,"e");return O.schema.isScalar(r.items)?n:`${n}.map(e=>${a})`}if(O.schema.isObject(e)){const r=[];for(const{key:a,isOpt:c,isNullable:f,inner:d}of this.getObjectFields(e)){const h=this.genEnc(d,`${n}.${a}`);c?r.push(`${n}.${a}!==undefined?${h}:null`):f?r.push(`${n}.${a}!==null?${h}:null`):r.push(h)}return`[${r.join(",")}]`}if(O.schema.isOptional(e)||O.schema.isUnion(e)){const r=this.unwrap(e),a=this.genEnc(r,n);return this.isNullable(e)?`${n}!==null?${a}:null`:`${n}!==undefined?${a}:null`}return n}genDec(e){const n=this.nextVar();if(this.isLeaf(e))return{code:"",result:"a[i++]"};if(O.schema.isBigInt(e))return{code:"",result:"BigInt(a[i++].slice(0,-1))"};if(O.schema.isArray(e)){const r=e;return O.schema.isObject(r.items)?{code:"",result:`a[i++].map(e=>${this.genDecFromValue(r.items,"e")})`}:{code:"",result:"a[i++]"}}if(O.schema.isObject(e)){const r=this.getObjectFields(e);if(r.every(({isOpt:f,isNullable:d,inner:h})=>!f&&!d&&!O.schema.isObject(h)&&!O.schema.isArray(h)))return{code:"",result:`{${r.map(({key:d})=>`${d}:a[i++]`).join(",")}}`};let c=`const ${n}={};`;for(const{key:f,isOpt:d,isNullable:h,inner:g}of r)if(d){const y=this.genDecFromValue(g,"t");c+=`{const t=a[i++];if(t!==null){${n}.${f}=${y};}}`}else if(h){const y=this.genDecFromValue(g,"t");c+=`{const t=a[i++];if(t===null){${n}.${f}=null;}else{${n}.${f}=${y};}}`}else if(O.schema.isObject(g)){const y=this.genDecFromValue(g,"a[i++]");c+=`${n}.${f}=${y};`}else if(O.schema.isArray(g)){const y=g;if(O.schema.isObject(y.items)){const v=this.genDecFromValue(y.items,"e");c+=`${n}.${f}=a[i++].map(e=>${v});`}else c+=`${n}.${f}=a[i++];`}else c+=`${n}.${f}=a[i++];`;return{code:c,result:n}}if(O.schema.isOptional(e)||O.schema.isUnion(e)){const r=this.unwrap(e),a=this.genDec(r),c=this.isNullable(e)?"null":"undefined";return{code:`const ${n}t=a[i++];let ${n};if(${n}t===null){${n}=${c};}else{${a.code.replace(/a\[i\+\+\]/g,`${n}t`)}${n}=${a.result.replace(/a\[i\+\+\]/g,`${n}t`)};}`,result:n}}return{code:"",result:"a[i++]"}}genDecFromValue(e,n){if(this.isLeaf(e))return n;if(O.schema.isBigInt(e))return`BigInt(${n}.slice(0,-1))`;if(O.schema.isArray(e))return n;if(O.schema.isObject(e)){const a=e.properties,c=Object.keys(a),f=this.nextVar(),d=c.map((h,g)=>{const y=this.unwrap(a[h]),v=`${f}[${g}]`;return O.schema.isObject(y)?`${h}:${this.genDecFromValue(y,v)}`:O.schema.isBigInt(y)?`${h}:BigInt(${v}.slice(0,-1))`:`${h}:${v}`});return`((${f}=${n})=>({${d.join(",")}}))()`}return n}isLeaf(e){return O.schema.isScalar(e)||this.isEnum(e)}getObjectFields(e){const n=e.properties,r=new Set(e.required||[]);return Object.keys(n).map(a=>{const c=n[a];return{key:a,isOpt:!r.has(a)||O.schema.isOptional(c),isNullable:this.isNullable(c),inner:this.unwrap(c)}})}isEnum(e){return"enum"in e&&Array.isArray(e.enum)&&(e.enum?.length??0)>0}isNullable(e){return O.schema.isUnion(e)?e.anyOf?.some(r=>O.schema.isNull(r))??!1:!1}unwrap(e){return"anyOf"in e&&Array.isArray(e.anyOf)&&e.anyOf.find(r=>!O.schema.isNull(r))||e}reconstructObject(e,n){if(!O.schema.isObject(e))return n;const r={};let a=0;for(const{key:c,isOpt:f,isNullable:d,inner:h}of this.getObjectFields(e)){const g=n[a++];f?g!==null&&(r[c]=O.schema.isObject(h)?this.reconstructObject(h,g):g):d?r[c]=g===null?null:O.schema.isObject(h)?this.reconstructObject(h,g):g:r[c]=O.schema.isObject(h)?this.reconstructObject(h,g):g}return r}};o(kS,"KeylessJsonSchemaCodec");let V0=kS;const nh=class nh extends VC{constructor(...e){super();const n=nn(e,{6:(r,a,c,f,d,h)=>[r,a,c,f,d,h],2:(r,a)=>[r,a]});if(n.length===6){const[r,a,c,f,d,h]=n;this.context=r,this.type=a,this.isEvaluated=c,this.hasCodec=f,this.code=d,this.check=h}else{const[r,a]=n,c=mF(r,a).Evaluate();this.hasCodec=kP(r,a),this.context=r,this.type=a,this.isEvaluated=c.IsEvaluated,this.code=c.Code,this.check=c.Check}}IsEvaluated(){return this.isEvaluated}Context(){return this.context}Type(){return this.type}Code(){return this.code}Check(e){return this.check(e)}Errors(e){return Hb()&&this.check(e)?[]:gf(this.context,this.type,e)}Clean(e){return Yh(this.context,this.type,e)}Convert(e){return Vh(this.context,this.type,e)}Create(){return gG(this.context,this.type)}Default(e){return Kh(this.context,this.type,e)}Clone(){return new nh(this.context,this.type,this.isEvaluated,this.hasCodec,this.code,this.check)}Parse(e){if(this.Check(e))return e;if(us().correctiveParse)return JO(this.context,this.type,e);throw new Nu(e,this.Errors(e))}Decode(e){return this.hasCodec?OP(this.context,this.type,e):this.Parse(e)}Encode(e){return this.hasCodec?DP(this.context,this.type,e):this.Parse(e)}};o(nh,"Validator");let K0=nh;function aA(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a],1:r=>[{},r]});return new K0(e,n)}o(aA,"Compile");const FS=class FS extends _t{name="TypeBoxError";cause;value;constructor(e){super(`Invalid input: ${e.message}${e.instancePath?` at ${e.instancePath}`:""}`,{cause:e});const n=e.params;n?.requiredProperties?this.value={path:`/${n.requiredProperties[0]}`,message:"must be defined"}:this.value={path:e.instancePath,message:e.message},this.cause=e}};o(FS,"TypeBoxError");let $l=FS;const qS=class qS{cache=new Map;useEval=!0;validate(e,n,r={}){const a=this.beforeParse(e,n,{trim:r.trim??!0,nullToUndefined:r.nullToUndefined??!0,deleteUndefined:r.deleteUndefined??!0});try{return this.useEval?this.getValidator(e).Parse(a):bG(e,a)}catch(c){throw c.cause?.errors?.[0]?new $l(c.cause.errors[0]):c}}getValidator(e){if(this.cache.has(e))return this.cache.get(e);const n=aA(e);return this.cache.set(e,n),n}beforeParse(e,n,r){if(!e)return n;if(!(n===null&&!this.isSchemaNullable(e)&&r.nullToUndefined)){if(Array.isArray(n))return n.map(a=>this.beforeParse(e.items,a,r));if(typeof n=="string"&&e.type==="string"){let a=n;return r.trim&&e["~options"]?.trim&&(a=a.trim()),e["~options"]?.lowercase&&(a=a.toLowerCase()),a}if(typeof n=="object"&&n!==null&&e.type==="object"){const a={};for(const c in n){const f=this.beforeParse(e.properties?.[c],n[c],r);f===void 0&&r.deleteUndefined||(a[c]=f)}return a}return n}}isSchemaNullable=o(e=>e?e.type==="null"||Array.isArray(e.type)&&e.type.includes("null")?!0:e.anyOf?e.anyOf.some(n=>this.isSchemaNullable(n)):e.oneOf?e.oneOf.some(n=>this.isSchemaNullable(n)):e.allOf?e.allOf.some(n=>this.isSchemaNullable(n)):!1:!1,"isSchemaNullable");onConfigure=rr({on:"configure",handler:o(()=>{this.useEval=this.canEval()},"handler")});canEval(){try{return aA(O.object({test:O.string()})).Parse({test:"value"}),!0}catch{return!1}}};o(qS,"SchemaValidator");let X0=qS;const PS=class PS{codecs=new Map;jsonCodec=Ot(hm);keylessCodec=Ot(V0);schemaValidator=Ot(X0);default="json";constructor(){this.register({name:"json",codec:this.jsonCodec,default:!0}),this.register({name:"keyless",codec:this.keylessCodec})}register(e){this.codecs.set(e.name,e.codec),e.default&&(this.default=e.name)}getCodec(e){const n=this.codecs.get(e);if(!n)throw new _t(`Codec "${e}" not found. Available codecs: ${Array.from(this.codecs.keys()).join(", ")}`);return n}encode(e,n,r){const a=this.getCodec(r?.encoder??this.default),c=r?.as??"object";return r?.validation!==!1&&(n=this.schemaValidator.validate(e,n,r?.validation)),c==="object"?n:c==="binary"?a.encodeToBinary(e,n):a.encodeToString(e,n)}decode(e,n,r){const a=r?.encoder??this.default;let f=this.getCodec(a).decode(e,n);return r?.validation!==!1&&(f=this.schemaValidator.validate(e,f,r?.validation)),f}validate(e,n,r){return this.schemaValidator.validate(e,n,r)}};o(PS,"CodecManager");let Q0=PS;const GS=class GS{logFn;events={};cache=new Map;sortedCache=new Map;constructor(e){this.logFn=e}get log(){return this.logFn?.()}clear(){this.events={},this.cache.clear(),this.sortedCache.clear()}on(e,n){this.events[e]||(this.events[e]={first:[],normal:[],last:[]});const r=typeof n=="function"?{callback:n}:n,a=this.events[e];return r.priority==="first"?a.first.push(r):r.priority==="last"?a.last.push(r):a.normal.push(r),this.invalidateCache(e),()=>{const c=this.events[e];if(c){for(const f of["first","normal","last"])c[f]=c[f].filter(d=>d.callback!==r.callback);this.invalidateCache(e)}}}invalidateCache(e){this.cache.delete(e),this.cache.delete(`${e}:catch`),this.sortedCache.delete(e)}resolve(e){const n=this.sortedCache.get(e);if(n)return n;const r=this.events[e];if(!r)return[];const a=[...this.topoSort(r.first),...this.topoSort(r.normal),...this.topoSort(r.last)];return this.sortedCache.set(e,a),a}topoSort(e){if(e.length<=1||!e.some(h=>h.before&&h.before.length>0||h.after&&h.after.length>0))return e;const r=new Map,a=new Map;for(const h of e)r.set(h,0),a.set(h,new Set);const c=new Map;for(const h of e)if(h.caller){let g=c.get(h.caller);g||(g=[],c.set(h.caller,g)),g.push(h)}for(const h of e){if(h.after)for(const g of h.after){const y=c.get(g);if(y)for(const v of y)v!==h&&!a.get(v).has(h)&&(a.get(v).add(h),r.set(h,r.get(h)+1))}if(h.before)for(const g of h.before){const y=c.get(g);if(y)for(const v of y)v!==h&&!a.get(h).has(v)&&(a.get(h).add(v),r.set(v,r.get(v)+1))}}const f=[];for(const h of e)r.get(h)===0&&f.push(h);const d=[];for(;f.length>0;){const h=f.shift();d.push(h);for(const g of a.get(h)){const y=r.get(g)-1;r.set(g,y),y===0&&f.push(g)}}if(d.length!==e.length)throw new _t("Circular dependency detected in hook before/after constraints");return d}compile(e,n={}){const r=this.resolve(e);if(r.length===0)return()=>{};const a=n.catch??!1,c=this.log,f=o(async(d,h)=>{for(let g=d;g<r.length;g++){const y=r[g];try{const v=y.callback(h);v&&typeof v=="object"&&"then"in v&&(a?await v.catch(E=>{c?.error(`${String(e)}(${y.caller?.name??"unknown"}) ERROR`,E)}):await v)}catch(v){if(a)c?.error(`${String(e)}(${y.caller?.name??"unknown"}) ERROR`,v);else throw v}}},"runRemainingAsync");return d=>{for(let h=0;h<r.length;h++){const g=r[h];try{const y=g.callback(d);if(y&&typeof y=="object"&&"then"in y)return a?y.catch(v=>{c?.error(`${String(e)}(${g.caller?.name??"unknown"}) ERROR`,v)}).then(()=>f(h+1,d)):y.then(()=>f(h+1,d))}catch(y){if(a)c?.error(`${String(e)}(${g.caller?.name??"unknown"}) ERROR`,y);else throw y}}}}async emit(e,n,r={}){if(!r.log){const f=r.catch?`${e}:catch`:e;let d=this.cache.get(f);d||(d=this.compile(e,{catch:r.catch}),this.cache.set(f,d)),await d(n);return}const a=this.resolve(e);if(a.length===0)return;const c=performance.now();this.log?.trace(`${String(e)} ...`);for(const f of a){const d=f.caller?.name??"unknown",h=performance.now();this.log?.trace(`${String(e)}(${d}) ...`);try{const g=f.callback(n);g&&typeof g=="object"&&"then"in g&&await g}catch(g){if(r.catch){this.log?.error(`${String(e)}(${d}) ERROR`,g);continue}throw new _t(`Failed during '${String(e)}()' hook for service: ${d}`,{cause:g})}this.log?.debug(`${String(e)}(${d}) OK [${(performance.now()-h).toFixed(1)}ms]`)}this.log?.debug(`${String(e)} OK [${(performance.now()-c).toFixed(1)}ms]`)}};o(GS,"EventManager");let Mm=GS;const di=o(t=>new ts(t),"$atom"),YS=class YS{options;get schema(){return this.options.schema}get key(){return this.options.name}constructor(e){this.options=e}};o(YS,"Atom");let ts=YS;di[Un]="atom";const VS=class VS{als=Ot(dm);events=Ot(Mm);codec=Ot(hm);atoms=new Map;store={};constructor(e={}){this.store=e}exportAtoms(e){const n={};if(e==="current"){if(this.als?.exists())for(const r of this.atoms.values()){const a=this.als.get(r.key,"current");a!==void 0&&(n[r.key]=a)}return n}for(const[r,a]of this.atoms.entries()){const c=this.get(a,e);c!==void 0&&(n[r]=c)}return n}getAtoms(e=!0){const n=[];if(e&&this.als?.exists())for(const r of this.atoms.values()){const a=this.als.get(r.key);a!==void 0&&n.push({atom:r,value:a})}else for(const[r,a]of this.atoms.entries())n.push({atom:a,value:this.store[r]});return n}register(e){const n=e.key;return this.atoms.has(n)||(this.atoms.set(n,e),n in this.store||this.set(n,e.options.default,{skipContext:!0})),this}get(e,n){e instanceof ts&&this.register(e);const r=e instanceof ts?e.key:e,a=this.store;return n==="app"?a[r]:this.als?.exists()?this.als.get(r,n)??(n?void 0:a[r]):a[r]}set(e,n,r){e instanceof ts&&this.register(e);const a=e instanceof ts?e.key:e,c=this.store,f=this.get(a);return f===n?this:(r?.skipContext!==!0&&this.als?.exists()?this.als.set(a,n):c[a]=n,r?.skipEvents!==!0&&this.events?.emit("state:mutate",{key:a,value:n,prevValue:f},{catch:!0}).catch(()=>null),this)}mut(e,n){const r=this.get(e),a=n(r);return this.set(e,a)}has(e){return this.als?.has(e)?!0:e in this.store}del(e){return this.set(e,void 0)}push(e,...n){const r=this.get(e)??[];return Array.isArray(r)&&this.set(e,[...r,...n]),this}clear(){return this.store={},this}keys(){return Object.keys(this.store)}};o(VS,"StateManager");let Z0=VS;var lA={};const Gs=class Gs{static create(e={}){typeof process=="object"&&typeof lA=="object"&&(e.env={...lA,...e.env}),typeof process=="object"&&(e.env??={},Object.assign(e.env,{NODE_ENV:"production"}));const n=new Gs(e);if(n.isTest()){const r=globalThis,a=e["alepha.test.beforeAll"]??r.beforeAll,c=e["alepha.test.afterAll"]??r.afterAll,f=e["alepha.test.afterEach"]??r.afterEach,d=e["alepha.test.onTestFinished"]??r.onTestFinished;a?.(()=>n.start()),c?.(()=>n.stop());try{d?.(()=>n.stop())}catch{}n.store.set("alepha.test.beforeAll",a).set("alepha.test.afterAll",c).set("alepha.test.afterEach",f).set("alepha.test.onTestFinished",d)}else e["alepha.logger"]??={trace:console.log,debug:console.debug,info:console.log,warn:console.warn,error:console.error};return n}locked=!1;configured=!1;started=!1;ready=!1;starting;pendingInstantiations=[];cacheEnv=new Map;modules=[];substitutions=new Map;primitiveRegistry=new Map;registry=new Map;context;events;store;codec;get log(){return this.store.get("alepha.logger")}get env(){return this.store.get("env")??{}}constructor(e={}){this.store=this.inject(Z0,{args:[e]}),this.events=this.inject(Mm),this.events.logFn=()=>this.log,this.context=this.inject(dm),this.codec=this.inject(Q0)}fork(e,n={}){return this.context.run(e,n)}get(e,n){return this.store.get(e,n)}set(e,n){return this.store.set(e,n),this}isLocked(){return this.locked}isConfigured(){return this.configured}isStarted(){return this.started}isReady(){return this.ready}isCI(){return this.env.GITHUB_ACTIONS?!0:!!this.env.CI}isBrowser(){return typeof window<"u"}isViteDev(){return this.isBrowser()?!1:!!this.env.VITE_ALEPHA_DEV}isBun(){return"Bun"in globalThis}isServerless(){return this.isBrowser()?!1:!!(this.env.ALEPHA_SERVERLESS||this.env.VERCEL_REGION||typeof global=="object"&&typeof global.Cloudflare=="object")}isTest(){return this.env.NODE_ENV==="test"}isProduction(){return this.env.NODE_ENV==="production"}async start(){if(this.ready)return this.log?.debug("App is already started, skipping..."),this;if(this.starting)return this.log?.warn("App is already starting, waiting for it to finish..."),this.starting.promise;this.starting=Promise.withResolvers();try{const e=performance.now();this.log?.info("Starting App...");for(const[r]of this.substitutions.entries())this.inject(r);const n=this.store.get("alepha.target");if(n){this.store.set("alepha.target",void 0),this.modules=[],this.registry=new Map,this.primitiveRegistry=new Map,this.pendingInstantiations=[],this.events.clear(),delete n[Ln],this.with(n);for(const[r]of this.substitutions.entries())this.inject(r)}this.locked=!0,await this.events.emit("configure",this,{log:!0}),this.configured=!0,await this.events.emit("start",this,{log:!0}),this.started=!0,await this.events.emit("ready",this,{log:!0}),this.log?.info(`App is now ready [${Math.round(performance.now()-e)}ms]`),this.ready=!0}catch(e){this.starting.reject(e);const n=this.starting.promise;return this.starting=void 0,n}return this.starting.resolve(this),this.starting=void 0,this}async stop(){this.started&&(this.log?.info("Stopping App..."),await this.events.emit("stop",this,{log:!0}),this.log?.info("App is now off"),this.started=!1,this.ready=!1)}async destroy(){await this.stop(),this.modules=[],this.registry=new Map,this.primitiveRegistry=new Map,this.pendingInstantiations=[],this.substitutions=new Map,this.cacheEnv=new Map,this.events.clear(),this.locked=!1,this.configured=!1}has(e,n={}){if(e===Gs)return!0;const{inStack:r=!0,inRegistry:a=!0,inSubstitutions:c=!0,registry:f=this.registry}=n,{provide:d}=typeof e=="object"&&"provide"in e?e:{provide:e};if(c&&this.substitutions.get(d)||a&&f.get(d))return!0;if(r){const h=this.substitutions.get(d)?.use;return h&&this.pendingInstantiations.includes(h)?!0:this.pendingInstantiations.includes(d)}return!1}with(e){if(this.store?.get("alepha.target"))return this;const n="default"in e?e.default:e;if(this.has(n,{inSubstitutions:!1,inRegistry:!1}))return this;if(typeof n=="object"){if(n.provide===n.use)return this.inject(n.provide),this;if(!this.substitutions.has(n.provide)&&!this.has(n.provide)){if(this.started)throw new fm;Ln in n.provide&&typeof n.provide[Ln]=="function"&&(n.use[Ln]??=n.provide[Ln]),this.substitutions.set(n.provide,{use:n.use})}else if(!n.optional)throw new w0(n.provide.name,n.use.name);return this}return this.inject(n),this}inject(e,n={}){const r=n.lifetime??"singleton",a=n.parent!==void 0?n.parent:_r?.parent??Gs,c=r==="transient",f=r==="scoped"?this.context.get("registry")??this.registry:this.registry;if(e===Gs)return this;if(typeof e=="string"){for(const[E,x]of f.entries())if(E.name===e)return x.instance;throw new _t(`Service not found: ${e}`)}const d=this.substitutions.get(e);if(d)return this.inject(d.use,{parent:a,lifetime:r});const h=this.pendingInstantiations.indexOf(e);if(h!==-1&&!c)throw new E0(e.name,this.pendingInstantiations.slice(0,h).map(E=>E.name));if(!c){const E=f.get(e);if(E)return!E.parents.includes(a)&&a!==e&&E.parents.push(a),E.instance;if(this.started){const x=e[Ln]?.name;throw new fm(`Container is locked. No more services can be added. Attempted to inject '${e.name}' from '${a?.name}'. ${x?`Module '${x}' is not registered ?`:""}`)}}const g=e[Ln];if(g&&typeof g=="function"&&this.with(g),this.has(e,{registry:f})&&!c)return this.inject(e,{parent:a,lifetime:r});const y=this.new(e,n.args),v={parents:[a],instance:y};if(c||f.set(e,v),y instanceof gl){this.modules.push(y);const E=_r.parent;_r.parent=y.constructor,y.register(this),_r.parent=E}return y}parseEnv(e){if(this.cacheEnv.has(e))return this.cacheEnv.get(e);const n=this.codec.validate(e,this.env);for(const r in n)if(typeof n[r]=="string")for(const a in n)n[r]=n[r].replaceAll(`$${a}`,String(n[a]??""));return this.cacheEnv.set(e,n),n}getEnvSchemas(){const e=[];for(const[n,r]of this.cacheEnv.entries())e.push({schema:n,values:r});return e}graph(){for(const[n]of this.substitutions.entries())this.has(n)||this.inject(n);const e={};for(const[n,{parents:r}]of this.registry.entries()){if(n.name===""||gl.is(n))continue;e[n.name]={from:r.filter(f=>!!f).map(f=>f.name)};const a=this.substitutions.entries().filter(f=>f[1].use===n).map(f=>f[0].name).toArray();a.length&&(e[n.name].as=a);const c=gl.of(n);c&&(e[n.name].module=c.name)}return e}dump(){const e={};for(const[n]of this.cacheEnv.entries()){const r=n;for(const[a,c]of Object.entries(r.properties)){const f=c;e[a]={description:f.description,default:f.default,required:r.required?.includes(a)??void 0,enum:f.enum?[...f.enum]:void 0}}}return{env:e,providers:this.graph()}}services(e){const n=[];for(const[r,a]of this.registry.entries())a.instance instanceof e&&n.push(a.instance);return n}primitives(e){if(typeof e=="string"){const n=e.toLowerCase().replace("$",""),r=`${n}primitive`;for(const[a,c]of this.primitiveRegistry.entries()){const f=a.name.toLowerCase();if(f===n||f===r)return c}return[]}return this.primitiveRegistry.get(e[Un])??[]}new(e,n=[]){this.pendingInstantiations.push(e),_r.alepha=this,_r.service=e;const r=B5(e)?new e(...n):e(...n)??{},a=r;for(const[c,f]of Object.entries(a))if(f instanceof ni&&this.processPrimitive(f,c),typeof f=="object"&&f!==null&&typeof f[Ks]=="object"&&"getter"in f[Ks]){const d=f[Ks].getter;Object.defineProperty(a,c,{get:o(()=>this.store.get(d),"get")})}return this.pendingInstantiations.pop(),this.pendingInstantiations.length===0&&(_r.alepha=void 0),_r.service=this.pendingInstantiations[this.pendingInstantiations.length-1],r}processPrimitive(e,n=""){e.config.propertyKey=n,e.onInit();const r=e.constructor,a=this.primitiveRegistry.get(r);a?a.push(e):this.primitiveRegistry.set(r,[e])}};o(Gs,"Alepha");let Ke=Gs;function Ei(t){if(t.const!==void 0)return O.const(t.const);if(t.enum&&Array.isArray(t.enum))return t.enum.every(n=>typeof n=="string")?O.enum(t.enum,as({title:t.title,description:t.description,default:t.default})):O.union(t.enum.map(n=>O.const(n)));if(t.anyOf&&Array.isArray(t.anyOf)){const n=t.anyOf.find(a=>a.type==="null"),r=t.anyOf.filter(a=>a.type!=="null");if(n&&r.length===1){const a=Ei(r[0]);return O.nullable(a)}return O.union(t.anyOf.map(a=>Ei(a)))}if(t.allOf&&Array.isArray(t.allOf)){const n=t.allOf.find(a=>a.type==="null"),r=t.allOf.filter(a=>a.type!=="null");if(n&&r.length===1){const a=Ei(r[0]);return O.nullable(a)}if(r.length>0)return Ei(r[0])}if(t.oneOf&&Array.isArray(t.oneOf)){const n=t.oneOf.find(a=>a.type==="null"),r=t.oneOf.filter(a=>a.type!=="null");if(n&&r.length===1){const a=Ei(r[0]);return O.nullable(a)}return O.union(t.oneOf.map(a=>Ei(a)))}switch(Array.isArray(t.type)?t.type[0]:t.type){case"string":return AG(t);case"number":return CG(t);case"integer":return $G(t);case"boolean":return MG(t);case"null":return O.null();case"object":return cA(t);case"array":return OG(t);default:return t.properties?cA(t):O.any()}}o(Ei,"jsonSchemaToTypeBox");function as(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>n!==void 0))}o(as,"filterUndefined");function AG(t){const e=as({title:t.title,description:t.description,default:t.default,minLength:t.minLength,maxLength:t.maxLength,pattern:t.pattern}),n=t["~options"]?{...e,"~options":t["~options"]}:e;switch(t.format){case"email":return O.email(n);case"uuid":return O.uuid(n);case"date-time":return O.datetime(n);case"date":return O.date(n);case"time":return O.time(n);case"url":case"uri":return O.url(n);case"binary":return O.binary(n);case"bigint":return O.bigint(n);case"duration":return O.duration(n);case"color":return O.text({...n,format:"color"});case"e164":return O.e164(n);case"bcp47":return O.bcp47(n);default:return t.format?O.string({...n,format:t.format}):O.string(n)}}o(AG,"convertString");function CG(t){return O.number(as({title:t.title,description:t.description,default:t.default,minimum:t.minimum,maximum:t.maximum,exclusiveMinimum:t.exclusiveMinimum,exclusiveMaximum:t.exclusiveMaximum,multipleOf:t.multipleOf}))}o(CG,"convertNumber");function $G(t){return O.integer(as({title:t.title,description:t.description,default:t.default,minimum:t.minimum,maximum:t.maximum,exclusiveMinimum:t.exclusiveMinimum,exclusiveMaximum:t.exclusiveMaximum,multipleOf:t.multipleOf}))}o($G,"convertInteger");function MG(t){return O.boolean(as({title:t.title,description:t.description,default:t.default}))}o(MG,"convertBoolean");function cA(t){if(!t.properties)return O.json(as({title:t.title,description:t.description}));const e=new Set(t.required??[]),n={};for(const[r,a]of Object.entries(t.properties)){let c=Ei(a);e.has(r)||(c=O.optional(c)),n[r]=c}return O.object(n,as({title:t.title,description:t.description}))}o(cA,"convertObject");function OG(t){const e=t.items?Ei(t.items):O.any();return O.array(e,as({title:t.title,description:t.description,minItems:t.minItems,maxItems:t.maxItems,uniqueItems:t.uniqueItems}))}o(OG,"convertArray");const Xh=o(t=>{const{alepha:e}=Pu();e.store.register(t);const n=e.store.get(t.key);return{[Ks]:{getter:t.key},...n}},"$use");O.object({page:O.optional(O.integer({description:"The page number to retrieve.",minimum:0,default:0})),size:O.optional(O.integer({description:"The number of items per page.",minimum:1,maximum:100,default:10})),sort:O.optional(O.text({description:"Sort by field(s). Multiple columns separated by comma. Prefix with '-' for DESC. Examples: 'name' (ASC), '-createdAt' (DESC), 'role,-name' (role ASC, name DESC)"}))});const RG=O.object({number:O.integer({description:"Page number, starting from 0"}),size:O.integer({description:"Number of items per page (requested page size)"}),offset:O.integer({description:"Offset in the dataset (page × size)"}),numberOfElements:O.integer({description:"Number of elements in THIS page (content.length). Different from totalElements which is the total across all pages."}),totalElements:O.optional(O.integer({description:"Total number of elements across all pages. Only available when counting is enabled."})),totalPages:O.optional(O.integer({description:"Total number of pages. Only available when `totalElements` is present."})),isEmpty:O.boolean({description:"Indicates if the current page has no items (numberOfElements === 0)"}),isFirst:O.boolean({description:"Indicates if this is the first page (number === 0)"}),isLast:O.boolean({description:"Indicates if this is the last page (no more pages after this)"}),sort:O.optional(O.object({sorted:O.boolean({description:"Whether the results are sorted"}),fields:O.array(O.object({field:O.text({description:"The field used for sorting"}),direction:O.enum(["asc","desc"],{description:"The direction of the sort. Either 'asc' or 'desc'"})}))}))}),NG=o((t,e)=>O.object({content:O.array(t),page:RG},e),"pageSchema");Cl.prototype.page=t=>NG(t);const _G=o((t,e)=>{const n=t instanceof Ke?t:Ke.create({env:{...e?.env}});if(!(t instanceof Ke)){const r=Array.isArray(t)?t:[t];for(const a of r)n.with(a)}return(async()=>{try{await e?.configure?.(n),await n.start(),e?.ready}catch(r){n.log?.error("Alepha failed to start",r)}})(),window.alepha=n,n},"run"),DG="modulepreload",jG=o(function(t){return"/__devtools/"+t},"assetsURL"),uA={},nr=o(function(e,n,r){let a=Promise.resolve();if(n&&n.length>0){let h=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};o(h,"allSettled"),document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),d=f?.nonce||f?.getAttribute("nonce");a=h(n.map(g=>{if(g=jG(g),g in uA)return;uA[g]=!0;const y=g.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":DG,y||(E.as="script"),E.crossOrigin="",E.href=g,d&&E.setAttribute("nonce",d),document.head.appendChild(E),y)return new Promise((x,C)=>{E.addEventListener("load",x),E.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(f){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=f,window.dispatchEvent(d),!d.defaultPrevented)throw f}return o(c,"handlePreloadError"),a.then(f=>{for(const d of f||[])d.status==="rejected"&&c(d.reason);return e().catch(c)})},"preload");function bs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o(bs,"getDefaultExportFromCjs");var Zy={exports:{}},cu={};var fA;function IG(){if(fA)return cu;fA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,a,c){var f=null;if(c!==void 0&&(f=""+c),a.key!==void 0&&(f=""+a.key),"key"in a){c={};for(var d in a)d!=="key"&&(c[d]=a[d])}else c=a;return a=c.ref,{$$typeof:t,type:r,key:f,ref:a!==void 0?a:null,props:c}}return o(n,"jsxProd"),cu.Fragment=e,cu.jsx=n,cu.jsxs=n,cu}o(IG,"requireReactJsxRuntime_production");var dA;function LG(){return dA||(dA=1,Zy.exports=IG()),Zy.exports}o(LG,"requireJsxRuntime");var $=LG(),Jy={exports:{}},Nt={};var mA;function zG(){if(mA)return Nt;mA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),E=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=E&&_[E]||_["@@iterator"],typeof _=="function"?_:null)}o(x,"getIteratorFn");var C={isMounted:o(function(){return!1},"isMounted"),enqueueForceUpdate:o(function(){},"enqueueForceUpdate"),enqueueReplaceState:o(function(){},"enqueueReplaceState"),enqueueSetState:o(function(){},"enqueueSetState")},w=Object.assign,M={};function L(_,Y,lt){this.props=_,this.context=Y,this.refs=M,this.updater=lt||C}o(L,"Component"),L.prototype.isReactComponent={},L.prototype.setState=function(_,Y){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,Y,"setState")},L.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function z(){}o(z,"ComponentDummy"),z.prototype=L.prototype;function I(_,Y,lt){this.props=_,this.context=Y,this.refs=M,this.updater=lt||C}o(I,"PureComponent");var F=I.prototype=new z;F.constructor=I,w(F,L.prototype),F.isPureReactComponent=!0;var G=Array.isArray;function q(){}o(q,"noop");var B={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function et(_,Y,lt){var dt=lt.ref;return{$$typeof:t,type:_,key:Y,ref:dt!==void 0?dt:null,props:lt}}o(et,"ReactElement");function nt(_,Y){return et(_.type,Y,_.props)}o(nt,"cloneAndReplaceKey");function ot(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}o(ot,"isValidElement");function ft(_){var Y={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(lt){return Y[lt]})}o(ft,"escape");var mt=/\/+/g;function V(_,Y){return typeof _=="object"&&_!==null&&_.key!=null?ft(""+_.key):Y.toString(36)}o(V,"getElementKey");function J(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(q,q):(_.status="pending",_.then(function(Y){_.status==="pending"&&(_.status="fulfilled",_.value=Y)},function(Y){_.status==="pending"&&(_.status="rejected",_.reason=Y)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}o(J,"resolveThenable");function N(_,Y,lt,dt,ht){var yt=typeof _;(yt==="undefined"||yt==="boolean")&&(_=null);var Ct=!1;if(_===null)Ct=!0;else switch(yt){case"bigint":case"string":case"number":Ct=!0;break;case"object":switch(_.$$typeof){case t:case e:Ct=!0;break;case y:return Ct=_._init,N(Ct(_._payload),Y,lt,dt,ht)}}if(Ct)return ht=ht(_),Ct=dt===""?"."+V(_,0):dt,G(ht)?(lt="",Ct!=null&&(lt=Ct.replace(mt,"$&/")+"/"),N(ht,Y,lt,"",function(ye){return ye})):ht!=null&&(ot(ht)&&(ht=nt(ht,lt+(ht.key==null||_&&_.key===ht.key?"":(""+ht.key).replace(mt,"$&/")+"/")+Ct)),Y.push(ht)),1;Ct=0;var te=dt===""?".":dt+":";if(G(_))for(var Kt=0;Kt<_.length;Kt++)dt=_[Kt],yt=te+V(dt,Kt),Ct+=N(dt,Y,lt,yt,ht);else if(Kt=x(_),typeof Kt=="function")for(_=Kt.call(_),Kt=0;!(dt=_.next()).done;)dt=dt.value,yt=te+V(dt,Kt++),Ct+=N(dt,Y,lt,yt,ht);else if(yt==="object"){if(typeof _.then=="function")return N(J(_),Y,lt,dt,ht);throw Y=String(_),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ct}o(N,"mapIntoArray");function U(_,Y,lt){if(_==null)return _;var dt=[],ht=0;return N(_,dt,"","",function(yt){return Y.call(lt,yt,ht++)}),dt}o(U,"mapChildren");function j(_){if(_._status===-1){var Y=_._result;Y=Y(),Y.then(function(lt){(_._status===0||_._status===-1)&&(_._status=1,_._result=lt)},function(lt){(_._status===0||_._status===-1)&&(_._status=2,_._result=lt)}),_._status===-1&&(_._status=0,_._result=Y)}if(_._status===1)return _._result.default;throw _._result}o(j,"lazyInitializer");var tt=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},it={map:U,forEach:o(function(_,Y,lt){U(_,function(){Y.apply(this,arguments)},lt)},"forEach"),count:o(function(_){var Y=0;return U(_,function(){Y++}),Y},"count"),toArray:o(function(_){return U(_,function(Y){return Y})||[]},"toArray"),only:o(function(_){if(!ot(_))throw Error("React.Children.only expected to receive a single React element child.");return _},"only")};return Nt.Activity=v,Nt.Children=it,Nt.Component=L,Nt.Fragment=n,Nt.Profiler=a,Nt.PureComponent=I,Nt.StrictMode=r,Nt.Suspense=h,Nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Nt.__COMPILER_RUNTIME={__proto__:null,c:o(function(_){return B.H.useMemoCache(_)},"c")},Nt.cache=function(_){return function(){return _.apply(null,arguments)}},Nt.cacheSignal=function(){return null},Nt.cloneElement=function(_,Y,lt){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var dt=w({},_.props),ht=_.key;if(Y!=null)for(yt in Y.key!==void 0&&(ht=""+Y.key),Y)!k.call(Y,yt)||yt==="key"||yt==="__self"||yt==="__source"||yt==="ref"&&Y.ref===void 0||(dt[yt]=Y[yt]);var yt=arguments.length-2;if(yt===1)dt.children=lt;else if(1<yt){for(var Ct=Array(yt),te=0;te<yt;te++)Ct[te]=arguments[te+2];dt.children=Ct}return et(_.type,ht,dt)},Nt.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:c,_context:_},_},Nt.createElement=function(_,Y,lt){var dt,ht={},yt=null;if(Y!=null)for(dt in Y.key!==void 0&&(yt=""+Y.key),Y)k.call(Y,dt)&&dt!=="key"&&dt!=="__self"&&dt!=="__source"&&(ht[dt]=Y[dt]);var Ct=arguments.length-2;if(Ct===1)ht.children=lt;else if(1<Ct){for(var te=Array(Ct),Kt=0;Kt<Ct;Kt++)te[Kt]=arguments[Kt+2];ht.children=te}if(_&&_.defaultProps)for(dt in Ct=_.defaultProps,Ct)ht[dt]===void 0&&(ht[dt]=Ct[dt]);return et(_,yt,ht)},Nt.createRef=function(){return{current:null}},Nt.forwardRef=function(_){return{$$typeof:d,render:_}},Nt.isValidElement=ot,Nt.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:j}},Nt.memo=function(_,Y){return{$$typeof:g,type:_,compare:Y===void 0?null:Y}},Nt.startTransition=function(_){var Y=B.T,lt={};B.T=lt;try{var dt=_(),ht=B.S;ht!==null&&ht(lt,dt),typeof dt=="object"&&dt!==null&&typeof dt.then=="function"&&dt.then(q,tt)}catch(yt){tt(yt)}finally{Y!==null&<.types!==null&&(Y.types=lt.types),B.T=Y}},Nt.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Nt.use=function(_){return B.H.use(_)},Nt.useActionState=function(_,Y,lt){return B.H.useActionState(_,Y,lt)},Nt.useCallback=function(_,Y){return B.H.useCallback(_,Y)},Nt.useContext=function(_){return B.H.useContext(_)},Nt.useDebugValue=function(){},Nt.useDeferredValue=function(_,Y){return B.H.useDeferredValue(_,Y)},Nt.useEffect=function(_,Y){return B.H.useEffect(_,Y)},Nt.useEffectEvent=function(_){return B.H.useEffectEvent(_)},Nt.useId=function(){return B.H.useId()},Nt.useImperativeHandle=function(_,Y,lt){return B.H.useImperativeHandle(_,Y,lt)},Nt.useInsertionEffect=function(_,Y){return B.H.useInsertionEffect(_,Y)},Nt.useLayoutEffect=function(_,Y){return B.H.useLayoutEffect(_,Y)},Nt.useMemo=function(_,Y){return B.H.useMemo(_,Y)},Nt.useOptimistic=function(_,Y){return B.H.useOptimistic(_,Y)},Nt.useReducer=function(_,Y,lt){return B.H.useReducer(_,Y,lt)},Nt.useRef=function(_){return B.H.useRef(_)},Nt.useState=function(_){return B.H.useState(_)},Nt.useSyncExternalStore=function(_,Y,lt){return B.H.useSyncExternalStore(_,Y,lt)},Nt.useTransition=function(){return B.H.useTransition()},Nt.version="19.2.4",Nt}o(zG,"requireReact_production");var hA;function E1(){return hA||(hA=1,Jy.exports=zG()),Jy.exports}o(E1,"requireReact");var A=E1();const Dr=bs(A),WO=z5({__proto__:null,default:Dr},[A]),BG=o(t=>{const[e,n]=A.useState(!1);return A.useEffect(()=>n(!0),[]),t.disabled||e?t.children:t.fallback},"ClientOnly"),KS=class KS extends Dr.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,n){this.props.onError&&this.props.onError(e,n)}render(){return this.state.error?this.props.fallback(this.state.error):this.props.children}};o(KS,"ErrorBoundary");let Om=KS;const tR=A.createContext(void 0);var Jd={exports:{}},UG=Jd.exports,pA;function HG(){return pA||(pA=1,(function(t,e){(function(n,r){t.exports=r()})(UG,(function(){return function(n,r,a){n=n||{};var c=r.prototype,f={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function d(g,y,v,E){return c.fromToBase(g,y,v,E)}o(d,"i"),a.en.relativeTime=f,c.fromToBase=function(g,y,v,E,x){for(var C,w,M,L=v.$locale().relativeTime||f,z=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],I=z.length,F=0;F<I;F+=1){var G=z[F];G.d&&(C=E?a(g).diff(v,G.d,!0):v.diff(g,G.d,!0));var q=(n.rounding||Math.round)(Math.abs(C));if(M=C>0,q<=G.r||!G.r){q<=1&&F>0&&(G=z[F-1]);var B=L[G.l];x&&(q=x(""+q)),w=typeof B=="string"?B.replace("%d",q):B(q,y,G.l,M);break}}if(y)return w;var k=M?L.future:L.past;return typeof k=="function"?k(w):k.replace("%s",w)},c.to=function(g,y){return d(g,y,this,!0)},c.from=function(g,y){return d(g,y,this)};var h=o(function(g){return g.$u?a.utc():a()},"d");c.toNow=function(g){return this.to(h(this),g)},c.fromNow=function(g){return this.from(h(this),g)}}}))})(Jd)),Jd.exports}o(HG,"requireRelativeTime");var kG=HG();const FG=bs(kG);var Wd={exports:{}},qG=Wd.exports,gA;function PG(){return gA||(gA=1,(function(t,e){(function(n,r){t.exports=r()})(qG,(function(){var n,r,a=1e3,c=6e4,f=36e5,d=864e5,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g=31536e6,y=2628e6,v=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,E={years:g,months:y,days:d,hours:f,minutes:c,seconds:a,milliseconds:1,weeks:6048e5},x=o(function(q){return q instanceof F},"c"),C=o(function(q,B,k){return new F(q,k,B.$l)},"f"),w=o(function(q){return r.p(q)+"s"},"m"),M=o(function(q){return q<0},"l"),L=o(function(q){return M(q)?Math.ceil(q):Math.floor(q)},"$"),z=o(function(q){return Math.abs(q)},"y"),I=o(function(q,B){return q?M(q)?{negative:!0,format:""+z(q)+B}:{negative:!1,format:""+q+B}:{negative:!1,format:""}},"v"),F=(function(){function q(k,et,nt){var ot=this;if(this.$d={},this.$l=nt,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),et)return C(k*E[w(et)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach((function(V){ot.$d[w(V)]=k[V]})),this.calMilliseconds(),this;if(typeof k=="string"){var ft=k.match(v);if(ft){var mt=ft.slice(2).map((function(V){return V!=null?Number(V):0}));return this.$d.years=mt[0],this.$d.months=mt[1],this.$d.weeks=mt[2],this.$d.days=mt[3],this.$d.hours=mt[4],this.$d.minutes=mt[5],this.$d.seconds=mt[6],this.calMilliseconds(),this}}return this}o(q,"l");var B=q.prototype;return B.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce((function(et,nt){return et+(k.$d[nt]||0)*E[nt]}),0)},B.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=L(k/g),k%=g,this.$d.months=L(k/y),k%=y,this.$d.days=L(k/d),k%=d,this.$d.hours=L(k/f),k%=f,this.$d.minutes=L(k/c),k%=c,this.$d.seconds=L(k/a),k%=a,this.$d.milliseconds=k},B.toISOString=function(){var k=I(this.$d.years,"Y"),et=I(this.$d.months,"M"),nt=+this.$d.days||0;this.$d.weeks&&(nt+=7*this.$d.weeks);var ot=I(nt,"D"),ft=I(this.$d.hours,"H"),mt=I(this.$d.minutes,"M"),V=this.$d.seconds||0;this.$d.milliseconds&&(V+=this.$d.milliseconds/1e3,V=Math.round(1e3*V)/1e3);var J=I(V,"S"),N=k.negative||et.negative||ot.negative||ft.negative||mt.negative||J.negative,U=ft.format||mt.format||J.format?"T":"",j=(N?"-":"")+"P"+k.format+et.format+ot.format+U+ft.format+mt.format+J.format;return j==="P"||j==="-P"?"P0D":j},B.toJSON=function(){return this.toISOString()},B.format=function(k){var et=k||"YYYY-MM-DDTHH:mm:ss",nt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return et.replace(h,(function(ot,ft){return ft||String(nt[ot])}))},B.as=function(k){return this.$ms/E[w(k)]},B.get=function(k){var et=this.$ms,nt=w(k);return nt==="milliseconds"?et%=1e3:et=nt==="weeks"?L(et/E[nt]):this.$d[nt],et||0},B.add=function(k,et,nt){var ot;return ot=et?k*E[w(et)]:x(k)?k.$ms:C(k,this).$ms,C(this.$ms+ot*(nt?-1:1),this)},B.subtract=function(k,et){return this.add(k,et,!0)},B.locale=function(k){var et=this.clone();return et.$l=k,et},B.clone=function(){return C(this.$ms,this)},B.humanize=function(k){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},B.valueOf=function(){return this.asMilliseconds()},B.milliseconds=function(){return this.get("milliseconds")},B.asMilliseconds=function(){return this.as("milliseconds")},B.seconds=function(){return this.get("seconds")},B.asSeconds=function(){return this.as("seconds")},B.minutes=function(){return this.get("minutes")},B.asMinutes=function(){return this.as("minutes")},B.hours=function(){return this.get("hours")},B.asHours=function(){return this.as("hours")},B.days=function(){return this.get("days")},B.asDays=function(){return this.as("days")},B.weeks=function(){return this.get("weeks")},B.asWeeks=function(){return this.as("weeks")},B.months=function(){return this.get("months")},B.asMonths=function(){return this.as("months")},B.years=function(){return this.get("years")},B.asYears=function(){return this.as("years")},q})(),G=o(function(q,B,k){return q.add(B.years()*k,"y").add(B.months()*k,"M").add(B.days()*k,"d").add(B.hours()*k,"h").add(B.minutes()*k,"m").add(B.seconds()*k,"s").add(B.milliseconds()*k,"ms")},"p");return function(q,B,k){n=k,r=k().$utils(),k.duration=function(ot,ft){var mt=k.locale();return C(ot,{$l:mt},ft)},k.isDuration=x;var et=B.prototype.add,nt=B.prototype.subtract;B.prototype.add=function(ot,ft){return x(ot)?G(this,ot,1):et.bind(this)(ot,ft)},B.prototype.subtract=function(ot,ft){return x(ot)?G(this,ot,-1):nt.bind(this)(ot,ft)}}}))})(Wd)),Wd.exports}o(PG,"requireDuration");var GG=PG();const YG=bs(GG);var tm={exports:{}},VG=tm.exports,yA;function KG(){return yA||(yA=1,(function(t,e){(function(n,r){t.exports=r()})(VG,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(c,f,d){var h=f.prototype;d.utc=function(w){var M={date:w,utc:!0,args:arguments};return new f(M)},h.utc=function(w){var M=d(this.toDate(),{locale:this.$L,utc:!0});return w?M.add(this.utcOffset(),n):M},h.local=function(){return d(this.toDate(),{locale:this.$L,utc:!1})};var g=h.parse;h.parse=function(w){w.utc&&(this.$u=!0),this.$utils().u(w.$offset)||(this.$offset=w.$offset),g.call(this,w)};var y=h.init;h.init=function(){if(this.$u){var w=this.$d;this.$y=w.getUTCFullYear(),this.$M=w.getUTCMonth(),this.$D=w.getUTCDate(),this.$W=w.getUTCDay(),this.$H=w.getUTCHours(),this.$m=w.getUTCMinutes(),this.$s=w.getUTCSeconds(),this.$ms=w.getUTCMilliseconds()}else y.call(this)};var v=h.utcOffset;h.utcOffset=function(w,M){var L=this.$utils().u;if(L(w))return this.$u?0:L(this.$offset)?v.call(this):this.$offset;if(typeof w=="string"&&(w=(function(G){G===void 0&&(G="");var q=G.match(r);if(!q)return null;var B=(""+q[0]).match(a)||["-",0,0],k=B[0],et=60*+B[1]+ +B[2];return et===0?0:k==="+"?et:-et})(w),w===null))return this;var z=Math.abs(w)<=16?60*w:w;if(z===0)return this.utc(M);var I=this.clone();if(M)return I.$offset=z,I.$u=!1,I;var F=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(I=this.local().add(z+F,n)).$offset=z,I.$x.$localOffset=F,I};var E=h.format;h.format=function(w){var M=w||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return E.call(this,M)},h.valueOf=function(){var w=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*w},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var x=h.toDate;h.toDate=function(w){return w==="s"&&this.$offset?d(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var C=h.diff;h.diff=function(w,M,L){if(w&&this.$u===w.$u)return C.call(this,w,M,L);var z=this.local(),I=d(w).local();return C.call(z,I,M,L)}}}))})(tm)),tm.exports}o(KG,"requireUtc");var XG=KG();const QG=bs(XG);var em={exports:{}},ZG=em.exports,bA;function JG(){return bA||(bA=1,(function(t,e){(function(n,r){t.exports=r()})(ZG,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(a,c,f){var d,h=o(function(E,x,C){C===void 0&&(C={});var w=new Date(E),M=(function(L,z){z===void 0&&(z={});var I=z.timeZoneName||"short",F=L+"|"+I,G=r[F];return G||(G=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:L,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:I}),r[F]=G),G})(x,C);return M.formatToParts(w)},"a"),g=o(function(E,x){for(var C=h(E,x),w=[],M=0;M<C.length;M+=1){var L=C[M],z=L.type,I=L.value,F=n[z];F>=0&&(w[F]=parseInt(I,10))}var G=w[3],q=G===24?0:G,B=w[0]+"-"+w[1]+"-"+w[2]+" "+q+":"+w[4]+":"+w[5]+":000",k=+E;return(f.utc(B).valueOf()-(k-=k%1e3))/6e4},"u"),y=c.prototype;y.tz=function(E,x){E===void 0&&(E=d);var C,w=this.utcOffset(),M=this.toDate(),L=M.toLocaleString("en-US",{timeZone:E}),z=Math.round((M-new Date(L))/1e3/60),I=15*-Math.round(M.getTimezoneOffset()/15)-z;if(!Number(I))C=this.utcOffset(0,x);else if(C=f(L,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(I,!0),x){var F=C.utcOffset();C=C.add(w-F,"minute")}return C.$x.$timezone=E,C},y.offsetName=function(E){var x=this.$x.$timezone||f.tz.guess(),C=h(this.valueOf(),x,{timeZoneName:E}).find((function(w){return w.type.toLowerCase()==="timezonename"}));return C&&C.value};var v=y.startOf;y.startOf=function(E,x){if(!this.$x||!this.$x.$timezone)return v.call(this,E,x);var C=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return v.call(C,E,x).tz(this.$x.$timezone,!0)},f.tz=function(E,x,C){var w=C&&x,M=C||x||d,L=g(+f(),M);if(typeof E!="string")return f(E).tz(M);var z=(function(q,B,k){var et=q-60*B*1e3,nt=g(et,k);if(B===nt)return[et,B];var ot=g(et-=60*(nt-B)*1e3,k);return nt===ot?[et,nt]:[q-60*Math.min(nt,ot)*1e3,Math.max(nt,ot)]})(f.utc(E,w).valueOf(),L,M),I=z[0],F=z[1],G=f(I).utcOffset(F);return G.$x.$timezone=M,G},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(E){d=E}}}))})(em)),em.exports}o(JG,"requireTimezone");var WG=JG();const tY=bs(WG);var nm={exports:{}},eY=nm.exports,vA;function nY(){return vA||(vA=1,(function(t,e){(function(n,r){t.exports=r()})(eY,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,c){var f=a.prototype,d=f.format;c.en.formats=n,f.format=function(h){h===void 0&&(h="YYYY-MM-DDTHH:mm:ssZ");var g=this.$locale().formats,y=(function(v,E){return v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,C,w){var M=w&&w.toUpperCase();return C||E[w]||n[w]||E[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,z,I){return z||I.slice(1)}))}))})(h,g===void 0?{}:g);return d.call(this,y)}}}))})(nm)),nm.exports}o(nY,"requireLocalizedFormat");var rY=nY();const iY=bs(rY);var rm={exports:{}},im={exports:{}},oY=im.exports,SA;function w1(){return SA||(SA=1,(function(t,e){(function(n,r){t.exports=r()})(oY,(function(){var n=1e3,r=6e4,a=36e5,c="millisecond",f="second",d="minute",h="hour",g="day",y="week",v="month",E="quarter",x="year",C="date",w="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,z={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o(function(V){var J=["th","st","nd","rd"],N=V%100;return"["+V+(J[(N-20)%10]||J[N]||J[0])+"]"},"ordinal")},I=o(function(V,J,N){var U=String(V);return!U||U.length>=J?V:""+Array(J+1-U.length).join(N)+V},"m"),F={s:I,z:o(function(V){var J=-V.utcOffset(),N=Math.abs(J),U=Math.floor(N/60),j=N%60;return(J<=0?"+":"-")+I(U,2,"0")+":"+I(j,2,"0")},"z"),m:o(function V(J,N){if(J.date()<N.date())return-V(N,J);var U=12*(N.year()-J.year())+(N.month()-J.month()),j=J.clone().add(U,v),tt=N-j<0,it=J.clone().add(U+(tt?-1:1),v);return+(-(U+(N-j)/(tt?j-it:it-j))||0)},"t"),a:o(function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},"a"),p:o(function(V){return{M:v,y:x,w:y,d:g,D:C,h,m:d,s:f,ms:c,Q:E}[V]||String(V||"").toLowerCase().replace(/s$/,"")},"p"),u:o(function(V){return V===void 0},"u")},G="en",q={};q[G]=z;var B="$isDayjsObject",k=o(function(V){return V instanceof ft||!(!V||!V[B])},"S"),et=o(function V(J,N,U){var j;if(!J)return G;if(typeof J=="string"){var tt=J.toLowerCase();q[tt]&&(j=tt),N&&(q[tt]=N,j=tt);var it=J.split("-");if(!j&&it.length>1)return V(it[0])}else{var _=J.name;q[_]=J,j=_}return!U&&j&&(G=j),j||!U&&G},"t"),nt=o(function(V,J){if(k(V))return V.clone();var N=typeof J=="object"?J:{};return N.date=V,N.args=arguments,new ft(N)},"O"),ot=F;ot.l=et,ot.i=k,ot.w=function(V,J){return nt(V,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var ft=(function(){function V(N){this.$L=et(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[B]=!0}o(V,"M");var J=V.prototype;return J.parse=function(N){this.$d=(function(U){var j=U.date,tt=U.utc;if(j===null)return new Date(NaN);if(ot.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var it=j.match(M);if(it){var _=it[2]-1||0,Y=(it[7]||"0").substring(0,3);return tt?new Date(Date.UTC(it[1],_,it[3]||1,it[4]||0,it[5]||0,it[6]||0,Y)):new Date(it[1],_,it[3]||1,it[4]||0,it[5]||0,it[6]||0,Y)}}return new Date(j)})(N),this.init()},J.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},J.$utils=function(){return ot},J.isValid=function(){return this.$d.toString()!==w},J.isSame=function(N,U){var j=nt(N);return this.startOf(U)<=j&&j<=this.endOf(U)},J.isAfter=function(N,U){return nt(N)<this.startOf(U)},J.isBefore=function(N,U){return this.endOf(U)<nt(N)},J.$g=function(N,U,j){return ot.u(N)?this[U]:this.set(j,N)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(N,U){var j=this,tt=!!ot.u(U)||U,it=ot.p(N),_=o(function(Kt,ye){var sn=ot.w(j.$u?Date.UTC(j.$y,ye,Kt):new Date(j.$y,ye,Kt),j);return tt?sn:sn.endOf(g)},"l"),Y=o(function(Kt,ye){return ot.w(j.toDate()[Kt].apply(j.toDate("s"),(tt?[0,0,0,0]:[23,59,59,999]).slice(ye)),j)},"$"),lt=this.$W,dt=this.$M,ht=this.$D,yt="set"+(this.$u?"UTC":"");switch(it){case x:return tt?_(1,0):_(31,11);case v:return tt?_(1,dt):_(0,dt+1);case y:var Ct=this.$locale().weekStart||0,te=(lt<Ct?lt+7:lt)-Ct;return _(tt?ht-te:ht+(6-te),dt);case g:case C:return Y(yt+"Hours",0);case h:return Y(yt+"Minutes",1);case d:return Y(yt+"Seconds",2);case f:return Y(yt+"Milliseconds",3);default:return this.clone()}},J.endOf=function(N){return this.startOf(N,!1)},J.$set=function(N,U){var j,tt=ot.p(N),it="set"+(this.$u?"UTC":""),_=(j={},j[g]=it+"Date",j[C]=it+"Date",j[v]=it+"Month",j[x]=it+"FullYear",j[h]=it+"Hours",j[d]=it+"Minutes",j[f]=it+"Seconds",j[c]=it+"Milliseconds",j)[tt],Y=tt===g?this.$D+(U-this.$W):U;if(tt===v||tt===x){var lt=this.clone().set(C,1);lt.$d[_](Y),lt.init(),this.$d=lt.set(C,Math.min(this.$D,lt.daysInMonth())).$d}else _&&this.$d[_](Y);return this.init(),this},J.set=function(N,U){return this.clone().$set(N,U)},J.get=function(N){return this[ot.p(N)]()},J.add=function(N,U){var j,tt=this;N=Number(N);var it=ot.p(U),_=o(function(dt){var ht=nt(tt);return ot.w(ht.date(ht.date()+Math.round(dt*N)),tt)},"y");if(it===v)return this.set(v,this.$M+N);if(it===x)return this.set(x,this.$y+N);if(it===g)return _(1);if(it===y)return _(7);var Y=(j={},j[d]=r,j[h]=a,j[f]=n,j)[it]||1,lt=this.$d.getTime()+N*Y;return ot.w(lt,this)},J.subtract=function(N,U){return this.add(-1*N,U)},J.format=function(N){var U=this,j=this.$locale();if(!this.isValid())return j.invalidDate||w;var tt=N||"YYYY-MM-DDTHH:mm:ssZ",it=ot.z(this),_=this.$H,Y=this.$m,lt=this.$M,dt=j.weekdays,ht=j.months,yt=j.meridiem,Ct=o(function(ye,sn,Gn,Xr){return ye&&(ye[sn]||ye(U,tt))||Gn[sn].slice(0,Xr)},"h"),te=o(function(ye){return ot.s(_%12||12,ye,"0")},"d"),Kt=yt||function(ye,sn,Gn){var Xr=ye<12?"AM":"PM";return Gn?Xr.toLowerCase():Xr};return tt.replace(L,(function(ye,sn){return sn||(function(Gn){switch(Gn){case"YY":return String(U.$y).slice(-2);case"YYYY":return ot.s(U.$y,4,"0");case"M":return lt+1;case"MM":return ot.s(lt+1,2,"0");case"MMM":return Ct(j.monthsShort,lt,ht,3);case"MMMM":return Ct(ht,lt);case"D":return U.$D;case"DD":return ot.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Ct(j.weekdaysMin,U.$W,dt,2);case"ddd":return Ct(j.weekdaysShort,U.$W,dt,3);case"dddd":return dt[U.$W];case"H":return String(_);case"HH":return ot.s(_,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return Kt(_,Y,!0);case"A":return Kt(_,Y,!1);case"m":return String(Y);case"mm":return ot.s(Y,2,"0");case"s":return String(U.$s);case"ss":return ot.s(U.$s,2,"0");case"SSS":return ot.s(U.$ms,3,"0");case"Z":return it}return null})(ye)||it.replace(":","")}))},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(N,U,j){var tt,it=this,_=ot.p(U),Y=nt(N),lt=(Y.utcOffset()-this.utcOffset())*r,dt=this-Y,ht=o(function(){return ot.m(it,Y)},"D");switch(_){case x:tt=ht()/12;break;case v:tt=ht();break;case E:tt=ht()/3;break;case y:tt=(dt-lt)/6048e5;break;case g:tt=(dt-lt)/864e5;break;case h:tt=dt/a;break;case d:tt=dt/r;break;case f:tt=dt/n;break;default:tt=dt}return j?tt:ot.a(tt)},J.daysInMonth=function(){return this.endOf(v).$D},J.$locale=function(){return q[this.$L]},J.locale=function(N,U){if(!N)return this.$L;var j=this.clone(),tt=et(N,U,!0);return tt&&(j.$L=tt),j},J.clone=function(){return ot.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},V})(),mt=ft.prototype;return nt.prototype=mt,[["$ms",c],["$s",f],["$m",d],["$H",h],["$W",g],["$M",v],["$y",x],["$D",C]].forEach((function(V){mt[V[1]]=function(J){return this.$g(J,V[0],V[1])}})),nt.extend=function(V,J){return V.$i||(V(J,ft,nt),V.$i=!0),nt},nt.locale=et,nt.isDayjs=k,nt.unix=function(V){return nt(1e3*V)},nt.en=q[G],nt.Ls=q,nt.p={},nt}))})(im)),im.exports}o(w1,"requireDayjs_min");var sY=rm.exports,xA;function aY(){return xA||(xA=1,(function(t,e){(function(n,r){t.exports=r(w1())})(sY,(function(n){function r(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}o(r,"t");var a=r(n),c="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),f={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},d={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},h=/[١٢٣٤٥٦٧٨٩٠]/g,g=/،/g,y=/\d/g,v=/,/g,E={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:c,monthsShort:c,weekStart:6,meridiem:o(function(x){return x>12?"م":"ص"},"meridiem"),relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:o(function(x){return x.replace(h,(function(C){return d[C]})).replace(g,",")},"preparse"),postformat:o(function(x){return x.replace(y,(function(C){return f[C]})).replace(v,"،")},"postformat"),ordinal:o(function(x){return x},"ordinal"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return a.default.locale(E,null,!0),E}))})(rm)),rm.exports}o(aY,"requireAr");aY();var om={exports:{}},lY=om.exports,EA;function cY(){return EA||(EA=1,(function(t,e){(function(n,r){t.exports=r(w1())})(lY,(function(n){function r(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}o(r,"n");var a=r(n),c={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:o(function(f){return""+f+(f===1?"er":"")},"ordinal")};return a.default.locale(c,null,!0),c}))})(om)),om.exports}o(cY,"requireFr");cY();var uY=w1();const fY=bs(uY),no=fY,Tu=class Tu{alepha=Ot(Ke);ref=null;timeouts=[];intervals=[];constructor(){for(const e of Tu.PLUGINS)no.extend(e)}onStart=rr({on:"start",handler:o(async()=>{await Promise.all(this.intervals.map(async e=>{e.timer==null&&(await e.run(),e.timer=setInterval(e.run,e.duration))}))},"handler")});onStop=rr({on:"stop",handler:o(()=>{for(const e of[...this.timeouts])this.clearTimeout(e);for(const e of this.intervals)clearInterval(e.timer),e.duration=0,e.timer=null},"handler")});setLocale(e){no.locale(e)}isDateTime(e){return no.isDayjs(e)}utc(e){return no.utc(e)}of(e){return no(e)}toISOString(e=this.now()){return this.of(e).toISOString()}now(){return this.getCurrentDate()}nowISOString(){return this.ref?this.ref.toISOString():new Date().toISOString()}nowMillis(){return this.ref?this.ref.valueOf():Date.now()}getCurrentDate(){return this.ref?this.ref:no()}duration=o((e,n)=>Array.isArray(e)?no.duration(e[0],e[1]):typeof e=="number"?no.duration(e,n||"milliseconds"):e,"duration");isDurationLike(e){try{return no.isDuration(this.duration(e))}catch{return!1}}async tick(){await new Promise(e=>setTimeout(e,0))}wait(e,n={}){return new Promise(r=>{let a,c;const f=this.createTimeout(()=>{n.signal&&a&&n.signal.removeEventListener("abort",c),r()},e,n.now);n.signal&&(a=o(()=>this.clearTimeout(f),"clearTimeout2"),c=o(()=>{a(),r()},"callback"),n.signal.addEventListener("abort",c))})}createInterval(e,n,r=!1){const a={run:e,duration:this.duration(n).asMilliseconds()};return this.intervals.push(a),r&&(a.timer=setInterval(a.run,a.duration)),a}createTimeout(e,n,r){if(this.ref&&r)return this.of(r).add(this.duration(n))<this.now()&&e(),{now:r,duration:0,callback:o(()=>{},"callback"),clear:o(()=>{},"clear")};const a={now:r??this.now().valueOf(),duration:this.duration(n).asMilliseconds(),callback:e,clear:o(()=>this.clearTimeout(a),"clear")};return a.timer=setTimeout(()=>{const c=this.timeouts.indexOf(a);c!==-1&&this.timeouts.splice(c,1),a.callback()},a.duration),this.timeouts.push(a),a}clearTimeout(e){clearTimeout(e.timer),e.duration=0,e.timer=null;const n=this.timeouts.indexOf(e);n!==-1&&this.timeouts.splice(n,1)}clearInterval(e){clearInterval(e.timer),e.duration=0,e.timer=null}async deadline(e,n){const r=new AbortController,a=this.createTimeout(()=>r.abort(),n);try{return await e(r.signal)}finally{this.clearTimeout(a)}}async travel(e,n){this.ref=this.ref||this.now(),this.ref=this.ref.add(this.duration(e,n));const r=this.duration(e,n).asMilliseconds(),a=Date.now();for(const c of[...this.timeouts]){if(!c.timer)continue;clearTimeout(c.timer),c.timer=null;const f=a-c.now;if(c.duration=c.duration-f-r,c.duration<=0){const d=this.timeouts.indexOf(c);d!==-1&&this.timeouts.splice(d,1),c.callback()}else c.timer=setTimeout(()=>{const d=this.timeouts.indexOf(c);d!==-1&&this.timeouts.splice(d,1),c.callback()},c.duration)}for(const c of this.intervals){if(!c.timer)continue;clearInterval(c.timer);const f=Math.floor(r/c.duration);for(let d=0;d<f;d++)await c.run();c.timer=-1}await this.tick()}pause(){return this.ref=this.ref||this.now(),this.ref}reset(){this.ref=null}};o(Tu,"DateTimeProvider"),dn(Tu,"PLUGINS",[YG,FG,QG,tY,iY]);let Ni=Tu;const eR=o(t=>cs(Rm,t),"$interval"),XS=class XS extends ni{dateTimeProvider=Ot(Ni);called=0;onInit(){this.dateTimeProvider.createInterval(async()=>{await this.options.handler(),this.called+=1},this.options.duration)}};o(XS,"IntervalPrimitive");let Rm=XS;eR[Un]=Rm;const nR=Fn({name:"alepha.datetime",primitives:[eR],services:[Ni]}),Qh=o(()=>{const t=A.useContext(tR);if(!t)throw new _t("Hook 'useAlepha()' must be used within an AlephaContext.Provider");return t},"useAlepha"),T1=o(t=>{const e=Qh();return A.useMemo(()=>e.inject(t),[])},"useInject"),dY=O.object({path:O.text({description:"Pathname used to access the action."}),method:O.optional(O.text({description:"HTTP method. Omitted when GET (the default for ~75% of actions)."})),body:O.optional(O.text({description:"Reference to a definitions pool entry (e.g. '$0') for the request body JSON Schema."})),response:O.optional(O.text({description:"Reference to a definitions pool entry (e.g. '$0') for the response JSON Schema."})),contentType:O.optional(O.text({description:"Content type for the request body. Only present for non-JSON types (e.g. 'multipart/form-data'). When absent, defaults to application/json."})),service:O.optional(O.text({description:"Service name associated with the action, used for service discovery and routing."}))}),rR=O.object({prefix:O.optional(O.text()),definitions:O.optional(O.record(O.text(),O.string({description:"Pre-stringified JSON Schema. Values can be 2KB+, so t.string() (no maxLength) is used instead of t.text()."}))),actions:O.record(O.text(),dY),permissions:O.optional(O.array(O.text()))}),mY=di({name:"alepha.server.request.apiLinks",schema:O.optional(rR)}),iR=di({name:"alepha.server.links.options",description:"Configuration options for the links module.",schema:O.object({batch:O.boolean({description:"Enable batch collection for browser-side calls.",default:!0})}),default:{batch:!0}}),QS=class QS{};o(QS,"LogDestinationProvider");let Ml=QS;const ZS=class ZS{};o(ZS,"LogFormatterProvider");let ea=ZS;const JS=class JS{alepha=Ot(Ke);formatter=Ot(ea);destination=Ot(Ml);dateTimeProvider=Ot(Ni);levels={SILENT:-1,ERROR:0,WARN:1,INFO:2,DEBUG:3,TRACE:4};service;module;app;appLogLevel="INFO";logLevel="INFO";constructor(e,n){this.service=e,this.module=n,this.app=this.alepha.env.APP_NAME}get context(){return this.alepha.context.get("context")}get level(){const e=this.alepha.store.get("alepha.logger.level");return e&&e!==this.appLogLevel&&(this.appLogLevel=e,this.logLevel=this.parseLevel(this.appLogLevel,this.module)),this.logLevel}parseLevel(e,n){const r=e.toLowerCase().split(/[,;]/);for(const a of r){const c=a.trim();if(c&&(c.includes(":")||c.includes("="))){const[f,d]=c.split(/[:=]/),h=f.trim(),g=d?.trim();if(!g)continue;if(this.matchesPattern(n,h))try{return this.asLogLevel(g)}catch{throw new _t(`Invalid log level '${d?.trim()}' for module pattern '${h}'`)}}}for(const a of r){const c=a.trim();if(c&&!c.includes(":")&&!c.includes("="))try{return this.asLogLevel(c)}catch{throw new Error(`Invalid global log level "${c}"`)}}return"INFO"}matchesPattern(e,n){if(n.includes("*")){const r=n.replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp(`^${r}`).test(e)}return e.startsWith(n)}asLogLevel(e){const n=e.trim().toUpperCase();if(this.levels[n]!==void 0)return n;throw new _t(`Invalid log level: ${e}`)}error(e,n){this.log("ERROR",e,n)}warn(e,n){this.log("WARN",e,n)}info(e,n){this.log("INFO",e,n)}debug(e,n){this.log("DEBUG",e,n)}trace(e,n){this.log("TRACE",e,n)}log(e,n,r){let a="";typeof n=="string"?a=n:typeof r=="string"&&(a=r);let c;typeof r=="object"&&r?c=r:typeof n=="object"&&n&&(c=n);const f={level:e,message:a,data:c,context:this.context,service:this.service,module:this.module,app:this.app,timestamp:this.dateTimeProvider.nowMillis()};if(this.levels[e]>this.levels[this.level]){this.emit(f);return}const d=this.formatter.format(f);this.emit(f,d),this.destination.write(d,f)}emit(e,n){this.alepha.events.emit("log",{message:n,entry:e},{catch:!0}).catch(()=>null)}};o(JS,"Logger");let Ol=JS;const mi=o((t={})=>{const{alepha:e,service:n,module:r}=Pu();return Ot(Ol,{lifetime:"transient",args:[t.name??n?.name??"Func",r?.name??e.env.MODULE_NAME??"app"]})},"$logger");mi[Un]=Ol;const pl=class pl{alepha=Ot(Ke);enabled=!0;constructor(){this.enabled=this.isEnabled()}isEnabled(){return this.alepha.env.NO_COLOR?!1:this.alepha.env.FORCE_COLOR?!0:!this.alepha.isProduction()}set(e,n,r=pl.COLORS.RESET){return this.enabled?`${pl.COLORS[e]}${n}${r}`:n}};o(pl,"ConsoleColorProvider"),dn(pl,"COLORS",{RESET:"\x1B[0m",BLACK:"\x1B[30m",RED:"\x1B[31m",GREEN:"\x1B[32m",ORANGE:"\x1B[33m",BLUE:"\x1B[34m",PURPLE:"\x1B[35m",CYAN:"\x1B[36m",GREY_LIGHT:"\x1B[37m",GREY_LIGHT_BOLD:"\x1B[1;37m",GREY_DARK:"\x1B[90m",GREY_DARK_BOLD:"\x1B[1;90m",WHITE:"\x1B[97m",WHITE_BOLD:"\x1B[1;97m",DIM:"\x1B[2m",BOLD:"\x1B[1m",INVERSE:"\x1B[7m",SILENT:"",ERROR:"\x1B[31m",WARN:"\x1B[33m",INFO:"\x1B[32m",DEBUG:"\x1B[34m",TRACE:"\x1B[90m"});let Nm=pl;const WS=class WS extends Ml{write(e){console.log(e)}};o(WS,"ConsoleDestinationProvider");let _m=WS;const tx=class tx extends ea{format(e){const n={level:e.level,message:e.message,context:e.context,service:e.service,module:e.module,app:e.app,time:e.timestamp};return e.data instanceof Error?n.error=this.formatJsonError(e.data):n.data=e.data,JSON.stringify(n)}formatJsonError(e){return{name:e.name,message:e.message,stack:e.stack,cause:e.cause instanceof Error?this.formatJsonError(e.cause):void 0}}};o(tx,"JsonFormatterProvider");let vu=tx;const ex=class ex extends Ml{entries=[];options={maxEntries:1e4};write(e,n){this.entries.push({...n,formatted:e}),this.entries.length>this.options.maxEntries&&(this.entries=this.entries.slice(-Math.floor(this.options.maxEntries*.8)))}get logs(){return[...this.entries]}clear(){this.entries=[]}};o(ex,"MemoryDestinationProvider");let Su=ex;const nx=class nx extends ea{color=Ot(Nm);alepha=Ot(Ke);format(e){const{data:n,timestamp:r}=e;let a="",c="";const f=n instanceof Error;if(f)c=this.formatError(n);else if(n){let g="";if("error"in n&&n.error instanceof Error&&(g=this.formatError(n.error),delete n.error),Object.keys(n).length>0)try{c=JSON.stringify(n)}catch{c="[Unserializable Object]"}g&&(c+=`
|
|
10
|
-
${g}`)}a+=this.color.set("GREY_DARK",`[${this.formatTimestamp(r)}]`),a+=" ",a+=this.color.set(e.level,e.level.toUpperCase()),a+=" ",e.app&&(a+=this.color.set("GREY_DARK",`${e.app}`),a+=" "),e.context&&(a+=this.color.set("GREY_DARK",`(${this.formatContext(e.context)})`),a+=" ");const d=this.color.set("GREY_LIGHT",`${e.module}.`),h=this.color.set(this.alepha.isBrowser()?"RESET":"WHITE",e.service);return a+=`<${d}${h}>`,e.message?a+=`: ${this.color.set("CYAN",e.message)}`:a+=":",c&&(f?a+=`
|
|
11
|
-
${c}`:a+=` ${this.color.set("GREY_DARK",c)}`),a}formatTimestamp(e){const n=new Date(e),r=n.getHours(),a=n.getMinutes(),c=n.getSeconds(),f=n.getMilliseconds();return`${this.pad2(r)}:${this.pad2(a)}:${this.pad2(c)}.${this.pad3(f)}`}pad2=o(e=>(e<10?"0":"")+e,"pad2");pad3=o(e=>e<10?`00${e}`:e<100?`0${e}`:`${e}`,"pad3");formatContext(e){return this.alepha.isProduction()?e:e.slice(0,8)}formatError(e){if(this.alepha.isBrowser())return setTimeout(()=>{console.error(e)}),"";const n=this.alepha.store.get("alepha.vite.server");n?.ssrFixStacktrace(e);let r=e.stack??e.message;const a=e;for(;a.cause&&a.cause instanceof Error;)n?.ssrFixStacktrace(a.cause),r+=`
|
|
12
|
-
Caused by: ${a.cause.stack??a.cause.message}`,a.cause=a.cause.cause;return r}};o(nx,"PrettyFormatterProvider");let xu=nx;const rx=class rx extends ea{format(e){let n="";if(n+=`${e.message}`,e.data instanceof Error){n+=`
|
|
13
|
-
${e.data.message}`;let r=e.data.cause;for(;r instanceof Error;)n+=`
|
|
14
|
-
Caused by: ${r.message}`,r=r.cause}return n}};o(rx,"RawFormatterProvider");let Dm=rx;O.object({level:O.enum(["SILENT","TRACE","DEBUG","INFO","WARN","ERROR"]),message:O.text({size:"rich"}),service:O.text(),module:O.text(),context:O.optional(O.text()),app:O.optional(O.text()),data:O.optional(O.any()),timestamp:O.number()});Fn({name:"alepha.logger",primitives:[mi],services:[Ol,_m,Su,vu,xu,Dm,Nm],register:o(t=>{const e=t.parseEnv(hY),n=o(()=>{if(t.isTest()&&!e.LOG_LEVEL){const a=o(c=>{if(c.task?.result?.state==="fail"){const f=t.inject(Su);for(const d of f.logs)console.log(d.formatted)}},"printOnError");try{t.store.get("alepha.test.afterEach")?.(a),t.store.get("alepha.test.onTestFinished")?.(a)}catch{}return Su}return _m},"getLogDestinationProvider"),r=o(()=>e.LOG_FORMAT?e.LOG_FORMAT==="json"?vu:e.LOG_FORMAT==="raw"?Dm:xu:t.isProduction()&&!t.isBrowser()?vu:xu,"getLogFormatterProvider");t.with({optional:!0,provide:Ml,use:n()}),t.with({optional:!0,provide:ea,use:r()}),t.store.set("alepha.logger",t.inject(Ol,{lifetime:"transient",args:["Alepha","alepha.core"]})),t.store.set("alepha.logger.level",e.LOG_LEVEL??(t.isTest()?"trace":"info"))},"register")});const hY=O.object({LOG_LEVEL:O.optional(O.text({description:`Application log level on startup.
|
|
15
|
-
Levels are: trace, debug, info, warn, error, silent
|
|
16
|
-
Level can be set for a specific module:
|
|
17
|
-
"my.module.name:debug,info" -> Set debug level for my.module.name and info for all other modules
|
|
18
|
-
"alepha:trace,info" -> Set trace level for all alepha modules and info for all other modules`,lowercase:!0})),LOG_FORMAT:O.optional(O.enum(["json","pretty","raw"],{description:"Default log format for the application.",lowercase:!0}))}),ix=class ix extends _t{};o(ix,"CacheError");let J0=ix;const ox=class ox{encoder=new TextEncoder;decoder=new TextDecoder;codes={BINARY:1,JSON:2,STRING:3,COMPRESSED:4};async setTyped(e,n,r,a){let c=this.serialize(r);a?.compress&&(c=await this.compress(c)),await this.set(e,n,c,a?.ttl)}async getTyped(e,n){const r=await this.get(e,n);if(r){if(r[0]===this.codes.COMPRESSED){const a=await this.decompress(r.subarray(1));return this.deserialize(a)}return this.deserialize(r)}}async invalidateKeys(e,n){const r=[];for(const a of n)if(a.endsWith("*")){const c=await this.keys(e,a.slice(0,-1));r.push(...c)}else r.push(a);await this.del(e,...r)}serialize(e){if(e instanceof Uint8Array){const c=new Uint8Array(1+e.length);return c[0]=this.codes.BINARY,c.set(e,1),c}const n=this.encoder.encode(typeof e=="string"?e:JSON.stringify(e)),r=typeof e=="string"?this.codes.STRING:this.codes.JSON,a=new Uint8Array(1+n.length);return a[0]=r,a.set(n,1),a}deserialize(e){const n=e[0],r=e.slice(1);if(n===this.codes.BINARY)return r;if(n===this.codes.JSON)return JSON.parse(this.decoder.decode(r));if(n===this.codes.STRING)return this.decoder.decode(r);throw new J0(`Unknown serialization type: ${n}`)}async compress(e){const n=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),r=new Uint8Array(await new Response(new Blob([n]).stream().pipeThrough(new CompressionStream("gzip"))).arrayBuffer()),a=new Uint8Array(1+r.length);return a[0]=this.codes.COMPRESSED,a.set(r,1),a}async decompress(e){const n=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(await new Response(new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer())}};o(ox,"CacheProvider");let Rl=ox;const sx=class sx extends Rl{dateTimeProvider=Ot(Ni);log=mi();store={};getCalls=[];setCalls=[];delCalls=[];_stats={hits:0,misses:0,sets:0,deletes:0};getError=null;setError=null;delError=null;constructor(e={}){super(),this.getError=e.getError??null,this.setError=e.setError??null,this.delError=e.delError??null}async get(e,n){if(this.getCalls.push({name:e,key:n,timestamp:Date.now()}),this.getError)throw this.getError;const r=this.store[e]?.[n]?.data;return r!==void 0?this._stats.hits++:this._stats.misses++,r}async set(e,n,r,a){if(this.setCalls.push({name:e,key:n,value:r,ttl:a,timestamp:Date.now()}),this._stats.sets++,this.setError)throw this.setError;return this.store[e]==null&&(this.store[e]={}),this.store[e][n]??={},this.store[e][n].data=r,this.log.debug("Setting cache for name",{name:e,key:n,ttl:a}),this.store[e][n].timeout&&(this.dateTimeProvider.clearTimeout(this.store[e][n].timeout),this.store[e][n].timeout=void 0),a&&(this.store[e][n].timeout=this.dateTimeProvider.createTimeout(()=>this.del(e,n),a)),this.store[e][n].data}async del(e,...n){if(this.delCalls.push({name:e,keys:n,timestamp:Date.now()}),this._stats.deletes++,this.delError)throw this.delError;if(n.length===0){if(this.log.debug("Deleting all cache for name",{name:e}),this.store[e])for(const r of Object.keys(this.store[e])){const a=this.store[e][r]?.timeout;a&&this.dateTimeProvider.clearTimeout(a)}delete this.store[e];return}this.log.debug("Deleting cache for name",{name:e,keys:n});for(const r of n){if(this.store[e]==null)break;const a=this.store[e][r]?.timeout;a&&this.dateTimeProvider.clearTimeout(a),delete this.store[e][r]}Object.keys(this.store[e]??{}).length===0&&delete this.store[e]}async has(e,n){return this.store[e]?.[n]?.data!=null}async keys(e,n){const r=this.store[e]??{},a=Object.keys(r);return n?a.filter(c=>c.startsWith(n)):a}async clear(){this.log.debug("Clearing all cache");for(const e of Object.keys(this.store))for(const n of Object.keys(this.store[e])){const r=this.store[e][n]?.timeout;r&&this.dateTimeProvider.clearTimeout(r)}this.store={}}async incr(e,n,r){this.store[e]==null&&(this.store[e]={});const a=this.store[e][n]?.data;let c=0;if(a){const d=new TextDecoder().decode(a);c=Number.parseInt(d,10)||0}const f=c+r;return this.store[e][n]??={},this.store[e][n].data=new TextEncoder().encode(String(f)),f}stats(){return{...this._stats}}wasSet(e,n){return n===void 0?this.setCalls.some(r=>r.name===e):this.setCalls.some(r=>r.name===e&&r.key===n)}wasGet(e,n){return n===void 0?this.getCalls.some(r=>r.name===e):this.getCalls.some(r=>r.name===e&&r.key===n)}wasDeleted(e,n){return n===void 0?this.delCalls.some(r=>r.name===e):this.delCalls.some(r=>r.name===e&&r.keys.includes(n))}size(e){return e===void 0?Object.values(this.store).reduce((n,r)=>n+Object.keys(r).length,0):Object.keys(this.store[e]??{}).length}names(){return Object.keys(this.store)}reset(){for(const e of Object.keys(this.store))for(const n of Object.keys(this.store[e])){const r=this.store[e][n]?.timeout;r&&this.dateTimeProvider.clearTimeout(r)}this.store={},this.getCalls=[],this.setCalls=[],this.delCalls=[],this._stats={hits:0,misses:0,sets:0,deletes:0},this.getError=null,this.setError=null,this.delError=null}};o(sx,"MemoryCacheProvider");let _u=sx;function Zh(t={}){const e=cs(jm,t);if(t.handler)return Object.setPrototypeOf(o((...a)=>e.run(...a),"fn"),e);const n=o(r=>(async(...a)=>{const c=e.key(...a),f=await e.get(c);if(f!==void 0)return f;const d=await r(...a);return e.set(c,d).catch(()=>{}),d}),"mw");return n[Ks]={name:"$cache",options:t},Object.setPrototypeOf(n,e)}o(Zh,"$cache");const pY=di({name:"alepha.cache.options",schema:O.object({enabled:O.boolean({default:!0,description:"Whether caching is enabled."}),defaultTtl:O.number({default:300,description:"Default time to live for cache entries in seconds."})}),default:{enabled:!0,defaultTtl:300}}),ax=class ax extends ni{settings=Xh(pY);dateTimeProvider=Ot(Ni);provider=this.$provider();get container(){return this.options.name??`${this.config.service.name}:${this.config.propertyKey}`}async run(...e){const n=this.options.handler;if(!n)throw new Error("Cache handler is not defined.");const r=this.key(...e),a=await this.get(r);if(a!==void 0)return a;const c=await n(...e);return await this.set(r,c),c}key(...e){return this.options.key?this.options.key(...e):JSON.stringify(e)}async incr(e,n=1){return this.provider.incr(this.container,e,n)}async invalidate(...e){await this.provider.invalidateKeys(this.container,e)}async set(e,n,r){if(!this.alepha.isStarted()||this.options.disabled||!this.settings.enabled)return;const a=this.dateTimeProvider.duration(r??this.options.ttl??[this.settings.defaultTtl,"seconds"]).as("milliseconds");await this.provider.setTyped(this.container,e,n,{ttl:a>0?a:void 0,compress:this.options.compress})}async get(e){if(!(!this.alepha.isStarted()||this.options.disabled||!this.settings.enabled))return this.provider.getTyped(this.container,e)}$provider(){return this.options.provider?this.options.provider==="memory"?this.alepha.inject(_u):this.alepha.inject(this.options.provider):this.alepha.inject(Rl)}};o(ax,"CachePrimitive");let jm=ax;Zh[Un]=jm;Fn({name:"alepha.cache",primitives:[Zh],services:[Rl,_u],register:o(t=>t.with({optional:!0,provide:Rl,use:_u}),"register")});const gY=o((t,e)=>!!t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&"status"in t&&typeof t.status=="number"?e?t.status===e:!0:!1,"isHttpError"),rh=class rh extends _t{name="HttpError";static toJSON(e){const n={error:e.error,status:e.status,message:e.message};return e.details&&(n.details=e.details),e.requestId&&(n.requestId=e.requestId),e.reason&&(n.cause=e.reason),n}error;status;requestId;details;reason;constructor(e,n){super(e.message,{cause:n}),this.status=e.status??500,this.details=e.details,this.requestId=e.requestId,typeof e.cause=="object"?this.reason={name:e.cause.name,message:e.cause.message}:n instanceof Error&&(this.reason={name:n.name,message:n.message}),this.constructor.name==="HttpError"?this.error=e.error??yY[this.status]??"HttpError":this.error=this.constructor.name}};o(rh,"HttpError"),dn(rh,"is",gY);let na=rh;const yY={400:"BadRequestError",401:"UnauthorizedError",403:"ForbiddenError",404:"NotFoundError",405:"MethodNotAllowedError",409:"ConflictError",410:"GoneError",413:"PayloadTooLargeError",415:"UnsupportedMediaTypeError",429:"TooManyRequestsError",500:"InternalServerError",501:"NotImplementedError",502:"BadGatewayError",503:"ServiceUnavailableError",504:"GatewayTimeoutError"},bY=o(t=>{if(t.contentType==="multipart/form-data"||t.requestBodyType==="multipart/form-data")return!0;if(t.schema?.body&&"properties"in t.schema.body){const e=t.schema.body.properties;for(const n in e)if(e[n].format==="binary")return!0}return!1},"isMultipart"),vY=O.object({error:O.text({description:"HTTP error name"}),status:O.integer({description:"HTTP status code"}),message:O.text({description:"Short text which describe the error",size:"rich"}),details:O.optional(O.text({description:"Detailed description of the error",size:"rich"})),requestId:O.optional(O.text()),cause:O.optional(O.object({name:O.text(),message:O.text({description:"Cause Error message",size:"rich"})}))},{title:"HttpError",description:"Generic response after a failed operation"}),lx=class lx{log=mi();alepha=Ot(Ke);cache=Zh({provider:"memory",name:"http:client"});pendingRequests={};async fetchAction(e){const n=e.action,r=e.options??{},a=e.config??{},c=e.host??"",f={...r.request},d=n.method,h={},g=this.url(c,n,a);return await this.alepha.events.emit("client:onRequest",{route:n,config:a,options:r,headers:h,request:f}),f.method??=d,await this.body(f,h,n,a),f.headers={...a.headers,...Object.fromEntries(new Headers(f.headers).entries()),...h},await this.fetch(g,{...f,schema:n.schema,...r})}async fetch(e,n={}){const r={cache:n.localCache,schema:n.schema?.response,key:n.key};n.method??="GET",this.log.trace("Request",{url:e,method:n.method,body:n.body,headers:n.headers,options:r});const a=await this.cache.get(e);if(a&&n.method==="GET")if(a.etag)n.headers=new Headers(n.headers),n.headers.has("if-none-match")||n.headers.set("if-none-match",a.etag);else return{data:a.data,status:200,statusText:"OK",headers:new Headers};await this.alepha.events.emit("client:beforeFetch",{url:e,options:r,request:n});const c=r.key??JSON.stringify({url:e,method:n.method,body:n.body}),f=this.pendingRequests[c];return f?(this.log.info("Request already pending",c),f):(this.pendingRequests[c]=fetch(e,n).then(async d=>{this.log.debug("Response",{url:e,status:d.status});const h={data:await this.responseData(d,r),status:d.status,statusText:d.statusText,headers:d.headers,raw:d};if(n.method==="GET"){if(r.cache)await this.cache.set(e,{data:h.data},typeof r.cache=="boolean"?void 0:r.cache);else if(!this.alepha.isBrowser()){const g=d.headers.get("etag")??void 0;g&&await this.cache.set(e,{data:h.data,etag:g})}}return h}).finally(()=>{delete this.pendingRequests[c]}),this.pendingRequests[c])}url(e,n,r){let a=e;return n.prefix&&(a+=n.prefix),a+=n.path,a=this.pathVariables(a,n,r),a=this.queryParams(a,n,r),a}async body(e,n,r,a={}){if(typeof e.headers=="object"&&"content-type"in e.headers&&e.headers["content-type"]==="multipart/form-data"||bY(r)){typeof e.headers=="object"&&"content-type"in e.headers&&delete e.headers["content-type"];const f=new FormData;for(const[d,h]of Object.entries(a.body??{})){if(typeof h=="string"){f.append(d,h);continue}if(h instanceof Blob){f.append(d,h);continue}wG(h)&&f.append(d,new File([await h.arrayBuffer()],h.name,{type:h.type}))}e.body=f;return}!e.body&&r.schema?.body&&(n["content-type"]="application/json",e.body=this.alepha.codec.encode(r.schema?.body,a.body,{as:"string"}))}async responseData(e,n){if(e.status===304){let r=e.url;typeof window<"u"&&(r=r.replace(window.location.origin,""));const a=await this.cache.get(r);return a?a.data:""}if(e.status!==204){if(this.isMaybeFile(e))return this.createFileLike(e);if(e.headers.get("Content-Type")?.startsWith("text/"))return await e.text();if(e.headers.get("Content-Type")==="application/json"){const r=await e.json();if(e.status>=400){const a=this.alepha.codec.decode(vY,r),c=new na(a);throw await this.alepha.events.emit("client:onError",{error:c}),c}return n.schema?this.alepha.codec.decode(n.schema,r):r}if(e.status>=400){const r=new na({status:e.status,message:`An error occurred while fetching the resource. (${e.statusText})`});throw await this.alepha.events.emit("client:onError",{error:r}),r}return e}}isMaybeFile(e){const n=e.headers.get("Content-Type");return n?e.headers.get("Content-Disposition")?.includes("attachment")?!0:n.startsWith("application/octet-stream")||n.startsWith("application/pdf")||n.startsWith("application/zip")||n.startsWith("image/")||n.startsWith("video/")||n.startsWith("audio/"):!1}createFileLike(e,n=""){const r=(e.headers.get("Content-Disposition")??"").match(/filename="(.+)"/);return{name:r?.[1]?r[1]:n,type:e.headers.get("Content-Type")??"application/octet-stream",size:Number(e.headers.get("Content-Length")??0),lastModified:Date.now(),stream:o(()=>{throw new Error("Not implemented")},"stream"),arrayBuffer:o(async()=>await e.arrayBuffer(),"arrayBuffer"),text:o(async()=>await e.text(),"text")}}pathVariables(e,n,r={}){if(typeof r.params=="object"){const a=n.schema?.params?this.alepha.codec.decode(n.schema.params,r.params):r.params;for(const c of Object.keys(a))e=e.replace(`:${c}`,a[c]),e=e.replace(`{${c}}`,a[c])}return e}queryParams(e,n,r={}){if(typeof r.query=="object"){const a=n.schema?.query?this.alepha.codec.decode(n.schema.query,r.query??{}):r.query;for(const c of Object.keys(a))a[c]===void 0&&delete a[c],typeof a[c]=="object"&&(a[c]=JSON.stringify(a[c]));return`${e}?${new URLSearchParams(a).toString()}`}return e}};o(lx,"HttpClient");let Du=lx;const cx=class cx extends na{constructor(e="No permission to access this resource",n){super({message:e,status:403},n)}};o(cx,"ForbiddenError");let W0=cx;const ux=class ux extends na{name="UnauthorizedError";constructor(e="Not allowed to access this resource",n){super({message:e,status:401},n)}};o(ux,"UnauthorizedError");let tb=ux;const fx=class fx{headers={};status;body;redirect(e,n=302){this.status=n,this.headers.location=e}setStatus(e){return this.status=e,this}setHeader(e,n){return this.headers[e.toLowerCase()]=n,this}setBody(e){return this.body=e,this}};o(fx,"ServerReply");let eb=fx;O.object({ok:O.boolean({description:"True when operation succeed"}),id:O.optional(O.union([O.text(),O.integer()])),count:O.optional(O.number({description:"Number of resources affected"}))},{title:"Ok",description:"Generic response after a successful operation on a resource"});const oR=Fn({name:"alepha.server",primitives:[],services:[Du]}),Au=class Au{httpClient=Ot(Du);pending=[];scheduled=!1;add(e){return new Promise((n,r)=>{this.pending.push({entry:e,resolve:n,reject:r}),this.scheduled||(this.scheduled=!0,queueMicrotask(()=>{this.scheduled=!1,this.flush()}))})}async flush(){const e=this.pending.splice(0);if(e.length===0)return;if(e.length===1){const c=e[0];try{const f=await c.entry.directCall();c.resolve(f)}catch(f){c.reject(f)}return}const{unique:n,indexMap:r}=this.dedupe(e),a=this.chunk(n,Au.MAX_BATCH_SIZE);try{const c=(await Promise.all(a.map(f=>{const d=[...new Set(f.map(h=>h.entry.action))].join(",");return this.httpClient.fetch(`/api/_batch?actions=${d}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(f.map(h=>({action:h.entry.action,params:h.entry.params,query:h.entry.query,body:h.entry.body})))}).then(h=>h.data)}))).flat();for(let f=0;f<e.length;f++){const d=c[r[f]];d.status>=400?e[f].reject(new na({message:d.error??`${d.action} failed (${d.status})`,status:d.status})):e[f].resolve(d.data)}}catch(c){for(const f of e)f.reject(c)}}dedupe(e){const n=new Map,r=[],a=[];for(const c of e){const f=`${c.entry.action}:${JSON.stringify({params:c.entry.params,query:c.entry.query,body:c.entry.body})}`,d=n.get(f);if(d!==void 0)a.push(d);else{const h=r.length;n.set(f,h),r.push(c),a.push(h)}}return{unique:r,indexMap:a}}chunk(e,n){const r=[];for(let a=0;a<e.length;a+=n)r.push(e.slice(a,a+n));return r}};o(Au,"BatchCollector"),dn(Au,"MAX_BATCH_SIZE",20);let Im=Au;const Cu=class Cu{log=mi();alepha=Ot(Ke);httpClient=Ot(Du);serverLinkMap=new Map;actionMap=new Map;permissions=new Set;definitions={};lastLoadedRegistry=null;batchCollector;options=Xh(iR);getServerLinks(){return this.alepha.isBrowser()?(this.log.warn("Getting server links in the browser is not supported. Use `fetchLinks` to get links from the server."),[]):[...this.serverLinkMap.values()]}registerLink(e){if(this.alepha.isBrowser()){this.log.warn("Registering links in the browser is not supported. Use `fetchLinks` to get links from the server.");return}if(!e.handler&&!e.host)throw new _t("Can't create link - 'handler' or 'host' is required");if(this.serverLinkMap.get(e.name)?.handler&&e.handler)throw new _t(`Duplicate action name "${e.name}". Each action must have a unique name.`);this.serverLinkMap.set(e.name,e)}loadRegistry(e){this.lastLoadedRegistry=e,this.definitions=e.definitions??{},this.permissions.clear(),this.actionMap.clear();for(const[n,r]of Object.entries(e.actions))this.actionMap.set(n,{name:n,path:r.path,method:r.method,contentType:r.contentType,service:r.service,bodyRef:r.body,responseRef:r.response});if(e.permissions)for(const n of e.permissions)this.permissions.add(n)}get links(){const e=this.alepha.store.get("alepha.server.request.apiLinks");if(e){if(this.alepha.isBrowser())return(this.actionMap.size===0||e!==this.lastLoadedRegistry)&&this.loadRegistry(e),[...this.actionMap.values()];const n=[];for(const r of Object.keys(e.actions)){const a=this.serverLinkMap.get(r);a&&n.push(a)}return n}return[...this.serverLinkMap.values()]}async fetchLinks(){const{data:e}=await this.httpClient.fetch(`${Cu.path.apiLinks}`,{method:"GET",schema:{response:rR}});return this.alepha.store.set("alepha.server.request.apiLinks",e),this.loadRegistry(e),[...this.actionMap.values()]}client(e={}){return new Proxy({},{get:o((n,r)=>{if(typeof r=="string")return this.createVirtualAction(r,e)},"get")})}can(e){if(this.actionMap.size>0){if(this.actionMap.has(e))return!0}else if(this.serverLinkMap.has(e)||this.links.some(n=>n.name===e))return!0;if(e.includes(":")){if(e.endsWith("*")){const n=e.slice(0,-1);for(const r of this.permissions)if(r.startsWith(n))return!0;return!1}return this.permissions.has(e)}return!1}async follow(e,n={},r={}){this.log.trace("Following link",{name:e,config:n,options:r});const a=await this.getLinkByName(e,r);return a.handler&&!r.request?(this.log.trace("Local link found",{name:e}),a.handler({method:a.method,url:new URL(`http://localhost${a.path}`),query:n.query??{},body:n.body??{},params:n.params??{},headers:n.headers??{},metadata:{},reply:new eb},r)):(this.log.trace("Remote link found",{name:e,host:a.host,service:a.service}),this.options.batch&&this.alepha.isBrowser()&&!a.host?(this.batchCollector??=this.alepha.inject(Im),this.batchCollector.add({action:e,params:n.params,query:n.query,body:n.body,directCall:o(()=>this.followRemote(a,n,r).then(c=>c.data),"directCall")})):this.followRemote(a,n,r).then(c=>c.data))}createVirtualAction(e,n={}){const r=o(async(a={},c={})=>this.follow(e,a,{...n,...c}),"$");return Object.defineProperty(r,"name",{value:e,writable:!1}),r.run=async(a={},c={})=>this.follow(e,a,{...n,...c}),r.fetch=async(a={},c={})=>{const f=await this.getLinkByName(e,n);return this.followRemote(f,a,c)},r.can=()=>this.can(e),r.schema=()=>{const a=this.links.find(f=>f.name===e);if(!a)throw new _t(`Link ${e} not found.`);if(a.schema)return a.schema;const c={};return a.bodyRef&&this.definitions[a.bodyRef]&&(c.body=Ei(JSON.parse(this.definitions[a.bodyRef]))),a.responseRef&&this.definitions[a.responseRef]&&(c.response=Ei(JSON.parse(this.definitions[a.responseRef]))),a.schema=c,c},r}async followRemote(e,n={},r={}){r.request??={},r.request.headers=new Headers(r.request.headers);const a=this.alepha.store.get("alepha.http.request");a?.headers.authorization&&r.request.headers.set("authorization",a.headers.authorization);const c=this.alepha.context.get("context");typeof c=="string"&&r.request.headers.set("x-request-id",c);const f={...e,schema:{body:O.any(),response:O.any()}};return!e.host&&e.service&&(f.path=`/${e.service}${f.path}`),f.path=`${f.prefix??"/api"}${f.path}`,f.prefix=void 0,this.httpClient.fetchAction({host:e.host,config:n,options:r,action:f})}async getLinkByName(e,n={}){this.alepha.isBrowser()&&!this.alepha.store.get("alepha.server.request.apiLinks")&&await this.fetchLinks();const r=this.links.find(a=>a.name===e&&(!n.service||n.service===a.service));if(!r){const a=new tb(`Action ${e} not found.`);throw await this.alepha.events.emit("client:onError",{route:r,error:a}),a}return n.hostname?{...r,host:n.hostname}:r}};o(Cu,"LinkProvider"),dn(Cu,"path",{apiLinks:"/api/_links"});let ju=Cu;const sR=o(t=>Ot(ju).client(t),"$client");sR[Un]="$client";const aR=o(t=>cs(Lm,t),"$remote"),dx=class dx extends ni{get name(){return this.options.name??this.config.propertyKey}};o(dx,"RemotePrimitive");let Lm=dx;aR[Un]=Lm;const mx=class mx{pool=new Map;counter=0;ref(e){if(!e)return;const n=JSON.stringify(e),r=this.pool.get(n);if(r)return r;const a=`$${this.counter++}`;return this.pool.set(n,a),a}toJSON(){const e={};for(const[n,r]of this.pool)e[r]=n;return e}get size(){return this.pool.size}};o(mx,"DefinitionsPool");let nb=mx;const SY=Fn({name:"alepha.server.links",atoms:[mY,iR],primitives:[aR,sR],services:[ju,Im,nb]}),lR=o((t,e)=>{const n=Qh();A.useEffect(()=>{if(!n.isBrowser())return;const r=[];for(const[a,c]of Object.entries(t))r.push(n.events.on(a,c));return()=>{for(const a of r)a()}},e)},"useEvents");function zm(t,e){const n=Qh();A.useMemo(()=>{},[e]);const[r,a]=A.useState(n.store.get(t));return A.useEffect(()=>{if(!n.isBrowser())return;const c=t instanceof ts?t.key:t;return n.events.on("state:mutate",f=>{f.key===c&&a(f.value)})},[]),[r,c=>{n.store.set(t,c)}]}o(zm,"useStore$1");const cR=Fn({name:"alepha.react.core"}),hx=class hx extends $l{name="ValidationError";constructor(e){super({message:e.message,instancePath:e.path,schemaPath:"",keyword:"not",params:{}})}};o(hx,"FormValidationError");let rb=hx;const xY=Fn({name:"alepha.react.form"}),px=class px{expand(e){const n=[],r=[];return e.description||e.image||e.url||e.siteName||e.locale||e.type||e.og||e.twitter?(e.description&&n.push({name:"description",content:e.description}),e.url&&r.push({rel:"canonical",href:e.url}),this.expandOpenGraph(e,n),this.expandTwitter(e,n),{meta:n,link:r}):{meta:n,link:r}}expandOpenGraph(e,n){const r=e.og?.title??e.title,a=e.og?.description??e.description,c=e.og?.image??e.image;(e.type||r)&&n.push({property:"og:type",content:e.type??"website"}),e.url&&n.push({property:"og:url",content:e.url}),r&&n.push({property:"og:title",content:r}),a&&n.push({property:"og:description",content:a}),c&&(n.push({property:"og:image",content:c}),e.imageWidth&&n.push({property:"og:image:width",content:String(e.imageWidth)}),e.imageHeight&&n.push({property:"og:image:height",content:String(e.imageHeight)}),e.imageAlt&&n.push({property:"og:image:alt",content:e.imageAlt})),e.siteName&&n.push({property:"og:site_name",content:e.siteName}),e.locale&&n.push({property:"og:locale",content:e.locale})}expandTwitter(e,n){const r=e.twitter?.title??e.title,a=e.twitter?.description??e.description,c=e.twitter?.image??e.image;(e.twitter?.card||r||c)&&n.push({name:"twitter:card",content:e.twitter?.card??(c?"summary_large_image":"summary")}),e.url&&n.push({name:"twitter:url",content:e.url}),r&&n.push({name:"twitter:title",content:r}),a&&n.push({name:"twitter:description",content:a}),c&&(n.push({name:"twitter:image",content:c}),e.imageAlt&&n.push({name:"twitter:image:alt",content:e.imageAlt})),e.twitter?.site&&n.push({name:"twitter:site",content:e.twitter.site}),e.twitter?.creator&&n.push({name:"twitter:creator",content:e.twitter.creator})}};o(px,"SeoExpander");let ib=px;const gx=class gx{log=mi();seoExpander=Ot(ib);global=[];warnedAboutHtmlAttributes=!1;resolveGlobalHead(){const e={htmlAttributes:{lang:"en"}};for(const n of this.global??[]){const r=typeof n=="function"?n():n;r.htmlAttributes&&(e.htmlAttributes={...e.htmlAttributes,...r.htmlAttributes})}return e}resolveGlobal(){let e={};for(const n of this.global??[]){const r=typeof n=="function"?n():n,{meta:a,link:c}=this.seoExpander.expand(r);e={...e,...r,meta:[...e.meta??[],...a,...r.meta??[]],link:[...e.link??[],...c,...r.link??[]],script:[...e.script??[],...r.script??[]]}}return e}fillHead(e){e.head={...e.head};for(const n of this.global??[]){const r=typeof n=="function"?n():n;this.mergeHead(e,r)}for(const n of e.layers)n.route?.head&&!n.error&&this.fillHeadByPage(n.route,e,n.props??{});e.head.title??="App",e.head.htmlAttributes={lang:"en",...e.head.htmlAttributes}}mergeHead(e,n){const{meta:r,link:a}=this.seoExpander.expand(n);e.head={...e.head,...n,meta:[...e.head.meta??[],...r,...n.meta??[]],link:[...e.head.link??[],...a,...n.link??[]],script:[...e.head.script??[],...n.script??[]]}}fillHeadByPage(e,n,r){if(!e.head)return;n.head??={};const a=typeof e.head=="function"?e.head(r,n.head):e.head,{meta:c,link:f}=this.seoExpander.expand(a);n.head.meta=[...n.head.meta??[],...c],n.head.link=[...n.head.link??[],...f],a.title&&(n.head??={},n.head.titleSeparator?n.head.title=`${a.title}${n.head.titleSeparator}${n.head.title}`:n.head.title=a.title,n.head.titleSeparator=a.titleSeparator),a.htmlAttributes&&!this.warnedAboutHtmlAttributes&&(this.warnedAboutHtmlAttributes=!0,this.log.warn("Page-level htmlAttributes are ignored. Use global $head() for htmlAttributes instead, as they are sent before page loaders run for early streaming optimization.")),a.bodyAttributes&&(n.head.bodyAttributes={...n.head.bodyAttributes,...a.bodyAttributes}),a.meta&&(n.head.meta=[...n.head.meta??[],...a.meta??[]]),a.link&&(n.head.link=[...n.head.link??[],...a.link??[]]),a.script&&(n.head.script=[...n.head.script??[],...a.script??[]])}};o(gx,"HeadProvider");let Bm=gx;const A1=o(t=>cs(Um,t),"$head"),yx=class yx extends ni{provider=Ot(Bm);onInit(){this.provider.global=[...this.provider.global??[],this.options]}};o(yx,"HeadPrimitive");let Um=yx;A1[Un]=Um;const bx=class bx{alepha=Ot(Ke);headProvider=Ot(Bm);get document(){return window.document}fillAndRenderHead(e){this.alepha.isBrowser()&&(this.headProvider.fillHead(e),e.head&&this.renderHead(this.document,e.head))}refreshGlobalHead(){const e=this.headProvider.resolveGlobal();this.renderHead(this.document,e)}getHead(e){return{get title(){return e.title},get htmlAttributes(){const n={};for(const r of e.documentElement.attributes)n[r.name]=r.value;return n},get bodyAttributes(){const n={};for(const r of e.body.attributes)n[r.name]=r.value;return n},get meta(){const n=[];for(const r of e.head.querySelectorAll("meta[name]")){const a=r.getAttribute("name"),c=r.getAttribute("content");a&&c&&n.push({name:a,content:c})}for(const r of e.head.querySelectorAll("meta[property]")){const a=r.getAttribute("property"),c=r.getAttribute("content");a&&c&&n.push({property:a,content:c})}return n}}}renderHead(e,n){if(n.title&&(e.title=n.title),n.bodyAttributes)for(const[r,a]of Object.entries(n.bodyAttributes))a?e.body.setAttribute(r,a):e.body.removeAttribute(r);if(n.htmlAttributes)for(const[r,a]of Object.entries(n.htmlAttributes))a?e.documentElement.setAttribute(r,a):e.documentElement.removeAttribute(r);if(n.meta)for(const r of n.meta)this.renderMetaTag(e,r);if(n.link)for(const r of n.link){const{rel:a,href:c}=r;let f=e.querySelector(`link[rel="${a}"][href="${c}"]`);f||(f=e.createElement("link"),f.setAttribute("rel",a),f.setAttribute("href",c),r.type&&f.setAttribute("type",r.type),r.as&&f.setAttribute("as",r.as),r.crossorigin!=null&&f.setAttribute("crossorigin",""),e.head.appendChild(f))}if(n.script)for(const r of n.script)this.renderScriptTag(e,r)}renderScriptTag(e,n){const r=e.createElement("script");if(typeof n=="string"){r.textContent=n,e.head.appendChild(r);return}const{content:a,...c}=n;if(!(c.src&&e.querySelector(`script[src="${c.src}"]`))){for(const[f,d]of Object.entries(c))d===!0?r.setAttribute(f,""):d!==void 0&&d!==!1&&r.setAttribute(f,String(d));a&&(r.textContent=a),e.head.appendChild(r)}}renderMetaTag(e,n){const{content:r}=n;if(n.property){const a=e.querySelector(`meta[property="${n.property}"]`);if(a)a.setAttribute("content",r);else{const c=e.createElement("meta");c.setAttribute("property",n.property),c.setAttribute("content",r),e.head.appendChild(c)}return}if(n.name){const a=e.querySelector(`meta[name="${n.name}"]`);if(a)a.setAttribute("content",r);else{const c=e.createElement("meta");c.setAttribute("name",n.name),c.setAttribute("content",r),e.head.appendChild(c)}}}};o(bx,"BrowserHeadProvider");let ra=bx;const uR=Fn({name:"alepha.react.head",primitives:[A1],services:[cR,ra]}),vx=class vx{parseRequestCookies(e){const n={},r=e.split(";");for(const a of r){const[c,f]=a.split("=");!c||!f||(n[c.trim()]=f.trim())}return n}serializeResponseCookies(e,n){const r=[];for(const[a,c]of Object.entries(e)){if(c==null){r.push(`${a}=; Path=/; Max-Age=0`);continue}c.value&&r.push(this.cookieToString(a,c,n))}return r}cookieToString(e,n,r){const a=[];return a.push(`${e}=${n.value}`),n.path&&a.push(`Path=${n.path}`),n.maxAge&&a.push(`Max-Age=${n.maxAge}`),n.secure!==!1&&r&&a.push("Secure"),n.httpOnly&&a.push("HttpOnly"),n.sameSite&&a.push(`SameSite=${n.sameSite}`),n.domain&&a.push(`Domain=${n.domain}`),a.join("; ")}};o(vx,"CookieParser");let ob=vx;const Hm=o((t,e)=>(e&&(t={key:t.key,schema:t.schema,...e}),cs(km,t)),"$cookie"),Sx=class Sx extends ni{cookieParser=Ot(ob);alepha=Ot(Ke);dateTimeProvider=Ot(Ni);cookie;onInit(){this.options.key&&(this.alepha.events.on("state:mutate",({key:e,value:n})=>{e===this.options.key&&this.set(n)}),this.alepha.events.on("configure",()=>{try{const e=this.get();e!==void 0&&this.alepha.set(this.options.key,e)}catch{}}))}get schema(){return this.options.schema}get name(){return this.options.name??`${this.config.propertyKey}`}set(e){const n=JSON.stringify(this.alepha.codec.decode(this.schema,e)),r=this.options;if(r.compress)throw new _t("Compression is not supported in browser cookies.");if(r.encrypt)throw new _t("Encryption is not supported in browser cookies.");if(r.sign)throw new _t("Signing is not supported in browser cookies.");const a={value:encodeURIComponent(n),path:r.path??"/",sameSite:r.sameSite??"lax",secure:!1,httpOnly:!1,domain:r.domain};r.ttl&&(a.maxAge=this.dateTimeProvider.duration(r.ttl).as("seconds")),document.cookie=this.cookieParser.cookieToString(this.name,a)}get(e){const n=this.cookieParser.parseRequestCookies(document.cookie)[this.name];if(!n)return;const r=decodeURIComponent(n);if(this.options.compress)throw new _t("Compression is not supported in browser cookies.");if(this.options.encrypt)throw new _t("Encryption is not supported in browser cookies.");if(this.options.sign)throw new _t("Signing is not supported in browser cookies.");return this.alepha.codec.decode(this.schema,JSON.parse(r))}del(){const e=this.options,n={value:"",path:e.path??"/",sameSite:e.sameSite??"lax",secure:!1,httpOnly:!1,domain:e.domain,maxAge:0};document.cookie=this.cookieParser.cookieToString(this.name,n)}};o(Sx,"BrowserCookiePrimitive");let km=Sx;Hm[Un]=km;Fn({name:"alepha.server.cookies",primitives:[],services:[oR]});const xx=class xx{log=mi();alepha=Ot(Ke);dateTimeProvider=Ot(Ni);cookie=Hm({name:"lang",schema:O.text(),ttl:[1,"year"]});registry=[];options={fallbackLang:"en"};dateFormat=new Intl.DateTimeFormat(this.lang);numberFormat=new Intl.NumberFormat(this.lang);get languages(){const e=new Set;for(const n of this.registry)e.add(n.lang);return e.add(this.options.fallbackLang),Array.from(e)}constructor(){this.refreshLocale()}onRender=rr({on:"server:onRequest",priority:"last",handler:o(async({request:e})=>{this.alepha.store.set("alepha.react.i18n.lang",this.cookie.get(e))},"handler")});onStart=rr({on:"start",handler:o(async()=>{if(this.alepha.isBrowser()){const e=this.cookie.get();e&&this.alepha.store.set("alepha.react.i18n.lang",e);for(const n of this.registry)(n.lang===this.lang||n.lang===this.options.fallbackLang)&&(this.log.trace("Loading language",{lang:n.lang,name:n.name,target:n.target}),n.translations=await n.loader());return}for(const e of this.registry)e.translations=await e.loader()},"handler")});refreshLocale(){this.numberFormat=new Intl.NumberFormat(this.lang),this.dateFormat=new Intl.DateTimeFormat(this.lang),this.dateTimeProvider.setLocale(this.lang),Cl.setLocale(this.lang)}setLang=o(async e=>{if(this.alepha.isBrowser()){for(const n of this.registry)if(e===n.lang){if(Object.keys(n.translations).length>0)continue;n.translations=await n.loader()}this.cookie.set(e)}this.alepha.store.set("alepha.react.i18n.lang",e),this.refreshLocale()},"setLang");mutate=rr({on:"state:mutate",handler:o(async({key:e,value:n})=>{if(e==="alepha.react.i18n.lang"&&this.alepha.isBrowser()){let r=!1;for(const a of this.registry)if(n===a.lang){if(Object.keys(a.translations).length>0)continue;a.translations=await a.loader(),r=!0}this.refreshLocale(),r&&this.alepha.store.set("alepha.react.i18n.lang",n)}},"handler")});get lang(){return this.alepha.store.get("alepha.react.i18n.lang")||this.options.fallbackLang}translate=o((e,n=[])=>{for(const r of this.registry)if(r.lang===this.lang&&r.translations[e])return this.render(r.translations[e],n);for(const r of this.registry)if(r.lang===this.options.fallbackLang&&r.translations[e])return this.render(r.translations[e],n);return e},"translate");l=o((e,n={})=>{if(typeof e=="number"&&!n.date)return new Intl.NumberFormat(this.lang,n.number).format(e);if(e instanceof Date||this.dateTimeProvider.isDateTime(e)||typeof e=="string"&&n.date||typeof e=="number"&&n.date){let r=this.dateTimeProvider.of(e);return n.timezone&&(r=r.tz(n.timezone)),typeof n.date=="string"?n.date==="fromNow"?r.locale(this.lang).fromNow():r.locale(this.lang).format(n.date):n.date?new Intl.DateTimeFormat(this.lang,n.timezone?{...n.date,timeZone:n.timezone}:n.date).format(r.toDate()):n.timezone?new Intl.DateTimeFormat(this.lang,{timeZone:n.timezone}).format(r.toDate()):new Intl.DateTimeFormat(this.lang).format(r.toDate())}return e instanceof $l?Cl.translateError(e,this.lang):e},"l");tr=o((e,n={})=>{const r=this.translate(e,n.args||[]);return r===e&&n.default?n.default:r},"tr");render(e,n){let r=e;for(let a=0;a<n.length;a++)r=r.replace(`$${a+1}`,n[a]);return r}};o(xx,"I18nProvider");let Fm=xx;const fR=o(t=>cs(qm,t),"$dictionary"),Ex=class Ex extends ni{provider=Ot(Fm);onInit(){this.provider.registry.push({target:this.config.service.name,name:this.options.name??this.config.propertyKey,lang:this.options.lang??this.config.propertyKey,loader:o(async()=>(await this.options.lazy()).default,"loader"),translations:{}})}};o(Ex,"DictionaryPrimitive");let qm=Ex;fR[Un]=qm;const EY=Fn({name:"alepha.react.i18n",primitives:[fR],services:[Fm]}),ptt=di({name:"alepha.ui.sidebar",schema:O.object({closed:O.boolean(),collapsed:O.boolean(),expandedWidth:O.number(),collapsedWidth:O.number()}),default:{closed:!0,collapsed:!1,expandedWidth:300,collapsedWidth:72}}),hu=di({name:"alepha.ui.theme",schema:O.object({index:O.integer()}),default:{index:0}}),pu=di({name:"alepha.ui.themeOverrides",schema:O.object({primaryColor:O.optional(O.text()),radius:O.optional(O.text()),fontFamily:O.optional(O.text()),fontSize:O.optional(O.text()),scale:O.optional(O.text())}),default:{}}),dR={name:"Default",description:"Default Alepha Theme"};var wi=o(function(){return wi=Object.assign||o(function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},"__assign"),wi.apply(this,arguments)},"__assign");function mR(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}o(mR,"__rest");function wY(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,c;r<a;r++)(c||!(r in e))&&(c||(c=Array.prototype.slice.call(e,0,r)),c[r]=e[r]);return t.concat(c||Array.prototype.slice.call(e))}o(wY,"__spreadArray");var sm="right-scroll-bar-position",am="width-before-scroll-bar",TY="with-scroll-bars-hidden",AY="--removed-body-scroll-bar-size";function Wy(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}o(Wy,"assignRef$1");function CY(t,e){var n=A.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=e,n.facade}o(CY,"useCallbackRef$1");var $Y=typeof window<"u"?A.useLayoutEffect:A.useEffect,wA=new WeakMap;function MY(t,e){var n=CY(null,function(r){return t.forEach(function(a){return Wy(a,r)})});return $Y(function(){var r=wA.get(n);if(r){var a=new Set(r),c=new Set(t),f=n.current;a.forEach(function(d){c.has(d)||Wy(d,null)}),c.forEach(function(d){a.has(d)||Wy(d,f)})}wA.set(n,t)},[t]),n}o(MY,"useMergeRefs$1");function OY(t){return t}o(OY,"ItoI");function RY(t,e){e===void 0&&(e=OY);var n=[],r=!1,a={read:o(function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},"read"),useMedium:o(function(c){var f=e(c,r);return n.push(f),function(){n=n.filter(function(d){return d!==f})}},"useMedium"),assignSyncMedium:o(function(c){for(r=!0;n.length;){var f=n;n=[],f.forEach(c)}n={push:o(function(d){return c(d)},"push"),filter:o(function(){return n},"filter")}},"assignSyncMedium"),assignMedium:o(function(c){r=!0;var f=[];if(n.length){var d=n;n=[],d.forEach(c),f=n}var h=o(function(){var y=f;f=[],y.forEach(c)},"executeQueue"),g=o(function(){return Promise.resolve().then(h)},"cycle");g(),n={push:o(function(y){f.push(y),g()},"push"),filter:o(function(y){return f=f.filter(y),n},"filter")}},"assignMedium")};return a}o(RY,"innerCreateMedium");function NY(t){t===void 0&&(t={});var e=RY(null);return e.options=wi({async:!0,ssr:!1},t),e}o(NY,"createSidecarMedium");var hR=o(function(t){var e=t.sideCar,n=mR(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return A.createElement(r,wi({},n))},"SideCar$1");hR.isSideCarExport=!0;function _Y(t,e){return t.useMedium(e),hR}o(_Y,"exportSidecar");var pR=NY(),t0=o(function(){},"nothing"),Jh=A.forwardRef(function(t,e){var n=A.useRef(null),r=A.useState({onScrollCapture:t0,onWheelCapture:t0,onTouchMoveCapture:t0}),a=r[0],c=r[1],f=t.forwardProps,d=t.children,h=t.className,g=t.removeScrollBar,y=t.enabled,v=t.shards,E=t.sideCar,x=t.noRelative,C=t.noIsolation,w=t.inert,M=t.allowPinchZoom,L=t.as,z=L===void 0?"div":L,I=t.gapMode,F=mR(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=E,q=MY([n,e]),B=wi(wi({},F),a);return A.createElement(A.Fragment,null,y&&A.createElement(G,{sideCar:pR,removeScrollBar:g,shards:v,noRelative:x,noIsolation:C,inert:w,setCallbacks:c,allowPinchZoom:!!M,lockRef:n,gapMode:I}),f?A.cloneElement(A.Children.only(d),wi(wi({},B),{ref:q})):A.createElement(z,wi({},B,{className:h,ref:q}),d))});Jh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jh.classNames={fullWidth:am,zeroRight:sm};var DY=o(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function jY(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=DY();return e&&t.setAttribute("nonce",e),t}o(jY,"makeStyleTag");function IY(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}o(IY,"injectStyles");function LY(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}o(LY,"insertStyleTag");var zY=o(function(){var t=0,e=null;return{add:o(function(n){t==0&&(e=jY())&&(IY(e,n),LY(e)),t++},"add"),remove:o(function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)},"remove")}},"stylesheetSingleton"),BY=o(function(){var t=zY();return function(e,n){A.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},"styleHookSingleton"),gR=o(function(){var t=BY(),e=o(function(n){var r=n.styles,a=n.dynamic;return t(r,a),null},"Sheet");return e},"styleSingleton"),UY={left:0,top:0,right:0,gap:0},e0=o(function(t){return parseInt(t||"",10)||0},"parse"),HY=o(function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],a=e[t==="padding"?"paddingRight":"marginRight"];return[e0(n),e0(r),e0(a)]},"getOffset"),kY=o(function(t){if(t===void 0&&(t="margin"),typeof window>"u")return UY;var e=HY(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},"getGapWidth"),FY=gR(),vl="data-scroll-locked",qY=o(function(t,e,n,r){var a=t.left,c=t.top,f=t.right,d=t.gap;return n===void 0&&(n="margin"),`
|
|
19
|
-
.`.concat(TY,` {
|
|
20
|
-
overflow: hidden `).concat(r,`;
|
|
21
|
-
padding-right: `).concat(d,"px ").concat(r,`;
|
|
22
|
-
}
|
|
23
|
-
body[`).concat(vl,`] {
|
|
24
|
-
overflow: hidden `).concat(r,`;
|
|
25
|
-
overscroll-behavior: contain;
|
|
26
|
-
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
27
|
-
padding-left: `.concat(a,`px;
|
|
28
|
-
padding-top: `).concat(c,`px;
|
|
29
|
-
padding-right: `).concat(f,`px;
|
|
30
|
-
margin-left:0;
|
|
31
|
-
margin-top:0;
|
|
32
|
-
margin-right: `).concat(d,"px ").concat(r,`;
|
|
33
|
-
`),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.`).concat(sm,` {
|
|
37
|
-
right: `).concat(d,"px ").concat(r,`;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.`).concat(am,` {
|
|
41
|
-
margin-right: `).concat(d,"px ").concat(r,`;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.`).concat(sm," .").concat(sm,` {
|
|
45
|
-
right: 0 `).concat(r,`;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.`).concat(am," .").concat(am,` {
|
|
49
|
-
margin-right: 0 `).concat(r,`;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
body[`).concat(vl,`] {
|
|
53
|
-
`).concat(AY,": ").concat(d,`px;
|
|
54
|
-
}
|
|
55
|
-
`)},"getStyles"),TA=o(function(){var t=parseInt(document.body.getAttribute(vl)||"0",10);return isFinite(t)?t:0},"getCurrentUseCounter"),PY=o(function(){A.useEffect(function(){return document.body.setAttribute(vl,(TA()+1).toString()),function(){var t=TA()-1;t<=0?document.body.removeAttribute(vl):document.body.setAttribute(vl,t.toString())}},[])},"useLockAttribute"),GY=o(function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,a=r===void 0?"margin":r;PY();var c=A.useMemo(function(){return kY(a)},[a]);return A.createElement(FY,{styles:qY(c,!e,a,n?"":"!important")})},"RemoveScrollBar"),sb=!1;if(typeof window<"u")try{var Fd=Object.defineProperty({},"passive",{get:o(function(){return sb=!0,!0},"get")});window.addEventListener("test",Fd,Fd),window.removeEventListener("test",Fd,Fd)}catch{sb=!1}var ol=sb?{passive:!1}:!1,YY=o(function(t){return t.tagName==="TEXTAREA"},"alwaysContainsScroll"),yR=o(function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!YY(t)&&n[e]==="visible")},"elementCanBeScrolled"),VY=o(function(t){return yR(t,"overflowY")},"elementCouldBeVScrolled"),KY=o(function(t){return yR(t,"overflowX")},"elementCouldBeHScrolled"),AA=o(function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=bR(t,r);if(a){var c=vR(t,r),f=c[1],d=c[2];if(f>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},"locationCouldBeScrolled"),XY=o(function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},"getVScrollVariables"),QY=o(function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},"getHScrollVariables"),bR=o(function(t,e){return t==="v"?VY(e):KY(e)},"elementCouldBeScrolled"),vR=o(function(t,e){return t==="v"?XY(e):QY(e)},"getScrollVariables"),ZY=o(function(t,e){return t==="h"&&e==="rtl"?-1:1},"getDirectionFactor"),JY=o(function(t,e,n,r,a){var c=ZY(t,window.getComputedStyle(e).direction),f=c*r,d=n.target,h=e.contains(d),g=!1,y=f>0,v=0,E=0;do{if(!d)break;var x=vR(t,d),C=x[0],w=x[1],M=x[2],L=w-M-c*C;(C||L)&&bR(t,d)&&(v+=L,E+=C);var z=d.parentNode;d=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!h&&d!==document.body||h&&(e.contains(d)||e===d));return(y&&Math.abs(v)<1||!y&&Math.abs(E)<1)&&(g=!0),g},"handleScroll"),qd=o(function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},"getTouchXY"),CA=o(function(t){return[t.deltaX,t.deltaY]},"getDeltaXY"),$A=o(function(t){return t&&"current"in t?t.current:t},"extractRef"),WY=o(function(t,e){return t[0]===e[0]&&t[1]===e[1]},"deltaCompare"),tV=o(function(t){return`
|
|
56
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
57
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
58
|
-
`)},"generateStyle"),eV=0,sl=[];function nV(t){var e=A.useRef([]),n=A.useRef([0,0]),r=A.useRef(),a=A.useState(eV++)[0],c=A.useState(gR)[0],f=A.useRef(t);A.useEffect(function(){f.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var w=wY([t.lockRef.current],(t.shards||[]).map($A),!0).filter(Boolean);return w.forEach(function(M){return M.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),w.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var d=A.useCallback(function(w,M){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!f.current.allowPinchZoom;var L=qd(w),z=n.current,I="deltaX"in w?w.deltaX:z[0]-L[0],F="deltaY"in w?w.deltaY:z[1]-L[1],G,q=w.target,B=Math.abs(I)>Math.abs(F)?"h":"v";if("touches"in w&&B==="h"&&q.type==="range")return!1;var k=window.getSelection(),et=k&&k.anchorNode,nt=et?et===q||et.contains(q):!1;if(nt)return!1;var ot=AA(B,q);if(!ot)return!0;if(ot?G=B:(G=B==="v"?"h":"v",ot=AA(B,q)),!ot)return!1;if(!r.current&&"changedTouches"in w&&(I||F)&&(r.current=G),!G)return!0;var ft=r.current||G;return JY(ft,M,w,ft==="h"?I:F)},[]),h=A.useCallback(function(w){var M=w;if(!(!sl.length||sl[sl.length-1]!==c)){var L="deltaY"in M?CA(M):qd(M),z=e.current.filter(function(G){return G.name===M.type&&(G.target===M.target||M.target===G.shadowParent)&&WY(G.delta,L)})[0];if(z&&z.should){M.cancelable&&M.preventDefault();return}if(!z){var I=(f.current.shards||[]).map($A).filter(Boolean).filter(function(G){return G.contains(M.target)}),F=I.length>0?d(M,I[0]):!f.current.noIsolation;F&&M.cancelable&&M.preventDefault()}}},[]),g=A.useCallback(function(w,M,L,z){var I={name:w,delta:M,target:L,should:z,shadowParent:rV(L)};e.current.push(I),setTimeout(function(){e.current=e.current.filter(function(F){return F!==I})},1)},[]),y=A.useCallback(function(w){n.current=qd(w),r.current=void 0},[]),v=A.useCallback(function(w){g(w.type,CA(w),w.target,d(w,t.lockRef.current))},[]),E=A.useCallback(function(w){g(w.type,qd(w),w.target,d(w,t.lockRef.current))},[]);A.useEffect(function(){return sl.push(c),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:E}),document.addEventListener("wheel",h,ol),document.addEventListener("touchmove",h,ol),document.addEventListener("touchstart",y,ol),function(){sl=sl.filter(function(w){return w!==c}),document.removeEventListener("wheel",h,ol),document.removeEventListener("touchmove",h,ol),document.removeEventListener("touchstart",y,ol)}},[]);var x=t.removeScrollBar,C=t.inert;return A.createElement(A.Fragment,null,C?A.createElement(c,{styles:tV(a)}):null,x?A.createElement(GY,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}o(nV,"RemoveScrollSideCar");function rV(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}o(rV,"getOutermostShadowParent");const iV=_Y(pR,nV);var Pm=A.forwardRef(function(t,e){return A.createElement(Jh,wi({},t,{ref:e,sideCar:iV}))});Pm.classNames=Jh.classNames;function Ci(t){return Object.keys(t)}o(Ci,"keys");function n0(t){return t&&typeof t=="object"&&!Array.isArray(t)}o(n0,"isObject");function C1(t,e){const n={...t},r=e;return n0(t)&&n0(e)&&Object.keys(e).forEach(a=>{n0(r[a])&&a in t?n[a]=C1(n[a],r[a]):n[a]=r[a]}),n}o(C1,"deepMerge");function oV(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}o(oV,"camelToKebabCase");function sV(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}o(sV,"getTransformedScaledValue");function aV(t){const e=sV(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}o(aV,"px");function MA(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}o(MA,"scaleRem");function SR(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const a=`${r/16}${t}`;return e?MA(a):a}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(c=>n(c)).join(",");if(r.includes(" "))return r.split(" ").map(c=>n(c)).join(" ");const a=r.replace("px","");if(!Number.isNaN(Number(a))){const c=`${Number(a)/16}${t}`;return e?MA(c):c}}return r}return o(n,"converter"),n}o(SR,"createConverter");const ut=SR("rem",{shouldScale:!0}),OA=SR("em");function Wh(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}o(Wh,"filterProps");function xR(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}o(xR,"isNumberLike");function lV(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==A.Fragment:!1}o(lV,"isElement$1");function pa(t){const e=A.createContext(null);return[o(({children:a,value:c})=>$.jsx(e.Provider,{value:c,children:a}),"Provider"),o(()=>{const a=A.useContext(e);if(a===null)throw new Error(t);return a},"useSafeContext")]}o(pa,"createSafeContext");function $1(t=null){const e=A.createContext(t);return[o(({children:a,value:c})=>$.jsx(e.Provider,{value:c,children:a}),"Provider"),o(()=>A.useContext(e),"useOptionalContext")]}o($1,"createOptionalContext");const cV={app:100,modal:200,popover:300,overlay:400,max:9999};function hi(t){return cV[t]}o(hi,"getDefaultZIndex");function Le(t,e="size",n=!0){if(t!==void 0)return xR(t)?n?ut(t):t:`var(--${e}-${t})`}o(Le,"getSize");function tp(t){return Le(t,"mantine-spacing")}o(tp,"getSpacing");function Pr(t){return t===void 0?"var(--mantine-radius-default)":Le(t,"mantine-radius")}o(Pr,"getRadius");function ir(t){return Le(t,"mantine-font-size")}o(ir,"getFontSize");function uV(t){return Le(t,"mantine-line-height",!1)}o(uV,"getLineHeight");function ER(t){if(t)return Le(t,"mantine-shadow",!1)}o(ER,"getShadow");function wR(t,e,n){return e===void 0&&n===void 0?t:e!==void 0&&n===void 0?Math.max(t,e):Math.min(e===void 0&&n!==void 0?t:Math.max(t,e),n)}o(wR,"clamp$2");function ns(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}o(ns,"randomId");function Ps(t){const e=A.useRef(t);return A.useEffect(()=>{e.current=t}),A.useMemo(()=>((...n)=>e.current?.(...n)),[])}o(Ps,"useCallbackRef");function ep(t,e){const{delay:n,flushOnUnmount:r,leading:a}=typeof e=="number"?{delay:e,flushOnUnmount:!1,leading:!1}:e,c=Ps(t),f=A.useRef(0),d=A.useMemo(()=>{const h=Object.assign((...g)=>{window.clearTimeout(f.current);const y=h._isFirstCall;h._isFirstCall=!1;function v(){window.clearTimeout(f.current),f.current=0,h._isFirstCall=!0}if(o(v,"clearTimeoutAndLeadingRef"),a&&y){c(...g);const C=o(()=>{v()},"resetLeadingState"),w=o(()=>{f.current!==0&&(v(),c(...g))},"flush2"),M=o(()=>{v()},"cancel2");h.flush=w,h.cancel=M,f.current=window.setTimeout(C,n);return}if(a&&!y){const C=o(()=>{f.current!==0&&(v(),c(...g))},"flush2"),w=o(()=>{v()},"cancel2");h.flush=C,h.cancel=w;const M=o(()=>{v()},"resetLeadingState");f.current=window.setTimeout(M,n);return}const E=o(()=>{f.current!==0&&(v(),c(...g))},"flush"),x=o(()=>{v()},"cancel");h.flush=E,h.cancel=x,f.current=window.setTimeout(E,n)},{flush:o(()=>{},"flush"),cancel:o(()=>{},"cancel"),_isFirstCall:!0});return h},[c,n,a]);return A.useEffect(()=>()=>{r?d.flush():d.cancel()},[d,r]),d}o(ep,"useDebouncedCallback");function fV(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}o(fV,"attachMediaListener");function dV(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}o(dV,"getInitialValue");function mV(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,a]=A.useState(n?e:dV(t));return A.useEffect(()=>{try{const c=window.matchMedia(t);return a(c.matches),fV(c,f=>a(f.matches))}catch{return}},[t]),r||!1}o(mV,"useMediaQuery");const Jl=typeof document<"u"?A.useLayoutEffect:A.useEffect;function np(t,e){const n=A.useRef(!1);A.useEffect(()=>()=>{n.current=!1},[]),A.useEffect(()=>{if(n.current)return t();n.current=!0},e)}o(np,"useDidUpdate");function hV({opened:t,shouldReturnFocus:e=!0}){const n=A.useRef(null),r=o(()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})},"returnFocus");return np(()=>{let a=-1;const c=o(f=>{f.key==="Tab"&&window.clearTimeout(a)},"clearFocusTimeout");return document.addEventListener("keydown",c),t?n.current=document.activeElement:e&&(a=window.setTimeout(r,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",c)}},[t,e]),r}o(hV,"useFocusReturn");const pV=/input|select|textarea|button|object/,TR="a, input, select, textarea, button, object, [tabindex]";function gV(t){return t.style.display==="none"}o(gV,"hidden");function yV(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let n=t;for(;n&&!(n===document.body||n.nodeType===11);){if(gV(n))return!1;n=n.parentNode}return!0}o(yV,"visible");function AR(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}o(AR,"getElementTabIndex");function ab(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(AR(t));return(pV.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&yV(t)}o(ab,"focusable");function CR(t){const e=AR(t);return(Number.isNaN(e)||e>=0)&&ab(t)}o(CR,"tabbable");function bV(t){return Array.from(t.querySelectorAll(TR)).filter(CR)}o(bV,"findTabbableDescendants");function vV(t,e){const n=bV(t);if(!n.length){e.preventDefault();return}const r=n[e.shiftKey?0:n.length-1],a=t.getRootNode();let c=r===a.activeElement||t===a.activeElement;const f=a.activeElement;if(f.tagName==="INPUT"&&f.getAttribute("type")==="radio"&&(c=n.filter(y=>y.getAttribute("type")==="radio"&&y.getAttribute("name")===f.getAttribute("name")).includes(r)),!c)return;e.preventDefault();const h=n[e.shiftKey?n.length-1:0];h&&h.focus()}o(vV,"scopeTab");function SV(t=!0){const e=A.useRef(null),n=o(a=>{let c=a.querySelector("[data-autofocus]");if(!c){const f=Array.from(a.querySelectorAll(TR));c=f.find(CR)||f.find(ab)||null,!c&&ab(a)&&(c=a)}c&&c.focus({preventScroll:!0})},"focusNode"),r=A.useCallback(a=>{t&&a!==null&&e.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),e.current=a):e.current=null)},[t]);return A.useEffect(()=>{if(!t)return;e.current&&setTimeout(()=>n(e.current));const a=o(c=>{c.key==="Tab"&&e.current&&vV(e.current,c)},"handleKeyDown");return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[t]),r}o(SV,"useFocusTrap");const xV=o(t=>(t+1)%1e6,"reducer");function EV(){const[,t]=A.useReducer(xV,0);return t}o(EV,"useForceUpdate");const wV=Dr.useId||(()=>{});function TV(){const t=wV();return t?`mantine-${t.replace(/:/g,"")}`:""}o(TV,"useReactId$1");function $R(t){const e=TV(),[n,r]=A.useState(e);return Jl(()=>{r(ns())},[]),typeof t=="string"?t:typeof window>"u"?e:n}o($R,"useId$1");function AV(t,e,n){A.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}o(AV,"useWindowEvent");function lb(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}o(lb,"assignRef");function CV(...t){const e=new Map;return n=>{if(t.forEach(r=>{const a=lb(r,n);a&&e.set(r,a)}),e.size>0)return()=>{t.forEach(r=>{const a=e.get(r);a&&typeof a=="function"?a():lb(r,null)}),e.clear()}}}o(CV,"mergeRefs");function ga(...t){return A.useCallback(CV(...t),t)}o(ga,"useMergedRef");function $V({value:t,defaultValue:e,finalValue:n,onChange:r=o(()=>{},"onChange")}){const[a,c]=A.useState(e!==void 0?e:n),f=o((d,...h)=>{c(d),r?.(d,...h)},"handleUncontrolledChange");return t!==void 0?[t,r,!0]:[a,f,!1]}o($V,"useUncontrolled");function M1(t,e){return mV("(prefers-reduced-motion: reduce)",t,e)}o(M1,"useReducedMotion");const MV={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function Pd(t){const e=t.replace("Key","").toLowerCase();return MV[t]||e}o(Pd,"normalizeKey");function OV(t){const e=t.toLowerCase().split("+").map(c=>c.trim()),n={alt:e.includes("alt"),ctrl:e.includes("ctrl"),meta:e.includes("meta"),mod:e.includes("mod"),shift:e.includes("shift"),plus:e.includes("[plus]")},r=["alt","ctrl","meta","shift","mod"],a=e.find(c=>!r.includes(c));return{...n,key:a==="[plus]"?"+":a}}o(OV,"parseHotkey");function RV(t,e,n){const{alt:r,ctrl:a,meta:c,mod:f,shift:d,key:h}=t,{altKey:g,ctrlKey:y,metaKey:v,shiftKey:E,key:x,code:C}=e;if(r!==g)return!1;if(f){if(!y&&!v)return!1}else if(a!==y||c!==v)return!1;return d!==E?!1:!!(h&&(n?Pd(C)===Pd(h):Pd(x??C)===Pd(h)))}o(RV,"isExactHotkey");function NV(t,e){return n=>RV(OV(t),n,e)}o(NV,"getHotkeyMatcher");function _V(t,e,n=!1){return t.target instanceof HTMLElement?(n||!t.target.isContentEditable)&&!e.includes(t.target.tagName):!0}o(_V,"shouldFireEvent");function DV(t,e=["INPUT","TEXTAREA","SELECT"],n=!1){A.useEffect(()=>{const r=o(a=>{t.forEach(([c,f,d={preventDefault:!0,usePhysicalKeys:!1}])=>{NV(c,d.usePhysicalKeys)(a)&&_V(a,e,n)&&(d.preventDefault&&a.preventDefault(),f(a))})},"keydownListener");return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[t])}o(DV,"useHotkeys");function jV(t,e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}o(jV,"dispatchEvent");function IV(t){function e(r){const a=Object.keys(r).reduce((c,f)=>(c[`${t}:${f}`]=d=>r[f](d.detail),c),{});Jl(()=>(Object.keys(a).forEach(c=>{window.removeEventListener(c,a[c]),window.addEventListener(c,a[c])}),()=>Object.keys(a).forEach(c=>{window.removeEventListener(c,a[c])})),[a])}o(e,"_useExternalEvents");function n(r){return(...a)=>jV(`${t}:${String(r)}`,a[0])}return o(n,"createEvent"),[e,n]}o(IV,"createUseExternalEvents");function LV(t){const e=A.Children.toArray(t);return e.length!==1||!lV(e[0])?null:e[0]}o(LV,"getSingleElementChild");function gtt(t){return t}o(gtt,"createVarsResolver");function MR(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=MR(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}o(MR,"r");function fr(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=MR(t))&&(r&&(r+=" "),r+=e);return r}o(fr,"clsx");const zV={};function BV(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,a])=>{e[r]?e[r]=fr(e[r],a):e[r]=a})}),e}o(BV,"mergeClassNames");function yf({theme:t,classNames:e,props:n,stylesCtx:r}){const c=(Array.isArray(e)?e:[e]).map(f=>typeof f=="function"?f(t,n,r):f||zV);return BV(c)}o(yf,"resolveClassNames");function Iu({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((c,f)=>typeof f=="function"?{...c,...f(t,n,r)}:{...c,...f},{})}o(Iu,"resolveStyles");const OR=A.createContext(null);function vs(){const t=A.useContext(OR);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}o(vs,"useMantineContext");function UV(){return vs().cssVariablesResolver}o(UV,"useMantineCssVariablesResolver");function HV(){return vs().classNamesPrefix}o(HV,"useMantineClassNamesPrefix");function O1(){return vs().getStyleNonce}o(O1,"useMantineStyleNonce");function kV(){return vs().withStaticClasses}o(kV,"useMantineWithStaticClasses");function FV(){return vs().headless}o(FV,"useMantineIsHeadless");function qV(){return vs().stylesTransform?.sx}o(qV,"useMantineSxTransform");function PV(){return vs().stylesTransform?.styles}o(PV,"useMantineStylesTransform");function RR(){return vs().env||"default"}o(RR,"useMantineEnv");function GV(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}o(GV,"isHexColor");function YV(t){let e=t.replace("#","");if(e.length===3){const f=e.split("");e=[f[0],f[0],f[1],f[1],f[2],f[2]].join("")}if(e.length===8){const f=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:f}}const n=parseInt(e,16),r=n>>16&255,a=n>>8&255,c=n&255;return{r,g:a,b:c,a:1}}o(YV,"hexToRgba");function VV(t){const[e,n,r,a]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:a===void 0?1:a}}o(VV,"rgbStringToRgba");function KV(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),a=parseInt(n[2],10)/100,c=parseInt(n[3],10)/100,f=n[5]?parseFloat(n[5]):void 0,d=(1-Math.abs(2*c-1))*a,h=r/60,g=d*(1-Math.abs(h%2-1)),y=c-d/2;let v,E,x;return h>=0&&h<1?(v=d,E=g,x=0):h>=1&&h<2?(v=g,E=d,x=0):h>=2&&h<3?(v=0,E=d,x=g):h>=3&&h<4?(v=0,E=g,x=d):h>=4&&h<5?(v=g,E=0,x=d):(v=d,E=0,x=g),{r:Math.round((v+y)*255),g:Math.round((E+y)*255),b:Math.round((x+y)*255),a:f||1}}o(KV,"hslStringToRgba");function R1(t){return GV(t)?YV(t):t.startsWith("rgb")?VV(t):t.startsWith("hsl")?KV(t):{r:0,g:0,b:0,a:1}}o(R1,"toRgba");function Gd(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:a,a:c}=R1(t),f=1-e,d=o(h=>Math.round(h*f),"dark");return`rgba(${d(n)}, ${d(r)}, ${d(a)}, ${c})`}o(Gd,"darken");function Lu(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}o(Lu,"getPrimaryShade");function r0(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}o(r0,"gammaCorrect");function XV(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}o(XV,"getLightnessFromOklch");function QV(t){if(t.startsWith("oklch("))return(XV(t)||0)/100;const{r:e,g:n,b:r}=R1(t),a=e/255,c=n/255,f=r/255,d=r0(a),h=r0(c),g=r0(f);return .2126*d+.7152*h+.0722*g}o(QV,"luminance");function uu(t,e=.179){return t.startsWith("var(")?!1:QV(t)>e}o(uu,"isLightColor");function Wl({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:uu(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:uu(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:uu(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,a]=t.split("."),c=a?Number(a):void 0,f=r in e.colors;if(f){const d=c!==void 0?e.colors[r][c]:e.colors[r][Lu(e,n||"light")];return{color:r,value:d,shade:c,isThemeColor:f,isLight:uu(d,e.luminanceThreshold),variable:a?`--mantine-color-${r}-${c}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:f,isLight:uu(t,e.luminanceThreshold),shade:c,variable:void 0}}o(Wl,"parseThemeColor");function ia(t,e){const n=Wl({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}o(ia,"getThemeColor");function cb(t,e){const n={from:t?.from||e.defaultGradient.from,to:t?.to||e.defaultGradient.to,deg:t?.deg??e.defaultGradient.deg??0},r=ia(n.from,e),a=ia(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${a} 100%)`}o(cb,"getGradient");function Si(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const c=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${c}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:a}=R1(t);return`rgba(${n}, ${r}, ${a}, ${e})`}o(Si,"rgba");const al=Si,ZV=o(({color:t,theme:e,variant:n,gradient:r,autoContrast:a})=>{const c=Wl({color:t,theme:e}),f=typeof a=="boolean"?a:e.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const d=f&&c.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return c.isThemeColor?c.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:d,border:`${ut(1)} solid transparent`}:{background:`var(--mantine-color-${c.color}-${c.shade})`,hover:`var(--mantine-color-${c.color}-${c.shade===9?8:c.shade+1})`,color:d,border:`${ut(1)} solid transparent`}:{background:t,hover:Gd(t,.1),color:d,border:`${ut(1)} solid transparent`}}if(n==="light"){if(c.isThemeColor){if(c.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`};const d=e.colors[c.color][c.shade];return{background:Si(d,.1),hover:Si(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:Si(t,.1),hover:Si(t,.12),color:t,border:`${ut(1)} solid transparent`}}if(n==="outline")return c.isThemeColor?c.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${ut(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Si(e.colors[c.color][c.shade],.05),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${ut(1)} solid var(--mantine-color-${c.color}-${c.shade})`}:{background:"transparent",hover:Si(t,.05),color:t,border:`${ut(1)} solid ${t}`};if(n==="subtle"){if(c.isThemeColor){if(c.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`};const d=e.colors[c.color][c.shade];return{background:"transparent",hover:Si(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:"transparent",hover:Si(t,.12),color:t,border:`${ut(1)} solid transparent`}}return n==="transparent"?c.isThemeColor?c.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${ut(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${ut(1)} solid transparent`}:n==="white"?c.isThemeColor?c.shade===void 0?{background:"var(--mantine-color-white)",hover:Gd(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Gd(e.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Gd(e.white,.01),color:t,border:`${ut(1)} solid transparent`}:n==="gradient"?{background:cb(r,e),hover:cb(r,e),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${ut(1)} solid var(--mantine-color-default-border)`}:{}},"defaultVariantColorsResolver"),JV={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},RA="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",N1={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:JV,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:ZV,autoContrast:!1,luminanceThreshold:.3,fontFamily:RA,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:RA,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:ut(34),lineHeight:"1.3"},h2:{fontSize:ut(26),lineHeight:"1.35"},h3:{fontSize:ut(22),lineHeight:"1.4"},h4:{fontSize:ut(18),lineHeight:"1.45"},h5:{fontSize:ut(16),lineHeight:"1.5"},h6:{fontSize:ut(14),lineHeight:"1.5"}}},fontSizes:{xs:ut(12),sm:ut(14),md:ut(16),lg:ut(18),xl:ut(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:ut(2),sm:ut(4),md:ut(8),lg:ut(16),xl:ut(32)},spacing:{xs:ut(10),sm:ut(12),md:ut(16),lg:ut(20),xl:ut(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), 0 ${ut(1)} ${ut(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(10)} ${ut(15)} ${ut(-5)}, rgba(0, 0, 0, 0.04) 0 ${ut(7)} ${ut(7)} ${ut(-5)}`,md:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(20)} ${ut(25)} ${ut(-5)}, rgba(0, 0, 0, 0.04) 0 ${ut(10)} ${ut(10)} ${ut(-5)}`,lg:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(28)} ${ut(23)} ${ut(-7)}, rgba(0, 0, 0, 0.04) 0 ${ut(12)} ${ut(12)} ${ut(-7)}`,xl:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(36)} ${ut(28)} ${ut(-7)}, rgba(0, 0, 0, 0.04) 0 ${ut(17)} ${ut(17)} ${ut(-7)}`},other:{},components:{}};function NA(t){return t==="auto"||t==="dark"||t==="light"}o(NA,"isMantineColorScheme");function WV({key:t="mantine-color-scheme-value"}={}){let e;return{get:o(n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(t);return NA(r)?r:n}catch{return n}},"get"),set:o(n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},"set"),subscribe:o(n=>{e=o(r=>{r.storageArea===window.localStorage&&r.key===t&&NA(r.newValue)&&n(r.newValue)},"handleStorageEvent"),window.addEventListener("storage",e)},"subscribe"),unsubscribe:o(()=>{window.removeEventListener("storage",e)},"unsubscribe"),clear:o(()=>{window.localStorage.removeItem(t)},"clear")}}o(WV,"localStorageColorSchemeManager");const tK="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",_A="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function i0(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}o(i0,"isValidPrimaryShade");function DA(t){if(!(t.primaryColor in t.colors))throw new Error(tK);if(typeof t.primaryShade=="object"&&(!i0(t.primaryShade.dark)||!i0(t.primaryShade.light)))throw new Error(_A);if(typeof t.primaryShade=="number"&&!i0(t.primaryShade))throw new Error(_A)}o(DA,"validateMantineTheme");function eK(t,e){if(!e)return DA(t),t;const n=C1(t,e);return e.fontFamily&&!e.headings?.fontFamily&&(n.headings.fontFamily=e.fontFamily),DA(n),n}o(eK,"mergeMantineTheme");const _1=A.createContext(null),nK=o(()=>A.useContext(_1)||N1,"useSafeMantineTheme");function Gr(){const t=A.useContext(_1);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}o(Gr,"useMantineTheme");function NR({theme:t,children:e,inherit:n=!0}){const r=nK(),a=A.useMemo(()=>eK(n?r:N1,t),[t,r,n]);return $.jsx(_1.Provider,{value:a,children:e})}o(NR,"MantineThemeProvider");NR.displayName="@mantine/core/MantineThemeProvider";function rK(){const t=Gr(),e=O1(),n=Ci(t.breakpoints).reduce((r,a)=>{const c=t.breakpoints[a].includes("px"),f=aV(t.breakpoints[a]),d=c?`${f-.1}px`:OA(f-.1),h=c?`${f}px`:OA(f);return`${r}@media (max-width: ${d}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${h}) {.mantine-hidden-from-${a} {display: none !important;}}`},"");return $.jsx("style",{"data-mantine-styles":"classes",nonce:e?.(),dangerouslySetInnerHTML:{__html:n}})}o(rK,"MantineClasses");function o0(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}o(o0,"cssVariablesObjectToString");function _R(t,e){const n=e?[e]:[":root",":host"],r=o0(t.variables),a=r?`${n.join(", ")}{${r}}`:"",c=o0(t.dark),f=o0(t.light),d=o(y=>n.map(v=>v===":host"?`${v}([data-mantine-color-scheme="${y}"])`:`${v}[data-mantine-color-scheme="${y}"]`).join(", "),"selectorsWithScheme"),h=c?`${d("dark")}{${c}}`:"",g=f?`${d("light")}{${f}}`:"";return`${a}
|
|
59
|
-
|
|
60
|
-
${h}
|
|
61
|
-
|
|
62
|
-
${g}`}o(_R,"convertCssVariables");function DR({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&Wl({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}o(DR,"getContrastColor");function jA(t,e){return DR({color:t.colors[t.primaryColor][Lu(t,e)],theme:t,autoContrast:null})}o(jA,"getPrimaryContrastColor");function Yd({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:a=!0}){if(!t.colors[e])return{};if(n==="light"){const d=Lu(t,"light"),h={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${d===9?8:d+1})`,[`--mantine-color-${r}-light`]:al(t.colors[e][d],.1),[`--mantine-color-${r}-light-hover`]:al(t.colors[e][d],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline-hover`]:al(t.colors[e][d],.05)};return a?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...h}:h}const c=Lu(t,"dark"),f={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${c})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${c===9?8:c+1})`,[`--mantine-color-${r}-light`]:al(t.colors[e][Math.max(0,c-2)],.15),[`--mantine-color-${r}-light-hover`]:al(t.colors[e][Math.max(0,c-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(c-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(c-4,0)})`,[`--mantine-color-${r}-outline-hover`]:al(t.colors[e][Math.max(c-4,0)],.05)};return a?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...f}:f}o(Yd,"getCSSColorVariables");function iK(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}o(iK,"isVirtualColor");function ll(t,e,n){Ci(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}o(ll,"assignSizeVariables");const jR=o(t=>{const e=Lu(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:ut(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":jA(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":jA(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ll(r.variables,t.breakpoints,"breakpoint"),ll(r.variables,t.spacing,"spacing"),ll(r.variables,t.fontSizes,"font-size"),ll(r.variables,t.lineHeights,"line-height"),ll(r.variables,t.shadows,"shadow"),ll(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${t.primaryColor}-${f})`}),Ci(t.colors).forEach(c=>{const f=t.colors[c];if(iK(f)){Object.assign(r.light,Yd({theme:t,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Yd({theme:t,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0}));return}f.forEach((d,h)=>{r.variables[`--mantine-color-${c}-${h}`]=d}),Object.assign(r.light,Yd({theme:t,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Yd({theme:t,color:c,colorScheme:"dark",withColorValues:!1}))});const a=t.headings.sizes;return Ci(a).forEach(c=>{r.variables[`--mantine-${c}-font-size`]=a[c].fontSize,r.variables[`--mantine-${c}-line-height`]=a[c].lineHeight,r.variables[`--mantine-${c}-font-weight`]=a[c].fontWeight||t.headings.fontWeight}),r},"defaultCssVariablesResolver");function oK({theme:t,generator:e}){const n=jR(t),r=e?.(t);return r?C1(n,r):n}o(oK,"getMergedVariables");const s0=jR(N1);function sK(t){const e={variables:{},light:{},dark:{}};return Ci(t.variables).forEach(n=>{s0.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),Ci(t.light).forEach(n=>{s0.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),Ci(t.dark).forEach(n=>{s0.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}o(sK,"removeDefaultVariables");function aK(t){return _R({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}o(aK,"getColorSchemeCssVariables");function IR({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Gr(),r=O1(),a=UV(),c=oK({theme:n,generator:a}),f=(t===void 0||t===":root"||t===":host")&&e,d=f?sK(c):c,h=_R(d,t);return h?$.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${h}${f?"":aK(t)}`}}):null}o(IR,"MantineCssVariables");IR.displayName="@mantine/CssVariables";function cl(t,e){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r=t!=="auto"?t:n?"dark":"light";e()?.setAttribute("data-mantine-color-scheme",r)}o(cl,"setColorSchemeAttribute");function lK({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const a=A.useRef(null),[c,f]=A.useState(()=>t.get(e)),d=r||c,h=A.useCallback(y=>{r||(cl(y,n),f(y),t.set(y))},[t.set,d,r]),g=A.useCallback(()=>{f(e),cl(e,n),t.clear()},[t.clear,e]);return A.useEffect(()=>(t.subscribe(h),t.unsubscribe),[t.subscribe,t.unsubscribe]),Jl(()=>{cl(t.get(e),n)},[]),A.useEffect(()=>{if(r)return cl(r,n),()=>{};r===void 0&&cl(c,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const y=o(v=>{c==="auto"&&cl(v.matches?"dark":"light",n)},"listener");return a.current?.addEventListener("change",y),()=>a.current?.removeEventListener("change",y)},[c,r]),{colorScheme:d,setColorScheme:h,clearColorScheme:g}}o(lK,"useProviderColorScheme");function cK({respectReducedMotion:t,getRootElement:e}){Jl(()=>{t&&e()?.setAttribute("data-respect-reduced-motion","true")},[t])}o(cK,"useRespectReduceMotion");function LR({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:a=!0,deduplicateCssVariables:c=!0,withCssVariables:f=!0,cssVariablesSelector:d,classNamesPrefix:h="mantine",colorSchemeManager:g=WV(),defaultColorScheme:y="light",getRootElement:v=o(()=>document.documentElement,"getRootElement"),cssVariablesResolver:E,forceColorScheme:x,stylesTransform:C,env:w}){const{colorScheme:M,setColorScheme:L,clearColorScheme:z}=lK({defaultColorScheme:y,forceColorScheme:x,manager:g,getRootElement:v});return cK({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:v}),$.jsx(OR.Provider,{value:{colorScheme:M,setColorScheme:L,clearColorScheme:z,getRootElement:v,classNamesPrefix:h,getStyleNonce:n,cssVariablesResolver:E,cssVariablesSelector:d??":root",withStaticClasses:r,stylesTransform:C,env:w},children:$.jsxs(NR,{theme:t,children:[f&&$.jsx(IR,{cssVariablesSelector:d,deduplicateCssVariables:c}),a&&$.jsx(rK,{}),e]})})}o(LR,"MantineProvider");LR.displayName="@mantine/core/MantineProvider";function zR({classNames:t,styles:e,props:n,stylesCtx:r}){const a=Gr();return{resolvedClassNames:yf({theme:a,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:Iu({theme:a,styles:e,props:n,stylesCtx:r||void 0})}}o(zR,"useResolvedStylesApi");const uK={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function fK({theme:t,options:e,unstyled:n}){return fr(e?.focusable&&!n&&(t.focusClassName||uK[t.focusRing]),e?.active&&!n&&t.activeClassName)}o(fK,"getGlobalClassNames");function dK({selector:t,stylesCtx:e,options:n,props:r,theme:a}){return yf({theme:a,classNames:n?.classNames,props:n?.props||r,stylesCtx:e})[t]}o(dK,"getOptionsClassNames");function IA({selector:t,stylesCtx:e,theme:n,classNames:r,props:a}){return yf({theme:n,classNames:r,props:a,stylesCtx:e})[t]}o(IA,"getResolvedClassNames");function mK({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}o(mK,"getRootClassName");function hK({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}o(hK,"getSelectorClassName");function pK({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(a=>`${e}-${a}-${n}`)}o(pK,"getStaticClassNames");function gK({themeName:t,theme:e,selector:n,props:r,stylesCtx:a}){return t.map(c=>yf({theme:e,classNames:e.components[c]?.classNames,props:r,stylesCtx:a})?.[n])}o(gK,"getThemeClassNames");function yK({options:t,classes:e,selector:n,unstyled:r}){return t?.variant&&!r?e[`${n}--${t.variant}`]:void 0}o(yK,"getVariantClassName");function bK({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:a,classNames:c,classes:f,unstyled:d,className:h,rootSelector:g,props:y,stylesCtx:v,withStaticClasses:E,headless:x,transformedStyles:C}){return fr(fK({theme:t,options:e,unstyled:d||x}),gK({theme:t,themeName:n,selector:r,props:y,stylesCtx:v}),yK({options:e,classes:f,selector:r,unstyled:d}),IA({selector:r,stylesCtx:v,theme:t,classNames:c,props:y}),IA({selector:r,stylesCtx:v,theme:t,classNames:C,props:y}),dK({selector:r,stylesCtx:v,options:e,props:y,theme:t}),mK({rootSelector:g,selector:r,className:h}),hK({selector:r,classes:f,unstyled:d||x}),E&&!x&&pK({themeName:n,classNamesPrefix:a,selector:r,withStaticClass:e?.withStaticClass}),e?.className)}o(bK,"getClassName");function vK({theme:t,themeName:e,props:n,stylesCtx:r,selector:a}){return e.map(c=>Iu({theme:t,styles:t.components[c]?.styles,props:n,stylesCtx:r})[a]).reduce((c,f)=>({...c,...f}),{})}o(vK,"getThemeStyles");function ub({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...ub({style:r,theme:e})}),{}):typeof t=="function"?t(e):t??{}}o(ub,"resolveStyle");function SK(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]={...e[r],...Wh(n[r])}}),e),{})}o(SK,"mergeVars");function xK({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:a,selector:c,themeName:f,headless:d}){return SK([d?{}:e?.(n,r,a),...f.map(h=>n.components?.[h]?.vars?.(n,r,a)),t?.(n,r,a)])?.[c]}o(xK,"resolveVars");function EK({theme:t,themeName:e,selector:n,options:r,props:a,stylesCtx:c,rootSelector:f,styles:d,style:h,vars:g,varsResolver:y,headless:v,withStylesTransform:E}){return{...!E&&vK({theme:t,themeName:e,props:a,stylesCtx:c,selector:n}),...!E&&Iu({theme:t,styles:d,props:a,stylesCtx:c})[n],...!E&&Iu({theme:t,styles:r?.styles,props:r?.props||a,stylesCtx:c})[n],...xK({theme:t,props:a,stylesCtx:c,vars:g,varsResolver:y,selector:n,themeName:e,headless:v}),...f===n?ub({style:h,theme:t}):null,...ub({style:r?.style,theme:t})}}o(EK,"getStyle");function wK({props:t,stylesCtx:e,themeName:n}){const r=Gr(),a=PV()?.();return{getTransformedStyles:o(f=>a?[...f.map(h=>a(h,{props:t,theme:r,ctx:e})),...n.map(h=>a(r.components[h]?.styles,{props:t,theme:r,ctx:e}))].filter(Boolean):[],"getTransformedStyles"),withStylesTransform:!!a}}o(wK,"useStylesTransform");function ie({name:t,classes:e,props:n,stylesCtx:r,className:a,style:c,rootSelector:f="root",unstyled:d,classNames:h,styles:g,vars:y,varsResolver:v,attributes:E}){const x=Gr(),C=HV(),w=kV(),M=FV(),L=(Array.isArray(t)?t:[t]).filter(F=>F),{withStylesTransform:z,getTransformedStyles:I}=wK({props:n,stylesCtx:r,themeName:L});return(F,G)=>({className:bK({theme:x,options:G,themeName:L,selector:F,classNamesPrefix:C,classNames:h,classes:e,unstyled:d,className:a,rootSelector:f,props:n,stylesCtx:r,withStaticClasses:w,headless:M,transformedStyles:I([G?.styles,g])}),style:EK({theme:x,themeName:L,selector:F,options:G,props:n,stylesCtx:r,rootSelector:f,styles:g,style:c,vars:y,varsResolver:v,headless:M,withStylesTransform:z}),...E?.[F]})}o(ie,"useStyles");function TK(t,e){return typeof t=="boolean"?t:e.autoContrast}o(TK,"getAutoContrastValue");const AK=o(({defaultColorScheme:t,localStorageKey:e,forceColorScheme:n})=>n?`document.documentElement.setAttribute("data-mantine-color-scheme", '${n}');`:`try {
|
|
63
|
-
var _colorScheme = window.localStorage.getItem("${e}");
|
|
64
|
-
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${t}";
|
|
65
|
-
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
66
|
-
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
67
|
-
} catch (e) {}
|
|
68
|
-
`,"getScript");function CK({defaultColorScheme:t="light",localStorageKey:e="mantine-color-scheme-value",forceColorScheme:n,...r}){const a=["light","dark","auto"].includes(t)?t:"light";return $.jsx("script",{...r,"data-mantine-script":!0,dangerouslySetInnerHTML:{__html:AK({defaultColorScheme:a,localStorageKey:e,forceColorScheme:n})}})}o(CK,"ColorSchemeScript");function vt(t,e,n){const r=Gr(),a=r.components[t]?.defaultProps,c=typeof a=="function"?a(r):a;return{...e,...c,...Wh(n)}}o(vt,"useProps");function a0(t){return Ci(t).reduce((e,n)=>t[n]!==void 0?`${e}${oV(n)}:${t[n]};`:e,"").trim()}o(a0,"cssObjectToString");function $K({selector:t,styles:e,media:n,container:r}){const a=e?a0(e):"",c=Array.isArray(n)?n.map(d=>`@media${d.query}{${t}{${a0(d.styles)}}}`):[],f=Array.isArray(r)?r.map(d=>`@container ${d.query}{${t}{${a0(d.styles)}}}`):[];return`${a?`${t}{${a}}`:""}${c.join("")}${f.join("")}`.trim()}o($K,"stylesToString");function BR(t){const e=O1();return $.jsx("style",{"data-mantine-styles":"inline",nonce:e?.(),dangerouslySetInnerHTML:{__html:$K(t)}})}o(BR,"InlineStyles");function D1(t){const{m:e,mx:n,my:r,mt:a,mb:c,ml:f,mr:d,me:h,ms:g,p:y,px:v,py:E,pt:x,pb:C,pl:w,pr:M,pe:L,ps:z,bd:I,bdrs:F,bg:G,c:q,opacity:B,ff:k,fz:et,fw:nt,lts:ot,ta:ft,lh:mt,fs:V,tt:J,td:N,w:U,miw:j,maw:tt,h:it,mih:_,mah:Y,bgsz:lt,bgp:dt,bgr:ht,bga:yt,pos:Ct,top:te,left:Kt,bottom:ye,right:sn,inset:Gn,display:Xr,flex:Qr,hiddenFrom:dc,visibleFrom:mc,lightHidden:Dp,darkHidden:Ef,sx:hc,...pc}=t;return{styleProps:Wh({m:e,mx:n,my:r,mt:a,mb:c,ml:f,mr:d,me:h,ms:g,p:y,px:v,py:E,pt:x,pb:C,pl:w,pr:M,pe:L,ps:z,bd:I,bg:G,c:q,opacity:B,ff:k,fz:et,fw:nt,lts:ot,ta:ft,lh:mt,fs:V,tt:J,td:N,w:U,miw:j,maw:tt,h:it,mih:_,mah:Y,bgsz:lt,bgp:dt,bgr:ht,bga:yt,pos:Ct,top:te,left:Kt,bottom:ye,right:sn,inset:Gn,display:Xr,flex:Qr,bdrs:F,hiddenFrom:dc,visibleFrom:mc,lightHidden:Dp,darkHidden:Ef,sx:hc}),rest:pc}}o(D1,"extractStyleProps");const MK={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function j1(t,e){const n=Wl({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}o(j1,"colorResolver");function OK(t,e){const n=Wl({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:j1(t,e)}o(OK,"textColorResolver");function RK(t,e){if(typeof t=="number")return ut(t);if(typeof t=="string"){const[n,r,...a]=t.split(" ").filter(f=>f.trim()!=="");let c=`${ut(n)}`;return r&&(c+=` ${r}`),a.length>0&&(c+=` ${j1(a.join(" "),e)}`),c.trim()}return t}o(RK,"borderResolver");const LA={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function NK(t){return typeof t=="string"&&t in LA?LA[t]:t}o(NK,"fontFamilyResolver");const _K=["h1","h2","h3","h4","h5","h6"];function DK(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&_K.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?ut(t):t}o(DK,"fontSizeResolver");function jK(t){return t}o(jK,"identityResolver");const IK=["h1","h2","h3","h4","h5","h6"];function LK(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&IK.includes(t)?`var(--mantine-${t}-line-height)`:t}o(LK,"lineHeightResolver");function zK(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?ut(t):t}o(zK,"radiusResolver");function BK(t){return typeof t=="number"?ut(t):t}o(BK,"sizeResolver");function UK(t,e){if(typeof t=="number")return ut(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return ut(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}o(UK,"spacingResolver");const l0={color:j1,textColor:OK,fontSize:DK,spacing:UK,radius:zK,identity:jK,size:BK,lineHeight:LK,fontFamily:NK,border:RK};function zA(t){return t.replace("(min-width: ","").replace("em)","")}o(zA,"replaceMediaQuery");function HK({media:t,...e}){const r=Object.keys(t).sort((a,c)=>Number(zA(a))-Number(zA(c))).map(a=>({query:a,styles:t[a]}));return{...e,media:r}}o(HK,"sortMediaQueries");function kK(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}o(kK,"hasResponsiveStyles");function FK(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}o(FK,"getBaseValue");function qK(t){return typeof t=="object"&&t!==null?Ci(t).filter(e=>e!=="base"):[]}o(qK,"getBreakpointKeys");function PK(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}o(PK,"getBreakpointValue");function UR({styleProps:t,data:e,theme:n}){return HK(Ci(t).reduce((r,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return r;const c=e[a],f=Array.isArray(c.property)?c.property:[c.property],d=FK(t[a]);if(!kK(t[a]))return f.forEach(g=>{r.inlineStyles[g]=l0[c.type](d,n)}),r;r.hasResponsiveStyles=!0;const h=qK(t[a]);return f.forEach(g=>{d!=null&&(r.styles[g]=l0[c.type](d,n)),h.forEach(y=>{const v=`(min-width: ${n.breakpoints[y]})`;r.media[v]={...r.media[v],[g]:l0[c.type](PK(t[a],y),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}o(UR,"parseStyleProps");function HR(){return`__m__-${A.useId().replace(/[:«»]/g,"")}`}o(HR,"useRandomClassName");function kR(t){return t.startsWith("data-")?t:`data-${t}`}o(kR,"transformModKey");function GK(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[kR(n)]=t[n]),e},{})}o(GK,"getMod");function FR(t){return t?typeof t=="string"?{[kR(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...FR(n)}),{}):GK(t):null}o(FR,"getBoxMod");function fb(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...fb(r,e)}),{}):typeof t=="function"?t(e):t??{}}o(fb,"mergeStyles");function YK({theme:t,style:e,vars:n,styleProps:r}){const a=fb(e,t),c=fb(n,t);return{...a,...c,...r}}o(YK,"getBoxStyle");const qR=A.forwardRef(({component:t,style:e,__vars:n,className:r,variant:a,mod:c,size:f,hiddenFrom:d,visibleFrom:h,lightHidden:g,darkHidden:y,renderRoot:v,__size:E,...x},C)=>{const w=Gr(),M=t||"div",{styleProps:L,rest:z}=D1(x),F=qV()?.()?.(L.sx),G=HR(),q=UR({styleProps:L,theme:w,data:MK}),B={ref:C,style:YK({theme:w,style:e,vars:n,styleProps:q.inlineStyles}),className:fr(r,F,{[G]:q.hasResponsiveStyles,"mantine-light-hidden":g,"mantine-dark-hidden":y,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${h}`]:h}),"data-variant":a,"data-size":xR(f)?void 0:f||void 0,size:E,...FR(c),...z};return $.jsxs($.Fragment,{children:[q.hasResponsiveStyles&&$.jsx(BR,{selector:`.${G}`,styles:q.styles,media:q.media}),typeof v=="function"?v(B):$.jsx(M,{...B})]})});qR.displayName="@mantine/core/Box";const Et=qR;function PR(t){return t}o(PR,"identity");function ytt(t){const e=t;return n=>{const r=A.forwardRef((a,c)=>$.jsx(e,{...n,...a,ref:c}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r}}o(ytt,"getWithProps");function zt(t){const e=A.forwardRef(t);return e.extend=PR,e.withProps=n=>{const r=A.forwardRef((a,c)=>$.jsx(e,{...n,...a,ref:c}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}o(zt,"factory");function Pn(t){const e=A.forwardRef(t);return e.withProps=n=>{const r=A.forwardRef((a,c)=>$.jsx(e,{...n,...a,ref:c}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=PR,e}o(Pn,"polymorphicFactory");const VK=A.createContext({dir:"ltr",toggleDirection:o(()=>{},"toggleDirection"),setDirection:o(()=>{},"setDirection")});function KK(){return A.useContext(VK)}o(KK,"useDirection");var c0={exports:{}},yn={};var BA;function XK(){if(BA)return yn;BA=1;var t=E1();function e(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}o(e,"formatProdErrorMessage");function n(){}o(n,"noop");var r={d:{f:n,r:o(function(){throw Error(e(522))},"r"),D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function c(h,g,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:h,containerInfo:g,implementation:y}}o(c,"createPortal$1");var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return o(d,"getCrossOriginStringAs"),yn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yn.createPortal=function(h,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(e(299));return c(h,g,null,y)},yn.flushSync=function(h){var g=f.T,y=r.p;try{if(f.T=null,r.p=2,h)return h()}finally{f.T=g,r.p=y,r.d.f()}},yn.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(h,g))},yn.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},yn.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var y=g.as,v=d(y,g.crossOrigin),E=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:E,fetchPriority:x}):y==="script"&&r.d.X(h,{crossOrigin:v,integrity:E,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},yn.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=d(g.as,g.crossOrigin);r.d.M(h,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(h)},yn.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,v=d(y,g.crossOrigin);r.d.L(h,y,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},yn.preloadModule=function(h,g){if(typeof h=="string")if(g){var y=d(g.as,g.crossOrigin);r.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(h)},yn.requestFormReset=function(h){r.d.r(h)},yn.unstable_batchedUpdates=function(h,g){return h(g)},yn.useFormState=function(h,g,y){return f.H.useFormState(h,g,y)},yn.useFormStatus=function(){return f.H.useHostTransitionStatus()},yn.version="19.2.4",yn}o(XK,"requireReactDom_production");var UA;function GR(){if(UA)return c0.exports;UA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return o(t,"checkDCE"),t(),c0.exports=XK(),c0.exports}o(GR,"requireReactDom");var I1=GR();const gu=bs(I1);function rp(){return typeof window<"u"}o(rp,"hasWindow");function tc(t){return YR(t)?(t.nodeName||"").toLowerCase():"#document"}o(tc,"getNodeName");function Bn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}o(Bn,"getWindow");function zi(t){var e;return(e=(YR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}o(zi,"getDocumentElement");function YR(t){return rp()?t instanceof Node||t instanceof Bn(t).Node:!1}o(YR,"isNode");function Te(t){return rp()?t instanceof Element||t instanceof Bn(t).Element:!1}o(Te,"isElement");function dr(t){return rp()?t instanceof HTMLElement||t instanceof Bn(t).HTMLElement:!1}o(dr,"isHTMLElement");function db(t){return!rp()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bn(t).ShadowRoot}o(db,"isShadowRoot");const QK=new Set(["inline","contents"]);function bf(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=Hr(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!QK.has(a)}o(bf,"isOverflowElement");const ZK=new Set(["table","td","th"]);function JK(t){return ZK.has(tc(t))}o(JK,"isTableElement");const WK=[":popover-open",":modal"];function ip(t){return WK.some(e=>{try{return t.matches(e)}catch{return!1}})}o(ip,"isTopLayer");const tX=["transform","translate","scale","rotate","perspective"],eX=["transform","translate","scale","rotate","perspective","filter"],nX=["paint","layout","strict","content"];function L1(t){const e=op(),n=Te(t)?Hr(t):t;return tX.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||eX.some(r=>(n.willChange||"").includes(r))||nX.some(r=>(n.contain||"").includes(r))}o(L1,"isContainingBlock");function rX(t){let e=uo(t);for(;dr(e)&&!oo(e);){if(L1(e))return e;if(ip(e))return null;e=uo(e)}return null}o(rX,"getContainingBlock");function op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}o(op,"isWebKit");const iX=new Set(["html","body","#document"]);function oo(t){return iX.has(tc(t))}o(oo,"isLastTraversableNode");function Hr(t){return Bn(t).getComputedStyle(t)}o(Hr,"getComputedStyle$1");function sp(t){return Te(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}o(sp,"getNodeScroll");function uo(t){if(tc(t)==="html")return t;const e=t.assignedSlot||t.parentNode||db(t)&&t.host||zi(t);return db(e)?e.host:e}o(uo,"getParentNode");function VR(t){const e=uo(t);return oo(e)?t.ownerDocument?t.ownerDocument.body:t.body:dr(e)&&bf(e)?e:VR(e)}o(VR,"getNearestOverflowAncestor");function rs(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=VR(t),c=a===((r=t.ownerDocument)==null?void 0:r.body),f=Bn(a);if(c){const d=mb(f);return e.concat(f,f.visualViewport||[],bf(a)?a:[],d&&n?rs(d):[])}return e.concat(a,rs(a,[],n))}o(rs,"getOverflowAncestors");function mb(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}o(mb,"getFrameElement");const oX=["top","right","bottom","left"],si=Math.min,bn=Math.max,Gm=Math.round,Vd=Math.floor,$i=o(t=>({x:t,y:t}),"createCoords"),sX={left:"right",right:"left",bottom:"top",top:"bottom"},aX={start:"end",end:"start"};function hb(t,e,n){return bn(t,si(e,n))}o(hb,"clamp$1");function _i(t,e){return typeof t=="function"?t(e):t}o(_i,"evaluate");function ai(t){return t.split("-")[0]}o(ai,"getSide");function ec(t){return t.split("-")[1]}o(ec,"getAlignment");function z1(t){return t==="x"?"y":"x"}o(z1,"getOppositeAxis");function B1(t){return t==="y"?"height":"width"}o(B1,"getAxisLength");const lX=new Set(["top","bottom"]);function ti(t){return lX.has(ai(t))?"y":"x"}o(ti,"getSideAxis");function U1(t){return z1(ti(t))}o(U1,"getAlignmentAxis");function cX(t,e,n){n===void 0&&(n=!1);const r=ec(t),a=U1(t),c=B1(a);let f=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(f=Ym(f)),[f,Ym(f)]}o(cX,"getAlignmentSides");function uX(t){const e=Ym(t);return[pb(t),e,pb(e)]}o(uX,"getExpandedPlacements");function pb(t){return t.replace(/start|end/g,e=>aX[e])}o(pb,"getOppositeAlignmentPlacement");const HA=["left","right"],kA=["right","left"],fX=["top","bottom"],dX=["bottom","top"];function mX(t,e,n){switch(t){case"top":case"bottom":return n?e?kA:HA:e?HA:kA;case"left":case"right":return e?fX:dX;default:return[]}}o(mX,"getSideList");function hX(t,e,n,r){const a=ec(t);let c=mX(ai(t),n==="start",r);return a&&(c=c.map(f=>f+"-"+a),e&&(c=c.concat(c.map(pb)))),c}o(hX,"getOppositeAxisPlacements");function Ym(t){return t.replace(/left|right|bottom|top/g,e=>sX[e])}o(Ym,"getOppositePlacement");function pX(t){return{top:0,right:0,bottom:0,left:0,...t}}o(pX,"expandPaddingObject");function H1(t){return typeof t!="number"?pX(t):{top:t,right:t,bottom:t,left:t}}o(H1,"getPaddingObject");function Nl(t){const{x:e,y:n,width:r,height:a}=t;return{width:r,height:a,top:n,left:e,right:e+r,bottom:n+a,x:e,y:n}}o(Nl,"rectToClientRect");function gX(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}o(gX,"getPlatform");function yX(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}o(yX,"getUserAgent");function bX(){return/apple/i.test(navigator.vendor)}o(bX,"isSafari");function vX(){return gX().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}o(vX,"isMac");function SX(){return yX().includes("jsdom/")}o(SX,"isJSDOM");const FA="data-floating-ui-focusable",xX="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function qA(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}o(qA,"activeElement");function zu(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&db(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}o(zu,"contains");function dl(t){return"composedPath"in t?t.composedPath()[0]:t.target}o(dl,"getTarget");function u0(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}o(u0,"isEventTargetWithin");function EX(t){return t.matches("html,body")}o(EX,"isRootElement");function Ys(t){return t?.ownerDocument||document}o(Ys,"getDocument");function wX(t){return dr(t)&&t.matches(xX)}o(wX,"isTypeableElement");function TX(t){if(!t||SX())return!0;try{return t.matches(":focus-visible")}catch{return!0}}o(TX,"matchesFocusVisible");function AX(t){return t?t.hasAttribute(FA)?t:t.querySelector("["+FA+"]")||t:null}o(AX,"getFloatingFocusElement");function lm(t,e,n){return n===void 0&&(n=!0),t.filter(a=>{var c;return a.parentId===e&&(!n||((c=a.context)==null?void 0:c.open))}).flatMap(a=>[a,...lm(t,a.id,n)])}o(lm,"getNodeChildren");function CX(t){return"nativeEvent"in t}o(CX,"isReactEvent");function gb(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}o(gb,"isMouseLikePointerType");var $X=typeof document<"u",MX=o(function(){},"noop2"),Mi=$X?A.useLayoutEffect:MX;const OX={...WO};function Kd(t){const e=A.useRef(t);return Mi(()=>{e.current=t}),e}o(Kd,"useLatestRef$1");const RX=OX.useInsertionEffect,NX=RX||(t=>t());function Ti(t){const e=A.useRef(()=>{});return NX(()=>{e.current=t}),A.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.current==null?void 0:e.current(...r)},[])}o(Ti,"useEffectEvent");function PA(t,e,n){let{reference:r,floating:a}=t;const c=ti(e),f=U1(e),d=B1(f),h=ai(e),g=c==="y",y=r.x+r.width/2-a.width/2,v=r.y+r.height/2-a.height/2,E=r[d]/2-a[d]/2;let x;switch(h){case"top":x={x:y,y:r.y-a.height};break;case"bottom":x={x:y,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:v};break;case"left":x={x:r.x-a.width,y:v};break;default:x={x:r.x,y:r.y}}switch(ec(e)){case"start":x[f]-=E*(n&&g?-1:1);break;case"end":x[f]+=E*(n&&g?-1:1);break}return x}o(PA,"computeCoordsFromPlacement");async function _X(t,e){var n;e===void 0&&(e={});const{x:r,y:a,platform:c,rects:f,elements:d,strategy:h}=t,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:E=!1,padding:x=0}=_i(e,t),C=H1(x),M=d[E?v==="floating"?"reference":"floating":v],L=Nl(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(M)))==null||n?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:g,rootBoundary:y,strategy:h})),z=v==="floating"?{x:r,y:a,width:f.floating.width,height:f.floating.height}:f.reference,I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),F=await(c.isElement==null?void 0:c.isElement(I))?await(c.getScale==null?void 0:c.getScale(I))||{x:1,y:1}:{x:1,y:1},G=Nl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:z,offsetParent:I,strategy:h}):z);return{top:(L.top-G.top+C.top)/F.y,bottom:(G.bottom-L.bottom+C.bottom)/F.y,left:(L.left-G.left+C.left)/F.x,right:(G.right-L.right+C.right)/F.x}}o(_X,"detectOverflow");const DX=o(async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:c=[],platform:f}=n,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(e));let g=await f.getElementRects({reference:t,floating:e,strategy:a}),{x:y,y:v}=PA(g,r,h),E=r,x={},C=0;for(let M=0;M<d.length;M++){var w;const{name:L,fn:z}=d[M],{x:I,y:F,data:G,reset:q}=await z({x:y,y:v,initialPlacement:r,placement:E,strategy:a,middlewareData:x,rects:g,platform:{...f,detectOverflow:(w=f.detectOverflow)!=null?w:_X},elements:{reference:t,floating:e}});y=I??y,v=F??v,x={...x,[L]:{...x[L],...G}},q&&C<=50&&(C++,typeof q=="object"&&(q.placement&&(E=q.placement),q.rects&&(g=q.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:a}):q.rects),{x:y,y:v}=PA(g,E,h)),M=-1)}return{x:y,y:v,placement:E,strategy:a,middlewareData:x}},"computePosition$1"),jX=o(t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:c,platform:f,elements:d,middlewareData:h}=e,{element:g,padding:y=0}=_i(t,e)||{};if(g==null)return{};const v=H1(y),E={x:n,y:r},x=U1(a),C=B1(x),w=await f.getDimensions(g),M=x==="y",L=M?"top":"left",z=M?"bottom":"right",I=M?"clientHeight":"clientWidth",F=c.reference[C]+c.reference[x]-E[x]-c.floating[C],G=E[x]-c.reference[x],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let B=q?q[I]:0;(!B||!await(f.isElement==null?void 0:f.isElement(q)))&&(B=d.floating[I]||c.floating[C]);const k=F/2-G/2,et=B/2-w[C]/2-1,nt=si(v[L],et),ot=si(v[z],et),ft=nt,mt=B-w[C]-ot,V=B/2-w[C]/2+k,J=hb(ft,V,mt),N=!h.arrow&&ec(a)!=null&&V!==J&&c.reference[C]/2-(V<ft?nt:ot)-w[C]/2<0,U=N?V<ft?V-ft:V-mt:0;return{[x]:E[x]+U,data:{[x]:J,centerOffset:V-J-U,...N&&{alignmentOffset:U}},reset:N}}}),"arrow$3"),IX=o(function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:a,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:g}=e,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:w=!0,...M}=_i(t,e);if((n=c.arrow)!=null&&n.alignmentOffset)return{};const L=ai(a),z=ti(d),I=ai(d)===d,F=await(h.isRTL==null?void 0:h.isRTL(g.floating)),G=E||(I||!w?[Ym(d)]:uX(d)),q=C!=="none";!E&&q&&G.push(...hX(d,w,C,F));const B=[d,...G],k=await h.detectOverflow(e,M),et=[];let nt=((r=c.flip)==null?void 0:r.overflows)||[];if(y&&et.push(k[L]),v){const V=cX(a,f,F);et.push(k[V[0]],k[V[1]])}if(nt=[...nt,{placement:a,overflows:et}],!et.every(V=>V<=0)){var ot,ft;const V=(((ot=c.flip)==null?void 0:ot.index)||0)+1,J=B[V];if(J&&(!(v==="alignment"?z!==ti(J):!1)||nt.every(j=>ti(j.placement)===z?j.overflows[0]>0:!0)))return{data:{index:V,overflows:nt},reset:{placement:J}};let N=(ft=nt.filter(U=>U.overflows[0]<=0).sort((U,j)=>U.overflows[1]-j.overflows[1])[0])==null?void 0:ft.placement;if(!N)switch(x){case"bestFit":{var mt;const U=(mt=nt.filter(j=>{if(q){const tt=ti(j.placement);return tt===z||tt==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(tt=>tt>0).reduce((tt,it)=>tt+it,0)]).sort((j,tt)=>j[1]-tt[1])[0])==null?void 0:mt[0];U&&(N=U);break}case"initialPlacement":N=d;break}if(a!==N)return{reset:{placement:N}}}return{}}}},"flip$2");function GA(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}o(GA,"getSideOffsets");function YA(t){return oX.some(e=>t[e]>=0)}o(YA,"isAnySideFullyClipped");const LX=o(function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:a="referenceHidden",...c}=_i(t,e);switch(a){case"referenceHidden":{const f=await r.detectOverflow(e,{...c,elementContext:"reference"}),d=GA(f,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:YA(d)}}}case"escaped":{const f=await r.detectOverflow(e,{...c,altBoundary:!0}),d=GA(f,n.floating);return{data:{escapedOffsets:d,escaped:YA(d)}}}default:return{}}}}},"hide$2");function KR(t){const e=si(...t.map(c=>c.left)),n=si(...t.map(c=>c.top)),r=bn(...t.map(c=>c.right)),a=bn(...t.map(c=>c.bottom));return{x:e,y:n,width:r-e,height:a-n}}o(KR,"getBoundingRect");function zX(t){const e=t.slice().sort((a,c)=>a.y-c.y),n=[];let r=null;for(let a=0;a<e.length;a++){const c=e[a];!r||c.y-r.y>r.height/2?n.push([c]):n[n.length-1].push(c),r=c}return n.map(a=>Nl(KR(a)))}o(zX,"getRectsByLine");const BX=o(function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:a,platform:c,strategy:f}=e,{padding:d=2,x:h,y:g}=_i(t,e),y=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(r.reference))||[]),v=zX(y),E=Nl(KR(y)),x=H1(d);function C(){if(v.length===2&&v[0].left>v[1].right&&h!=null&&g!=null)return v.find(M=>h>M.left-x.left&&h<M.right+x.right&&g>M.top-x.top&&g<M.bottom+x.bottom)||E;if(v.length>=2){if(ti(n)==="y"){const nt=v[0],ot=v[v.length-1],ft=ai(n)==="top",mt=nt.top,V=ot.bottom,J=ft?nt.left:ot.left,N=ft?nt.right:ot.right,U=N-J,j=V-mt;return{top:mt,bottom:V,left:J,right:N,width:U,height:j,x:J,y:mt}}const M=ai(n)==="left",L=bn(...v.map(nt=>nt.right)),z=si(...v.map(nt=>nt.left)),I=v.filter(nt=>M?nt.left===z:nt.right===L),F=I[0].top,G=I[I.length-1].bottom,q=z,B=L,k=B-q,et=G-F;return{top:F,bottom:G,left:q,right:B,width:k,height:et,x:q,y:F}}return E}o(C,"getBoundingClientRect");const w=await c.getElementRects({reference:{getBoundingClientRect:C},floating:r.floating,strategy:f});return a.reference.x!==w.reference.x||a.reference.y!==w.reference.y||a.reference.width!==w.reference.width||a.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},"inline$2"),XR=new Set(["left","top"]);async function UX(t,e){const{placement:n,platform:r,elements:a}=t,c=await(r.isRTL==null?void 0:r.isRTL(a.floating)),f=ai(n),d=ec(n),h=ti(n)==="y",g=XR.has(f)?-1:1,y=c&&h?-1:1,v=_i(e,t);let{mainAxis:E,crossAxis:x,alignmentAxis:C}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof C=="number"&&(x=d==="end"?C*-1:C),h?{x:x*y,y:E*g}:{x:E*g,y:x*y}}o(UX,"convertValueToCoords");const HX=o(function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:a,y:c,placement:f,middlewareData:d}=e,h=await UX(e,t);return f===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:a+h.x,y:c+h.y,data:{...h,placement:f}}}}},"offset$2"),kX=o(function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a,platform:c}=e,{mainAxis:f=!0,crossAxis:d=!1,limiter:h={fn:o(L=>{let{x:z,y:I}=L;return{x:z,y:I}},"fn")},...g}=_i(t,e),y={x:n,y:r},v=await c.detectOverflow(e,g),E=ti(ai(a)),x=z1(E);let C=y[x],w=y[E];if(f){const L=x==="y"?"top":"left",z=x==="y"?"bottom":"right",I=C+v[L],F=C-v[z];C=hb(I,C,F)}if(d){const L=E==="y"?"top":"left",z=E==="y"?"bottom":"right",I=w+v[L],F=w-v[z];w=hb(I,w,F)}const M=h.fn({...e,[x]:C,[E]:w});return{...M,data:{x:M.x-n,y:M.y-r,enabled:{[x]:f,[E]:d}}}}}},"shift$2"),FX=o(function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:a,rects:c,middlewareData:f}=e,{offset:d=0,mainAxis:h=!0,crossAxis:g=!0}=_i(t,e),y={x:n,y:r},v=ti(a),E=z1(v);let x=y[E],C=y[v];const w=_i(d,e),M=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(h){const I=E==="y"?"height":"width",F=c.reference[E]-c.floating[I]+M.mainAxis,G=c.reference[E]+c.reference[I]-M.mainAxis;x<F?x=F:x>G&&(x=G)}if(g){var L,z;const I=E==="y"?"width":"height",F=XR.has(ai(a)),G=c.reference[v]-c.floating[I]+(F&&((L=f.offset)==null?void 0:L[v])||0)+(F?0:M.crossAxis),q=c.reference[v]+c.reference[I]+(F?0:((z=f.offset)==null?void 0:z[v])||0)-(F?M.crossAxis:0);C<G?C=G:C>q&&(C=q)}return{[E]:x,[v]:C}}}},"limitShift$2"),qX=o(function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:a,rects:c,platform:f,elements:d}=e,{apply:h=o(()=>{},"apply"),...g}=_i(t,e),y=await f.detectOverflow(e,g),v=ai(a),E=ec(a),x=ti(a)==="y",{width:C,height:w}=c.floating;let M,L;v==="top"||v==="bottom"?(M=v,L=E===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(L=v,M=E==="end"?"top":"bottom");const z=w-y.top-y.bottom,I=C-y.left-y.right,F=si(w-y[M],z),G=si(C-y[L],I),q=!e.middlewareData.shift;let B=F,k=G;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(k=I),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(B=z),q&&!E){const nt=bn(y.left,0),ot=bn(y.right,0),ft=bn(y.top,0),mt=bn(y.bottom,0);x?k=C-2*(nt!==0||ot!==0?nt+ot:bn(y.left,y.right)):B=w-2*(ft!==0||mt!==0?ft+mt:bn(y.top,y.bottom))}await h({...e,availableWidth:k,availableHeight:B});const et=await f.getDimensions(d.floating);return C!==et.width||w!==et.height?{reset:{rects:!0}}:{}}}},"size$2");function QR(t){const e=Hr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=dr(t),c=a?t.offsetWidth:n,f=a?t.offsetHeight:r,d=Gm(n)!==c||Gm(r)!==f;return d&&(n=c,r=f),{width:n,height:r,$:d}}o(QR,"getCssDimensions");function k1(t){return Te(t)?t:t.contextElement}o(k1,"unwrapElement");function Sl(t){const e=k1(t);if(!dr(e))return $i(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:c}=QR(e);let f=(c?Gm(n.width):n.width)/r,d=(c?Gm(n.height):n.height)/a;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}o(Sl,"getScale");const PX=$i(0);function ZR(t){const e=Bn(t);return!op()||!e.visualViewport?PX:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}o(ZR,"getVisualOffsets");function GX(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Bn(t)?!1:e}o(GX,"shouldAddVisualOffsets");function oa(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),c=k1(t);let f=$i(1);e&&(r?Te(r)&&(f=Sl(r)):f=Sl(t));const d=GX(c,n,r)?ZR(c):$i(0);let h=(a.left+d.x)/f.x,g=(a.top+d.y)/f.y,y=a.width/f.x,v=a.height/f.y;if(c){const E=Bn(c),x=r&&Te(r)?Bn(r):r;let C=E,w=mb(C);for(;w&&r&&x!==C;){const M=Sl(w),L=w.getBoundingClientRect(),z=Hr(w),I=L.left+(w.clientLeft+parseFloat(z.paddingLeft))*M.x,F=L.top+(w.clientTop+parseFloat(z.paddingTop))*M.y;h*=M.x,g*=M.y,y*=M.x,v*=M.y,h+=I,g+=F,C=Bn(w),w=mb(C)}}return Nl({width:y,height:v,x:h,y:g})}o(oa,"getBoundingClientRect");function ap(t,e){const n=sp(t).scrollLeft;return e?e.left+n:oa(zi(t)).left+n}o(ap,"getWindowScrollBarX");function JR(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-ap(t,n),a=n.top+e.scrollTop;return{x:r,y:a}}o(JR,"getHTMLOffset");function YX(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const c=a==="fixed",f=zi(r),d=e?ip(e.floating):!1;if(r===f||d&&c)return n;let h={scrollLeft:0,scrollTop:0},g=$i(1);const y=$i(0),v=dr(r);if((v||!v&&!c)&&((tc(r)!=="body"||bf(f))&&(h=sp(r)),dr(r))){const x=oa(r);g=Sl(r),y.x=x.x+r.clientLeft,y.y=x.y+r.clientTop}const E=f&&!v&&!c?JR(f,h):$i(0);return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-h.scrollLeft*g.x+y.x+E.x,y:n.y*g.y-h.scrollTop*g.y+y.y+E.y}}o(YX,"convertOffsetParentRelativeRectToViewportRelativeRect");function VX(t){return Array.from(t.getClientRects())}o(VX,"getClientRects");function KX(t){const e=zi(t),n=sp(t),r=t.ownerDocument.body,a=bn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),c=bn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let f=-n.scrollLeft+ap(t);const d=-n.scrollTop;return Hr(r).direction==="rtl"&&(f+=bn(e.clientWidth,r.clientWidth)-a),{width:a,height:c,x:f,y:d}}o(KX,"getDocumentRect");const VA=25;function XX(t,e){const n=Bn(t),r=zi(t),a=n.visualViewport;let c=r.clientWidth,f=r.clientHeight,d=0,h=0;if(a){c=a.width,f=a.height;const y=op();(!y||y&&e==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}const g=ap(r);if(g<=0){const y=r.ownerDocument,v=y.body,E=getComputedStyle(v),x=y.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,C=Math.abs(r.clientWidth-v.clientWidth-x);C<=VA&&(c-=C)}else g<=VA&&(c+=g);return{width:c,height:f,x:d,y:h}}o(XX,"getViewportRect");const QX=new Set(["absolute","fixed"]);function ZX(t,e){const n=oa(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,c=dr(t)?Sl(t):$i(1),f=t.clientWidth*c.x,d=t.clientHeight*c.y,h=a*c.x,g=r*c.y;return{width:f,height:d,x:h,y:g}}o(ZX,"getInnerBoundingClientRect");function KA(t,e,n){let r;if(e==="viewport")r=XX(t,n);else if(e==="document")r=KX(zi(t));else if(Te(e))r=ZX(e,n);else{const a=ZR(t);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Nl(r)}o(KA,"getClientRectFromClippingAncestor");function WR(t,e){const n=uo(t);return n===e||!Te(n)||oo(n)?!1:Hr(n).position==="fixed"||WR(n,e)}o(WR,"hasFixedPositionAncestor");function JX(t,e){const n=e.get(t);if(n)return n;let r=rs(t,[],!1).filter(d=>Te(d)&&tc(d)!=="body"),a=null;const c=Hr(t).position==="fixed";let f=c?uo(t):t;for(;Te(f)&&!oo(f);){const d=Hr(f),h=L1(f);!h&&d.position==="fixed"&&(a=null),(c?!h&&!a:!h&&d.position==="static"&&!!a&&QX.has(a.position)||bf(f)&&!h&&WR(t,f))?r=r.filter(y=>y!==f):a=d,f=uo(f)}return e.set(t,r),r}o(JX,"getClippingElementAncestors");function WX(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const f=[...n==="clippingAncestors"?ip(e)?[]:JX(e,this._c):[].concat(n),r],d=f[0],h=f.reduce((g,y)=>{const v=KA(e,y,a);return g.top=bn(v.top,g.top),g.right=si(v.right,g.right),g.bottom=si(v.bottom,g.bottom),g.left=bn(v.left,g.left),g},KA(e,d,a));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}o(WX,"getClippingRect");function tQ(t){const{width:e,height:n}=QR(t);return{width:e,height:n}}o(tQ,"getDimensions");function eQ(t,e,n){const r=dr(e),a=zi(e),c=n==="fixed",f=oa(t,!0,c,e);let d={scrollLeft:0,scrollTop:0};const h=$i(0);function g(){h.x=ap(a)}if(o(g,"setLeftRTLScrollbarOffset"),r||!r&&!c)if((tc(e)!=="body"||bf(a))&&(d=sp(e)),r){const x=oa(e,!0,c,e);h.x=x.x+e.clientLeft,h.y=x.y+e.clientTop}else a&&g();c&&!r&&a&&g();const y=a&&!r&&!c?JR(a,d):$i(0),v=f.left+d.scrollLeft-h.x-y.x,E=f.top+d.scrollTop-h.y-y.y;return{x:v,y:E,width:f.width,height:f.height}}o(eQ,"getRectRelativeToOffsetParent");function f0(t){return Hr(t).position==="static"}o(f0,"isStaticPositioned");function XA(t,e){if(!dr(t)||Hr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return zi(t)===n&&(n=n.ownerDocument.body),n}o(XA,"getTrueOffsetParent");function t3(t,e){const n=Bn(t);if(ip(t))return n;if(!dr(t)){let a=uo(t);for(;a&&!oo(a);){if(Te(a)&&!f0(a))return a;a=uo(a)}return n}let r=XA(t,e);for(;r&&JK(r)&&f0(r);)r=XA(r,e);return r&&oo(r)&&f0(r)&&!L1(r)?n:r||rX(t)||n}o(t3,"getOffsetParent");const nQ=o(async function(t){const e=this.getOffsetParent||t3,n=this.getDimensions,r=await n(t.floating);return{reference:eQ(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},"getElementRects");function rQ(t){return Hr(t).direction==="rtl"}o(rQ,"isRTL");const iQ={convertOffsetParentRelativeRectToViewportRelativeRect:YX,getDocumentElement:zi,getClippingRect:WX,getOffsetParent:t3,getElementRects:nQ,getClientRects:VX,getDimensions:tQ,getScale:Sl,isElement:Te,isRTL:rQ};function e3(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}o(e3,"rectsAreEqual");function oQ(t,e){let n=null,r;const a=zi(t);function c(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}o(c,"cleanup");function f(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),c();const g=t.getBoundingClientRect(),{left:y,top:v,width:E,height:x}=g;if(d||e(),!E||!x)return;const C=Vd(v),w=Vd(a.clientWidth-(y+E)),M=Vd(a.clientHeight-(v+x)),L=Vd(y),I={rootMargin:-C+"px "+-w+"px "+-M+"px "+-L+"px",threshold:bn(0,si(1,h))||1};let F=!0;function G(q){const B=q[0].intersectionRatio;if(B!==h){if(!F)return f();B?f(!1,B):r=setTimeout(()=>{f(!1,1e-7)},1e3)}B===1&&!e3(g,t.getBoundingClientRect())&&f(),F=!1}o(G,"handleObserve");try{n=new IntersectionObserver(G,{...I,root:a.ownerDocument})}catch{n=new IntersectionObserver(G,I)}n.observe(t)}return o(f,"refresh"),f(!0),c}o(oQ,"observeMove");function btt(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,g=k1(t),y=a||c?[...g?rs(g):[],...rs(e)]:[];y.forEach(L=>{a&&L.addEventListener("scroll",n,{passive:!0}),c&&L.addEventListener("resize",n)});const v=g&&d?oQ(g,n):null;let E=-1,x=null;f&&(x=new ResizeObserver(L=>{let[z]=L;z&&z.target===g&&x&&(x.unobserve(e),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var I;(I=x)==null||I.observe(e)})),n()}),g&&!h&&x.observe(g),x.observe(e));let C,w=h?oa(t):null;h&&M();function M(){const L=oa(t);w&&!e3(w,L)&&n(),w=L,C=requestAnimationFrame(M)}return o(M,"frameLoop"),n(),()=>{var L;y.forEach(z=>{a&&z.removeEventListener("scroll",n),c&&z.removeEventListener("resize",n)}),v?.(),(L=x)==null||L.disconnect(),x=null,h&&cancelAnimationFrame(C)}}o(btt,"autoUpdate");const sQ=HX,aQ=kX,lQ=IX,cQ=qX,uQ=LX,QA=jX,fQ=BX,dQ=FX,mQ=o((t,e,n)=>{const r=new Map,a={platform:iQ,...n},c={...a.platform,_c:r};return DX(t,e,{...a,platform:c})},"computePosition");var hQ=typeof document<"u",pQ=o(function(){},"noop"),cm=hQ?A.useLayoutEffect:pQ;function Vm(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,a;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Vm(t[r],e[r]))return!1;return!0}if(a=Object.keys(t),n=a.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,a[r]))return!1;for(r=n;r--!==0;){const c=a[r];if(!(c==="_owner"&&t.$$typeof)&&!Vm(t[c],e[c]))return!1}return!0}return t!==t&&e!==e}o(Vm,"deepEqual");function n3(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}o(n3,"getDPR");function ZA(t,e){const n=n3(t);return Math.round(e*n)/n}o(ZA,"roundByDPR");function d0(t){const e=A.useRef(t);return cm(()=>{e.current=t}),e}o(d0,"useLatestRef");function gQ(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:h,open:g}=t,[y,v]=A.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[E,x]=A.useState(r);Vm(E,r)||x(r);const[C,w]=A.useState(null),[M,L]=A.useState(null),z=A.useCallback(j=>{j!==q.current&&(q.current=j,w(j))},[]),I=A.useCallback(j=>{j!==B.current&&(B.current=j,L(j))},[]),F=c||C,G=f||M,q=A.useRef(null),B=A.useRef(null),k=A.useRef(y),et=h!=null,nt=d0(h),ot=d0(a),ft=d0(g),mt=A.useCallback(()=>{if(!q.current||!B.current)return;const j={placement:e,strategy:n,middleware:E};ot.current&&(j.platform=ot.current),mQ(q.current,B.current,j).then(tt=>{const it={...tt,isPositioned:ft.current!==!1};V.current&&!Vm(k.current,it)&&(k.current=it,I1.flushSync(()=>{v(it)}))})},[E,e,n,ot,ft]);cm(()=>{g===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,v(j=>({...j,isPositioned:!1})))},[g]);const V=A.useRef(!1);cm(()=>(V.current=!0,()=>{V.current=!1}),[]),cm(()=>{if(F&&(q.current=F),G&&(B.current=G),F&&G){if(nt.current)return nt.current(F,G,mt);mt()}},[F,G,mt,nt,et]);const J=A.useMemo(()=>({reference:q,floating:B,setReference:z,setFloating:I}),[z,I]),N=A.useMemo(()=>({reference:F,floating:G}),[F,G]),U=A.useMemo(()=>{const j={position:n,left:0,top:0};if(!N.floating)return j;const tt=ZA(N.floating,y.x),it=ZA(N.floating,y.y);return d?{...j,transform:"translate("+tt+"px, "+it+"px)",...n3(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:tt,top:it}},[n,d,N.floating,y.x,y.y]);return A.useMemo(()=>({...y,update:mt,refs:J,elements:N,floatingStyles:U}),[y,mt,J,N,U])}o(gQ,"useFloating$1");const yQ=o(t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return o(e,"isRef"),{name:"arrow",options:t,fn(n){const{element:r,padding:a}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?QA({element:r.current,padding:a}).fn(n):{}:r?QA({element:r,padding:a}).fn(n):{}}}},"arrow$1"),vtt=o((t,e)=>({...sQ(t),options:[t,e]}),"offset"),Stt=o((t,e)=>({...aQ(t),options:[t,e]}),"shift"),xtt=o((t,e)=>({...dQ(t),options:[t,e]}),"limitShift"),Ett=o((t,e)=>({...lQ(t),options:[t,e]}),"flip"),wtt=o((t,e)=>({...cQ(t),options:[t,e]}),"size"),Ttt=o((t,e)=>({...uQ(t),options:[t,e]}),"hide"),Att=o((t,e)=>({...fQ(t),options:[t,e]}),"inline"),Ctt=o((t,e)=>({...yQ(t),options:[t,e]}),"arrow");function r3(t){const e=A.useRef(void 0),n=A.useCallback(r=>{const a=t.map(c=>{if(c!=null){if(typeof c=="function"){const f=c,d=f(r);return typeof d=="function"?d:()=>{f(null)}}return c.current=r,()=>{c.current=null}}});return()=>{a.forEach(c=>c?.())}},t);return A.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}o(r3,"useMergeRefs");const bQ="data-floating-ui-focusable",JA="active",WA="selected",vQ={...WO};let tC=!1,SQ=0;const eC=o(()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+SQ++,"genId");function xQ(){const[t,e]=A.useState(()=>tC?eC():void 0);return Mi(()=>{t==null&&e(eC())},[]),A.useEffect(()=>{tC=!0},[]),t}o(xQ,"useFloatingId");const EQ=vQ.useId,i3=EQ||xQ;function wQ(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(a=>a(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}o(wQ,"createEventEmitter");const TQ=A.createContext(null),AQ=A.createContext(null),F1=o(()=>{var t;return((t=A.useContext(TQ))==null?void 0:t.id)||null},"useFloatingParentNodeId"),q1=o(()=>A.useContext(AQ),"useFloatingTree");function P1(t){return"data-floating-ui-"+t}o(P1,"createAttribute");function Nr(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}o(Nr,"clearTimeoutIfSet");const nC=P1("safe-polygon");function um(t,e,n){if(n&&!gb(n))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const r=t();return typeof r=="number"?r:r?.[e]}return t?.[e]}o(um,"getDelay");function m0(t){return typeof t=="function"?t():t}o(m0,"getRestMs");function $tt(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:a,events:c,elements:f}=t,{enabled:d=!0,delay:h=0,handleClose:g=null,mouseOnly:y=!1,restMs:v=0,move:E=!0}=e,x=q1(),C=F1(),w=Kd(g),M=Kd(h),L=Kd(n),z=Kd(v),I=A.useRef(),F=A.useRef(-1),G=A.useRef(),q=A.useRef(-1),B=A.useRef(!0),k=A.useRef(!1),et=A.useRef(()=>{}),nt=A.useRef(!1),ot=Ti(()=>{var U;const j=(U=a.current.openEvent)==null?void 0:U.type;return j?.includes("mouse")&&j!=="mousedown"});A.useEffect(()=>{if(!d)return;function U(j){let{open:tt}=j;tt||(Nr(F),Nr(q),B.current=!0,nt.current=!1)}return o(U,"onOpenChange2"),c.on("openchange",U),()=>{c.off("openchange",U)}},[d,c]),A.useEffect(()=>{if(!d||!w.current||!n)return;function U(tt){ot()&&r(!1,tt,"hover")}o(U,"onLeave");const j=Ys(f.floating).documentElement;return j.addEventListener("mouseleave",U),()=>{j.removeEventListener("mouseleave",U)}},[f.floating,n,r,d,w,ot]);const ft=A.useCallback(function(U,j,tt){j===void 0&&(j=!0),tt===void 0&&(tt="hover");const it=um(M.current,"close",I.current);it&&!G.current?(Nr(F),F.current=window.setTimeout(()=>r(!1,U,tt),it)):j&&(Nr(F),r(!1,U,tt))},[M,r]),mt=Ti(()=>{et.current(),G.current=void 0}),V=Ti(()=>{if(k.current){const U=Ys(f.floating).body;U.style.pointerEvents="",U.removeAttribute(nC),k.current=!1}}),J=Ti(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);A.useEffect(()=>{if(!d)return;function U(Y){if(Nr(F),B.current=!1,y&&!gb(I.current)||m0(z.current)>0&&!um(M.current,"open"))return;const lt=um(M.current,"open",I.current);lt?F.current=window.setTimeout(()=>{L.current||r(!0,Y,"hover")},lt):n||r(!0,Y,"hover")}o(U,"onReferenceMouseEnter");function j(Y){if(J()){V();return}et.current();const lt=Ys(f.floating);if(Nr(q),nt.current=!1,w.current&&a.current.floatingContext){n||Nr(F),G.current=w.current({...a.current.floatingContext,tree:x,x:Y.clientX,y:Y.clientY,onClose(){V(),mt(),J()||ft(Y,!0,"safe-polygon")}});const ht=G.current;lt.addEventListener("mousemove",ht),et.current=()=>{lt.removeEventListener("mousemove",ht)};return}(I.current!=="touch"||!zu(f.floating,Y.relatedTarget))&&ft(Y)}o(j,"onReferenceMouseLeave");function tt(Y){J()||a.current.floatingContext&&(w.current==null||w.current({...a.current.floatingContext,tree:x,x:Y.clientX,y:Y.clientY,onClose(){V(),mt(),J()||ft(Y)}})(Y))}o(tt,"onScrollMouseLeave");function it(){Nr(F)}o(it,"onFloatingMouseEnter");function _(Y){J()||ft(Y,!1)}if(o(_,"onFloatingMouseLeave"),Te(f.domReference)){const Y=f.domReference,lt=f.floating;return n&&Y.addEventListener("mouseleave",tt),E&&Y.addEventListener("mousemove",U,{once:!0}),Y.addEventListener("mouseenter",U),Y.addEventListener("mouseleave",j),lt&&(lt.addEventListener("mouseleave",tt),lt.addEventListener("mouseenter",it),lt.addEventListener("mouseleave",_)),()=>{n&&Y.removeEventListener("mouseleave",tt),E&&Y.removeEventListener("mousemove",U),Y.removeEventListener("mouseenter",U),Y.removeEventListener("mouseleave",j),lt&&(lt.removeEventListener("mouseleave",tt),lt.removeEventListener("mouseenter",it),lt.removeEventListener("mouseleave",_))}}},[f,d,t,y,E,ft,mt,V,r,n,L,x,M,w,a,J,z]),Mi(()=>{var U;if(d&&n&&(U=w.current)!=null&&(U=U.__options)!=null&&U.blockPointerEvents&&ot()){k.current=!0;const tt=f.floating;if(Te(f.domReference)&&tt){var j;const it=Ys(f.floating).body;it.setAttribute(nC,"");const _=f.domReference,Y=x==null||(j=x.nodesRef.current.find(lt=>lt.id===C))==null||(j=j.context)==null?void 0:j.elements.floating;return Y&&(Y.style.pointerEvents=""),it.style.pointerEvents="none",_.style.pointerEvents="auto",tt.style.pointerEvents="auto",()=>{it.style.pointerEvents="",_.style.pointerEvents="",tt.style.pointerEvents=""}}}},[d,n,C,f,x,w,ot]),Mi(()=>{n||(I.current=void 0,nt.current=!1,mt(),V())},[n,mt,V]),A.useEffect(()=>()=>{mt(),Nr(F),Nr(q),V()},[d,f.domReference,mt,V]);const N=A.useMemo(()=>{function U(j){I.current=j.pointerType}return o(U,"setPointerRef"),{onPointerDown:U,onPointerEnter:U,onMouseMove(j){const{nativeEvent:tt}=j;function it(){!B.current&&!L.current&&r(!0,tt,"hover")}o(it,"handleMouseMove"),!(y&&!gb(I.current))&&(n||m0(z.current)===0||nt.current&&j.movementX**2+j.movementY**2<2||(Nr(q),I.current==="touch"?it():(nt.current=!0,q.current=window.setTimeout(it,m0(z.current)))))}}},[y,r,n,L,z]);return A.useMemo(()=>d?{reference:N}:{},[d,N])}o($tt,"useHover");const yb=o(()=>{},"NOOP"),o3=A.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:yb,setState:yb,isInstantPhase:!1}),CQ=o(()=>A.useContext(o3),"useDelayGroupContext");function Mtt(t){const{children:e,delay:n,timeoutMs:r=0}=t,[a,c]=A.useReducer((h,g)=>({...h,...g}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),f=A.useRef(null),d=A.useCallback(h=>{c({currentId:h})},[]);return Mi(()=>{a.currentId?f.current===null?f.current=a.currentId:a.isInstantPhase||c({isInstantPhase:!0}):(a.isInstantPhase&&c({isInstantPhase:!1}),f.current=null)},[a.currentId,a.isInstantPhase]),$.jsx(o3.Provider,{value:A.useMemo(()=>({...a,setState:c,setCurrentId:d}),[a,d]),children:e})}o(Mtt,"FloatingDelayGroup");function Ott(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:a}=t,{id:c,enabled:f=!0}=e,d=c??a,h=CQ(),{currentId:g,setCurrentId:y,initialDelay:v,setState:E,timeoutMs:x}=h;return Mi(()=>{f&&g&&(E({delay:{open:1,close:um(v,"close")}}),g!==d&&r(!1))},[f,d,r,E,g,v]),Mi(()=>{function C(){r(!1),E({delay:v,currentId:null})}if(o(C,"unset"),!!f&&g&&!n&&g===d){if(x){const w=window.setTimeout(C,x);return()=>{clearTimeout(w)}}C()}},[f,n,E,g,d,r,v,x]),Mi(()=>{f&&(y===yb||!n||y(d))},[f,n,y,d]),h}o(Ott,"useDelayGroup");const $Q={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},MQ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},rC=o(t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t?.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t?.outsidePress)!=null?n:!0}},"normalizeProp");function Rtt(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:a,dataRef:c}=t,{enabled:f=!0,escapeKey:d=!0,outsidePress:h=!0,outsidePressEvent:g="pointerdown",referencePress:y=!1,referencePressEvent:v="pointerdown",ancestorScroll:E=!1,bubbles:x,capture:C}=e,w=q1(),M=Ti(typeof h=="function"?h:()=>!1),L=typeof h=="function"?M:h,z=A.useRef(!1),{escapeKey:I,outsidePress:F}=rC(x),{escapeKey:G,outsidePress:q}=rC(C),B=A.useRef(!1),k=Ti(V=>{var J;if(!n||!f||!d||V.key!=="Escape"||B.current)return;const N=(J=c.current.floatingContext)==null?void 0:J.nodeId,U=w?lm(w.nodesRef.current,N):[];if(!I&&(V.stopPropagation(),U.length>0)){let j=!0;if(U.forEach(tt=>{var it;if((it=tt.context)!=null&&it.open&&!tt.context.dataRef.current.__escapeKeyBubbles){j=!1;return}}),!j)return}r(!1,CX(V)?V.nativeEvent:V,"escape-key")}),et=Ti(V=>{var J;const N=o(()=>{var U;k(V),(U=dl(V))==null||U.removeEventListener("keydown",N)},"callback");(J=dl(V))==null||J.addEventListener("keydown",N)}),nt=Ti(V=>{var J;const N=c.current.insideReactTree;c.current.insideReactTree=!1;const U=z.current;if(z.current=!1,g==="click"&&U||N||typeof L=="function"&&!L(V))return;const j=dl(V),tt="["+P1("inert")+"]",it=Ys(a.floating).querySelectorAll(tt);let _=Te(j)?j:null;for(;_&&!oo(_);){const ht=uo(_);if(oo(ht)||!Te(ht))break;_=ht}if(it.length&&Te(j)&&!EX(j)&&!zu(j,a.floating)&&Array.from(it).every(ht=>!zu(_,ht)))return;if(dr(j)&&mt){const ht=oo(j),yt=Hr(j),Ct=/auto|scroll/,te=ht||Ct.test(yt.overflowX),Kt=ht||Ct.test(yt.overflowY),ye=te&&j.clientWidth>0&&j.scrollWidth>j.clientWidth,sn=Kt&&j.clientHeight>0&&j.scrollHeight>j.clientHeight,Gn=yt.direction==="rtl",Xr=sn&&(Gn?V.offsetX<=j.offsetWidth-j.clientWidth:V.offsetX>j.clientWidth),Qr=ye&&V.offsetY>j.clientHeight;if(Xr||Qr)return}const Y=(J=c.current.floatingContext)==null?void 0:J.nodeId,lt=w&&lm(w.nodesRef.current,Y).some(ht=>{var yt;return u0(V,(yt=ht.context)==null?void 0:yt.elements.floating)});if(u0(V,a.floating)||u0(V,a.domReference)||lt)return;const dt=w?lm(w.nodesRef.current,Y):[];if(dt.length>0){let ht=!0;if(dt.forEach(yt=>{var Ct;if((Ct=yt.context)!=null&&Ct.open&&!yt.context.dataRef.current.__outsidePressBubbles){ht=!1;return}}),!ht)return}r(!1,V,"outside-press")}),ot=Ti(V=>{var J;const N=o(()=>{var U;nt(V),(U=dl(V))==null||U.removeEventListener(g,N)},"callback");(J=dl(V))==null||J.addEventListener(g,N)});A.useEffect(()=>{if(!n||!f)return;c.current.__escapeKeyBubbles=I,c.current.__outsidePressBubbles=F;let V=-1;function J(it){r(!1,it,"ancestor-scroll")}o(J,"onScroll");function N(){window.clearTimeout(V),B.current=!0}o(N,"handleCompositionStart");function U(){V=window.setTimeout(()=>{B.current=!1},op()?5:0)}o(U,"handleCompositionEnd");const j=Ys(a.floating);d&&(j.addEventListener("keydown",G?et:k,G),j.addEventListener("compositionstart",N),j.addEventListener("compositionend",U)),L&&j.addEventListener(g,q?ot:nt,q);let tt=[];return E&&(Te(a.domReference)&&(tt=rs(a.domReference)),Te(a.floating)&&(tt=tt.concat(rs(a.floating))),!Te(a.reference)&&a.reference&&a.reference.contextElement&&(tt=tt.concat(rs(a.reference.contextElement)))),tt=tt.filter(it=>{var _;return it!==((_=j.defaultView)==null?void 0:_.visualViewport)}),tt.forEach(it=>{it.addEventListener("scroll",J,{passive:!0})}),()=>{d&&(j.removeEventListener("keydown",G?et:k,G),j.removeEventListener("compositionstart",N),j.removeEventListener("compositionend",U)),L&&j.removeEventListener(g,q?ot:nt,q),tt.forEach(it=>{it.removeEventListener("scroll",J)}),window.clearTimeout(V)}},[c,a,d,L,g,n,r,E,f,I,F,k,G,et,nt,q,ot]),A.useEffect(()=>{c.current.insideReactTree=!1},[c,L,g]);const ft=A.useMemo(()=>({onKeyDown:k,...y&&{[$Q[v]]:V=>{r(!1,V.nativeEvent,"reference-press")},...v!=="click"&&{onClick(V){r(!1,V.nativeEvent,"reference-press")}}}}),[k,r,y,v]),mt=A.useMemo(()=>({onKeyDown:k,onMouseDown(){z.current=!0},onMouseUp(){z.current=!0},[MQ[g]]:()=>{c.current.insideReactTree=!0}}),[k,g,c]);return A.useMemo(()=>f?{reference:ft,floating:mt}:{},[f,ft,mt])}o(Rtt,"useDismiss");function OQ(t){const{open:e=!1,onOpenChange:n,elements:r}=t,a=i3(),c=A.useRef({}),[f]=A.useState(()=>wQ()),d=F1()!=null,[h,g]=A.useState(r.reference),y=Ti((x,C,w)=>{c.current.openEvent=x?C:void 0,f.emit("openchange",{open:x,event:C,reason:w,nested:d}),n?.(x,C,w)}),v=A.useMemo(()=>({setPositionReference:g}),[]),E=A.useMemo(()=>({reference:h||r.reference||null,floating:r.floating||null,domReference:r.reference}),[h,r.reference,r.floating]);return A.useMemo(()=>({dataRef:c,open:e,onOpenChange:y,elements:E,events:f,floatingId:a,refs:v}),[e,y,E,f,a,v])}o(OQ,"useFloatingRootContext");function Ntt(t){t===void 0&&(t={});const{nodeId:e}=t,n=OQ({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,a=r.elements,[c,f]=A.useState(null),[d,h]=A.useState(null),y=a?.domReference||c,v=A.useRef(null),E=q1();Mi(()=>{y&&(v.current=y)},[y]);const x=gQ({...t,elements:{...a,...d&&{reference:d}}}),C=A.useCallback(I=>{const F=Te(I)?{getBoundingClientRect:o(()=>I.getBoundingClientRect(),"getBoundingClientRect"),getClientRects:o(()=>I.getClientRects(),"getClientRects"),contextElement:I}:I;h(F),x.refs.setReference(F)},[x.refs]),w=A.useCallback(I=>{(Te(I)||I===null)&&(v.current=I,f(I)),(Te(x.refs.reference.current)||x.refs.reference.current===null||I!==null&&!Te(I))&&x.refs.setReference(I)},[x.refs]),M=A.useMemo(()=>({...x.refs,setReference:w,setPositionReference:C,domReference:v}),[x.refs,w,C]),L=A.useMemo(()=>({...x.elements,domReference:y}),[x.elements,y]),z=A.useMemo(()=>({...x,...r,refs:M,elements:L,nodeId:e}),[x,M,L,e,r]);return Mi(()=>{r.dataRef.current.floatingContext=z;const I=E?.nodesRef.current.find(F=>F.id===e);I&&(I.context=z)}),A.useMemo(()=>({...x,context:z,refs:M,elements:L}),[x,M,L,z])}o(Ntt,"useFloating");function h0(){return vX()&&bX()}o(h0,"isMacSafari");function _tt(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:a,dataRef:c,elements:f}=t,{enabled:d=!0,visibleOnly:h=!0}=e,g=A.useRef(!1),y=A.useRef(-1),v=A.useRef(!0);A.useEffect(()=>{if(!d)return;const x=Bn(f.domReference);function C(){!n&&dr(f.domReference)&&f.domReference===qA(Ys(f.domReference))&&(g.current=!0)}o(C,"onBlur");function w(){v.current=!0}o(w,"onKeyDown");function M(){v.current=!1}return o(M,"onPointerDown"),x.addEventListener("blur",C),h0()&&(x.addEventListener("keydown",w,!0),x.addEventListener("pointerdown",M,!0)),()=>{x.removeEventListener("blur",C),h0()&&(x.removeEventListener("keydown",w,!0),x.removeEventListener("pointerdown",M,!0))}},[f.domReference,n,d]),A.useEffect(()=>{if(!d)return;function x(C){let{reason:w}=C;(w==="reference-press"||w==="escape-key")&&(g.current=!0)}return o(x,"onOpenChange2"),a.on("openchange",x),()=>{a.off("openchange",x)}},[a,d]),A.useEffect(()=>()=>{Nr(y)},[]);const E=A.useMemo(()=>({onMouseLeave(){g.current=!1},onFocus(x){if(g.current)return;const C=dl(x.nativeEvent);if(h&&Te(C)){if(h0()&&!x.relatedTarget){if(!v.current&&!wX(C))return}else if(!TX(C))return}r(!0,x.nativeEvent,"focus")},onBlur(x){g.current=!1;const C=x.relatedTarget,w=x.nativeEvent,M=Te(C)&&C.hasAttribute(P1("focus-guard"))&&C.getAttribute("data-type")==="outside";y.current=window.setTimeout(()=>{var L;const z=qA(f.domReference?f.domReference.ownerDocument:document);!C&&z===f.domReference||zu((L=c.current.floatingContext)==null?void 0:L.refs.floating.current,z)||zu(f.domReference,z)||M||r(!1,w,"focus")})}}),[c,f.domReference,r,h]);return A.useMemo(()=>d?{reference:E}:{},[d,E])}o(_tt,"useFocus");function p0(t,e,n){const r=new Map,a=n==="item";let c=t;if(a&&t){const{[JA]:f,[WA]:d,...h}=t;c=h}return{...n==="floating"&&{tabIndex:-1,[bQ]:""},...c,...e.map(f=>{const d=f?f[n]:null;return typeof d=="function"?t?d(t):null:d}).concat(t).reduce((f,d)=>(d&&Object.entries(d).forEach(h=>{let[g,y]=h;if(!(a&&[JA,WA].includes(g)))if(g.indexOf("on")===0){if(r.has(g)||r.set(g,[]),typeof y=="function"){var v;(v=r.get(g))==null||v.push(y),f[g]=function(){for(var E,x=arguments.length,C=new Array(x),w=0;w<x;w++)C[w]=arguments[w];return(E=r.get(g))==null?void 0:E.map(M=>M(...C)).find(M=>M!==void 0)}}}else f[g]=y}),f),{})}}o(p0,"mergeProps");function Dtt(t){t===void 0&&(t=[]);const e=t.map(d=>d?.reference),n=t.map(d=>d?.floating),r=t.map(d=>d?.item),a=A.useCallback(d=>p0(d,t,"reference"),e),c=A.useCallback(d=>p0(d,t,"floating"),n),f=A.useCallback(d=>p0(d,t,"item"),r);return A.useMemo(()=>({getReferenceProps:a,getFloatingProps:c,getItemProps:f}),[a,c,f])}o(Dtt,"useInteractions");const RQ=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function jtt(t,e){var n,r;e===void 0&&(e={});const{open:a,elements:c,floatingId:f}=t,{enabled:d=!0,role:h="dialog"}=e,g=i3(),y=((n=c.domReference)==null?void 0:n.id)||g,v=A.useMemo(()=>{var z;return((z=AX(c.floating))==null?void 0:z.id)||f},[c.floating,f]),E=(r=RQ.get(h))!=null?r:h,C=F1()!=null,w=A.useMemo(()=>E==="tooltip"||h==="label"?{["aria-"+(h==="label"?"labelledby":"describedby")]:a?v:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":E==="alertdialog"?"dialog":E,"aria-controls":a?v:void 0,...E==="listbox"&&{role:"combobox"},...E==="menu"&&{id:y},...E==="menu"&&C&&{role:"menuitem"},...h==="select"&&{"aria-autocomplete":"none"},...h==="combobox"&&{"aria-autocomplete":"list"}},[E,v,C,a,y,h]),M=A.useMemo(()=>{const z={id:v,...E&&{role:E}};return E==="tooltip"||h==="label"?z:{...z,...E==="menu"&&{"aria-labelledby":y}}},[E,v,y,h]),L=A.useCallback(z=>{let{active:I,selected:F}=z;const G={role:"option",...I&&{id:v+"-fui-option"}};switch(h){case"select":case"combobox":return{...G,"aria-selected":F}}return{}},[v,h]);return A.useMemo(()=>d?{reference:w,floating:M,item:L}:{},[d,w,M,L])}o(jtt,"useRole");var G1={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const[NQ,Yr]=pa("ScrollArea.Root component was not found in tree");function _l(t,e){const n=Ps(e);Jl(()=>{let r=0;if(t){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(t),()=>{window.cancelAnimationFrame(r),a.unobserve(t)}}},[t,n])}o(_l,"useResizeObserver");const _Q=A.forwardRef((t,e)=>{const{style:n,...r}=t,a=Yr(),[c,f]=A.useState(0),[d,h]=A.useState(0),g=!!(c&&d);return _l(a.scrollbarX,()=>{const y=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(y),h(y)}),_l(a.scrollbarY,()=>{const y=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(y),f(y)}),g?$.jsx("div",{...r,ref:e,style:{...n,width:c,height:d}}):null}),DQ=A.forwardRef((t,e)=>{const n=Yr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?$.jsx(_Q,{...t,ref:e}):null}),jQ={scrollHideDelay:1e3,type:"hover"},s3=A.forwardRef((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:a,getStyles:c,...f}=vt("ScrollAreaRoot",jQ,t),[d,h]=A.useState(null),[g,y]=A.useState(null),[v,E]=A.useState(null),[x,C]=A.useState(null),[w,M]=A.useState(null),[L,z]=A.useState(0),[I,F]=A.useState(0),[G,q]=A.useState(!1),[B,k]=A.useState(!1),et=ga(e,nt=>h(nt));return $.jsx(NQ,{value:{type:n,scrollHideDelay:r,scrollArea:d,viewport:g,onViewportChange:y,content:v,onContentChange:E,scrollbarX:x,onScrollbarXChange:C,scrollbarXEnabled:G,onScrollbarXEnabledChange:q,scrollbarY:w,onScrollbarYChange:M,scrollbarYEnabled:B,onScrollbarYEnabledChange:k,onCornerWidthChange:z,onCornerHeightChange:F,getStyles:c},children:$.jsx(Et,{...f,ref:et,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${L}px`,"--sa-corner-height":a!=="xy"?"0px":`${I}px`}})})});s3.displayName="@mantine/core/ScrollAreaRoot";function a3(t,e){const n=t/e;return Number.isNaN(n)?0:n}o(a3,"getThumbRatio");function lp(t){const e=a3(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}o(lp,"getThumbSize");function l3(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}o(l3,"linearScale");function IQ(t,[e,n]){return Math.min(n,Math.max(e,t))}o(IQ,"clamp");function iC(t,e,n="ltr"){const r=lp(e),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,c=e.scrollbar.size-a,f=e.content-e.viewport,d=c-r,h=n==="ltr"?[0,f]:[f*-1,0],g=IQ(t,h);return l3([0,f],[0,d])(g)}o(iC,"getThumbOffsetFromScroll");function LQ(t,e,n,r="ltr"){const a=lp(n),c=a/2,f=e||c,d=a-f,h=n.scrollbar.paddingStart+f,g=n.scrollbar.size-n.scrollbar.paddingEnd-d,y=n.content-n.viewport,v=r==="ltr"?[0,y]:[y*-1,0];return l3([h,g],v)(t)}o(LQ,"getScrollPositionFromPointer");function c3(t,e){return t>0&&t<e}o(c3,"isScrollingWithinScrollbarBounds");function Km(t){return t?parseInt(t,10):0}o(Km,"toInt");function Qs(t,e,{checkForDefaultPrevented:n=!0}={}){return r=>{t?.(r),(n===!1||!r.defaultPrevented)&&e?.(r)}}o(Qs,"composeEventHandlers");const[zQ,u3]=pa("ScrollAreaScrollbar was not found in tree"),f3=A.forwardRef((t,e)=>{const{sizes:n,hasThumb:r,onThumbChange:a,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:d,onDragScroll:h,onWheelScroll:g,onResize:y,...v}=t,E=Yr(),[x,C]=A.useState(null),w=ga(e,k=>C(k)),M=A.useRef(null),L=A.useRef(""),{viewport:z}=E,I=n.content-n.viewport,F=Ps(g),G=Ps(d),q=ep(y,10),B=o(k=>{if(M.current){const et=k.clientX-M.current.left,nt=k.clientY-M.current.top;h({x:et,y:nt})}},"handleDragScroll");return A.useEffect(()=>{const k=o(et=>{const nt=et.target;x?.contains(nt)&&F(et,I)},"handleWheel");return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[z,x,I,F]),A.useEffect(G,[n,G]),_l(x,q),_l(E.content,q),$.jsx(zQ,{value:{scrollbar:x,hasThumb:r,onThumbChange:Ps(a),onThumbPointerUp:Ps(c),onThumbPositionChange:G,onThumbPointerDown:Ps(f)},children:$.jsx("div",{...v,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...v.style},onPointerDown:Qs(t.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),M.current=x.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",B(k))}),onPointerMove:Qs(t.onPointerMove,B),onPointerUp:Qs(t.onPointerUp,k=>{const et=k.target;et.hasPointerCapture(k.pointerId)&&(k.preventDefault(),et.releasePointerCapture(k.pointerId))}),onLostPointerCapture:o(()=>{document.body.style.webkitUserSelect=L.current,M.current=null},"onLostPointerCapture")})})}),d3=A.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:a,...c}=t,f=Yr(),[d,h]=A.useState(),g=A.useRef(null),y=ga(e,g,f.onScrollbarXChange);return A.useEffect(()=>{g.current&&h(getComputedStyle(g.current))},[g]),$.jsx(f3,{"data-orientation":"horizontal",...c,ref:y,sizes:n,style:{...a,"--sa-thumb-width":`${lp(n)}px`},onThumbPointerDown:o(v=>t.onThumbPointerDown(v.x),"onThumbPointerDown"),onDragScroll:o(v=>t.onDragScroll(v.x),"onDragScroll"),onWheelScroll:o((v,E)=>{if(f.viewport){const x=f.viewport.scrollLeft+v.deltaX;t.onWheelScroll(x),c3(x,E)&&v.preventDefault()}},"onWheelScroll"),onResize:o(()=>{g.current&&f.viewport&&d&&r({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:g.current.clientWidth,paddingStart:Km(d.paddingLeft),paddingEnd:Km(d.paddingRight)}})},"onResize")})});d3.displayName="@mantine/core/ScrollAreaScrollbarX";const m3=A.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:a,...c}=t,f=Yr(),[d,h]=A.useState(),g=A.useRef(null),y=ga(e,g,f.onScrollbarYChange);return A.useEffect(()=>{g.current&&h(window.getComputedStyle(g.current))},[]),$.jsx(f3,{...c,"data-orientation":"vertical",ref:y,sizes:n,style:{"--sa-thumb-height":`${lp(n)}px`,...a},onThumbPointerDown:o(v=>t.onThumbPointerDown(v.y),"onThumbPointerDown"),onDragScroll:o(v=>t.onDragScroll(v.y),"onDragScroll"),onWheelScroll:o((v,E)=>{if(f.viewport){const x=f.viewport.scrollTop+v.deltaY;t.onWheelScroll(x),c3(x,E)&&v.preventDefault()}},"onWheelScroll"),onResize:o(()=>{g.current&&f.viewport&&d&&r({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:g.current.clientHeight,paddingStart:Km(d.paddingTop),paddingEnd:Km(d.paddingBottom)}})},"onResize")})});m3.displayName="@mantine/core/ScrollAreaScrollbarY";const cp=A.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:a}=KK(),c=Yr(),f=A.useRef(null),d=A.useRef(0),[h,g]=A.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),y=a3(h.viewport,h.content),v={...r,sizes:h,onSizesChange:g,hasThumb:y>0&&y<1,onThumbChange:o(x=>{f.current=x},"onThumbChange"),onThumbPointerUp:o(()=>{d.current=0},"onThumbPointerUp"),onThumbPointerDown:o(x=>{d.current=x},"onThumbPointerDown")},E=o((x,C)=>LQ(x,d.current,h,C),"getScrollPosition");return n==="horizontal"?$.jsx(d3,{...v,ref:e,onThumbPositionChange:o(()=>{if(c.viewport&&f.current){const x=c.viewport.scrollLeft,C=iC(x,h,a);f.current.style.transform=`translate3d(${C}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:o(x=>{c.viewport&&(c.viewport.scrollLeft=x)},"onWheelScroll"),onDragScroll:o(x=>{c.viewport&&(c.viewport.scrollLeft=E(x,a))},"onDragScroll")}):n==="vertical"?$.jsx(m3,{...v,ref:e,onThumbPositionChange:o(()=>{if(c.viewport&&f.current){const x=c.viewport.scrollTop,C=iC(x,h);h.scrollbar.size===0?f.current.style.setProperty("--thumb-opacity","0"):f.current.style.setProperty("--thumb-opacity","1"),f.current.style.transform=`translate3d(0, ${C}px, 0)`}},"onThumbPositionChange"),onWheelScroll:o(x=>{c.viewport&&(c.viewport.scrollTop=x)},"onWheelScroll"),onDragScroll:o(x=>{c.viewport&&(c.viewport.scrollTop=E(x))},"onDragScroll")}):null});cp.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Y1=A.forwardRef((t,e)=>{const n=Yr(),{forceMount:r,...a}=t,[c,f]=A.useState(!1),d=t.orientation==="horizontal",h=ep(()=>{if(n.viewport){const g=n.viewport.offsetWidth<n.viewport.scrollWidth,y=n.viewport.offsetHeight<n.viewport.scrollHeight;f(d?g:y)}},10);return _l(n.viewport,h),_l(n.content,h),r||c?$.jsx(cp,{"data-state":c?"visible":"hidden",...a,ref:e}):null});Y1.displayName="@mantine/core/ScrollAreaScrollbarAuto";const h3=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=Yr(),[c,f]=A.useState(!1);return A.useEffect(()=>{const{scrollArea:d}=a;let h=0;if(d){const g=o(()=>{window.clearTimeout(h),f(!0)},"handlePointerEnter"),y=o(()=>{h=window.setTimeout(()=>f(!1),a.scrollHideDelay)},"handlePointerLeave");return d.addEventListener("pointerenter",g),d.addEventListener("pointerleave",y),()=>{window.clearTimeout(h),d.removeEventListener("pointerenter",g),d.removeEventListener("pointerleave",y)}}},[a.scrollArea,a.scrollHideDelay]),n||c?$.jsx(Y1,{"data-state":c?"visible":"hidden",...r,ref:e}):null});h3.displayName="@mantine/core/ScrollAreaScrollbarHover";const BQ=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=Yr(),c=t.orientation==="horizontal",[f,d]=A.useState("hidden"),h=ep(()=>d("idle"),100);return A.useEffect(()=>{if(f==="idle"){const g=window.setTimeout(()=>d("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(g)}},[f,a.scrollHideDelay]),A.useEffect(()=>{const{viewport:g}=a,y=c?"scrollLeft":"scrollTop";if(g){let v=g[y];const E=o(()=>{const x=g[y];v!==x&&(d("scrolling"),h()),v=x},"handleScroll");return g.addEventListener("scroll",E),()=>g.removeEventListener("scroll",E)}},[a.viewport,c,h]),n||f!=="hidden"?$.jsx(cp,{"data-state":f==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Qs(t.onPointerEnter,()=>d("interacting")),onPointerLeave:Qs(t.onPointerLeave,()=>d("idle"))}):null}),bb=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=Yr(),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:f}=a,d=t.orientation==="horizontal";return A.useEffect(()=>(d?c(!0):f(!0),()=>{d?c(!1):f(!1)}),[d,c,f]),a.type==="hover"?$.jsx(h3,{...r,ref:e,forceMount:n}):a.type==="scroll"?$.jsx(BQ,{...r,ref:e,forceMount:n}):a.type==="auto"?$.jsx(Y1,{...r,ref:e,forceMount:n}):a.type==="always"?$.jsx(cp,{...r,ref:e}):null});bb.displayName="@mantine/core/ScrollAreaScrollbar";function UQ(t,e=()=>{}){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return o((function a(){const c={left:t.scrollLeft,top:t.scrollTop},f=n.left!==c.left,d=n.top!==c.top;(f||d)&&e(),n=c,r=window.requestAnimationFrame(a)}),"loop")(),()=>window.cancelAnimationFrame(r)}o(UQ,"addUnlinkedScrollListener");const p3=A.forwardRef((t,e)=>{const{style:n,...r}=t,a=Yr(),c=u3(),{onThumbPositionChange:f}=c,d=ga(e,y=>c.onThumbChange(y)),h=A.useRef(void 0),g=ep(()=>{h.current&&(h.current(),h.current=void 0)},100);return A.useEffect(()=>{const{viewport:y}=a;if(y){const v=o(()=>{if(g(),!h.current){const E=UQ(y,f);h.current=E,f()}},"handleScroll");return f(),y.addEventListener("scroll",v),()=>y.removeEventListener("scroll",v)}},[a.viewport,g,f]),$.jsx("div",{"data-state":c.hasThumb?"visible":"hidden",...r,ref:d,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Qs(t.onPointerDownCapture,y=>{const E=y.target.getBoundingClientRect(),x=y.clientX-E.left,C=y.clientY-E.top;c.onThumbPointerDown({x,y:C})}),onPointerUp:Qs(t.onPointerUp,c.onThumbPointerUp)})});p3.displayName="@mantine/core/ScrollAreaThumb";const vb=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=u3();return n||a.hasThumb?$.jsx(p3,{ref:e,...r}):null});vb.displayName="@mantine/core/ScrollAreaThumb";const g3=A.forwardRef(({children:t,style:e,onWheel:n,...r},a)=>{const c=Yr(),f=ga(a,c.onViewportChange),d=o(h=>{if(n?.(h),c.scrollbarXEnabled&&c.viewport&&h.shiftKey){const{scrollTop:g,scrollHeight:y,clientHeight:v,scrollWidth:E,clientWidth:x}=c.viewport,C=g<1,w=g>=y-v-1;E>x&&(C||w)&&h.stopPropagation()}},"handleWheel");return $.jsx(Et,{...r,ref:f,onWheel:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e},children:$.jsx("div",{...c.getStyles("content"),ref:c.onContentChange,children:t})})});g3.displayName="@mantine/core/ScrollAreaViewport";const y3={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},HQ=(t,{scrollbarSize:e,overscrollBehavior:n,scrollbars:r})=>{let a=n;return n&&r&&(r==="x"?a=`${n} auto`:r==="y"&&(a=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":ut(e),"--scrollarea-over-scroll-behavior":a}}},nc=zt((t,e)=>{const n=vt("ScrollArea",y3,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,scrollbarSize:h,vars:g,type:y,scrollHideDelay:v,viewportProps:E,viewportRef:x,onScrollPositionChange:C,children:w,offsetScrollbars:M,scrollbars:L,onBottomReached:z,onTopReached:I,overscrollBehavior:F,attributes:G,...q}=n,[B,k]=A.useState(!1),[et,nt]=A.useState(!1),[ot,ft]=A.useState(!1),mt=ie({name:"ScrollArea",props:n,classes:G1,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:G,vars:g,varsResolver:HQ}),V=A.useRef(null),J=r3([x,V]);return A.useEffect(()=>{if(!V.current||M!=="present")return;const N=V.current,U=new ResizeObserver(()=>{const{scrollHeight:j,clientHeight:tt,scrollWidth:it,clientWidth:_}=N;nt(j>tt),ft(it>_)});return U.observe(N),()=>U.disconnect()},[V,M]),$.jsxs(s3,{getStyles:mt,type:y==="never"?"always":y,scrollHideDelay:v,ref:e,scrollbars:L,...mt("root"),...q,children:[$.jsx(g3,{...E,...mt("viewport",{style:E?.style}),ref:J,"data-offset-scrollbars":M===!0?"xy":M||void 0,"data-scrollbars":L||void 0,"data-horizontal-hidden":M==="present"&&!ot?"true":void 0,"data-vertical-hidden":M==="present"&&!et?"true":void 0,onScroll:o(N=>{E?.onScroll?.(N),C?.({x:N.currentTarget.scrollLeft,y:N.currentTarget.scrollTop});const{scrollTop:U,scrollHeight:j,clientHeight:tt}=N.currentTarget;U-(j-tt)>=-.8&&z?.(),U===0&&I?.()},"onScroll"),children:w}),(L==="xy"||L==="x")&&$.jsx(bb,{...mt("scrollbar"),orientation:"horizontal","data-hidden":y==="never"||M==="present"&&!ot?!0:void 0,forceMount:!0,onMouseEnter:o(()=>k(!0),"onMouseEnter"),onMouseLeave:o(()=>k(!1),"onMouseLeave"),children:$.jsx(vb,{...mt("thumb")})}),(L==="xy"||L==="y")&&$.jsx(bb,{...mt("scrollbar"),orientation:"vertical","data-hidden":y==="never"||M==="present"&&!et?!0:void 0,forceMount:!0,onMouseEnter:o(()=>k(!0),"onMouseEnter"),onMouseLeave:o(()=>k(!1),"onMouseLeave"),children:$.jsx(vb,{...mt("thumb")})}),$.jsx(DQ,{...mt("corner"),"data-hovered":B||void 0,"data-hidden":y==="never"||void 0})]})});nc.displayName="@mantine/core/ScrollArea";const V1=zt((t,e)=>{const{children:n,classNames:r,styles:a,scrollbarSize:c,scrollHideDelay:f,type:d,dir:h,offsetScrollbars:g,overscrollBehavior:y,viewportRef:v,onScrollPositionChange:E,unstyled:x,variant:C,viewportProps:w,scrollbars:M,style:L,vars:z,onBottomReached:I,onTopReached:F,onOverflowChange:G,...q}=vt("ScrollAreaAutosize",y3,t),B=A.useRef(null),k=r3([v,B]),[et,nt]=A.useState(!1),ot=A.useRef(!1);return A.useEffect(()=>{if(!G)return;const ft=B.current;if(!ft)return;const mt=o(()=>{const J=ft.scrollHeight>ft.clientHeight;J!==et&&(ot.current?G?.(J):(ot.current=!0,J&&G?.(!0)),nt(J))},"update");mt();const V=new ResizeObserver(mt);return V.observe(ft),()=>V.disconnect()},[G,et]),$.jsx(Et,{...q,ref:e,style:[{display:"flex",overflow:"hidden"},L],children:$.jsx(Et,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...M==="y"&&{minWidth:0},...M==="x"&&{minHeight:0},...M==="xy"&&{minWidth:0,minHeight:0},...M===!1&&{minWidth:0,minHeight:0}},children:$.jsx(nc,{classNames:r,styles:a,scrollHideDelay:f,scrollbarSize:c,type:d,dir:h,offsetScrollbars:g,overscrollBehavior:y,viewportRef:k,onScrollPositionChange:E,unstyled:x,variant:C,viewportProps:w,vars:z,scrollbars:M,onBottomReached:I,onTopReached:F,"data-autosize":"true",children:n})})})});nc.classes=G1;V1.displayName="@mantine/core/ScrollAreaAutosize";V1.classes=G1;nc.Autosize=V1;var b3={root:"m_87cf2631"};const kQ={__staticSelector:"UnstyledButton"},rc=Pn((t,e)=>{const n=vt("UnstyledButton",kQ,t),{className:r,component:a="button",__staticSelector:c,unstyled:f,classNames:d,styles:h,style:g,attributes:y,...v}=n,E=ie({name:c,props:n,classes:b3,className:r,style:g,classNames:d,styles:h,unstyled:f,attributes:y});return $.jsx(Et,{...E("root",{focusable:!0}),component:a,ref:e,type:a==="button"?"button":void 0,...v})});rc.classes=b3;rc.displayName="@mantine/core/UnstyledButton";var v3={root:"m_515a97f8"};const K1=zt((t,e)=>{const n=vt("VisuallyHidden",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,attributes:g,...y}=n,v=ie({name:"VisuallyHidden",classes:v3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:g});return $.jsx(Et,{component:"span",ref:e,...v("root"),...y})});K1.classes=v3;K1.displayName="@mantine/core/VisuallyHidden";var S3={root:"m_1b7284a3"};const FQ=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Pr(e),"--paper-shadow":ER(n)}}),vo=Pn((t,e)=>{const n=vt("Paper",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,withBorder:h,vars:g,radius:y,shadow:v,variant:E,mod:x,attributes:C,...w}=n,M=ie({name:"Paper",props:n,classes:S3,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:C,vars:g,varsResolver:FQ});return $.jsx(Et,{ref:e,mod:[{"data-with-border":h},x],...M("root"),variant:E,...w})});vo.classes=S3;vo.displayName="@mantine/core/Paper";var x3={root:"m_9814e45f"};const qQ={zIndex:hi("modal")},PQ=(t,{gradient:e,color:n,backgroundOpacity:r,blur:a,radius:c,zIndex:f})=>({root:{"--overlay-bg":e||(n!==void 0||r!==void 0)&&Si(n||"#000",r??.6)||void 0,"--overlay-filter":a?`blur(${ut(a)})`:void 0,"--overlay-radius":c===void 0?void 0:Pr(c),"--overlay-z-index":f?.toString()}}),X1=Pn((t,e)=>{const n=vt("Overlay",qQ,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,fixed:g,center:y,children:v,radius:E,zIndex:x,gradient:C,blur:w,color:M,backgroundOpacity:L,mod:z,attributes:I,...F}=n,G=ie({name:"Overlay",props:n,classes:x3,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:I,vars:h,varsResolver:PQ});return $.jsx(Et,{ref:e,...G("root"),mod:[{center:y,fixed:g},z],...F,children:v})});X1.classes=x3;X1.displayName="@mantine/core/Overlay";function g0(t){const e=document.createElement("div");return e.setAttribute("data-portal","true"),typeof t.className=="string"&&e.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(e.style,t.style),typeof t.id=="string"&&e.setAttribute("id",t.id),e}o(g0,"createPortalNode");function GQ({target:t,reuseTargetNode:e,...n}){if(t)return typeof t=="string"?document.querySelector(t)||g0(n):t;if(e){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const a=g0(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return g0(n)}o(GQ,"getTargetNode");const YQ={reuseTargetNode:!0},E3=zt((t,e)=>{const{children:n,target:r,reuseTargetNode:a,...c}=vt("Portal",YQ,t),[f,d]=A.useState(!1),h=A.useRef(null);return Jl(()=>(d(!0),h.current=GQ({target:r,reuseTargetNode:a,...c}),lb(e,h.current),!r&&!a&&h.current&&document.body.appendChild(h.current),()=>{!r&&!a&&h.current&&document.body.removeChild(h.current)}),[r]),!f||!h.current?null:I1.createPortal($.jsx($.Fragment,{children:n}),h.current)});E3.displayName="@mantine/core/Portal";const up=zt(({withinPortal:t=!0,children:e,...n},r)=>RR()==="test"||!t?$.jsx($.Fragment,{children:e}):$.jsx(E3,{ref:r,...n,children:e}));up.displayName="@mantine/core/OptionalPortal";const fu=o(t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),"popIn"),Xd={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...fu("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...fu("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...fu("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...fu("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...fu("top"),common:{transformOrigin:"top right"}}},oC={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function VQ({transition:t,state:e,duration:n,timingFunction:r}){const a={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in Xd?{transitionProperty:Xd[t].transitionProperty,...a,...Xd[t].common,...Xd[t][oC[e]]}:{}:{transitionProperty:t.transitionProperty,...a,...t.common,...t[oC[e]]}}o(VQ,"getTransitionStyles");function KQ({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:a,onExit:c,onEntered:f,onExited:d,enterDelay:h,exitDelay:g}){const y=Gr(),v=M1(),E=y.respectReducedMotion?v:!1,[x,C]=A.useState(E?0:t),[w,M]=A.useState(r?"entered":"exited"),L=A.useRef(-1),z=A.useRef(-1),I=A.useRef(-1);function F(){window.clearTimeout(L.current),window.clearTimeout(z.current),cancelAnimationFrame(I.current)}o(F,"clearAllTimeouts");const G=o(B=>{F();const k=B?a:c,et=B?f:d,nt=E?0:B?t:e;C(nt),nt===0?(typeof k=="function"&&k(),typeof et=="function"&&et(),M(B?"entered":"exited")):I.current=requestAnimationFrame(()=>{gu.flushSync(()=>{M(B?"pre-entering":"pre-exiting")}),I.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),M(B?"entering":"exiting"),L.current=window.setTimeout(()=>{typeof et=="function"&&et(),M(B?"entered":"exited")},nt)})})},"handleStateChange"),q=o(B=>{if(F(),typeof(B?h:g)!="number"){G(B);return}z.current=window.setTimeout(()=>{G(B)},B?h:g)},"handleTransitionWithDelay");return np(()=>{q(r)},[r]),A.useEffect(()=>()=>{F()},[]),{transitionDuration:x,transitionStatus:w,transitionTimingFunction:n||"ease"}}o(KQ,"useTransition");function vf({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:a,children:c,timingFunction:f="ease",onExit:d,onEntered:h,onEnter:g,onExited:y,enterDelay:v,exitDelay:E}){const x=RR(),{transitionDuration:C,transitionStatus:w,transitionTimingFunction:M}=KQ({mounted:a,exitDuration:r,duration:n,timingFunction:f,onExit:d,onEntered:h,onEnter:g,onExited:y,enterDelay:v,exitDelay:E});return C===0||x==="test"?a?$.jsx($.Fragment,{children:c({})}):t?c({display:"none"}):null:w==="exited"?t?c({display:"none"}):null:$.jsx($.Fragment,{children:c(VQ({transition:e,duration:C,state:w,timingFunction:M}))})}o(vf,"Transition$2");vf.displayName="@mantine/core/Transition";function Q1({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const a=SV(e),c=ga(a,r),f=LV(t);return f?A.cloneElement(f,{[n]:c}):t}o(Q1,"FocusTrap");function w3(t){return $.jsx(K1,{tabIndex:-1,"data-autofocus":!0,...t})}o(w3,"FocusTrapInitialFocus");Q1.displayName="@mantine/core/FocusTrap";w3.displayName="@mantine/core/FocusTrapInitialFocus";Q1.InitialFocus=w3;var ei={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const T3=A.forwardRef(({className:t,...e},n)=>$.jsxs(Et,{component:"span",className:fr(ei.barsLoader,t),...e,ref:n,children:[$.jsx("span",{className:ei.bar}),$.jsx("span",{className:ei.bar}),$.jsx("span",{className:ei.bar})]}));T3.displayName="@mantine/core/Bars";const A3=A.forwardRef(({className:t,...e},n)=>$.jsxs(Et,{component:"span",className:fr(ei.dotsLoader,t),...e,ref:n,children:[$.jsx("span",{className:ei.dot}),$.jsx("span",{className:ei.dot}),$.jsx("span",{className:ei.dot})]}));A3.displayName="@mantine/core/Dots";const C3=A.forwardRef(({className:t,...e},n)=>$.jsx(Et,{component:"span",className:fr(ei.ovalLoader,t),...e,ref:n}));C3.displayName="@mantine/core/Oval";const $3={bars:T3,oval:C3,dots:A3},XQ={loaders:$3,type:"oval"},QQ=(t,{size:e,color:n})=>({root:{"--loader-size":Le(e,"loader-size"),"--loader-color":n?ia(n,t):void 0}}),ic=zt((t,e)=>{const n=vt("Loader",XQ,t),{size:r,color:a,type:c,vars:f,className:d,style:h,classNames:g,styles:y,unstyled:v,loaders:E,variant:x,children:C,attributes:w,...M}=n,L=ie({name:"Loader",props:n,classes:ei,className:d,style:h,classNames:g,styles:y,unstyled:v,attributes:w,vars:f,varsResolver:QQ});return C?$.jsx(Et,{...L("root"),ref:e,...M,children:C}):$.jsx(Et,{...L("root"),ref:e,component:E[c],variant:x,size:r,...M})});ic.defaultLoaders=$3;ic.classes=ei;ic.displayName="@mantine/core/Loader";var oc={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const sC={orientation:"horizontal"},ZQ=(t,{borderWidth:e})=>({group:{"--ai-border-width":ut(e)}}),Z1=zt((t,e)=>{const n=vt("ActionIconGroup",sC,t),{className:r,style:a,classNames:c,styles:f,unstyled:d,orientation:h,vars:g,borderWidth:y,variant:v,mod:E,attributes:x,...C}=vt("ActionIconGroup",sC,t),w=ie({name:"ActionIconGroup",props:n,classes:oc,className:r,style:a,classNames:c,styles:f,unstyled:d,attributes:x,vars:g,varsResolver:ZQ,rootSelector:"group"});return $.jsx(Et,{...w("group"),ref:e,variant:v,mod:[{"data-orientation":h},E],role:"group",...C})});Z1.classes=oc;Z1.displayName="@mantine/core/ActionIconGroup";const JQ=(t,{radius:e,color:n,gradient:r,variant:a,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:a||"filled",autoContrast:c});return{groupSection:{"--section-height":Le(f,"section-height"),"--section-padding-x":Le(f,"section-padding-x"),"--section-fz":ir(f),"--section-radius":e===void 0?void 0:Pr(e),"--section-bg":n||a?d.background:void 0,"--section-color":d.color,"--section-bd":n||a?d.border:void 0}}},J1=zt((t,e)=>{const n=vt("ActionIconGroupSection",null,t),{className:r,style:a,classNames:c,styles:f,unstyled:d,vars:h,variant:g,gradient:y,radius:v,autoContrast:E,attributes:x,...C}=n,w=ie({name:"ActionIconGroupSection",props:n,classes:oc,className:r,style:a,classNames:c,styles:f,unstyled:d,attributes:x,vars:h,varsResolver:JQ,rootSelector:"groupSection"});return $.jsx(Et,{...w("groupSection"),ref:e,variant:g,...C})});J1.classes=oc;J1.displayName="@mantine/core/ActionIconGroupSection";const WQ=(t,{size:e,radius:n,variant:r,gradient:a,color:c,autoContrast:f})=>{const d=t.variantColorResolver({color:c||t.primaryColor,theme:t,gradient:a,variant:r||"filled",autoContrast:f});return{root:{"--ai-size":Le(e,"ai-size"),"--ai-radius":n===void 0?void 0:Pr(n),"--ai-bg":c||r?d.background:void 0,"--ai-hover":c||r?d.hover:void 0,"--ai-hover-color":c||r?d.hoverColor:void 0,"--ai-color":d.color,"--ai-bd":c||r?d.border:void 0}}},So=Pn((t,e)=>{const n=vt("ActionIcon",null,t),{className:r,unstyled:a,variant:c,classNames:f,styles:d,style:h,loading:g,loaderProps:y,size:v,color:E,radius:x,__staticSelector:C,gradient:w,vars:M,children:L,disabled:z,"data-disabled":I,autoContrast:F,mod:G,attributes:q,...B}=n,k=ie({name:["ActionIcon",C],props:n,className:r,style:h,classes:oc,classNames:f,styles:d,unstyled:a,attributes:q,vars:M,varsResolver:WQ});return $.jsxs(rc,{...k("root",{active:!z&&!g&&!I}),...B,unstyled:a,variant:c,size:v,disabled:z||g,ref:e,mod:[{loading:g,disabled:z||I},G],children:[typeof g=="boolean"&&$.jsx(vf,{mounted:g,transition:"slide-down",duration:150,children:o(et=>$.jsx(Et,{component:"span",...k("loader",{style:et}),"aria-hidden":!0,children:$.jsx(ic,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...y})}),"children")}),$.jsx(Et,{component:"span",mod:{loading:g},...k("icon"),children:L})]})});So.classes=oc;So.displayName="@mantine/core/ActionIcon";So.Group=Z1;So.GroupSection=J1;const M3=A.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:e,...n},r)=>$.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:t,height:t},ref:r,...n,children:$.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));M3.displayName="@mantine/core/CloseIcon";var O3={root:"m_86a44da5","root--subtle":"m_220c80f2"};const tZ={variant:"subtle"},eZ=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":Le(e,"cb-size"),"--cb-radius":n===void 0?void 0:Pr(n),"--cb-icon-size":ut(r)}}),Sf=Pn((t,e)=>{const n=vt("CloseButton",tZ,t),{iconSize:r,children:a,vars:c,radius:f,className:d,classNames:h,style:g,styles:y,unstyled:v,"data-disabled":E,disabled:x,variant:C,icon:w,mod:M,attributes:L,__staticSelector:z,...I}=n,F=ie({name:z||"CloseButton",props:n,className:d,style:g,classes:O3,classNames:h,styles:y,unstyled:v,attributes:L,vars:c,varsResolver:eZ});return $.jsxs(rc,{ref:e,...I,unstyled:v,variant:C,disabled:x,mod:[{disabled:x||E},M],...F("root",{variant:C,active:!x&&!E}),children:[w||$.jsx(M3,{}),a]})});Sf.classes=O3;Sf.displayName="@mantine/core/CloseButton";function nZ(t){return A.Children.toArray(t).filter(Boolean)}o(nZ,"filterFalsyChildren");var R3={root:"m_4081bf90"};const rZ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},iZ=(t,{grow:e,preventGrowOverflow:n,gap:r,align:a,justify:c,wrap:f},{childWidth:d})=>({root:{"--group-child-width":e&&n?d:void 0,"--group-gap":tp(r),"--group-align":a,"--group-justify":c,"--group-wrap":f}}),W1=zt((t,e)=>{const n=vt("Group",rZ,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,children:h,gap:g,align:y,justify:v,wrap:E,grow:x,preventGrowOverflow:C,vars:w,variant:M,__size:L,mod:z,attributes:I,...F}=n,G=nZ(h),q=G.length,B=tp(g??"md"),et={childWidth:`calc(${100/q}% - (${B} - ${B} / ${q}))`},nt=ie({name:"Group",props:n,stylesCtx:et,className:a,style:c,classes:R3,classNames:r,styles:f,unstyled:d,attributes:I,vars:w,varsResolver:iZ});return $.jsx(Et,{...nt("root"),ref:e,variant:M,mod:[{grow:x},z],size:L,...F,children:G})});W1.classes=R3;W1.displayName="@mantine/core/Group";const[oZ,xo]=pa("ModalBase component was not found in tree");function sZ({opened:t,transitionDuration:e}){const[n,r]=A.useState(t),a=A.useRef(-1),f=M1()?0:e;return A.useEffect(()=>(t?(r(!0),window.clearTimeout(a.current)):f===0?r(!1):a.current=window.setTimeout(()=>r(!1),f),()=>window.clearTimeout(a.current)),[t,f]),n}o(sZ,"useLockScroll");function aZ({id:t,transitionProps:e,opened:n,trapFocus:r,closeOnEscape:a,onClose:c,returnFocus:f}){const d=$R(t),[h,g]=A.useState(!1),[y,v]=A.useState(!1),E=typeof e?.duration=="number"?e?.duration:200,x=sZ({opened:n,transitionDuration:E});return AV("keydown",C=>{C.key==="Escape"&&a&&!C.isComposing&&n&&C.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&c()},{capture:!0}),hV({opened:n,shouldReturnFocus:r&&f}),{_id:d,titleMounted:h,bodyMounted:y,shouldLockScroll:x,setTitleMounted:g,setBodyMounted:v}}o(aZ,"useModal");const N3=A.forwardRef(({keepMounted:t,opened:e,onClose:n,id:r,transitionProps:a,onExitTransitionEnd:c,onEnterTransitionEnd:f,trapFocus:d,closeOnEscape:h,returnFocus:g,closeOnClickOutside:y,withinPortal:v,portalProps:E,lockScroll:x,children:C,zIndex:w,shadow:M,padding:L,__vars:z,unstyled:I,removeScrollProps:F,...G},q)=>{const{_id:B,titleMounted:k,bodyMounted:et,shouldLockScroll:nt,setTitleMounted:ot,setBodyMounted:ft}=aZ({id:r,transitionProps:a,opened:e,trapFocus:d,closeOnEscape:h,onClose:n,returnFocus:g}),{key:mt,...V}=F||{};return $.jsx(up,{...E,withinPortal:v,children:$.jsx(oZ,{value:{opened:e,onClose:n,closeOnClickOutside:y,onExitTransitionEnd:c,onEnterTransitionEnd:f,transitionProps:{...a,keepMounted:t},getTitleId:o(()=>`${B}-title`,"getTitleId"),getBodyId:o(()=>`${B}-body`,"getBodyId"),titleMounted:k,bodyMounted:et,setTitleMounted:ot,setBodyMounted:ft,trapFocus:d,closeOnEscape:h,zIndex:w,unstyled:I},children:$.jsx(Pm,{enabled:nt&&x,...V,children:$.jsx(Et,{ref:q,...G,__vars:{...z,"--mb-z-index":(w||hi("modal")).toString(),"--mb-shadow":ER(M),"--mb-padding":tp(L)},children:C})},mt)})})});N3.displayName="@mantine/core/ModalBase";var Dl={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function lZ(){const t=xo();return A.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}o(lZ,"useModalBodyId");const _3=A.forwardRef(({className:t,...e},n)=>{const r=lZ(),a=xo();return $.jsx(Et,{ref:n,...e,id:r,className:fr({[Dl.body]:!a.unstyled},t)})});_3.displayName="@mantine/core/ModalBaseBody";const D3=A.forwardRef(({className:t,onClick:e,...n},r)=>{const a=xo();return $.jsx(Sf,{ref:r,...n,onClick:o(c=>{a.onClose(),e?.(c)},"onClick"),className:fr({[Dl.close]:!a.unstyled},t),unstyled:a.unstyled})});D3.displayName="@mantine/core/ModalBaseCloseButton";const j3=A.forwardRef(({transitionProps:t,className:e,innerProps:n,onKeyDown:r,style:a,...c},f)=>{const d=xo();return $.jsx(vf,{mounted:d.opened,transition:"pop",...d.transitionProps,onExited:o(()=>{d.onExitTransitionEnd?.(),d.transitionProps?.onExited?.()},"onExited"),onEntered:o(()=>{d.onEnterTransitionEnd?.(),d.transitionProps?.onEntered?.()},"onEntered"),...t,children:o(h=>$.jsx("div",{...n,className:fr({[Dl.inner]:!d.unstyled},n.className),children:$.jsx(Q1,{active:d.opened&&d.trapFocus,innerRef:f,children:$.jsx(vo,{...c,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":d.bodyMounted?d.getBodyId():void 0,"aria-labelledby":d.titleMounted?d.getTitleId():void 0,style:[a,h],className:fr({[Dl.content]:!d.unstyled},e),unstyled:d.unstyled,children:c.children})})}),"children")})});j3.displayName="@mantine/core/ModalBaseContent";const I3=A.forwardRef(({className:t,...e},n)=>{const r=xo();return $.jsx(Et,{component:"header",ref:n,className:fr({[Dl.header]:!r.unstyled},t),...e})});I3.displayName="@mantine/core/ModalBaseHeader";const cZ={duration:200,timingFunction:"ease",transition:"fade"};function uZ(t){const e=xo();return{...cZ,...e.transitionProps,...t}}o(uZ,"useModalTransition");const L3=A.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...a},c)=>{const f=xo(),d=uZ(e);return $.jsx(vf,{mounted:r!==void 0?r:f.opened,...d,transition:"fade",children:o(h=>$.jsx(X1,{ref:c,fixed:!0,style:[n,h],zIndex:f.zIndex,unstyled:f.unstyled,onClick:o(g=>{t?.(g),f.closeOnClickOutside&&f.onClose()},"onClick"),...a}),"children")})});L3.displayName="@mantine/core/ModalBaseOverlay";function fZ(){const t=xo();return A.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}o(fZ,"useModalTitle");const z3=A.forwardRef(({className:t,...e},n)=>{const r=fZ(),a=xo();return $.jsx(Et,{component:"h2",ref:n,className:fr({[Dl.title]:!a.unstyled},t),...e,id:r})});z3.displayName="@mantine/core/ModalBaseTitle";function dZ({children:t}){return $.jsx($.Fragment,{children:t})}o(dZ,"NativeScrollArea");const[mZ,hZ]=$1({size:"sm"});var Vr={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const B3=zt((t,e)=>{const n=vt("InputClearButton",null,t),{size:r,variant:a,vars:c,classNames:f,styles:d,...h}=n,g=hZ(),{resolvedClassNames:y,resolvedStyles:v}=zR({classNames:f,styles:d,props:n});return $.jsx(Sf,{variant:a||"transparent",ref:e,size:r||g?.size||"sm",classNames:y,styles:v,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...h.style},...h})});B3.displayName="@mantine/core/InputClearButton";const pZ={xs:7,sm:8,md:10,lg:12,xl:15};function gZ({__clearable:t,__clearSection:e,rightSection:n,__defaultRightSection:r,size:a="sm"}){const c=t&&e;return c&&(n||r)?$.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:pZ[a]},children:[c,n||r]}):n===null?null:n||c||r}o(gZ,"InputClearSection");const[yZ,fp]=$1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),bZ=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${ir(e)} - ${ut(2)})`}}),dp=zt((t,e)=>{const n=vt("InputDescription",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,size:g,__staticSelector:y,__inheritStyles:v=!0,attributes:E,variant:x,...C}=vt("InputDescription",null,n),w=fp(),M=ie({name:["InputWrapper",y],props:n,classes:Vr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:E,rootSelector:"description",vars:h,varsResolver:bZ}),L=v&&w?.getStyles||M;return $.jsx(Et,{component:"p",ref:e,variant:x,size:g,...L("description",w?.getStyles?{className:a,style:c}:void 0),...C})});dp.classes=Vr;dp.displayName="@mantine/core/InputDescription";const vZ=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${ir(e)} - ${ut(2)})`}}),mp=zt((t,e)=>{const n=vt("InputError",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,size:g,attributes:y,__staticSelector:v,__inheritStyles:E=!0,variant:x,...C}=n,w=ie({name:["InputWrapper",v],props:n,classes:Vr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:y,rootSelector:"error",vars:h,varsResolver:vZ}),M=fp(),L=E&&M?.getStyles||w;return $.jsx(Et,{component:"p",ref:e,variant:x,size:g,...L("error",M?.getStyles?{className:a,style:c}:void 0),...C})});mp.classes=Vr;mp.displayName="@mantine/core/InputError";const aC={labelElement:"label"},SZ=(t,{size:e})=>({label:{"--input-label-size":ir(e),"--input-asterisk-color":void 0}}),hp=zt((t,e)=>{const n=vt("InputLabel",aC,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,labelElement:g,size:y,required:v,htmlFor:E,onMouseDown:x,children:C,__staticSelector:w,variant:M,mod:L,attributes:z,...I}=vt("InputLabel",aC,n),F=ie({name:["InputWrapper",w],props:n,classes:Vr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:z,rootSelector:"label",vars:h,varsResolver:SZ}),G=fp(),q=G?.getStyles||F;return $.jsxs(Et,{...q("label",G?.getStyles?{className:a,style:c}:void 0),component:g,variant:M,size:y,ref:e,htmlFor:g==="label"?E:void 0,mod:[{required:v},L],onMouseDown:o(B=>{x?.(B),!B.defaultPrevented&&B.detail>1&&B.preventDefault()},"onMouseDown"),...I,children:[C,v&&$.jsx("span",{...q("required"),"aria-hidden":!0,children:" *"})]})});hp.classes=Vr;hp.displayName="@mantine/core/InputLabel";const tS=zt((t,e)=>{const n=vt("InputPlaceholder",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,__staticSelector:g,variant:y,error:v,mod:E,attributes:x,...C}=n,w=ie({name:["InputPlaceholder",g],props:n,classes:Vr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:x,rootSelector:"placeholder"});return $.jsx(Et,{...w("placeholder"),mod:[{error:!!v},E],component:"span",variant:y,ref:e,...C})});tS.classes=Vr;tS.displayName="@mantine/core/InputPlaceholder";function xZ(t,{hasDescription:e,hasError:n}){const r=t.findIndex(h=>h==="input"),a=t.slice(0,r),c=t.slice(r+1),f=e&&a.includes("description")||n&&a.includes("error");return{offsetBottom:e&&c.includes("description")||n&&c.includes("error"),offsetTop:f}}o(xZ,"getInputOffsets");const EZ={labelElement:"label",inputContainer:o(t=>t,"inputContainer"),inputWrapperOrder:["label","description","input","error"]},wZ=(t,{size:e})=>({label:{"--input-label-size":ir(e),"--input-asterisk-color":void 0},error:{"--input-error-size":e===void 0?void 0:`calc(${ir(e)} - ${ut(2)})`},description:{"--input-description-size":e===void 0?void 0:`calc(${ir(e)} - ${ut(2)})`}}),eS=zt((t,e)=>{const n=vt("InputWrapper",EZ,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,size:g,variant:y,__staticSelector:v,inputContainer:E,inputWrapperOrder:x,label:C,error:w,description:M,labelProps:L,descriptionProps:z,errorProps:I,labelElement:F,children:G,withAsterisk:q,id:B,required:k,__stylesApiProps:et,mod:nt,attributes:ot,...ft}=n,mt=ie({name:["InputWrapper",v],props:et||n,classes:Vr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:ot,vars:h,varsResolver:wZ}),V={size:g,variant:y,__staticSelector:v},J=$R(B),N=typeof q=="boolean"?q:k,U=I?.id||`${J}-error`,j=z?.id||`${J}-description`,tt=J,it=!!w&&typeof w!="boolean",_=!!M,Y=`${it?U:""} ${_?j:""}`,lt=Y.trim().length>0?Y.trim():void 0,dt=L?.id||`${J}-label`,ht=C&&$.jsx(hp,{labelElement:F,id:dt,htmlFor:tt,required:N,...V,...L,children:C},"label"),yt=_&&$.jsx(dp,{...z,...V,size:z?.size||V.size,id:z?.id||j,children:M},"description"),Ct=$.jsx(A.Fragment,{children:E(G)},"input"),te=it&&A.createElement(mp,{...I,...V,size:I?.size||V.size,key:"error",id:I?.id||U},w),Kt=x.map(ye=>{switch(ye){case"label":return ht;case"input":return Ct;case"description":return yt;case"error":return te;default:return null}});return $.jsx(yZ,{value:{getStyles:mt,describedBy:lt,inputId:tt,labelId:dt,...xZ(x,{hasDescription:_,hasError:it})},children:$.jsx(Et,{ref:e,variant:y,size:g,mod:[{error:!!w},nt],...mt("root"),...ft,children:Kt})})});eS.classes=Vr;eS.displayName="@mantine/core/InputWrapper";const TZ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},AZ=(t,e,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Le(e.size,"input-height"),"--input-fz":ir(e.size),"--input-radius":e.radius===void 0?void 0:Pr(e.radius),"--input-left-section-width":e.leftSectionWidth!==void 0?ut(e.leftSectionWidth):void 0,"--input-right-section-width":e.rightSectionWidth!==void 0?ut(e.rightSectionWidth):void 0,"--input-padding-y":e.multiline?Le(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),mr=Pn((t,e)=>{const n=vt("Input",TZ,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,required:h,__staticSelector:g,__stylesApiProps:y,size:v,wrapperProps:E,error:x,disabled:C,leftSection:w,leftSectionProps:M,leftSectionWidth:L,rightSection:z,rightSectionProps:I,rightSectionWidth:F,rightSectionPointerEvents:G,leftSectionPointerEvents:q,variant:B,vars:k,pointer:et,multiline:nt,radius:ot,id:ft,withAria:mt,withErrorStyles:V,mod:J,inputSize:N,attributes:U,__clearSection:j,__clearable:tt,__defaultRightSection:it,..._}=n,{styleProps:Y,rest:lt}=D1(_),dt=fp(),ht={offsetBottom:dt?.offsetBottom,offsetTop:dt?.offsetTop},yt=ie({name:["Input",g],props:y||n,classes:Vr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:U,stylesCtx:ht,rootSelector:"wrapper",vars:k,varsResolver:AZ}),Ct=mt?{required:h,disabled:C,"aria-invalid":!!x,"aria-describedby":dt?.describedBy,id:dt?.inputId||ft}:{},te=gZ({__clearable:tt,__clearSection:j,rightSection:z,__defaultRightSection:it,size:v});return $.jsx(mZ,{value:{size:v||"sm"},children:$.jsxs(Et,{...yt("wrapper"),...Y,...E,mod:[{error:!!x&&V,pointer:et,disabled:C,multiline:nt,"data-with-right-section":!!te,"data-with-left-section":!!w},J],variant:B,size:v,children:[w&&$.jsx("div",{...M,"data-position":"left",...yt("section",{className:M?.className,style:M?.style}),children:w}),$.jsx(Et,{component:"input",...lt,...Ct,ref:e,required:h,mod:{disabled:C,error:!!x&&V},variant:B,__size:N,...yt("input")}),te&&$.jsx("div",{...I,"data-position":"right",...yt("section",{className:I?.className,style:I?.style}),children:te})]})})});mr.classes=Vr;mr.Wrapper=eS;mr.Label=hp;mr.Error=mp;mr.Description=dp;mr.Placeholder=tS;mr.ClearButton=B3;mr.displayName="@mantine/core/Input";function CZ(t,e,n){const r=vt(t,e,n),{label:a,description:c,error:f,required:d,classNames:h,styles:g,className:y,unstyled:v,__staticSelector:E,__stylesApiProps:x,errorProps:C,labelProps:w,descriptionProps:M,wrapperProps:L,id:z,size:I,style:F,inputContainer:G,inputWrapperOrder:q,withAsterisk:B,variant:k,vars:et,mod:nt,attributes:ot,...ft}=r,{styleProps:mt,rest:V}=D1(ft),J={label:a,description:c,error:f,required:d,classNames:h,className:y,__staticSelector:E,__stylesApiProps:x||r,errorProps:C,labelProps:w,descriptionProps:M,unstyled:v,styles:g,size:I,style:F,inputContainer:G,inputWrapperOrder:q,withAsterisk:B,variant:k,id:z,mod:nt,attributes:ot,...L};return{...V,classNames:h,styles:g,unstyled:v,wrapperProps:{...J,...mt},inputProps:{required:d,classNames:h,styles:g,unstyled:v,size:I,__staticSelector:E,__stylesApiProps:x||r,error:f,variant:k,id:z,attributes:ot}}}o(CZ,"useInputProps");const $Z={__staticSelector:"InputBase",withAria:!0,size:"sm"},pp=Pn((t,e)=>{const{inputProps:n,wrapperProps:r,...a}=CZ("InputBase",$Z,t);return $.jsx(mr.Wrapper,{...r,children:$.jsx(mr,{...n,...a,ref:e})})});pp.classes={...mr.classes,...mr.Wrapper.classes};pp.displayName="@mantine/core/InputBase";const MZ={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var U3={root:"m_8bffd616"};const sc=Pn((t,e)=>{const n=vt("Flex",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,gap:g,rowGap:y,columnGap:v,align:E,justify:x,wrap:C,direction:w,attributes:M,...L}=n,z=ie({name:"Flex",classes:U3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:h}),I=Gr(),F=HR(),G=UR({styleProps:{gap:g,rowGap:y,columnGap:v,align:E,justify:x,wrap:C,direction:w},theme:I,data:MZ});return $.jsxs($.Fragment,{children:[G.hasResponsiveStyles&&$.jsx(BR,{selector:`.${F}`,styles:G.styles,media:G.media}),$.jsx(Et,{ref:e,...z("root",{className:F,style:Wh(G.inlineStyles)}),...L})]})});sc.classes=U3;sc.displayName="@mantine/core/Flex";var H3={root:"m_b6d8b162"};function OZ(t){if(t==="start")return"start";if(t==="end"||t)return"end"}o(OZ,"getTextTruncate");const RZ={inherit:!1},NZ=(t,{variant:e,lineClamp:n,gradient:r,size:a,color:c})=>({root:{"--text-fz":ir(a),"--text-lh":uV(a),"--text-gradient":e==="gradient"?cb(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":c?ia(c,t):void 0}}),Ss=Pn((t,e)=>{const n=vt("Text",RZ,t),{lineClamp:r,truncate:a,inline:c,inherit:f,gradient:d,span:h,__staticSelector:g,vars:y,className:v,style:E,classNames:x,styles:C,unstyled:w,variant:M,mod:L,size:z,attributes:I,...F}=n,G=ie({name:["Text",g],props:n,classes:H3,className:v,style:E,classNames:x,styles:C,unstyled:w,attributes:I,vars:y,varsResolver:NZ});return $.jsx(Et,{...G("root",{focusable:!0}),ref:e,component:h?"span":"p",variant:M,mod:[{"data-truncate":OZ(a),"data-line-clamp":typeof r=="number","data-inline":c,"data-inherit":f},L],size:z,...F})});Ss.classes=H3;Ss.displayName="@mantine/core/Text";var k3={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const _Z=(t,{radius:e,color:n,gradient:r,variant:a,size:c,autoContrast:f,circle:d})=>{const h=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:a||"filled",autoContrast:f});return{root:{"--badge-height":Le(c,"badge-height"),"--badge-padding-x":Le(c,"badge-padding-x"),"--badge-fz":Le(c,"badge-fz"),"--badge-radius":d||e===void 0?void 0:Pr(e),"--badge-bg":n||a?h.background:void 0,"--badge-color":n||a?h.color:void 0,"--badge-bd":n||a?h.border:void 0,"--badge-dot-color":a==="dot"?ia(n,t):void 0}}},ya=Pn((t,e)=>{const n=vt("Badge",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,radius:g,color:y,gradient:v,leftSection:E,rightSection:x,children:C,variant:w,fullWidth:M,autoContrast:L,circle:z,mod:I,attributes:F,...G}=n,q=ie({name:"Badge",props:n,classes:k3,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:F,vars:h,varsResolver:_Z});return $.jsxs(Et,{variant:w,mod:[{block:M,circle:z,"with-right-section":!!x,"with-left-section":!!E},I],...q("root",{variant:w}),ref:e,...G,children:[E&&$.jsx("span",{...q("section"),"data-position":"left",children:E}),$.jsx("span",{...q("label"),children:C}),x&&$.jsx("span",{...q("section"),"data-position":"right",children:x})]})});ya.classes=k3;ya.displayName="@mantine/core/Badge";var ac={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const lC={orientation:"horizontal"},DZ=(t,{borderWidth:e})=>({group:{"--button-border-width":ut(e)}}),nS=zt((t,e)=>{const n=vt("ButtonGroup",lC,t),{className:r,style:a,classNames:c,styles:f,unstyled:d,orientation:h,vars:g,borderWidth:y,variant:v,mod:E,attributes:x,...C}=vt("ButtonGroup",lC,t),w=ie({name:"ButtonGroup",props:n,classes:ac,className:r,style:a,classNames:c,styles:f,unstyled:d,attributes:x,vars:g,varsResolver:DZ,rootSelector:"group"});return $.jsx(Et,{...w("group"),ref:e,variant:v,mod:[{"data-orientation":h},E],role:"group",...C})});nS.classes=ac;nS.displayName="@mantine/core/ButtonGroup";const jZ=(t,{radius:e,color:n,gradient:r,variant:a,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:a||"filled",autoContrast:c});return{groupSection:{"--section-height":Le(f,"section-height"),"--section-padding-x":Le(f,"section-padding-x"),"--section-fz":f?.includes("compact")?ir(f.replace("compact-","")):ir(f),"--section-radius":e===void 0?void 0:Pr(e),"--section-bg":n||a?d.background:void 0,"--section-color":d.color,"--section-bd":n||a?d.border:void 0}}},rS=zt((t,e)=>{const n=vt("ButtonGroupSection",null,t),{className:r,style:a,classNames:c,styles:f,unstyled:d,vars:h,variant:g,gradient:y,radius:v,autoContrast:E,attributes:x,...C}=n,w=ie({name:"ButtonGroupSection",props:n,classes:ac,className:r,style:a,classNames:c,styles:f,unstyled:d,attributes:x,vars:h,varsResolver:jZ,rootSelector:"groupSection"});return $.jsx(Et,{...w("groupSection"),ref:e,variant:g,...C})});rS.classes=ac;rS.displayName="@mantine/core/ButtonGroupSection";const IZ={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ut(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},LZ=(t,{radius:e,color:n,gradient:r,variant:a,size:c,justify:f,autoContrast:d})=>{const h=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:a||"filled",autoContrast:d});return{root:{"--button-justify":f,"--button-height":Le(c,"button-height"),"--button-padding-x":Le(c,"button-padding-x"),"--button-fz":c?.includes("compact")?ir(c.replace("compact-","")):ir(c),"--button-radius":e===void 0?void 0:Pr(e),"--button-bg":n||a?h.background:void 0,"--button-hover":n||a?h.hover:void 0,"--button-color":h.color,"--button-bd":n||a?h.border:void 0,"--button-hover-color":n||a?h.hoverColor:void 0}}},xn=Pn((t,e)=>{const n=vt("Button",null,t),{style:r,vars:a,className:c,color:f,disabled:d,children:h,leftSection:g,rightSection:y,fullWidth:v,variant:E,radius:x,loading:C,loaderProps:w,gradient:M,classNames:L,styles:z,unstyled:I,"data-disabled":F,autoContrast:G,mod:q,attributes:B,...k}=n,et=ie({name:"Button",props:n,classes:ac,className:c,style:r,classNames:L,styles:z,unstyled:I,attributes:B,vars:a,varsResolver:LZ}),nt=!!g,ot=!!y;return $.jsxs(rc,{ref:e,...et("root",{active:!d&&!C&&!F}),unstyled:I,variant:E,disabled:d||C,mod:[{disabled:d||F,loading:C,block:v,"with-left-section":nt,"with-right-section":ot},q],...k,children:[typeof C=="boolean"&&$.jsx(vf,{mounted:C,transition:IZ,duration:150,children:o(ft=>$.jsx(Et,{component:"span",...et("loader",{style:ft}),"aria-hidden":!0,children:$.jsx(ic,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})}),"children")}),$.jsxs("span",{...et("inner"),children:[g&&$.jsx(Et,{component:"span",...et("section"),mod:{position:"left"},children:g}),$.jsx(Et,{component:"span",mod:{loading:C},...et("label"),children:h}),y&&$.jsx(Et,{component:"span",...et("section"),mod:{position:"right"},children:y})]})]})});xn.classes=ac;xn.displayName="@mantine/core/Button";xn.Group=nS;xn.GroupSection=rS;const[zZ,BZ]=pa("Card component was not found in tree");var iS={root:"m_e615b15f",section:"m_599a2148"};const gp=Pn((t,e)=>{const n=vt("CardSection",null,t),{classNames:r,className:a,style:c,styles:f,vars:d,withBorder:h,inheritPadding:g,mod:y,...v}=n,E=BZ();return $.jsx(Et,{ref:e,mod:[{"with-border":h,"inherit-padding":g},y],...E.getStyles("section",{className:a,style:c,styles:f,classNames:r}),...v})});gp.classes=iS;gp.displayName="@mantine/core/CardSection";const UZ=(t,{padding:e})=>({root:{"--card-padding":tp(e)}}),xs=Pn((t,e)=>{const n=vt("Card",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,children:g,padding:y,attributes:v,...E}=n,x=ie({name:"Card",props:n,classes:iS,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:h,varsResolver:UZ}),C=A.Children.toArray(g),w=C.map((M,L)=>typeof M=="object"&&M&&"type"in M&&M.type===gp?A.cloneElement(M,{"data-first-section":L===0||void 0,"data-last-section":L===C.length-1||void 0}):M);return $.jsx(zZ,{value:{getStyles:x},children:$.jsx(vo,{ref:e,unstyled:d,...x("root"),...E,children:w})})});xs.classes=iS;xs.displayName="@mantine/core/Card";xs.Section=gp;var F3={root:"m_7485cace"};const HZ=(t,{size:e,fluid:n})=>({root:{"--container-size":n?void 0:Le(e,"container-size")}}),oS=zt((t,e)=>{const n=vt("Container",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,fluid:g,mod:y,attributes:v,strategy:E,...x}=n,C=ie({name:"Container",classes:F3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:h,varsResolver:HZ});return $.jsx(Et,{ref:e,mod:[{fluid:g,strategy:E||"block"},y],...C("root"),...x})});oS.classes=F3;oS.displayName="@mantine/core/Container";function cC({color:t,theme:e,defaultShade:n}){const r=Wl({color:t,theme:e});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:t}o(cC,"getMarkColor");var q3={root:"m_bcb3f3c2"};const kZ={color:"yellow"},FZ=(t,{color:e})=>({root:{"--mark-bg-dark":cC({color:e,theme:t,defaultShade:5}),"--mark-bg-light":cC({color:e,theme:t,defaultShade:2})}}),sS=zt((t,e)=>{const n=vt("Mark",kZ,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,color:g,variant:y,attributes:v,...E}=n,x=ie({name:"Mark",props:n,className:a,style:c,classes:q3,classNames:r,styles:f,unstyled:d,attributes:v,vars:h,varsResolver:FZ});return $.jsx(Et,{component:"mark",ref:e,variant:y,...x("root"),...E})});sS.classes=q3;sS.displayName="@mantine/core/Mark";function uC(t){return t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}o(uC,"escapeRegex");function qZ(t,e){if(e==null)return[{chunk:t,highlighted:!1}];const n=Array.isArray(e)?e.map(uC):uC(e);if(!(Array.isArray(n)?n.filter(d=>d.trim().length>0).length>0:n.trim()!==""))return[{chunk:t,highlighted:!1}];const a=typeof n=="string"?n.trim():n.filter(d=>d.trim().length!==0).map(d=>d.trim()).sort((d,h)=>h.length-d.length).join("|"),c=new RegExp(`(${a})`,"gi");return t.split(c).map(d=>({chunk:d,highlighted:c.test(d)})).filter(({chunk:d})=>d)}o(qZ,"highlighter");const aS=Pn((t,e)=>{const{unstyled:n,children:r,highlight:a,highlightStyles:c,color:f,...d}=vt("Highlight",null,t),h=qZ(r,a);return $.jsx(Ss,{unstyled:n,ref:e,...d,__staticSelector:"Highlight",children:h.map(({chunk:g,highlighted:y},v)=>y?$.jsx(sS,{unstyled:n,color:f,style:c,"data-highlight":g,children:g},v):$.jsx("span",{children:g},v))})});aS.classes=Ss.classes;aS.displayName="@mantine/core/Highlight";function Sb(){return Sb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Sb.apply(null,arguments)}o(Sb,"_extends");function P3(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}o(P3,"_objectWithoutPropertiesLoose");var Eo={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const[PZ,lc]=pa("Modal component was not found in tree"),yp=zt((t,e)=>{const n=vt("ModalBody",null,t),{classNames:r,className:a,style:c,styles:f,vars:d,...h}=n,g=lc();return $.jsx(_3,{ref:e,...g.getStyles("body",{classNames:r,style:c,styles:f,className:a}),...h})});yp.classes=Eo;yp.displayName="@mantine/core/ModalBody";const bp=zt((t,e)=>{const n=vt("ModalCloseButton",null,t),{classNames:r,className:a,style:c,styles:f,vars:d,...h}=n,g=lc();return $.jsx(D3,{ref:e,...g.getStyles("close",{classNames:r,style:c,styles:f,className:a}),...h})});bp.classes=Eo;bp.displayName="@mantine/core/ModalCloseButton";const vp=zt((t,e)=>{const n=vt("ModalContent",null,t),{classNames:r,className:a,style:c,styles:f,vars:d,children:h,__hidden:g,...y}=n,v=lc(),E=v.scrollAreaComponent||dZ;return $.jsx(j3,{...v.getStyles("content",{className:a,style:c,styles:f,classNames:r}),innerProps:v.getStyles("inner",{className:a,style:c,styles:f,classNames:r}),"data-full-screen":v.fullScreen||void 0,"data-modal-content":!0,"data-hidden":g||void 0,ref:e,...y,children:$.jsx(E,{style:{maxHeight:v.fullScreen?"100dvh":`calc(100dvh - (${ut(v.yOffset)} * 2))`},children:h})})});vp.classes=Eo;vp.displayName="@mantine/core/ModalContent";const Sp=zt((t,e)=>{const n=vt("ModalHeader",null,t),{classNames:r,className:a,style:c,styles:f,vars:d,...h}=n,g=lc();return $.jsx(I3,{ref:e,...g.getStyles("header",{classNames:r,style:c,styles:f,className:a}),...h})});Sp.classes=Eo;Sp.displayName="@mantine/core/ModalHeader";const xp=zt((t,e)=>{const n=vt("ModalOverlay",null,t),{classNames:r,className:a,style:c,styles:f,vars:d,...h}=n,g=lc();return $.jsx(L3,{ref:e,...g.getStyles("overlay",{classNames:r,style:c,styles:f,className:a}),...h})});xp.classes=Eo;xp.displayName="@mantine/core/ModalOverlay";const GZ={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:hi("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},YZ=(t,{radius:e,size:n,yOffset:r,xOffset:a})=>({root:{"--modal-radius":e===void 0?void 0:Pr(e),"--modal-size":Le(n,"modal-size"),"--modal-y-offset":ut(r),"--modal-x-offset":ut(a)}}),Ep=zt((t,e)=>{const n=vt("ModalRoot",GZ,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,yOffset:g,scrollAreaComponent:y,radius:v,fullScreen:E,centered:x,xOffset:C,__staticSelector:w,attributes:M,...L}=n,z=ie({name:w,classes:Eo,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:h,varsResolver:YZ});return $.jsx(PZ,{value:{yOffset:g,scrollAreaComponent:y,getStyles:z,fullScreen:E},children:$.jsx(N3,{ref:e,...z("root"),"data-full-screen":E||void 0,"data-centered":x||void 0,"data-offset-scrollbars":y===nc.Autosize||void 0,unstyled:d,...L})})});Ep.classes=Eo;Ep.displayName="@mantine/core/ModalRoot";const[VZ,KZ]=$1();function G3({children:t}){const[e,n]=A.useState([]),[r,a]=A.useState(hi("modal"));return $.jsx(VZ,{value:{stack:e,addModal:o((c,f)=>{n(d=>[...new Set([...d,c])]),a(d=>typeof f=="number"&&typeof d=="number"?Math.max(d,f):d)},"addModal"),removeModal:o(c=>n(f=>f.filter(d=>d!==c)),"removeModal"),getZIndex:o(c=>`calc(${r} + ${e.indexOf(c)} + 1)`,"getZIndex"),currentId:e[e.length-1],maxZIndex:r},children:t})}o(G3,"ModalStack");G3.displayName="@mantine/core/ModalStack";const wp=zt((t,e)=>{const n=vt("ModalTitle",null,t),{classNames:r,className:a,style:c,styles:f,vars:d,...h}=n,g=lc();return $.jsx(z3,{ref:e,...g.getStyles("title",{classNames:r,style:c,styles:f,className:a}),...h})});wp.classes=Eo;wp.displayName="@mantine/core/ModalTitle";const XZ={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:hi("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Kr=zt((t,e)=>{const{title:n,withOverlay:r,overlayProps:a,withCloseButton:c,closeButtonProps:f,children:d,radius:h,opened:g,stackId:y,zIndex:v,...E}=vt("Modal",XZ,t),x=KZ(),C=!!n||c,w=x&&y?{closeOnEscape:x.currentId===y,trapFocus:x.currentId===y,zIndex:x.getZIndex(y)}:{},M=r===!1?!1:y&&x?x.currentId===y:g;return A.useEffect(()=>{x&&y&&(g?x.addModal(y,v||hi("modal")):x.removeModal(y))},[g,y,v]),$.jsxs(Ep,{ref:e,radius:h,opened:g,zIndex:x&&y?x.getZIndex(y):v,...E,...w,children:[r&&$.jsx(xp,{visible:M,transitionProps:x&&y?{duration:0}:void 0,...a}),$.jsxs(vp,{radius:h,__hidden:x&&y&&g?y!==x.currentId:!1,children:[C&&$.jsxs(Sp,{children:[n&&$.jsx(wp,{children:n}),c&&$.jsx(bp,{...f})]}),$.jsx(yp,{children:d})]})]})});Kr.classes=Eo;Kr.displayName="@mantine/core/Modal";Kr.Root=Ep;Kr.Overlay=xp;Kr.Content=vp;Kr.Body=yp;Kr.Header=Sp;Kr.Title=wp;Kr.CloseButton=bp;Kr.Stack=G3;var Y3={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const QZ={withCloseButton:!0},ZZ=(t,{radius:e,color:n})=>({root:{"--notification-radius":e===void 0?void 0:Pr(e),"--notification-color":n?ia(n,t):void 0}}),lS=zt((t,e)=>{const n=vt("Notification",QZ,t),{className:r,color:a,radius:c,loading:f,withCloseButton:d,withBorder:h,title:g,icon:y,children:v,onClose:E,closeButtonProps:x,classNames:C,style:w,styles:M,unstyled:L,vars:z,mod:I,loaderProps:F,role:G,attributes:q,...B}=n,k=ie({name:"Notification",classes:Y3,props:n,className:r,style:w,classNames:C,styles:M,unstyled:L,attributes:q,vars:z,varsResolver:ZZ});return $.jsxs(Et,{...k("root"),mod:[{"data-with-icon":!!y||f,"data-with-border":h},I],ref:e,role:G||"alert",...B,children:[y&&!f&&$.jsx("div",{...k("icon"),children:y}),f&&$.jsx(ic,{size:28,color:a,...F,...k("loader")}),$.jsxs("div",{...k("body"),children:[g&&$.jsx("div",{...k("title"),children:g}),$.jsx(Et,{...k("description"),mod:{"data-with-title":!!g},children:v})]}),d&&$.jsx(Sf,{iconSize:16,color:"gray",...x,unstyled:L,onClick:E,...k("closeButton")})]})});lS.classes=Y3;lS.displayName="@mantine/core/Notification";var xf={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd","stripes-animation-vertical":"m_e0fb7a86",label:"m_91e40b74"};const[JZ,V3]=pa("Progress.Root component was not found in tree"),cS=zt((t,e)=>{const{classNames:n,className:r,style:a,styles:c,vars:f,...d}=vt("ProgressLabel",null,t),h=V3();return $.jsx(Et,{ref:e,...h.getStyles("label",{className:r,style:a,classNames:n,styles:c}),...d})});cS.classes=xf;cS.displayName="@mantine/core/ProgressLabel";const WZ=(t,{size:e,radius:n,transitionDuration:r})=>({root:{"--progress-size":Le(e,"progress-size"),"--progress-radius":n===void 0?void 0:Pr(n),"--progress-transition-duration":typeof r=="number"?`${r}ms`:void 0}}),Tp=zt((t,e)=>{const n=vt("ProgressRoot",null,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,autoContrast:g,transitionDuration:y,orientation:v,attributes:E,mod:x,...C}=n,w=ie({name:"Progress",classes:xf,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:h,varsResolver:WZ});return $.jsx(JZ,{value:{getStyles:w,autoContrast:g},children:$.jsx(Et,{ref:e,mod:[{orientation:v},x],...w("root"),...C})})});Tp.classes=xf;Tp.displayName="@mantine/core/ProgressRoot";const tJ={withAria:!0},Ap=zt((t,e)=>{const{classNames:n,className:r,style:a,styles:c,vars:f,value:d,withAria:h,color:g,striped:y,animated:v,mod:E,...x}=vt("ProgressSection",tJ,t),C=V3(),w=Gr(),M=h?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":d,"aria-valuetext":`${d}%`}:{};return $.jsx(Et,{ref:e,...C.getStyles("section",{className:r,classNames:n,styles:c,style:a}),...x,...M,mod:[{striped:y||v,animated:v},E],__vars:{"--progress-section-size":`${d}%`,"--progress-section-color":ia(g,w),"--progress-label-color":TK(C.autoContrast,w)?DR({color:g,theme:w,autoContrast:C.autoContrast}):void 0}})});Ap.classes=xf;Ap.displayName="@mantine/core/ProgressSection";const cc=zt((t,e)=>{const n=vt("Progress",null,t),{value:r,classNames:a,styles:c,vars:f,color:d,striped:h,animated:g,"aria-label":y,...v}=n,{resolvedClassNames:E,resolvedStyles:x}=zR({classNames:a,styles:c,props:n});return $.jsx(Tp,{ref:e,classNames:E,styles:x,vars:f,...v,children:$.jsx(Ap,{value:r,color:d,striped:h,animated:g,"aria-label":y})})});cc.classes=xf;cc.displayName="@mantine/core/Progress";cc.Section=Ap;cc.Root=Tp;cc.Label=cS;const Es=zt((t,e)=>{const n=vt("TextInput",null,t);return $.jsx(pp,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});Es.classes=pp.classes;Es.displayName="@mantine/core/TextInput";const eJ={name:"Editorial",description:"Serif typography with newspaper elegance",defaultColorScheme:"light",head:{link:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:""},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap"}]},primaryColor:"ink",primaryShade:{light:7,dark:3},autoContrast:!0,fontFamily:'"Source Serif 4", "Georgia", "Times New Roman", serif',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'"Playfair Display", "Georgia", "Times New Roman", serif',fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:"2.5rem",lineHeight:"1.15"},h2:{fontSize:"1.75rem",lineHeight:"1.2"},h3:{fontSize:"1.375rem",lineHeight:"1.3"},h4:{fontSize:"1.125rem",lineHeight:"1.4"},h5:{fontSize:"1rem",lineHeight:"1.5"},h6:{fontSize:"0.875rem",lineHeight:"1.5"}}},defaultRadius:"sm",radius:{xs:"2px",sm:"3px",md:"4px",lg:"6px",xl:"8px"},shadows:{xs:"0 1px 2px rgba(0, 0, 0, 0.06)",sm:"0 1px 3px rgba(0, 0, 0, 0.08)",md:"0 2px 6px rgba(0, 0, 0, 0.08)",lg:"0 4px 12px rgba(0, 0, 0, 0.1)",xl:"0 8px 24px rgba(0, 0, 0, 0.1)"},colors:{ink:["#f5f3f0","#e8e4de","#d4cec5","#b5ad9f","#8c8272","#6b6050","#4a4035","#332b22","#1f1812","#0d0a07"],burgundy:["#faf0f0","#f0d4d4","#e0adad","#cc8585","#b35e5e","#944545","#763636","#5a2828","#3d1b1b","#220f0f"],gray:["#faf9f7","#f0eee9","#e0dcd5","#c8c2b8","#a8a194","#8a8273","#6b6456","#504a3f","#36322b","#1e1b17"],dark:["#d5d2cd","#aba59c","#817a6e","#5e584e","#46413a","#36322c","#2a2721","#201d19","#171411","#0d0b09"]},components:{Button:xn.extend({defaultProps:{fw:600},styles:{root:{letterSpacing:"0.02em"}}}),ActionIcon:So.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Paper:vo.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Card:xs.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),TextInput:Es.extend({styles:{input:{border:"1px solid var(--mantine-color-default-border)"}}}),Badge:ya.extend({defaultProps:{fw:600,variant:"outline"},styles:{root:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',letterSpacing:"0.04em",textTransform:"uppercase",fontSize:"0.65rem"}}})}},K3={name:"Midnight",description:"Clean, developer-focused design",primaryColor:"pink",primaryShade:{light:7,dark:8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontWeight:"600",textWrap:"wrap",sizes:{h1:{fontSize:"2rem",lineHeight:"1.25"},h2:{fontSize:"1.5rem",lineHeight:"1.3"},h3:{fontSize:"1.25rem",lineHeight:"1.4"},h4:{fontSize:"1rem",lineHeight:"1.5"},h5:{fontSize:"0.875rem",lineHeight:"1.5"},h6:{fontSize:"0.75rem",lineHeight:"1.5"}}},radius:{xs:"3px",sm:"6px",md:"6px",lg:"8px",xl:"12px"},defaultRadius:"sm",colors:{dark:["#d0d7de","#8b949e","#6e7681","#484f58","#30363d","#21262d","#161b22","#151b23","#0d1117","#010409"],gray:["#f6f8fa","#eaeef2","#d0d7de","#afb8c1","#8c959f","#6e7781","#57606a","#424a53","#32383f","#24292f"],blue:["#ddf4ff","#b6e3ff","#80ccff","#54aeff","#218bff","#0969da","#0550ae","#033d8b","#0a3069","#002155"],green:["#dafbe1","#aceebb","#6fdd8b","#4ac26b","#2da44e","#1a7f37","#116329","#044f1e","#003d16","#002d11"],red:["#ffebe9","#ffcecb","#ffaba8","#ff8182","#fa4549","#cf222e","#a40e26","#82071e","#660018","#4c0014"]}},nJ={name:"Monochrome",description:"Pure black and white — zero color, maximum typography",primaryColor:"mono",primaryShade:{light:8,dark:1},autoContrast:!0,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontWeight:"800",textWrap:"wrap",sizes:{h1:{fontSize:"2.25rem",lineHeight:"1.15"},h2:{fontSize:"1.625rem",lineHeight:"1.25"},h3:{fontSize:"1.25rem",lineHeight:"1.35"},h4:{fontSize:"1.0625rem",lineHeight:"1.45"},h5:{fontSize:"0.9375rem",lineHeight:"1.5"},h6:{fontSize:"0.8125rem",lineHeight:"1.5"}}},defaultRadius:"0",radius:{xs:"0",sm:"0",md:"0",lg:"0",xl:"2px"},shadows:{xs:"0 1px 2px rgba(0, 0, 0, 0.08)",sm:"0 1px 4px rgba(0, 0, 0, 0.1)",md:"0 2px 8px rgba(0, 0, 0, 0.12)",lg:"0 4px 16px rgba(0, 0, 0, 0.14)",xl:"0 8px 32px rgba(0, 0, 0, 0.16)"},colors:{mono:["#f5f5f5","#e0e0e0","#c0c0c0","#a0a0a0","#808080","#606060","#404040","#282828","#141414","#000000"],gray:["#f5f5f5","#e5e5e5","#cccccc","#b0b0b0","#909090","#707070","#555555","#3a3a3a","#252525","#121212"],blue:["#f5f5f5","#e0e0e0","#c0c0c0","#a0a0a0","#808080","#606060","#404040","#282828","#141414","#000000"],green:["#f5f5f5","#e0e0e0","#c0c0c0","#a0a0a0","#808080","#606060","#404040","#282828","#141414","#000000"],red:["#f5f5f5","#e0e0e0","#c0c0c0","#a0a0a0","#808080","#606060","#404040","#282828","#141414","#000000"],dark:["#d0d0d0","#a0a0a0","#707070","#505050","#383838","#282828","#1c1c1c","#141414","#0a0a0a","#000000"]},components:{Button:xn.extend({defaultProps:{fw:700},styles:{root:{border:"2px solid currentColor",letterSpacing:"0.03em",textTransform:"uppercase",fontSize:"0.8125rem"}}}),ActionIcon:So.extend({styles:{root:{border:"2px solid currentColor"}}}),Paper:vo.extend({styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),Card:xs.extend({styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),TextInput:Es.extend({styles:{input:{border:"2px solid var(--mantine-color-default-border)"}}}),Badge:ya.extend({defaultProps:{fw:700,variant:"outline"},styles:{root:{textTransform:"uppercase",letterSpacing:"0.06em",fontSize:"0.65rem",border:"2px solid currentColor"}}})}},rJ={name:"Rosé Pine",description:"Muted pinks and golds on warm dark backgrounds",defaultColorScheme:"dark",primaryColor:"rose",primaryShade:{light:5,dark:4},autoContrast:!0,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontWeight:"600",textWrap:"wrap",sizes:{h1:{fontSize:"2rem",lineHeight:"1.25"},h2:{fontSize:"1.5rem",lineHeight:"1.3"},h3:{fontSize:"1.25rem",lineHeight:"1.4"},h4:{fontSize:"1rem",lineHeight:"1.5"},h5:{fontSize:"0.875rem",lineHeight:"1.5"},h6:{fontSize:"0.75rem",lineHeight:"1.5"}}},defaultRadius:"md",radius:{xs:"4px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.2)",sm:"0 2px 6px rgba(0, 0, 0, 0.2)",md:"0 4px 12px rgba(0, 0, 0, 0.25)",lg:"0 8px 24px rgba(0, 0, 0, 0.3)",xl:"0 12px 36px rgba(0, 0, 0, 0.35)"},colors:{rose:["#faf0f4","#f2d8e3","#eabdd0","#e0a0bb","#d4849f","#c4748f","#b06282","#9a5275","#7a3f5e","#5c2e47"],gold:["#fdf8ec","#f8ecc8","#f2dda0","#eacb72","#e0b94d","#c9a33e","#a98830","#866b24","#634f1a","#403310"],pine:["#ecf5f0","#d0e6da","#add4be","#86c0a0","#62ac84","#4e9670","#3e7a5a","#2f5e44","#20412f","#12251b"],foam:["#edf6f7","#d2e9eb","#b0d9dd","#8bc6cc","#6ab3bb","#569da5","#438088","#33636a","#23454a","#14292c"],red:["#f9eef0","#efd3d8","#e3b2bb","#d68e9b","#c86c7c","#b25566","#944454","#733442","#52252f","#33161d"],gray:["#f4f0f2","#e4dde1","#cec5cb","#b5aab2","#9a8e96","#7e737a","#635a60","#4a4248","#332d31","#1e1a1c"],dark:["#e0d8e0","#b0a6b2","#817786","#615768","#4a3f54","#3a3044","#2a2436","#211e2e","#1a1724","#110f1a"]},components:{Button:xn.extend({defaultProps:{fw:500},styles:{root:{transition:"background-color 0.15s ease, opacity 0.15s ease"}}}),ActionIcon:So.extend({styles:{root:{transition:"background-color 0.15s ease, opacity 0.15s ease"}}}),Paper:vo.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Card:xs.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),TextInput:Es.extend({styles:{input:{border:"1px solid var(--mantine-color-default-border)"}}}),Badge:ya.extend({defaultProps:{fw:500}})}},iJ={name:"Soft Brutalism",description:"Pastel pop with bold borders and offset shadows",head:{link:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:""},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap"}]},primaryColor:"lavender",primaryShade:{light:5,dark:7},autoContrast:!0,cursorType:"pointer",fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:"2rem",lineHeight:"1.25"},h2:{fontSize:"1.5rem",lineHeight:"1.3"},h3:{fontSize:"1.25rem",lineHeight:"1.4"},h4:{fontSize:"1rem",lineHeight:"1.5"},h5:{fontSize:"0.875rem",lineHeight:"1.5"},h6:{fontSize:"0.75rem",lineHeight:"1.5"}}},defaultRadius:"md",radius:{xs:"6px",sm:"8px",md:"12px",lg:"16px",xl:"24px"},shadows:{xs:"2px 2px 0 0 rgba(100, 80, 140, 0.15)",sm:"3px 3px 0 0 rgba(100, 80, 140, 0.2)",md:"4px 4px 0 0 rgba(100, 80, 140, 0.2)",lg:"6px 6px 0 0 rgba(100, 80, 140, 0.25)",xl:"8px 8px 0 0 rgba(100, 80, 140, 0.3)"},colors:{lavender:["#f3f0fa","#e4dcf4","#d1c4e9","#b4a7d6","#9a8bc4","#7f6cb0","#6a549e","#543f87","#3d2d6b","#2a1d52"],peach:["#fef3ec","#fce4d0","#f9d0ae","#f4b886","#f4a261","#e68a42","#c67234","#a35a28","#6b3a1a","#4a2710"],mint:["#ecfaf0","#d4f2dc","#b3e8c2","#8edba4","#81c995","#5ab874","#42a05c","#2e8548","#1a5c2e","#0f3f1e"],coral:["#fef0ef","#fcd9d7","#f8b8b4","#f29490","#e97171","#d65454","#b83e3e","#962d2d","#6b1f1f","#4a1414"],gray:["#faf8f6","#f0ece8","#ddd7d0","#c4bbb2","#a89e95","#8c8279","#6e655d","#524b44","#3a342f","#24211e"],dark:["#d4d0dc","#a9a2b5","#7e7690","#5c546e","#443c56","#342d45","#2a2339","#1e1a2e","#161224","#0f0c1a"]},components:{Button:xn.extend({defaultProps:{fw:600},styles:{root:{border:"2px solid currentColor",boxShadow:"3px 3px 0 0 rgba(100, 80, 140, 0.2)",transition:"box-shadow 0.15s ease, transform 0.15s ease"}}}),ActionIcon:So.extend({styles:{root:{border:"2px solid currentColor",boxShadow:"2px 2px 0 0 rgba(100, 80, 140, 0.15)"}}}),Paper:vo.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),Card:xs.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),TextInput:Es.extend({styles:{input:{border:"2px solid var(--mantine-color-default-border)",transition:"box-shadow 0.15s ease, border-color 0.15s ease"}}}),Badge:ya.extend({defaultProps:{fw:600},styles:{root:{border:"2px solid currentColor"}}})}},oJ={name:"Terminal",description:"Green phosphor on black — monospace hacker aesthetic",defaultColorScheme:"dark",primaryColor:"terminal",primaryShade:{light:5,dark:4},autoContrast:!0,fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:"1.75rem",lineHeight:"1.3"},h2:{fontSize:"1.375rem",lineHeight:"1.35"},h3:{fontSize:"1.125rem",lineHeight:"1.4"},h4:{fontSize:"1rem",lineHeight:"1.5"},h5:{fontSize:"0.875rem",lineHeight:"1.5"},h6:{fontSize:"0.75rem",lineHeight:"1.5"}}},defaultRadius:"0",radius:{xs:"0",sm:"0",md:"0",lg:"2px",xl:"4px"},shadows:{xs:"none",sm:"none",md:"0 0 8px rgba(0, 255, 65, 0.08)",lg:"0 0 16px rgba(0, 255, 65, 0.1)",xl:"0 0 24px rgba(0, 255, 65, 0.12)"},colors:{terminal:["#e6fff0","#b3ffd1","#80ffb3","#4dff94","#00ff41","#00d636","#00ad2b","#008521","#005c17","#00330d"],amber:["#fff8e6","#ffecb3","#ffe080","#ffd54d","#ffca28","#d4a520","#aa8418","#806310","#554208","#2b2104"],red:["#ffe6e6","#ffb3b3","#ff8080","#ff4d4d","#ff1a1a","#d41515","#aa1010","#800c0c","#550808","#2b0404"],gray:["#e8eaed","#c8cdd3","#a4aab3","#808892","#5f6872","#474f58","#363c44","#282d33","#1c2026","#12151a"],dark:["#c9cdd2","#8b9198","#5c636b","#3d444c","#2b3138","#1e242b","#151a20","#0e1216","#080c0f","#020303"]},components:{Button:xn.extend({defaultProps:{fw:600},styles:{root:{border:"1px solid currentColor",textTransform:"uppercase",letterSpacing:"0.05em",fontSize:"0.8125rem"}}}),ActionIcon:So.extend({styles:{root:{border:"1px solid currentColor"}}}),Paper:vo.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Card:xs.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),TextInput:Es.extend({styles:{input:{border:"1px solid var(--mantine-color-default-border)",fontFamily:"inherit"}}}),Badge:ya.extend({defaultProps:{fw:600},styles:{root:{border:"1px solid currentColor",textTransform:"uppercase",letterSpacing:"0.05em"}}})}},xb=di({name:"alepha.ui.themeList",schema:O.array(O.json()),default:[dR,K3,iJ,oJ,eJ,rJ,nJ]}),ro=class ro{alepha=Ot(Ke);cookie=Hm({name:"theme",schema:hu.schema,ttl:[1,"year"]});overridesCookie=Hm({name:"themeOverrides",schema:pu.schema,ttl:[1,"year"]});head=A1(()=>{const e=this.getTheme();return!e||!e.name?{}:{htmlAttributes:{"data-theme":this.slugify(e.name)},...e.head}});setTheme(e){if(!this.alepha.store.get(xb)[e])throw new _t(`Theme with index ${e} not found`);this.cookie.set({index:e}),this.alepha.store.set(hu,{index:e}),this.alepha.isBrowser()&&this.alepha.inject(ra).refreshGlobalHead()}slugify(e){return e.toLowerCase().replace(/\s+/g,"-")}getTheme(){const e=this.getThemeIndex(),n=this.alepha.store.get(xb),r=n[e]||n[0]||dR,a=this.getThemeOverrides();if(!a.primaryColor&&!a.radius&&!a.fontFamily&&!a.fontSize&&!a.scale)return r;const c={...r,...a.primaryColor&&{primaryColor:a.primaryColor},...a.radius&&{defaultRadius:a.radius},...a.fontFamily&&{fontFamily:a.fontFamily},...a.scale&&a.scale!=="md"&&{scale:ro.SCALE_VALUES[a.scale]??1}};if(a.fontSize&&a.fontSize!=="md"){const f=ro.FONT_SIZE_MULTIPLIERS[a.fontSize]??1,d=r.fontSizes??ro.DEFAULT_FONT_SIZES;c.fontSizes=Object.fromEntries(Object.entries(d).map(([h,g])=>[h,`${(Number.parseFloat(String(g))*f).toFixed(4)}rem`]))}return c}setThemeOverrides(e){this.overridesCookie.set(e),this.alepha.store.set(pu,e),this.alepha.isBrowser()&&this.alepha.inject(ra).refreshGlobalHead()}getThemeOverrides(){try{return this.overridesCookie.get()??this.alepha.store.get(pu)??{}}catch{return this.alepha.store.get(pu)??{}}}resetThemeOverrides(){this.setThemeOverrides({})}getThemeIndex(){try{return this.cookie.get()?.index??this.alepha.store.get(hu)?.index??0}catch{return this.alepha.store.get(hu)?.index??0}}};o(ro,"ThemeProvider"),dn(ro,"FONT_SIZE_MULTIPLIERS",{xs:.85,sm:.925,md:1,lg:1.1,xl:1.25}),dn(ro,"SCALE_VALUES",{xs:.85,sm:.925,md:1,lg:1.1,xl:1.25}),dn(ro,"DEFAULT_FONT_SIZES",{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"});let Bu=ro;const uS=A.createContext(null);uS.displayName="@mantine/modals/ModalsContext";function sJ(){const t=A.useContext(uS);if(!t)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return t}o(sJ,"useModals");function aJ({id:t,cancelProps:e,confirmProps:n,labels:r={cancel:"",confirm:""},closeOnConfirm:a=!0,closeOnCancel:c=!0,groupProps:f,onCancel:d,onConfirm:h,children:g}){const{cancel:y,confirm:v}=r,E=sJ(),x=o(w=>{typeof e?.onClick=="function"&&e?.onClick(w),typeof d=="function"&&d(),c&&E.closeModal(t)},"handleCancel"),C=o(w=>{typeof n?.onClick=="function"&&n?.onClick(w),typeof h=="function"&&h(),a&&E.closeModal(t)},"handleConfirm");return $.jsxs($.Fragment,{children:[g&&$.jsx(Et,{mb:"md",children:g}),$.jsxs(W1,{mt:g?0:"md",justify:"flex-end",...f,children:[$.jsx(xn,{variant:"default",...e,onClick:x,children:e?.children||y}),$.jsx(xn,{...n,onClick:C,children:n?.children||v})]})]})}o(aJ,"ConfirmModal");const[lJ,ba]=IV("mantine-modals"),cJ=o(t=>{const e=t.modalId||ns();return ba("openModal")({...t,modalId:e}),e},"openModal"),uJ=o(t=>{const e=t.modalId||ns();return ba("openConfirmModal")({...t,modalId:e}),e},"openConfirmModal"),fJ=o(t=>{const e=t.modalId||ns();return ba("openContextModal")({...t,modalId:e}),e},"openContextModal"),dJ=ba("closeModal"),mJ=ba("closeAllModals"),hJ=o(t=>ba("updateModal")(t),"updateModal"),pJ=o(t=>ba("updateContextModal")(t),"updateContextModal"),y0={open:cJ,close:dJ,closeAll:mJ,openConfirmModal:uJ,openContextModal:fJ,updateModal:hJ,updateContextModal:pJ};function fC(t,e){e&&t.type==="confirm"&&t.props.onCancel?.(),t.props.onClose?.()}o(fC,"handleCloseModal");function gJ(t,e){switch(e.type){case"OPEN":return{current:e.modal,modals:[...t.modals,e.modal]};case"CLOSE":{const n=t.modals.find(a=>a.id===e.modalId);if(!n)return t;fC(n,e.canceled);const r=t.modals.filter(a=>a.id!==e.modalId);return{current:r[r.length-1]||t.current,modals:r}}case"CLOSE_ALL":return t.modals.length?(t.modals.concat().reverse().forEach(n=>{fC(n,e.canceled)}),{current:t.current,modals:[]}):t;case"UPDATE":{const{modalId:n,newProps:r}=e,a=t.modals.map(f=>f.id!==n?f:f.type==="content"||f.type==="confirm"?{...f,props:{...f.props,...r}}:f.type==="context"?{...f,props:{...f.props,...r,innerProps:{...f.props.innerProps,...r.innerProps}}}:f),c=t.current?.id===n&&a.find(f=>f.id===n)||t.current;return{...t,modals:a,current:c}}default:return t}}o(gJ,"modalsReducer");function yJ(t){if(!t)return{confirmProps:{},modalProps:{}};const{id:e,children:n,onCancel:r,onConfirm:a,closeOnConfirm:c,closeOnCancel:f,cancelProps:d,confirmProps:h,groupProps:g,labels:y,...v}=t;return{confirmProps:{id:e,children:n,onCancel:r,onConfirm:a,closeOnConfirm:c,closeOnCancel:f,cancelProps:d,confirmProps:h,groupProps:g,labels:y},modalProps:{id:e,...v}}}o(yJ,"separateConfirmModalProps");function bJ({children:t,modalProps:e,labels:n,modals:r}){const[a,c]=A.useReducer(gJ,{modals:[],current:null}),f=A.useRef(a);f.current=a;const d=A.useCallback(z=>{c({type:"CLOSE_ALL",canceled:z})},[f,c]),h=A.useCallback(({modalId:z,...I})=>{const F=z||ns();return c({type:"OPEN",modal:{id:F,type:"content",props:I}}),F},[c]),g=A.useCallback(({modalId:z,...I})=>{const F=z||ns();return c({type:"OPEN",modal:{id:F,type:"confirm",props:I}}),F},[c]),y=A.useCallback((z,{modalId:I,...F})=>{const G=I||ns();return c({type:"OPEN",modal:{id:G,type:"context",props:F,ctx:z}}),G},[c]),v=A.useCallback((z,I)=>{c({type:"CLOSE",modalId:z,canceled:I})},[f,c]),E=A.useCallback(({modalId:z,...I})=>{c({type:"UPDATE",modalId:z,newProps:I})},[c]),x=A.useCallback(({modalId:z,...I})=>{c({type:"UPDATE",modalId:z,newProps:I})},[c]);lJ({openModal:h,openConfirmModal:g,openContextModal:o(({modal:z,...I})=>y(z,I),"openContextModal"),closeModal:v,closeContextModal:v,closeAllModals:d,updateModal:E,updateContextModal:x});const C={modalProps:e||{},modals:a.modals,openModal:h,openConfirmModal:g,openContextModal:y,closeModal:v,closeContextModal:v,closeAll:d,updateModal:E,updateContextModal:x},w=o(()=>{const z=f.current.current;switch(z?.type){case"context":{const{innerProps:I,...F}=z.props,G=r[z.ctx];return{modalProps:F,content:$.jsx(G,{innerProps:I,context:C,id:z.id})}}case"confirm":{const{modalProps:I,confirmProps:F}=yJ(z.props);return{modalProps:I,content:$.jsx(aJ,{...F,id:z.id,labels:z.props.labels||n})}}case"content":{const{children:I,...F}=z.props;return{modalProps:F,content:I}}default:return{modalProps:{},content:null}}},"getCurrentModal"),{modalProps:M,content:L}=w();return $.jsxs(uS.Provider,{value:C,children:[$.jsx(Kr,{zIndex:hi("modal")+1,...e,...M,opened:a.modals.length>0,onClose:o(()=>v(a.current?.id),"onClose"),children:L}),t]})}o(bJ,"ModalsProvider");const vJ=o(({options:t,onClose:e})=>$.jsxs($.Fragment,{children:[t?.message&&$.jsx(Ss,{mb:"md",children:t.message}),$.jsx(sc,{justify:"flex-end",children:$.jsx(xn,{onClick:e,children:t?.okLabel||"OK"})})]}),"AlertDialog"),SJ=o(({options:t,onConfirm:e})=>$.jsxs($.Fragment,{children:[t?.message&&$.jsx(Ss,{mb:"md",children:t.message}),$.jsxs(sc,{justify:"flex-end",children:[$.jsx(xn,{variant:"subtle",onClick:o(()=>e(!1),"onClick"),children:t?.cancelLabel||"Cancel"}),$.jsx(xn,{color:t?.confirmColor||"blue",onClick:o(()=>e(!0),"onClick"),children:t?.confirmLabel||"Confirm"})]})]}),"ConfirmDialog"),xJ=o(({options:t,onSubmit:e})=>{const[n,r]=A.useState(t?.defaultValue||""),a=A.useRef(null);A.useEffect(()=>{a.current?.focus()},[]);const c=o(()=>{(!t?.required||n.trim())&&e(n)},"handleSubmit"),f=o(d=>{d.key==="Enter"&&c()},"handleKeyDown");return $.jsxs($.Fragment,{children:[t?.message&&$.jsx(Ss,{mb:"md",children:t.message}),$.jsx(Es,{ref:a,label:t?.label,placeholder:t?.placeholder,value:n,onChange:o(d=>r(d.currentTarget.value),"onChange"),onKeyDown:f,required:t?.required,mb:"md"}),$.jsxs(sc,{justify:"flex-end",children:[$.jsx(xn,{variant:"subtle",onClick:o(()=>e(null),"onClick"),children:t?.cancelLabel||"Cancel"}),$.jsx(xn,{onClick:c,disabled:t?.required&&!n.trim(),children:t?.submitLabel||"OK"})]})]})},"PromptDialog"),wx=class wx{options={default:{centered:!0,withCloseButton:!0,size:"md",overlayProps:{backgroundOpacity:.55,blur:3},transitionProps:{transition:"pop",duration:200}}};alert(e){return new Promise(n=>{let r=!1;const a=o(()=>{r||(r=!0,n())},"done"),c=this.open({...e,title:e?.title||"Alert",onClose:a,content:$.jsx(vJ,{options:e,onClose:o(()=>{this.close(c),a()},"onClose")})})})}confirm(e){return new Promise(n=>{let r=!1;const a=o(f=>{r||(r=!0,n(f))},"done"),c=this.open({...e,title:e?.title||"Confirm",closeOnClickOutside:!1,closeOnEscape:!1,onClose:o(()=>a(!1),"onClose"),content:$.jsx(SJ,{options:e,onConfirm:o(f=>{this.close(c),a(f)},"onConfirm")})})})}prompt(e){return new Promise(n=>{let r=!1;const a=o(f=>{r||(r=!0,n(f))},"done"),c=this.open({...e,title:e?.title||"Input",closeOnClickOutside:!1,closeOnEscape:!1,onClose:o(()=>a(null),"onClose"),content:$.jsx(xJ,{options:e,onSubmit:o(f=>{this.close(c),a(f)},"onSubmit")})})})}open(e){return y0.open({...this.options.default,...e,children:e?.content||e?.message})}close(e){e?y0.close(e):y0.closeAll()}};o(wx,"DialogService");let Xm=wx;function fS(t){let e=t,n=!1;const r=new Set;return{getState(){return e},updateState(a){e=typeof a=="function"?a(e):a},setState(a){this.updateState(a),r.forEach(c=>c(e))},initialize(a){n||(e=a,n=!0)},subscribe(a){return r.add(a),()=>r.delete(a)}}}o(fS,"createStore");function dS(t){return A.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}o(dS,"useStore");function EJ(t,e,n){const r=[],a=[],c={};for(const f of t){const d=f.position||e;c[d]=c[d]||0,c[d]+=1,c[d]<=n?a.push(f):r.push(f)}return{notifications:a,queue:r}}o(EJ,"getDistributedNotifications");const wJ=o(()=>fS({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),"createNotificationsStore"),va=wJ(),TJ=o((t=va)=>dS(t),"useNotifications");function uc(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),a=EJ(r,n.defaultPosition,n.limit);t.setState({notifications:a.notifications,queue:a.queue,limit:n.limit,defaultPosition:n.defaultPosition})}o(uc,"updateNotificationsState");function AJ(t,e=va){const n=t.id||ns();return uc(e,r=>t.id&&r.some(a=>a.id===t.id)?r:[...r,{...t,id:n}]),n}o(AJ,"showNotification");function X3(t,e=va){return uc(e,n=>n.filter(r=>r.id===t?(r.onClose?.(r),!1):!0)),t}o(X3,"hideNotification");function CJ(t,e=va){return uc(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}o(CJ,"updateNotification");function $J(t=va){uc(t,()=>[])}o($J,"cleanNotifications");function MJ(t=va){uc(t,e=>e.slice(0,t.getState().limit))}o(MJ,"cleanNotificationsQueue");const ls={show:AJ,hide:X3,update:CJ,clean:$J,cleanQueue:MJ,updateState:uc};function Eb(t,e){return Eb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Eb(t,e)}o(Eb,"_setPrototypeOf");function Q3(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Eb(t,e)}o(Q3,"_inheritsLoose");const dC={disabled:!1},Qm=Dr.createContext(null);var OJ=o(function(e){return e.scrollTop},"forceReflow"),yu="unmounted",ks="exited",Fs="entering",ml="entered",wb="exiting",wo=(function(t){Q3(e,t);function e(r,a){var c;c=t.call(this,r,a)||this;var f=a,d=f&&!f.isMounting?r.enter:r.appear,h;return c.appearStatus=null,r.in?d?(h=ks,c.appearStatus=Fs):h=ml:r.unmountOnExit||r.mountOnEnter?h=yu:h=ks,c.state={status:h},c.nextCallback=null,c}o(e,"Transition2"),e.getDerivedStateFromProps=o(function(a,c){var f=a.in;return f&&c.status===yu?{status:ks}:null},"getDerivedStateFromProps");var n=e.prototype;return n.componentDidMount=o(function(){this.updateStatus(!0,this.appearStatus)},"componentDidMount"),n.componentDidUpdate=o(function(a){var c=null;if(a!==this.props){var f=this.state.status;this.props.in?f!==Fs&&f!==ml&&(c=Fs):(f===Fs||f===ml)&&(c=wb)}this.updateStatus(!1,c)},"componentDidUpdate"),n.componentWillUnmount=o(function(){this.cancelNextCallback()},"componentWillUnmount"),n.getTimeouts=o(function(){var a=this.props.timeout,c,f,d;return c=f=d=a,a!=null&&typeof a!="number"&&(c=a.exit,f=a.enter,d=a.appear!==void 0?a.appear:f),{exit:c,enter:f,appear:d}},"getTimeouts"),n.updateStatus=o(function(a,c){if(a===void 0&&(a=!1),c!==null)if(this.cancelNextCallback(),c===Fs){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:gu.findDOMNode(this);f&&OJ(f)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ks&&this.setState({status:yu})},"updateStatus"),n.performEnter=o(function(a){var c=this,f=this.props.enter,d=this.context?this.context.isMounting:a,h=this.props.nodeRef?[d]:[gu.findDOMNode(this),d],g=h[0],y=h[1],v=this.getTimeouts(),E=d?v.appear:v.enter;if(!a&&!f||dC.disabled){this.safeSetState({status:ml},function(){c.props.onEntered(g)});return}this.props.onEnter(g,y),this.safeSetState({status:Fs},function(){c.props.onEntering(g,y),c.onTransitionEnd(E,function(){c.safeSetState({status:ml},function(){c.props.onEntered(g,y)})})})},"performEnter"),n.performExit=o(function(){var a=this,c=this.props.exit,f=this.getTimeouts(),d=this.props.nodeRef?void 0:gu.findDOMNode(this);if(!c||dC.disabled){this.safeSetState({status:ks},function(){a.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:wb},function(){a.props.onExiting(d),a.onTransitionEnd(f.exit,function(){a.safeSetState({status:ks},function(){a.props.onExited(d)})})})},"performExit"),n.cancelNextCallback=o(function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},"cancelNextCallback"),n.safeSetState=o(function(a,c){c=this.setNextCallback(c),this.setState(a,c)},"safeSetState"),n.setNextCallback=o(function(a){var c=this,f=!0;return this.nextCallback=function(d){f&&(f=!1,c.nextCallback=null,a(d))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},"setNextCallback"),n.onTransitionEnd=o(function(a,c){this.setNextCallback(c);var f=this.props.nodeRef?this.props.nodeRef.current:gu.findDOMNode(this),d=a==null&&!this.props.addEndListener;if(!f||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],g=h[0],y=h[1];this.props.addEndListener(g,y)}a!=null&&setTimeout(this.nextCallback,a)},"onTransitionEnd"),n.render=o(function(){var a=this.state.status;if(a===yu)return null;var c=this.props,f=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var d=P3(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Dr.createElement(Qm.Provider,{value:null},typeof f=="function"?f(a,d):Dr.cloneElement(Dr.Children.only(f),d))},"render"),e})(Dr.Component);wo.contextType=Qm;wo.propTypes={};function ul(){}o(ul,"noop");wo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ul,onEntering:ul,onEntered:ul,onExit:ul,onExiting:ul,onExited:ul};wo.UNMOUNTED=yu;wo.EXITED=ks;wo.ENTERING=Fs;wo.ENTERED=ml;wo.EXITING=wb;function RJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}o(RJ,"_assertThisInitialized");function mS(t,e){var n=o(function(c){return e&&A.isValidElement(c)?e(c):c},"mapper"),r=Object.create(null);return t&&A.Children.map(t,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}o(mS,"getChildMapping");function NJ(t,e){t=t||{},e=e||{};function n(y){return y in e?e[y]:t[y]}o(n,"getValueForKey");var r=Object.create(null),a=[];for(var c in t)c in e?a.length&&(r[c]=a,a=[]):a.push(c);var f,d={};for(var h in e){if(r[h])for(f=0;f<r[h].length;f++){var g=r[h][f];d[r[h][f]]=n(g)}d[h]=n(h)}for(f=0;f<a.length;f++)d[a[f]]=n(a[f]);return d}o(NJ,"mergeChildMappings");function Vs(t,e,n){return n[e]!=null?n[e]:t.props[e]}o(Vs,"getProp");function _J(t,e){return mS(t.children,function(n){return A.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Vs(n,"appear",t),enter:Vs(n,"enter",t),exit:Vs(n,"exit",t)})})}o(_J,"getInitialChildMapping");function DJ(t,e,n){var r=mS(t.children),a=NJ(e,r);return Object.keys(a).forEach(function(c){var f=a[c];if(A.isValidElement(f)){var d=c in e,h=c in r,g=e[c],y=A.isValidElement(g)&&!g.props.in;h&&(!d||y)?a[c]=A.cloneElement(f,{onExited:n.bind(null,f),in:!0,exit:Vs(f,"exit",t),enter:Vs(f,"enter",t)}):!h&&d&&!y?a[c]=A.cloneElement(f,{in:!1}):h&&d&&A.isValidElement(g)&&(a[c]=A.cloneElement(f,{onExited:n.bind(null,f),in:g.props.in,exit:Vs(f,"exit",t),enter:Vs(f,"enter",t)}))}}),a}o(DJ,"getNextChildMapping");var jJ=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},IJ={component:"div",childFactory:o(function(e){return e},"childFactory")},Qo=(function(t){Q3(e,t);function e(r,a){var c;c=t.call(this,r,a)||this;var f=c.handleExited.bind(RJ(c));return c.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},c}o(e,"TransitionGroup2");var n=e.prototype;return n.componentDidMount=o(function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},"componentDidMount"),n.componentWillUnmount=o(function(){this.mounted=!1},"componentWillUnmount"),e.getDerivedStateFromProps=o(function(a,c){var f=c.children,d=c.handleExited,h=c.firstRender;return{children:h?_J(a,d):DJ(a,f,d),firstRender:!1}},"getDerivedStateFromProps"),n.handleExited=o(function(a,c){var f=mS(this.props.children);a.key in f||(a.props.onExited&&a.props.onExited(c),this.mounted&&this.setState(function(d){var h=Sb({},d.children);return delete h[a.key],{children:h}}))},"handleExited"),n.render=o(function(){var a=this.props,c=a.component,f=a.childFactory,d=P3(a,["component","childFactory"]),h=this.state.contextValue,g=jJ(this.state.children).map(f);return delete d.appear,delete d.enter,delete d.exit,c===null?Dr.createElement(Qm.Provider,{value:h},g):Dr.createElement(Qm.Provider,{value:h},Dr.createElement(c,d,g))},"render"),e})(Dr.Component);Qo.propTypes={};Qo.defaultProps=IJ;const Z3=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function LJ(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),Z3.reduce((n,r)=>(n[r]=[],n),{}))}o(LJ,"getGroupedNotifications");const mC={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},zJ={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function BJ({state:t,maxHeight:e,position:n,transitionDuration:r}){const[a,c]=n.split("-"),f=c==="center"?`${a}-center`:c,d={opacity:0,maxHeight:e,transform:mC[f],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},h={opacity:1,transform:zJ[f]},g={opacity:0,maxHeight:0,transform:mC[f]};return{...d,...{entering:h,entered:h,exiting:g,exited:g}[t]}}o(BJ,"getNotificationStateStyles");function UJ(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}o(UJ,"getAutoClose");const J3=A.forwardRef(({data:t,onHide:e,autoClose:n,...r},a)=>{const{autoClose:c,message:f,...d}=t,h=UJ(n,t.autoClose),g=A.useRef(-1),y=o(()=>window.clearTimeout(g.current),"cancelAutoClose"),v=o(()=>{e(t.id),y()},"handleHide"),E=o(()=>{typeof h=="number"&&(g.current=window.setTimeout(v,h))},"handleAutoClose");return A.useEffect(()=>{t.onOpen?.(t)},[]),A.useEffect(()=>(E(),y),[h]),$.jsx(lS,{...r,...d,onClose:v,ref:a,onMouseEnter:y,onMouseLeave:E,children:f})});J3.displayName="@mantine/notifications/NotificationContainer";var W3={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const HJ=wo,kJ={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:hi("overlay"),store:va,withinPortal:!0},FJ=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e?.toString(),"--notifications-container-width":ut(n)}}),To=zt((t,e)=>{const n=vt("Notifications",kJ,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,position:g,autoClose:y,transitionDuration:v,containerWidth:E,notificationMaxHeight:x,limit:C,zIndex:w,store:M,portalProps:L,withinPortal:z,...I}=n,F=Gr(),G=TJ(M),q=EV(),B=M1(),k=A.useRef({}),et=A.useRef(0),ot=(F.respectReducedMotion?B:!1)?1:v,ft=ie({name:"Notifications",classes:W3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,vars:h,varsResolver:FJ});A.useEffect(()=>{M?.updateState(J=>({...J,limit:C||5,defaultPosition:g}))},[C,g]),np(()=>{G.notifications.length>et.current&&setTimeout(()=>q(),0),et.current=G.notifications.length},[G.notifications]);const mt=LJ(G.notifications,g),V=Z3.reduce((J,N)=>(J[N]=mt[N].map(({style:U,...j})=>$.jsx(HJ,{timeout:ot,onEnter:o(()=>k.current[j.id].offsetHeight,"onEnter"),nodeRef:{current:k.current[j.id]},children:o(tt=>$.jsx(J3,{ref:o(it=>{it&&(k.current[j.id]=it)},"ref"),data:j,onHide:o(it=>X3(it,M),"onHide"),autoClose:y,...ft("notification",{style:{...BJ({state:tt,position:N,transitionDuration:ot,maxHeight:x}),...U}})}),"children")},j.id)),J),{});return $.jsxs(up,{withinPortal:z,...L,children:[$.jsx(Et,{...ft("root"),"data-position":"top-center",ref:e,...I,children:$.jsx(Qo,{children:V["top-center"]})}),$.jsx(Et,{...ft("root"),"data-position":"top-left",...I,children:$.jsx(Qo,{children:V["top-left"]})}),$.jsx(Et,{...ft("root",{className:Pm.classNames.fullWidth}),"data-position":"top-right",...I,children:$.jsx(Qo,{children:V["top-right"]})}),$.jsx(Et,{...ft("root",{className:Pm.classNames.fullWidth}),"data-position":"bottom-right",...I,children:$.jsx(Qo,{children:V["bottom-right"]})}),$.jsx(Et,{...ft("root"),"data-position":"bottom-left",...I,children:$.jsx(Qo,{children:V["bottom-left"]})}),$.jsx(Et,{...ft("root"),"data-position":"bottom-center",...I,children:$.jsx(Qo,{children:V["bottom-center"]})})]})});To.classes=W3;To.displayName="@mantine/notifications/Notifications";To.show=ls.show;To.hide=ls.hide;To.update=ls.update;To.clean=ls.clean;To.cleanQueue=ls.cleanQueue;To.updateState=ls.updateState;var qJ={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const pi=o((t,e,n,r)=>{const a=A.forwardRef(({color:c="currentColor",size:f=24,stroke:d=2,title:h,className:g,children:y,...v},E)=>A.createElement("svg",{ref:E,...qJ[t],width:f,height:f,className:["tabler-icon",`tabler-icon-${e}`,g].join(" "),strokeWidth:d,stroke:c,...v},[h&&A.createElement("title",{key:"svg-title"},h),...r.map(([x,C])=>A.createElement(x,C)),...Array.isArray(y)?y:[y]]));return a.displayName=`${n}`,a},"createReactComponent");const PJ=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],GJ=pi("outline","alert-triangle","AlertTriangle",PJ);const YJ=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],VJ=pi("outline","check","Check",YJ);const KJ=[["path",{d:"M10 13a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M13.45 11.55l2.05 -2.05",key:"svg-1"}],["path",{d:"M6.4 20a9 9 0 1 1 11.2 0l-11.2 0",key:"svg-2"}]],XJ=pi("outline","dashboard","Dashboard",KJ);const QJ=[["path",{d:"M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 6v6a8 3 0 0 0 16 0v-6",key:"svg-1"}],["path",{d:"M4 12v6a8 3 0 0 0 16 0v-6",key:"svg-2"}]],hC=pi("outline","database","Database",QJ);const ZJ=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],JJ=pi("outline","info-circle","InfoCircle",ZJ);const WJ=[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]],tW=pi("outline","list","List",WJ);const eW=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],nW=pi("outline","search","Search",eW);const rW=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],pC=pi("outline","settings","Settings",rW);const iW=[["path",{d:"M3 17a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-0"}],["path",{d:"M15 17a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-1"}],["path",{d:"M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-2"}],["path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1",key:"svg-3"}],["path",{d:"M12 9l0 3",key:"svg-4"}]],oW=pi("outline","sitemap","Sitemap",iW);const sW=[["path",{d:"M14 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-0"}],["path",{d:"M14 4a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-1"}],["path",{d:"M6 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-2"}],["path",{d:"M22 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-3"}],["path",{d:"M13.5 5.5l5 5",key:"svg-4"}],["path",{d:"M5.5 13.5l5 5",key:"svg-5"}],["path",{d:"M13.5 18.5l5 -5",key:"svg-6"}],["path",{d:"M10.5 5.5l-5 5",key:"svg-7"}]],aW=pi("outline","topology-ring","TopologyRing",sW);const lW=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],cW=pi("outline","x","X",lW),Tx=class Tx{raw=ls;options={default:{radius:"md",withBorder:!0,withCloseButton:!0,autoClose:5e3,position:"top-center"}};show(e){ls.show({...this.options.default,...e})}info(e){typeof e=="string"&&(e={message:e}),this.show({color:"blue",icon:$.jsx(JJ,{size:20}),title:"Info",message:"Information notification",...e})}success(e){typeof e=="string"&&(e={message:e}),this.show({color:"green",icon:$.jsx(VJ,{size:16}),title:"Success",message:"Operation completed successfully",...e})}warning(e){typeof e=="string"&&(e={message:e}),this.show({color:"yellow",icon:$.jsx(GJ,{size:20}),title:"Warning",message:"Please review this warning",...e})}danger(e){typeof e=="string"&&(e={message:e}),this.show({color:"red",icon:$.jsx(cW,{size:20}),title:"Error",message:"An error occurred",...e})}};o(Tx,"ToastService");let Uu=Tx;const Ax=class Ax{fetch(e,n={}){throw new _t("Fetch is not available for this environment.")}render(e,n={}){throw new _t("Render is not available for this environment.")}};o(Ax,"ReactPageService");let Zm=Ax;const mn=o(t=>cs(Jm,t),"$page"),Cx=class Cx extends ni{reactPageService=Ot(Zm);onInit(){this.options.static&&(this.options.use??=[],this.options.use.some(e=>e[Ks]?.name==="$cache")||this.options.use.push(Zh({name:`page:${this.name}`,provider:"memory",ttl:[1,"week"]})))}get name(){return this.options.name??this.config.propertyKey}async render(e){return this.reactPageService.render(this.name,e)}async fetch(e){return this.reactPageService.fetch(this.options.path||"",e)}};o(Cx,"PagePrimitive");let Jm=Cx;mn[Un]=Jm;const $x=class $x{routePathRegex=/^\/[A-Za-z0-9._~!$&%'()*+,;=:@{}?/-]*$/;tree={children:{}};cache=new Map;match(e){if(this.cache.has(e))return this.cache.get(e);const n=this.mapParams(this.createRouteMatch(e));return this.cache.set(e,n),n}test(e){if(!this.routePathRegex.test(e))throw new _t(`Route '${e}' is not valid`)}push(e){const n=e.path.replaceAll("//","/");this.test(n);const r=this.createParts(n);let a=this.tree;for(let c=0;c<r.length;c++){const f=c===r.length-1;let d=r[c].toLowerCase();if(d==="*"&&f){a.wildcard={route:e};break}if(d.includes("*"))throw new _t(`Route '${n}' has an invalid wildcard syntax`);if(d.includes("{")||d.includes("}"))if(d.startsWith("{")&&d.endsWith("}"))d=`:${d.slice(1,-1)}`;else throw new _t(`Route '${n}' has an invalid param syntax`);if(d.startsWith(":")){const h=r[c].slice(1).replaceAll("}","");if(!h)throw new _t(`Route '${n}' has an empty param name`);a.param?a.param.name!==h&&(e.mapParams??={},e.mapParams[a.param.name]=h):a.param={name:h,children:{}},f&&(a.param.route=e),a=a.param;continue}a.children[d]||(a.children[d]={children:{}}),f&&(a.children[d].route=e),a=a.children[d]}}createRouteMatch(e){if(e[0]!=="/")throw new _t(`Path '${e}' must start with "/"`);const n=this.createParts(e);let r=this.tree,a;const c={};for(let f=0;f<n.length;f++){const d=n[f].toLowerCase();if(r.children[d])r.wildcard&&(a=r.wildcard),r=r.children[d];else if(r.param)r.wildcard&&(a=r.wildcard),c[r.param.name]=n[f],r=r.param;else return r.wildcard?(c["*"]=n.slice(f).join("/"),{route:r.wildcard.route,params:c}):{route:a?.route,params:c}}return r?.route?{route:r.route,params:c}:r.wildcard?{route:r.wildcard.route,params:c}:{route:a?.route,params:c}}mapParams(e){if(e.route?.mapParams&&e.params)for(const[n,r]of Object.entries(e.route.mapParams))e.params[n]&&(e.params[r]=e.params[n],delete e.params[n]);return e}createParts(e){let n=e.split("?")[0].replaceAll("//","/");return n.endsWith("/")&&n.length>1&&(n=n.slice(0,-1)),n.split("/").slice(1)}};o($x,"RouterProvider");let Tb=$x;const t4=o(t=>$.jsxs("div",{style:{width:"100%",minHeight:"90vh",boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',padding:"2rem",...t.style},children:[$.jsx("div",{style:{fontSize:"6rem",fontWeight:200,lineHeight:1},children:"404"}),$.jsx("div",{style:{fontSize:"0.875rem",marginTop:"1rem",opacity:.6},children:"Page not found"})]}),"NotFound"),uW='ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace',e4=o(({error:t,alepha:e})=>e.isProduction()?$.jsx("div",{style:Eu.root,children:"Something went wrong."}):$.jsx("div",{style:Eu.root,children:$.jsx(n4,{error:t})}),"ErrorViewer");function n4({error:t,depth:e=0}){return $.jsxs($.Fragment,{children:[e>0&&$.jsx("div",{style:Eu.caused,children:"Caused by:"}),$.jsxs("div",{style:Eu.name,children:[t.name,": ",t.message]}),t.stack&&$.jsx("pre",{style:Eu.stack,children:fW(t.stack)}),t.cause instanceof Error&&$.jsx(n4,{error:t.cause,depth:e+1})]})}o(n4,"ErrorBlock");function fW(t){return t.split(`
|
|
69
|
-
`).slice(1).map(e=>e.trim()).join(`
|
|
70
|
-
`)}o(fW,"cleanStack");const Eu={root:{padding:"24px",fontFamily:uW,fontSize:"13px",color:"#333",backgroundColor:"#fff"},name:{color:"#dc2626",fontSize:"14px",fontWeight:600,marginBottom:"8px",wordBreak:"break-word"},stack:{margin:"0 0 20px",padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px",border:"1px solid #e0e0e0",fontSize:"12px",lineHeight:1.6,color:"#666",overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-all"},caused:{fontSize:"11px",color:"#999",textTransform:"uppercase",letterSpacing:"1px",marginBottom:"6px",paddingTop:"4px",borderTop:"1px solid #e0e0e0"}},r4=A.createContext(void 0),Mx=class Mx extends _t{redirect;constructor(e){super("Redirection"),this.redirect=e}};o(Mx,"Redirection");let xl=Mx;const dW=o(()=>{const[t]=zm("alepha.react.router.state");if(!t)throw new _t("Missing react router state");return t},"useRouterState"),mW=o(t=>{const e=A.use(r4),n=e?.index??0,r=e?.onError,a=dW(),c=Qh(),[f,d]=A.useState(a.layers[n]?.element),[h,g]=A.useState(""),y=A.useRef(0),v=A.useRef(0);lR({"react:transition:begin":o(async({previous:C,state:w})=>{const M=C.layers[n];if(!M||`${w.url.pathname}/`.startsWith(`${M.path}/`))return;const L=gC(M.route?.animation,w,"exit");if(L){const z=L.duration||200;v.current=Date.now(),y.current=z,g(L.animation)}else v.current=0,y.current=0,g("")},"react:transition:begin"),"react:transition:end":o(async({state:C})=>{const w=C.layers[n];if(v.current){const M=y.current,L=Date.now()-v.current;L<M&&await new Promise(z=>setTimeout(z,M-L))}if(!w?.cache){d(w?.element);const M=gC(w?.route?.animation,C,"enter");g(M?M.animation:"")}},"react:transition:end")},[]);let E=f??t.children??null;if(h&&(E=$.jsx("div",{style:{display:"flex",flex:1,height:"100%",width:"100%",position:"relative",overflow:"hidden"},children:$.jsx("div",{style:{height:"100%",width:"100%",display:"flex",animation:h},children:E})})),t.errorBoundary===!1)return $.jsx($.Fragment,{children:E});if(t.errorBoundary)return $.jsx(Om,{fallback:t.errorBoundary,children:E});const x=o(C=>{const w=r?.(C,a)??$.jsx(e4,{error:C,alepha:c});return w instanceof xl?"Redirection inside ErrorBoundary is not allowed.":w},"fallback");return $.jsx(Om,{fallback:x,children:E})},"NestedView"),Ab=A.memo(mW);function gC(t,e,n="enter"){if(!t)return;const r=300,a=typeof t=="function"?t(e):t;if(typeof a=="string")return n==="exit"?void 0:{duration:r,animation:`${r}ms ${a}`};if(typeof a=="object"){const c=a[n],f=typeof c=="object"?c.duration??r:r,d=typeof c=="object"?c.name:c;if(n==="exit"){const g=typeof c=="object"?c.timing??"":"";return{duration:f,animation:`${f}ms ${g} ${d}`}}const h=typeof c=="object"?c.timing??"":"";return{duration:f,animation:`${f}ms ${h} ${d}`}}}o(gC,"parseAnimation");const hW=di({name:"alepha.react.page.options",description:"Configuration options for the React page provider.",schema:O.object({strictMode:O.boolean({default:!0})}),default:{strictMode:!0}}),Ox=class Ox{log=mi();options=Xh(hW);alepha=Ot(Ke);pages=[];getPages(){return this.pages}getConcretePages(){const e=[];for(const n of this.pages){if(n.children&&n.children.length>0)continue;const r=this.pathname(n.name);if(r.includes(":")||r.includes("*")){if(typeof n.static=="object"){const a=n.static.entries;if(a&&a.length>0)for(const c of a){const f=c.params,d=this.compile(n.path??"",f);!d.includes(":")&&!d.includes("*")&&e.push({...n,name:f[Object.keys(f)[0]],staticName:n.name,path:d,...c})}}continue}e.push(n)}return e}page(e){for(const n of this.pages)if(n.name===e)return n;throw new _t(`Page '${e}' not found`)}pathname(e,n={}){const r=this.page(e);if(!r)throw new _t(`Page ${e} not found`);let a=r.path??"",c=r.parent;for(;c;)a=`${c.path??""}/${a}`,c=c.parent;if(a=this.compile(a,n.params??{}),n.query){const f=new URLSearchParams(n.query);f.toString()&&(a+=`?${f.toString()}`)}return a.replace(/\/\/+/g,"/")||"/"}url(e,n={}){return new URL(this.pathname(e,n),n.host??"http://localhost")}root(e){const n=A.createElement(tR.Provider,{value:this.alepha},A.createElement(Ab,{},e.layers[0]?.element));return this.options.strictMode?A.createElement(A.StrictMode,{},n):n}convertStringObjectToObject=o((e,n)=>{if(O.schema.isObject(e)&&typeof n=="object"){for(const r in e.properties)if(O.schema.isObject(e.properties[r])&&typeof n[r]=="string")try{n[r]=this.alepha.codec.decode(e.properties[r],decodeURIComponent(n[r]))}catch{}}return n},"convertStringObjectToObject");async createLayers(e,n,r=[]){let a={};const c=[{route:e}];let f=e.parent;for(;f;)c.unshift({route:f}),f=f.parent;let d=!1;for(let g=0;g<c.length;g++){const y=c[g],v=y.route,E={};try{this.convertStringObjectToObject(v.schema?.query,n.query),E.query=v.schema?.query?this.alepha.codec.decode(v.schema.query,n.query):{}}catch(x){y.error=x;break}try{E.params=v.schema?.params?this.alepha.codec.decode(v.schema.params,n.params):{}}catch(x){y.error=x;break}if(y.config={...E},r?.[g]&&!d&&r[g].name===v.name){const x=o(M=>M?M.replace(/\/\/+/g,"/"):"/","url"),C=JSON.stringify({part:x(r[g].part),params:r[g].config?.params??{}}),w=JSON.stringify({part:x(v.path),params:E.params??{}});if(C===w){y.props=r[g].props,y.error=r[g].error,y.cache=!0,a={...a,...y.props};continue}d=!0}if(v.loader)try{const x=Object.create(n);Object.assign(x,E,a);const C=await v.loader?.(x)??{};y.props={...C},a={...a,...C}}catch(x){if(x instanceof xl)return{redirect:x.redirect};this.log.error("Page loader has failed",x),y.error=x;break}}let h="";for(let g=0;g<c.length;g++){const y=c[g],v=y.props??{},E={...y.config?.params};for(const w of Object.keys(E))E[w]=String(E[w]);h+="/",h+=y.route.path?this.compile(y.route.path,E):"";const x=h.replace(/\/+/,"/"),C=this.getErrorHandler(y.route);if(C){const w=n.onError;n.onError=(M,L)=>{const z=C(M,L);return z===void 0?w(M,L):z}}if(!y.error)try{const w=await this.createElement(y.route,{...y.route.props?y.route.props():{},...v,...a});n.layers.push({name:y.route.name,props:v,part:y.route.path,config:y.config,element:this.renderView(g+1,x,w,y.route),index:g+1,path:x,route:y.route,cache:y.cache})}catch(w){y.error=w}if(y.error)try{let w=await n.onError(y.error,n);if(w===void 0)throw y.error;if(w instanceof xl)return{redirect:w.redirect};w===null&&(w=this.renderError(y.error)),n.layers.push({props:v,error:y.error,name:y.route.name,part:y.route.path,config:y.config,element:this.renderView(g+1,x,w,y.route),index:g+1,path:x,route:y.route});break}catch(w){if(w instanceof xl)return{redirect:w.redirect};throw w}}return{state:n}}getErrorHandler(e){if(e.errorHandler)return e.errorHandler;let n=e.parent;for(;n;){if(n.errorHandler)return n.errorHandler;n=n.parent}}async createElement(e,n){if(e.lazy&&e.component&&this.log.warn(`Page ${e.name} has both lazy and component options, lazy will be used`),e.lazy){const r=await e.lazy();return A.createElement(r.default,n)}if(e.component)return A.createElement(e.component,n)}renderError(e){return A.createElement(e4,{error:e,alepha:this.alepha})}renderEmptyView(){return A.createElement(Ab,{})}href(e,n={}){const r=this.pages.find(f=>f.name===e.options.name);if(!r)throw new _t(`Page ${e.options.name} not found`);let a=r.path??"",c=r.parent;for(;c;)a=`${c.path??""}/${a}`,c=c.parent;return a=this.compile(a,n),a.replace(/\/\/+/g,"/")||"/"}compile(e,n={}){for(const[r,a]of Object.entries(n))e=e.replace(`:${r}`,a);return e}renderView(e,n,r,a){r??=this.renderEmptyView();const c=a.client?A.createElement(BG,typeof a.client=="object"?a.client:{},r):r;return A.createElement(r4.Provider,{value:{index:e,path:n,onError:this.getErrorHandler(a)??(f=>this.renderError(f))}},c)}configure=rr({on:"configure",handler:o(()=>{let e=!1;const n=this.alepha.primitives(mn),r=o(a=>{if(a.options.parent)return!0;for(const c of n)if((c.options.children?Array.isArray(c.options.children)?c.options.children:c.options.children():[]).includes(a))return!0},"hasParent");for(const a of n)a.options.path==="/*"&&(e=!0),!r(a)&&this.add(this.map(n,a));!e&&n.length>0&&this.add({path:"/*",name:"notFound",component:t4,onServerResponse:o(({reply:a})=>{a.status=404},"onServerResponse")})},"handler")});map(e,n){const r=n.options.children?Array.isArray(n.options.children)?n.options.children:n.options.children():[],a=o(c=>{const f=[];for(const d of e)d.options.parent===c&&f.push(d);return f},"getChildrenFromParent");return r.push(...a(n)),{...n.options,name:n.name,parent:void 0,children:r.map(c=>this.map(e,c))}}add(e){if(this.alepha.isReady())throw new _t("Router is already initialized");e.name??=this.nextId();const n=e;if(n.match=this.createMatch(n),this.pages.push(n),n.children)for(const r of n.children)r.parent=n,this.add(r)}createMatch(e){let n=e.path??"/",r=e.parent;for(;r;)n=`${r.path??""}/${n}`,r=r.parent;let a=n.replace(/\/\/+/g,"/");return a.endsWith("/")&&a!=="/"&&(a=a.slice(0,-1)),a}_next=0;nextId(){return this._next+=1,`P${this._next}`}};o(Ox,"ReactPageProvider");let jl=Ox;const pW=o(t=>t&&typeof t=="object"&&typeof t.path=="string"&&typeof t.page=="object","isPageRoute"),Rx=class Rx extends Tb{log=mi();alepha=Ot(Ke);pageApi=Ot(jl);browserHeadProvider=Ot(ra);add(e){this.pageApi.add(e)}configure=rr({on:"configure",handler:o(async()=>{for(const e of this.pageApi.getPages())(e.component||e.lazy)&&this.push({path:e.match,page:e})},"handler")});async transition(e,n=[],r={}){const{pathname:a,search:c}=e,d={url:e,query:{},params:{},layers:[],onError:o(()=>null,"onError"),meta:r};await this.alepha.events.emit("react:action:begin",{type:"transition"}),await this.alepha.events.emit("react:transition:begin",{previous:this.alepha.store.get("alepha.react.router.state"),state:d});try{const{route:h,params:g}=this.match(a),y={};if(c)for(const[v,E]of new URLSearchParams(c).entries())y[v]=String(E);if(h?.page.can&&!h.page.can())throw new W0("Access denied to this page.");if(d.name=h?.page.name,d.query=y,d.params=g??{},pW(h)){const{redirect:v}=await this.pageApi.createLayers(h.page,d,n);if(v)return v}d.layers.length===0&&d.layers.push({name:"not-found",element:A.createElement(t4),index:0,path:"/"}),await this.alepha.events.emit("react:action:success",{type:"transition"}),await this.alepha.events.emit("react:transition:success",{state:d})}catch(h){this.log.error("Transition has failed",h),d.layers=[{name:"error",element:this.pageApi.renderError(h),index:0,path:"/"}],await this.alepha.events.emit("react:action:error",{type:"transition",error:h}),await this.alepha.events.emit("react:transition:error",{error:h,state:d})}if(n)for(let h=0;h<n.length;h++){const g=n[h];d.layers[h]?.name!==g.name&&g.name!=="error"&&this.pageApi.page(g.name)?.onLeave?.()}for(let h=0;h<d.layers.length;h++){const g=d.layers[h];n?.[h]?.name!==g.name&&g.name!=="error"&&this.pageApi.page(g.name)?.onEnter?.()}this.alepha.store.set("alepha.react.router.state",d),await this.alepha.events.emit("react:action:end",{type:"transition"}),await this.alepha.events.emit("react:transition:end",{state:d}),this.browserHeadProvider.fillAndRenderHead(d)}root(e){return this.pageApi.root(e)}};o(Rx,"ReactBrowserRouterProvider");let Hu=Rx;const gW=di({name:"alepha.react.browser.options",schema:O.object({scrollRestoration:O.enum(["top","manual"])}),default:{scrollRestoration:"top"}}),Nx=class Nx{log=mi();client=Ot(ju);alepha=Ot(Ke);router=Ot(Hu);dateTimeProvider=Ot(Ni);browserHeadProvider=Ot(ra);options=Xh(gW);get rootId(){return"root"}getRootElement(){const e=this.document.getElementById(this.rootId);if(e)return e;const n=this.document.createElement("div");return n.id=this.rootId,this.document.body.prepend(n),n}transitioning;get state(){return this.alepha.store.get("alepha.react.router.state")}get document(){return window.document}get history(){return window.history}get location(){return window.location}get base(){return"/__devtools"}get url(){const e=this.location.pathname+this.location.search;return this.base?e.replace(this.base,""):e}pushState(e,n){const r=this.base+e;n?this.history.replaceState({},"",r):this.history.pushState({},"",r)}async invalidate(e){const n=[];if(this.log.trace("Invalidating layers"),e){const[r]=Object.keys(e),a=e[r];for(const c of this.state.layers){if(c.props?.[r]){n.push({...c,props:{...c.props,[r]:a}});break}n.push(c)}}await this.render({previous:n})}async push(e,n={}){if(this.log.trace(`Going to ${e}`,{url:e,options:n}),await this.render({url:e,previous:n.force?[]:this.state.layers,meta:n.meta}),this.state.url.pathname+this.state.url.search!==e){this.pushState(this.state.url.pathname+this.state.url.search);return}this.pushState(e,n.replace)}async render(e={}){const n=e.previous??this.state.layers,r=e.url??this.url,a=this.dateTimeProvider.now();this.transitioning={to:r,from:this.state?.url.pathname},this.log.debug("Transitioning...",{to:r});const c=await this.router.transition(new URL(`http://localhost${r}`),n,e.meta);if(c)if(this.log.info("Redirecting to",{redirect:c}),c.startsWith("http"))window.location.href=c;else return await this.render({url:c});const f=this.dateTimeProvider.now().diff(a);this.log.info(`Transition OK [${f}ms]`,this.transitioning),this.transitioning=void 0}getHydrationState(){try{const e=this.document.getElementById("__ssr");if(e?.textContent)return JSON.parse(e.textContent)}catch(e){console.error(e)}}onTransitionEnd=rr({on:"react:transition:end",handler:o(()=>{this.options.scrollRestoration==="top"&&typeof window<"u"&&!this.alepha.isTest()&&(this.log.trace("Restoring scroll position to top"),window.scrollTo(0,0))},"handler")});ready=rr({on:"ready",handler:o(async()=>{const e=this.getHydrationState(),n=e?.["alepha.react.router.layers"]??[];if(e)for(const[a,c]of Object.entries(e))a!=="alepha.react.router.layers"&&this.alepha.set(a,c);await this.render({previous:n});const r=this.router.root(this.state);await this.alepha.events.emit("react:browser:render",{element:r,root:this.getRootElement(),hydration:e,state:this.state}),window.addEventListener("popstate",()=>{this.base+this.state.url.pathname!==this.location.pathname&&(this.log.debug("Popstate event triggered - rendering new state",{url:this.location.pathname+this.location.search}),this.render())})},"handler")})};o(Nx,"ReactBrowserProvider");let ku=Nx;var b0={exports:{}},du={},v0={exports:{}},S0={};var yC;function yW(){return yC||(yC=1,(function(t){function e(N,U){var j=N.length;N.push(U);t:for(;0<j;){var tt=j-1>>>1,it=N[tt];if(0<a(it,U))N[tt]=U,N[j]=it,j=tt;else break t}}o(e,"push");function n(N){return N.length===0?null:N[0]}o(n,"peek");function r(N){if(N.length===0)return null;var U=N[0],j=N.pop();if(j!==U){N[0]=j;t:for(var tt=0,it=N.length,_=it>>>1;tt<_;){var Y=2*(tt+1)-1,lt=N[Y],dt=Y+1,ht=N[dt];if(0>a(lt,j))dt<it&&0>a(ht,lt)?(N[tt]=ht,N[dt]=j,tt=dt):(N[tt]=lt,N[Y]=j,tt=Y);else if(dt<it&&0>a(ht,j))N[tt]=ht,N[dt]=j,tt=dt;else break t}}return U}o(r,"pop");function a(N,U){var j=N.sortIndex-U.sortIndex;return j!==0?j:N.id-U.id}if(o(a,"compare"),t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();t.unstable_now=function(){return f.now()-d}}var h=[],g=[],y=1,v=null,E=3,x=!1,C=!1,w=!1,M=!1,L=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function F(N){for(var U=n(g);U!==null;){if(U.callback===null)r(g);else if(U.startTime<=N)r(g),U.sortIndex=U.expirationTime,e(h,U);else break;U=n(g)}}o(F,"advanceTimers");function G(N){if(w=!1,F(N),!C)if(n(h)!==null)C=!0,q||(q=!0,ft());else{var U=n(g);U!==null&&J(G,U.startTime-N)}}o(G,"handleTimeout");var q=!1,B=-1,k=5,et=-1;function nt(){return M?!0:!(t.unstable_now()-et<k)}o(nt,"shouldYieldToHost");function ot(){if(M=!1,q){var N=t.unstable_now();et=N;var U=!0;try{t:{C=!1,w&&(w=!1,z(B),B=-1),x=!0;var j=E;try{e:{for(F(N),v=n(h);v!==null&&!(v.expirationTime>N&&nt());){var tt=v.callback;if(typeof tt=="function"){v.callback=null,E=v.priorityLevel;var it=tt(v.expirationTime<=N);if(N=t.unstable_now(),typeof it=="function"){v.callback=it,F(N),U=!0;break e}v===n(h)&&r(h),F(N)}else r(h);v=n(h)}if(v!==null)U=!0;else{var _=n(g);_!==null&&J(G,_.startTime-N),U=!1}}break t}finally{v=null,E=j,x=!1}U=void 0}}finally{U?ft():q=!1}}}o(ot,"performWorkUntilDeadline");var ft;if(typeof I=="function")ft=o(function(){I(ot)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var mt=new MessageChannel,V=mt.port2;mt.port1.onmessage=ot,ft=o(function(){V.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ft=o(function(){L(ot,0)},"schedulePerformWorkUntilDeadline");function J(N,U){B=L(function(){N(t.unstable_now())},U)}o(J,"requestHostTimeout"),t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return E},t.unstable_next=function(N){switch(E){case 1:case 2:case 3:var U=3;break;default:U=E}var j=E;E=U;try{return N()}finally{E=j}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(N,U){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var j=E;E=N;try{return U()}finally{E=j}},t.unstable_scheduleCallback=function(N,U,j){var tt=t.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?tt+j:tt):j=tt,N){case 1:var it=-1;break;case 2:it=250;break;case 5:it=1073741823;break;case 4:it=1e4;break;default:it=5e3}return it=j+it,N={id:y++,callback:U,priorityLevel:N,startTime:j,expirationTime:it,sortIndex:-1},j>tt?(N.sortIndex=j,e(g,N),n(h)===null&&N===n(g)&&(w?(z(B),B=-1):w=!0,J(G,j-tt))):(N.sortIndex=it,e(h,N),C||x||(C=!0,q||(q=!0,ft()))),N},t.unstable_shouldYield=nt,t.unstable_wrapCallback=function(N){var U=E;return function(){var j=E;E=U;try{return N.apply(this,arguments)}finally{E=j}}}})(S0)),S0}o(yW,"requireScheduler_production");var bC;function bW(){return bC||(bC=1,v0.exports=yW()),v0.exports}o(bW,"requireScheduler");var vC;function vW(){if(vC)return du;vC=1;var t=bW(),e=E1(),n=GR();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}o(r,"formatProdErrorMessage");function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}o(a,"isValidContainer");function c(i){var s=i,l=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(l=s.return),i=s.return;while(i)}return s.tag===3?l:null}o(c,"getNearestMountedFiber");function f(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}o(f,"getSuspenseInstanceFromFiber");function d(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}o(d,"getActivityInstanceFromFiber");function h(i){if(c(i)!==i)throw Error(r(188))}o(h,"assertIsMounted");function g(i){var s=i.alternate;if(!s){if(s=c(i),s===null)throw Error(r(188));return s!==i?null:i}for(var l=i,u=s;;){var m=l.return;if(m===null)break;var p=m.alternate;if(p===null){if(u=m.return,u!==null){l=u;continue}break}if(m.child===p.child){for(p=m.child;p;){if(p===l)return h(m),i;if(p===u)return h(m),s;p=p.sibling}throw Error(r(188))}if(l.return!==u.return)l=m,u=p;else{for(var S=!1,T=m.child;T;){if(T===l){S=!0,l=m,u=p;break}if(T===u){S=!0,u=m,l=p;break}T=T.sibling}if(!S){for(T=p.child;T;){if(T===l){S=!0,l=p,u=m;break}if(T===u){S=!0,u=p,l=m;break}T=T.sibling}if(!S)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?i:s}o(g,"findCurrentFiberUsingSlowPath");function y(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=y(i),s!==null)return s;i=i.sibling}return null}o(y,"findCurrentHostFiberImpl");var v=Object.assign,E=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),I=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),et=Symbol.for("react.activity"),nt=Symbol.for("react.memo_cache_sentinel"),ot=Symbol.iterator;function ft(i){return i===null||typeof i!="object"?null:(i=ot&&i[ot]||i["@@iterator"],typeof i=="function"?i:null)}o(ft,"getIteratorFn");var mt=Symbol.for("react.client.reference");function V(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===mt?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case w:return"Fragment";case L:return"Profiler";case M:return"StrictMode";case G:return"Suspense";case q:return"SuspenseList";case et:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case C:return"Portal";case I:return i.displayName||"Context";case z:return(i._context.displayName||"Context")+".Consumer";case F:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case B:return s=i.displayName||null,s!==null?s:V(i.type)||"Memo";case k:s=i._payload,i=i._init;try{return V(i(s))}catch{}}return null}o(V,"getComponentNameFromType");var J=Array.isArray,N=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},tt=[],it=-1;function _(i){return{current:i}}o(_,"createCursor");function Y(i){0>it||(i.current=tt[it],tt[it]=null,it--)}o(Y,"pop");function lt(i,s){it++,tt[it]=i.current,i.current=s}o(lt,"push");var dt=_(null),ht=_(null),yt=_(null),Ct=_(null);function te(i,s){switch(lt(yt,s),lt(ht,i),lt(dt,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?iT(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=iT(s),i=oT(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Y(dt),lt(dt,i)}o(te,"pushHostContainer");function Kt(){Y(dt),Y(ht),Y(yt)}o(Kt,"popHostContainer");function ye(i){i.memoizedState!==null&<(Ct,i);var s=dt.current,l=oT(s,i.type);s!==l&&(lt(ht,i),lt(dt,l))}o(ye,"pushHostContext");function sn(i){ht.current===i&&(Y(dt),Y(ht)),Ct.current===i&&(Y(Ct),iu._currentValue=j)}o(sn,"popHostContext");var Gn,Xr;function Qr(i){if(Gn===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);Gn=s&&s[1]||"",Xr=-1<l.stack.indexOf(`
|
|
71
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
72
|
-
`+Gn+i+Xr}o(Qr,"describeBuiltInComponentFrame");var dc=!1;function mc(i,s){if(!i||dc)return"";dc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:o(function(){try{if(s){var ct=o(function(){throw Error()},"Fake");if(Object.defineProperty(ct.prototype,"props",{set:o(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ct,[])}catch(W){var Q=W}Reflect.construct(i,[],ct)}else{try{ct.call()}catch(W){Q=W}i.call(ct.prototype)}}else{try{throw Error()}catch(W){Q=W}(ct=i())&&typeof ct.catch=="function"&&ct.catch(function(){})}}catch(W){if(W&&Q&&typeof W.stack=="string")return[W.stack,Q.stack]}return[null,null]},"DetermineComponentFrameRoot")};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),S=p[0],T=p[1];if(S&&T){var D=S.split(`
|
|
73
|
-
`),X=T.split(`
|
|
74
|
-
`);for(m=u=0;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;for(;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;if(u===D.length||m===X.length)for(u=D.length-1,m=X.length-1;1<=u&&0<=m&&D[u]!==X[m];)m--;for(;1<=u&&0<=m;u--,m--)if(D[u]!==X[m]){if(u!==1||m!==1)do if(u--,m--,0>m||D[u]!==X[m]){var rt=`
|
|
75
|
-
`+D[u].replace(" at new "," at ");return i.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",i.displayName)),rt}while(1<=u&&0<=m);break}}}finally{dc=!1,Error.prepareStackTrace=l}return(l=i?i.displayName||i.name:"")?Qr(l):""}o(mc,"describeNativeComponentFrame");function Dp(i,s){switch(i.tag){case 26:case 27:case 5:return Qr(i.type);case 16:return Qr("Lazy");case 13:return i.child!==s&&s!==null?Qr("Suspense Fallback"):Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 15:return mc(i.type,!1);case 11:return mc(i.type.render,!1);case 1:return mc(i.type,!0);case 31:return Qr("Activity");default:return""}}o(Dp,"describeFiber");function Ef(i){try{var s="",l=null;do s+=Dp(i,l),l=i,i=i.return;while(i);return s}catch(u){return`
|
|
76
|
-
Error generating stack: `+u.message+`
|
|
77
|
-
`+u.stack}}o(Ef,"getStackByFiberInDevAndProd");var hc=Object.prototype.hasOwnProperty,pc=t.unstable_scheduleCallback,wf=t.unstable_cancelCallback,h4=t.unstable_shouldYield,p4=t.unstable_requestPaint,Yn=t.unstable_now,g4=t.unstable_getCurrentPriorityLevel,Lx=t.unstable_ImmediatePriority,zx=t.unstable_UserBlockingPriority,Tf=t.unstable_NormalPriority,y4=t.unstable_LowPriority,Bx=t.unstable_IdlePriority,b4=t.log,v4=t.unstable_setDisableYieldValue,gc=null,Vn=null;function Ao(i){if(typeof b4=="function"&&v4(i),Vn&&typeof Vn.setStrictMode=="function")try{Vn.setStrictMode(gc,i)}catch{}}o(Ao,"setIsStrictModeForDevtools");var Kn=Math.clz32?Math.clz32:E4,S4=Math.log,x4=Math.LN2;function E4(i){return i>>>=0,i===0?32:31-(S4(i)/x4|0)|0}o(E4,"clz32Fallback");var Af=256,Cf=262144,$f=4194304;function ws(i){var s=i&42;if(s!==0)return s;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}o(ws,"getHighestPriorityLanes");function Mf(i,s,l){var u=i.pendingLanes;if(u===0)return 0;var m=0,p=i.suspendedLanes,S=i.pingedLanes;i=i.warmLanes;var T=u&134217727;return T!==0?(u=T&~p,u!==0?m=ws(u):(S&=T,S!==0?m=ws(S):l||(l=T&~i,l!==0&&(m=ws(l))))):(T=u&~p,T!==0?m=ws(T):S!==0?m=ws(S):l||(l=u&~i,l!==0&&(m=ws(l)))),m===0?0:s!==0&&s!==m&&(s&p)===0&&(p=m&-m,l=s&-s,p>=l||p===32&&(l&4194048)!==0)?s:m}o(Mf,"getNextLanes");function yc(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}o(yc,"checkIfRootIsPrerendering");function w4(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}o(w4,"computeExpirationTime");function Ux(){var i=$f;return $f<<=1,($f&62914560)===0&&($f=4194304),i}o(Ux,"claimNextRetryLane");function jp(i){for(var s=[],l=0;31>l;l++)s.push(i);return s}o(jp,"createLaneMap");function bc(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}o(bc,"markRootUpdated$1");function T4(i,s,l,u,m,p){var S=i.pendingLanes;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=l,i.entangledLanes&=l,i.errorRecoveryDisabledLanes&=l,i.shellSuspendCounter=0;var T=i.entanglements,D=i.expirationTimes,X=i.hiddenUpdates;for(l=S&~l;0<l;){var rt=31-Kn(l),ct=1<<rt;T[rt]=0,D[rt]=-1;var Q=X[rt];if(Q!==null)for(X[rt]=null,rt=0;rt<Q.length;rt++){var W=Q[rt];W!==null&&(W.lane&=-536870913)}l&=~ct}u!==0&&Hx(i,u,0),p!==0&&m===0&&i.tag!==0&&(i.suspendedLanes|=p&~(S&~s))}o(T4,"markRootFinished");function Hx(i,s,l){i.pendingLanes|=s,i.suspendedLanes&=~s;var u=31-Kn(s);i.entangledLanes|=s,i.entanglements[u]=i.entanglements[u]|1073741824|l&261930}o(Hx,"markSpawnedDeferredLane");function kx(i,s){var l=i.entangledLanes|=s;for(i=i.entanglements;l;){var u=31-Kn(l),m=1<<u;m&s|i[u]&s&&(i[u]|=s),l&=~m}}o(kx,"markRootEntangled");function Fx(i,s){var l=s&-s;return l=(l&42)!==0?1:Ip(l),(l&(i.suspendedLanes|s))!==0?0:l}o(Fx,"getBumpedLaneForHydration");function Ip(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}o(Ip,"getBumpedLaneForHydrationByLane");function Lp(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}o(Lp,"lanesToEventPriority");function qx(){var i=U.p;return i!==0?i:(i=window.event,i===void 0?32:MT(i.type))}o(qx,"resolveUpdatePriority");function Px(i,s){var l=U.p;try{return U.p=i,s()}finally{U.p=l}}o(Px,"runWithPriority");var Co=Math.random().toString(36).slice(2),an="__reactFiber$"+Co,On="__reactProps$"+Co,Sa="__reactContainer$"+Co,zp="__reactEvents$"+Co,A4="__reactListeners$"+Co,C4="__reactHandles$"+Co,Gx="__reactResources$"+Co,vc="__reactMarker$"+Co;function Bp(i){delete i[an],delete i[On],delete i[zp],delete i[A4],delete i[C4]}o(Bp,"detachDeletedInstance");function xa(i){var s=i[an];if(s)return s;for(var l=i.parentNode;l;){if(s=l[Sa]||l[an]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(i=dT(i);i!==null;){if(l=i[an])return l;i=dT(i)}return s}i=l,l=i.parentNode}return null}o(xa,"getClosestInstanceFromNode");function Ea(i){if(i=i[an]||i[Sa]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}o(Ea,"getInstanceFromNode");function Sc(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}o(Sc,"getNodeFromInstance");function wa(i){var s=i[Gx];return s||(s=i[Gx]={hoistableStyles:new Map,hoistableScripts:new Map}),s}o(wa,"getResourcesFromRoot");function rn(i){i[vc]=!0}o(rn,"markNodeAsHoistable");var Yx=new Set,Vx={};function Ts(i,s){Ta(i,s),Ta(i+"Capture",s)}o(Ts,"registerTwoPhaseEvent");function Ta(i,s){for(Vx[i]=s,i=0;i<s.length;i++)Yx.add(s[i])}o(Ta,"registerDirectEvent");var $4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Kx={},Xx={};function M4(i){return hc.call(Xx,i)?!0:hc.call(Kx,i)?!1:$4.test(i)?Xx[i]=!0:(Kx[i]=!0,!1)}o(M4,"isAttributeNameSafe");function Of(i,s,l){if(M4(s))if(l===null)i.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var u=s.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+l)}}o(Of,"setValueForAttribute");function Rf(i,s,l){if(l===null)i.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+l)}}o(Rf,"setValueForKnownAttribute");function Bi(i,s,l,u){if(u===null)i.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttributeNS(s,l,""+u)}}o(Bi,"setValueForNamespacedAttribute");function xr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}o(xr,"getToStringValue");function Qx(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}o(Qx,"isCheckable");function O4(i,s,l){var u=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,p=u.set;return Object.defineProperty(i,s,{configurable:!0,get:o(function(){return m.call(this)},"get"),set:o(function(S){l=""+S,p.call(this,S)},"set")}),Object.defineProperty(i,s,{enumerable:u.enumerable}),{getValue:o(function(){return l},"getValue"),setValue:o(function(S){l=""+S},"setValue"),stopTracking:o(function(){i._valueTracker=null,delete i[s]},"stopTracking")}}}o(O4,"trackValueOnNode");function Up(i){if(!i._valueTracker){var s=Qx(i)?"checked":"value";i._valueTracker=O4(i,s,""+i[s])}}o(Up,"track");function Zx(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var l=s.getValue(),u="";return i&&(u=Qx(i)?i.checked?"true":"false":i.value),i=u,i!==l?(s.setValue(i),!0):!1}o(Zx,"updateValueIfChanged");function Nf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}o(Nf,"getActiveElement");var R4=/[\n"\\]/g;function Er(i){return i.replace(R4,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}o(Er,"escapeSelectorAttributeValueInsideDoubleQuotes");function Hp(i,s,l,u,m,p,S,T){i.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?i.type=S:i.removeAttribute("type"),s!=null?S==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+xr(s)):i.value!==""+xr(s)&&(i.value=""+xr(s)):S!=="submit"&&S!=="reset"||i.removeAttribute("value"),s!=null?kp(i,S,xr(s)):l!=null?kp(i,S,xr(l)):u!=null&&i.removeAttribute("value"),m==null&&p!=null&&(i.defaultChecked=!!p),m!=null&&(i.checked=m&&typeof m!="function"&&typeof m!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?i.name=""+xr(T):i.removeAttribute("name")}o(Hp,"updateInput");function Jx(i,s,l,u,m,p,S,T){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(i.type=p),s!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||s!=null)){Up(i);return}l=l!=null?""+xr(l):"",s=s!=null?""+xr(s):l,T||s===i.value||(i.value=s),i.defaultValue=s}u=u??m,u=typeof u!="function"&&typeof u!="symbol"&&!!u,i.checked=T?i.checked:!!u,i.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(i.name=S),Up(i)}o(Jx,"initInput");function kp(i,s,l){s==="number"&&Nf(i.ownerDocument)===i||i.defaultValue===""+l||(i.defaultValue=""+l)}o(kp,"setDefaultValue");function Aa(i,s,l,u){if(i=i.options,s){s={};for(var m=0;m<l.length;m++)s["$"+l[m]]=!0;for(l=0;l<i.length;l++)m=s.hasOwnProperty("$"+i[l].value),i[l].selected!==m&&(i[l].selected=m),m&&u&&(i[l].defaultSelected=!0)}else{for(l=""+xr(l),s=null,m=0;m<i.length;m++){if(i[m].value===l){i[m].selected=!0,u&&(i[m].defaultSelected=!0);return}s!==null||i[m].disabled||(s=i[m])}s!==null&&(s.selected=!0)}}o(Aa,"updateOptions");function Wx(i,s,l){if(s!=null&&(s=""+xr(s),s!==i.value&&(i.value=s),l==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=l!=null?""+xr(l):""}o(Wx,"updateTextarea");function tE(i,s,l,u){if(s==null){if(u!=null){if(l!=null)throw Error(r(92));if(J(u)){if(1<u.length)throw Error(r(93));u=u[0]}l=u}l==null&&(l=""),s=l}l=xr(s),i.defaultValue=l,u=i.textContent,u===l&&u!==""&&u!==null&&(i.value=u),Up(i)}o(tE,"initTextarea");function Ca(i,s){if(s){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=s;return}}i.textContent=s}o(Ca,"setTextContent");var N4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function eE(i,s,l){var u=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":u?i.setProperty(s,l):typeof l!="number"||l===0||N4.has(s)?s==="float"?i.cssFloat=l:i[s]=(""+l).trim():i[s]=l+"px"}o(eE,"setValueForStyle");function nE(i,s,l){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||s!=null&&s.hasOwnProperty(u)||(u.indexOf("--")===0?i.setProperty(u,""):u==="float"?i.cssFloat="":i[u]="");for(var m in s)u=s[m],s.hasOwnProperty(m)&&l[m]!==u&&eE(i,m,u)}else for(var p in s)s.hasOwnProperty(p)&&eE(i,p,s[p])}o(nE,"setValueForStyles");function Fp(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}o(Fp,"isCustomElement");var _4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),D4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function _f(i){return D4.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}o(_f,"sanitizeURL");function Ui(){}o(Ui,"noop$1");var qp=null;function Pp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}o(Pp,"getEventTarget");var $a=null,Ma=null;function rE(i){var s=Ea(i);if(s&&(i=s.stateNode)){var l=i[On]||null;t:switch(i=s.stateNode,s.type){case"input":if(Hp(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Er(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var u=l[s];if(u!==i&&u.form===i.form){var m=u[On]||null;if(!m)throw Error(r(90));Hp(u,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(s=0;s<l.length;s++)u=l[s],u.form===i.form&&Zx(u)}break t;case"textarea":Wx(i,l.value,l.defaultValue);break t;case"select":s=l.value,s!=null&&Aa(i,!!l.multiple,s,!1)}}}o(rE,"restoreStateOfTarget");var Gp=!1;function iE(i,s,l){if(Gp)return i(s,l);Gp=!0;try{var u=i(s);return u}finally{if(Gp=!1,($a!==null||Ma!==null)&&(vd(),$a&&(s=$a,i=Ma,Ma=$a=null,rE(s),i)))for(s=0;s<i.length;s++)rE(i[s])}}o(iE,"batchedUpdates$1");function xc(i,s){var l=i.stateNode;if(l===null)return null;var u=l[On]||null;if(u===null)return null;l=u[s];t:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(i=i.type,u=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!u;break t;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(r(231,s,typeof l));return l}o(xc,"getListener");var Hi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yp=!1;if(Hi)try{var Ec={};Object.defineProperty(Ec,"passive",{get:o(function(){Yp=!0},"get")}),window.addEventListener("test",Ec,Ec),window.removeEventListener("test",Ec,Ec)}catch{Yp=!1}var $o=null,Vp=null,Df=null;function oE(){if(Df)return Df;var i,s=Vp,l=s.length,u,m="value"in $o?$o.value:$o.textContent,p=m.length;for(i=0;i<l&&s[i]===m[i];i++);var S=l-i;for(u=1;u<=S&&s[l-u]===m[p-u];u++);return Df=m.slice(i,1<u?1-u:void 0)}o(oE,"getData");function jf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}o(jf,"getEventCharCode");function If(){return!0}o(If,"functionThatReturnsTrue");function sE(){return!1}o(sE,"functionThatReturnsFalse");function Rn(i){function s(l,u,m,p,S){this._reactName=l,this._targetInst=m,this.type=u,this.nativeEvent=p,this.target=S,this.currentTarget=null;for(var T in i)i.hasOwnProperty(T)&&(l=i[T],this[T]=l?l(p):p[T]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?If:sE,this.isPropagationStopped=sE,this}return o(s,"SyntheticBaseEvent"),v(s.prototype,{preventDefault:o(function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=If)},"preventDefault"),stopPropagation:o(function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=If)},"stopPropagation"),persist:o(function(){},"persist"),isPersistent:If}),s}o(Rn,"createSyntheticEvent");var As={eventPhase:0,bubbles:0,cancelable:0,timeStamp:o(function(i){return i.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},Lf=Rn(As),wc=v({},As,{view:0,detail:0}),j4=Rn(wc),Kp,Xp,Tc,zf=v({},wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zp,button:0,buttons:0,relatedTarget:o(function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},"relatedTarget"),movementX:o(function(i){return"movementX"in i?i.movementX:(i!==Tc&&(Tc&&i.type==="mousemove"?(Kp=i.screenX-Tc.screenX,Xp=i.screenY-Tc.screenY):Xp=Kp=0,Tc=i),Kp)},"movementX"),movementY:o(function(i){return"movementY"in i?i.movementY:Xp},"movementY")}),aE=Rn(zf),I4=v({},zf,{dataTransfer:0}),L4=Rn(I4),z4=v({},wc,{relatedTarget:0}),Qp=Rn(z4),B4=v({},As,{animationName:0,elapsedTime:0,pseudoElement:0}),U4=Rn(B4),H4=v({},As,{clipboardData:o(function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData},"clipboardData")}),k4=Rn(H4),F4=v({},As,{data:0}),lE=Rn(F4),q4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},G4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y4(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=G4[i])?!!s[i]:!1}o(Y4,"modifierStateGetter");function Zp(){return Y4}o(Zp,"getEventModifierState");var V4=v({},wc,{key:o(function(i){if(i.key){var s=q4[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=jf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?P4[i.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zp,charCode:o(function(i){return i.type==="keypress"?jf(i):0},"charCode"),keyCode:o(function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},"keyCode"),which:o(function(i){return i.type==="keypress"?jf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0},"which")}),K4=Rn(V4),X4=v({},zf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cE=Rn(X4),Q4=v({},wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zp}),Z4=Rn(Q4),J4=v({},As,{propertyName:0,elapsedTime:0,pseudoElement:0}),W4=Rn(J4),tN=v({},zf,{deltaX:o(function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},"deltaX"),deltaY:o(function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0}),eN=Rn(tN),nN=v({},As,{newState:0,oldState:0}),rN=Rn(nN),iN=[9,13,27,32],Jp=Hi&&"CompositionEvent"in window,Ac=null;Hi&&"documentMode"in document&&(Ac=document.documentMode);var oN=Hi&&"TextEvent"in window&&!Ac,uE=Hi&&(!Jp||Ac&&8<Ac&&11>=Ac),fE=" ",dE=!1;function mE(i,s){switch(i){case"keyup":return iN.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}o(mE,"isFallbackCompositionEnd");function hE(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}o(hE,"getDataFromCustomEvent");var Oa=!1;function sN(i,s){switch(i){case"compositionend":return hE(s);case"keypress":return s.which!==32?null:(dE=!0,fE);case"textInput":return i=s.data,i===fE&&dE?null:i;default:return null}}o(sN,"getNativeBeforeInputChars");function aN(i,s){if(Oa)return i==="compositionend"||!Jp&&mE(i,s)?(i=oE(),Df=Vp=$o=null,Oa=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return uE&&s.locale!=="ko"?null:s.data;default:return null}}o(aN,"getFallbackBeforeInputChars");var lN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pE(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!lN[i.type]:s==="textarea"}o(pE,"isTextInputElement");function gE(i,s,l,u){$a?Ma?Ma.push(u):Ma=[u]:$a=u,s=Cd(s,"onChange"),0<s.length&&(l=new Lf("onChange","change",null,l,u),i.push({event:l,listeners:s}))}o(gE,"createAndAccumulateChangeEvent");var Cc=null,$c=null;function cN(i){J2(i,0)}o(cN,"runEventInBatch");function Bf(i){var s=Sc(i);if(Zx(s))return i}o(Bf,"getInstIfValueChanged");function yE(i,s){if(i==="change")return s}o(yE,"getTargetInstForChangeEvent");var bE=!1;if(Hi){var Wp;if(Hi){var tg="oninput"in document;if(!tg){var vE=document.createElement("div");vE.setAttribute("oninput","return;"),tg=typeof vE.oninput=="function"}Wp=tg}else Wp=!1;bE=Wp&&(!document.documentMode||9<document.documentMode)}function SE(){Cc&&(Cc.detachEvent("onpropertychange",xE),$c=Cc=null)}o(SE,"stopWatchingForValueChange");function xE(i){if(i.propertyName==="value"&&Bf($c)){var s=[];gE(s,$c,i,Pp(i)),iE(cN,s)}}o(xE,"handlePropertyChange");function uN(i,s,l){i==="focusin"?(SE(),Cc=s,$c=l,Cc.attachEvent("onpropertychange",xE)):i==="focusout"&&SE()}o(uN,"handleEventsForInputEventPolyfill");function fN(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Bf($c)}o(fN,"getTargetInstForInputEventPolyfill");function dN(i,s){if(i==="click")return Bf(s)}o(dN,"getTargetInstForClickEvent");function mN(i,s){if(i==="input"||i==="change")return Bf(s)}o(mN,"getTargetInstForInputOrChangeEvent");function hN(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}o(hN,"is");var Xn=typeof Object.is=="function"?Object.is:hN;function Mc(i,s){if(Xn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var l=Object.keys(i),u=Object.keys(s);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var m=l[u];if(!hc.call(s,m)||!Xn(i[m],s[m]))return!1}return!0}o(Mc,"shallowEqual");function EE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}o(EE,"getLeafNode");function wE(i,s){var l=EE(i);i=0;for(var u;l;){if(l.nodeType===3){if(u=i+l.textContent.length,i<=s&&u>=s)return{node:l,offset:s-i};i=u}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=EE(l)}}o(wE,"getNodeForCharacterOffset");function TE(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?TE(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}o(TE,"containsNode");function AE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Nf(i.document);s instanceof i.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)i=s.contentWindow;else break;s=Nf(i.document)}return s}o(AE,"getActiveElementDeep");function eg(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}o(eg,"hasSelectionCapabilities");var pN=Hi&&"documentMode"in document&&11>=document.documentMode,Ra=null,ng=null,Oc=null,rg=!1;function CE(i,s,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;rg||Ra==null||Ra!==Nf(u)||(u=Ra,"selectionStart"in u&&eg(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Oc&&Mc(Oc,u)||(Oc=u,u=Cd(ng,"onSelect"),0<u.length&&(s=new Lf("onSelect","select",null,s,l),i.push({event:s,listeners:u}),s.target=Ra)))}o(CE,"constructSelectEvent");function Cs(i,s){var l={};return l[i.toLowerCase()]=s.toLowerCase(),l["Webkit"+i]="webkit"+s,l["Moz"+i]="moz"+s,l}o(Cs,"makePrefixMap");var Na={animationend:Cs("Animation","AnimationEnd"),animationiteration:Cs("Animation","AnimationIteration"),animationstart:Cs("Animation","AnimationStart"),transitionrun:Cs("Transition","TransitionRun"),transitionstart:Cs("Transition","TransitionStart"),transitioncancel:Cs("Transition","TransitionCancel"),transitionend:Cs("Transition","TransitionEnd")},ig={},$E={};Hi&&($E=document.createElement("div").style,"AnimationEvent"in window||(delete Na.animationend.animation,delete Na.animationiteration.animation,delete Na.animationstart.animation),"TransitionEvent"in window||delete Na.transitionend.transition);function $s(i){if(ig[i])return ig[i];if(!Na[i])return i;var s=Na[i],l;for(l in s)if(s.hasOwnProperty(l)&&l in $E)return ig[i]=s[l];return i}o($s,"getVendorPrefixedEventName");var ME=$s("animationend"),OE=$s("animationiteration"),RE=$s("animationstart"),gN=$s("transitionrun"),yN=$s("transitionstart"),bN=$s("transitioncancel"),NE=$s("transitionend"),_E=new Map,og="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");og.push("scrollEnd");function Zr(i,s){_E.set(i,s),Ts(s,[i])}o(Zr,"registerSimpleEvent");var Uf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},wr=[],_a=0,sg=0;function Hf(){for(var i=_a,s=sg=_a=0;s<i;){var l=wr[s];wr[s++]=null;var u=wr[s];wr[s++]=null;var m=wr[s];wr[s++]=null;var p=wr[s];if(wr[s++]=null,u!==null&&m!==null){var S=u.pending;S===null?m.next=m:(m.next=S.next,S.next=m),u.pending=m}p!==0&&DE(l,m,p)}}o(Hf,"finishQueueingConcurrentUpdates");function kf(i,s,l,u){wr[_a++]=i,wr[_a++]=s,wr[_a++]=l,wr[_a++]=u,sg|=u,i.lanes|=u,i=i.alternate,i!==null&&(i.lanes|=u)}o(kf,"enqueueUpdate$1");function ag(i,s,l,u){return kf(i,s,l,u),Ff(i)}o(ag,"enqueueConcurrentHookUpdate");function Ms(i,s){return kf(i,null,null,s),Ff(i)}o(Ms,"enqueueConcurrentRenderForLane");function DE(i,s,l){i.lanes|=l;var u=i.alternate;u!==null&&(u.lanes|=l);for(var m=!1,p=i.return;p!==null;)p.childLanes|=l,u=p.alternate,u!==null&&(u.childLanes|=l),p.tag===22&&(i=p.stateNode,i===null||i._visibility&1||(m=!0)),i=p,p=p.return;return i.tag===3?(p=i.stateNode,m&&s!==null&&(m=31-Kn(l),i=p.hiddenUpdates,u=i[m],u===null?i[m]=[s]:u.push(s),s.lane=l|536870912),p):null}o(DE,"markUpdateLaneFromFiberToRoot");function Ff(i){if(50<Zc)throw Zc=0,gy=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}o(Ff,"getRootForUpdatedFiber");var Da={};function vN(i,s,l,u){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}o(vN,"FiberNode");function Qn(i,s,l,u){return new vN(i,s,l,u)}o(Qn,"createFiberImplClass");function lg(i){return i=i.prototype,!(!i||!i.isReactComponent)}o(lg,"shouldConstruct");function ki(i,s){var l=i.alternate;return l===null?(l=Qn(i.tag,s,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=s,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&65011712,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,s=i.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l.refCleanup=i.refCleanup,l}o(ki,"createWorkInProgress");function jE(i,s){i.flags&=65011714;var l=i.alternate;return l===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,s=l.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}o(jE,"resetWorkInProgress");function qf(i,s,l,u,m,p){var S=0;if(u=i,typeof i=="function")lg(i)&&(S=1);else if(typeof i=="string")S=T5(i,l,dt.current)?26:i==="html"||i==="head"||i==="body"?27:5;else t:switch(i){case et:return i=Qn(31,l,s,m),i.elementType=et,i.lanes=p,i;case w:return Os(l.children,m,p,s);case M:S=8,m|=24;break;case L:return i=Qn(12,l,s,m|2),i.elementType=L,i.lanes=p,i;case G:return i=Qn(13,l,s,m),i.elementType=G,i.lanes=p,i;case q:return i=Qn(19,l,s,m),i.elementType=q,i.lanes=p,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case I:S=10;break t;case z:S=9;break t;case F:S=11;break t;case B:S=14;break t;case k:S=16,u=null;break t}S=29,l=Error(r(130,i===null?"null":typeof i,"")),u=null}return s=Qn(S,l,s,m),s.elementType=i,s.type=u,s.lanes=p,s}o(qf,"createFiberFromTypeAndProps");function Os(i,s,l,u){return i=Qn(7,i,u,s),i.lanes=l,i}o(Os,"createFiberFromFragment");function cg(i,s,l){return i=Qn(6,i,null,s),i.lanes=l,i}o(cg,"createFiberFromText");function IE(i){var s=Qn(18,null,null,0);return s.stateNode=i,s}o(IE,"createFiberFromDehydratedFragment");function ug(i,s,l){return s=Qn(4,i.children!==null?i.children:[],i.key,s),s.lanes=l,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}o(ug,"createFiberFromPortal");var LE=new WeakMap;function Tr(i,s){if(typeof i=="object"&&i!==null){var l=LE.get(i);return l!==void 0?l:(s={value:i,source:s,stack:Ef(s)},LE.set(i,s),s)}return{value:i,source:s,stack:Ef(s)}}o(Tr,"createCapturedValueAtFiber");var ja=[],Ia=0,Pf=null,Rc=0,Ar=[],Cr=0,Mo=null,gi=1,yi="";function Fi(i,s){ja[Ia++]=Rc,ja[Ia++]=Pf,Pf=i,Rc=s}o(Fi,"pushTreeFork");function zE(i,s,l){Ar[Cr++]=gi,Ar[Cr++]=yi,Ar[Cr++]=Mo,Mo=i;var u=gi;i=yi;var m=32-Kn(u)-1;u&=~(1<<m),l+=1;var p=32-Kn(s)+m;if(30<p){var S=m-m%5;p=(u&(1<<S)-1).toString(32),u>>=S,m-=S,gi=1<<32-Kn(s)+m|l<<m|u,yi=p+i}else gi=1<<p|l<<m|u,yi=i}o(zE,"pushTreeId");function fg(i){i.return!==null&&(Fi(i,1),zE(i,1,0))}o(fg,"pushMaterializedTreeId");function dg(i){for(;i===Pf;)Pf=ja[--Ia],ja[Ia]=null,Rc=ja[--Ia],ja[Ia]=null;for(;i===Mo;)Mo=Ar[--Cr],Ar[Cr]=null,yi=Ar[--Cr],Ar[Cr]=null,gi=Ar[--Cr],Ar[Cr]=null}o(dg,"popTreeContext");function BE(i,s){Ar[Cr++]=gi,Ar[Cr++]=yi,Ar[Cr++]=Mo,gi=s.id,yi=s.overflow,Mo=i}o(BE,"restoreSuspendedTreeContext");var ln=null,Ee=null,Xt=!1,Oo=null,$r=!1,mg=Error(r(519));function Ro(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nc(Tr(s,i)),mg}o(Ro,"throwOnHydrationMismatch");function UE(i){var s=i.stateNode,l=i.type,u=i.memoizedProps;switch(s[an]=i,s[On]=u,l){case"dialog":qt("cancel",s),qt("close",s);break;case"iframe":case"object":case"embed":qt("load",s);break;case"video":case"audio":for(l=0;l<Wc.length;l++)qt(Wc[l],s);break;case"source":qt("error",s);break;case"img":case"image":case"link":qt("error",s),qt("load",s);break;case"details":qt("toggle",s);break;case"input":qt("invalid",s),Jx(s,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":qt("invalid",s);break;case"textarea":qt("invalid",s),tE(s,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||u.suppressHydrationWarning===!0||nT(s.textContent,l)?(u.popover!=null&&(qt("beforetoggle",s),qt("toggle",s)),u.onScroll!=null&&qt("scroll",s),u.onScrollEnd!=null&&qt("scrollend",s),u.onClick!=null&&(s.onclick=Ui),s=!0):s=!1,s||Ro(i,!0)}o(UE,"prepareToHydrateHostInstance");function HE(i){for(ln=i.return;ln;)switch(ln.tag){case 5:case 31:case 13:$r=!1;return;case 27:case 3:$r=!0;return;default:ln=ln.return}}o(HE,"popToNextHostParent");function La(i){if(i!==ln)return!1;if(!Xt)return HE(i),Xt=!0,!1;var s=i.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=i.type,l=!(l!=="form"&&l!=="button")||Ny(i.type,i.memoizedProps)),l=!l),l&&Ee&&Ro(i),HE(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Ee=fT(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Ee=fT(i)}else s===27?(s=Ee,Po(i.type)?(i=Ly,Ly=null,Ee=i):Ee=s):Ee=ln?Or(i.stateNode.nextSibling):null;return!0}o(La,"popHydrationState");function Rs(){Ee=ln=null,Xt=!1}o(Rs,"resetHydrationState");function hg(){var i=Oo;return i!==null&&(jn===null?jn=i:jn.push.apply(jn,i),Oo=null),i}o(hg,"upgradeHydrationErrorsToRecoverable");function Nc(i){Oo===null?Oo=[i]:Oo.push(i)}o(Nc,"queueHydrationError");var pg=_(null),Ns=null,qi=null;function No(i,s,l){lt(pg,s._currentValue),s._currentValue=l}o(No,"pushProvider");function Pi(i){i._currentValue=pg.current,Y(pg)}o(Pi,"popProvider");function gg(i,s,l){for(;i!==null;){var u=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,u!==null&&(u.childLanes|=s)):u!==null&&(u.childLanes&s)!==s&&(u.childLanes|=s),i===l)break;i=i.return}}o(gg,"scheduleContextWorkOnParentPath");function yg(i,s,l,u){var m=i.child;for(m!==null&&(m.return=i);m!==null;){var p=m.dependencies;if(p!==null){var S=m.child;p=p.firstContext;t:for(;p!==null;){var T=p;p=m;for(var D=0;D<s.length;D++)if(T.context===s[D]){p.lanes|=l,T=p.alternate,T!==null&&(T.lanes|=l),gg(p.return,l,i),u||(S=null);break t}p=T.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(r(341));S.lanes|=l,p=S.alternate,p!==null&&(p.lanes|=l),gg(S,l,i),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===i){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}o(yg,"propagateContextChanges");function za(i,s,l,u){i=null;for(var m=s,p=!1;m!==null;){if(!p){if((m.flags&524288)!==0)p=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(r(387));if(S=S.memoizedProps,S!==null){var T=m.type;Xn(m.pendingProps.value,S.value)||(i!==null?i.push(T):i=[T])}}else if(m===Ct.current){if(S=m.alternate,S===null)throw Error(r(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(i!==null?i.push(iu):i=[iu])}m=m.return}i!==null&&yg(s,i,l,u),s.flags|=262144}o(za,"propagateParentContextChanges");function Gf(i){for(i=i.firstContext;i!==null;){if(!Xn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}o(Gf,"checkIfContextChanged");function _s(i){Ns=i,qi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}o(_s,"prepareToReadContext");function cn(i){return kE(Ns,i)}o(cn,"readContext");function Yf(i,s){return Ns===null&&_s(i),kE(i,s)}o(Yf,"readContextDuringReconciliation");function kE(i,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},qi===null){if(i===null)throw Error(r(308));qi=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else qi=qi.next=s;return l}o(kE,"readContextForConsumer");var SN=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:o(function(l,u){i.push(u)},"addEventListener")};this.abort=function(){s.aborted=!0,i.forEach(function(l){return l()})}},xN=t.unstable_scheduleCallback,EN=t.unstable_NormalPriority,Pe={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bg(){return{controller:new SN,data:new Map,refCount:0}}o(bg,"createCache");function _c(i){i.refCount--,i.refCount===0&&xN(EN,function(){i.controller.abort()})}o(_c,"releaseCache");var Dc=null,vg=0,Ba=0,Ua=null;function wN(i,s){if(Dc===null){var l=Dc=[];vg=0,Ba=Ey(),Ua={status:"pending",value:void 0,then:o(function(u){l.push(u)},"then")}}return vg++,s.then(FE,FE),s}o(wN,"entangleAsyncAction");function FE(){if(--vg===0&&Dc!==null){Ua!==null&&(Ua.status="fulfilled");var i=Dc;Dc=null,Ba=0,Ua=null;for(var s=0;s<i.length;s++)(0,i[s])()}}o(FE,"pingEngtangledActionScope");function TN(i,s){var l=[],u={status:"pending",value:null,reason:null,then:o(function(m){l.push(m)},"then")};return i.then(function(){u.status="fulfilled",u.value=s;for(var m=0;m<l.length;m++)(0,l[m])(s)},function(m){for(u.status="rejected",u.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),u}o(TN,"chainThenableValue");var qE=N.S;N.S=function(i,s){C2=Yn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&wN(i,s),qE!==null&&qE(i,s)};var Ds=_(null);function Sg(){var i=Ds.current;return i!==null?i:me.pooledCache}o(Sg,"peekCacheFromPool");function Vf(i,s){s===null?lt(Ds,Ds.current):lt(Ds,s.pool)}o(Vf,"pushTransition");function PE(){var i=Sg();return i===null?null:{parent:Pe._currentValue,pool:i}}o(PE,"getSuspendedCache");var Ha=Error(r(460)),xg=Error(r(474)),Kf=Error(r(542)),Xf={then:o(function(){},"then")};function GE(i){return i=i.status,i==="fulfilled"||i==="rejected"}o(GE,"isThenableResolved");function YE(i,s,l){switch(l=i[l],l===void 0?i.push(s):l!==s&&(s.then(Ui,Ui),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,KE(i),i;default:if(typeof s.status=="string")s.then(Ui,Ui);else{if(i=me,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(u){if(s.status==="pending"){var m=s;m.status="fulfilled",m.value=u}},function(u){if(s.status==="pending"){var m=s;m.status="rejected",m.reason=u}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,KE(i),i}throw Is=s,Ha}}o(YE,"trackUsedThenable");function js(i){try{var s=i._init;return s(i._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Is=l,Ha):l}}o(js,"resolveLazy");var Is=null;function VE(){if(Is===null)throw Error(r(459));var i=Is;return Is=null,i}o(VE,"getSuspendedThenable");function KE(i){if(i===Ha||i===Kf)throw Error(r(483))}o(KE,"checkIfUseWrappedInAsyncCatch");var ka=null,jc=0;function Qf(i){var s=jc;return jc+=1,ka===null&&(ka=[]),YE(ka,i,s)}o(Qf,"unwrapThenable");function Ic(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}o(Ic,"coerceRef");function Zf(i,s){throw s.$$typeof===E?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}o(Zf,"throwOnInvalidObjectTypeImpl");function XE(i){function s(P,H){if(i){var K=P.deletions;K===null?(P.deletions=[H],P.flags|=16):K.push(H)}}o(s,"deleteChild");function l(P,H){if(!i)return null;for(;H!==null;)s(P,H),H=H.sibling;return null}o(l,"deleteRemainingChildren");function u(P){for(var H=new Map;P!==null;)P.key!==null?H.set(P.key,P):H.set(P.index,P),P=P.sibling;return H}o(u,"mapRemainingChildren");function m(P,H){return P=ki(P,H),P.index=0,P.sibling=null,P}o(m,"useFiber");function p(P,H,K){return P.index=K,i?(K=P.alternate,K!==null?(K=K.index,K<H?(P.flags|=67108866,H):K):(P.flags|=67108866,H)):(P.flags|=1048576,H)}o(p,"placeChild");function S(P){return i&&P.alternate===null&&(P.flags|=67108866),P}o(S,"placeSingleChild");function T(P,H,K,st){return H===null||H.tag!==6?(H=cg(K,P.mode,st),H.return=P,H):(H=m(H,K),H.return=P,H)}o(T,"updateTextNode");function D(P,H,K,st){var Tt=K.type;return Tt===w?rt(P,H,K.props.children,st,K.key):H!==null&&(H.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===k&&js(Tt)===H.type)?(H=m(H,K.props),Ic(H,K),H.return=P,H):(H=qf(K.type,K.key,K.props,null,P.mode,st),Ic(H,K),H.return=P,H)}o(D,"updateElement");function X(P,H,K,st){return H===null||H.tag!==4||H.stateNode.containerInfo!==K.containerInfo||H.stateNode.implementation!==K.implementation?(H=ug(K,P.mode,st),H.return=P,H):(H=m(H,K.children||[]),H.return=P,H)}o(X,"updatePortal");function rt(P,H,K,st,Tt){return H===null||H.tag!==7?(H=Os(K,P.mode,st,Tt),H.return=P,H):(H=m(H,K),H.return=P,H)}o(rt,"updateFragment");function ct(P,H,K){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=cg(""+H,P.mode,K),H.return=P,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return K=qf(H.type,H.key,H.props,null,P.mode,K),Ic(K,H),K.return=P,K;case C:return H=ug(H,P.mode,K),H.return=P,H;case k:return H=js(H),ct(P,H,K)}if(J(H)||ft(H))return H=Os(H,P.mode,K,null),H.return=P,H;if(typeof H.then=="function")return ct(P,Qf(H),K);if(H.$$typeof===I)return ct(P,Yf(P,H),K);Zf(P,H)}return null}o(ct,"createChild");function Q(P,H,K,st){var Tt=H!==null?H.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return Tt!==null?null:T(P,H,""+K,st);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return K.key===Tt?D(P,H,K,st):null;case C:return K.key===Tt?X(P,H,K,st):null;case k:return K=js(K),Q(P,H,K,st)}if(J(K)||ft(K))return Tt!==null?null:rt(P,H,K,st,null);if(typeof K.then=="function")return Q(P,H,Qf(K),st);if(K.$$typeof===I)return Q(P,H,Yf(P,K),st);Zf(P,K)}return null}o(Q,"updateSlot");function W(P,H,K,st,Tt){if(typeof st=="string"&&st!==""||typeof st=="number"||typeof st=="bigint")return P=P.get(K)||null,T(H,P,""+st,Tt);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case x:return P=P.get(st.key===null?K:st.key)||null,D(H,P,st,Tt);case C:return P=P.get(st.key===null?K:st.key)||null,X(H,P,st,Tt);case k:return st=js(st),W(P,H,K,st,Tt)}if(J(st)||ft(st))return P=P.get(K)||null,rt(H,P,st,Tt,null);if(typeof st.then=="function")return W(P,H,K,Qf(st),Tt);if(st.$$typeof===I)return W(P,H,K,Yf(H,st),Tt);Zf(H,st)}return null}o(W,"updateFromMap");function pt(P,H,K,st){for(var Tt=null,Zt=null,bt=H,Bt=H=0,Yt=null;bt!==null&&Bt<K.length;Bt++){bt.index>Bt?(Yt=bt,bt=null):Yt=bt.sibling;var Jt=Q(P,bt,K[Bt],st);if(Jt===null){bt===null&&(bt=Yt);break}i&&bt&&Jt.alternate===null&&s(P,bt),H=p(Jt,H,Bt),Zt===null?Tt=Jt:Zt.sibling=Jt,Zt=Jt,bt=Yt}if(Bt===K.length)return l(P,bt),Xt&&Fi(P,Bt),Tt;if(bt===null){for(;Bt<K.length;Bt++)bt=ct(P,K[Bt],st),bt!==null&&(H=p(bt,H,Bt),Zt===null?Tt=bt:Zt.sibling=bt,Zt=bt);return Xt&&Fi(P,Bt),Tt}for(bt=u(bt);Bt<K.length;Bt++)Yt=W(bt,P,Bt,K[Bt],st),Yt!==null&&(i&&Yt.alternate!==null&&bt.delete(Yt.key===null?Bt:Yt.key),H=p(Yt,H,Bt),Zt===null?Tt=Yt:Zt.sibling=Yt,Zt=Yt);return i&&bt.forEach(function(Xo){return s(P,Xo)}),Xt&&Fi(P,Bt),Tt}o(pt,"reconcileChildrenArray");function At(P,H,K,st){if(K==null)throw Error(r(151));for(var Tt=null,Zt=null,bt=H,Bt=H=0,Yt=null,Jt=K.next();bt!==null&&!Jt.done;Bt++,Jt=K.next()){bt.index>Bt?(Yt=bt,bt=null):Yt=bt.sibling;var Xo=Q(P,bt,Jt.value,st);if(Xo===null){bt===null&&(bt=Yt);break}i&&bt&&Xo.alternate===null&&s(P,bt),H=p(Xo,H,Bt),Zt===null?Tt=Xo:Zt.sibling=Xo,Zt=Xo,bt=Yt}if(Jt.done)return l(P,bt),Xt&&Fi(P,Bt),Tt;if(bt===null){for(;!Jt.done;Bt++,Jt=K.next())Jt=ct(P,Jt.value,st),Jt!==null&&(H=p(Jt,H,Bt),Zt===null?Tt=Jt:Zt.sibling=Jt,Zt=Jt);return Xt&&Fi(P,Bt),Tt}for(bt=u(bt);!Jt.done;Bt++,Jt=K.next())Jt=W(bt,P,Bt,Jt.value,st),Jt!==null&&(i&&Jt.alternate!==null&&bt.delete(Jt.key===null?Bt:Jt.key),H=p(Jt,H,Bt),Zt===null?Tt=Jt:Zt.sibling=Jt,Zt=Jt);return i&&bt.forEach(function(I5){return s(P,I5)}),Xt&&Fi(P,Bt),Tt}o(At,"reconcileChildrenIterator");function ue(P,H,K,st){if(typeof K=="object"&&K!==null&&K.type===w&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case x:t:{for(var Tt=K.key;H!==null;){if(H.key===Tt){if(Tt=K.type,Tt===w){if(H.tag===7){l(P,H.sibling),st=m(H,K.props.children),st.return=P,P=st;break t}}else if(H.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===k&&js(Tt)===H.type){l(P,H.sibling),st=m(H,K.props),Ic(st,K),st.return=P,P=st;break t}l(P,H);break}else s(P,H);H=H.sibling}K.type===w?(st=Os(K.props.children,P.mode,st,K.key),st.return=P,P=st):(st=qf(K.type,K.key,K.props,null,P.mode,st),Ic(st,K),st.return=P,P=st)}return S(P);case C:t:{for(Tt=K.key;H!==null;){if(H.key===Tt)if(H.tag===4&&H.stateNode.containerInfo===K.containerInfo&&H.stateNode.implementation===K.implementation){l(P,H.sibling),st=m(H,K.children||[]),st.return=P,P=st;break t}else{l(P,H);break}else s(P,H);H=H.sibling}st=ug(K,P.mode,st),st.return=P,P=st}return S(P);case k:return K=js(K),ue(P,H,K,st)}if(J(K))return pt(P,H,K,st);if(ft(K)){if(Tt=ft(K),typeof Tt!="function")throw Error(r(150));return K=Tt.call(K),At(P,H,K,st)}if(typeof K.then=="function")return ue(P,H,Qf(K),st);if(K.$$typeof===I)return ue(P,H,Yf(P,K),st);Zf(P,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,H!==null&&H.tag===6?(l(P,H.sibling),st=m(H,K),st.return=P,P=st):(l(P,H),st=cg(K,P.mode,st),st.return=P,P=st),S(P)):l(P,H)}return o(ue,"reconcileChildFibersImpl"),function(P,H,K,st){try{jc=0;var Tt=ue(P,H,K,st);return ka=null,Tt}catch(bt){if(bt===Ha||bt===Kf)throw bt;var Zt=Qn(29,bt,null,P.mode);return Zt.lanes=st,Zt.return=P,Zt}}}o(XE,"createChildReconciler");var Ls=XE(!0),QE=XE(!1),_o=!1;function Eg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}o(Eg,"initializeUpdateQueue");function wg(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}o(wg,"cloneUpdateQueue");function Do(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}o(Do,"createUpdate");function jo(i,s,l){var u=i.updateQueue;if(u===null)return null;if(u=u.shared,(ee&2)!==0){var m=u.pending;return m===null?s.next=s:(s.next=m.next,m.next=s),u.pending=s,s=Ff(i),DE(i,null,l),s}return kf(i,u,s,l),Ff(i)}o(jo,"enqueueUpdate");function Lc(i,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var u=s.lanes;u&=i.pendingLanes,l|=u,s.lanes=l,kx(i,l)}}o(Lc,"entangleTransitions");function Tg(i,s){var l=i.updateQueue,u=i.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var m=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?m=p=S:p=p.next=S,l=l.next}while(l!==null);p===null?m=p=s:p=p.next=s}else m=p=s;l={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=s:i.next=s,l.lastBaseUpdate=s}o(Tg,"enqueueCapturedUpdate");var Ag=!1;function zc(){if(Ag){var i=Ua;if(i!==null)throw i}}o(zc,"suspendIfUpdateReadFromEntangledAsyncAction");function Bc(i,s,l,u){Ag=!1;var m=i.updateQueue;_o=!1;var p=m.firstBaseUpdate,S=m.lastBaseUpdate,T=m.shared.pending;if(T!==null){m.shared.pending=null;var D=T,X=D.next;D.next=null,S===null?p=X:S.next=X,S=D;var rt=i.alternate;rt!==null&&(rt=rt.updateQueue,T=rt.lastBaseUpdate,T!==S&&(T===null?rt.firstBaseUpdate=X:T.next=X,rt.lastBaseUpdate=D))}if(p!==null){var ct=m.baseState;S=0,rt=X=D=null,T=p;do{var Q=T.lane&-536870913,W=Q!==T.lane;if(W?(Gt&Q)===Q:(u&Q)===Q){Q!==0&&Q===Ba&&(Ag=!0),rt!==null&&(rt=rt.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});t:{var pt=i,At=T;Q=s;var ue=l;switch(At.tag){case 1:if(pt=At.payload,typeof pt=="function"){ct=pt.call(ue,ct,Q);break t}ct=pt;break t;case 3:pt.flags=pt.flags&-65537|128;case 0:if(pt=At.payload,Q=typeof pt=="function"?pt.call(ue,ct,Q):pt,Q==null)break t;ct=v({},ct,Q);break t;case 2:_o=!0}}Q=T.callback,Q!==null&&(i.flags|=64,W&&(i.flags|=8192),W=m.callbacks,W===null?m.callbacks=[Q]:W.push(Q))}else W={lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},rt===null?(X=rt=W,D=ct):rt=rt.next=W,S|=Q;if(T=T.next,T===null){if(T=m.shared.pending,T===null)break;W=T,T=W.next,W.next=null,m.lastBaseUpdate=W,m.shared.pending=null}}while(!0);rt===null&&(D=ct),m.baseState=D,m.firstBaseUpdate=X,m.lastBaseUpdate=rt,p===null&&(m.shared.lanes=0),Uo|=S,i.lanes=S,i.memoizedState=ct}}o(Bc,"processUpdateQueue");function ZE(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}o(ZE,"callCallback");function JE(i,s){var l=i.callbacks;if(l!==null)for(i.callbacks=null,i=0;i<l.length;i++)ZE(l[i],s)}o(JE,"commitCallbacks");var Fa=_(null),Jf=_(0);function WE(i,s){i=Wi,lt(Jf,i),lt(Fa,s),Wi=i|s.baseLanes}o(WE,"pushHiddenContext");function Cg(){lt(Jf,Wi),lt(Fa,Fa.current)}o(Cg,"reuseHiddenContextOnStack");function $g(){Wi=Jf.current,Y(Fa),Y(Jf)}o($g,"popHiddenContext");var Zn=_(null),Mr=null;function Io(i){var s=i.alternate;lt(Be,Be.current&1),lt(Zn,i),Mr===null&&(s===null||Fa.current!==null||s.memoizedState!==null)&&(Mr=i)}o(Io,"pushPrimaryTreeSuspenseHandler");function Mg(i){lt(Be,Be.current),lt(Zn,i),Mr===null&&(Mr=i)}o(Mg,"pushDehydratedActivitySuspenseHandler");function tw(i){i.tag===22?(lt(Be,Be.current),lt(Zn,i),Mr===null&&(Mr=i)):Lo()}o(tw,"pushOffscreenSuspenseHandler");function Lo(){lt(Be,Be.current),lt(Zn,Zn.current)}o(Lo,"reuseSuspenseHandlerOnStack");function Jn(i){Y(Zn),Mr===i&&(Mr=null),Y(Be)}o(Jn,"popSuspenseHandler");var Be=_(0);function Wf(i){for(var s=i;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jy(l)||Iy(l)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}o(Wf,"findFirstSuspended");var Gi=0,Lt=null,le=null,Ge=null,td=!1,qa=!1,zs=!1,ed=0,Uc=0,Pa=null,AN=0;function je(){throw Error(r(321))}o(je,"throwInvalidHookError");function Og(i,s){if(s===null)return!1;for(var l=0;l<s.length&&l<i.length;l++)if(!Xn(i[l],s[l]))return!1;return!0}o(Og,"areHookInputsEqual");function Rg(i,s,l,u,m,p){return Gi=p,Lt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,N.H=i===null||i.memoizedState===null?zw:Gg,zs=!1,p=l(u,m),zs=!1,qa&&(p=nw(s,l,u,m)),ew(i),p}o(Rg,"renderWithHooks");function ew(i){N.H=Fc;var s=le!==null&&le.next!==null;if(Gi=0,Ge=le=Lt=null,td=!1,Uc=0,Pa=null,s)throw Error(r(300));i===null||Ye||(i=i.dependencies,i!==null&&Gf(i)&&(Ye=!0))}o(ew,"finishRenderingHooks");function nw(i,s,l,u){Lt=i;var m=0;do{if(qa&&(Pa=null),Uc=0,qa=!1,25<=m)throw Error(r(301));if(m+=1,Ge=le=null,i.updateQueue!=null){var p=i.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}N.H=Bw,p=s(l,u)}while(qa);return p}o(nw,"renderWithHooksAgain");function CN(){var i=N.H,s=i.useState()[0];return s=typeof s.then=="function"?Hc(s):s,i=i.useState()[0],(le!==null?le.memoizedState:null)!==i&&(Lt.flags|=1024),s}o(CN,"TransitionAwareHostComponent");function Ng(){var i=ed!==0;return ed=0,i}o(Ng,"checkDidRenderIdHook");function _g(i,s,l){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~l}o(_g,"bailoutHooks");function Dg(i){if(td){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}td=!1}Gi=0,Ge=le=Lt=null,qa=!1,Uc=ed=0,Pa=null}o(Dg,"resetHooksOnUnwind");function wn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?Lt.memoizedState=Ge=i:Ge=Ge.next=i,Ge}o(wn,"mountWorkInProgressHook");function Ue(){if(le===null){var i=Lt.alternate;i=i!==null?i.memoizedState:null}else i=le.next;var s=Ge===null?Lt.memoizedState:Ge.next;if(s!==null)Ge=s,le=i;else{if(i===null)throw Lt.alternate===null?Error(r(467)):Error(r(310));le=i,i={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},Ge===null?Lt.memoizedState=Ge=i:Ge=Ge.next=i}return Ge}o(Ue,"updateWorkInProgressHook");function nd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}o(nd,"createFunctionComponentUpdateQueue");function Hc(i){var s=Uc;return Uc+=1,Pa===null&&(Pa=[]),i=YE(Pa,i,s),s=Lt,(Ge===null?s.memoizedState:Ge.next)===null&&(s=s.alternate,N.H=s===null||s.memoizedState===null?zw:Gg),i}o(Hc,"useThenable");function rd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Hc(i);if(i.$$typeof===I)return cn(i)}throw Error(r(438,String(i)))}o(rd,"use");function jg(i){var s=null,l=Lt.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var u=Lt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(s={data:u.data.map(function(m){return m.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=nd(),Lt.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(i),u=0;u<i;u++)l[u]=nt;return s.index++,l}o(jg,"useMemoCache");function Yi(i,s){return typeof s=="function"?s(i):s}o(Yi,"basicStateReducer");function id(i){var s=Ue();return Ig(s,le,i)}o(id,"updateReducer");function Ig(i,s,l){var u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=l;var m=i.baseQueue,p=u.pending;if(p!==null){if(m!==null){var S=m.next;m.next=p.next,p.next=S}s.baseQueue=m=p,u.pending=null}if(p=i.baseState,m===null)i.memoizedState=p;else{s=m.next;var T=S=null,D=null,X=s,rt=!1;do{var ct=X.lane&-536870913;if(ct!==X.lane?(Gt&ct)===ct:(Gi&ct)===ct){var Q=X.revertLane;if(Q===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ct===Ba&&(rt=!0);else if((Gi&Q)===Q){X=X.next,Q===Ba&&(rt=!0);continue}else ct={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},D===null?(T=D=ct,S=p):D=D.next=ct,Lt.lanes|=Q,Uo|=Q;ct=X.action,zs&&l(p,ct),p=X.hasEagerState?X.eagerState:l(p,ct)}else Q={lane:ct,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},D===null?(T=D=Q,S=p):D=D.next=Q,Lt.lanes|=ct,Uo|=ct;X=X.next}while(X!==null&&X!==s);if(D===null?S=p:D.next=T,!Xn(p,i.memoizedState)&&(Ye=!0,rt&&(l=Ua,l!==null)))throw l;i.memoizedState=p,i.baseState=S,i.baseQueue=D,u.lastRenderedState=p}return m===null&&(u.lanes=0),[i.memoizedState,u.dispatch]}o(Ig,"updateReducerImpl");function Lg(i){var s=Ue(),l=s.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=i;var u=l.dispatch,m=l.pending,p=s.memoizedState;if(m!==null){l.pending=null;var S=m=m.next;do p=i(p,S.action),S=S.next;while(S!==m);Xn(p,s.memoizedState)||(Ye=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),l.lastRenderedState=p}return[p,u]}o(Lg,"rerenderReducer");function rw(i,s,l){var u=Lt,m=Ue(),p=Xt;if(p){if(l===void 0)throw Error(r(407));l=l()}else l=s();var S=!Xn((le||m).memoizedState,l);if(S&&(m.memoizedState=l,Ye=!0),m=m.queue,Ug(sw.bind(null,u,m,i),[i]),m.getSnapshot!==s||S||Ge!==null&&Ge.memoizedState.tag&1){if(u.flags|=2048,Ga(9,{destroy:void 0},ow.bind(null,u,m,l,s),null),me===null)throw Error(r(349));p||(Gi&127)!==0||iw(u,s,l)}return l}o(rw,"updateSyncExternalStore");function iw(i,s,l){i.flags|=16384,i={getSnapshot:s,value:l},s=Lt.updateQueue,s===null?(s=nd(),Lt.updateQueue=s,s.stores=[i]):(l=s.stores,l===null?s.stores=[i]:l.push(i))}o(iw,"pushStoreConsistencyCheck");function ow(i,s,l,u){s.value=l,s.getSnapshot=u,aw(s)&&lw(i)}o(ow,"updateStoreInstance");function sw(i,s,l){return l(function(){aw(s)&&lw(i)})}o(sw,"subscribeToStore");function aw(i){var s=i.getSnapshot;i=i.value;try{var l=s();return!Xn(i,l)}catch{return!0}}o(aw,"checkIfSnapshotChanged");function lw(i){var s=Ms(i,2);s!==null&&In(s,i,2)}o(lw,"forceStoreRerender");function zg(i){var s=wn();if(typeof i=="function"){var l=i;if(i=l(),zs){Ao(!0);try{l()}finally{Ao(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:i},s}o(zg,"mountStateImpl");function cw(i,s,l,u){return i.baseState=l,Ig(i,le,typeof u=="function"?u:Yi)}o(cw,"updateOptimisticImpl");function $N(i,s,l,u,m){if(ad(i))throw Error(r(485));if(i=s.action,i!==null){var p={payload:m,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:o(function(S){p.listeners.push(S)},"then")};N.T!==null?l(!0):p.isTransition=!1,u(p),l=s.pending,l===null?(p.next=s.pending=p,uw(s,p)):(p.next=l.next,s.pending=l.next=p)}}o($N,"dispatchActionState");function uw(i,s){var l=s.action,u=s.payload,m=i.state;if(s.isTransition){var p=N.T,S={};N.T=S;try{var T=l(m,u),D=N.S;D!==null&&D(S,T),fw(i,s,T)}catch(X){Bg(i,s,X)}finally{p!==null&&S.types!==null&&(p.types=S.types),N.T=p}}else try{p=l(m,u),fw(i,s,p)}catch(X){Bg(i,s,X)}}o(uw,"runActionStateAction");function fw(i,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){dw(i,s,u)},function(u){return Bg(i,s,u)}):dw(i,s,l)}o(fw,"handleActionReturnValue");function dw(i,s,l){s.status="fulfilled",s.value=l,mw(s),i.state=l,s=i.pending,s!==null&&(l=s.next,l===s?i.pending=null:(l=l.next,s.next=l,uw(i,l)))}o(dw,"onActionSuccess");function Bg(i,s,l){var u=i.pending;if(i.pending=null,u!==null){u=u.next;do s.status="rejected",s.reason=l,mw(s),s=s.next;while(s!==u)}i.action=null}o(Bg,"onActionError");function mw(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}o(mw,"notifyActionListeners");function hw(i,s){return s}o(hw,"actionStateReducer");function pw(i,s){if(Xt){var l=me.formState;if(l!==null){t:{var u=Lt;if(Xt){if(Ee){e:{for(var m=Ee,p=$r;m.nodeType!==8;){if(!p){m=null;break e}if(m=Or(m.nextSibling),m===null){m=null;break e}}p=m.data,m=p==="F!"||p==="F"?m:null}if(m){Ee=Or(m.nextSibling),u=m.data==="F!";break t}}Ro(u)}u=!1}u&&(s=l[0])}}return l=wn(),l.memoizedState=l.baseState=s,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hw,lastRenderedState:s},l.queue=u,l=jw.bind(null,Lt,u),u.dispatch=l,u=zg(!1),p=Pg.bind(null,Lt,!1,u.queue),u=wn(),m={state:s,dispatch:null,action:i,pending:null},u.queue=m,l=$N.bind(null,Lt,m,p,l),m.dispatch=l,u.memoizedState=i,[s,l,!1]}o(pw,"mountActionState");function gw(i){var s=Ue();return yw(s,le,i)}o(gw,"updateActionState");function yw(i,s,l){if(s=Ig(i,s,hw)[0],i=id(Yi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var u=Hc(s)}catch(S){throw S===Ha?Kf:S}else u=s;s=Ue();var m=s.queue,p=m.dispatch;return l!==s.memoizedState&&(Lt.flags|=2048,Ga(9,{destroy:void 0},MN.bind(null,m,l),null)),[u,p,i]}o(yw,"updateActionStateImpl");function MN(i,s){i.action=s}o(MN,"actionStateActionEffect");function bw(i){var s=Ue(),l=le;if(l!==null)return yw(s,l,i);Ue(),s=s.memoizedState,l=Ue();var u=l.queue.dispatch;return l.memoizedState=i,[s,u,!1]}o(bw,"rerenderActionState");function Ga(i,s,l,u){return i={tag:i,create:l,deps:u,inst:s,next:null},s=Lt.updateQueue,s===null&&(s=nd(),Lt.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=i.next=i:(u=l.next,l.next=i,i.next=u,s.lastEffect=i),i}o(Ga,"pushSimpleEffect");function vw(){return Ue().memoizedState}o(vw,"updateRef");function od(i,s,l,u){var m=wn();Lt.flags|=i,m.memoizedState=Ga(1|s,{destroy:void 0},l,u===void 0?null:u)}o(od,"mountEffectImpl");function sd(i,s,l,u){var m=Ue();u=u===void 0?null:u;var p=m.memoizedState.inst;le!==null&&u!==null&&Og(u,le.memoizedState.deps)?m.memoizedState=Ga(s,p,l,u):(Lt.flags|=i,m.memoizedState=Ga(1|s,p,l,u))}o(sd,"updateEffectImpl");function Sw(i,s){od(8390656,8,i,s)}o(Sw,"mountEffect");function Ug(i,s){sd(2048,8,i,s)}o(Ug,"updateEffect");function ON(i){Lt.flags|=4;var s=Lt.updateQueue;if(s===null)s=nd(),Lt.updateQueue=s,s.events=[i];else{var l=s.events;l===null?s.events=[i]:l.push(i)}}o(ON,"useEffectEventImpl");function xw(i){var s=Ue().memoizedState;return ON({ref:s,nextImpl:i}),function(){if((ee&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}o(xw,"updateEvent");function Ew(i,s){return sd(4,2,i,s)}o(Ew,"updateInsertionEffect");function ww(i,s){return sd(4,4,i,s)}o(ww,"updateLayoutEffect");function Tw(i,s){if(typeof s=="function"){i=i();var l=s(i);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}o(Tw,"imperativeHandleEffect");function Aw(i,s,l){l=l!=null?l.concat([i]):null,sd(4,4,Tw.bind(null,s,i),l)}o(Aw,"updateImperativeHandle");function Hg(){}o(Hg,"mountDebugValue");function Cw(i,s){var l=Ue();s=s===void 0?null:s;var u=l.memoizedState;return s!==null&&Og(s,u[1])?u[0]:(l.memoizedState=[i,s],i)}o(Cw,"updateCallback");function $w(i,s){var l=Ue();s=s===void 0?null:s;var u=l.memoizedState;if(s!==null&&Og(s,u[1]))return u[0];if(u=i(),zs){Ao(!0);try{i()}finally{Ao(!1)}}return l.memoizedState=[u,s],u}o($w,"updateMemo");function kg(i,s,l){return l===void 0||(Gi&1073741824)!==0&&(Gt&261930)===0?i.memoizedState=s:(i.memoizedState=l,i=M2(),Lt.lanes|=i,Uo|=i,l)}o(kg,"mountDeferredValueImpl");function Mw(i,s,l,u){return Xn(l,s)?l:Fa.current!==null?(i=kg(i,l,u),Xn(i,s)||(Ye=!0),i):(Gi&42)===0||(Gi&1073741824)!==0&&(Gt&261930)===0?(Ye=!0,i.memoizedState=l):(i=M2(),Lt.lanes|=i,Uo|=i,s)}o(Mw,"updateDeferredValueImpl");function Ow(i,s,l,u,m){var p=U.p;U.p=p!==0&&8>p?p:8;var S=N.T,T={};N.T=T,Pg(i,!1,s,l);try{var D=m(),X=N.S;if(X!==null&&X(T,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var rt=TN(D,u);kc(i,s,rt,er(i))}else kc(i,s,u,er(i))}catch(ct){kc(i,s,{then:o(function(){},"then"),status:"rejected",reason:ct},er())}finally{U.p=p,S!==null&&T.types!==null&&(S.types=T.types),N.T=S}}o(Ow,"startTransition");function RN(){}o(RN,"noop");function Fg(i,s,l,u){if(i.tag!==5)throw Error(r(476));var m=Rw(i).queue;Ow(i,m,s,j,l===null?RN:function(){return Nw(i),l(u)})}o(Fg,"startHostTransition");function Rw(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:j},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:l},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}o(Rw,"ensureFormComponentIsStateful");function Nw(i){var s=Rw(i);s.next===null&&(s=i.alternate.memoizedState),kc(i,s.next.queue,{},er())}o(Nw,"requestFormReset$1");function qg(){return cn(iu)}o(qg,"useHostTransitionStatus");function _w(){return Ue().memoizedState}o(_w,"updateId");function Dw(){return Ue().memoizedState}o(Dw,"updateRefresh");function NN(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var l=er();i=Do(l);var u=jo(s,i,l);u!==null&&(In(u,s,l),Lc(u,s,l)),s={cache:bg()},i.payload=s;return}s=s.return}}o(NN,"refreshCache");function _N(i,s,l){var u=er();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ad(i)?Iw(s,l):(l=ag(i,s,l,u),l!==null&&(In(l,i,u),Lw(l,s,u)))}o(_N,"dispatchReducerAction");function jw(i,s,l){var u=er();kc(i,s,l,u)}o(jw,"dispatchSetState");function kc(i,s,l,u){var m={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ad(i))Iw(s,m);else{var p=i.alternate;if(i.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var S=s.lastRenderedState,T=p(S,l);if(m.hasEagerState=!0,m.eagerState=T,Xn(T,S))return kf(i,s,m,0),me===null&&Hf(),!1}catch{}if(l=ag(i,s,m,u),l!==null)return In(l,i,u),Lw(l,s,u),!0}return!1}o(kc,"dispatchSetStateInternal");function Pg(i,s,l,u){if(u={lane:2,revertLane:Ey(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ad(i)){if(s)throw Error(r(479))}else s=ag(i,l,u,2),s!==null&&In(s,i,2)}o(Pg,"dispatchOptimisticSetState");function ad(i){var s=i.alternate;return i===Lt||s!==null&&s===Lt}o(ad,"isRenderPhaseUpdate");function Iw(i,s){qa=td=!0;var l=i.pending;l===null?s.next=s:(s.next=l.next,l.next=s),i.pending=s}o(Iw,"enqueueRenderPhaseUpdate");function Lw(i,s,l){if((l&4194048)!==0){var u=s.lanes;u&=i.pendingLanes,l|=u,s.lanes=l,kx(i,l)}}o(Lw,"entangleTransitionUpdate");var Fc={readContext:cn,use:rd,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useLayoutEffect:je,useInsertionEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useSyncExternalStore:je,useId:je,useHostTransitionStatus:je,useFormState:je,useActionState:je,useOptimistic:je,useMemoCache:je,useCacheRefresh:je};Fc.useEffectEvent=je;var zw={readContext:cn,use:rd,useCallback:o(function(i,s){return wn().memoizedState=[i,s===void 0?null:s],i},"useCallback"),useContext:cn,useEffect:Sw,useImperativeHandle:o(function(i,s,l){l=l!=null?l.concat([i]):null,od(4194308,4,Tw.bind(null,s,i),l)},"useImperativeHandle"),useLayoutEffect:o(function(i,s){return od(4194308,4,i,s)},"useLayoutEffect"),useInsertionEffect:o(function(i,s){od(4,2,i,s)},"useInsertionEffect"),useMemo:o(function(i,s){var l=wn();s=s===void 0?null:s;var u=i();if(zs){Ao(!0);try{i()}finally{Ao(!1)}}return l.memoizedState=[u,s],u},"useMemo"),useReducer:o(function(i,s,l){var u=wn();if(l!==void 0){var m=l(s);if(zs){Ao(!0);try{l(s)}finally{Ao(!1)}}}else m=s;return u.memoizedState=u.baseState=m,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:m},u.queue=i,i=i.dispatch=_N.bind(null,Lt,i),[u.memoizedState,i]},"useReducer"),useRef:o(function(i){var s=wn();return i={current:i},s.memoizedState=i},"useRef"),useState:o(function(i){i=zg(i);var s=i.queue,l=jw.bind(null,Lt,s);return s.dispatch=l,[i.memoizedState,l]},"useState"),useDebugValue:Hg,useDeferredValue:o(function(i,s){var l=wn();return kg(l,i,s)},"useDeferredValue"),useTransition:o(function(){var i=zg(!1);return i=Ow.bind(null,Lt,i.queue,!0,!1),wn().memoizedState=i,[!1,i]},"useTransition"),useSyncExternalStore:o(function(i,s,l){var u=Lt,m=wn();if(Xt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=s(),me===null)throw Error(r(349));(Gt&127)!==0||iw(u,s,l)}m.memoizedState=l;var p={value:l,getSnapshot:s};return m.queue=p,Sw(sw.bind(null,u,p,i),[i]),u.flags|=2048,Ga(9,{destroy:void 0},ow.bind(null,u,p,l,s),null),l},"useSyncExternalStore"),useId:o(function(){var i=wn(),s=me.identifierPrefix;if(Xt){var l=yi,u=gi;l=(u&~(1<<32-Kn(u)-1)).toString(32)+l,s="_"+s+"R_"+l,l=ed++,0<l&&(s+="H"+l.toString(32)),s+="_"}else l=AN++,s="_"+s+"r_"+l.toString(32)+"_";return i.memoizedState=s},"useId"),useHostTransitionStatus:qg,useFormState:pw,useActionState:pw,useOptimistic:o(function(i){var s=wn();s.memoizedState=s.baseState=i;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=Pg.bind(null,Lt,!0,l),l.dispatch=s,[i,s]},"useOptimistic"),useMemoCache:jg,useCacheRefresh:o(function(){return wn().memoizedState=NN.bind(null,Lt)},"useCacheRefresh"),useEffectEvent:o(function(i){var s=wn(),l={impl:i};return s.memoizedState=l,function(){if((ee&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}},"useEffectEvent")},Gg={readContext:cn,use:rd,useCallback:Cw,useContext:cn,useEffect:Ug,useImperativeHandle:Aw,useInsertionEffect:Ew,useLayoutEffect:ww,useMemo:$w,useReducer:id,useRef:vw,useState:o(function(){return id(Yi)},"useState"),useDebugValue:Hg,useDeferredValue:o(function(i,s){var l=Ue();return Mw(l,le.memoizedState,i,s)},"useDeferredValue"),useTransition:o(function(){var i=id(Yi)[0],s=Ue().memoizedState;return[typeof i=="boolean"?i:Hc(i),s]},"useTransition"),useSyncExternalStore:rw,useId:_w,useHostTransitionStatus:qg,useFormState:gw,useActionState:gw,useOptimistic:o(function(i,s){var l=Ue();return cw(l,le,i,s)},"useOptimistic"),useMemoCache:jg,useCacheRefresh:Dw};Gg.useEffectEvent=xw;var Bw={readContext:cn,use:rd,useCallback:Cw,useContext:cn,useEffect:Ug,useImperativeHandle:Aw,useInsertionEffect:Ew,useLayoutEffect:ww,useMemo:$w,useReducer:Lg,useRef:vw,useState:o(function(){return Lg(Yi)},"useState"),useDebugValue:Hg,useDeferredValue:o(function(i,s){var l=Ue();return le===null?kg(l,i,s):Mw(l,le.memoizedState,i,s)},"useDeferredValue"),useTransition:o(function(){var i=Lg(Yi)[0],s=Ue().memoizedState;return[typeof i=="boolean"?i:Hc(i),s]},"useTransition"),useSyncExternalStore:rw,useId:_w,useHostTransitionStatus:qg,useFormState:bw,useActionState:bw,useOptimistic:o(function(i,s){var l=Ue();return le!==null?cw(l,le,i,s):(l.baseState=i,[i,l.queue.dispatch])},"useOptimistic"),useMemoCache:jg,useCacheRefresh:Dw};Bw.useEffectEvent=xw;function Yg(i,s,l,u){s=i.memoizedState,l=l(u,s),l=l==null?s:v({},s,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}o(Yg,"applyDerivedStateFromProps");var Vg={enqueueSetState:o(function(i,s,l){i=i._reactInternals;var u=er(),m=Do(u);m.payload=s,l!=null&&(m.callback=l),s=jo(i,m,u),s!==null&&(In(s,i,u),Lc(s,i,u))},"enqueueSetState"),enqueueReplaceState:o(function(i,s,l){i=i._reactInternals;var u=er(),m=Do(u);m.tag=1,m.payload=s,l!=null&&(m.callback=l),s=jo(i,m,u),s!==null&&(In(s,i,u),Lc(s,i,u))},"enqueueReplaceState"),enqueueForceUpdate:o(function(i,s){i=i._reactInternals;var l=er(),u=Do(l);u.tag=2,s!=null&&(u.callback=s),s=jo(i,u,l),s!==null&&(In(s,i,l),Lc(s,i,l))},"enqueueForceUpdate")};function Uw(i,s,l,u,m,p,S){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(u,p,S):s.prototype&&s.prototype.isPureReactComponent?!Mc(l,u)||!Mc(m,p):!0}o(Uw,"checkShouldComponentUpdate");function Hw(i,s,l,u){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,u),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,u),s.state!==i&&Vg.enqueueReplaceState(s,s.state,null)}o(Hw,"callComponentWillReceiveProps");function Bs(i,s){var l=s;if("ref"in s){l={};for(var u in s)u!=="ref"&&(l[u]=s[u])}if(i=i.defaultProps){l===s&&(l=v({},l));for(var m in i)l[m]===void 0&&(l[m]=i[m])}return l}o(Bs,"resolveClassComponentProps");function kw(i){Uf(i)}o(kw,"defaultOnUncaughtError");function Fw(i){console.error(i)}o(Fw,"defaultOnCaughtError");function qw(i){Uf(i)}o(qw,"defaultOnRecoverableError");function ld(i,s){try{var l=i.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(u){setTimeout(function(){throw u})}}o(ld,"logUncaughtError");function Pw(i,s,l){try{var u=i.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(m){setTimeout(function(){throw m})}}o(Pw,"logCaughtError");function Kg(i,s,l){return l=Do(l),l.tag=3,l.payload={element:null},l.callback=function(){ld(i,s)},l}o(Kg,"createRootErrorUpdate");function Gw(i){return i=Do(i),i.tag=3,i}o(Gw,"createClassErrorUpdate");function Yw(i,s,l,u){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var p=u.value;i.payload=function(){return m(p)},i.callback=function(){Pw(s,l,u)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(i.callback=function(){Pw(s,l,u),typeof m!="function"&&(Ho===null?Ho=new Set([this]):Ho.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})})}o(Yw,"initializeClassErrorUpdate");function DN(i,s,l,u,m){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(s=l.alternate,s!==null&&za(s,l,m,!0),l=Zn.current,l!==null){switch(l.tag){case 31:case 13:return Mr===null?Sd():l.alternate===null&&Ie===0&&(Ie=3),l.flags&=-257,l.flags|=65536,l.lanes=m,u===Xf?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([u]):s.add(u),vy(i,u,m)),!1;case 22:return l.flags|=65536,u===Xf?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([u]):l.add(u)),vy(i,u,m)),!1}throw Error(r(435,l.tag))}return vy(i,u,m),Sd(),!1}if(Xt)return s=Zn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=m,u!==mg&&(i=Error(r(422),{cause:u}),Nc(Tr(i,l)))):(u!==mg&&(s=Error(r(423),{cause:u}),Nc(Tr(s,l))),i=i.current.alternate,i.flags|=65536,m&=-m,i.lanes|=m,u=Tr(u,l),m=Kg(i.stateNode,u,m),Tg(i,m),Ie!==4&&(Ie=2)),!1;var p=Error(r(520),{cause:u});if(p=Tr(p,l),Qc===null?Qc=[p]:Qc.push(p),Ie!==4&&(Ie=2),s===null)return!0;u=Tr(u,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,i=m&-m,l.lanes|=i,i=Kg(l.stateNode,u,i),Tg(l,i),!1;case 1:if(s=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ho===null||!Ho.has(p))))return l.flags|=65536,m&=-m,l.lanes|=m,m=Gw(m),Yw(m,i,l,u),Tg(l,m),!1}l=l.return}while(l!==null);return!1}o(DN,"throwException");var Xg=Error(r(461)),Ye=!1;function un(i,s,l,u){s.child=i===null?QE(s,null,l,u):Ls(s,i.child,l,u)}o(un,"reconcileChildren");function Vw(i,s,l,u,m){l=l.render;var p=s.ref;if("ref"in u){var S={};for(var T in u)T!=="ref"&&(S[T]=u[T])}else S=u;return _s(s),u=Rg(i,s,l,S,p,m),T=Ng(),i!==null&&!Ye?(_g(i,s,m),Vi(i,s,m)):(Xt&&T&&fg(s),s.flags|=1,un(i,s,u,m),s.child)}o(Vw,"updateForwardRef");function Kw(i,s,l,u,m){if(i===null){var p=l.type;return typeof p=="function"&&!lg(p)&&p.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=p,Xw(i,s,p,u,m)):(i=qf(l.type,null,u,s,s.mode,m),i.ref=s.ref,i.return=s,s.child=i)}if(p=i.child,!ry(i,m)){var S=p.memoizedProps;if(l=l.compare,l=l!==null?l:Mc,l(S,u)&&i.ref===s.ref)return Vi(i,s,m)}return s.flags|=1,i=ki(p,u),i.ref=s.ref,i.return=s,s.child=i}o(Kw,"updateMemoComponent");function Xw(i,s,l,u,m){if(i!==null){var p=i.memoizedProps;if(Mc(p,u)&&i.ref===s.ref)if(Ye=!1,s.pendingProps=u=p,ry(i,m))(i.flags&131072)!==0&&(Ye=!0);else return s.lanes=i.lanes,Vi(i,s,m)}return Qg(i,s,l,u,m)}o(Xw,"updateSimpleMemoComponent");function Qw(i,s,l,u){var m=u.children,p=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((s.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,i!==null){for(u=s.child=i.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;u=m&~p}else u=0,s.child=null;return Zw(i,s,p,l,u)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Vf(s,p!==null?p.cachePool:null),p!==null?WE(s,p):Cg(),tw(s);else return u=s.lanes=536870912,Zw(i,s,p!==null?p.baseLanes|l:l,l,u)}else p!==null?(Vf(s,p.cachePool),WE(s,p),Lo(),s.memoizedState=null):(i!==null&&Vf(s,null),Cg(),Lo());return un(i,s,m,l),s.child}o(Qw,"updateOffscreenComponent");function qc(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}o(qc,"bailoutOffscreenComponent");function Zw(i,s,l,u,m){var p=Sg();return p=p===null?null:{parent:Pe._currentValue,pool:p},s.memoizedState={baseLanes:l,cachePool:p},i!==null&&Vf(s,null),Cg(),tw(s),i!==null&&za(i,s,u,!0),s.childLanes=m,null}o(Zw,"deferHiddenOffscreenComponent");function cd(i,s){return s=fd({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}o(cd,"mountActivityChildren");function Jw(i,s,l){return Ls(s,i.child,null,l),i=cd(s,s.pendingProps),i.flags|=2,Jn(s),s.memoizedState=null,i}o(Jw,"retryActivityComponentWithoutHydrating");function jN(i,s,l){var u=s.pendingProps,m=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(Xt){if(u.mode==="hidden")return i=cd(s,u),s.lanes=536870912,qc(null,i);if(Mg(s),(i=Ee)?(i=uT(i,$r),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Mo!==null?{id:gi,overflow:yi}:null,retryLane:536870912,hydrationErrors:null},l=IE(i),l.return=s,s.child=l,ln=s,Ee=null)):i=null,i===null)throw Ro(s);return s.lanes=536870912,null}return cd(s,u)}var p=i.memoizedState;if(p!==null){var S=p.dehydrated;if(Mg(s),m)if(s.flags&256)s.flags&=-257,s=Jw(i,s,l);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(Ye||za(i,s,l,!1),m=(l&i.childLanes)!==0,Ye||m){if(u=me,u!==null&&(S=Fx(u,l),S!==0&&S!==p.retryLane))throw p.retryLane=S,Ms(i,S),In(u,i,S),Xg;Sd(),s=Jw(i,s,l)}else i=p.treeContext,Ee=Or(S.nextSibling),ln=s,Xt=!0,Oo=null,$r=!1,i!==null&&BE(s,i),s=cd(s,u),s.flags|=4096;return s}return i=ki(i.child,{mode:u.mode,children:u.children}),i.ref=s.ref,s.child=i,i.return=s,i}o(jN,"updateActivityComponent");function ud(i,s){var l=s.ref;if(l===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(i===null||i.ref!==l)&&(s.flags|=4194816)}}o(ud,"markRef");function Qg(i,s,l,u,m){return _s(s),l=Rg(i,s,l,u,void 0,m),u=Ng(),i!==null&&!Ye?(_g(i,s,m),Vi(i,s,m)):(Xt&&u&&fg(s),s.flags|=1,un(i,s,l,m),s.child)}o(Qg,"updateFunctionComponent");function Ww(i,s,l,u,m,p){return _s(s),s.updateQueue=null,l=nw(s,u,l,m),ew(i),u=Ng(),i!==null&&!Ye?(_g(i,s,p),Vi(i,s,p)):(Xt&&u&&fg(s),s.flags|=1,un(i,s,l,p),s.child)}o(Ww,"replayFunctionComponent");function t2(i,s,l,u,m){if(_s(s),s.stateNode===null){var p=Da,S=l.contextType;typeof S=="object"&&S!==null&&(p=cn(S)),p=new l(u,p),s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Vg,s.stateNode=p,p._reactInternals=s,p=s.stateNode,p.props=u,p.state=s.memoizedState,p.refs={},Eg(s),S=l.contextType,p.context=typeof S=="object"&&S!==null?cn(S):Da,p.state=s.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Yg(s,l,S,u),p.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&Vg.enqueueReplaceState(p,p.state,null),Bc(s,u,p,m),zc(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),u=!0}else if(i===null){p=s.stateNode;var T=s.memoizedProps,D=Bs(l,T);p.props=D;var X=p.context,rt=l.contextType;S=Da,typeof rt=="object"&&rt!==null&&(S=cn(rt));var ct=l.getDerivedStateFromProps;rt=typeof ct=="function"||typeof p.getSnapshotBeforeUpdate=="function",T=s.pendingProps!==T,rt||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(T||X!==S)&&Hw(s,p,u,S),_o=!1;var Q=s.memoizedState;p.state=Q,Bc(s,u,p,m),zc(),X=s.memoizedState,T||Q!==X||_o?(typeof ct=="function"&&(Yg(s,l,ct,u),X=s.memoizedState),(D=_o||Uw(s,l,D,u,Q,X,S))?(rt||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(s.flags|=4194308)):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=u,s.memoizedState=X),p.props=u,p.state=X,p.context=S,u=D):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{p=s.stateNode,wg(i,s),S=s.memoizedProps,rt=Bs(l,S),p.props=rt,ct=s.pendingProps,Q=p.context,X=l.contextType,D=Da,typeof X=="object"&&X!==null&&(D=cn(X)),T=l.getDerivedStateFromProps,(X=typeof T=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==ct||Q!==D)&&Hw(s,p,u,D),_o=!1,Q=s.memoizedState,p.state=Q,Bc(s,u,p,m),zc();var W=s.memoizedState;S!==ct||Q!==W||_o||i!==null&&i.dependencies!==null&&Gf(i.dependencies)?(typeof T=="function"&&(Yg(s,l,T,u),W=s.memoizedState),(rt=_o||Uw(s,l,rt,u,Q,W,D)||i!==null&&i.dependencies!==null&&Gf(i.dependencies))?(X||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,W,D),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,W,D)),typeof p.componentDidUpdate=="function"&&(s.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===i.memoizedProps&&Q===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===i.memoizedProps&&Q===i.memoizedState||(s.flags|=1024),s.memoizedProps=u,s.memoizedState=W),p.props=u,p.state=W,p.context=D,u=rt):(typeof p.componentDidUpdate!="function"||S===i.memoizedProps&&Q===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===i.memoizedProps&&Q===i.memoizedState||(s.flags|=1024),u=!1)}return p=u,ud(i,s),u=(s.flags&128)!==0,p||u?(p=s.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:p.render(),s.flags|=1,i!==null&&u?(s.child=Ls(s,i.child,null,m),s.child=Ls(s,null,l,m)):un(i,s,l,m),s.memoizedState=p.state,i=s.child):i=Vi(i,s,m),i}o(t2,"updateClassComponent");function e2(i,s,l,u){return Rs(),s.flags|=256,un(i,s,l,u),s.child}o(e2,"mountHostRootWithoutHydrating");var Zg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jg(i){return{baseLanes:i,cachePool:PE()}}o(Jg,"mountSuspenseOffscreenState");function Wg(i,s,l){return i=i!==null?i.childLanes&~l:0,s&&(i|=tr),i}o(Wg,"getRemainingWorkInPrimaryTree");function n2(i,s,l){var u=s.pendingProps,m=!1,p=(s.flags&128)!==0,S;if((S=p)||(S=i!==null&&i.memoizedState===null?!1:(Be.current&2)!==0),S&&(m=!0,s.flags&=-129),S=(s.flags&32)!==0,s.flags&=-33,i===null){if(Xt){if(m?Io(s):Lo(),(i=Ee)?(i=uT(i,$r),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Mo!==null?{id:gi,overflow:yi}:null,retryLane:536870912,hydrationErrors:null},l=IE(i),l.return=s,s.child=l,ln=s,Ee=null)):i=null,i===null)throw Ro(s);return Iy(i)?s.lanes=32:s.lanes=536870912,null}var T=u.children;return u=u.fallback,m?(Lo(),m=s.mode,T=fd({mode:"hidden",children:T},m),u=Os(u,m,l,null),T.return=s,u.return=s,T.sibling=u,s.child=T,u=s.child,u.memoizedState=Jg(l),u.childLanes=Wg(i,S,l),s.memoizedState=Zg,qc(null,u)):(Io(s),ty(s,T))}var D=i.memoizedState;if(D!==null&&(T=D.dehydrated,T!==null)){if(p)s.flags&256?(Io(s),s.flags&=-257,s=ey(i,s,l)):s.memoizedState!==null?(Lo(),s.child=i.child,s.flags|=128,s=null):(Lo(),T=u.fallback,m=s.mode,u=fd({mode:"visible",children:u.children},m),T=Os(T,m,l,null),T.flags|=2,u.return=s,T.return=s,u.sibling=T,s.child=u,Ls(s,i.child,null,l),u=s.child,u.memoizedState=Jg(l),u.childLanes=Wg(i,S,l),s.memoizedState=Zg,s=qc(null,u));else if(Io(s),Iy(T)){if(S=T.nextSibling&&T.nextSibling.dataset,S)var X=S.dgst;S=X,u=Error(r(419)),u.stack="",u.digest=S,Nc({value:u,source:null,stack:null}),s=ey(i,s,l)}else if(Ye||za(i,s,l,!1),S=(l&i.childLanes)!==0,Ye||S){if(S=me,S!==null&&(u=Fx(S,l),u!==0&&u!==D.retryLane))throw D.retryLane=u,Ms(i,u),In(S,i,u),Xg;jy(T)||Sd(),s=ey(i,s,l)}else jy(T)?(s.flags|=192,s.child=i.child,s=null):(i=D.treeContext,Ee=Or(T.nextSibling),ln=s,Xt=!0,Oo=null,$r=!1,i!==null&&BE(s,i),s=ty(s,u.children),s.flags|=4096);return s}return m?(Lo(),T=u.fallback,m=s.mode,D=i.child,X=D.sibling,u=ki(D,{mode:"hidden",children:u.children}),u.subtreeFlags=D.subtreeFlags&65011712,X!==null?T=ki(X,T):(T=Os(T,m,l,null),T.flags|=2),T.return=s,u.return=s,u.sibling=T,s.child=u,qc(null,u),u=s.child,T=i.child.memoizedState,T===null?T=Jg(l):(m=T.cachePool,m!==null?(D=Pe._currentValue,m=m.parent!==D?{parent:D,pool:D}:m):m=PE(),T={baseLanes:T.baseLanes|l,cachePool:m}),u.memoizedState=T,u.childLanes=Wg(i,S,l),s.memoizedState=Zg,qc(i.child,u)):(Io(s),l=i.child,i=l.sibling,l=ki(l,{mode:"visible",children:u.children}),l.return=s,l.sibling=null,i!==null&&(S=s.deletions,S===null?(s.deletions=[i],s.flags|=16):S.push(i)),s.child=l,s.memoizedState=null,l)}o(n2,"updateSuspenseComponent");function ty(i,s){return s=fd({mode:"visible",children:s},i.mode),s.return=i,i.child=s}o(ty,"mountSuspensePrimaryChildren");function fd(i,s){return i=Qn(22,i,null,s),i.lanes=0,i}o(fd,"mountWorkInProgressOffscreenFiber");function ey(i,s,l){return Ls(s,i.child,null,l),i=ty(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}o(ey,"retrySuspenseComponentWithoutHydrating");function r2(i,s,l){i.lanes|=s;var u=i.alternate;u!==null&&(u.lanes|=s),gg(i.return,s,l)}o(r2,"scheduleSuspenseWorkOnFiber");function ny(i,s,l,u,m,p){var S=i.memoizedState;S===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:m,treeForkCount:p}:(S.isBackwards=s,S.rendering=null,S.renderingStartTime=0,S.last=u,S.tail=l,S.tailMode=m,S.treeForkCount=p)}o(ny,"initSuspenseListRenderState");function i2(i,s,l){var u=s.pendingProps,m=u.revealOrder,p=u.tail;u=u.children;var S=Be.current,T=(S&2)!==0;if(T?(S=S&1|2,s.flags|=128):S&=1,lt(Be,S),un(i,s,u,l),u=Xt?Rc:0,!T&&i!==null&&(i.flags&128)!==0)t:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&r2(i,l,s);else if(i.tag===19)r2(i,l,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break t;for(;i.sibling===null;){if(i.return===null||i.return===s)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(m){case"forwards":for(l=s.child,m=null;l!==null;)i=l.alternate,i!==null&&Wf(i)===null&&(m=l),l=l.sibling;l=m,l===null?(m=s.child,s.child=null):(m=l.sibling,l.sibling=null),ny(s,!1,m,l,p,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=s.child,s.child=null;m!==null;){if(i=m.alternate,i!==null&&Wf(i)===null){s.child=m;break}i=m.sibling,m.sibling=l,l=m,m=i}ny(s,!0,l,null,p,u);break;case"together":ny(s,!1,null,null,void 0,u);break;default:s.memoizedState=null}return s.child}o(i2,"updateSuspenseListComponent");function Vi(i,s,l){if(i!==null&&(s.dependencies=i.dependencies),Uo|=s.lanes,(l&s.childLanes)===0)if(i!==null){if(za(i,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,l=ki(i,i.pendingProps),s.child=l,l.return=s;i.sibling!==null;)i=i.sibling,l=l.sibling=ki(i,i.pendingProps),l.return=s;l.sibling=null}return s.child}o(Vi,"bailoutOnAlreadyFinishedWork");function ry(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Gf(i)))}o(ry,"checkScheduledUpdateOrContext");function IN(i,s,l){switch(s.tag){case 3:te(s,s.stateNode.containerInfo),No(s,Pe,i.memoizedState.cache),Rs();break;case 27:case 5:ye(s);break;case 4:te(s,s.stateNode.containerInfo);break;case 10:No(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Mg(s),null;break;case 13:var u=s.memoizedState;if(u!==null)return u.dehydrated!==null?(Io(s),s.flags|=128,null):(l&s.child.childLanes)!==0?n2(i,s,l):(Io(s),i=Vi(i,s,l),i!==null?i.sibling:null);Io(s);break;case 19:var m=(i.flags&128)!==0;if(u=(l&s.childLanes)!==0,u||(za(i,s,l,!1),u=(l&s.childLanes)!==0),m){if(u)return i2(i,s,l);s.flags|=128}if(m=s.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),lt(Be,Be.current),u)break;return null;case 22:return s.lanes=0,Qw(i,s,l,s.pendingProps);case 24:No(s,Pe,i.memoizedState.cache)}return Vi(i,s,l)}o(IN,"attemptEarlyBailoutIfNoScheduledUpdate");function o2(i,s,l){if(i!==null)if(i.memoizedProps!==s.pendingProps)Ye=!0;else{if(!ry(i,l)&&(s.flags&128)===0)return Ye=!1,IN(i,s,l);Ye=(i.flags&131072)!==0}else Ye=!1,Xt&&(s.flags&1048576)!==0&&zE(s,Rc,s.index);switch(s.lanes=0,s.tag){case 16:t:{var u=s.pendingProps;if(i=js(s.elementType),s.type=i,typeof i=="function")lg(i)?(u=Bs(i,u),s.tag=1,s=t2(null,s,i,u,l)):(s.tag=0,s=Qg(null,s,i,u,l));else{if(i!=null){var m=i.$$typeof;if(m===F){s.tag=11,s=Vw(null,s,i,u,l);break t}else if(m===B){s.tag=14,s=Kw(null,s,i,u,l);break t}}throw s=V(i)||i,Error(r(306,s,""))}}return s;case 0:return Qg(i,s,s.type,s.pendingProps,l);case 1:return u=s.type,m=Bs(u,s.pendingProps),t2(i,s,u,m,l);case 3:t:{if(te(s,s.stateNode.containerInfo),i===null)throw Error(r(387));u=s.pendingProps;var p=s.memoizedState;m=p.element,wg(i,s),Bc(s,u,null,l);var S=s.memoizedState;if(u=S.cache,No(s,Pe,u),u!==p.cache&&yg(s,[Pe],l,!0),zc(),u=S.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:S.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=e2(i,s,u,l);break t}else if(u!==m){m=Tr(Error(r(424)),s),Nc(m),s=e2(i,s,u,l);break t}else for(i=s.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,Ee=Or(i.firstChild),ln=s,Xt=!0,Oo=null,$r=!0,l=QE(s,null,u,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Rs(),u===m){s=Vi(i,s,l);break t}un(i,s,u,l)}s=s.child}return s;case 26:return ud(i,s),i===null?(l=gT(s.type,null,s.pendingProps,null))?s.memoizedState=l:Xt||(l=s.type,i=s.pendingProps,u=$d(yt.current).createElement(l),u[an]=s,u[On]=i,fn(u,l,i),rn(u),s.stateNode=u):s.memoizedState=gT(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return ye(s),i===null&&Xt&&(u=s.stateNode=mT(s.type,s.pendingProps,yt.current),ln=s,$r=!0,m=Ee,Po(s.type)?(Ly=m,Ee=Or(u.firstChild)):Ee=m),un(i,s,s.pendingProps.children,l),ud(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&Xt&&((m=u=Ee)&&(u=f5(u,s.type,s.pendingProps,$r),u!==null?(s.stateNode=u,ln=s,Ee=Or(u.firstChild),$r=!1,m=!0):m=!1),m||Ro(s)),ye(s),m=s.type,p=s.pendingProps,S=i!==null?i.memoizedProps:null,u=p.children,Ny(m,p)?u=null:S!==null&&Ny(m,S)&&(s.flags|=32),s.memoizedState!==null&&(m=Rg(i,s,CN,null,null,l),iu._currentValue=m),ud(i,s),un(i,s,u,l),s.child;case 6:return i===null&&Xt&&((i=l=Ee)&&(l=d5(l,s.pendingProps,$r),l!==null?(s.stateNode=l,ln=s,Ee=null,i=!0):i=!1),i||Ro(s)),null;case 13:return n2(i,s,l);case 4:return te(s,s.stateNode.containerInfo),u=s.pendingProps,i===null?s.child=Ls(s,null,u,l):un(i,s,u,l),s.child;case 11:return Vw(i,s,s.type,s.pendingProps,l);case 7:return un(i,s,s.pendingProps,l),s.child;case 8:return un(i,s,s.pendingProps.children,l),s.child;case 12:return un(i,s,s.pendingProps.children,l),s.child;case 10:return u=s.pendingProps,No(s,s.type,u.value),un(i,s,u.children,l),s.child;case 9:return m=s.type._context,u=s.pendingProps.children,_s(s),m=cn(m),u=u(m),s.flags|=1,un(i,s,u,l),s.child;case 14:return Kw(i,s,s.type,s.pendingProps,l);case 15:return Xw(i,s,s.type,s.pendingProps,l);case 19:return i2(i,s,l);case 31:return jN(i,s,l);case 22:return Qw(i,s,l,s.pendingProps);case 24:return _s(s),u=cn(Pe),i===null?(m=Sg(),m===null&&(m=me,p=bg(),m.pooledCache=p,p.refCount++,p!==null&&(m.pooledCacheLanes|=l),m=p),s.memoizedState={parent:u,cache:m},Eg(s),No(s,Pe,m)):((i.lanes&l)!==0&&(wg(i,s),Bc(s,null,null,l),zc()),m=i.memoizedState,p=s.memoizedState,m.parent!==u?(m={parent:u,cache:u},s.memoizedState=m,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=m),No(s,Pe,u)):(u=p.cache,No(s,Pe,u),u!==m.cache&&yg(s,[Pe],l,!0))),un(i,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}o(o2,"beginWork");function Ki(i){i.flags|=4}o(Ki,"markUpdate");function iy(i,s,l,u,m){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(m&335544128)===m)if(i.stateNode.complete)i.flags|=8192;else if(_2())i.flags|=8192;else throw Is=Xf,xg}else i.flags&=-16777217}o(iy,"preloadInstanceAndSuspendIfNeeded");function s2(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!xT(s))if(_2())i.flags|=8192;else throw Is=Xf,xg}o(s2,"preloadResourceAndSuspendIfNeeded");function dd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?Ux():536870912,i.lanes|=s,Xa|=s)}o(dd,"scheduleRetryEffect");function Pc(i,s){if(!Xt)switch(i.tailMode){case"hidden":s=i.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:u.sibling=null}}o(Pc,"cutOffTailIfNeeded");function we(i){var s=i.alternate!==null&&i.alternate.child===i.child,l=0,u=0;if(s)for(var m=i.child;m!==null;)l|=m.lanes|m.childLanes,u|=m.subtreeFlags&65011712,u|=m.flags&65011712,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)l|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=u,i.childLanes=l,s}o(we,"bubbleProperties");function LN(i,s,l){var u=s.pendingProps;switch(dg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(s),null;case 1:return we(s),null;case 3:return l=s.stateNode,u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Pi(Pe),Kt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(i===null||i.child===null)&&(La(s)?Ki(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,hg())),we(s),null;case 26:var m=s.type,p=s.memoizedState;return i===null?(Ki(s),p!==null?(we(s),s2(s,p)):(we(s),iy(s,m,null,u,l))):p?p!==i.memoizedState?(Ki(s),we(s),s2(s,p)):(we(s),s.flags&=-16777217):(i=i.memoizedProps,i!==u&&Ki(s),we(s),iy(s,m,i,u,l)),null;case 27:if(sn(s),l=yt.current,m=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==u&&Ki(s);else{if(!u){if(s.stateNode===null)throw Error(r(166));return we(s),null}i=dt.current,La(s)?UE(s):(i=mT(m,u,l),s.stateNode=i,Ki(s))}return we(s),null;case 5:if(sn(s),m=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==u&&Ki(s);else{if(!u){if(s.stateNode===null)throw Error(r(166));return we(s),null}if(p=dt.current,La(s))UE(s);else{var S=$d(yt.current);switch(p){case 1:p=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:p=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":p=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":p=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":p=S.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?S.createElement("select",{is:u.is}):S.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?S.createElement(m,{is:u.is}):S.createElement(m)}}p[an]=s,p[On]=u;t:for(S=s.child;S!==null;){if(S.tag===5||S.tag===6)p.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===s)break t;for(;S.sibling===null;){if(S.return===null||S.return===s)break t;S=S.return}S.sibling.return=S.return,S=S.sibling}s.stateNode=p;t:switch(fn(p,m,u),m){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&Ki(s)}}return we(s),iy(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,l),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==u&&Ki(s);else{if(typeof u!="string"&&s.stateNode===null)throw Error(r(166));if(i=yt.current,La(s)){if(i=s.stateNode,l=s.memoizedProps,u=null,m=ln,m!==null)switch(m.tag){case 27:case 5:u=m.memoizedProps}i[an]=s,i=!!(i.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||nT(i.nodeValue,l)),i||Ro(s,!0)}else i=$d(i).createTextNode(u),i[an]=s,s.stateNode=i}return we(s),null;case 31:if(l=s.memoizedState,i===null||i.memoizedState!==null){if(u=La(s),l!==null){if(i===null){if(!u)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[an]=s}else Rs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;we(s),i=!1}else l=hg(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=l),i=!0;if(!i)return s.flags&256?(Jn(s),s):(Jn(s),null);if((s.flags&128)!==0)throw Error(r(558))}return we(s),null;case 13:if(u=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(m=La(s),u!==null&&u.dehydrated!==null){if(i===null){if(!m)throw Error(r(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[an]=s}else Rs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;we(s),m=!1}else m=hg(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=m),m=!0;if(!m)return s.flags&256?(Jn(s),s):(Jn(s),null)}return Jn(s),(s.flags&128)!==0?(s.lanes=l,s):(l=u!==null,i=i!==null&&i.memoizedState!==null,l&&(u=s.child,m=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(m=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==m&&(u.flags|=2048)),l!==i&&l&&(s.child.flags|=8192),dd(s,s.updateQueue),we(s),null);case 4:return Kt(),i===null&&Cy(s.stateNode.containerInfo),we(s),null;case 10:return Pi(s.type),we(s),null;case 19:if(Y(Be),u=s.memoizedState,u===null)return we(s),null;if(m=(s.flags&128)!==0,p=u.rendering,p===null)if(m)Pc(u,!1);else{if(Ie!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(p=Wf(i),p!==null){for(s.flags|=128,Pc(u,!1),i=p.updateQueue,s.updateQueue=i,dd(s,i),s.subtreeFlags=0,i=l,l=s.child;l!==null;)jE(l,i),l=l.sibling;return lt(Be,Be.current&1|2),Xt&&Fi(s,u.treeForkCount),s.child}i=i.sibling}u.tail!==null&&Yn()>yd&&(s.flags|=128,m=!0,Pc(u,!1),s.lanes=4194304)}else{if(!m)if(i=Wf(p),i!==null){if(s.flags|=128,m=!0,i=i.updateQueue,s.updateQueue=i,dd(s,i),Pc(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!Xt)return we(s),null}else 2*Yn()-u.renderingStartTime>yd&&l!==536870912&&(s.flags|=128,m=!0,Pc(u,!1),s.lanes=4194304);u.isBackwards?(p.sibling=s.child,s.child=p):(i=u.last,i!==null?i.sibling=p:s.child=p,u.last=p)}return u.tail!==null?(i=u.tail,u.rendering=i,u.tail=i.sibling,u.renderingStartTime=Yn(),i.sibling=null,l=Be.current,lt(Be,m?l&1|2:l&1),Xt&&Fi(s,u.treeForkCount),i):(we(s),null);case 22:case 23:return Jn(s),$g(),u=s.memoizedState!==null,i!==null?i.memoizedState!==null!==u&&(s.flags|=8192):u&&(s.flags|=8192),u?(l&536870912)!==0&&(s.flags&128)===0&&(we(s),s.subtreeFlags&6&&(s.flags|=8192)):we(s),l=s.updateQueue,l!==null&&dd(s,l.retryQueue),l=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==l&&(s.flags|=2048),i!==null&&Y(Ds),null;case 24:return l=null,i!==null&&(l=i.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),Pi(Pe),we(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}o(LN,"completeWork");function zN(i,s){switch(dg(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Pi(Pe),Kt(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return sn(s),null;case 31:if(s.memoizedState!==null){if(Jn(s),s.alternate===null)throw Error(r(340));Rs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(Jn(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Rs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return Y(Be),null;case 4:return Kt(),null;case 10:return Pi(s.type),null;case 22:case 23:return Jn(s),$g(),i!==null&&Y(Ds),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Pi(Pe),null;case 25:return null;default:return null}}o(zN,"unwindWork");function a2(i,s){switch(dg(s),s.tag){case 3:Pi(Pe),Kt();break;case 26:case 27:case 5:sn(s);break;case 4:Kt();break;case 31:s.memoizedState!==null&&Jn(s);break;case 13:Jn(s);break;case 19:Y(Be);break;case 10:Pi(s.type);break;case 22:case 23:Jn(s),$g(),i!==null&&Y(Ds);break;case 24:Pi(Pe)}}o(a2,"unwindInterruptedWork");function Gc(i,s){try{var l=s.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var m=u.next;l=m;do{if((l.tag&i)===i){u=void 0;var p=l.create,S=l.inst;u=p(),S.destroy=u}l=l.next}while(l!==m)}}catch(T){se(s,s.return,T)}}o(Gc,"commitHookEffectListMount");function zo(i,s,l){try{var u=s.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var p=m.next;u=p;do{if((u.tag&i)===i){var S=u.inst,T=S.destroy;if(T!==void 0){S.destroy=void 0,m=s;var D=l,X=T;try{X()}catch(rt){se(m,D,rt)}}}u=u.next}while(u!==p)}}catch(rt){se(s,s.return,rt)}}o(zo,"commitHookEffectListUnmount");function l2(i){var s=i.updateQueue;if(s!==null){var l=i.stateNode;try{JE(s,l)}catch(u){se(i,i.return,u)}}}o(l2,"commitClassCallbacks");function c2(i,s,l){l.props=Bs(i.type,i.memoizedProps),l.state=i.memoizedState;try{l.componentWillUnmount()}catch(u){se(i,s,u)}}o(c2,"safelyCallComponentWillUnmount");function Yc(i,s){try{var l=i.ref;if(l!==null){switch(i.tag){case 26:case 27:case 5:var u=i.stateNode;break;case 30:u=i.stateNode;break;default:u=i.stateNode}typeof l=="function"?i.refCleanup=l(u):l.current=u}}catch(m){se(i,s,m)}}o(Yc,"safelyAttachRef");function bi(i,s){var l=i.ref,u=i.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(m){se(i,s,m)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){se(i,s,m)}else l.current=null}o(bi,"safelyDetachRef");function u2(i){var s=i.type,l=i.memoizedProps,u=i.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break t;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(m){se(i,i.return,m)}}o(u2,"commitHostMount");function oy(i,s,l){try{var u=i.stateNode;o5(u,i.type,l,s),u[On]=s}catch(m){se(i,i.return,m)}}o(oy,"commitHostUpdate");function f2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Po(i.type)||i.tag===4}o(f2,"isHostParent");function sy(i){t:for(;;){for(;i.sibling===null;){if(i.return===null||f2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Po(i.type)||i.flags&2||i.child===null||i.tag===4)continue t;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}o(sy,"getHostSibling");function ay(i,s,l){var u=i.tag;if(u===5||u===6)i=i.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(i,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(i),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Ui));else if(u!==4&&(u===27&&Po(i.type)&&(l=i.stateNode,s=null),i=i.child,i!==null))for(ay(i,s,l),i=i.sibling;i!==null;)ay(i,s,l),i=i.sibling}o(ay,"insertOrAppendPlacementNodeIntoContainer");function md(i,s,l){var u=i.tag;if(u===5||u===6)i=i.stateNode,s?l.insertBefore(i,s):l.appendChild(i);else if(u!==4&&(u===27&&Po(i.type)&&(l=i.stateNode),i=i.child,i!==null))for(md(i,s,l),i=i.sibling;i!==null;)md(i,s,l),i=i.sibling}o(md,"insertOrAppendPlacementNode");function d2(i){var s=i.stateNode,l=i.memoizedProps;try{for(var u=i.type,m=s.attributes;m.length;)s.removeAttributeNode(m[0]);fn(s,u,l),s[an]=i,s[On]=l}catch(p){se(i,i.return,p)}}o(d2,"commitHostSingletonAcquisition");var Xi=!1,Ve=!1,ly=!1,m2=typeof WeakSet=="function"?WeakSet:Set,on=null;function BN(i,s){if(i=i.containerInfo,Oy=jd,i=AE(i),eg(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else t:{l=(l=i.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var m=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break t}var S=0,T=-1,D=-1,X=0,rt=0,ct=i,Q=null;e:for(;;){for(var W;ct!==l||m!==0&&ct.nodeType!==3||(T=S+m),ct!==p||u!==0&&ct.nodeType!==3||(D=S+u),ct.nodeType===3&&(S+=ct.nodeValue.length),(W=ct.firstChild)!==null;)Q=ct,ct=W;for(;;){if(ct===i)break e;if(Q===l&&++X===m&&(T=S),Q===p&&++rt===u&&(D=S),(W=ct.nextSibling)!==null)break;ct=Q,Q=ct.parentNode}ct=W}l=T===-1||D===-1?null:{start:T,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ry={focusedElem:i,selectionRange:l},jd=!1,on=s;on!==null;)if(s=on,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,on=i;else for(;on!==null;){switch(s=on,p=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(l=0;l<i.length;l++)m=i[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&p!==null){i=void 0,l=s,m=p.memoizedProps,p=p.memoizedState,u=l.stateNode;try{var pt=Bs(l.type,m);i=u.getSnapshotBeforeUpdate(pt,p),u.__reactInternalSnapshotBeforeUpdate=i}catch(At){se(l,l.return,At)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,l=i.nodeType,l===9)Dy(i);else if(l===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Dy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,on=i;break}on=s.return}}o(BN,"commitBeforeMutationEffects");function h2(i,s,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Zi(i,l),u&4&&Gc(5,l);break;case 1:if(Zi(i,l),u&4)if(i=l.stateNode,s===null)try{i.componentDidMount()}catch(S){se(l,l.return,S)}else{var m=Bs(l.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(m,s,i.__reactInternalSnapshotBeforeUpdate)}catch(S){se(l,l.return,S)}}u&64&&l2(l),u&512&&Yc(l,l.return);break;case 3:if(Zi(i,l),u&64&&(i=l.updateQueue,i!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{JE(i,s)}catch(S){se(l,l.return,S)}}break;case 27:s===null&&u&4&&d2(l);case 26:case 5:Zi(i,l),s===null&&u&4&&u2(l),u&512&&Yc(l,l.return);break;case 12:Zi(i,l);break;case 31:Zi(i,l),u&4&&y2(i,l);break;case 13:Zi(i,l),u&4&&b2(i,l),u&64&&(i=l.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(l=VN.bind(null,l),m5(i,l))));break;case 22:if(u=l.memoizedState!==null||Xi,!u){s=s!==null&&s.memoizedState!==null||Ve,m=Xi;var p=Ve;Xi=u,(Ve=s)&&!p?Ji(i,l,(l.subtreeFlags&8772)!==0):Zi(i,l),Xi=m,Ve=p}break;case 30:break;default:Zi(i,l)}}o(h2,"commitLayoutEffectOnFiber");function p2(i){var s=i.alternate;s!==null&&(i.alternate=null,p2(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&Bp(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}o(p2,"detachFiberAfterEffects");var $e=null,Nn=!1;function Qi(i,s,l){for(l=l.child;l!==null;)g2(i,s,l),l=l.sibling}o(Qi,"recursivelyTraverseDeletionEffects");function g2(i,s,l){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(gc,l)}catch{}switch(l.tag){case 26:Ve||bi(l,s),Qi(i,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||bi(l,s);var u=$e,m=Nn;Po(l.type)&&($e=l.stateNode,Nn=!1),Qi(i,s,l),eu(l.stateNode),$e=u,Nn=m;break;case 5:Ve||bi(l,s);case 6:if(u=$e,m=Nn,$e=null,Qi(i,s,l),$e=u,Nn=m,$e!==null)if(Nn)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(l.stateNode)}catch(p){se(l,s,p)}else try{$e.removeChild(l.stateNode)}catch(p){se(l,s,p)}break;case 18:$e!==null&&(Nn?(i=$e,lT(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,l.stateNode),rl(i)):lT($e,l.stateNode));break;case 4:u=$e,m=Nn,$e=l.stateNode.containerInfo,Nn=!0,Qi(i,s,l),$e=u,Nn=m;break;case 0:case 11:case 14:case 15:zo(2,l,s),Ve||zo(4,l,s),Qi(i,s,l);break;case 1:Ve||(bi(l,s),u=l.stateNode,typeof u.componentWillUnmount=="function"&&c2(l,s,u)),Qi(i,s,l);break;case 21:Qi(i,s,l);break;case 22:Ve=(u=Ve)||l.memoizedState!==null,Qi(i,s,l),Ve=u;break;default:Qi(i,s,l)}}o(g2,"commitDeletionEffectsOnFiber");function y2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{rl(i)}catch(l){se(s,s.return,l)}}}o(y2,"commitActivityHydrationCallbacks");function b2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{rl(i)}catch(l){se(s,s.return,l)}}o(b2,"commitSuspenseHydrationCallbacks");function UN(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new m2),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new m2),s;default:throw Error(r(435,i.tag))}}o(UN,"getRetryCache");function hd(i,s){var l=UN(i);s.forEach(function(u){if(!l.has(u)){l.add(u);var m=KN.bind(null,i,u);u.then(m,m)}})}o(hd,"attachSuspenseRetryListeners");function _n(i,s){var l=s.deletions;if(l!==null)for(var u=0;u<l.length;u++){var m=l[u],p=i,S=s,T=S;t:for(;T!==null;){switch(T.tag){case 27:if(Po(T.type)){$e=T.stateNode,Nn=!1;break t}break;case 5:$e=T.stateNode,Nn=!1;break t;case 3:case 4:$e=T.stateNode.containerInfo,Nn=!0;break t}T=T.return}if($e===null)throw Error(r(160));g2(p,S,m),$e=null,Nn=!1,p=m.alternate,p!==null&&(p.return=null),m.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)v2(s,i),s=s.sibling}o(_n,"recursivelyTraverseMutationEffects");var Jr=null;function v2(i,s){var l=i.alternate,u=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:_n(s,i),Dn(i),u&4&&(zo(3,i,i.return),Gc(3,i),zo(5,i,i.return));break;case 1:_n(s,i),Dn(i),u&512&&(Ve||l===null||bi(l,l.return)),u&64&&Xi&&(i=i.updateQueue,i!==null&&(u=i.callbacks,u!==null&&(l=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var m=Jr;if(_n(s,i),Dn(i),u&512&&(Ve||l===null||bi(l,l.return)),u&4){var p=l!==null?l.memoizedState:null;if(u=i.memoizedState,l===null)if(u===null)if(i.stateNode===null){t:{u=i.type,l=i.memoizedProps,m=m.ownerDocument||m;e:switch(u){case"title":p=m.getElementsByTagName("title")[0],(!p||p[vc]||p[an]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=m.createElement(u),m.head.insertBefore(p,m.querySelector("head > title"))),fn(p,u,l),p[an]=i,rn(p),u=p;break t;case"link":var S=vT("link","href",m).get(u+(l.href||""));if(S){for(var T=0;T<S.length;T++)if(p=S[T],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(T,1);break e}}p=m.createElement(u),fn(p,u,l),m.head.appendChild(p);break;case"meta":if(S=vT("meta","content",m).get(u+(l.content||""))){for(T=0;T<S.length;T++)if(p=S[T],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(T,1);break e}}p=m.createElement(u),fn(p,u,l),m.head.appendChild(p);break;default:throw Error(r(468,u))}p[an]=i,rn(p),u=p}i.stateNode=u}else ST(m,i.type,i.stateNode);else i.stateNode=bT(m,u,i.memoizedProps);else p!==u?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,u===null?ST(m,i.type,i.stateNode):bT(m,u,i.memoizedProps)):u===null&&i.stateNode!==null&&oy(i,i.memoizedProps,l.memoizedProps)}break;case 27:_n(s,i),Dn(i),u&512&&(Ve||l===null||bi(l,l.return)),l!==null&&u&4&&oy(i,i.memoizedProps,l.memoizedProps);break;case 5:if(_n(s,i),Dn(i),u&512&&(Ve||l===null||bi(l,l.return)),i.flags&32){m=i.stateNode;try{Ca(m,"")}catch(pt){se(i,i.return,pt)}}u&4&&i.stateNode!=null&&(m=i.memoizedProps,oy(i,m,l!==null?l.memoizedProps:m)),u&1024&&(ly=!0);break;case 6:if(_n(s,i),Dn(i),u&4){if(i.stateNode===null)throw Error(r(162));u=i.memoizedProps,l=i.stateNode;try{l.nodeValue=u}catch(pt){se(i,i.return,pt)}}break;case 3:if(Rd=null,m=Jr,Jr=Md(s.containerInfo),_n(s,i),Jr=m,Dn(i),u&4&&l!==null&&l.memoizedState.isDehydrated)try{rl(s.containerInfo)}catch(pt){se(i,i.return,pt)}ly&&(ly=!1,S2(i));break;case 4:u=Jr,Jr=Md(i.stateNode.containerInfo),_n(s,i),Dn(i),Jr=u;break;case 12:_n(s,i),Dn(i);break;case 31:_n(s,i),Dn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,hd(i,u)));break;case 13:_n(s,i),Dn(i),i.child.flags&8192&&i.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(gd=Yn()),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,hd(i,u)));break;case 22:m=i.memoizedState!==null;var D=l!==null&&l.memoizedState!==null,X=Xi,rt=Ve;if(Xi=X||m,Ve=rt||D,_n(s,i),Ve=rt,Xi=X,Dn(i),u&8192)t:for(s=i.stateNode,s._visibility=m?s._visibility&-2:s._visibility|1,m&&(l===null||D||Xi||Ve||Us(i)),l=null,s=i;;){if(s.tag===5||s.tag===26){if(l===null){D=l=s;try{if(p=D.stateNode,m)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{T=D.stateNode;var ct=D.memoizedProps.style,Q=ct!=null&&ct.hasOwnProperty("display")?ct.display:null;T.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(pt){se(D,D.return,pt)}}}else if(s.tag===6){if(l===null){D=s;try{D.stateNode.nodeValue=m?"":D.memoizedProps}catch(pt){se(D,D.return,pt)}}}else if(s.tag===18){if(l===null){D=s;try{var W=D.stateNode;m?cT(W,!0):cT(D.stateNode,!1)}catch(pt){se(D,D.return,pt)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break t;for(;s.sibling===null;){if(s.return===null||s.return===i)break t;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}u&4&&(u=i.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,hd(i,l))));break;case 19:_n(s,i),Dn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,hd(i,u)));break;case 30:break;case 21:break;default:_n(s,i),Dn(i)}}o(v2,"commitMutationEffectsOnFiber");function Dn(i){var s=i.flags;if(s&2){try{for(var l,u=i.return;u!==null;){if(f2(u)){l=u;break}u=u.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var m=l.stateNode,p=sy(i);md(i,p,m);break;case 5:var S=l.stateNode;l.flags&32&&(Ca(S,""),l.flags&=-33);var T=sy(i);md(i,T,S);break;case 3:case 4:var D=l.stateNode.containerInfo,X=sy(i);ay(i,X,D);break;default:throw Error(r(161))}}catch(rt){se(i,i.return,rt)}i.flags&=-3}s&4096&&(i.flags&=-4097)}o(Dn,"commitReconciliationEffects");function S2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;S2(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}o(S2,"recursivelyResetForms");function Zi(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)h2(i,s.alternate,s),s=s.sibling}o(Zi,"recursivelyTraverseLayoutEffects");function Us(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:zo(4,s,s.return),Us(s);break;case 1:bi(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&c2(s,s.return,l),Us(s);break;case 27:eu(s.stateNode);case 26:case 5:bi(s,s.return),Us(s);break;case 22:s.memoizedState===null&&Us(s);break;case 30:Us(s);break;default:Us(s)}i=i.sibling}}o(Us,"recursivelyTraverseDisappearLayoutEffects");function Ji(i,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var u=s.alternate,m=i,p=s,S=p.flags;switch(p.tag){case 0:case 11:case 15:Ji(m,p,l),Gc(4,p);break;case 1:if(Ji(m,p,l),u=p,m=u.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(X){se(u,u.return,X)}if(u=p,m=u.updateQueue,m!==null){var T=u.stateNode;try{var D=m.shared.hiddenCallbacks;if(D!==null)for(m.shared.hiddenCallbacks=null,m=0;m<D.length;m++)ZE(D[m],T)}catch(X){se(u,u.return,X)}}l&&S&64&&l2(p),Yc(p,p.return);break;case 27:d2(p);case 26:case 5:Ji(m,p,l),l&&u===null&&S&4&&u2(p),Yc(p,p.return);break;case 12:Ji(m,p,l);break;case 31:Ji(m,p,l),l&&S&4&&y2(m,p);break;case 13:Ji(m,p,l),l&&S&4&&b2(m,p);break;case 22:p.memoizedState===null&&Ji(m,p,l),Yc(p,p.return);break;case 30:break;default:Ji(m,p,l)}s=s.sibling}}o(Ji,"recursivelyTraverseReappearLayoutEffects");function cy(i,s){var l=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==l&&(i!=null&&i.refCount++,l!=null&&_c(l))}o(cy,"commitOffscreenPassiveMountEffects");function uy(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&_c(i))}o(uy,"commitCachePassiveMountEffect");function Wr(i,s,l,u){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)x2(i,s,l,u),s=s.sibling}o(Wr,"recursivelyTraversePassiveMountEffects");function x2(i,s,l,u){var m=s.flags;switch(s.tag){case 0:case 11:case 15:Wr(i,s,l,u),m&2048&&Gc(9,s);break;case 1:Wr(i,s,l,u);break;case 3:Wr(i,s,l,u),m&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&_c(i)));break;case 12:if(m&2048){Wr(i,s,l,u),i=s.stateNode;try{var p=s.memoizedProps,S=p.id,T=p.onPostCommit;typeof T=="function"&&T(S,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(D){se(s,s.return,D)}}else Wr(i,s,l,u);break;case 31:Wr(i,s,l,u);break;case 13:Wr(i,s,l,u);break;case 23:break;case 22:p=s.stateNode,S=s.alternate,s.memoizedState!==null?p._visibility&2?Wr(i,s,l,u):Vc(i,s):p._visibility&2?Wr(i,s,l,u):(p._visibility|=2,Ya(i,s,l,u,(s.subtreeFlags&10256)!==0||!1)),m&2048&&cy(S,s);break;case 24:Wr(i,s,l,u),m&2048&&uy(s.alternate,s);break;default:Wr(i,s,l,u)}}o(x2,"commitPassiveMountOnFiber");function Ya(i,s,l,u,m){for(m=m&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var p=i,S=s,T=l,D=u,X=S.flags;switch(S.tag){case 0:case 11:case 15:Ya(p,S,T,D,m),Gc(8,S);break;case 23:break;case 22:var rt=S.stateNode;S.memoizedState!==null?rt._visibility&2?Ya(p,S,T,D,m):Vc(p,S):(rt._visibility|=2,Ya(p,S,T,D,m)),m&&X&2048&&cy(S.alternate,S);break;case 24:Ya(p,S,T,D,m),m&&X&2048&&uy(S.alternate,S);break;default:Ya(p,S,T,D,m)}s=s.sibling}}o(Ya,"recursivelyTraverseReconnectPassiveEffects");function Vc(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=i,u=s,m=u.flags;switch(u.tag){case 22:Vc(l,u),m&2048&&cy(u.alternate,u);break;case 24:Vc(l,u),m&2048&&uy(u.alternate,u);break;default:Vc(l,u)}s=s.sibling}}o(Vc,"recursivelyTraverseAtomicPassiveEffects");var Kc=8192;function Va(i,s,l){if(i.subtreeFlags&Kc)for(i=i.child;i!==null;)E2(i,s,l),i=i.sibling}o(Va,"recursivelyAccumulateSuspenseyCommit");function E2(i,s,l){switch(i.tag){case 26:Va(i,s,l),i.flags&Kc&&i.memoizedState!==null&&A5(l,Jr,i.memoizedState,i.memoizedProps);break;case 5:Va(i,s,l);break;case 3:case 4:var u=Jr;Jr=Md(i.stateNode.containerInfo),Va(i,s,l),Jr=u;break;case 22:i.memoizedState===null&&(u=i.alternate,u!==null&&u.memoizedState!==null?(u=Kc,Kc=16777216,Va(i,s,l),Kc=u):Va(i,s,l));break;default:Va(i,s,l)}}o(E2,"accumulateSuspenseyCommitOnFiber");function w2(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}o(w2,"detachAlternateSiblings");function Xc(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var u=s[l];on=u,A2(u,i)}w2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)T2(i),i=i.sibling}o(Xc,"recursivelyTraversePassiveUnmountEffects");function T2(i){switch(i.tag){case 0:case 11:case 15:Xc(i),i.flags&2048&&zo(9,i,i.return);break;case 3:Xc(i);break;case 12:Xc(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,pd(i)):Xc(i);break;default:Xc(i)}}o(T2,"commitPassiveUnmountOnFiber");function pd(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var u=s[l];on=u,A2(u,i)}w2(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:zo(8,s,s.return),pd(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,pd(s));break;default:pd(s)}i=i.sibling}}o(pd,"recursivelyTraverseDisconnectPassiveEffects");function A2(i,s){for(;on!==null;){var l=on;switch(l.tag){case 0:case 11:case 15:zo(8,l,s);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:_c(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,on=u;else t:for(l=i;on!==null;){u=on;var m=u.sibling,p=u.return;if(p2(u),u===l){on=null;break t}if(m!==null){m.return=p,on=m;break t}on=p}}}o(A2,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var HN={getCacheForType:o(function(i){var s=cn(Pe),l=s.data.get(i);return l===void 0&&(l=i(),s.data.set(i,l)),l},"getCacheForType"),cacheSignal:o(function(){return cn(Pe).controller.signal},"cacheSignal")},kN=typeof WeakMap=="function"?WeakMap:Map,ee=0,me=null,Ft=null,Gt=0,oe=0,Wn=null,Bo=!1,Ka=!1,fy=!1,Wi=0,Ie=0,Uo=0,Hs=0,dy=0,tr=0,Xa=0,Qc=null,jn=null,my=!1,gd=0,C2=0,yd=1/0,bd=null,Ho=null,We=0,ko=null,Qa=null,to=0,hy=0,py=null,$2=null,Zc=0,gy=null;function er(){return(ee&2)!==0&&Gt!==0?Gt&-Gt:N.T!==null?Ey():qx()}o(er,"requestUpdateLane");function M2(){if(tr===0)if((Gt&536870912)===0||Xt){var i=Cf;Cf<<=1,(Cf&3932160)===0&&(Cf=262144),tr=i}else tr=536870912;return i=Zn.current,i!==null&&(i.flags|=32),tr}o(M2,"requestDeferredLane");function In(i,s,l){(i===me&&(oe===2||oe===9)||i.cancelPendingCommit!==null)&&(Za(i,0),Fo(i,Gt,tr,!1)),bc(i,l),((ee&2)===0||i!==me)&&(i===me&&((ee&2)===0&&(Hs|=l),Ie===4&&Fo(i,Gt,tr,!1)),vi(i))}o(In,"scheduleUpdateOnFiber");function O2(i,s,l){if((ee&6)!==0)throw Error(r(327));var u=!l&&(s&127)===0&&(s&i.expiredLanes)===0||yc(i,s),m=u?PN(i,s):by(i,s,!0),p=u;do{if(m===0){Ka&&!u&&Fo(i,s,0,!1);break}else{if(l=i.current.alternate,p&&!FN(l)){m=by(i,s,!1),p=!1;continue}if(m===2){if(p=s,i.errorRecoveryDisabledLanes&p)var S=0;else S=i.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){s=S;t:{var T=i;m=Qc;var D=T.current.memoizedState.isDehydrated;if(D&&(Za(T,S).flags|=256),S=by(T,S,!1),S!==2){if(fy&&!D){T.errorRecoveryDisabledLanes|=p,Hs|=p,m=4;break t}p=jn,jn=m,p!==null&&(jn===null?jn=p:jn.push.apply(jn,p))}m=S}if(p=!1,m!==2)continue}}if(m===1){Za(i,0),Fo(i,s,0,!0);break}t:{switch(u=i,p=m,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Fo(u,s,tr,!Bo);break t;case 2:jn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(m=gd+300-Yn(),10<m)){if(Fo(u,s,tr,!Bo),Mf(u,0,!0)!==0)break t;to=s,u.timeoutHandle=sT(R2.bind(null,u,l,jn,bd,my,s,tr,Hs,Xa,Bo,p,"Throttled",-0,0),m);break t}R2(u,l,jn,bd,my,s,tr,Hs,Xa,Bo,p,null,-0,0)}}break}while(!0);vi(i)}o(O2,"performWorkOnRoot");function R2(i,s,l,u,m,p,S,T,D,X,rt,ct,Q,W){if(i.timeoutHandle=-1,ct=s.subtreeFlags,ct&8192||(ct&16785408)===16785408){ct={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ui},E2(s,p,ct);var pt=(p&62914560)===p?gd-Yn():(p&4194048)===p?C2-Yn():0;if(pt=C5(ct,pt),pt!==null){to=p,i.cancelPendingCommit=pt(B2.bind(null,i,s,p,l,u,m,S,T,D,rt,ct,null,Q,W)),Fo(i,p,S,!X);return}}B2(i,s,p,l,u,m,S,T,D)}o(R2,"commitRootWhenReady");function FN(i){for(var s=i;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var m=l[u],p=m.getSnapshot;m=m.value;try{if(!Xn(p(),m))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}o(FN,"isRenderConsistentWithExternalStores");function Fo(i,s,l,u){s&=~dy,s&=~Hs,i.suspendedLanes|=s,i.pingedLanes&=~s,u&&(i.warmLanes|=s),u=i.expirationTimes;for(var m=s;0<m;){var p=31-Kn(m),S=1<<p;u[p]=-1,m&=~S}l!==0&&Hx(i,l,s)}o(Fo,"markRootSuspended");function vd(){return(ee&6)===0?(Jc(0),!1):!0}o(vd,"flushSyncWork$1");function yy(){if(Ft!==null){if(oe===0)var i=Ft.return;else i=Ft,qi=Ns=null,Dg(i),ka=null,jc=0,i=Ft;for(;i!==null;)a2(i.alternate,i),i=i.return;Ft=null}}o(yy,"resetWorkInProgressStack");function Za(i,s){var l=i.timeoutHandle;l!==-1&&(i.timeoutHandle=-1,l5(l)),l=i.cancelPendingCommit,l!==null&&(i.cancelPendingCommit=null,l()),to=0,yy(),me=i,Ft=l=ki(i.current,null),Gt=s,oe=0,Wn=null,Bo=!1,Ka=yc(i,s),fy=!1,Xa=tr=dy=Hs=Uo=Ie=0,jn=Qc=null,my=!1,(s&8)!==0&&(s|=s&32);var u=i.entangledLanes;if(u!==0)for(i=i.entanglements,u&=s;0<u;){var m=31-Kn(u),p=1<<m;s|=i[m],u&=~p}return Wi=s,Hf(),l}o(Za,"prepareFreshStack");function N2(i,s){Lt=null,N.H=Fc,s===Ha||s===Kf?(s=VE(),oe=3):s===xg?(s=VE(),oe=4):oe=s===Xg?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Wn=s,Ft===null&&(Ie=1,ld(i,Tr(s,i.current)))}o(N2,"handleThrow");function _2(){var i=Zn.current;return i===null?!0:(Gt&4194048)===Gt?Mr===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?i===Mr:!1}o(_2,"shouldRemainOnPreviousScreen");function D2(){var i=N.H;return N.H=Fc,i===null?Fc:i}o(D2,"pushDispatcher");function j2(){var i=N.A;return N.A=HN,i}o(j2,"pushAsyncDispatcher");function Sd(){Ie=4,Bo||(Gt&4194048)!==Gt&&Zn.current!==null||(Ka=!0),(Uo&134217727)===0&&(Hs&134217727)===0||me===null||Fo(me,Gt,tr,!1)}o(Sd,"renderDidSuspendDelayIfPossible");function by(i,s,l){var u=ee;ee|=2;var m=D2(),p=j2();(me!==i||Gt!==s)&&(bd=null,Za(i,s)),s=!1;var S=Ie;t:do try{if(oe!==0&&Ft!==null){var T=Ft,D=Wn;switch(oe){case 8:yy(),S=6;break t;case 3:case 2:case 9:case 6:Zn.current===null&&(s=!0);var X=oe;if(oe=0,Wn=null,Ja(i,T,D,X),l&&Ka){S=0;break t}break;default:X=oe,oe=0,Wn=null,Ja(i,T,D,X)}}qN(),S=Ie;break}catch(rt){N2(i,rt)}while(!0);return s&&i.shellSuspendCounter++,qi=Ns=null,ee=u,N.H=m,N.A=p,Ft===null&&(me=null,Gt=0,Hf()),S}o(by,"renderRootSync");function qN(){for(;Ft!==null;)I2(Ft)}o(qN,"workLoopSync");function PN(i,s){var l=ee;ee|=2;var u=D2(),m=j2();me!==i||Gt!==s?(bd=null,yd=Yn()+500,Za(i,s)):Ka=yc(i,s);t:do try{if(oe!==0&&Ft!==null){s=Ft;var p=Wn;e:switch(oe){case 1:oe=0,Wn=null,Ja(i,s,p,1);break;case 2:case 9:if(GE(p)){oe=0,Wn=null,L2(s);break}s=o(function(){oe!==2&&oe!==9||me!==i||(oe=7),vi(i)},"lanes"),p.then(s,s);break t;case 3:oe=7;break t;case 4:oe=5;break t;case 7:GE(p)?(oe=0,Wn=null,L2(s)):(oe=0,Wn=null,Ja(i,s,p,7));break;case 5:var S=null;switch(Ft.tag){case 26:S=Ft.memoizedState;case 5:case 27:var T=Ft;if(S?xT(S):T.stateNode.complete){oe=0,Wn=null;var D=T.sibling;if(D!==null)Ft=D;else{var X=T.return;X!==null?(Ft=X,xd(X)):Ft=null}break e}}oe=0,Wn=null,Ja(i,s,p,5);break;case 6:oe=0,Wn=null,Ja(i,s,p,6);break;case 8:yy(),Ie=6;break t;default:throw Error(r(462))}}GN();break}catch(rt){N2(i,rt)}while(!0);return qi=Ns=null,N.H=u,N.A=m,ee=l,Ft!==null?0:(me=null,Gt=0,Hf(),Ie)}o(PN,"renderRootConcurrent");function GN(){for(;Ft!==null&&!h4();)I2(Ft)}o(GN,"workLoopConcurrentByScheduler");function I2(i){var s=o2(i.alternate,i,Wi);i.memoizedProps=i.pendingProps,s===null?xd(i):Ft=s}o(I2,"performUnitOfWork");function L2(i){var s=i,l=s.alternate;switch(s.tag){case 15:case 0:s=Ww(l,s,s.pendingProps,s.type,void 0,Gt);break;case 11:s=Ww(l,s,s.pendingProps,s.type.render,s.ref,Gt);break;case 5:Dg(s);default:a2(l,s),s=Ft=jE(s,Wi),s=o2(l,s,Wi)}i.memoizedProps=i.pendingProps,s===null?xd(i):Ft=s}o(L2,"replaySuspendedUnitOfWork");function Ja(i,s,l,u){qi=Ns=null,Dg(s),ka=null,jc=0;var m=s.return;try{if(DN(i,m,s,l,Gt)){Ie=1,ld(i,Tr(l,i.current)),Ft=null;return}}catch(p){if(m!==null)throw Ft=m,p;Ie=1,ld(i,Tr(l,i.current)),Ft=null;return}s.flags&32768?(Xt||u===1?i=!0:Ka||(Gt&536870912)!==0?i=!1:(Bo=i=!0,(u===2||u===9||u===3||u===6)&&(u=Zn.current,u!==null&&u.tag===13&&(u.flags|=16384))),z2(s,i)):xd(s)}o(Ja,"throwAndUnwindWorkLoop");function xd(i){var s=i;do{if((s.flags&32768)!==0){z2(s,Bo);return}i=s.return;var l=LN(s.alternate,s,Wi);if(l!==null){Ft=l;return}if(s=s.sibling,s!==null){Ft=s;return}Ft=s=i}while(s!==null);Ie===0&&(Ie=5)}o(xd,"completeUnitOfWork");function z2(i,s){do{var l=zN(i.alternate,i);if(l!==null){l.flags&=32767,Ft=l;return}if(l=i.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(i=i.sibling,i!==null)){Ft=i;return}Ft=i=l}while(i!==null);Ie=6,Ft=null}o(z2,"unwindUnitOfWork");function B2(i,s,l,u,m,p,S,T,D){i.cancelPendingCommit=null;do Ed();while(We!==0);if((ee&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(p=s.lanes|s.childLanes,p|=sg,T4(i,l,p,S,T,D),i===me&&(Ft=me=null,Gt=0),Qa=s,ko=i,to=l,hy=p,py=m,$2=u,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,XN(Tf,function(){return q2(),null})):(i.callbackNode=null,i.callbackPriority=0),u=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||u){u=N.T,N.T=null,m=U.p,U.p=2,S=ee,ee|=4;try{BN(i,s,l)}finally{ee=S,U.p=m,N.T=u}}We=1,U2(),H2(),k2()}}o(B2,"commitRoot");function U2(){if(We===1){We=0;var i=ko,s=Qa,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=N.T,N.T=null;var u=U.p;U.p=2;var m=ee;ee|=4;try{v2(s,i);var p=Ry,S=AE(i.containerInfo),T=p.focusedElem,D=p.selectionRange;if(S!==T&&T&&T.ownerDocument&&TE(T.ownerDocument.documentElement,T)){if(D!==null&&eg(T)){var X=D.start,rt=D.end;if(rt===void 0&&(rt=X),"selectionStart"in T)T.selectionStart=X,T.selectionEnd=Math.min(rt,T.value.length);else{var ct=T.ownerDocument||document,Q=ct&&ct.defaultView||window;if(Q.getSelection){var W=Q.getSelection(),pt=T.textContent.length,At=Math.min(D.start,pt),ue=D.end===void 0?At:Math.min(D.end,pt);!W.extend&&At>ue&&(S=ue,ue=At,At=S);var P=wE(T,At),H=wE(T,ue);if(P&&H&&(W.rangeCount!==1||W.anchorNode!==P.node||W.anchorOffset!==P.offset||W.focusNode!==H.node||W.focusOffset!==H.offset)){var K=ct.createRange();K.setStart(P.node,P.offset),W.removeAllRanges(),At>ue?(W.addRange(K),W.extend(H.node,H.offset)):(K.setEnd(H.node,H.offset),W.addRange(K))}}}}for(ct=[],W=T;W=W.parentNode;)W.nodeType===1&&ct.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ct.length;T++){var st=ct[T];st.element.scrollLeft=st.left,st.element.scrollTop=st.top}}jd=!!Oy,Ry=Oy=null}finally{ee=m,U.p=u,N.T=l}}i.current=s,We=2}}o(U2,"flushMutationEffects");function H2(){if(We===2){We=0;var i=ko,s=Qa,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=N.T,N.T=null;var u=U.p;U.p=2;var m=ee;ee|=4;try{h2(i,s.alternate,s)}finally{ee=m,U.p=u,N.T=l}}We=3}}o(H2,"flushLayoutEffects");function k2(){if(We===4||We===3){We=0,p4();var i=ko,s=Qa,l=to,u=$2;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?We=5:(We=0,Qa=ko=null,F2(i,i.pendingLanes));var m=i.pendingLanes;if(m===0&&(Ho=null),Lp(l),s=s.stateNode,Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(gc,s,void 0,(s.current.flags&128)===128)}catch{}if(u!==null){s=N.T,m=U.p,U.p=2,N.T=null;try{for(var p=i.onRecoverableError,S=0;S<u.length;S++){var T=u[S];p(T.value,{componentStack:T.stack})}}finally{N.T=s,U.p=m}}(to&3)!==0&&Ed(),vi(i),m=i.pendingLanes,(l&261930)!==0&&(m&42)!==0?i===gy?Zc++:(Zc=0,gy=i):Zc=0,Jc(0)}}o(k2,"flushSpawnedWork");function F2(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,_c(s)))}o(F2,"releaseRootPooledCache");function Ed(){return U2(),H2(),k2(),q2()}o(Ed,"flushPendingEffects");function q2(){if(We!==5)return!1;var i=ko,s=hy;hy=0;var l=Lp(to),u=N.T,m=U.p;try{U.p=32>l?32:l,N.T=null,l=py,py=null;var p=ko,S=to;if(We=0,Qa=ko=null,to=0,(ee&6)!==0)throw Error(r(331));var T=ee;if(ee|=4,T2(p.current),x2(p,p.current,S,l),ee=T,Jc(0,!1),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(gc,p)}catch{}return!0}finally{U.p=m,N.T=u,F2(i,s)}}o(q2,"flushPassiveEffects");function P2(i,s,l){s=Tr(l,s),s=Kg(i.stateNode,s,2),i=jo(i,s,2),i!==null&&(bc(i,2),vi(i))}o(P2,"captureCommitPhaseErrorOnRoot");function se(i,s,l){if(i.tag===3)P2(i,i,l);else for(;s!==null;){if(s.tag===3){P2(s,i,l);break}else if(s.tag===1){var u=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ho===null||!Ho.has(u))){i=Tr(l,i),l=Gw(2),u=jo(s,l,2),u!==null&&(Yw(l,u,s,i),bc(u,2),vi(u));break}}s=s.return}}o(se,"captureCommitPhaseError");function vy(i,s,l){var u=i.pingCache;if(u===null){u=i.pingCache=new kN;var m=new Set;u.set(s,m)}else m=u.get(s),m===void 0&&(m=new Set,u.set(s,m));m.has(l)||(fy=!0,m.add(l),i=YN.bind(null,i,s,l),s.then(i,i))}o(vy,"attachPingListener");function YN(i,s,l){var u=i.pingCache;u!==null&&u.delete(s),i.pingedLanes|=i.suspendedLanes&l,i.warmLanes&=~l,me===i&&(Gt&l)===l&&(Ie===4||Ie===3&&(Gt&62914560)===Gt&&300>Yn()-gd?(ee&2)===0&&Za(i,0):dy|=l,Xa===Gt&&(Xa=0)),vi(i)}o(YN,"pingSuspendedRoot");function G2(i,s){s===0&&(s=Ux()),i=Ms(i,s),i!==null&&(bc(i,s),vi(i))}o(G2,"retryTimedOutBoundary");function VN(i){var s=i.memoizedState,l=0;s!==null&&(l=s.retryLane),G2(i,l)}o(VN,"retryDehydratedSuspenseBoundary");function KN(i,s){var l=0;switch(i.tag){case 31:case 13:var u=i.stateNode,m=i.memoizedState;m!==null&&(l=m.retryLane);break;case 19:u=i.stateNode;break;case 22:u=i.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(s),G2(i,l)}o(KN,"resolveRetryWakeable");function XN(i,s){return pc(i,s)}o(XN,"scheduleCallback$1");var wd=null,Wa=null,Sy=!1,Td=!1,xy=!1,qo=0;function vi(i){i!==Wa&&i.next===null&&(Wa===null?wd=Wa=i:Wa=Wa.next=i),Td=!0,Sy||(Sy=!0,ZN())}o(vi,"ensureRootIsScheduled");function Jc(i,s){if(!xy&&Td){xy=!0;do for(var l=!1,u=wd;u!==null;){if(i!==0){var m=u.pendingLanes;if(m===0)var p=0;else{var S=u.suspendedLanes,T=u.pingedLanes;p=(1<<31-Kn(42|i)+1)-1,p&=m&~(S&~T),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,X2(u,p))}else p=Gt,p=Mf(u,u===me?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||yc(u,p)||(l=!0,X2(u,p));u=u.next}while(l);xy=!1}}o(Jc,"flushSyncWorkAcrossRoots_impl");function QN(){Y2()}o(QN,"processRootScheduleInImmediateTask");function Y2(){Td=Sy=!1;var i=0;qo!==0&&a5()&&(i=qo);for(var s=Yn(),l=null,u=wd;u!==null;){var m=u.next,p=V2(u,s);p===0?(u.next=null,l===null?wd=m:l.next=m,m===null&&(Wa=l)):(l=u,(i!==0||(p&3)!==0)&&(Td=!0)),u=m}We!==0&&We!==5||Jc(i),qo!==0&&(qo=0)}o(Y2,"processRootScheduleInMicrotask");function V2(i,s){for(var l=i.suspendedLanes,u=i.pingedLanes,m=i.expirationTimes,p=i.pendingLanes&-62914561;0<p;){var S=31-Kn(p),T=1<<S,D=m[S];D===-1?((T&l)===0||(T&u)!==0)&&(m[S]=w4(T,s)):D<=s&&(i.expiredLanes|=T),p&=~T}if(s=me,l=Gt,l=Mf(i,i===s?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u=i.callbackNode,l===0||i===s&&(oe===2||oe===9)||i.cancelPendingCommit!==null)return u!==null&&u!==null&&wf(u),i.callbackNode=null,i.callbackPriority=0;if((l&3)===0||yc(i,l)){if(s=l&-l,s===i.callbackPriority)return s;switch(u!==null&&wf(u),Lp(l)){case 2:case 8:l=zx;break;case 32:l=Tf;break;case 268435456:l=Bx;break;default:l=Tf}return u=K2.bind(null,i),l=pc(l,u),i.callbackPriority=s,i.callbackNode=l,s}return u!==null&&u!==null&&wf(u),i.callbackPriority=2,i.callbackNode=null,2}o(V2,"scheduleTaskForRootDuringMicrotask");function K2(i,s){if(We!==0&&We!==5)return i.callbackNode=null,i.callbackPriority=0,null;var l=i.callbackNode;if(Ed()&&i.callbackNode!==l)return null;var u=Gt;return u=Mf(i,i===me?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u===0?null:(O2(i,u,s),V2(i,Yn()),i.callbackNode!=null&&i.callbackNode===l?K2.bind(null,i):null)}o(K2,"performWorkOnRootViaSchedulerTask");function X2(i,s){if(Ed())return null;O2(i,s,!0)}o(X2,"performSyncWorkOnRoot");function ZN(){c5(function(){(ee&6)!==0?pc(Lx,QN):Y2()})}o(ZN,"scheduleImmediateRootScheduleTask");function Ey(){if(qo===0){var i=Ba;i===0&&(i=Af,Af<<=1,(Af&261888)===0&&(Af=256)),qo=i}return qo}o(Ey,"requestTransitionLane");function Q2(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:_f(""+i)}o(Q2,"coerceFormActionProp");function Z2(i,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,i.id&&l.setAttribute("form",i.id),s.parentNode.insertBefore(l,s),i=new FormData(i),l.parentNode.removeChild(l),i}o(Z2,"createFormDataWithSubmitter");function JN(i,s,l,u,m){if(s==="submit"&&l&&l.stateNode===m){var p=Q2((m[On]||null).action),S=u.submitter;S&&(s=(s=S[On]||null)?Q2(s.formAction):S.getAttribute("formAction"),s!==null&&(p=s,S=null));var T=new Lf("action","action",null,u,m);i.push({event:T,listeners:[{instance:null,listener:o(function(){if(u.defaultPrevented){if(qo!==0){var D=S?Z2(m,S):new FormData(m);Fg(l,{pending:!0,data:D,method:m.method,action:p},null,D)}}else typeof p=="function"&&(T.preventDefault(),D=S?Z2(m,S):new FormData(m),Fg(l,{pending:!0,data:D,method:m.method,action:p},p,D))},"listener"),currentTarget:m}]})}}o(JN,"extractEvents$1");for(var wy=0;wy<og.length;wy++){var Ty=og[wy],WN=Ty.toLowerCase(),t5=Ty[0].toUpperCase()+Ty.slice(1);Zr(WN,"on"+t5)}Zr(ME,"onAnimationEnd"),Zr(OE,"onAnimationIteration"),Zr(RE,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(gN,"onTransitionRun"),Zr(yN,"onTransitionStart"),Zr(bN,"onTransitionCancel"),Zr(NE,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),e5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wc));function J2(i,s){s=(s&4)!==0;for(var l=0;l<i.length;l++){var u=i[l],m=u.event;u=u.listeners;t:{var p=void 0;if(s)for(var S=u.length-1;0<=S;S--){var T=u[S],D=T.instance,X=T.currentTarget;if(T=T.listener,D!==p&&m.isPropagationStopped())break t;p=T,m.currentTarget=X;try{p(m)}catch(rt){Uf(rt)}m.currentTarget=null,p=D}else for(S=0;S<u.length;S++){if(T=u[S],D=T.instance,X=T.currentTarget,T=T.listener,D!==p&&m.isPropagationStopped())break t;p=T,m.currentTarget=X;try{p(m)}catch(rt){Uf(rt)}m.currentTarget=null,p=D}}}}o(J2,"processDispatchQueue");function qt(i,s){var l=s[zp];l===void 0&&(l=s[zp]=new Set);var u=i+"__bubble";l.has(u)||(W2(s,i,2,!1),l.add(u))}o(qt,"listenToNonDelegatedEvent");function Ay(i,s,l){var u=0;s&&(u|=4),W2(l,i,u,s)}o(Ay,"listenToNativeEvent");var Ad="_reactListening"+Math.random().toString(36).slice(2);function Cy(i){if(!i[Ad]){i[Ad]=!0,Yx.forEach(function(l){l!=="selectionchange"&&(e5.has(l)||Ay(l,!1,i),Ay(l,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Ad]||(s[Ad]=!0,Ay("selectionchange",!1,s))}}o(Cy,"listenToAllSupportedEvents");function W2(i,s,l,u){switch(MT(s)){case 2:var m=O5;break;case 8:m=R5;break;default:m=ky}l=m.bind(null,s,l,i),m=void 0,!Yp||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(m=!0),u?m!==void 0?i.addEventListener(s,l,{capture:!0,passive:m}):i.addEventListener(s,l,!0):m!==void 0?i.addEventListener(s,l,{passive:m}):i.addEventListener(s,l,!1)}o(W2,"addTrappedEventListener");function $y(i,s,l,u,m){var p=u;if((s&1)===0&&(s&2)===0&&u!==null)t:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var T=u.stateNode.containerInfo;if(T===m)break;if(S===4)for(S=u.return;S!==null;){var D=S.tag;if((D===3||D===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;T!==null;){if(S=xa(T),S===null)return;if(D=S.tag,D===5||D===6||D===26||D===27){u=p=S;continue t}T=T.parentNode}}u=u.return}iE(function(){var X=p,rt=Pp(l),ct=[];t:{var Q=_E.get(i);if(Q!==void 0){var W=Lf,pt=i;switch(i){case"keypress":if(jf(l)===0)break t;case"keydown":case"keyup":W=K4;break;case"focusin":pt="focus",W=Qp;break;case"focusout":pt="blur",W=Qp;break;case"beforeblur":case"afterblur":W=Qp;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=aE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=L4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Z4;break;case ME:case OE:case RE:W=U4;break;case NE:W=W4;break;case"scroll":case"scrollend":W=j4;break;case"wheel":W=eN;break;case"copy":case"cut":case"paste":W=k4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=cE;break;case"toggle":case"beforetoggle":W=rN}var At=(s&4)!==0,ue=!At&&(i==="scroll"||i==="scrollend"),P=At?Q!==null?Q+"Capture":null:Q;At=[];for(var H=X,K;H!==null;){var st=H;if(K=st.stateNode,st=st.tag,st!==5&&st!==26&&st!==27||K===null||P===null||(st=xc(H,P),st!=null&&At.push(tu(H,st,K))),ue)break;H=H.return}0<At.length&&(Q=new W(Q,pt,null,l,rt),ct.push({event:Q,listeners:At}))}}if((s&7)===0){t:{if(Q=i==="mouseover"||i==="pointerover",W=i==="mouseout"||i==="pointerout",Q&&l!==qp&&(pt=l.relatedTarget||l.fromElement)&&(xa(pt)||pt[Sa]))break t;if((W||Q)&&(Q=rt.window===rt?rt:(Q=rt.ownerDocument)?Q.defaultView||Q.parentWindow:window,W?(pt=l.relatedTarget||l.toElement,W=X,pt=pt?xa(pt):null,pt!==null&&(ue=c(pt),At=pt.tag,pt!==ue||At!==5&&At!==27&&At!==6)&&(pt=null)):(W=null,pt=X),W!==pt)){if(At=aE,st="onMouseLeave",P="onMouseEnter",H="mouse",(i==="pointerout"||i==="pointerover")&&(At=cE,st="onPointerLeave",P="onPointerEnter",H="pointer"),ue=W==null?Q:Sc(W),K=pt==null?Q:Sc(pt),Q=new At(st,H+"leave",W,l,rt),Q.target=ue,Q.relatedTarget=K,st=null,xa(rt)===X&&(At=new At(P,H+"enter",pt,l,rt),At.target=K,At.relatedTarget=ue,st=At),ue=st,W&&pt)e:{for(At=n5,P=W,H=pt,K=0,st=P;st;st=At(st))K++;st=0;for(var Tt=H;Tt;Tt=At(Tt))st++;for(;0<K-st;)P=At(P),K--;for(;0<st-K;)H=At(H),st--;for(;K--;){if(P===H||H!==null&&P===H.alternate){At=P;break e}P=At(P),H=At(H)}At=null}else At=null;W!==null&&tT(ct,Q,W,At,!1),pt!==null&&ue!==null&&tT(ct,ue,pt,At,!0)}}t:{if(Q=X?Sc(X):window,W=Q.nodeName&&Q.nodeName.toLowerCase(),W==="select"||W==="input"&&Q.type==="file")var Zt=yE;else if(pE(Q))if(bE)Zt=mN;else{Zt=fN;var bt=uN}else W=Q.nodeName,!W||W.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?X&&Fp(X.elementType)&&(Zt=yE):Zt=dN;if(Zt&&(Zt=Zt(i,X))){gE(ct,Zt,l,rt);break t}bt&&bt(i,Q,X),i==="focusout"&&X&&Q.type==="number"&&X.memoizedProps.value!=null&&kp(Q,"number",Q.value)}switch(bt=X?Sc(X):window,i){case"focusin":(pE(bt)||bt.contentEditable==="true")&&(Ra=bt,ng=X,Oc=null);break;case"focusout":Oc=ng=Ra=null;break;case"mousedown":rg=!0;break;case"contextmenu":case"mouseup":case"dragend":rg=!1,CE(ct,l,rt);break;case"selectionchange":if(pN)break;case"keydown":case"keyup":CE(ct,l,rt)}var Bt;if(Jp)t:{switch(i){case"compositionstart":var Yt="onCompositionStart";break t;case"compositionend":Yt="onCompositionEnd";break t;case"compositionupdate":Yt="onCompositionUpdate";break t}Yt=void 0}else Oa?mE(i,l)&&(Yt="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(Yt="onCompositionStart");Yt&&(uE&&l.locale!=="ko"&&(Oa||Yt!=="onCompositionStart"?Yt==="onCompositionEnd"&&Oa&&(Bt=oE()):($o=rt,Vp="value"in $o?$o.value:$o.textContent,Oa=!0)),bt=Cd(X,Yt),0<bt.length&&(Yt=new lE(Yt,i,null,l,rt),ct.push({event:Yt,listeners:bt}),Bt?Yt.data=Bt:(Bt=hE(l),Bt!==null&&(Yt.data=Bt)))),(Bt=oN?sN(i,l):aN(i,l))&&(Yt=Cd(X,"onBeforeInput"),0<Yt.length&&(bt=new lE("onBeforeInput","beforeinput",null,l,rt),ct.push({event:bt,listeners:Yt}),bt.data=Bt)),JN(ct,i,X,l,rt)}J2(ct,s)})}o($y,"dispatchEventForPluginEventSystem");function tu(i,s,l){return{instance:i,listener:s,currentTarget:l}}o(tu,"createDispatchListener");function Cd(i,s){for(var l=s+"Capture",u=[];i!==null;){var m=i,p=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||p===null||(m=xc(i,l),m!=null&&u.unshift(tu(i,m,p)),m=xc(i,s),m!=null&&u.push(tu(i,m,p))),i.tag===3)return u;i=i.return}return[]}o(Cd,"accumulateTwoPhaseListeners");function n5(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}o(n5,"getParent");function tT(i,s,l,u,m){for(var p=s._reactName,S=[];l!==null&&l!==u;){var T=l,D=T.alternate,X=T.stateNode;if(T=T.tag,D!==null&&D===u)break;T!==5&&T!==26&&T!==27||X===null||(D=X,m?(X=xc(l,p),X!=null&&S.unshift(tu(l,X,D))):m||(X=xc(l,p),X!=null&&S.push(tu(l,X,D)))),l=l.return}S.length!==0&&i.push({event:s,listeners:S})}o(tT,"accumulateEnterLeaveListenersForEvent");var r5=/\r\n?/g,i5=/\u0000|\uFFFD/g;function eT(i){return(typeof i=="string"?i:""+i).replace(r5,`
|
|
78
|
-
`).replace(i5,"")}o(eT,"normalizeMarkupForTextOrAttribute");function nT(i,s){return s=eT(s),eT(i)===s}o(nT,"checkForUnmatchedText");function ce(i,s,l,u,m,p){switch(l){case"children":typeof u=="string"?s==="body"||s==="textarea"&&u===""||Ca(i,u):(typeof u=="number"||typeof u=="bigint")&&s!=="body"&&Ca(i,""+u);break;case"className":Rf(i,"class",u);break;case"tabIndex":Rf(i,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Rf(i,l,u);break;case"style":nE(i,u,p);break;case"data":if(s!=="object"){Rf(i,"data",u);break}case"src":case"href":if(u===""&&(s!=="a"||l!=="href")){i.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(l);break}u=_f(""+u),i.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){i.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(s!=="input"&&ce(i,s,"name",m.name,m,null),ce(i,s,"formEncType",m.formEncType,m,null),ce(i,s,"formMethod",m.formMethod,m,null),ce(i,s,"formTarget",m.formTarget,m,null)):(ce(i,s,"encType",m.encType,m,null),ce(i,s,"method",m.method,m,null),ce(i,s,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(l);break}u=_f(""+u),i.setAttribute(l,u);break;case"onClick":u!=null&&(i.onclick=Ui);break;case"onScroll":u!=null&&qt("scroll",i);break;case"onScrollEnd":u!=null&&qt("scrollend",i);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=l}}break;case"multiple":i.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":i.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){i.removeAttribute("xlink:href");break}l=_f(""+u),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,""+u):i.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,""):i.removeAttribute(l);break;case"capture":case"download":u===!0?i.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,u):i.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?i.setAttribute(l,u):i.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?i.removeAttribute(l):i.setAttribute(l,u);break;case"popover":qt("beforetoggle",i),qt("toggle",i),Of(i,"popover",u);break;case"xlinkActuate":Bi(i,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Bi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Bi(i,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Bi(i,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Bi(i,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Bi(i,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Bi(i,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Bi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Bi(i,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Of(i,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=_4.get(l)||l,Of(i,l,u))}}o(ce,"setProp");function My(i,s,l,u,m,p){switch(l){case"style":nE(i,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=l}}break;case"children":typeof u=="string"?Ca(i,u):(typeof u=="number"||typeof u=="bigint")&&Ca(i,""+u);break;case"onScroll":u!=null&&qt("scroll",i);break;case"onScrollEnd":u!=null&&qt("scrollend",i);break;case"onClick":u!=null&&(i.onclick=Ui);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vx.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),s=l.slice(2,m?l.length-7:void 0),p=i[On]||null,p=p!=null?p[l]:null,typeof p=="function"&&i.removeEventListener(s,p,m),typeof u=="function")){typeof p!="function"&&p!==null&&(l in i?i[l]=null:i.hasAttribute(l)&&i.removeAttribute(l)),i.addEventListener(s,u,m);break t}l in i?i[l]=u:u===!0?i.setAttribute(l,""):Of(i,l,u)}}}o(My,"setPropOnCustomElement");function fn(i,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",i),qt("load",i);var u=!1,m=!1,p;for(p in l)if(l.hasOwnProperty(p)){var S=l[p];if(S!=null)switch(p){case"src":u=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ce(i,s,p,S,l,null)}}m&&ce(i,s,"srcSet",l.srcSet,l,null),u&&ce(i,s,"src",l.src,l,null);return;case"input":qt("invalid",i);var T=p=S=m=null,D=null,X=null;for(u in l)if(l.hasOwnProperty(u)){var rt=l[u];if(rt!=null)switch(u){case"name":m=rt;break;case"type":S=rt;break;case"checked":D=rt;break;case"defaultChecked":X=rt;break;case"value":p=rt;break;case"defaultValue":T=rt;break;case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(r(137,s));break;default:ce(i,s,u,rt,l,null)}}Jx(i,p,T,D,X,S,m,!1);return;case"select":qt("invalid",i),u=S=p=null;for(m in l)if(l.hasOwnProperty(m)&&(T=l[m],T!=null))switch(m){case"value":p=T;break;case"defaultValue":S=T;break;case"multiple":u=T;default:ce(i,s,m,T,l,null)}s=p,l=S,i.multiple=!!u,s!=null?Aa(i,!!u,s,!1):l!=null&&Aa(i,!!u,l,!0);return;case"textarea":qt("invalid",i),p=m=u=null;for(S in l)if(l.hasOwnProperty(S)&&(T=l[S],T!=null))switch(S){case"value":u=T;break;case"defaultValue":m=T;break;case"children":p=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:ce(i,s,S,T,l,null)}tE(i,u,m,p);return;case"option":for(D in l)l.hasOwnProperty(D)&&(u=l[D],u!=null)&&(D==="selected"?i.selected=u&&typeof u!="function"&&typeof u!="symbol":ce(i,s,D,u,l,null));return;case"dialog":qt("beforetoggle",i),qt("toggle",i),qt("cancel",i),qt("close",i);break;case"iframe":case"object":qt("load",i);break;case"video":case"audio":for(u=0;u<Wc.length;u++)qt(Wc[u],i);break;case"image":qt("error",i),qt("load",i);break;case"details":qt("toggle",i);break;case"embed":case"source":case"link":qt("error",i),qt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in l)if(l.hasOwnProperty(X)&&(u=l[X],u!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ce(i,s,X,u,l,null)}return;default:if(Fp(s)){for(rt in l)l.hasOwnProperty(rt)&&(u=l[rt],u!==void 0&&My(i,s,rt,u,l,void 0));return}}for(T in l)l.hasOwnProperty(T)&&(u=l[T],u!=null&&ce(i,s,T,u,l,null))}o(fn,"setInitialProperties");function o5(i,s,l,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,p=null,S=null,T=null,D=null,X=null,rt=null;for(W in l){var ct=l[W];if(l.hasOwnProperty(W)&&ct!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":D=ct;default:u.hasOwnProperty(W)||ce(i,s,W,null,u,ct)}}for(var Q in u){var W=u[Q];if(ct=l[Q],u.hasOwnProperty(Q)&&(W!=null||ct!=null))switch(Q){case"type":p=W;break;case"name":m=W;break;case"checked":X=W;break;case"defaultChecked":rt=W;break;case"value":S=W;break;case"defaultValue":T=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,s));break;default:W!==ct&&ce(i,s,Q,W,u,ct)}}Hp(i,S,T,D,X,rt,p,m);return;case"select":W=S=T=Q=null;for(p in l)if(D=l[p],l.hasOwnProperty(p)&&D!=null)switch(p){case"value":break;case"multiple":W=D;default:u.hasOwnProperty(p)||ce(i,s,p,null,u,D)}for(m in u)if(p=u[m],D=l[m],u.hasOwnProperty(m)&&(p!=null||D!=null))switch(m){case"value":Q=p;break;case"defaultValue":T=p;break;case"multiple":S=p;default:p!==D&&ce(i,s,m,p,u,D)}s=T,l=S,u=W,Q!=null?Aa(i,!!l,Q,!1):!!u!=!!l&&(s!=null?Aa(i,!!l,s,!0):Aa(i,!!l,l?[]:"",!1));return;case"textarea":W=Q=null;for(T in l)if(m=l[T],l.hasOwnProperty(T)&&m!=null&&!u.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:ce(i,s,T,null,u,m)}for(S in u)if(m=u[S],p=l[S],u.hasOwnProperty(S)&&(m!=null||p!=null))switch(S){case"value":Q=m;break;case"defaultValue":W=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==p&&ce(i,s,S,m,u,p)}Wx(i,Q,W);return;case"option":for(var pt in l)Q=l[pt],l.hasOwnProperty(pt)&&Q!=null&&!u.hasOwnProperty(pt)&&(pt==="selected"?i.selected=!1:ce(i,s,pt,null,u,Q));for(D in u)Q=u[D],W=l[D],u.hasOwnProperty(D)&&Q!==W&&(Q!=null||W!=null)&&(D==="selected"?i.selected=Q&&typeof Q!="function"&&typeof Q!="symbol":ce(i,s,D,Q,u,W));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var At in l)Q=l[At],l.hasOwnProperty(At)&&Q!=null&&!u.hasOwnProperty(At)&&ce(i,s,At,null,u,Q);for(X in u)if(Q=u[X],W=l[X],u.hasOwnProperty(X)&&Q!==W&&(Q!=null||W!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,s));break;default:ce(i,s,X,Q,u,W)}return;default:if(Fp(s)){for(var ue in l)Q=l[ue],l.hasOwnProperty(ue)&&Q!==void 0&&!u.hasOwnProperty(ue)&&My(i,s,ue,void 0,u,Q);for(rt in u)Q=u[rt],W=l[rt],!u.hasOwnProperty(rt)||Q===W||Q===void 0&&W===void 0||My(i,s,rt,Q,u,W);return}}for(var P in l)Q=l[P],l.hasOwnProperty(P)&&Q!=null&&!u.hasOwnProperty(P)&&ce(i,s,P,null,u,Q);for(ct in u)Q=u[ct],W=l[ct],!u.hasOwnProperty(ct)||Q===W||Q==null&&W==null||ce(i,s,ct,Q,u,W)}o(o5,"updateProperties");function rT(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}o(rT,"isLikelyStaticResource");function s5(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var m=l[u],p=m.transferSize,S=m.initiatorType,T=m.duration;if(p&&T&&rT(S)){for(S=0,T=m.responseEnd,u+=1;u<l.length;u++){var D=l[u],X=D.startTime;if(X>T)break;var rt=D.transferSize,ct=D.initiatorType;rt&&rT(ct)&&(D=D.responseEnd,S+=rt*(D<T?1:(T-X)/(D-X)))}if(--u,s+=8*(p+S)/(m.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}o(s5,"estimateBandwidth");var Oy=null,Ry=null;function $d(i){return i.nodeType===9?i:i.ownerDocument}o($d,"getOwnerDocumentFromRootContainer");function iT(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}o(iT,"getOwnHostContext");function oT(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}o(oT,"getChildHostContextProd");function Ny(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}o(Ny,"shouldSetTextContent");var _y=null;function a5(){var i=window.event;return i&&i.type==="popstate"?i===_y?!1:(_y=i,!0):(_y=null,!1)}o(a5,"shouldAttemptEagerTransition");var sT=typeof setTimeout=="function"?setTimeout:void 0,l5=typeof clearTimeout=="function"?clearTimeout:void 0,aT=typeof Promise=="function"?Promise:void 0,c5=typeof queueMicrotask=="function"?queueMicrotask:typeof aT<"u"?function(i){return aT.resolve(null).then(i).catch(u5)}:sT;function u5(i){setTimeout(function(){throw i})}o(u5,"handleErrorInNextTick");function Po(i){return i==="head"}o(Po,"isSingletonScope");function lT(i,s){var l=s,u=0;do{var m=l.nextSibling;if(i.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(u===0){i.removeChild(m),rl(s);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")eu(i.ownerDocument.documentElement);else if(l==="head"){l=i.ownerDocument.head,eu(l);for(var p=l.firstChild;p;){var S=p.nextSibling,T=p.nodeName;p[vc]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=S}}else l==="body"&&eu(i.ownerDocument.body);l=m}while(l);rl(s)}o(lT,"clearHydrationBoundary");function cT(i,s){var l=i;i=0;do{var u=l.nextSibling;if(l.nodeType===1?s?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(s?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(i===0)break;i--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||i++;l=u}while(l)}o(cT,"hideOrUnhideDehydratedBoundary");function Dy(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Dy(l),Bp(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}i.removeChild(l)}}o(Dy,"clearContainerSparingly");function f5(i,s,l,u){for(;i.nodeType===1;){var m=l;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!u&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(u){if(!i[vc])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(p=i.getAttribute("rel"),p==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(p!==m.rel||i.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||i.getAttribute("title")!==(m.title==null?null:m.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(p=i.getAttribute("src"),(p!==(m.src==null?null:m.src)||i.getAttribute("type")!==(m.type==null?null:m.type)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&p&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var p=m.name==null?null:""+m.name;if(m.type==="hidden"&&i.getAttribute("name")===p)return i}else return i;if(i=Or(i.nextSibling),i===null)break}return null}o(f5,"canHydrateInstance");function d5(i,s,l){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=Or(i.nextSibling),i===null))return null;return i}o(d5,"canHydrateTextInstance");function uT(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Or(i.nextSibling),i===null))return null;return i}o(uT,"canHydrateHydrationBoundary");function jy(i){return i.data==="$?"||i.data==="$~"}o(jy,"isSuspenseInstancePending");function Iy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}o(Iy,"isSuspenseInstanceFallback");function m5(i,s){var l=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||l.readyState!=="loading")s();else{var u=o(function(){s(),l.removeEventListener("DOMContentLoaded",u)},"listener");l.addEventListener("DOMContentLoaded",u),i._reactRetry=u}}o(m5,"registerSuspenseInstanceRetry");function Or(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}o(Or,"getNextHydratable");var Ly=null;function fT(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"||l==="/&"){if(s===0)return Or(i.nextSibling);s--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||s++}i=i.nextSibling}return null}o(fT,"getNextHydratableInstanceAfterHydrationBoundary");function dT(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(s===0)return i;s--}else l!=="/$"&&l!=="/&"||s++}i=i.previousSibling}return null}o(dT,"getParentHydrationBoundary");function mT(i,s,l){switch(s=$d(l),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}o(mT,"resolveSingletonInstance");function eu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Bp(i)}o(eu,"releaseSingletonInstance");var Rr=new Map,hT=new Set;function Md(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}o(Md,"getHoistableRoot");var eo=U.d;U.d={f:h5,r:p5,D:g5,C:y5,L:b5,m:v5,X:x5,S:S5,M:E5};function h5(){var i=eo.f(),s=vd();return i||s}o(h5,"flushSyncWork");function p5(i){var s=Ea(i);s!==null&&s.tag===5&&s.type==="form"?Nw(s):eo.r(i)}o(p5,"requestFormReset");var tl=typeof document>"u"?null:document;function pT(i,s,l){var u=tl;if(u&&typeof s=="string"&&s){var m=Er(s);m='link[rel="'+i+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),hT.has(m)||(hT.add(m),i={rel:i,crossOrigin:l,href:s},u.querySelector(m)===null&&(s=u.createElement("link"),fn(s,"link",i),rn(s),u.head.appendChild(s)))}}o(pT,"preconnectAs");function g5(i){eo.D(i),pT("dns-prefetch",i,null)}o(g5,"prefetchDNS");function y5(i,s){eo.C(i,s),pT("preconnect",i,s)}o(y5,"preconnect");function b5(i,s,l){eo.L(i,s,l);var u=tl;if(u&&i&&s){var m='link[rel="preload"][as="'+Er(s)+'"]';s==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+Er(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+Er(l.imageSizes)+'"]')):m+='[href="'+Er(i)+'"]';var p=m;switch(s){case"style":p=el(i);break;case"script":p=nl(i)}Rr.has(p)||(i=v({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:i,as:s},l),Rr.set(p,i),u.querySelector(m)!==null||s==="style"&&u.querySelector(nu(p))||s==="script"&&u.querySelector(ru(p))||(s=u.createElement("link"),fn(s,"link",i),rn(s),u.head.appendChild(s)))}}o(b5,"preload");function v5(i,s){eo.m(i,s);var l=tl;if(l&&i){var u=s&&typeof s.as=="string"?s.as:"script",m='link[rel="modulepreload"][as="'+Er(u)+'"][href="'+Er(i)+'"]',p=m;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=nl(i)}if(!Rr.has(p)&&(i=v({rel:"modulepreload",href:i},s),Rr.set(p,i),l.querySelector(m)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ru(p)))return}u=l.createElement("link"),fn(u,"link",i),rn(u),l.head.appendChild(u)}}}o(v5,"preloadModule");function S5(i,s,l){eo.S(i,s,l);var u=tl;if(u&&i){var m=wa(u).hoistableStyles,p=el(i);s=s||"default";var S=m.get(p);if(!S){var T={loading:0,preload:null};if(S=u.querySelector(nu(p)))T.loading=5;else{i=v({rel:"stylesheet",href:i,"data-precedence":s},l),(l=Rr.get(p))&&zy(i,l);var D=S=u.createElement("link");rn(D),fn(D,"link",i),D._p=new Promise(function(X,rt){D.onload=X,D.onerror=rt}),D.addEventListener("load",function(){T.loading|=1}),D.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Od(S,s,u)}S={type:"stylesheet",instance:S,count:1,state:T},m.set(p,S)}}}o(S5,"preinitStyle");function x5(i,s){eo.X(i,s);var l=tl;if(l&&i){var u=wa(l).hoistableScripts,m=nl(i),p=u.get(m);p||(p=l.querySelector(ru(m)),p||(i=v({src:i,async:!0},s),(s=Rr.get(m))&&By(i,s),p=l.createElement("script"),rn(p),fn(p,"link",i),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}o(x5,"preinitScript");function E5(i,s){eo.M(i,s);var l=tl;if(l&&i){var u=wa(l).hoistableScripts,m=nl(i),p=u.get(m);p||(p=l.querySelector(ru(m)),p||(i=v({src:i,async:!0,type:"module"},s),(s=Rr.get(m))&&By(i,s),p=l.createElement("script"),rn(p),fn(p,"link",i),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}o(E5,"preinitModuleScript");function gT(i,s,l,u){var m=(m=yt.current)?Md(m):null;if(!m)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=el(l.href),l=wa(m).hoistableStyles,u=l.get(s),u||(u={type:"style",instance:null,count:0,state:null},l.set(s,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){i=el(l.href);var p=wa(m).hoistableStyles,S=p.get(i);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(i,S),(p=m.querySelector(nu(i)))&&!p._p&&(S.instance=p,S.state.loading=5),Rr.has(i)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Rr.set(i,l),p||w5(m,i,l,S.state))),s&&u===null)throw Error(r(528,""));return S}if(s&&u!==null)throw Error(r(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=nl(l),l=wa(m).hoistableScripts,u=l.get(s),u||(u={type:"script",instance:null,count:0,state:null},l.set(s,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}o(gT,"getResource");function el(i){return'href="'+Er(i)+'"'}o(el,"getStyleKey");function nu(i){return'link[rel="stylesheet"]['+i+"]"}o(nu,"getStylesheetSelectorFromKey");function yT(i){return v({},i,{"data-precedence":i.precedence,precedence:null})}o(yT,"stylesheetPropsFromRawProps");function w5(i,s,l,u){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?u.loading=1:(s=i.createElement("link"),u.preload=s,s.addEventListener("load",function(){return u.loading|=1}),s.addEventListener("error",function(){return u.loading|=2}),fn(s,"link",l),rn(s),i.head.appendChild(s))}o(w5,"preloadStylesheet");function nl(i){return'[src="'+Er(i)+'"]'}o(nl,"getScriptKey");function ru(i){return"script[async]"+i}o(ru,"getScriptSelectorFromKey");function bT(i,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var u=i.querySelector('style[data-href~="'+Er(l.href)+'"]');if(u)return s.instance=u,rn(u),u;var m=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(i.ownerDocument||i).createElement("style"),rn(u),fn(u,"style",m),Od(u,l.precedence,i),s.instance=u;case"stylesheet":m=el(l.href);var p=i.querySelector(nu(m));if(p)return s.state.loading|=4,s.instance=p,rn(p),p;u=yT(l),(m=Rr.get(m))&&zy(u,m),p=(i.ownerDocument||i).createElement("link"),rn(p);var S=p;return S._p=new Promise(function(T,D){S.onload=T,S.onerror=D}),fn(p,"link",u),s.state.loading|=4,Od(p,l.precedence,i),s.instance=p;case"script":return p=nl(l.src),(m=i.querySelector(ru(p)))?(s.instance=m,rn(m),m):(u=l,(m=Rr.get(p))&&(u=v({},l),By(u,m)),i=i.ownerDocument||i,m=i.createElement("script"),rn(m),fn(m,"link",u),i.head.appendChild(m),s.instance=m);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(u=s.instance,s.state.loading|=4,Od(u,l.precedence,i));return s.instance}o(bT,"acquireResource");function Od(i,s,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=u.length?u[u.length-1]:null,p=m,S=0;S<u.length;S++){var T=u[S];if(T.dataset.precedence===s)p=T;else if(p!==m)break}p?p.parentNode.insertBefore(i,p.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(i,s.firstChild))}o(Od,"insertStylesheet");function zy(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}o(zy,"adoptPreloadPropsForStylesheet");function By(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}o(By,"adoptPreloadPropsForScript");var Rd=null;function vT(i,s,l){if(Rd===null){var u=new Map,m=Rd=new Map;m.set(l,u)}else m=Rd,u=m.get(l),u||(u=new Map,m.set(l,u));if(u.has(i))return u;for(u.set(i,null),l=l.getElementsByTagName(i),m=0;m<l.length;m++){var p=l[m];if(!(p[vc]||p[an]||i==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var S=p.getAttribute(s)||"";S=i+S;var T=u.get(S);T?T.push(p):u.set(S,[p])}}return u}o(vT,"getHydratableHoistableCache");function ST(i,s,l){i=i.ownerDocument||i,i.head.insertBefore(l,s==="title"?i.querySelector("head > title"):null)}o(ST,"mountHoistable");function T5(i,s,l){if(l===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(i=s.disabled,typeof s.precedence=="string"&&i==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}o(T5,"isHostHoistableType");function xT(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}o(xT,"preloadResource");function A5(i,s,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=el(u.href),p=s.querySelector(nu(m));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=Nd.bind(i),s.then(i,i)),l.state.loading|=4,l.instance=p,rn(p);return}p=s.ownerDocument||s,u=yT(u),(m=Rr.get(m))&&zy(u,m),p=p.createElement("link"),rn(p);var S=p;S._p=new Promise(function(T,D){S.onload=T,S.onerror=D}),fn(p,"link",u),l.instance=p}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(l,s),(s=l.state.preload)&&(l.state.loading&3)===0&&(i.count++,l=Nd.bind(i),s.addEventListener("load",l),s.addEventListener("error",l))}}o(A5,"suspendResource");var Uy=0;function C5(i,s){return i.stylesheets&&i.count===0&&Dd(i,i.stylesheets),0<i.count||0<i.imgCount?function(l){var u=setTimeout(function(){if(i.stylesheets&&Dd(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4+s);0<i.imgBytes&&Uy===0&&(Uy=62500*s5());var m=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Dd(i,i.stylesheets),i.unsuspend)){var p=i.unsuspend;i.unsuspend=null,p()}},(i.imgBytes>Uy?50:800)+s);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(u),clearTimeout(m)}}:null}o(C5,"waitForCommitToBeReady");function Nd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Dd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}o(Nd,"onUnsuspend");var _d=null;function Dd(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,_d=new Map,s.forEach($5,i),_d=null,Nd.call(i))}o(Dd,"insertSuspendedStylesheets");function $5(i,s){if(!(s.state.loading&4)){var l=_d.get(i);if(l)var u=l.get(null);else{l=new Map,_d.set(i,l);for(var m=i.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<m.length;p++){var S=m[p];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),u=S)}u&&l.set(null,u)}m=s.instance,S=m.getAttribute("data-precedence"),p=l.get(S)||u,p===u&&l.set(null,m),l.set(S,m),this.count++,u=Nd.bind(this),m.addEventListener("load",u),m.addEventListener("error",u),p?p.parentNode.insertBefore(m,p.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(m,i.firstChild)),s.state.loading|=4}}o($5,"insertStylesheetIntoRoot");var iu={$$typeof:I,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function M5(i,s,l,u,m,p,S,T,D){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=jp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jp(0),this.hiddenUpdates=jp(null),this.identifierPrefix=u,this.onUncaughtError=m,this.onCaughtError=p,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}o(M5,"FiberRootNode");function ET(i,s,l,u,m,p,S,T,D,X,rt,ct){return i=new M5(i,s,l,S,D,X,rt,ct,T),s=1,p===!0&&(s|=24),p=Qn(3,null,null,s),i.current=p,p.stateNode=i,s=bg(),s.refCount++,i.pooledCache=s,s.refCount++,p.memoizedState={element:u,isDehydrated:l,cache:s},Eg(p),i}o(ET,"createFiberRoot");function wT(i){return i?(i=Da,i):Da}o(wT,"getContextForSubtree");function TT(i,s,l,u,m,p){m=wT(m),u.context===null?u.context=m:u.pendingContext=m,u=Do(s),u.payload={element:l},p=p===void 0?null:p,p!==null&&(u.callback=p),l=jo(i,u,s),l!==null&&(In(l,i,s),Lc(l,i,s))}o(TT,"updateContainerImpl");function AT(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<s?l:s}}o(AT,"markRetryLaneImpl");function Hy(i,s){AT(i,s),(i=i.alternate)&&AT(i,s)}o(Hy,"markRetryLaneIfNotHydrated");function CT(i){if(i.tag===13||i.tag===31){var s=Ms(i,67108864);s!==null&&In(s,i,67108864),Hy(i,67108864)}}o(CT,"attemptContinuousHydration");function $T(i){if(i.tag===13||i.tag===31){var s=er();s=Ip(s);var l=Ms(i,s);l!==null&&In(l,i,s),Hy(i,s)}}o($T,"attemptHydrationAtCurrentPriority");var jd=!0;function O5(i,s,l,u){var m=N.T;N.T=null;var p=U.p;try{U.p=2,ky(i,s,l,u)}finally{U.p=p,N.T=m}}o(O5,"dispatchDiscreteEvent");function R5(i,s,l,u){var m=N.T;N.T=null;var p=U.p;try{U.p=8,ky(i,s,l,u)}finally{U.p=p,N.T=m}}o(R5,"dispatchContinuousEvent");function ky(i,s,l,u){if(jd){var m=Fy(u);if(m===null)$y(i,s,u,Id,l),OT(i,u);else if(_5(m,i,s,l,u))u.stopPropagation();else if(OT(i,u),s&4&&-1<N5.indexOf(i)){for(;m!==null;){var p=Ea(m);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=ws(p.pendingLanes);if(S!==0){var T=p;for(T.pendingLanes|=2,T.entangledLanes|=2;S;){var D=1<<31-Kn(S);T.entanglements[1]|=D,S&=~D}vi(p),(ee&6)===0&&(yd=Yn()+500,Jc(0))}}break;case 31:case 13:T=Ms(p,2),T!==null&&In(T,p,2),vd(),Hy(p,2)}if(p=Fy(u),p===null&&$y(i,s,u,Id,l),p===m)break;m=p}m!==null&&u.stopPropagation()}else $y(i,s,u,null,l)}}o(ky,"dispatchEvent");function Fy(i){return i=Pp(i),qy(i)}o(Fy,"findInstanceBlockingEvent");var Id=null;function qy(i){if(Id=null,i=xa(i),i!==null){var s=c(i);if(s===null)i=null;else{var l=s.tag;if(l===13){if(i=f(s),i!==null)return i;i=null}else if(l===31){if(i=d(s),i!==null)return i;i=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Id=i,null}o(qy,"findInstanceBlockingTarget");function MT(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(g4()){case Lx:return 2;case zx:return 8;case Tf:case y4:return 32;case Bx:return 268435456;default:return 32}default:return 32}}o(MT,"getEventPriority");var Py=!1,Go=null,Yo=null,Vo=null,ou=new Map,su=new Map,Ko=[],N5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function OT(i,s){switch(i){case"focusin":case"focusout":Go=null;break;case"dragenter":case"dragleave":Yo=null;break;case"mouseover":case"mouseout":Vo=null;break;case"pointerover":case"pointerout":ou.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":su.delete(s.pointerId)}}o(OT,"clearIfContinuousEvent");function au(i,s,l,u,m,p){return i===null||i.nativeEvent!==p?(i={blockedOn:s,domEventName:l,eventSystemFlags:u,nativeEvent:p,targetContainers:[m]},s!==null&&(s=Ea(s),s!==null&&CT(s)),i):(i.eventSystemFlags|=u,s=i.targetContainers,m!==null&&s.indexOf(m)===-1&&s.push(m),i)}o(au,"accumulateOrCreateContinuousQueuedReplayableEvent");function _5(i,s,l,u,m){switch(s){case"focusin":return Go=au(Go,i,s,l,u,m),!0;case"dragenter":return Yo=au(Yo,i,s,l,u,m),!0;case"mouseover":return Vo=au(Vo,i,s,l,u,m),!0;case"pointerover":var p=m.pointerId;return ou.set(p,au(ou.get(p)||null,i,s,l,u,m)),!0;case"gotpointercapture":return p=m.pointerId,su.set(p,au(su.get(p)||null,i,s,l,u,m)),!0}return!1}o(_5,"queueIfContinuousEvent");function RT(i){var s=xa(i.target);if(s!==null){var l=c(s);if(l!==null){if(s=l.tag,s===13){if(s=f(l),s!==null){i.blockedOn=s,Px(i.priority,function(){$T(l)});return}}else if(s===31){if(s=d(l),s!==null){i.blockedOn=s,Px(i.priority,function(){$T(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}o(RT,"attemptExplicitHydrationTarget");function Ld(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var l=Fy(i.nativeEvent);if(l===null){l=i.nativeEvent;var u=new l.constructor(l.type,l);qp=u,l.target.dispatchEvent(u),qp=null}else return s=Ea(l),s!==null&&CT(s),i.blockedOn=l,!1;s.shift()}return!0}o(Ld,"attemptReplayContinuousQueuedEvent");function NT(i,s,l){Ld(i)&&l.delete(s)}o(NT,"attemptReplayContinuousQueuedEventInMap");function D5(){Py=!1,Go!==null&&Ld(Go)&&(Go=null),Yo!==null&&Ld(Yo)&&(Yo=null),Vo!==null&&Ld(Vo)&&(Vo=null),ou.forEach(NT),su.forEach(NT)}o(D5,"replayUnblockedEvents");function zd(i,s){i.blockedOn===s&&(i.blockedOn=null,Py||(Py=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,D5)))}o(zd,"scheduleCallbackIfUnblocked");var Bd=null;function _T(i){Bd!==i&&(Bd=i,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bd===i&&(Bd=null);for(var s=0;s<i.length;s+=3){var l=i[s],u=i[s+1],m=i[s+2];if(typeof u!="function"){if(qy(u||l)===null)continue;break}var p=Ea(l);p!==null&&(i.splice(s,3),s-=3,Fg(p,{pending:!0,data:m,method:l.method,action:u},u,m))}}))}o(_T,"scheduleReplayQueueIfNeeded");function rl(i){function s(D){return zd(D,i)}o(s,"unblock"),Go!==null&&zd(Go,i),Yo!==null&&zd(Yo,i),Vo!==null&&zd(Vo,i),ou.forEach(s),su.forEach(s);for(var l=0;l<Ko.length;l++){var u=Ko[l];u.blockedOn===i&&(u.blockedOn=null)}for(;0<Ko.length&&(l=Ko[0],l.blockedOn===null);)RT(l),l.blockedOn===null&&Ko.shift();if(l=(i.ownerDocument||i).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var m=l[u],p=l[u+1],S=m[On]||null;if(typeof p=="function")S||_T(l);else if(S){var T=null;if(p&&p.hasAttribute("formAction")){if(m=p,S=p[On]||null)T=S.formAction;else if(qy(m)!==null)continue}else T=S.action;typeof T=="function"?l[u+1]=T:(l.splice(u,3),u-=3),_T(l)}}}o(rl,"retryIfBlockedOn");function DT(){function i(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:o(function(){return new Promise(function(S){return m=S})},"handler"),focusReset:"manual",scroll:"manual"})}o(i,"handleNavigate");function s(){m!==null&&(m(),m=null),u||setTimeout(l,20)}o(s,"handleNavigateComplete");function l(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(o(l,"startFakeNavigation"),typeof navigation=="object"){var u=!1,m=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),m!==null&&(m(),m=null)}}}o(DT,"defaultOnDefaultTransitionIndicator");function Gy(i){this._internalRoot=i}o(Gy,"ReactDOMRoot"),Ud.prototype.render=Gy.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var l=s.current,u=er();TT(l,u,i,s,null,null)},Ud.prototype.unmount=Gy.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;TT(i.current,2,null,i,null,null),vd(),s[Sa]=null}};function Ud(i){this._internalRoot=i}o(Ud,"ReactDOMHydrationRoot"),Ud.prototype.unstable_scheduleHydration=function(i){if(i){var s=qx();i={blockedOn:null,target:i,priority:s};for(var l=0;l<Ko.length&&s!==0&&s<Ko[l].priority;l++);Ko.splice(l,0,i),l===0&&RT(i)}};var jT=e.version;if(jT!=="19.2.4")throw Error(r(527,jT,"19.2.4"));U.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=g(s),i=i!==null?y(i):null,i=i===null?null:i.stateNode,i};var j5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hd.isDisabled&&Hd.supportsFiber)try{gc=Hd.inject(j5),Vn=Hd}catch{}}return du.createRoot=function(i,s){if(!a(i))throw Error(r(299));var l=!1,u="",m=kw,p=Fw,S=qw;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(m=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError)),s=ET(i,1,!1,null,null,l,u,null,m,p,S,DT),i[Sa]=s.current,Cy(i),new Gy(s)},du.hydrateRoot=function(i,s,l){if(!a(i))throw Error(r(299));var u=!1,m="",p=kw,S=Fw,T=qw,D=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(T=l.onRecoverableError),l.formState!==void 0&&(D=l.formState)),s=ET(i,1,!0,s,l??null,u,m,D,p,S,T,DT),s.context=wT(null),l=s.current,u=er(),u=Ip(u),m=Do(u),m.callback=null,jo(l,m,u),l=u,s.current.lanes=l,bc(s,l),vi(s),i[Sa]=s.current,Cy(i),new Ud(s)},du.version="19.2.4",du}o(vW,"requireReactDomClient_production");var SC;function SW(){if(SC)return b0.exports;SC=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return o(t,"checkDCE"),t(),b0.exports=vW(),b0.exports}o(SW,"requireClient");var xC=SW();const _x=class _x{log=mi();root;onBrowserRender=rr({on:"react:browser:render",handler:o(async({hydration:e,root:n,element:r})=>{e?.["alepha.react.router.layers"]?(this.root=xC.hydrateRoot(n,r),this.log.info("Hydrated root element")):(this.root??=xC.createRoot(n),this.root.render(r),this.log.info("Created root element"))},"handler")})};o(_x,"ReactBrowserRendererProvider");let Wm=_x;const Dx=class Dx{alepha=Ot(Ke);pageApi=Ot(jl);get state(){return this.alepha.store.get("alepha.react.router.state")}get pages(){return this.pageApi.getPages()}get concretePages(){return this.pageApi.getConcretePages()}get browser(){if(this.alepha.isBrowser())return this.alepha.inject(ku)}isActive(e,n={}){const r=this.state.url.pathname;let a=r===e||r===`${e}/`||`${r}/`===e;return n.startWith&&!a&&(a=r.startsWith(e)),a}node(e,n={}){const r=this.pageApi.page(e);return!r.lazy&&!r.component?{...r,label:r.label??r.name,children:void 0}:{...r,label:r.label??r.name,href:this.path(e,n),children:void 0}}path(e,n={}){return this.pageApi.pathname(e,{params:{...this.state?.params,...n.params},query:n.query})}async reload(){this.browser&&await this.push(this.location.pathname+this.location.search,{replace:!0,force:!0})}getURL(){return this.browser?new URL(this.location.href):this.state.url}get location(){if(!this.browser)throw new Error("Browser is required");return this.browser.location}get current(){return this.state}get pathname(){return this.state.url.pathname}get query(){const e={};for(const[n,r]of new URLSearchParams(this.state.url.search).entries())e[n]=String(r);return e}async back(){this.browser?.history.back()}async forward(){this.browser?.history.forward()}async invalidate(e){await this.browser?.invalidate(e)}async push(e,n){for(const r of this.pages)if(r.name===e){await this.browser?.push(this.path(e,n),n);return}await this.browser?.push(e,n)}anchor(e,n={}){let r=e;for(const a of this.pages)if(a.name===e){r=this.path(e,n);break}return{href:this.base(r),onClick:o(a=>{a.stopPropagation(),a.preventDefault(),this.push(r,n).catch(console.error)},"onClick")}}base(e){return"/__devtools"+e}setQueryParams(e,n={}){const r=typeof e=="function"?e:()=>e,a=new URLSearchParams(r(this.query)).toString(),c=a?`${this.pathname}?${a}`:this.pathname,f=this.base(c);n.push?window.history.pushState({},"",f):window.history.replaceState({},"",f)}};o(Dx,"ReactRouter");let Fu=Dx;const xW=o(()=>T1(Fu),"useRouter");Fn({name:"alepha.react.router",primitives:[mn],services:[jl,Hu,ku,Fu,Wm,Zm],register:o(t=>t.with(cR).with(uR).with(nR).with(oR).with(SY).with(jl).with(ku).with(Hu).with(Wm).with(Fu),"register")});const jx=class jx{root=mn({path:"/",component:rtt})};o(jx,"UiRouter");let th=jx;var EW={root:"m_8f2832ae",section:"m_7a0fe999"};function EC(t){let e=.5;return t>=0&&t<=20?e=10:t>=20&&t<=50?e=4:t>=50&&t<=80?e=2:t>=80&&t<=99?e=1:t>=99&&t<=100&&(e=0),t+e}o(EC,"getIntervalProgressValue");const wW=o(()=>fS({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),"createNprogressStore"),TW=o(t=>dS(t),"useNprogress");function Ir(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}o(Ir,"updateNavigationProgressStateAction");function AW(t){Ir(e=>({progress:Math.max(e.progress-e.step,0)}),t)}o(AW,"decrementNavigationProgressAction");function CW(t,e){Ir(()=>({progress:wR(t,0,100),mounted:!0}),e)}o(CW,"setNavigationProgressAction");function hS(t){Ir(e=>(window.clearInterval(e.interval),e.timeouts.forEach(n=>window.clearTimeout(n)),{timeouts:[]}),t)}o(hS,"cleanupNavigationProgressAction");function $W(t){hS(t),Ir(e=>{const n=window.setTimeout(()=>{Ir(()=>({mounted:!1}),t)},50),r=window.setTimeout(()=>{Ir(()=>({progress:0}),t)},e.stepInterval+50);return{progress:100,timeouts:[n,r]}},t)}o($W,"completeNavigationProgressAction");function MW(t){Ir(e=>({progress:EC(e.progress),mounted:!0}),t),Ir(e=>(window.clearInterval(e.interval),{interval:window.setInterval(()=>{Ir(r=>({progress:EC(r.progress),mounted:!0}),t)},e.stepInterval),mounted:!0}),t)}o(MW,"startNavigationProgressAction");function i4(t){Ir(e=>(window.clearInterval(e.interval),{interval:-1}),t)}o(i4,"stopNavigationProgressAction");function pS(t){hS(t),i4(t),Ir(()=>({progress:0,mounted:!1}),t)}o(pS,"resetNavigationProgressAction");function OW(t){Ir(e=>{const n=Math.min(e.progress+e.step,100),r=n!==100&&n!==0;if(!r){const a=window.setTimeout(()=>pS(t),e.stepInterval+50);return{progress:n,mounted:r,timeouts:[...e.timeouts,a]}}return{progress:n,mounted:r}},t)}o(OW,"incrementNavigationProgressAction");function RW(){const t=wW();return[t,{start:o(()=>MW(t),"start"),stop:o(()=>i4(t),"stop"),reset:o(()=>pS(t),"reset"),set:o(n=>CW(n,t),"set"),increment:o(()=>OW(t),"increment"),decrement:o(()=>AW(t),"decrement"),complete:o(()=>$W(t),"complete"),cleanup:o(()=>hS(t),"cleanup")}]}o(RW,"createNprogress");const[NW,Cb]=RW(),{start:Itt,stop:Ltt,reset:ztt,set:Btt,increment:Utt,decrement:Htt,complete:ktt,cleanup:Ftt}=Cb;function o4({initialProgress:t=0,color:e,size:n=3,stepInterval:r=500,withinPortal:a=!0,portalProps:c,zIndex:f=hi("max"),store:d=NW,...h}){d.initialize({mounted:!1,progress:t,interval:-1,step:1,stepInterval:r,timeouts:[]});const g=TW(d);return A.useEffect(()=>()=>pS(d),[d]),$.jsx(up,{...c,withinPortal:a,children:$.jsx(cc,{radius:0,value:g.progress,size:n,color:e,classNames:EW,"data-mounted":g.mounted||void 0,__vars:{"--nprogress-z-index":f?.toString()},...h})})}o(o4,"NavigationProgress");o4.displayName="@mantine/nprogress/NavigationProgress";const _W=o(()=>{zm(hu),zm(pu);const t=T1(Bu),e=t.getTheme(),n=o(a=>{t.setTheme(a.index)},"setTheme"),r={overrides:t.getThemeOverrides(),setOverrides:o(a=>{t.setThemeOverrides(a)},"setOverrides"),resetOverrides:o(()=>{t.resetThemeOverrides()},"resetOverrides")};return[e,n,r]},"useTheme"),DW=o(()=>T1(Uu),"useToast"),jW=o(()=>fS({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),"createSpotlightStore"),IW=o(t=>dS(t),"useSpotlight");function Il(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}o(Il,"updateSpotlightStateAction");function s4(t){Il(()=>({opened:!0,selected:-1}),t)}o(s4,"openSpotlightAction");function a4(t){Il(()=>({opened:!1}),t)}o(a4,"closeSpotlightAction");function l4(t){Il(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),t)}o(l4,"toggleSpotlightAction");function c4(t,e){e.updateState(n=>({...n,selected:t}))}o(c4,"setSelectedAction");function LW(t,e){e.updateState(n=>({...n,listId:t}))}o(LW,"setListId");function eh(t,e=document){const n=e.querySelector(t);if(n)return n;const r=e instanceof ShadowRoot?e.host.children:e.children;for(let a=0;a<r.length;a+=1){const c=r[a];if(c.shadowRoot){const d=eh(t,c.shadowRoot);if(d)return d}const f=eh(t,c);if(f)return f}return null}o(eh,"findElementByQuerySelector");function Cp(t,e){const n=e.getState(),r=n.listId?eh(`#${n.listId}`):null,a=r?.querySelector("[data-selected]"),c=r?.querySelectorAll("[data-action]")??[],f=t===-1?c.length-1:t===c.length?0:t,d=wR(f,0,c.length-1);return a?.removeAttribute("data-selected"),c[d]?.scrollIntoView({block:"nearest"}),c[d]?.setAttribute("data-selected","true"),c4(d,e),d}o(Cp,"selectAction");function zW(t){return Cp(t.getState().selected+1,t)}o(zW,"selectNextAction");function BW(t){return Cp(t.getState().selected-1,t)}o(BW,"selectPreviousAction");function UW(t){const e=t.getState();eh(`#${e.listId} [data-selected]`)?.click()}o(UW,"triggerSelectedAction");function HW(t,e){const n=e.getState();return n.registeredActions.add(t),()=>{n.registeredActions.delete(t)}}o(HW,"registerAction");function kW(t,e){Il(()=>({query:t}),e),Promise.resolve().then(()=>{Cp(0,e),Il(n=>({empty:n.query.trim().length>0&&n.registeredActions.size===0||!1}),e)})}o(kW,"setQuery");function FW({clearQuery:t},e){e.updateState(n=>({...n,selected:-1,query:t?"":n.query,empty:t?!1:n.empty}))}o(FW,"clearSpotlightState");const Oi={open:s4,close:a4,toggle:l4,updateState:Il,setSelectedAction:c4,setListId:LW,selectAction:Cp,selectNextAction:zW,selectPreviousAction:BW,triggerSelectedAction:UW,registerAction:HW,setQuery:kW,clearSpotlightState:FW};function qW(){const t=jW();return[t,{open:o(()=>s4(t),"open"),close:o(()=>a4(t),"close"),toggle:o(()=>l4(t),"toggle")}]}o(qW,"createSpotlight");const[u4,$p]=qW(),{open:qtt,close:Ptt,toggle:Gtt}=$p;function f4(t){const e=t;return e.group!==void 0&&Array.isArray(e.actions)}o(f4,"isActionsGroup");function PW(t){return Array.isArray(t)?t.map(e=>e.trim()).join(",").toLowerCase().trim():typeof t=="string"?t.toLowerCase().trim():""}o(PW,"getKeywords");function GW(t){return t.reduce((e,n)=>"actions"in n?[...e,...n.actions.map(r=>({...r,group:n.group}))]:[...e,n],[])}o(GW,"getFlatActions");function YW(t){const e={},n=[];return t.forEach(r=>{r.group?(e[r.group]||(e[r.group]={pushed:!1,data:{group:r.group,actions:[]}}),e[r.group].data.actions.push(r),e[r.group].pushed||(e[r.group].pushed=!0,n.push(e[r.group].data))):n.push(r)}),n}o(YW,"flatActionsToGroups");const VW=o((t,e)=>{const n=t.trim().toLowerCase(),r=[[],[]];return GW(e).forEach(c=>{c.label?.toLowerCase().includes(n)?r[0].push(c):(c.description?.toLowerCase().includes(n)||PW(c.keywords).includes(n))&&r[1].push(c)}),YW(r.flat())},"defaultSpotlightFilter");function d4(t,e){if(!Array.isArray(t))return[];let n=0;return t.reduce((r,a)=>{if(n>=e)return r;if(f4(a)){const c=d4(a.actions,e-n);r.push({group:a.group,actions:c}),n+=c.length}else r.push(a),n+=1;return r},[])}o(d4,"limitActions");var Di={root:"m_d2b315db",content:"m_3cd250e0",body:"m_d2abce9b",search:"m_f366a061",actionsList:"m_6e463822",action:"m_d49bb8ef",actionBody:"m_3d475731",actionSection:"m_832642f6",actionLabel:"m_6c2a1345",actionDescription:"m_a6d9d78d",empty:"m_82f78f74",footer:"m_ddcaf054",actionsGroup:"m_5a3e5f7b"};const[KW,fc]=pa("Spotlight component was not found in tree"),XW={dimmedSections:!0,highlightQuery:!1},qu=zt((t,e)=>{const n=vt("SpotlightAction",XW,t),{className:r,style:a,classNames:c,styles:f,id:d,description:h,label:g,leftSection:y,rightSection:v,children:E,dimmedSections:x,highlightQuery:C,highlightColor:w,closeSpotlightOnTrigger:M,onClick:L,onMouseDown:z,keywords:I,vars:F,...G}=n,q=fc(),B={classNames:c,styles:f},k=C&&typeof g=="string"?$.jsx(aS,{component:"span",highlight:q.query,color:w,...q.getStyles("actionLabel",B),children:g}):$.jsx("span",{...q.getStyles("actionLabel",B),children:g});return $.jsx(rc,{ref:e,"data-action":!0,...q.getStyles("action",{className:r,style:a,...B}),...G,onMouseDown:o(et=>{et.preventDefault(),z?.(et)},"onMouseDown"),onClick:o(et=>{L?.(et),(M??q.closeOnActionTrigger)&&Oi.close(q.store)},"onClick"),tabIndex:-1,children:E||$.jsxs($.Fragment,{children:[y&&$.jsx(Et,{component:"span",mod:{position:"left",dimmed:x},...q.getStyles("actionSection",B),children:y}),$.jsxs("span",{...q.getStyles("actionBody",B),children:[k,$.jsx("span",{...q.getStyles("actionDescription",B),children:h})]}),v&&$.jsx(Et,{component:"span",mod:{position:"right",dimmed:x},...q.getStyles("actionSection",B),children:v})]})})});qu.classes=Di;qu.displayName="@mantine/spotlight/SpotlightAction";const Mp=zt((t,e)=>{const{className:n,style:r,styles:a,classNames:c,label:f,children:d,...h}=vt("SpotlightActionsGroup",null,t),g=fc();return $.jsx(Et,{...g.getStyles("actionsGroup",{className:n,style:r,classNames:c,styles:a}),ref:e,...h,__vars:{"--spotlight-label":`'${f?.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`},children:d})});Mp.classes=Di;Mp.displayName="@mantine/core/SpotlightActionsGroup";const Op=zt((t,e)=>{const{className:n,style:r,id:a,children:c,vars:f,classNames:d,styles:h,...g}=vt("SpotlightActionsList",null,t),y=fc(),v=`mantine-${A.useId().replace(/:/g,"")}`,E=a||v;return A.useEffect(()=>(Oi.setListId(E,y.store),()=>Oi.setListId("",y.store)),[]),$.jsx(nc.Autosize,{...y.getStyles("actionsList",{className:n,style:r,classNames:d,styles:h}),ref:e,type:"scroll",scrollbarSize:"var(--spotlight-actions-list-padding)",offsetScrollbars:"y",id:E,...g,children:c})});Op.classes=Di;Op.displayName="@mantine/spotlight/SpotlightActionsList";const Rp=zt((t,e)=>{const{className:n,style:r,classNames:a,styles:c,...f}=vt("SpotlightEmpty",null,t),d=fc();return $.jsx(Et,{ref:e,...d.getStyles("empty",{classNames:a,styles:c,className:n,style:r}),...f})});Rp.classes=Di;Rp.displayName="@mantine/spotlight/SpotlightEmpty";const gS=zt((t,e)=>{const{className:n,style:r,classNames:a,styles:c,...f}=vt("SpotlightFooter",null,t),d=fc();return $.jsx(Et,{ref:e,...d.getStyles("footer",{className:n,classNames:a,style:r,styles:c}),...f})});gS.classes=Di;gS.displayName="@mantine/spotlight/SpotlightFooter";function QW(t,e){if(!t)return[];const n=o(()=>Oi.open(e),"open");return Array.isArray(t)?t.map(r=>[r,n]):[[t,n]]}o(QW,"getHotkeys");const ZW={size:600,yOffset:80,zIndex:hi("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:u4,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400},Np=zt((t,e)=>{const n=vt("SpotlightRoot",ZW,t),{classNames:r,className:a,style:c,styles:f,unstyled:d,vars:h,store:g,children:y,query:v,onQueryChange:E,transitionProps:x,clearQueryOnClose:C,shortcut:w,tagsToIgnore:M,triggerOnContentEditable:L,disabled:z,onSpotlightOpen:I,onSpotlightClose:F,forceOpened:G,closeOnActionTrigger:q,maxHeight:B,scrollable:k,attributes:et,...nt}=n,ot=Gr(),{opened:ft,query:mt}=IW(g),V=typeof v=="string"?v:mt,J=o(U=>{E?.(U),Oi.setQuery(U,g)},"setQuery"),N=ie({name:"Spotlight",classes:Di,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:et});return DV(QW(w,g),M,L),np(()=>{ft?I?.():F?.()},[ft]),z?null:$.jsx(KW,{value:{getStyles:N,query:V,setQuery:J,store:g,closeOnActionTrigger:q},children:$.jsx(Kr,{ref:e,...nt,withCloseButton:!1,opened:ft||!!G,padding:0,onClose:o(()=>Oi.close(g),"onClose"),className:a,style:c,classNames:yf({theme:ot,classNames:[Di,r],props:n,stylesCtx:void 0}),styles:Iu({theme:ot,styles:f,props:n,stylesCtx:void 0}),transitionProps:{...x,onExited:o(()=>{C&&J(""),Oi.clearSpotlightState({clearQuery:C},g),x?.onExited?.()},"onExited")},__vars:{"--spotlight-max-height":k?ut(B):void 0},__staticSelector:"Spotlight","data-scrollable":k||void 0,children:y})})});Np.classes=Di;Np.displayName="@mantine/spotlight/SpotlightRoot";const JW={size:"lg"},_p=zt((t,e)=>{const{classNames:n,styles:r,onKeyDown:a,onChange:c,vars:f,value:d,...h}=vt("SpotlightSearch",JW,t),g=fc(),y=g.getStyles("search"),[v,E]=A.useState(!1),x=o(C=>{a?.(C),!v&&(C.nativeEvent.code==="ArrowDown"&&(C.preventDefault(),Oi.selectNextAction(g.store)),C.nativeEvent.code==="ArrowUp"&&(C.preventDefault(),Oi.selectPreviousAction(g.store)),(C.nativeEvent.code==="Enter"||C.nativeEvent.code==="NumpadEnter")&&(C.preventDefault(),Oi.triggerSelectedAction(g.store)))},"handleKeyDown");return $.jsx(mr,{ref:e,classNames:[{input:y.className},n],styles:[{input:y.style},r],...h,value:d??g.query,onChange:o(C=>{g.setQuery(C.currentTarget.value),c?.(C)},"onChange"),onKeyDown:x,onCompositionStart:o(()=>E(!0),"onCompositionStart"),onCompositionEnd:o(()=>E(!1),"onCompositionEnd")})});_p.classes=Di;_p.displayName="@mantine/spotlight/SpotlightSearch";const WW={size:600,yOffset:80,limit:1/0,zIndex:hi("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:u4,filter:VW,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K"},Sr=zt((t,e)=>{const n=vt("Spotlight",WW,t),{searchProps:r,filter:a,query:c,onQueryChange:f,actions:d,nothingFound:h,highlightQuery:g,limit:y,scrollAreaProps:v,...E}=n,[x,C]=$V({value:c,defaultValue:"",finalValue:"",onChange:f}),w=d4(a(x,d),y).map(M=>{if(f4(M)){const L=M.actions.map(({id:z,...I})=>$.jsx(qu,{highlightQuery:g,...I},z));return $.jsx(Mp,{label:M.group,children:L},M.group)}return $.jsx(qu,{highlightQuery:g,...M},M.id)});return $.jsxs(Np,{...E,query:x,onQueryChange:C,ref:e,children:[$.jsx(_p,{...r}),$.jsxs(Op,{...v,children:[w,w.length===0&&h&&$.jsx(Rp,{children:h})]})]})});Sr.classes=Di;Sr.displayName="@mantine/spotlight/Spotlight";Sr.Search=_p;Sr.ActionsList=Op;Sr.Action=qu;Sr.Empty=Rp;Sr.ActionsGroup=Mp;Sr.Footer=gS;Sr.Root=Np;Sr.open=$p.open;Sr.close=$p.close;Sr.toggle=$p.toggle;const ttt=O.object({id:O.text({description:"Unique identifier for the user."}),name:O.optional(O.text({description:"Full name of the user."})),email:O.optional(O.text({description:"Email address of the user.",format:"email"})),username:O.optional(O.text({description:"Preferred username of the user."})),picture:O.optional(O.text({description:"URL to the user's profile picture."})),sessionId:O.optional(O.text({description:"Session identifier for the user, if applicable."})),organizations:O.optional(O.array(O.text(),{description:"List of organizations the user belongs to."})),roles:O.optional(O.array(O.text(),{description:"List of roles assigned to the user."})),realm:O.optional(O.text({description:"The realm (issuer) the user was authenticated from."}))}),ett=di({name:"alepha.security.user",schema:O.optional(ttt)});O.object({name:O.text({description:"Name of the permission."}),group:O.optional(O.text({description:"Group of the permission."})),description:O.optional(O.text({description:"Describe the permission."})),method:O.optional(O.text({description:"HTTP method of the permission. When available."})),path:O.optional(O.text({description:"Pathname of the permission. When available."}))});O.object({name:O.text({description:"Name of the role."}),description:O.optional(O.text({description:"Describe the role."})),default:O.optional(O.boolean({description:"If true, this role will be assigned to all users by default."})),permissions:O.array(O.object({name:O.text({description:"Name of the permission."}),ownership:O.optional(O.boolean({description:"If true, user will only have access to it's own resources."})),exclude:O.optional(O.array(O.text(),{description:"Exclude some permissions. Useful when 'name' is a wildcard."}))}))});Fn({name:"alepha.security"});const ntt=o(t=>{const e=t.shortcut??"mod+K",n=t.searchPlaceholder??"Search...",r=t.nothingFound??"Nothing found...",a=xW(),[c]=zm(ett),f=A.useMemo(()=>a.concretePages.filter(d=>!(d.can&&!d.can())).map(d=>({id:d.name,label:d.label??d.name,description:d.description,onClick:o(()=>d.staticName?a.push(d.staticName,{params:d.params}):a.push(d.name),"onClick"),leftSection:dtt(d.icon)})),[c]);return $.jsx(Sr,{actions:f,shortcut:e,limit:10,searchProps:{leftSection:$.jsx(nW,{size:m4.sizes.icon.md}),placeholder:n},nothingFound:r})},"Omnibar"),rtt=o(t=>{const e=DW(),[n]=_W();lR({"react:transition:begin":o(()=>{Cb.start()},"react:transition:begin"),"react:transition:end":o(()=>{Cb.complete()},"react:transition:end"),"react:action:error":o(({error:a,type:c})=>{c==="transition"||a instanceof rb||a instanceof $l||e.danger({title:a.name||"Error",message:a.message??"An error occurred while processing your action."})},"react:action:error")},[]);const r=t.mantine?.defaultColorScheme??n.defaultColorScheme;return $.jsxs($.Fragment,{children:[$.jsx(CK,{defaultColorScheme:r,...t.colorSchemeScript}),$.jsxs(LR,{...t.mantine,defaultColorScheme:r,theme:{...n,...t.mantine?.theme},children:[$.jsx(To,{...t.notifications}),$.jsx(o4,{...t.navigationProgress}),$.jsxs(bJ,{...t.modals,children:[t.omnibar!==!1&&$.jsx(ntt,{...t.omnibar}),t.children??$.jsx(Ab,{})]})]})]})},"AlephaMantineProvider"),m4={colors:{background:"var(--alepha-ground)",surface:"var(--alepha-surface)",elevated:"var(--alepha-elevated)",border:"var(--alepha-border)"},sizes:{icon:{xs:16,sm:20,md:24,lg:28,xl:32}}};function itt(t){return A.isValidElement(t)?!1:typeof t=="function"||typeof t=="object"&&t!==null&&"$$typeof"in t}o(itt,"isComponentType");const ott=A.forwardRef((t,e)=>{const{fill:n,center:r,centerX:a,centerY:c,col:f,ground:d,surface:h,elevated:g,rounded:y,bordered:v,borderedTop:E,borderedBottom:x,shadowed:C,...w}=t;return n&&(w.flex??=1),f&&(w.direction??="column"),r&&(w.align??="center",w.justify??="center"),a&&(w.justify??="center"),c&&(w.align??="center"),d?w.bg="var(--alepha-ground)":h?w.bg="var(--alepha-surface)":g&&(w.bg="var(--alepha-elevated)"),y&&(w.bdrs=y===!0?"md":y),v&&(w.bd="1px solid var(--alepha-border)"),E&&(w.style={borderTop:"1px solid var(--alepha-border)",...w.style??{}}),x&&(w.style={borderBottom:"1px solid var(--alepha-border)",...w.style??{}}),C&&(w.className=`${w.className??""} shadow-${C===!0?"md":C}`.trim()),$.jsx(sc,{ref:e,...w})});ott.displayName="Flex";const stt=A.forwardRef((t,e)=>$.jsx(oS,{ref:e,...t}));stt.displayName="Container";const att={primary:"blue",info:"cyan",success:"green",warning:"yellow",danger:"red"},ltt=A.forwardRef((t,e)=>{const{intent:n,bold:r,italic:a,light:c,muted:f,small:d,uppercase:h,capitalize:g,center:y,monospace:v,title:E,...x}=t;return n&&(x.c??=att[n]),r&&(x.fw??=700),c&&(x.fw??=300),a&&(x.fs??="italic"),f&&(x.c??="dimmed"),d&&(x.size??="xs"),h&&(x.tt??="uppercase"),g&&(x.tt??="capitalize"),y&&(x.ta??="center"),v&&(x.ff??="monospace"),E&&(x.size??="xl"),$.jsx(Ss,{ref:e,...x})});ltt.displayName="Text";const x0=o((t,e,n)=>(Object.assign(t,{[e]:n??{}}),t),"pgAttr"),ctt=Symbol.for("Alepha.Postgres.Default"),utt=Symbol.for("Alepha.Postgres.PrimaryKey"),ftt=Symbol.for("Alepha.Postgres.Serial");x0(x0(x0(O.integer(),utt),ftt),ctt);Fn({name:"alepha.orm",primitives:[],services:[nR]});const dtt=o((t,e)=>{if(!t)return null;if(A.isValidElement(t))return t;if(itt(t)){const n=t;return $.jsx(n,{size:e??m4.sizes.icon.md})}return t},"renderIcon"),mtt=o((t={})=>{const{alepha:e}=Pu();return t.themes&&e.store.set(xb,t.themes),e.inject(th)},"$ui");Fn({name:"alepha.ui",services:[Xm,Uu,Bu,th],register:o(t=>{t.with(EY),t.with(uR),t.with(xY),t.with(Bu),t.with(Xm),t.with(Uu)},"register")});const Ix=class Ix{ui=mtt({themes:[K3]});layout=mn({parent:this.ui.root,lazy:o(()=>nr(()=>import("./chunk.c6YgVx86.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),"lazy"),[Symbol.for("alepha.page.preload")]:"c7848374"});dashboard=mn({path:"/",label:"Dashboard",icon:$.jsx(XJ,{}),parent:this.layout,lazy:o(()=>nr(()=>import("./chunk.BR842zj5.js"),__vite__mapDeps([12,1,13,14,15,7,16])),"lazy"),[Symbol.for("alepha.page.preload")]:"d27c1f33"});explorer=mn({path:"/explorer",label:"Explorer",icon:$.jsx(oW,{}),parent:this.layout,lazy:o(()=>nr(()=>import("./chunk.DTI_geWu.js"),__vite__mapDeps([17,1,18,19,3,4,20,11,13,21,2,5,22,23,24,25,16,7,8,26,9,10,27])),"lazy"),[Symbol.for("alepha.page.preload")]:"64e62d2a"});db=mn({path:"/db",parent:this.layout,lazy:o(()=>nr(()=>import("./chunk.Ddeqj5gv.js"),__vite__mapDeps([28,27,19])),"lazy"),[Symbol.for("alepha.page.preload")]:"8da6cd85"});dbErd=mn({path:"/erd",label:"Database",icon:$.jsx(hC,{}),parent:this.db,lazy:o(()=>nr(()=>import("./chunk.BOVFxkYC.js"),__vite__mapDeps([29,1,30,31,25])),"lazy"),[Symbol.for("alepha.page.preload")]:"6720ea5c"});dbEditor=mn({path:"/editor",label:"Database",icon:$.jsx(hC,{}),parent:this.db,lazy:o(()=>nr(()=>import("./chunk.2NYaoqWt.js"),__vite__mapDeps([32,1,18,19,3,4,20,11,2,5,26,24,25,16,7,8,9,10,27])),"lazy"),[Symbol.for("alepha.page.preload")]:"dcfae5ba"});dbEditorTable=mn({path:"/editor/:table",parent:this.db,lazy:o(()=>nr(()=>import("./chunk.2NYaoqWt.js"),__vite__mapDeps([32,1,18,19,3,4,20,11,2,5,26,24,25,16,7,8,9,10,27])),"lazy"),[Symbol.for("alepha.page.preload")]:"dcfae5ba"});dbEditorRecord=mn({path:"/editor/:table/:id",parent:this.db,lazy:o(()=>nr(()=>import("./chunk.2NYaoqWt.js"),__vite__mapDeps([32,1,18,19,3,4,20,11,2,5,26,24,25,16,7,8,9,10,27])),"lazy"),[Symbol.for("alepha.page.preload")]:"dcfae5ba"});conf=mn({path:"/conf",parent:this.layout,lazy:o(()=>nr(()=>import("./chunk.DxPGTlsg.js"),__vite__mapDeps([33,27,19])),"lazy"),[Symbol.for("alepha.page.preload")]:"b4bd1bbf"});confEnv=mn({path:"/env",label:"Configuration",icon:$.jsx(pC,{}),parent:this.conf,lazy:o(()=>nr(()=>import("./chunk.M6wyKO_3.js"),__vite__mapDeps([34,1,15,21,5,4,23])),"lazy"),[Symbol.for("alepha.page.preload")]:"d2b18abc"});confAtoms=mn({path:"/atoms",label:"Configuration",icon:$.jsx(pC,{}),parent:this.conf,lazy:o(()=>nr(()=>import("./chunk.OUxNGmQ6.js"),__vite__mapDeps([35,1,18,19,3,4,20,11,14,2,5,22,23])),"lazy"),[Symbol.for("alepha.page.preload")]:"aeeca6e9"});graph=mn({path:"/graph",label:"Graph",icon:$.jsx(aW,{}),parent:this.layout,lazy:o(()=>nr(()=>import("./chunk.B4kVY90C.js"),__vite__mapDeps([36,30,31,1,27,19,5,4,9,3,20,2,10,6,26])),"lazy"),[Symbol.for("alepha.page.preload")]:"d0246eea"});logs=mn({path:"/logs",label:"Logs",icon:$.jsx(tW,{}),parent:this.layout,lazy:o(()=>nr(()=>import("./chunk.CdNr0YzS.js"),__vite__mapDeps([37,27,19,9,3,4,21,22,11,23])),"lazy"),[Symbol.for("alepha.page.preload")]:"133f478f"})};o(Ix,"AppRouter");let $b=Ix;_G($b);export{aW as $,Pr as A,Et as B,pi as C,xW as D,ptt as E,m4 as F,nW as G,$p as H,Fm as I,sc as J,BG as K,_W as L,OR as M,VJ as N,xb as O,ott as P,oS as Q,Pm as R,ltt as S,Ss as T,rc as U,dtt as V,lR as W,Ab as X,Du as Y,hC as Z,pC as _,T1 as a,Ott as a$,tW as a0,XJ as a1,oW as a2,xs as a3,nc as a4,ya as a5,$V as a6,pp as a7,KK as a8,TK as a9,ir as aA,bs as aB,Kr as aC,_t as aD,cW as aE,Wh as aF,HR as aG,aV as aH,Dr as aI,P3 as aJ,Sb as aK,Wl as aL,vo as aM,GJ as aN,Xm as aO,E1 as aP,Ni as aQ,lV as aR,LV as aS,ytt as aT,itt as aU,xn as aV,Ntt as aW,Stt as aX,rs as aY,up as aZ,Mtt as a_,DR as aa,Qh as ab,Ei as ac,O as ad,Es as ae,dW as af,ic as ag,mi as ah,Ot as ai,Ke as aj,wR as ak,zR as al,$1 as am,np as an,ga as ao,QV as ap,CZ as aq,So as ar,mr as as,lb as at,Sf as au,fp as av,D1 as aw,vf as ax,$l as ay,fY as az,mV as b,Dtt as b0,$tt as b1,_tt as b2,jtt as b3,Rtt as b4,vtt as b5,Ett as b6,Ctt as b7,Att as b8,btt as b9,Fn as ba,Km as bb,ns as bc,hV as bd,Q1 as be,RR as bf,Ttt as bg,wtt as bh,xtt as bi,X1 as bj,ER as bk,Jl as c,O1 as d,pa as e,zt as f,vt as g,fr as h,ut as i,$ as j,Ci as k,tp as l,OA as m,Gr as n,vs as o,BR as p,Pn as q,A as r,AV as s,ie as t,zm as u,$R as v,hi as w,gtt as x,Le as y,ia as z};
|