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
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.BLOrlnMB.js","chunk.BTXaIUlA.js","chunk.IC1LD8BH.js","chunk.YHTVhFQT.js","chunk.fnod6uEi.js","chunk.DJRQEYqK.js","chunk.BtoNxFuL.js","chunk.rc9m0y4-.js","chunk.IwuB_TqW.js","chunk.GCOj1-5E.js","chunk.BhJaxmm8.js","chunk.Dx3JzAYM.js","chunk.CZPo6v95.js","chunk.CFqIniwA.js","chunk.DMImnNjU.js","chunk.Dt8OsQey.js","chunk.C8YUV2Wd.js","chunk.DeeQsidk.js","chunk.mOCRmXjo.js","chunk.BLR01ljW.js","chunk.DMAxv14p.js","chunk.TKKKndOy.js","chunk.Qqapj2zq.js","chunk.D0fWgNos.js","chunk.CRsBbA10.js","chunk.Dtp8oa_f.js","chunk.B3au4Lhg.js","chunk.DqEwn9Vj.js","asset.BZV40eAE.css","chunk.D7-0ziQ6.js","chunk.CBbIgDzE.js","chunk.CLFF7f7-.js","chunk.qZTNEAK0.js","chunk.DAewe0vm.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var DT=Object.defineProperty;var I5=(t,e,n)=>e in t?DT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var o=(t,e)=>DT(t,"name",{value:e,configurable:!0});var sn=(t,e,n)=>I5(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 kn=Symbol.for("Alepha.Kind"),Ln=Symbol.for("Alepha.Module"),Ks=Symbol.for("Alepha.Options"),gS=class gS extends Error{name="AlephaError"};o(gS,"AlephaError");let Ut=gS;const yS=class yS extends Ut{name="CircularDependencyError";constructor(e,n){super(`Instance not available. Looks like a circular dependency. ? -> ${n?.map(r=>`${r} -> `).join("")}${e} -> ?`)}};o(yS,"CircularDependencyError");let E0=yS;const bS=class bS extends Ut{name="ContainerLockedError";constructor(e="Container is locked. No more providers can be added."){super(e)}};o(bS,"ContainerLockedError");let fm=bS;const vS=class vS extends Ut{name="TooLateSubstitutionError";constructor(e,n){super(`Service already substituted. Please, substitute Service '${e}' with Service '${n}' before using it.`)}};o(vS,"TooLateSubstitutionError");let w0=vS;const SS=class SS extends Ut{name="MissingContextError";constructor(){super("Missing context. Did you forget to call Alepha.create()?"),this.name="MissingContextError"}};o(SS,"MissingContextError");let T0=SS;const Dr={},Pu=o(()=>{if(!Dr.alepha)throw new T0;return{alepha:Dr.alepha,service:Dr.service,module:Dr.service?.[Ln]}},"$context"),xS=class xS{alepha;options;config;constructor(e){this.alepha=e.alepha,this.options=e.options,this.config={propertyKey:"",service:e.service,module:e.module}}onInit(){}};o(xS,"Primitive");let ii=xS;const us=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 L5(t){if(typeof t!="function")return!1;const e=Object.getOwnPropertyDescriptor(t,"prototype");return!!e&&!e.writable}o(L5,"isClass");const Pn=o(t=>{var c;const{services:e=[],primitives:n=[],name:r}=t;if(!r||!yl.NAME_REGEX.test(r))throw new Ut(`Invalid module name '${r}'. It should be in the format of 'project.module.submodule'`);const a=(c=class extends yl{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)yl.is(f)||(f[Ln]=a);for(const f of n)typeof f[kn]=="function"&&(f[kn][Ln]=a);return a},"$module");var rs;let yl=(rs=class{static is(e){return e.prototype instanceof rs}static of(e){return e[Ln]}},o(rs,"Module"),sn(rs,"NAME_REGEX",/^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/),rs);const ol=Symbol("als.parent"),Eu=class Eu{als;constructor(){this.als=Eu.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,[ol]: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[ol]?.[e];if(e in r)return r[e];let a=r[ol];for(;a;){if(e in a)return a[e];a=a[ol]}}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[ol];for(;r;){if(e in r)return!0;r=r[ol]}return!1}set(e,n){if(!this.als)return;const r=this.als.getStore();r&&(r[e]=n)}};o(Eu,"AlsProvider"),sn(Eu,"create",o(()=>{},"create"));let dm=Eu;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 B5=(El=class{stringify=JSON.stringify;parse=JSON.parse},o(El,"Json"),El);const ES=class ES{};o(ES,"SchemaCodec");let mm=ES;const wS=class wS extends mm{json=Ot(B5);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(wS,"JsonSchemaCodec");let hm=wS;const ir=o(t=>us(pm,t),"$hook"),TS=class TS extends ii{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(TS,"HookPrimitive");let pm=TS;ir[kn]=pm;function Xe(t,e){return{...t,...e}}o(Xe,"Assign");function es(t,e,n){return t>=e&&t<=n}o(es,"IsBetween");function jT(t){return es(t,127462,127487)}o(jT,"IsRegionalIndicator");function U5(t){return es(t,65024,65039)}o(U5,"IsVariationSelector");function k5(t){return es(t,768,879)||es(t,6832,6911)||es(t,7616,7679)||es(t,65056,65071)}o(k5,"IsCombiningMark");function Xd(t){return t>65535?2:1}o(Xd,"CodePointLength");function IT(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(k5(n)||U5(n))e+=Xd(n);else break}return e}o(IT,"ConsumeModifiers");function $b(t,e){const n=t.codePointAt(e);let r=e+Xd(n);for(r=IT(t,r);r<t.length-1&&t[r]==="";){const a=t.codePointAt(r+1);r+=1+Xd(a),r=IT(t,r)}return jT(n)&&r<t.length&&jT(t.codePointAt(r))&&(r+=Xd(t.codePointAt(r))),r}o($b,"NextGraphemeClusterIndex");function SC(t){return es(t,55296,56319)||es(t,768,879)||t===8205}o(SC,"IsGraphemeCodePoint");function H5(t){let e=0,n=0;for(;n<t.length;)n=$b(t,n),e++;return e}o(H5,"GraphemeCount$1");function F5(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=$b(t,r),n++,n>=e)return!0;return!1}o(F5,"IsMinLength$3");function P5(t,e){let n=0,r=0;for(;r<t.length;)if(r=$b(t,r),n++,n>e)return!1;return!0}o(P5,"IsMaxLength$3");function q5(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(SC(t.charCodeAt(n)))return F5(t,e);if(n++,n>=e)return!0}return!1}o(q5,"IsMinLengthFast");function G5(t,e){let n=0;for(;n<t.length;){if(SC(t.charCodeAt(n)))return P5(t,e);if(n++,n>e)return!1}return!0}o(G5,"IsMaxLengthFast");function wt(t){return Array.isArray(t)}o(wt,"IsArray$2");function xC(t){return Mt(t)&&Symbol.asyncIterator in t}o(xC,"IsAsyncIterator$2");function Oe(t){return O(typeof t,"bigint")}o(Oe,"IsBigInt$2");function Fe(t){return O(typeof t,"boolean")}o(Fe,"IsBoolean$3");function Mb(t){if(pe(t)||!ao(t))return!1;const e=Function.prototype.toString.call(t);return!!(/^class\s/.test(e)||/\[native code\]/.test(e))}o(Mb,"IsConstructor$2");function ao(t){return O(typeof t,"function")}o(ao,"IsFunction$2");function ih(t){return Number.isInteger(t)}o(ih,"IsInteger$2");function EC(t){return Mt(t)&&Symbol.iterator in t}o(EC,"IsIterator$2");function qn(t){return O(t,null)}o(qn,"IsNull$2");function Vt(t){return Number.isFinite(t)}o(Vt,"IsNumber$3");function mo(t){return Mt(t)&&!wt(t)}o(mo,"IsObjectNotArray$1");function Mt(t){return O(typeof t,"object")&&!qn(t)}o(Mt,"IsObject$2");function Dt(t){return O(typeof t,"string")}o(Dt,"IsString$3");function Ob(t){return O(typeof t,"symbol")}o(Ob,"IsSymbol$2");function pe(t){return O(t,void 0)}o(pe,"IsUndefined$2");function O(t,e){return t===e}o(O,"IsEqual$1");function zl(t,e){return t>e}o(zl,"IsGreaterThan$1");function oh(t,e){return t<e}o(oh,"IsLessThan$1");function ho(t,e){return t<=e}o(ho,"IsLessEqualThan$1");function Ll(t,e){return t>=e}o(Ll,"IsGreaterEqualThan$1");function wC(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(wC,"IsMultipleOf$1");function TC(t){if(!Mt(t))return!1;const e=globalThis.Object.getPrototypeOf(t);return qn(e)?!1:O(typeof e.constructor,"function")&&!(O(e.constructor,globalThis.Object)||O(e.constructor.name,"Object"))}o(TC,"IsClassInstance");function qu(t){return Oe(t)||Fe(t)||qn(t)||Vt(t)||Dt(t)||pe(t)}o(qu,"IsValueLike");function Y5(t){return H5(t)}o(Y5,"GraphemeCount");function AC(t,e){return G5(t,e)}o(AC,"IsMaxLength$2");function CC(t,e){return q5(t,e)}o(CC,"IsMinLength$2");function pn(t,e,n){for(let r=e;r<t.length;r++)if(!n(t[r],r))return!1;return!0}o(pn,"Every$1");function gn(t,e,n){let r=!0;for(let a=e;a<t.length;a++)n(t[a],a)||(r=!1);return r}o(gn,"EveryAll");function at(t,e){return O(e,"__proto__")||O(e,"constructor")?Object.prototype.hasOwnProperty.call(t,e):e in t}o(at,"HasPropertyKey$1");function Rb(t){return gt(t).map(e=>[new RegExp(`^${e}$`),t[e]])}o(Rb,"EntriesRegExp");function Qe(t){return Object.entries(t)}o(Qe,"Entries$2");function gt(t){return Object.getOwnPropertyNames(t)}o(gt,"Keys$1");function V5(t){return Object.getOwnPropertySymbols(t)}o(V5,"Symbols");function Nb(t){return Object.values(t)}o(Nb,"Values");function K5(t,e){if(!Mt(e))return!1;const n=gt(t);return O(n.length,gt(e).length)&&n.every(r=>Gu(t[r],e[r]))}o(K5,"DeepEqualObject");function X5(t,e){return wt(e)&&O(t.length,e.length)&&t.every((n,r)=>Gu(t[r],e[r]))}o(X5,"DeepEqualArray");function Gu(t,e){return wt(t)?X5(t,e):Mt(t)?K5(t,e):O(t,e)}o(Gu,"IsDeepEqual$1");const Q5=Object.freeze(Object.defineProperty({__proto__:null,Entries:Qe,EntriesRegExp:Rb,Every:pn,EveryAll:gn,GraphemeCount:Y5,HasPropertyKey:at,IsArray:wt,IsAsyncIterator:xC,IsBigInt:Oe,IsBoolean:Fe,IsClassInstance:TC,IsConstructor:Mb,IsDeepEqual:Gu,IsEqual:O,IsFunction:ao,IsGreaterEqualThan:Ll,IsGreaterThan:zl,IsInteger:ih,IsIterator:EC,IsLessEqualThan:ho,IsLessThan:oh,IsMaxLength:AC,IsMinLength:CC,IsMultipleOf:wC,IsNull:qn,IsNumber:Vt,IsObject:Mt,IsObjectNotArray:mo,IsString:Dt,IsSymbol:Ob,IsUndefined:pe,IsValueLike:qu,Keys:gt,Symbols:V5,Values:Nb},Symbol.toStringTag,{value:"Module"})),Z5=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function J5(t){return Z5.test(t)}o(J5,"IsIdentifier$1");function pr(t,e){return`(${t} && ${e})`}o(pr,"And");function be(t,e){return`(${t} || ${e})`}o(be,"Or");function Cn(t){return`!(${t})`}o(Cn,"Not");function gm(t){return`Array.isArray(${t})`}o(gm,"IsArray$1");function W5(t){return`Guard.IsAsyncIterator(${t})`}o(W5,"IsAsyncIterator$1");function $C(t){return`typeof ${t} === "bigint"`}o($C,"IsBigInt$1");function t_(t){return`typeof ${t} === "boolean"`}o(t_,"IsBoolean$2");function e_(t){return`Number.isInteger(${t})`}o(e_,"IsInteger$1");function n_(t){return`Guard.IsIterator(${t})`}o(n_,"IsIterator$1");function r_(t){return`${t} === null`}o(r_,"IsNull$1");function MC(t){return`Number.isFinite(${t})`}o(MC,"IsNumber$2");function OC(t){return pr(RC(t),Cn(gm(t)))}o(OC,"IsObjectNotArray");function RC(t){return`typeof ${t} === "object" && ${t} !== null`}o(RC,"IsObject$1");function NC(t){return`typeof ${t} === "string"`}o(NC,"IsString$2");function i_(t){return`typeof ${t} === "symbol"`}o(i_,"IsSymbol$1");function A0(t){return`${t} === undefined`}o(A0,"IsUndefined$1");function o_(t){return`typeof ${t} === "function"`}o(o_,"IsFunction$1");function s_(t){return`Guard.IsConstructor(${t})`}o(s_,"IsConstructor$1");function sr(t,e){return`${t} === ${e}`}o(sr,"IsEqual");function _C(t,e){return`${t} > ${e}`}o(_C,"IsGreaterThan");function DC(t,e){return`${t} < ${e}`}o(DC,"IsLessThan");function Bl(t,e){return`${t} <= ${e}`}o(Bl,"IsLessEqualThan");function sh(t,e){return`${t} >= ${e}`}o(sh,"IsGreaterEqualThan");function a_(t,e){return`Guard.IsMinLength(${t}, ${e})`}o(a_,"IsMinLength$1");function l_(t,e){return`Guard.IsMaxLength(${t}, ${e})`}o(l_,"IsMaxLength$1");function aa(t,e,n,r){return O(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(aa,"Every");function jC(t){return`Object.entries(${t})`}o(jC,"Entries$1");function la(t){return`Object.getOwnPropertyNames(${t})`}o(la,"Keys");function Js(t,e){return O(e,'"__proto__"')||O(e,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${e})`:`${e} in ${t}`}o(Js,"HasPropertyKey");function IC(t,e){return`Guard.IsDeepEqual(${t}, ${e})`}o(IC,"IsDeepEqual");function c_(t){return`[${t.join(", ")}]`}o(c_,"ArrayLiteral");function ar(t,e){return`((${t.join(", ")}) => ${e})`}o(ar,"ArrowFunction");function ne(t,e){return`${t}(${e.join(", ")})`}o(ne,"Call$1");function _b(t,e){return`new ${t}(${e.join(", ")})`}o(_b,"New");function _t(t,e){return`${t}${J5(e)?`.${e}`:`[${St(e)}]`}`}o(_t,"Member");function St(t){return Dt(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 oo(t,e){return`const ${t} = ${e}`}o(oo,"ConstDeclaration");function zC(t,e){return`if(${t}) { ${e} }`}o(zC,"If$1");function ch(t){return`return ${t}`}o(ch,"Return");function Sn(t){return O(t.length,0)?"true":t.reduce((e,n)=>pr(e,n))}o(Sn,"ReduceAnd");function Db(t){return O(t.length,0)?"false":t.reduce((e,n)=>be(e,n))}o(Db,"ReduceOr");function jb(t){return`++${t}`}o(jb,"PrefixIncrement");function u_(t,e){return`Guard.IsMultipleOf(${t}, ${e})`}o(u_,"MultipleOf");function f_(t){return t instanceof Boolean}o(f_,"IsBoolean$1");function d_(t){return t instanceof Number}o(d_,"IsNumber$1");function m_(t){return t instanceof String}o(m_,"IsString$1");function LC(t){return globalThis.ArrayBuffer.isView(t)}o(LC,"IsTypeArray");function h_(t){return t instanceof globalThis.RegExp}o(h_,"IsRegExp");function p_(t){return t instanceof globalThis.Date}o(p_,"IsDate$1");function g_(t){return t instanceof globalThis.Set}o(g_,"IsSet");function y_(t){return t instanceof globalThis.Map}o(y_,"IsMap");function b_(t){return Mt(t)&&at(t,"~guard")}o(b_,"IsGuard$1");function v_(t){return t.map(e=>Ib(e))}o(v_,"FromArray$c");function S_(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:Ib(a.value)})}return e}o(S_,"FromObject$f");function x_(t){return new RegExp(t.source,t.flags)}o(x_,"FromRegExp$1");function Ib(t){return t instanceof RegExp?x_(t):b_(t)?t:wt(t)?v_(t):Mt(t)?S_(t):t}o(Ib,"FromValue$3");function BC(t){return Ib(t)}o(BC,"Clone$1");const UC={immutableTypes:!1,maxErrors:8,useAcceleration:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1,correctiveParse:!1};function E_(t){for(const e of gt(t)){const n=t[e];n!==void 0&&Object.defineProperty(UC,e,{value:n})}}o(E_,"Set$2");function fs(){return UC}o(fs,"Get$3");function w_(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(w_,"MergeHidden");function zT(t,e){return{...t,...e}}o(zT,"Merge");function Rt(t,e,n={}){const r=fs(),a=zT(e,n),c=r.enumerableKind?zT(a,t):w_(a,t);return r.immutableTypes?Object.freeze(c):c}o(Rt,"Create$1");function Fr(t,e){const n={},r=Object.getOwnPropertyDescriptors(BC(t)),a=new Set(e);for(const c of Object.keys(r))a.has(c)||Object.defineProperty(n,c,r[c]);return n}o(Fr,"Discard");function Qt(t,e,n){const r=fs(),a=BC(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 Ht(t,e){return Mt(t)&&at(t,"~kind")&&O(t["~kind"],e)}o(Ht,"IsKind");function Bt(t){return Mt(t)}o(Bt,"IsSchema$1");function T_(t){return Rt({"~kind":"OptionalAddAction"},{type:t},{})}o(T_,"OptionalAddAction");function A_(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&O(t["~kind"],"OptionalAddAction")&&Bt(t.type)}o(A_,"IsOptionalAddAction");function C_(t){return Rt({"~kind":"OptionalRemoveAction"},{type:t},{})}o(C_,"OptionalRemoveAction");function $_(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&O(t["~kind"],"OptionalRemoveAction")&&Bt(t.type)}o($_,"IsOptionalRemoveAction");function M_(t){return Rt({"~kind":"ReadonlyAddAction"},{type:t},{})}o(M_,"ReadonlyAddAction");function O_(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&O(t["~kind"],"ReadonlyAddAction")&&Bt(t.type)}o(O_,"IsReadonlyAddAction");function R_(t){return Rt({"~kind":"ReadonlyRemoveAction"},{type:t},{})}o(R_,"ReadonlyRemoveAction");function N_(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&O(t["~kind"],"ReadonlyRemoveAction")&&Bt(t.type)}o(N_,"IsReadonlyRemoveAction");function de(t,e,n){return Rt({"~kind":"Deferred"},{action:t,parameters:e,options:n},{})}o(de,"Deferred");function __(t){return Ht(t,"Deferred")}o(__,"IsDeferred");function kC(t){return Qt(t,{"~immutable":!0},{})}o(kC,"ImmutableAdd");function uh(t){return kC(t)}o(uh,"Immutable");function ym(t){return Bt(t)&&at(t,"~immutable")}o(ym,"IsImmutable");function zb(t){return Fr(t,["~optional"])}o(zb,"OptionalRemove");function Lr(t){return Qt(t,{"~optional":!0},{})}o(Lr,"OptionalAdd");function Lb(t){return Lr(t)}o(Lb,"Optional$2");function Hn(t){return Bt(t)&&at(t,"~optional")}o(Hn,"IsOptional");function HC(t){return Fr(t,["~readonly"])}o(HC,"ReadonlyRemove");function Br(t){return Qt(t,{"~readonly":!0},{})}o(Br,"ReadonlyAdd");function FC(t){return Br(t)}o(FC,"Readonly$1");function bm(t){return Bt(t)&&at(t,"~readonly")}o(bm,"IsReadonly");function ca(t,e){return Rt({"~kind":"Array"},{type:"array",items:t},e)}o(ca,"Array$1");function en(t){return Ht(t,"Array")}o(en,"IsArray");function PC(t){return Fr(t,["~kind","type","items"])}o(PC,"ArrayOptions");function Yu(t,e){return Rt({"~kind":"AsyncIterator"},{type:"asyncIterator",iteratorItems:t},e)}o(Yu,"AsyncIterator");function ds(t){return Ht(t,"AsyncIterator")}o(ds,"IsAsyncIterator");function D_(t){return Fr(t,["~kind","type","iteratorItems"])}o(D_,"AsyncIteratorOptions");function LT(t){return{enumerable:fs().enumerableKind,writable:!1,configurable:!1,value:t}}o(LT,"BaseProperty");var wl;let qC=(wl=class{constructor(){globalThis.Object.defineProperty(this,"~kind",LT("Base")),globalThis.Object.defineProperty(this,"~guard",LT({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 Ht(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 Ht(t,"Constructor")}o(ji,"IsConstructor");function j_(t){return Fr(t,["~kind","type","parameters","instanceType"])}o(j_,"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 Ht(t,"Function")}o(Ii,"IsFunction");function I_(t){return Fr(t,["~kind","type","parameters","returnType"])}o(I_,"FunctionOptions");function lr(t,e){return Rt({"~kind":"Ref"},{$ref:t},e)}o(lr,"Ref$1");function $n(t){return Ht(t,"Ref")}o($n,"IsRef$1");function Vu(t,e){return Rt({"~kind":"Generic"},{type:"generic",parameters:t,expression:e})}o(Vu,"Generic");function Bb(t){return Ht(t,"Generic")}o(Bb,"IsGeneric");const z_="(?!)";function Ze(t){return Rt({"~kind":"Never"},{not:{}},t)}o(Ze,"Never");function mh(t){return Ht(t,"Never")}o(mh,"IsNever");function L_(){return["(not-resolvable)",Ze()]}o(L_,"FromNotResolvable");function B_(){return["(not-generic)",Ze()]}o(B_,"FromNotGeneric");function U_(t,e,n){return[t,Vu(e,n)]}o(U_,"FromGeneric");function k_(t,e,n){return e in t?GC(t,e,t[e]):L_()}o(k_,"FromRef$9");function GC(t,e,n,r){return Bb(n)?U_(e,n.parameters,n.expression):$n(n)?k_(t,n.$ref):B_()}o(GC,"FromType$i");function H_(t,e,n){return GC(t,"(anonymous)",e)}o(H_,"ResolveTarget");function Ku(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(Ku,"Cyclic");function Mn(t){return Ht(t,"Cyclic")}o(Mn,"IsCyclic");function nn(t,e){return e[t.length]?.(...t)??(()=>{throw Error("Invalid Arguments")})()}o(nn,"Match$1");function cr(t){return Rt({"~kind":"Unknown"},{},t)}o(cr,"Unknown");function ss(t){return Ht(t,"Unknown")}o(ss,"IsUnknown");function C0(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a,a],1:r=>[r,cr(),cr()]});return Rt({"~kind":"Infer"},{type:"infer",name:e,extends:n},{})}o(C0,"Infer");function ur(t){return Ht(t,"Infer")}o(ur,"IsInfer");function bl(t){return Rt({"~kind":"Any"},{},t)}o(bl,"Any");function po(t){return Ht(t,"Any")}o(po,"IsAny");function F_(t){return mo(t)}o(F_,"IsTypeScriptEnumLike");function P_(t){return gt(t).filter(n=>isNaN(n)).reduce((n,r)=>[...n,t[r]],[])}o(P_,"TypeScriptEnumToEnumValues");function q_(t,e){const n=F_(t)?P_(t):t;return Rt({"~kind":"Enum"},{enum:n},e)}o(q_,"Enum");function fi(t){return Ht(t,"Enum")}o(fi,"IsEnum$1");function Ws(t,e={}){return Rt({"~kind":"Intersect"},{allOf:t},e)}o(Ws,"Intersect");function xe(t){return Ht(t,"Intersect")}o(xe,"IsIntersect");function G_(t){return Fr(t,["~kind","allOf"])}o(G_,"IntersectOptions");function He(){throw new Error("Unreachable")}o(He,"Unreachable$1");let Yy;function Y_(){try{return new globalThis.Function("null")(),!0}catch{return!1}}o(Y_,"TryEval");function Ub(){return pe(Yy)&&(Yy=Y_()),Yy&&fs().useAcceleration}o(Ub,"CanAccelerate");function V_(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(V_,"InstanceKeys");function K_(t){return typeof t=="number"}o(K_,"IsIEEE754");var xn;(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"})(xn||(xn={}));let pl=BigInt("14695981039346656037");const[X_,Q_]=[BigInt("1099511628211"),BigInt("18446744073709551616")],Z_=Array.from({length:256}).map((t,e)=>BigInt(e)),YC=new Float64Array(1),VC=new DataView(YC.buffer),KC=new Uint8Array(YC.buffer);function tn(t){pl=pl^Z_[t],pl=pl*X_%Q_}o(tn,"FNV1A64_OP");function J_(t){tn(xn.Array);for(const e of t)as(e)}o(J_,"FromArray$b");function W_(t){tn(xn.BigInt),VC.setBigInt64(0,t);for(const e of KC)tn(e)}o(W_,"FromBigInt$8");function BT(t){tn(xn.Boolean),tn(t?1:0)}o(BT,"FromBoolean$8");function t6(t){tn(xn.Constructor),as(t.toString())}o(t6,"FromConstructor$1");function e6(t){tn(xn.Date),as(t.getTime())}o(e6,"FromDate");function n6(t){tn(xn.Function),as(t.toString())}o(n6,"FromFunction$1");function r6(t){tn(xn.Null)}o(r6,"FromNull$8");function UT(t){tn(xn.Number),VC.setFloat64(0,t,!0);for(const e of KC)tn(e)}o(UT,"FromNumber$8");function i6(t){tn(xn.Object);for(const e of V_(t).sort())as(e),as(t[e])}o(i6,"FromObject$e");function o6(t){tn(xn.RegExp),$0(t.toString())}o(o6,"FromRegExp");const s6=new TextEncoder;function $0(t){tn(xn.String);for(const e of s6.encode(t))tn(e)}o($0,"FromString$8");function a6(t){tn(xn.Symbol),as(t.toString())}o(a6,"FromSymbol$1");function l6(t){tn(xn.TypeArray);const e=new Uint8Array(t.buffer);for(let n=0;n<e.length;n++)tn(e[n])}o(l6,"FromTypeArray");function c6(t){return tn(xn.Undefined)}o(c6,"FromUndefined$8");function as(t){return LC(t)?l6(t):p_(t)?e6(t):h_(t)?o6(t):f_(t)?BT(t.valueOf()):m_(t)?$0(t.valueOf()):d_(t)?UT(t.valueOf()):K_(t)?UT(t):wt(t)?J_(t):Fe(t)?BT(t):Oe(t)?W_(t):Mb(t)?t6(t):qn(t)?r6():Mt(t)?i6(t):Dt(t)?$0(t):Ob(t)?a6(t):pe(t)?c6():ao(t)?n6(t):He()}o(as,"FromValue$2");function XC(t){return pl=BigInt("14695981039346656037"),as(t),pl}o(XC,"HashCode");function Cu(t){return XC(t).toString(16).padStart(16,"0")}o(Cu,"Hash");const u6=Object.freeze(Object.defineProperty({__proto__:null,Hash:Cu,HashCode:XC},Symbol.toStringTag,{value:"Module"}));function f6(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(f6,"en_US");let d6=f6;function m6(){return d6}o(m6,"Get$2");const AS=class AS{constructor(e,n){this.type=e,this.decode=n}Encode(e){const n=this.type,r=fr(n)?f=>this.decode(n["~codec"].decode(f)):this.decode,a=fr(n)?f=>n["~codec"].encode(e(f)):e,c={decode:r,encode:a};return Qt(this.type,{"~codec":c},{})}};o(AS,"EncodeBuilder");let vm=AS;const CS=class CS{constructor(e){this.type=e}Decode(e){return new vm(this.type,e)}};o(CS,"DecodeBuilder");let Sm=CS;function kb(t){return new Sm(t)}o(kb,"Codec");function h6(t,e){return kb(t).Decode(e).Encode(()=>{throw Error("Encode not implemented")})}o(h6,"Decode$8");function p6(t,e){return kb(t).Decode(()=>{throw Error("Decode not implemented")}).Encode(e)}o(p6,"Encode$8");function fr(t){return Bt(t)&&at(t,"~codec")&&Mt(t["~codec"])&&at(t["~codec"],"encode")&&at(t["~codec"],"decode")}o(fr,"IsCodec");function g6(t,e){const n=QC(t)?[...t["~refine"],e]:[e];return Qt(t,{"~refine":n},{})}o(g6,"RefineAdd");function y6(t,e,n="error"){return g6(t,{refine:e,message:n})}o(y6,"Refine");function QC(t){return Bt(t)&&at(t,"~refine")}o(QC,"IsRefine$1");const b6="-?(?:0|[1-9][0-9]*)n";function Hb(t){return Rt({"~kind":"BigInt"},{type:"bigint"},t)}o(Hb,"BigInt$2");function ua(t){return Ht(t,"BigInt")}o(ua,"IsBigInt");function Fb(t){return Rt({"~kind":"Boolean"},{type:"boolean"},t)}o(Fb,"Boolean$1");function go(t){return Ht(t,"Boolean")}o(go,"IsBoolean");function xm(t){return Rt({"~kind":"Identifier"},{name:t})}o(xm,"Identifier");function v6(t){return Ht(t,"Identifier")}o(v6,"IsIdentifier");const ZC="-?(?:0|[1-9][0-9]*)";function Tl(t){return Rt({"~kind":"Integer"},{type:"integer"},t)}o(Tl,"Integer$1");function di(t){return Ht(t,"Integer")}o(di,"IsInteger");function Xu(t,e){return Rt({"~kind":"Iterator"},{type:"iterator",iteratorItems:t},e)}o(Xu,"Iterator");function ms(t){return Ht(t,"Iterator")}o(ms,"IsIterator");function S6(t){return Fr(t,["~kind","type","iteratorItems"])}o(S6,"IteratorOptions");const $S=class $S extends Error{constructor(e){super("Invalid Literal value"),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}};o($S,"InvalidLiteralValue");let M0=$S;function x6(t){return Oe(t)?"bigint":Fe(t)?"boolean":Vt(t)?"number":Dt(t)?"string":(()=>{throw new M0(t)})()}o(x6,"LiteralTypeName");function ge(t,e){return Rt({"~kind":"Literal"},{type:x6(t),const:t},e)}o(ge,"Literal$1");function JC(t){return Oe(t)||Fe(t)||Vt(t)||Dt(t)}o(JC,"IsLiteralValue");function E6(t){return De(t)&&Oe(t.const)}o(E6,"IsLiteralBigInt");function w6(t){return De(t)&&Fe(t.const)}o(w6,"IsLiteralBoolean");function Pb(t){return De(t)&&Vt(t.const)}o(Pb,"IsLiteralNumber");function qb(t){return De(t)&&Dt(t.const)}o(qb,"IsLiteralString");function De(t){return Ht(t,"Literal")}o(De,"IsLiteral");function Xs(t){return Rt({"~kind":"Null"},{type:"null"},t)}o(Xs,"Null");function kl(t){return Ht(t,"Null")}o(kl,"IsNull");const WC="-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?";function lo(t){return Rt({"~kind":"Number"},{type:"number"},t)}o(lo,"Number$2");function gr(t){return Ht(t,"Number")}o(gr,"IsNumber");function Gb(t){return Rt({"~kind":"Symbol"},{type:"symbol"},t)}o(Gb,"Symbol$1");function Qu(t){return Ht(t,"Symbol")}o(Qu,"IsSymbol");function T6(t){return gt(t).filter(e=>!Hn(t[e]))}o(T6,"RequiredArray");function A6(t){return gt(t)}o(A6,"PropertyKeys");function t$(t){return Nb(t)}o(t$,"PropertyValues");function ae(t,e={}){const n=T6(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 Ht(t,"Object")}o(Ce,"IsObject");function C6(t){return Fr(t,["~kind","type","properties","required"])}o(C6,"ObjectOptions");function Zu(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[a,c,c],1:a=>[a,cr(),cr()]});return Rt({"~kind":"Parameter"},{name:e,extends:n,equals:r},{})}o(Zu,"Parameter$1");function $6(t){return Ht(t,"Parameter")}o($6,"IsParameter");function Ju(t,e){return Rt({"~kind":"Promise"},{type:"promise",item:t},e)}o(Ju,"Promise$1");function yo(t){return Ht(t,"Promise")}o(yo,"IsPromise");function M6(t){return Fr(t,["~kind","type","item"])}o(M6,"PromiseOptions");const e$=".*";function Ur(t){return Rt({"~kind":"String"},{type:"string"},t)}o(Ur,"String$2");function Bn(t){return Ht(t,"String")}o(Bn,"IsString");function ve(t,e={}){return Rt({"~kind":"Union"},{anyOf:t},e)}o(ve,"Union");function kt(t){return Ht(t,"Union")}o(kt,"IsUnion");function O6(t){return Fr(t,["~kind","anyOf"])}o(O6,"UnionOptions");function n$(t){const e=Dz(t);return O(e.length,2)?e[0]:[]}o(n$,"ParsePatternIntoTypes");function R6(t){return!0}o(R6,"FromLiteral$5");function r$(t){const[e,...n]=t;return Bt(e)?N6(e)?r$(n):!1:!0}o(r$,"FromTypesReduce");function i$(t){return O(t.length,0)?!1:r$(t)}o(i$,"FromTypes$3");function N6(t){return kt(t)?i$(t.anyOf):De(t)?R6(t.const):!1}o(N6,"FromType$h");function o$(t){return i$(t)}o(o$,"IsTemplateLiteralFinite");function s$(t){return Rt({"~kind":"TemplateLiteral"},{type:"string",pattern:t},{})}o(s$,"TemplateLiteralCreate");function a$(t,e,n=[]){const[r,...a]=t;return Dt(r)?a$(a,e,[...n,`${r}${e}`]):n}o(a$,"FromLiteralPush");function _6(t,e){return O(t.length,0)?[`${e}`]:a$(t,e)}o(_6,"FromLiteral$4");function l$(t,e,n=[]){const[r,...a]=e;return Bt(r)?l$(t,a,[...n,...c$(t,r)]):n}o(l$,"FromUnion$d");function c$(t,e){return kt(e)?l$(t,e.anyOf):De(e)?_6(t,e.const):He()}o(c$,"FromType$g");function u$(t,e){const[n,...r]=e;return Bt(n)?u$(c$(t,n),r):t}o(u$,"DecodeFromSpan");function D6(t){return t.map(e=>ge(e))}o(D6,"VariantsToLiterals");function j6(t){const e=u$([],t),n=D6(e);return ve(n)}o(j6,"DecodeTypesAsUnion");function I6(t){return O(t.length,0)?He():O(t.length,1)&&De(t[0])?t[0]:j6(t)}o(I6,"DecodeTypes");function f$(t){const e=n$(t);return O(e.length,0)?Ur():o$(e)?I6(e):s$(t)}o(f$,"TemplateLiteralDecodeUnsafe");function bo(t){const e=f$(t);return Pr(e)?Ur():e}o(bo,"TemplateLiteralDecode");function ls(t,e){const n="object",r={[t]:e};return Rt({"~kind":"Record"},{type:n,patternProperties:r})}o(ls,"CreateRecord");const hh=`^${ZC}$`,ph=`^${WC}$`,ta=`^${e$}$`;function Yb(t,e,n={}){return de("Record",[t,e],n)}o(Yb,"RecordDeferred");function z6(t,e,n={}){return Wt({},Yb(t,e,n))}o(z6,"RecordConstruct");function Vb(t,e,n={}){return z6(t,e,n)}o(Vb,"Record");function L6(t,e){return ls(t,e)}o(L6,"RecordFromPattern");function hs(t){return gt(t.patternProperties)[0]}o(hs,"RecordPattern");function Kb(t){const e=hs(t);return O(e,ta)?Ur():O(e,hh)?Tl():O(e,ph)?lo():f$(e)}o(Kb,"RecordKey");function zi(t){return t.patternProperties[hs(t)]}o(zi,"RecordValue");function yr(t){return Ht(t,"Record")}o(yr,"IsRecord");function gh(t){return Rt({"~kind":"Rest"},{type:"rest",items:t},{})}o(gh,"Rest");function yh(t){return Ht(t,"Rest")}o(yh,"IsRest");function d$(t){return Rt({"~kind":"This"},{$ref:"#"},t)}o(d$,"This");function B6(t){return Ht(t,"This")}o(B6,"IsThis");function mi(t,e={}){const[n,r,a]=[t,t.length,!1];return Rt({"~kind":"Tuple"},{type:"array",additionalItems:a,items:n,minItems:r},e)}o(mi,"Tuple$1");function Pe(t){return Ht(t,"Tuple")}o(Pe,"IsTuple");function U6(t){return Fr(t,["~kind","type","items","minItems","additionalItems"])}o(U6,"TupleOptions");function bh(t){return Rt({"~kind":"Undefined"},{type:"undefined"},t)}o(bh,"Undefined");function Hl(t){return Ht(t,"Undefined")}o(Hl,"IsUndefined");function Qd(t){return Rt({"~kind":"Unsafe"},{},t)}o(Qd,"Unsafe");function m$(t){return Ht(t,"Unsafe")}o(m$,"IsUnsafe");function Xb(t){return Rt({"~kind":"Void"},{type:"void"},t)}o(Xb,"Void");function ps(t){return Ht(t,"Void")}o(ps,"IsVoid");function k6(t,e){return O(t,"Array")?ca(e[0]):O(t,"AsyncIterator")?Yu(e[0]):O(t,"Iterator")?Xu(e[0]):O(t,"Promise")?Ju(e[0]):O(t,"Awaited")?Kv(e[0]):O(t,"Capitalize")?xv(e[0]):O(t,"ConstructorParameters")?Cv(e[0]):O(t,"Evaluate")?PM(e[0]):O(t,"Exclude")?$v(e[0],e[1]):O(t,"Extract")?Mv(e[0],e[1]):O(t,"Index")?wh(e[0],e[1]):O(t,"InstanceType")?Dv(e[0]):O(t,"Lowercase")?Ev(e[0]):O(t,"NonNullable")?Iv(e[0]):O(t,"Omit")?zv(e[0],e[1]):O(t,"Options")?Ah(e[0],e[1]):O(t,"Parameters")?Bv(e[0]):O(t,"Partial")?Uv(e[0]):O(t,"Pick")?kv(e[0],e[1]):O(t,"Readonly")?Hv(e[0]):O(t,"KeyOf")?Th(e[0]):O(t,"Record")?Yb(e[0],e[1]):O(t,"Required")?Fv(e[0]):O(t,"ReturnType")?Pv(e[0]):O(t,"Uncapitalize")?wv(e[0]):O(t,"Uppercase")?Tv(e[0]):CM(lr(t),e)}o(k6,"IntrinsicOrCall");function fa(){throw Error("Unreachable")}o(fa,"Unreachable");const H6=o((t,e=[])=>t.reduce((n,r)=>wt(r)&&O(r.length,2)?[...n,r[0]]:[...n,r],[]),"DelimitedDecode"),vo=o(t=>{const[e,n]=t;return H6([...e,...n])},"Delimited");function F6(t){return Zu(t[0],t[2],t[4])}o(F6,"GenericParameterExtendsEqualsMapping");function P6(t){return Zu(t[0],t[2],t[2])}o(P6,"GenericParameterExtendsMapping");function q6(t){return Zu(t[0],cr(),t[2])}o(q6,"GenericParameterEqualsMapping");function G6(t){return Zu(t,cr(),cr())}o(G6,"GenericParameterIdentifierMapping");function Y6(t){return vo(t)}o(Y6,"GenericParameterListMapping");function V6(t){return t[1]}o(V6,"GenericParametersMapping");function K6(t){return vo(t)}o(K6,"GenericCallArgumentListMapping");function X6(t){return t[1]}o(X6,"GenericCallArgumentsMapping");function Q6(t){return k6(t[0],t[1])}o(Q6,"GenericCallMapping");function Z6(t){return null}o(Z6,"OptionalSemiColonMapping");function J6(t){return Ur()}o(J6,"KeywordStringMapping");function W6(t){return lo()}o(W6,"KeywordNumberMapping");function tD(t){return Fb()}o(tD,"KeywordBooleanMapping");function eD(t){return bh()}o(eD,"KeywordUndefinedMapping");function nD(t){return Xs()}o(nD,"KeywordNullMapping");function rD(t){return Tl()}o(rD,"KeywordIntegerMapping");function iD(t){return Hb()}o(iD,"KeywordBigIntMapping");function oD(t){return cr()}o(oD,"KeywordUnknownMapping");function sD(t){return bl()}o(sD,"KeywordAnyMapping");function aD(t){return ae({})}o(aD,"KeywordObjectMapping");function lD(t){return Ze()}o(lD,"KeywordNeverMapping");function cD(t){return Gb()}o(cD,"KeywordSymbolMapping");function uD(t){return Xb()}o(uD,"KeywordVoidMapping");function fD(t){return d$()}o(fD,"KeywordThisMapping");function dD(t){return t[1]}o(dD,"TemplateInterpolateMapping");function mD(t){return ge(t)}o(mD,"TemplateSpanMapping");function hD(t){return O(t.length,3)?[t[0],t[1],...t[2]]:[t[0]]}o(hD,"TemplateBodyMapping");function pD(t){return t[1]}o(pD,"TemplateLiteralTypesMapping");function gD(t){return av(t)}o(gD,"TemplateLiteralMapping");function yD(t){return ge(BigInt(t))}o(yD,"LiteralBigIntMapping");function bD(t){return ge(O(t,"true"))}o(bD,"LiteralBooleanMapping");function vD(t){return ge(parseFloat(t))}o(vD,"LiteralNumberMapping");function SD(t){return ge(t)}o(SD,"LiteralStringMapping");function xD(t){return t.length>0}o(xD,"KeyOfMapping");function ED(t){return t.reduce((e,n)=>O(n.length,3)?[...e,[n[1]]]:[...e,[]],[])}o(ED,"IndexArrayMapping");function wD(t){return O(t.length,6)?[t[1],t[3],t[5]]:[]}o(wD,"ExtendsMapping");function TD(t){return wt(t)&&O(t.length,3)?t[1]:t}o(TD,"BaseMapping");const kT=o((t,e)=>e.reduceRight((n,r)=>{const a=r;return O(a.length,1)?wh(n,a[0]):O(a.length,0)?ca(n):fa()},t),"FactorIndexArray"),HT=o((t,e)=>O(e.length,3)?Av(t,e[0],e[1],e[2]):t,"FactorExtends");function AD(t){const[e,n,r,a]=t;return HT(e?Th(kT(n,r)):kT(n,r),a)}o(AD,"FactorMapping");function Qb(t,e){return O(e.length,3)?(()=>{const[n,r,a]=e,c=Qb(r,a);if(O(n,"&"))return xe(c)?Ws([t,...c.allOf]):Ws([t,c]);if(O(n,"|"))return kt(c)?ve([t,...c.anyOf]):ve([t,c]);fa()})():t}o(Qb,"ExprBinaryMapping");function CD(t){const[e,n]=t;return Qb(e,n)}o(CD,"ExprTermMapping");function $D(t){const[e,n]=t;return Qb(e,n)}o($D,"ExprMapping");function MD(t){return kC(t[1])}o(MD,"ExprReadonlyMapping");function OD(t){return t[1]}o(OD,"ExprPipeMapping");function RD(t){return Vu(t[0],t[2])}o(RD,"GenericTypeMapping");function ND(t){return O(t.length,4)?C0(t[1],t[3]):O(t.length,2)?C0(t[1],cr()):fa()}o(ND,"InferTypeMapping");function _D(t){return`${t}`}o(_D,"PropertyKeyNumberMapping");function DD(t){return di(t[3])?hh:gr(t[3])?ph:Qu(t[3])||Bn(t[3])?ta:fa()}o(DD,"PropertyKeyIndexMapping");function jD(t){return t.length>0}o(jD,"ReadonlyMapping");function ID(t){return t.length>0}o(ID,"OptionalMapping");function zD(t){const[e,n,r,a,c]=t;return{[n]:e&&r?Br(Lr(c)):e&&!r?Br(c):!e&&r?Lr(c):c}}o(zD,"PropertyMapping");function LD(t){return vo(t)}o(LD,"PropertyListMapping");function h$(t){return t.reduce((e,n)=>at(n,hh)||at(n,ph)||at(n,ta)?[e[0],Xe(e[1],n)]:[Xe(e[0],n),e[1]],[{},{}])}o(h$,"PropertiesReduce");function BD(t){return h$(t[1])}o(BD,"PropertiesMapping");function UD(t){const[e,n]=t,r=O(gt(n).length,0)?{}:{patternProperties:n};return ae(e,r)}o(UD,"_Object_Mapping");function kD(t){return O(t.length,5)?Br(Lr(t[4])):O(t.length,3)?t[2]:O(t.length,4)?O(t[2],"readonly")?Br(t[3]):Lr(t[3]):fa()}o(kD,"ElementNamedMapping");function HD(t){return Br(Lr(t[1]))}o(HD,"ElementReadonlyOptionalMapping");function FD(t){return Br(t[1])}o(FD,"ElementReadonlyMapping");function PD(t){return Lr(t[0])}o(PD,"ElementOptionalMapping");function qD(t){return O(t.length,2)?gh(t[1]):O(t.length,1)?t[0]:fa()}o(qD,"ElementMapping");function GD(t){return vo(t)}o(GD,"ElementListMapping");function YD(t){return mi(t[1])}o(YD,"TupleMapping");function VD(t){return Br(Lr(t[4]))}o(VD,"ParameterReadonlyOptionalMapping");function KD(t){return Br(t[3])}o(KD,"ParameterReadonlyMapping");function XD(t){return Lr(t[3])}o(XD,"ParameterOptionalMapping");function QD(t){return t[2]}o(QD,"ParameterTypeMapping");function ZD(t){return O(t.length,2)?gh(t[1]):O(t.length,1)?t[0]:fa()}o(ZD,"ParameterMapping");function JD(t){return vo(t)}o(JD,"ParameterListMapping");function WD(t){return dh(t[1],t[4])}o(WD,"_Function_Mapping");function tj(t){return fh(t[2],t[5])}o(tj,"ConstructorMapping");function FT(t,e){return O(t,"remove")?R_(e):O(t,"add")?M_(e):e}o(FT,"ApplyReadonly$1");function ej(t){return O(t.length,2)&&O(t[0],"-")?"remove":O(t.length,2)&&O(t[0],"+")||O(t.length,1)?"add":"none"}o(ej,"MappedReadonlyMapping");function PT(t,e){return O(t,"remove")?C_(e):O(t,"add")?T_(e):e}o(PT,"ApplyOptional$1");function nj(t){return O(t.length,2)&&O(t[0],"-")?"remove":O(t.length,2)&&O(t[0],"+")||O(t.length,1)?"add":"none"}o(nj,"MappedOptionalMapping");function rj(t){return O(t.length,2)?[t[1]]:[]}o(rj,"MappedAsMapping");function ij(t){return wt(t[6])&&O(t[6].length,1)?Am(xm(t[3]),t[5],t[6][0],FT(t[1],PT(t[8],t[10]))):Am(xm(t[3]),t[5],lr(t[3]),FT(t[1],PT(t[8],t[10])))}o(ij,"MappedMapping");function oj(t){return lr(t)}o(oj,"ReferenceMapping");function sj(t){return Ah(t[2],t[4])}o(sj,"OptionsMapping");function aj(t){return parseFloat(t)}o(aj,"JsonNumberMapping");function lj(t){return O(t,"true")}o(lj,"JsonBooleanMapping");function cj(t){return null}o(cj,"JsonNullMapping");function uj(t){return{[t[0]]:t[2]}}o(uj,"JsonPropertyMapping");function fj(t){return vo(t)}o(fj,"JsonPropertyListMapping");function dj(t){return t.reduce((e,n)=>Xe(e,n),{})}o(dj,"JsonObjectMappingReduce");function mj(t){return dj(t[1])}o(mj,"JsonObjectMapping");function hj(t){return vo(t)}o(hj,"JsonElementListMapping");function pj(t){return t[1]}o(pj,"JsonArrayMapping");function gj(t){return Hb()}o(gj,"PatternBigIntMapping");function yj(t){return Ur()}o(yj,"PatternStringMapping");function bj(t){return lo()}o(bj,"PatternNumberMapping");function vj(t){return Tl()}o(vj,"PatternIntegerMapping");function Sj(t){return Ze()}o(Sj,"PatternNeverMapping");function xj(t){return ge(t)}o(xj,"PatternTextMapping");function Ej(t){return ve(t[1])}o(Ej,"PatternGroupMapping");function wj(t){return t.length===3?[...t[0],...t[2]]:t.length===1?[...t[0]]:[]}o(wj,"PatternUnionMapping");function Tj(t){return[t[0],...t[1]]}o(Tj,"PatternTermMapping");function Aj(t){return t[1]}o(Aj,"PatternMapping");function Cj(t){return vo(t)}o(Cj,"InterfaceDeclarationHeritageListMapping");function $j(t){return O(t.length,2)?t[1]:[]}o($j,"InterfaceDeclarationHeritageMapping");function Mj(t){const e=t[2],n=t[3],[r,a]=t[4],c=O(gt(a).length,0)?{}:{patternProperties:a};return{[t[1]]:Vu(e,Eh(n,r,c))}}o(Mj,"InterfaceDeclarationGenericMapping");function Oj(t){const e=t[2],[n,r]=t[3],a=O(gt(r).length,0)?{}:{patternProperties:r};return{[t[1]]:Eh(e,n,a)}}o(Oj,"InterfaceDeclarationMapping");function Rj(t){return{[t[1]]:Vu(t[2],t[4])}}o(Rj,"TypeAliasDeclarationGenericMapping");function Nj(t){return{[t[1]]:t[3]}}o(Nj,"TypeAliasDeclarationMapping");function _j(t){return null}o(_j,"ExportKeywordMapping");function Dj(t){return h$(vo(t))}o(Dj,"ModuleDeclarationListMapping");function jj(t){return t[1]}o(jj,"ModuleDeclarationMapping");function Ij(t){const e=t[0],n=t[1];return qM(Xe(e,n[0]))}o(Ij,"ModuleMapping");function Ne(t){return wt(t)&&O(t.length,2)}o(Ne,"IsResult");function zj(t,e){return O(e.indexOf(t),0)?[t,e.slice(t.length)]:[]}o(zj,"TakeVariant");function br(t,e){const[n,...r]=t;return Dt(n)?(()=>{const a=zj(n,e);return O(a.length,2)?a:br(r,e)})():[]}o(br,"Take");function O0(t,e){return Array.from({length:e-t+1},(n,r)=>String.fromCharCode(t+r))}o(O0,"Range");const Lj=[...O0(97,122),...O0(65,90)],p$="0",g$=O0(49,57),Zb=[p$,...g$],Bj=" ",Jb=`
|
|
3
|
+
`,Wu="_",Wb=".",Uj="$",y$="-",b$="//",v$="/*",kj="*/";function S$(t){const e=t.indexOf(kj);return O(e,-1)?"":t.slice(e+2)}o(S$,"DiscardMultilineComment");function x$(t){const e=t.indexOf(Jb);return O(e,-1)?"":t.slice(e)}o(x$,"DiscardLineComment");function Hj(t){return t.replace(/^[ \t\r\f\v]+/,"")}o(Hj,"TrimStartUntilNewline");function R0(t){const e=Hj(t);return e.startsWith(v$)?R0(S$(e.slice(2))):e.startsWith(b$)?R0(x$(e.slice(2))):e}o(R0,"TrimWhitespace");function co(t){const e=t.trimStart();return e.startsWith(v$)?co(S$(e.slice(2))):e.startsWith(b$)?co(x$(e.slice(2))):e}o(co,"Trim");function Fj(t,e){return t.includes(e)}o(Fj,"IsDiscard");function Em(t,e,n,r=""){const a=br(t,n);return Ne(a)?Fj(e,a[0])?Em(t,e,a[1],r):Em(t,e,a[1],`${r}${a[0]}`):[r,n]}o(Em,"Many");function E$(t,e){const n=br([t],e);return Ne(n)?n:["",e]}o(E$,"Optional$1");function Pj(t){return E$(y$,t)}o(Pj,"TakeSign$1");function qj(t){return br(g$,t)}o(qj,"TakeNonZero");const Gj=[...Zb,Wu];function Yj(t){return Em(Gj,[Wu],t)}o(Yj,"TakeDigits");function Vj(t){const e=Pj(t);return Ne(e)?(()=>{const n=br([p$],e[1]);return Ne(n)?[`${e[0]}${n[0]}`,n[1]]:(()=>{const r=qj(e[1]);return Ne(r)?(()=>{const a=Yj(r[1]);return Ne(a)?[`${e[0]}${r[0]}${a[0]}`,a[1]]:[]})():[]})()})():[]}o(Vj,"TakeInteger");function w$(t){return Vj(co(t))}o(w$,"Integer");function Kj(t){const e=w$(t);return Ne(e)?(()=>{const n=br(["n"],e[1]);return Ne(n)?[`${e[0]}`,n[1]]:[]})():[]}o(Kj,"TakeBigInt");function Xj(t){return Kj(t)}o(Xj,"BigInt$1");function Vy(t,e){return br([t],e)}o(Vy,"TakeConst");function Z(t,e){return O(t,"")?["",e]:t.startsWith(Jb)?Vy(t,R0(e)):t.startsWith(Bj)?Vy(t,e):Vy(t,co(e))}o(Z,"Const");const T$=[...Lj,Wu,Uj];function Qj(t){return br(T$,t)}o(Qj,"TakeInitial$1");const Zj=[...T$,...Zb];function A$(t,e=""){const n=br(Zj,t);return Ne(n)?A$(n[1],`${e}${n[0]}`):[e,t]}o(A$,"TakeRemaining");function Jj(t){const e=Qj(t);return Ne(e)?(()=>{const n=A$(e[1]);return Ne(n)?[`${e[0]}${n[0]}`,n[1]]:[]})():[]}o(Jj,"TakeIdent");function _e(t){return Jj(co(t))}o(_e,"Ident");const Wj=[...Zb,Wu];function tI(t){return E$(y$,t)}o(tI,"TakeSign");function eI(t){return Ne(br([Wb],t))}o(eI,"IsLeadingDot");function C$(t){const e=Em(Wj,[Wu],t);return Ne(e)?O(e[0],"")?[]:[e[0],e[1]]:[]}o(C$,"TakeFractional");function nI(t,e){const n=br([Wb],e);return Ne(n)?(()=>{const r=C$(n[1]);return Ne(r)?[`${t}0${n[0]}${r[0]}`,r[1]]:[]})():[]}o(nI,"LeadingDot");function rI(t,e){const n=w$(e);return Ne(n)?(()=>{const r=br([Wb],n[1]);return Ne(r)?(()=>{const a=C$(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(rI,"LeadingInteger");function iI(t){const e=tI(t);return Ne(e)?eI(e[1])?nI(e[0],e[1]):rI(e[0],e[1]):[]}o(iI,"TakeNumber");function tv(t){return iI(co(t))}o(tv,"Number$1");function $$(t,e){const[n,...r]=t;return Dt(n)?e.startsWith(n)?!0:$$(r,e):!1}o($$,"IsEnd");function tf(t,e,n=""){return O(e,"")?[]:$$(t,e)?[n,e]:(()=>{const[r,a]=[e.slice(0,1),e.slice(1)];return tf(t,a,`${n}${r}`)})()}o(tf,"Until");function oI(t,e,n){return n.startsWith(t)?(()=>{const r=tf([e],n.slice(t.length));return Ne(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}o(oI,"MultiLine");function sI(t,e,n){return n.startsWith(t)?(()=>{const r=tf([Jb,e],n.slice(t.length));return Ne(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}o(sI,"SingleLine");function aI(t,e,n,r){return n?oI(t,e,co(r)):sI(t,e,co(r))}o(aI,"Span");function lI(t,e){return br(t,e)}o(lI,"TakeInitial");function cI(t,e){return aI(t,t,!1,e)}o(cI,"TakeSpan");function uI(t,e){const n=lI(t,e);return Ne(n)?cI(n[0],`${n[0]}${n[1]}`):[]}o(uI,"TakeString");function ev(t,e){return uI(t,co(e))}o(ev,"String$1");function fI(t,e){const n=tf(t,e);return Ne(n)?O(n[0],"")?[]:n:[]}o(fI,"Until_1");const b=o((t,e,n=()=>[])=>t.length===2?e(t):n(),"If"),dI=o(t=>b(b(_e(t),([e,n])=>b(Z("extends",n),([r,a])=>b(qt(a),([c,f])=>b(Z("=",f),([d,h])=>b(qt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[F6(e),n]),"GenericParameterExtendsEquals"),mI=o(t=>b(b(_e(t),([e,n])=>b(Z("extends",n),([r,a])=>b(qt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[P6(e),n]),"GenericParameterExtends"),hI=o(t=>b(b(_e(t),([e,n])=>b(Z("=",n),([r,a])=>b(qt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[q6(e),n]),"GenericParameterEquals"),pI=o(t=>b(_e(t),([e,n])=>[G6(e),n]),"GenericParameterIdentifier"),M$=o(t=>b(b(dI(t),([e,n])=>[e,n],()=>b(mI(t),([e,n])=>[e,n],()=>b(hI(t),([e,n])=>[e,n],()=>b(pI(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"GenericParameter"),O$=o((t,e=[])=>b(b(M$(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>O$(r,[...e,n]),()=>[e,t]),"GenericParameterList_0"),gI=o(t=>b(b(O$(t),([e,n])=>b(b(b(M$(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[Y6(e),n]),"GenericParameterList"),nv=o(t=>b(b(Z("<",t),([e,n])=>b(gI(n),([r,a])=>b(Z(">",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[V6(e),n]),"GenericParameters"),R$=o((t,e=[])=>b(b(qt(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>R$(r,[...e,n]),()=>[e,t]),"GenericCallArgumentList_0"),yI=o(t=>b(b(R$(t),([e,n])=>b(b(b(qt(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[K6(e),n]),"GenericCallArgumentList"),bI=o(t=>b(b(Z("<",t),([e,n])=>b(yI(n),([r,a])=>b(Z(">",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[X6(e),n]),"GenericCallArguments"),vI=o(t=>b(b(_e(t),([e,n])=>b(bI(n),([r,a])=>[[e,r],a])),([e,n])=>[Q6(e),n]),"GenericCall"),N$=o(t=>b(b(b(Z(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Z6(),n]),"OptionalSemiColon"),_$=o(t=>b(Z("string",t),([e,n])=>[J6(),n]),"KeywordString"),D$=o(t=>b(Z("number",t),([e,n])=>[W6(),n]),"KeywordNumber"),SI=o(t=>b(Z("boolean",t),([e,n])=>[tD(),n]),"KeywordBoolean"),xI=o(t=>b(Z("undefined",t),([e,n])=>[eD(),n]),"KeywordUndefined"),EI=o(t=>b(Z("null",t),([e,n])=>[nD(),n]),"KeywordNull"),j$=o(t=>b(Z("integer",t),([e,n])=>[rD(),n]),"KeywordInteger"),wI=o(t=>b(Z("bigint",t),([e,n])=>[iD(),n]),"KeywordBigInt"),TI=o(t=>b(Z("unknown",t),([e,n])=>[oD(),n]),"KeywordUnknown"),AI=o(t=>b(Z("any",t),([e,n])=>[sD(),n]),"KeywordAny"),CI=o(t=>b(Z("object",t),([e,n])=>[aD(),n]),"KeywordObject"),$I=o(t=>b(Z("never",t),([e,n])=>[lD(),n]),"KeywordNever"),I$=o(t=>b(Z("symbol",t),([e,n])=>[cD(),n]),"KeywordSymbol"),MI=o(t=>b(Z("void",t),([e,n])=>[uD(),n]),"KeywordVoid"),OI=o(t=>b(Z("this",t),([e,n])=>[fD(),n]),"KeywordThis"),RI=o(t=>b(b(_$(t),([e,n])=>[e,n],()=>b(D$(t),([e,n])=>[e,n],()=>b(SI(t),([e,n])=>[e,n],()=>b(xI(t),([e,n])=>[e,n],()=>b(EI(t),([e,n])=>[e,n],()=>b(j$(t),([e,n])=>[e,n],()=>b(wI(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(I$(t),([e,n])=>[e,n],()=>b(MI(t),([e,n])=>[e,n],()=>b(OI(t),([e,n])=>[e,n],()=>[])))))))))))))),([e,n])=>[e,n]),"Keyword"),NI=o(t=>b(b(Z("${",t),([e,n])=>b(qt(n),([r,a])=>b(Z("}",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[dD(e),n]),"TemplateInterpolate"),Ky=o(t=>b(tf(["${","`"],t),([e,n])=>[mD(e),n]),"TemplateSpan"),z$=o(t=>b(b(b(Ky(t),([e,n])=>b(NI(n),([r,a])=>b(z$(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])=>[hD(e),n]),"TemplateBody"),L$=o(t=>b(b(Z("`",t),([e,n])=>b(z$(n),([r,a])=>b(Z("`",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[pD(e),n]),"TemplateLiteralTypes"),_I=o(t=>b(L$(t),([e,n])=>[gD(e),n]),"TemplateLiteral$1"),DI=o(t=>b(Xj(t),([e,n])=>[yD(e),n]),"LiteralBigInt"),jI=o(t=>b(b(Z("true",t),([e,n])=>[e,n],()=>b(Z("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[bD(e),n]),"LiteralBoolean"),II=o(t=>b(tv(t),([e,n])=>[vD(e),n]),"LiteralNumber"),zI=o(t=>b(ev(["'",'"'],t),([e,n])=>[SD(e),n]),"LiteralString"),LI=o(t=>b(b(DI(t),([e,n])=>[e,n],()=>b(jI(t),([e,n])=>[e,n],()=>b(II(t),([e,n])=>[e,n],()=>b(zI(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"Literal"),BI=o(t=>b(b(b(Z("keyof",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[xD(e),n]),"KeyOf$1"),B$=o((t,e=[])=>b(b(b(Z("[",t),([n,r])=>b(qt(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])=>B$(r,[...e,n]),()=>[e,t]),"IndexArray_0"),UI=o(t=>b(B$(t),([e,n])=>[ED(e),n]),"IndexArray"),kI=o(t=>b(b(b(Z("extends",t),([e,n])=>b(qt(n),([r,a])=>b(Z("?",a),([c,f])=>b(qt(f),([d,h])=>b(Z(":",h),([g,y])=>b(qt(y),([v,E])=>[[e,r,c,d,g,v],E])))))),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[wD(e),n]),"Extends$1"),HI=o(t=>b(b(b(Z("(",t),([e,n])=>b(qt(n),([r,a])=>b(Z(")",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>b(RI(t),([e,n])=>[e,n],()=>b(WI(t),([e,n])=>[e,n],()=>b(oz(t),([e,n])=>[e,n],()=>b(_I(t),([e,n])=>[e,n],()=>b(LI(t),([e,n])=>[e,n],()=>b(fz(t),([e,n])=>[e,n],()=>b(uz(t),([e,n])=>[e,n],()=>b(pz(t),([e,n])=>[e,n],()=>b(yz(t),([e,n])=>[e,n],()=>b(vI(t),([e,n])=>[e,n],()=>b(gz(t),([e,n])=>[e,n],()=>[])))))))))))),([e,n])=>[TD(e),n]),"Base"),U$=o(t=>b(b(BI(t),([e,n])=>b(HI(n),([r,a])=>b(UI(a),([c,f])=>b(kI(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[AD(e),n]),"Factor"),k$=o(t=>b(b(b(Z("&",t),([e,n])=>b(U$(n),([r,a])=>b(k$(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),"ExprTermTail"),H$=o(t=>b(b(U$(t),([e,n])=>b(k$(n),([r,a])=>[[e,r],a])),([e,n])=>[CD(e),n]),"ExprTerm"),F$=o(t=>b(b(b(Z("|",t),([e,n])=>b(H$(n),([r,a])=>b(F$(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(H$(t),([e,n])=>b(F$(n),([r,a])=>[[e,r],a])),([e,n])=>[$D(e),n]),"Expr"),FI=o(t=>b(b(Z("readonly",t),([e,n])=>b(vh(n),([r,a])=>[[e,r],a])),([e,n])=>[MD(e),n]),"ExprReadonly"),PI=o(t=>b(b(Z("|",t),([e,n])=>b(vh(n),([r,a])=>[[e,r],a])),([e,n])=>[OD(e),n]),"ExprPipe"),qI=o(t=>b(b(nv(t),([e,n])=>b(Z("=",n),([r,a])=>b(qt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[RD(e),n]),"GenericType"),GI=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])=>[ND(e),n]),"InferType"),qt=o(t=>b(b(GI(t),([e,n])=>[e,n],()=>b(PI(t),([e,n])=>[e,n],()=>b(FI(t),([e,n])=>[e,n],()=>b(vh(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"Type$1"),YI=o(t=>b(tv(t),([e,n])=>[_D(e),n]),"PropertyKeyNumber"),VI=o(t=>b(_e(t),([e,n])=>[e,n]),"PropertyKeyIdent"),KI=o(t=>b(ev(["'",'"'],t),([e,n])=>[e,n]),"PropertyKeyQuoted"),XI=o(t=>b(b(Z("[",t),([e,n])=>b(_e(n),([r,a])=>b(Z(":",a),([c,f])=>b(b(j$(f),([d,h])=>[d,h],()=>b(D$(f),([d,h])=>[d,h],()=>b(_$(f),([d,h])=>[d,h],()=>b(I$(f),([d,h])=>[d,h],()=>[])))),([d,h])=>b(Z("]",h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[DD(e),n]),"PropertyKeyIndex"),P$=o(t=>b(b(YI(t),([e,n])=>[e,n],()=>b(VI(t),([e,n])=>[e,n],()=>b(KI(t),([e,n])=>[e,n],()=>b(XI(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"PropertyKey"),QI=o(t=>b(b(b(Z("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[jD(e),n]),"Readonly"),ZI=o(t=>b(b(b(Z("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[ID(e),n]),"Optional"),q$=o(t=>b(b(QI(t),([e,n])=>b(P$(n),([r,a])=>b(ZI(a),([c,f])=>b(Z(":",f),([d,h])=>b(qt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[zD(e),n]),"Property"),G$=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"),Y$=o((t,e=[])=>b(b(q$(t),([n,r])=>b(G$(r),([a,c])=>[[n,a],c])),([n,r])=>Y$(r,[...e,n]),()=>[e,t]),"PropertyList_0"),JI=o(t=>b(b(Y$(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])=>[LD(e),n]),"PropertyList"),rv=o(t=>b(b(Z("{",t),([e,n])=>b(JI(n),([r,a])=>b(Z("}",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[BD(e),n]),"Properties"),WI=o(t=>b(rv(t),([e,n])=>[UD(e),n]),"_Object_"),tz=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(qt(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(qt(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(qt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[e,n],()=>b(b(_e(t),([e,n])=>b(Z(":",n),([r,a])=>b(qt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[e,n],()=>[])))),([e,n])=>[kD(e),n]),"ElementNamed"),ez=o(t=>b(b(Z("readonly",t),([e,n])=>b(qt(n),([r,a])=>b(Z("?",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[HD(e),n]),"ElementReadonlyOptional"),nz=o(t=>b(b(Z("readonly",t),([e,n])=>b(qt(n),([r,a])=>[[e,r],a])),([e,n])=>[FD(e),n]),"ElementReadonly"),rz=o(t=>b(b(qt(t),([e,n])=>b(Z("?",n),([r,a])=>[[e,r],a])),([e,n])=>[PD(e),n]),"ElementOptional"),qT=o(t=>b(b(tz(t),([e,n])=>[e,n],()=>b(ez(t),([e,n])=>[e,n],()=>b(nz(t),([e,n])=>[e,n],()=>b(rz(t),([e,n])=>[e,n],()=>b(qt(t),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),"ElementBase"),V$=o(t=>b(b(b(Z("...",t),([e,n])=>b(qT(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(qT(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[qD(e),n]),"Element$1"),K$=o((t,e=[])=>b(b(V$(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>K$(r,[...e,n]),()=>[e,t]),"ElementList_0"),iz=o(t=>b(b(K$(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])=>[GD(e),n]),"ElementList"),oz=o(t=>b(b(Z("[",t),([e,n])=>b(iz(n),([r,a])=>b(Z("]",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[YD(e),n]),"Tuple"),sz=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(qt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[VD(e),n]),"ParameterReadonlyOptional"),az=o(t=>b(b(_e(t),([e,n])=>b(Z(":",n),([r,a])=>b(Z("readonly",a),([c,f])=>b(qt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[KD(e),n]),"ParameterReadonly"),lz=o(t=>b(b(_e(t),([e,n])=>b(Z("?",n),([r,a])=>b(Z(":",a),([c,f])=>b(qt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[XD(e),n]),"ParameterOptional"),cz=o(t=>b(b(_e(t),([e,n])=>b(Z(":",n),([r,a])=>b(qt(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[QD(e),n]),"ParameterType"),GT=o(t=>b(b(sz(t),([e,n])=>[e,n],()=>b(az(t),([e,n])=>[e,n],()=>b(lz(t),([e,n])=>[e,n],()=>b(cz(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),"ParameterBase"),X$=o(t=>b(b(b(Z("...",t),([e,n])=>b(GT(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b(b(GT(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[ZD(e),n]),"Parameter"),Q$=o((t,e=[])=>b(b(X$(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>Q$(r,[...e,n]),()=>[e,t]),"ParameterList_0"),Z$=o(t=>b(b(Q$(t),([e,n])=>b(b(b(X$(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[JD(e),n]),"ParameterList"),uz=o(t=>b(b(Z("(",t),([e,n])=>b(Z$(n),([r,a])=>b(Z(")",a),([c,f])=>b(Z("=>",f),([d,h])=>b(qt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[WD(e),n]),"_Function_"),fz=o(t=>b(b(Z("new",t),([e,n])=>b(Z("(",n),([r,a])=>b(Z$(a),([c,f])=>b(Z(")",f),([d,h])=>b(Z("=>",h),([g,y])=>b(qt(y),([v,E])=>[[e,r,c,d,g,v],E])))))),([e,n])=>[tj(e),n]),"Constructor"),dz=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])=>[ej(e),n]),"MappedReadonly"),mz=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])=>[nj(e),n]),"MappedOptional"),hz=o(t=>b(b(b(Z("as",t),([e,n])=>b(qt(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[rj(e),n]),"MappedAs"),pz=o(t=>b(b(Z("{",t),([e,n])=>b(dz(n),([r,a])=>b(Z("[",a),([c,f])=>b(_e(f),([d,h])=>b(Z("in",h),([g,y])=>b(qt(y),([v,E])=>b(hz(E),([x,C])=>b(Z("]",C),([w,M])=>b(mz(M),([L,z])=>b(Z(":",z),([D,F])=>b(qt(F),([G,P])=>b(N$(P),([B,H])=>b(Z("}",H),([et,nt])=>[[e,r,c,d,g,v,x,w,L,D,G,B,et],nt]))))))))))))),([e,n])=>[ij(e),n]),"Mapped$1"),gz=o(t=>b(_e(t),([e,n])=>[oj(e),n]),"Reference"),yz=o(t=>b(b(Z("Options",t),([e,n])=>b(Z("<",n),([r,a])=>b(qt(a),([c,f])=>b(Z(",",f),([d,h])=>b(tM(h),([g,y])=>b(Z(">",y),([v,E])=>[[e,r,c,d,g,v],E])))))),([e,n])=>[sj(e),n]),"Options$1"),bz=o(t=>b(tv(t),([e,n])=>[aj(e),n]),"JsonNumber"),vz=o(t=>b(b(Z("true",t),([e,n])=>[e,n],()=>b(Z("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[lj(e),n]),"JsonBoolean"),Sz=o(t=>b(ev(['"',"'"],t),([e,n])=>[e,n]),"JsonString"),xz=o(t=>b(Z("null",t),([e,n])=>[cj(),n]),"JsonNull"),J$=o(t=>b(b(P$(t),([e,n])=>b(Z(":",n),([r,a])=>b(iv(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[uj(e),n]),"JsonProperty"),W$=o((t,e=[])=>b(b(J$(t),([n,r])=>b(G$(r),([a,c])=>[[n,a],c])),([n,r])=>W$(r,[...e,n]),()=>[e,t]),"JsonPropertyList_0"),Ez=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])=>[fj(e),n]),"JsonPropertyList"),tM=o(t=>b(b(Z("{",t),([e,n])=>b(Ez(n),([r,a])=>b(Z("}",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[mj(e),n]),"JsonObject"),eM=o((t,e=[])=>b(b(iv(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>eM(r,[...e,n]),()=>[e,t]),"JsonElementList_0"),wz=o(t=>b(b(eM(t),([e,n])=>b(b(b(iv(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[hj(e),n]),"JsonElementList"),Tz=o(t=>b(b(Z("[",t),([e,n])=>b(wz(n),([r,a])=>b(Z("]",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[pj(e),n]),"JsonArray"),iv=o(t=>b(b(bz(t),([e,n])=>[e,n],()=>b(vz(t),([e,n])=>[e,n],()=>b(Sz(t),([e,n])=>[e,n],()=>b(xz(t),([e,n])=>[e,n],()=>b(tM(t),([e,n])=>[e,n],()=>b(Tz(t),([e,n])=>[e,n],()=>[])))))),([e,n])=>[e,n]),"Json"),Az=o(t=>b(Z("-?(?:0|[1-9][0-9]*)n",t),([e,n])=>[gj(),n]),"PatternBigInt"),Cz=o(t=>b(Z(".*",t),([e,n])=>[yj(),n]),"PatternString"),$z=o(t=>b(Z("-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?",t),([e,n])=>[bj(),n]),"PatternNumber"),Mz=o(t=>b(Z("-?(?:0|[1-9][0-9]*)",t),([e,n])=>[vj(),n]),"PatternInteger"),Oz=o(t=>b(Z("(?!)",t),([e,n])=>[Sj(),n]),"PatternNever"),Rz=o(t=>b(fI(["-?(?:0|[1-9][0-9]*)n",".*","-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?","-?(?:0|[1-9][0-9]*)","(?!)","(",")","$","|"],t),([e,n])=>[xj(e),n]),"PatternText"),Nz=o(t=>b(b(Az(t),([e,n])=>[e,n],()=>b(Cz(t),([e,n])=>[e,n],()=>b($z(t),([e,n])=>[e,n],()=>b(Mz(t),([e,n])=>[e,n],()=>b(Oz(t),([e,n])=>[e,n],()=>b(_z(t),([e,n])=>[e,n],()=>b(Rz(t),([e,n])=>[e,n],()=>[]))))))),([e,n])=>[e,n]),"PatternBase"),_z=o(t=>b(b(Z("(",t),([e,n])=>b(ov(n),([r,a])=>b(Z(")",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[Ej(e),n]),"PatternGroup"),nM=o(t=>b(b(b(N0(t),([e,n])=>b(Z("|",n),([r,a])=>b(nM(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])=>[wj(e),n]),"PatternUnion"),N0=o(t=>b(b(Nz(t),([e,n])=>b(ov(n),([r,a])=>[[e,r],a])),([e,n])=>[Tj(e),n]),"PatternTerm"),ov=o(t=>b(b(nM(t),([e,n])=>[e,n],()=>b(N0(t),([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),"PatternBody"),Dz=o(t=>b(b(Z("^",t),([e,n])=>b(ov(n),([r,a])=>b(Z("$",a),([c,f])=>[[e,r,c],f]))),([e,n])=>[Aj(e),n]),"Pattern"),rM=o((t,e=[])=>b(b(qt(t),([n,r])=>b(Z(",",r),([a,c])=>[[n,a],c])),([n,r])=>rM(r,[...e,n]),()=>[e,t]),"InterfaceDeclarationHeritageList_0"),jz=o(t=>b(b(rM(t),([e,n])=>b(b(b(qt(n),([r,a])=>[[r],a]),([r,a])=>[r,a],()=>b([[],n],([r,a])=>[r,a],()=>[])),([r,a])=>[[e,r],a])),([e,n])=>[Cj(e),n]),"InterfaceDeclarationHeritageList"),iM=o(t=>b(b(b(Z("extends",t),([e,n])=>b(jz(n),([r,a])=>[[e,r],a])),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[$j(e),n]),"InterfaceDeclarationHeritage"),Iz=o(t=>b(b(Z("interface",t),([e,n])=>b(_e(n),([r,a])=>b(nv(a),([c,f])=>b(iM(f),([d,h])=>b(rv(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[Mj(e),n]),"InterfaceDeclarationGeneric"),zz=o(t=>b(b(Z("interface",t),([e,n])=>b(_e(n),([r,a])=>b(iM(a),([c,f])=>b(rv(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[Oj(e),n]),"InterfaceDeclaration"),Lz=o(t=>b(b(Z("type",t),([e,n])=>b(_e(n),([r,a])=>b(nv(a),([c,f])=>b(Z("=",f),([d,h])=>b(qt(h),([g,y])=>[[e,r,c,d,g],y]))))),([e,n])=>[Rj(e),n]),"TypeAliasDeclarationGeneric"),Bz=o(t=>b(b(Z("type",t),([e,n])=>b(_e(n),([r,a])=>b(Z("=",a),([c,f])=>b(qt(f),([d,h])=>[[e,r,c,d],h])))),([e,n])=>[Nj(e),n]),"TypeAliasDeclaration"),Uz=o(t=>b(b(b(Z("export",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>b([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[_j(),n]),"ExportKeyword"),kz=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"),oM=o((t,e=[])=>b(b(sv(t),([n,r])=>b(kz(r),([a,c])=>[[n,a],c])),([n,r])=>oM(r,[...e,n]),()=>[e,t]),"ModuleDeclarationList_0"),Hz=o(t=>b(b(oM(t),([e,n])=>b(b(b(sv(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]),"ModuleDeclarationList"),sv=o(t=>b(b(Uz(t),([e,n])=>b(b(Iz(n),([r,a])=>[r,a],()=>b(zz(n),([r,a])=>[r,a],()=>b(Lz(n),([r,a])=>[r,a],()=>b(Bz(n),([r,a])=>[r,a],()=>[])))),([r,a])=>b(N$(a),([c,f])=>[[e,r,c],f]))),([e,n])=>[jj(e),n]),"ModuleDeclaration"),Fz=o(t=>b(b(sv(t),([e,n])=>b(Hz(n),([r,a])=>[[e,r],a])),([e,n])=>[Ij(e),n]),"Module$1"),Pz=o(t=>b(b(Fz(t),([e,n])=>[e,n],()=>b(qI(t),([e,n])=>[e,n],()=>b(qt(t),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]),"Script$1");function qz(t){const e=L$(`\`${t}\``);return O(e.length,2)?e[0]:He()}o(qz,"ParseTemplateIntoTypes");function av(t,e={}){return de("TemplateLiteral",[t],e)}o(av,"TemplateLiteralDeferred");function sM(t){return Wt({},av(t,{}))}o(sM,"TemplateLiteralFromTypes");function Gz(t){const e=qz(t);return sM(e)}o(Gz,"TemplateLiteralFromString");function Yz(t,e={}){const n=Dt(t)?Gz(t):sM(t);return Qt(n,{},e)}o(Yz,"TemplateLiteral");function Pr(t){return Ht(t,"TemplateLiteral")}o(Pr,"IsTemplateLiteral");function aM(t){return Rt({"~kind":"ExtendsUnion"},{inferred:t})}o(aM,"ExtendsUnion$1");function lv(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&O(t["~kind"],"ExtendsUnion")&&Mt(t.inferred)}o(lv,"IsExtendsUnion");function jt(t){return Rt({"~kind":"ExtendsTrue"},{inferred:t})}o(jt,"ExtendsTrue");function cv(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&O(t["~kind"],"ExtendsTrue")&&Mt(t.inferred)}o(cv,"IsExtendsTrue");function re(){return Rt({"~kind":"ExtendsFalse"},{})}o(re,"ExtendsFalse");function _0(t){return Mt(t)&&at(t,"~kind")&&O(t["~kind"],"ExtendsFalse")}o(_0,"IsExtendsFalse");function Ae(t){return lv(t)||cv(t)}o(Ae,"IsExtendsTrueLike");const Vz=Object.freeze(Object.defineProperty({__proto__:null,ExtendsFalse:re,ExtendsTrue:jt,ExtendsUnion:aM,IsExtendsFalse:_0,IsExtendsTrue:cv,IsExtendsTrueLike:Ae,IsExtendsUnion:lv},Symbol.toStringTag,{value:"Module"}));function Kz(t){return Dt(t)||Vt(t)?ge(t):qn(t)?Xs():Ze()}o(Kz,"FromEnumValue");function Fl(t){return t.map(n=>Kz(n))}o(Fl,"EnumValuesToVariants");function uv(t){const e=Fl(t);return ve(e)}o(uv,"EnumValuesToUnion");function fv(t){return uv(t.enum)}o(fv,"EnumToUnion");function Xz(t,e,n,r){const a=Je(t,n,r);return Ae(a)?jt(Xe(Xe(t,a.inferred),{[e]:n})):re()}o(Xz,"ExtendsRightInfer");function Qz(t,e){return jt(t)}o(Qz,"ExtendsRightAny");function Zz(t,e,n){const r=uv(n);return Je(t,e,r)}o(Zz,"ExtendsRightEnum");function lM(t,e,n){const[r,...a]=n;return Bt(r)?(()=>{const c=Je(t,e,r);return Ae(c)?lM(c.inferred,e,a):re()})():jt(t)}o(lM,"ExtendsRightIntersect");function Jz(t,e,n){const r=bo(n);return Je(t,e,r)}o(Jz,"ExtendsRightTemplateLiteral");function cM(t,e,n){const[r,...a]=n;return Bt(r)?(()=>{const c=Je(t,e,r);return Ae(c)?jt(c.inferred):cM(t,e,a)})():re()}o(cM,"ExtendsRightUnion");function Le(t,e,n){return po(n)?Qz(t):fi(n)?Zz(t,e,n.enum):ur(n)?Xz(t,n.name,e,n.extends):xe(n)?lM(t,e,n.allOf):Pr(n)?Jz(t,e,n.pattern):kt(n)?cM(t,e,n.anyOf):ss(n)?jt(t):re()}o(Le,"ExtendsRight");function Wz(t,e,n){return ur(n)?Le(t,e,n):po(n)||ss(n)?jt(t):aM(t)}o(Wz,"ExtendsAny");function tL(t,e){const n=ym(t),r=ym(e);return n&&r||!n&&r?!0:!(n&&!r)}o(tL,"ExtendsImmutable");function eL(t,e,n,r){return en(r)?tL(e,r)?Je(t,n,r.items):re():Le(t,e,r)}o(eL,"ExtendsArray");function nL(t,e,n){return ds(n)?Je(t,e,n.iteratorItems):Le(t,Yu(e),n)}o(nL,"ExtendsAsyncIterator");function rL(t,e,n){return ua(n)?jt(t):Le(t,e,n)}o(rL,"ExtendsBigInt");function iL(t,e,n){return go(n)?jt(t):Le(t,e,n)}o(iL,"ExtendsBoolean");function oL(t,e,n,r,a){const c=ur(r)?e:r,f=ur(r)?r:e,d=Hn(e),h=Hn(r),g=Je(t,c,f);return!d&&h?re():Ae(g)?dv(g.inferred,n,a):re()}o(oL,"ParameterCompare");function sL(t,e,n,r){const[a,...c]=r;return Bt(a)?oL(t,e,n,a,c):Hn(e)?jt(t):re()}o(sL,"ParameterRight");function aL(t,e,n){const[r,...a]=e;return Bt(r)?sL(t,r,a,n):jt(t)}o(aL,"ParametersLeft");function dv(t,e,n){return aL(t,e,n)}o(dv,"ExtendsParameters");function uM(t,e,n){return ps(n)?jt(t):Je(t,e,n)}o(uM,"ExtendsReturnType");function lL(t,e,n,r){return ji(r)?(()=>{const a=dv(t,e,r.parameters);return Ae(a)?uM(a.inferred,n,r.instanceType):re()})():re()}o(lL,"ExtendsConstructor");function cL(t,e,n){return Je(t,fv(e),n)}o(cL,"ExtendsEnum");function uL(t,e,n,r){return Ii(r)?(()=>{const a=dv(t,e,r.parameters);return Ae(a)?uM(a.inferred,n,r.returnType):re()})():re()}o(uL,"ExtendsFunction");function fL(t,e,n){return di(n)||gr(n)?jt(t):Le(t,e,n)}o(fL,"ExtendsInteger");const mv="equal",dL="disjoint",hv="left-inside",pv="right-inside";function gv(t,e){const n=[ss(t)?re():uo({},t,e),ss(t)?jt({}):uo({},e,t)];return Ae(n[0])&&Ae(n[1])?mv:Ae(n[0])&&_0(n[1])?hv:_0(n[0])&&Ae(n[1])?pv:dL}o(gv,"Compare");function mL(t){return kt(t)?ef(t.anyOf):[t]}o(mL,"FlattenType");function ef(t){return t.reduce((e,n)=>[...e,...mL(n)],[])}o(ef,"Flatten");function fM(t){return t.reduceRight((n,r,a)=>({[a]:r,...n}),{})}o(fM,"TupleElementsToProperties");function hL(t){const e=fM(t.items);return ae(e)}o(hL,"TupleToObject");function pL(t,e){return bm(t)?!!bm(e):!1}o(pL,"IsReadonlyProperty");function gL(t,e){return Hn(t)?!!Hn(e):!1}o(gL,"IsOptionalProperty");function yL(t,e){const n=pL(t,e),r=gL(t,e),a=qr([t,e]),c=HC(zb(a));return n&&r?Br(Lr(c)):n&&!r?Br(c):!n&&r?Lr(c):c}o(yL,"CompositeProperty");function bL(t,e,n){return n in t?n in e?yL(t[n],e[n]):t[n]:n in e?e[n]:Ze()}o(bL,"CompositePropertyKey");function vL(t,e){return[...new Set([...gt(e),...gt(t)])].reduce((r,a)=>({...r,[a]:bL(t,e,a)}),{})}o(vL,"CompositeProperties");function YT(t){return Ce(t)?t.properties:Pe(t)?fM(t.items):He()}o(YT,"GetProperties");function SL(t,e){const n=YT(t),r=YT(e),a=vL(n,r);return ae(a)}o(SL,"Composite");function xL(t,e){const n=gv(t,e);return O(n,hv)?t:O(n,pv)||O(n,mv)?e:Ze()}o(xL,"Narrow");function VT(t){return Ce(t)||Pe(t)}o(VT,"IsObjectLike");function EL(t,e){const n=kt(t),r=kt(e);return n||r}o(EL,"IsUnionOperand");function wL(t,e){const n=Tm(t),r=Tm(e),a=EL(n,r),c=VT(n),f=VT(r);return a?qr([n,r]):c&&f?SL(n,r):c&&!f?n:!c&&f?r:xL(n,r)}o(wL,"DistributeOperation");function dM(t,e,n=[]){const[r,...a]=e;return pe(r)?n.length===0?[t]:n:dM(t,a,[...n,wL(t,r)])}o(dM,"DistributeType");function mM(t,e,n=[]){const[r,...a]=t;return Bt(r)?mM(a,e,[...n,...wm([r],e)]):n}o(mM,"DistributeUnion");function wm(t,e=[]){const[n,...r]=t;return Bt(n)?kt(n)?wm(r,mM(n.anyOf,e)):wm(r,dM(n,e)):e}o(wm,"Distribute");function qr(t){const e=wm(t);return hM(e)}o(qr,"EvaluateIntersect");function nf(t){return hM(t)}o(nf,"EvaluateUnion");function Tm(t){return xe(t)?qr(t.allOf):kt(t)?nf(t.anyOf):t}o(Tm,"EvaluateType");function Sh(t){return O(t.length,1)?t[0]:O(t.length,0)?Ze():ve(t)}o(Sh,"EvaluateUnionFast");function TL(t,e){return e.filter(n=>gv(t,n)!==pv)}o(TL,"BroadFilter");function AL(t,e){const n=e.some(r=>{const a=gv(t,r);return O(a,hv)||O(a,mv)});return O(n,!1)}o(AL,"IsBroadestType");function CL(t,e){const n=Tm(t);return po(n)?[n]:AL(n,e)?[...TL(n,e),n]:e}o(CL,"BroadenType");function D0(t,e=[]){const[n,...r]=t;return Bt(n)?Ce(n)?D0(r,[...e,n]):D0(r,CL(n,e)):e}o(D0,"BroadenTypes");function hM(t){const e=D0(t),n=ef(e);return n.length===0?Ze():n.length===1?n[0]:ve(n)}o(hM,"Broaden");function $L(t,e,n,r){const a=xt(t,e,n);return Qt(Tm(a),{},r)}o($L,"EvaluateImmediate");function ML(t,e,n,r){return $L(t,e,n,r)}o(ML,"EvaluateInstantiate");function OL(t,e,n){const r=qr(e);return Je(t,r,n)}o(OL,"ExtendsIntersect");function RL(t,e,n){return ms(n)?Je(t,e,n.iteratorItems):Le(t,Xu(e),n)}o(RL,"ExtendsIterator");function xh(t,e,n){return e===n?jt(t):re()}o(xh,"ExtendsLiteralValue");function NL(t,e,n){return De(n)?xh(t,e,n.const):ua(n)?jt(t):Le(t,ge(e),n)}o(NL,"ExtendsLiteralBigInt");function _L(t,e,n){return De(n)?xh(t,e,n.const):go(n)?jt(t):Le(t,ge(e),n)}o(_L,"ExtendsLiteralBoolean");function DL(t,e,n){return De(n)?xh(t,e,n.const):gr(n)?jt(t):Le(t,ge(e),n)}o(DL,"ExtendsLiteralNumber");function jL(t,e,n){return De(n)?xh(t,e,n.const):Bn(n)?jt(t):Le(t,ge(e),n)}o(jL,"ExtendsLiteralString");function IL(t,e,n){return Oe(e.const)?NL(t,e.const,n):Fe(e.const)?_L(t,e.const,n):Vt(e.const)?DL(t,e.const,n):Dt(e.const)?jL(t,e.const,n):He()}o(IL,"ExtendsLiteral");function zL(t,e,n){return ur(n)?Le(t,e,n):jt(t)}o(zL,"ExtendsNever");function LL(t,e,n){return kl(n)?jt(t):Le(t,e,n)}o(LL,"ExtendsNull");function BL(t,e,n){return gr(n)?jt(t):Le(t,e,n)}o(BL,"ExtendsNumber");function UL(t,e,n){return Hn(e)?Hn(n)?jt(t):re():jt(t)}o(UL,"ExtendsPropertyOptional");function kL(t,e,n){return ur(n)&&mh(n.extends)?re():(()=>{const r=Je(t,e,n);return Ae(r)?UL(r.inferred,e,n):re()})()}o(kL,"ExtendsProperty");function HL(t,e){return t.reduce((n,r)=>r in e&&Ae(e[r])?{...n,...e[r].inferred}:He(),{})}o(HL,"ExtractInferredProperties");function FL(t,e,n){const r={};for(const f of gt(n))r[f]=f in e?kL({},e[f],n[f]):Hn(n[f])?ur(n[f])?jt(Xe(t,{[n[f].name]:n[f].extends})):jt(t):re();const a=Nb(r).every(f=>Ae(f)),c=a?HL(gt(r),r):{};return a?jt(c):re()}o(FL,"ExtendsPropertiesComparer");function PL(t,e,n){const r=FL(t,e,n);return Ae(r)?jt(Xe(t,r.inferred)):re()}o(PL,"ExtendsProperties");function qL(t,e,n){return PL(t,e,n)}o(qL,"ExtendsObjectToObject");function GL(t,e,n){return Ce(n)?qL(t,e,n.properties):Le(t,ae(e),n)}o(GL,"ExtendsObject");function YL(t,e,n){return yo(n)?Je(t,e,n.item):Le(t,Ju(e),n)}o(YL,"ExtendsPromise");function VL(t,e,n){return Bn(n)?jt(t):Le(t,e,n)}o(VL,"ExtendsString");function KL(t,e,n){return Qu(n)?jt(t):Le(t,e,n)}o(KL,"ExtendsSymbol");function XL(t,e,n){const r=bo(e);return Je(t,r,n)}o(XL,"ExtendsTemplateLiteral");function j0(t,e){return Rt({"~kind":"Inferrable"},{name:t,type:e},{})}o(j0,"Inferrable");function yv(t){return Mt(t)&&at(t,"~kind")&&at(t,"name")&&at(t,"type")&&O(t["~kind"],"Inferrable")&&Dt(t.name)&&Mt(t.type)}o(yv,"IsInferable");function pM(t){return yh(t)?ur(t.items)?en(t.items.extends)?j0(t.items.name,t.items.extends.items):ss(t.items.extends)?j0(t.items.name,t.items.extends):void 0:He():void 0}o(pM,"TryRestInferable");function gM(t){return ur(t)?j0(t.name,t.extends):void 0}o(gM,"TryInferable");function bv(t,e,n=[]){const[r,...a]=t;return Bt(r)?(()=>{const c=Je({},r,e);return Ae(c)?bv(a,e,[...n,r]):void 0})():n}o(bv,"TryInferResults");function QL(t,e,n,r){const a=bv(n,r);return wt(a)?jt(Xe(t,{[e]:mi(a)})):re()}o(QL,"InferTupleResult");function yM(t,e,n,r){const a=bv(n,r);return wt(a)?jt(Xe(t,{[e]:ve(a)})):re()}o(yM,"InferUnionResult");function ZL(t){return[...t].reverse()}o(ZL,"Reverse");function I0(t,e){return e?ZL(t):t}o(I0,"ApplyReverse");function JL(t){const e=t.length>0?t[0]:void 0,n=Bt(e)?pM(e):void 0;return Bt(n)}o(JL,"Reversed");function WL(t,e,n,r,a,c){const f=Je(t,n,a);return Ae(f)?bM(f.inferred,e,r,c):re()}o(WL,"ElementsCompare");function t8(t,e,n,r,a){const c=pM(r);return yv(c)?QL(t,c.name,I0(n,e),c.type):(()=>{const[f,...d]=n;return Bt(f)?WL(t,e,f,d,r,a):re()})()}o(t8,"ElementsLeft");function e8(t,e,n,r){const[a,...c]=r;return Bt(a)?t8(t,e,n,a,c):O(n.length,0)?jt(t):re()}o(e8,"ElementsRight");function bM(t,e,n,r){return e8(t,e,n,r)}o(bM,"Elements");function n8(t,e,n){const r=Vv(t,{callstack:[]},n),a=JL(r);return bM(t,a,I0(e,a),I0(r,a))}o(n8,"ExtendsTupleToTuple");function vM(t,e,n){const r=gM(n);return yv(r)?yM(t,r.name,e,r.type):(()=>{const[a,...c]=e;return Bt(a)?(()=>{const f=Je(t,a,n);return Ae(f)?vM(f.inferred,c,n):re()})():jt(t)})()}o(vM,"ExtendsTupleToArray");function r8(t,e,n){const r=Vv(t,{callstack:[]},e);return Pe(n)?n8(t,r,n.items):en(n)?vM(t,r,n.items):Le(t,mi(r),n)}o(r8,"ExtendsTuple");function i8(t,e,n){return ps(n)||Hl(n)?jt(t):Le(t,e,n)}o(i8,"ExtendsUndefined");function SM(t,e,n){const[r,...a]=n;return Bt(r)?(()=>{const c=Je(t,e,r);return Ae(c)?jt(c.inferred):SM(t,e,a)})():re()}o(SM,"ExtendsUnionSome");function z0(t,e,n){const[r,...a]=e;return Bt(r)?(()=>{const c=SM(t,r,n);return Ae(c)?z0(c.inferred,a,n):re()})():jt(t)}o(z0,"ExtendsUnionLeft");function o8(t,e,n){const r=gM(n);return yv(r)?yM(t,r.name,e,r.type):kt(n)?z0(t,e,n.anyOf):z0(t,e,[n])}o(o8,"ExtendsUnion");function s8(t,e,n){return ur(n)?Le(t,e,n):po(n)||ss(n)?jt(t):re()}o(s8,"ExtendsUnknown");function a8(t,e,n){return ps(n)?jt(t):Le(t,e,n)}o(a8,"ExtendsVoid");function Je(t,e,n){return po(e)?Wz(t,e,n):en(e)?eL(t,e,e.items,n):ds(e)?nL(t,e.iteratorItems,n):ua(e)?rL(t,e,n):go(e)?iL(t,e,n):ji(e)?lL(t,e.parameters,e.instanceType,n):fi(e)?cL(t,e,n):Ii(e)?uL(t,e.parameters,e.returnType,n):di(e)?fL(t,e,n):xe(e)?OL(t,e.allOf,n):ms(e)?RL(t,e.iteratorItems,n):De(e)?IL(t,e,n):mh(e)?zL(t,e,n):kl(e)?LL(t,e,n):gr(e)?BL(t,e,n):Ce(e)?GL(t,e.properties,n):yo(e)?YL(t,e.item,n):Bn(e)?VL(t,e,n):Qu(e)?KL(t,e,n):Pr(e)?XL(t,e.pattern,n):Pe(e)?r8(t,e.items,n):Hl(e)?i8(t,e,n):kt(e)?o8(t,e.anyOf,n):ss(e)?s8(t,e,n):ps(e)?a8(t,e,n):re()}o(Je,"ExtendsLeft");function Eh(t,e,n={}){return de("Interface",[t,e],n)}o(Eh,"InterfaceDeferred");function vv(t){return Bt(t)&&at(t,"action")&&O(t.action,"Interface")}o(vv,"IsInterfaceDeferred");function xM(t,e,n={}){return Wt({},Eh(t,e,n))}o(xM,"Interface");function l8(t,e,n){return t.includes(n)?!0:Wo([...t,n],e,e[n])}o(l8,"FromRef$8");function KT(t,e,n){const r=t$(n);return qs(t,e,r)}o(KT,"FromProperties$3");function qs(t,e,n){const[r,...a]=n;return Bt(r)?Wo(t,e,r)?!0:qs(t,e,a):!1}o(qs,"FromTypes$2");function Wo(t,e,n){return $n(n)?l8(t,e,n.$ref):en(n)?Wo(t,e,n.items):ds(n)?Wo(t,e,n.iteratorItems):ji(n)?qs(t,e,[...n.parameters,n.instanceType]):Ii(n)?qs(t,e,[...n.parameters,n.returnType]):vv(n)?KT(t,e,n.parameters[1]):xe(n)?qs(t,e,n.allOf):ms(n)?Wo(t,e,n.iteratorItems):Ce(n)?KT(t,e,n.properties):yo(n)?Wo(t,e,n.item):kt(n)?qs(t,e,n.anyOf):Pe(n)?qs(t,e,n.items):yr(n)?Wo(t,e,zi(n)):!1}o(Wo,"FromType$f");function EM(t,e,n){return Wo(t,e,n)}o(EM,"CyclicCheck");function c8(t,e){return e.reduce((n,r)=>r in t?EM([r],t,t[r])?[...n,r]:n:He(),[])}o(c8,"ResolveCandidateKeys");function u8(t){const e=A6(t);return c8(t,e)}o(u8,"CyclicCandidates");function f8(t,e,n){return n.includes(e)?n:e in t?ts(t,t[e],[...n,e]):He()}o(f8,"FromRef$7");function XT(t,e,n){const r=t$(e);return dl(t,r,n)}o(XT,"FromProperties$2");function dl(t,e,n){return e.reduce((r,a)=>ts(t,a,r),n)}o(dl,"FromTypes$1");function ts(t,e,n){return $n(e)?f8(t,e.$ref,n):en(e)?ts(t,e.items,n):ds(e)?ts(t,e.iteratorItems,n):ji(e)?dl(t,[...e.parameters,e.instanceType],n):Ii(e)?dl(t,[...e.parameters,e.returnType],n):vv(e)?XT(t,e.parameters[1],n):xe(e)?dl(t,e.allOf,n):ms(e)?ts(t,e.iteratorItems,n):Ce(e)?XT(t,e.properties,n):yo(e)?ts(t,e.item,n):kt(e)?dl(t,e.anyOf,n):Pe(e)?dl(t,e.items,n):yr(e)?ts(t,zi(e),n):n}o(ts,"FromType$e");function d8(t,e,n){return ts(t,n,[e])}o(d8,"CyclicDependencies");function m8(t){return bl()}o(m8,"FromRef$6");function h8(t){return gt(t).reduce((e,n)=>({...e,[n]:wi(t[n])}),{})}o(h8,"FromProperties$1");function lu(t){return t.reduce((e,n)=>[...e,wi(n)],[])}o(lu,"FromTypes");function wi(t){return $n(t)?m8(t.$ref):en(t)?ca(wi(t.items),PC(t)):ds(t)?Yu(wi(t.iteratorItems)):ji(t)?fh(lu(t.parameters),wi(t.instanceType)):Ii(t)?dh(lu(t.parameters),wi(t.returnType)):xe(t)?Ws(lu(t.allOf)):ms(t)?Xu(wi(t.iteratorItems)):Ce(t)?ae(h8(t.properties)):yo(t)?Ju(wi(t.item)):yr(t)?Vb(Kb(t),wi(zi(t))):kt(t)?ve(lu(t.anyOf)):Pe(t)?mi(lu(t.items)):t}o(wi,"FromType$d");function p8(t,e){return e in t?wi(t[e]):cr()}o(p8,"CyclicAnyFromParameters");function g8(t){return p8(t.$defs,t.$ref)}o(g8,"CyclicExtends");function y8(t,e,n){const r=Ci(t,{callstack:[]},e),a=Yv({},{callstack:[]},n);return qr([...r,ae(a)])}o(y8,"CyclicInterface");function b8(t,e){return gt(t).filter(r=>e.includes(r)).reduce((r,a)=>{const c=t[a],f=vv(c)?y8(t,c.parameters[0],c.parameters[1]):c;return{...r,[a]:f}},{})}o(b8,"CyclicDefinitions");function v8(t,e,n){const r=d8(t,e,n),a=b8(t,r);return Ku(a,e)}o(v8,"InstantiateCyclic");function wM(t,e){return e in t?$n(t[e])?wM(t,t[e].$ref):t[e]:Ze()}o(wM,"Resolve");function rf(t,e){return wM(t,e)}o(rf,"CyclicTarget");function QT(t){return Mn(t)?g8(t):t}o(QT,"Normal");function uo(t,e,n){const r=QT(e),a=QT(n);return Je(t,r,a)}o(uo,"Extends");function S8(t,e,n){if(ur(e)||Sv(e)||Ae(uo({},e,n)))return;const r={parameter:t,extends:n,received:e};throw new Error("Generic argument does not satify constraint",{cause:r})}o(S8,"AssertArgumentExtends");function ZT(t,e,n,r,a){const c=xt(t,e,a);return S8(n,c,r),Xe(t,{[n]:c})}o(ZT,"BindArgument");function x8(t,e,n,r,a){const c=xt(t,e,n.extends),f=xt(t,e,n.equals),[d,...h]=a;return Bt(d)?L0(ZT(t,e,n.name,c,d),e,r,h):L0(ZT(t,e,n.name,c,f),e,r,[])}o(x8,"BindArguments");function L0(t,e,n,r){const[a,...c]=n;return Bt(a)?x8(t,e,a,c,r):t}o(L0,"BindParameters");function E8(t,e,n,r){return L0(t,e,n,r)}o(E8,"ResolveArgumentsContext");function w8(t){return zl(t.length,0)?t[0]:""}o(w8,"Peek");function TM(t,e,n,r){const a=Ci(t,e,r);return CM(n,a)}o(TM,"DeferredCall");function T8(t,e,n,r){return TM(t,e,lr(n),r)}o(T8,"TailCall");function A8(t,e,n,r,a,c){const f=Ci(t,e,c),d=E8(t,e,r,f),h=xt(d,{callstack:[...e.callstack,n]},a);return xt(t,e,h)}o(A8,"HeadCall");function AM(t,e,n,r){const[a,c]=H_(t,n);return Bb(c)?O(w8(e.callstack),a)?T8(t,e,a,r):A8(t,e,a,c.parameters,c.expression,r):TM(t,e,n,r)}o(AM,"CallInstantiate");function CM(t,e){return Rt({"~kind":"Call"},{target:t,arguments:e},{})}o(CM,"CallConstruct");function C8(t,e){return AM({},{callstack:[]},t,e)}o(C8,"Call");function Sv(t){return Ht(t,"Call")}o(Sv,"IsCall");function $M(t){return yo(t)?$M(t.item):t}o($M,"AwaitedAction");function $8(t,e,n,r){const a=xt(t,e,n);return Qt($M(a),{},r)}o($8,"AwaitedImmediate");function M8(t,e,n,r){return fe(t,[n])?$8(t,e,n,r):Kv(n,r)}o(M8,"AwaitedInstantiate");function O8(t,e){return t(e)}o(O8,"ApplyMapping");function R8(t,e){return Dt(e)?ge(O8(t,e)):ge(e)}o(R8,"FromLiteral$3");function N8(t,e){const n=bo(e);return Pl(t,n)}o(N8,"FromTemplateLiteral$4");function _8(t,e){const n=e.map(r=>Pl(t,r));return ve(n)}o(_8,"FromUnion$c");function Pl(t,e){return De(e)?R8(t,e.const):Pr(e)?N8(t,e.pattern):kt(e)?_8(t,e.anyOf):e}o(Pl,"FromType$c");function xv(t,e={}){return de("Capitalize",[t],e)}o(xv,"CapitalizeDeferred");function D8(t,e={}){return Wt({},xv(t,e))}o(D8,"Capitalize");function Ev(t,e={}){return de("Lowercase",[t],e)}o(Ev,"LowercaseDeferred");function j8(t,e={}){return Wt({},Ev(t,e))}o(j8,"Lowercase");function wv(t,e={}){return de("Uncapitalize",[t],e)}o(wv,"UncapitalizeDeferred");function I8(t,e={}){return Wt({},wv(t,e))}o(I8,"Uncapitalize");function Tv(t,e={}){return de("Uppercase",[t],e)}o(Tv,"UppercaseDeferred");function z8(t,e={}){return Wt({},Tv(t,e))}o(z8,"Uppercase");const L8=o(t=>t[0].toUpperCase()+t.slice(1),"CapitalizeMapping"),B8=o(t=>t.toLowerCase(),"LowercaseMapping"),U8=o(t=>t[0].toLowerCase()+t.slice(1),"UncapitalizeMapping"),k8=o(t=>t.toUpperCase(),"UppercaseMapping");function H8(t,e,n,r){const a=xt(t,e,n);return Qt(Pl(L8,a),{},r)}o(H8,"CapitalizeImmediate");function F8(t,e,n,r){return fe(t,[n])?H8(t,e,n,r):xv(n,r)}o(F8,"CapitalizeInstantiate");function P8(t,e,n,r){const a=xt(t,e,n);return Qt(Pl(B8,a),{},r)}o(P8,"LowercaseImmediate");function q8(t,e,n,r){return fe(t,[n])?P8(t,e,n,r):Ev(n,r)}o(q8,"LowercaseInstantiate");function G8(t,e,n,r){const a=xt(t,e,n);return Qt(Pl(U8,a),{},r)}o(G8,"UncapitalizeImmediate");function Y8(t,e,n,r){return fe(t,[n])?G8(t,e,n,r):wv(n,r)}o(Y8,"UncapitalizeInstantiate");function V8(t,e,n,r){const a=xt(t,e,n);return Qt(Pl(k8,a),{},r)}o(V8,"UppercaseImmediate");function K8(t,e,n,r){return fe(t,[n])?V8(t,e,n,r):Tv(n,r)}o(K8,"UppercaseInstantiate");function Av(t,e,n,r,a={}){return de("Conditional",[t,e,n,r],a)}o(Av,"ConditionalDeferred");function X8(t,e,n,r,a={}){return Wt({},Av(t,e,n,r,a))}o(X8,"Conditional");function Q8(t,e,n,r,a,c,f){const d=xt(t,e,n),h=xt(t,e,r),g=uo(t,d,h);return Qt(lv(g)?ve([xt(g.inferred,e,a),xt(t,e,c)]):cv(g)?xt(g.inferred,e,a):xt(t,e,c),{},f)}o(Q8,"ConditionalImmediate");function Z8(t,e,n,r,a,c,f){return fe(t,[n,r])?Q8(t,e,n,r,a,c,f):Av(n,r,a,c,f)}o(Z8,"ConditionalInstantiate");function Cv(t,e={}){return de("ConstructorParameters",[t],e)}o(Cv,"ConstructorParametersDeferred");function J8(t,e={}){return Wt({},Cv(t,e))}o(J8,"ConstructorParameters");function W8(t){return ji(t)?xt({},{callstack:[]},mi(t.parameters)):Ze()}o(W8,"ConstructorParametersAction");function t9(t,e,n,r){const a=xt(t,e,n);return Qt(W8(a),{},r)}o(t9,"ConstructorParametersImmediate");function e9(t,e,n,r){return fe(t,[n])?t9(t,e,n,r):Cv(n,r)}o(e9,"ConstructorParametersInstantiate");function $v(t,e,n={}){return de("Exclude",[t,e],n)}o($v,"ExcludeDeferred");function n9(t,e,n={}){return Wt({},$v(t,e,n))}o(n9,"Exclude");function JT(t,e){return t.reduce((n,r)=>[...n,...MM(r,e)],[])}o(JT,"ExcludeUnion");function MM(t,e){const n=uo({},t,e);return Ae(n)?[]:[t]}o(MM,"ExcludeType");function r9(t,e){const n=fi(t)?JT(Fl(t.enum),e):kt(t)?JT(ef(t.anyOf),e):MM(t,e);return nf(n)}o(r9,"ExcludeAction");function i9(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(r9(c,f),{},a)}o(i9,"ExcludeImmediate");function OM(t,e,n,r,a){return fe(t,[n,r])?i9(t,e,n,r,a):$v(n,r,a)}o(OM,"ExcludeInstantiate");function Mv(t,e,n={}){return de("Extract",[t,e],n)}o(Mv,"ExtractDeferred");function o9(t,e,n={}){return Wt({},Mv(t,e,n))}o(o9,"Extract");function WT(t,e){return t.reduce((n,r)=>[...n,...RM(r,e)],[])}o(WT,"ExtractUnion");function RM(t,e){const n=uo({},t,e);return Ae(n)?[t]:[]}o(RM,"ExtractType");function s9(t,e){const n=fi(t)?WT(Fl(t.enum),e):kt(t)?WT(ef(t.anyOf),e):RM(t,e);return nf(n)}o(s9,"ExtractAction");function a9(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(s9(c,f),{},a)}o(a9,"ExtractImmediate");function l9(t,e,n,r,a){return fe(t,[n,r])?a9(t,e,n,r,a):Mv(n,r,a)}o(l9,"ExtractInstantiate");const c9=new RegExp("^(?:0|[1-9][0-9]*)$");function Ov(t){const e=`${t}`;return c9.test(e)?parseInt(e):t}o(Ov,"ConvertToIntegerKey");function u9(t){return ge(Ov(t))}o(u9,"NormalizeLiteral");function tA(t){return t.map(e=>NM(e))}o(tA,"NormalizeIndexerTypes");function NM(t){return xe(t)?Ws(tA(t.allOf)):kt(t)?ve(tA(t.anyOf)):De(t)?u9(t.const):t}o(NM,"NormalizeIndexer");function f9(t,e){const n=NM(e),r=uo({},n,lo());return Ae(r)?t:Ze()}o(f9,"FromArray$a");function d9(t,e){const n=rf(t,e);return of(n)}o(d9,"FromCyclic$a");function _M(t){return t.reduce((e,n)=>[...e,...of(n)],[])}o(_M,"FromUnion$b");function m9(t){const e=Fl(t);return _M(e)}o(m9,"FromEnum$2");function h9(t){const e=qr(t);return of(e)}o(h9,"FromIntersect$a");function p9(t){return[`${t}`]}o(p9,"FromLiteral$2");function g9(t){const e=bo(t);return of(e)}o(g9,"FromTemplateLiteral$3");function of(t){return Mn(t)?d9(t.$defs,t.$ref):fi(t)?m9(t.enum):xe(t)?h9(t.allOf):De(t)?p9(t.const):Pr(t)?g9(t.pattern):kt(t)?_M(t.anyOf):[]}o(of,"FromType$b");function Rv(t){return of(t)}o(Rv,"ToIndexableKeys");function y9(t,e){return e in t?[t[e]]:[]}o(y9,"SelectProperty");function b9(t,e){return e.reduce((n,r)=>[...n,...y9(t,r)],[])}o(b9,"SelectProperties");function v9(t,e){const n=Rv(e),r=b9(t,n);return nf(r)}o(v9,"FromObject$d");function S9(t){return ge(Ov(t))}o(S9,"ConvertLiteral");function eA(t){return t.map(e=>DM(e))}o(eA,"ArrayIndexerTypes");function DM(t){return xe(t)?Ws(eA(t.allOf)):kt(t)?ve(eA(t.anyOf)):De(t)?S9(t.const):t}o(DM,"FormatArrayIndexer");function x9(t,e){return t.reduceRight((n,r,a)=>{const c=uo({},ge(a),e);return Ae(c)?[r,...n]:n},[])}o(x9,"IndexElementsWithIndexer");function E9(t,e){const n=DM(e),r=x9(t,n);return Sh(r)}o(E9,"FromTupleWithIndexer");function w9(t){return Sh(t)}o(w9,"FromTupleWithoutIndexer");function T9(t,e){return gr(e)||di(e)?w9(t):E9(t,e)}o(T9,"FromTuple$9");function A9(t){return t.reduce((e,n)=>JC(n)?[...e,ge(n)]:e,[])}o(A9,"KeysToLiterals");function Nv(t){const e=A9(t);return ve(e)}o(Nv,"KeysToIndexer");function wh(t,e,n={}){return de("Index",[t,e],n)}o(wh,"IndexDeferred");function jM(t,e,n={}){const r=wt(e)?Nv(e):e;return Wt({},wh(t,r,n))}o(jM,"Index");function C9(t,e){const n=rf(t,e);return ql(n)}o(C9,"FromCyclic$9");function $9(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($9,"CollapseIntersectProperties");function M9(t){return t.reduce((e,n)=>$9(e,ql(n)),{})}o(M9,"FromIntersect$9");function O9(t){const e=hL(mi(t));return ql(e)}o(O9,"FromTuple$8");function R9(t,e){return gt(t).filter(a=>a in e).reduce((a,c)=>({...a,[c]:nf([t[c],e[c]])}),{})}o(R9,"CollapseUnionProperties");function IM(t,e){const[n,...r]=t;return Bt(n)?IM(r,R9(e,ql(n))):e}o(IM,"ReduceVariants");function N9(t){const[e,...n]=t;return Bt(e)?IM(n,ql(e)):He()}o(N9,"FromUnion$a");function ql(t){return Mn(t)?C9(t.$defs,t.$ref):xe(t)?M9(t.allOf):kt(t)?N9(t.anyOf):Pe(t)?O9(t.items):Ce(t)?t.properties:{}}o(ql,"FromType$a");function _v(t){const e=ql(t);return ae(e)}o(_v,"CollapseToObject");function _9(t){return Mn(t)||xe(t)||kt(t)?_v(t):t}o(_9,"NormalizeType$1");function D9(t,e){const n=_9(t);return en(n)?f9(n.items,e):Ce(n)?v9(n.properties,e):Pe(n)?T9(n.items,e):Ze()}o(D9,"IndexAction");function j9(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(D9(c,f),{},a)}o(j9,"IndexImmediate");function I9(t,e,n,r,a){return fe(t,[n,r])?j9(t,e,n,r,a):wh(n,r,a)}o(I9,"IndexInstantiate");function Dv(t,e={}){return de("InstanceType",[t],e)}o(Dv,"InstanceTypeDeferred");function z9(t,e={}){return Wt({},Dv(t,e))}o(z9,"InstanceType");function L9(t){return ji(t)?t.instanceType:Ze()}o(L9,"InstanceTypeAction");function B9(t,e,n,r){const a=xt(t,e,n);return Qt(L9(a),{},r)}o(B9,"InstanceTypeImmediate");function U9(t,e,n,r={}){return fe(t,[n])?B9(t,e,n,r):Dv(n,r)}o(U9,"InstanceTypeInstantiate");function k9(t,e,n,r,a){const c=Ci(t,{callstack:[]},n),f=Yv(t,{callstack:[]},r),d=qr([...c,ae(f)]);return Qt(d,{},a)}o(k9,"InterfaceImmediate");function H9(t,e,n,r,a){return fe(t,n)?k9(t,e,n,r,a):Eh(n,r,a)}o(H9,"InterfaceInstantiate");function Th(t,e={}){return de("KeyOf",[t],e)}o(Th,"KeyOfDeferred");function zM(t,e={}){return Wt({},Th(t,e))}o(zM,"KeyOf");function F9(){return ve([lo(),Ur(),Gb()])}o(F9,"FromAny");function P9(t){return lo()}o(P9,"FromArray$9");function q9(t){return t.reduce((n,r)=>JC(r)?[...n,ge(Ov(r))]:He(),[])}o(q9,"FromPropertyKeys");function G9(t){const e=gt(t),n=q9(e);return Sh(n)}o(G9,"FromObject$b");function Y9(t){return Kb(t)}o(Y9,"FromRecord$6");function V9(t){const e=t.map((n,r)=>ge(r));return Sh(e)}o(V9,"FromTuple$7");function K9(t){return Mn(t)||xe(t)||kt(t)?_v(t):t}o(K9,"NormalizeType");function X9(t){const e=K9(t);return po(e)?F9():en(e)?P9(e.items):Ce(e)?G9(e.properties):yr(e)?Y9(e):Pe(e)?V9(e.items):Ze()}o(X9,"KeyOfAction");function Q9(t,e,n,r){const a=xt(t,e,n);return Qt(X9(a),{},r)}o(Q9,"KeyOfImmediate");function Z9(t,e,n,r){return fe(t,[n])?Q9(t,e,n,r):Th(n,r)}o(Z9,"KeyOfInstantiate");function J9(t){const e=bo(t);return jv(e)}o(J9,"FromTemplateLiteral$2");function nA(t){return t.reduce((e,n)=>[...e,...jv(n)],[])}o(nA,"FromUnion$9");function jv(t){return fi(t)?nA(Fl(t.enum)):qb(t)||Pb(t)?[t]:Pr(t)?J9(t.pattern):kt(t)?nA(t.anyOf):[]}o(jv,"FromType$9");function W9(t){return jv(t)}o(W9,"MappedKeys");function Am(t,e,n,r,a={}){return de("Mapped",[t,e,n,r],a)}o(Am,"MappedDeferred");function LM(t,e,n,r,a={}){return Wt({},Am(t,e,n,r,a))}o(LM,"Mapped");function tB(t,e,n,r,a){const c=Xe(t,{[n.name]:r}),f=xt(c,e,a);return Pr(f)?bo(f.pattern):f}o(tB,"InstantiateKeyAs");function eB(t,e,n,r,a){const c=Xe(t,{[n.name]:r});return xt(c,e,a)}o(eB,"InstantiateProperty");function nB(t,e,n,r,a,c){const f=eB(t,e,n,r,c),d=tB(t,e,n,r,a);return qb(d)||Pb(d)?{[d.const]:f}:{}}o(nB,"MappedProperty");function rB(t,e,n,r,a,c){return r.reduce((f,d)=>({...f,...nB(t,e,n,d,a,c)}),{})}o(rB,"MappedProperties");function iB(t,e,n,r,a,c){const f=W9(r),d=rB(t,e,n,f,a,c);return ae(d)}o(iB,"MappedAction");function oB(t,e,n,r,a,c,f){const d=xt(t,e,r);return Qt(iB(t,e,n,d,a,c),{},f)}o(oB,"MappedImmediate");function sB(t,e,n,r,a,c,f){return fe(t,[r])?oB(t,e,n,r,a,c,f):Am(n,r,a,c,f)}o(sB,"MappedInstantiate");function aB(t,e){return gt(t).filter(r=>e.includes(r)).reduce((r,a)=>({...r,[a]:v8(t,a,t[a])}),{})}o(aB,"InstantiateCyclics");function lB(t,e){return gt(t).filter(r=>!e.includes(r)).reduce((r,a)=>({...r,[a]:xt(t,{callstack:[]},t[a])}),{})}o(lB,"InstantiateNonCyclics");function cB(t,e){const n=u8(t),r=aB(t,n),a=lB(t,n),c={...r,...a};return Qt(c,{},e)}o(cB,"InstantiateModule");function uB(t,e,n,r){const a=Xe(t,n);return cB(a,r)}o(uB,"ModuleInstantiate");function Iv(t,e={}){return de("NonNullable",[t],e)}o(Iv,"NonNullableDeferred");function fB(t,e={}){return Wt({},Iv(t,e))}o(fB,"NonNullable");function dB(t){const e=ve([Xs(),bh()]);return OM({},{callstack:[]},t,e,{})}o(dB,"NonNullableAction");function mB(t,e,n,r){const a=xt(t,e,n);return Qt(dB(a),{},r)}o(mB,"NonNullableImmediate");function hB(t,e,n,r){return fe(t,[n])?mB(t,e,n,r):Iv(n,r)}o(hB,"NonNullableInstantiate");function BM(t){const e=_v(t);return Ce(e)?e.properties:He()}o(BM,"ToIndexable");function zv(t,e,n={}){return de("Omit",[t,e],n)}o(zv,"OmitDeferred");function UM(t,e,n={}){const r=wt(e)?Nv(e):e;return Wt({},zv(t,r,n))}o(UM,"Omit");function pB(t,e){return gt(t).reduce((r,a)=>e.includes(a)?r:{...r,[a]:t[a]},{})}o(pB,"FromKeys$1");function gB(t,e){const n=BM(t),r=Rv(e),a=pB(n,r);return ae(a)}o(gB,"OmitAction");function yB(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(gB(c,f),{},a)}o(yB,"OmitImmediate");function bB(t,e,n,r,a){return fe(t,[n,r])?yB(t,e,n,r,a):zv(n,r,a)}o(bB,"OmitInstantiate");function Ah(t,e){return de("Options",[t,e],{})}o(Ah,"OptionsDeferred");function Lv(t,e){return Wt({},Ah(t,e))}o(Lv,"Options");function vB(t,e,n,r){const a=xt(t,e,n);return Qt(a,{},r)}o(vB,"OptionsImmediate");function SB(t,e,n,r){return fe(t,[n])?vB(t,e,n,r):Ah(n,r)}o(SB,"OptionsInstantiate");function Bv(t,e={}){return de("Parameters",[t],e)}o(Bv,"ParametersDeferred");function xB(t,e={}){return Wt({},Bv(t,e))}o(xB,"Parameters");function EB(t){return Ii(t)?xt({},{callstack:[]},mi(t.parameters)):Ze()}o(EB,"ParametersAction");function wB(t,e,n,r){const a=xt(t,e,n);return Qt(EB(a),{},r)}o(wB,"ParametersImmediate");function TB(t,e,n,r){return fe(t,[n])?wB(t,e,n,r):Bv(n,r)}o(TB,"ParametersInstantiate");function Uv(t,e={}){return de("Partial",[t],e)}o(Uv,"PartialDeferred");function kM(t,e={}){return Wt({},Uv(t,e))}o(kM,"Partial");function AB(t,e){const n=rf(t,e),r=Ch(n);return Ku(Xe(t,{[e]:r}),e)}o(AB,"FromCyclic$8");function CB(t){const e=t.map(n=>Ch(n));return qr(e)}o(CB,"FromIntersect$8");function $B(t){const e=t.map(n=>Ch(n));return ve(e)}o($B,"FromUnion$8");function MB(t){const e=gt(t).reduce((r,a)=>({...r,[a]:Lb(t[a])}),{});return ae(e)}o(MB,"FromObject$a");function Ch(t){return Mn(t)?AB(t.$defs,t.$ref):xe(t)?CB(t.allOf):kt(t)?$B(t.anyOf):Ce(t)?MB(t.properties):ae({})}o(Ch,"FromType$8");function OB(t,e,n,r){const a=xt(t,e,n);return Qt(Ch(a),{},r)}o(OB,"PartialImmediate");function RB(t,e,n,r){return fe(t,[n])?OB(t,e,n,r):Uv(n,r)}o(RB,"PartialInstantiate");function kv(t,e,n={}){return de("Pick",[t,e],n)}o(kv,"PickDeferred");function HM(t,e,n={}){const r=wt(e)?Nv(e):e;return Wt({},kv(t,r,n))}o(HM,"Pick");function NB(t,e){return gt(t).reduce((r,a)=>e.includes(a)?Xe(r,{[a]:t[a]}):r,{})}o(NB,"FromKeys");function _B(t,e){const n=BM(t),r=Rv(e),a=NB(n,r);return ae(a)}o(_B,"PickAction");function DB(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(_B(c,f),{},a)}o(DB,"PickImmediate");function jB(t,e,n,r,a){return fe(t,[n,r])?DB(t,e,n,r,a):kv(n,r,a)}o(jB,"PickInstantiate");function Hv(t,e={}){return de("ReadonlyType",[t],e)}o(Hv,"ReadonlyTypeDeferred");function IB(t,e={}){return Wt({},Hv(t,e))}o(IB,"ReadonlyType");function zB(t){return uh(ca(t))}o(zB,"FromArray$8");function LB(t,e){const n=rf(t,e),r=$h(n);return Ku(Xe(t,{[e]:r}),e)}o(LB,"FromCyclic$7");function BB(t){const e=t.map(n=>$h(n));return qr(e)}o(BB,"FromIntersect$7");function UB(t){const e=gt(t).reduce((r,a)=>({...r,[a]:FC(t[a])}),{});return ae(e)}o(UB,"FromObject$9");function kB(t){return uh(mi(t))}o(kB,"FromTuple$6");function HB(t){const e=t.map(n=>$h(n));return ve(e)}o(HB,"FromUnion$7");function $h(t){return en(t)?zB(t.items):Mn(t)?LB(t.$defs,t.$ref):xe(t)?BB(t.allOf):Ce(t)?UB(t.properties):Pe(t)?kB(t.items):kt(t)?HB(t.anyOf):t}o($h,"FromType$7");function FB(t,e,n,r){const a=xt(t,e,n);return Qt($h(a),{},r)}o(FB,"ReadonlyTypeImmediate");function PB(t,e,n,r){return fe(t,[n])?FB(t,e,n,r):Hv(n,r)}o(PB,"ReadonlyTypeInstantiate");function qB(t){return ls(ta,t)}o(qB,"FromAnyKey");function GB(t){return ae({true:t,false:t})}o(GB,"FromBooleanKey");function YB(t,e){const n=uv(t);return Mh(n,e)}o(YB,"FromEnumKey");function VB(t,e){return ls(hh,e)}o(VB,"FromIntegerKey");function KB(t,e){const n=qr(t);return Mh(n,e)}o(KB,"FromIntersectKey");function XB(t,e){return Dt(t)||Vt(t)?ae({[t]:e}):O(t,!1)?ae({false:e}):O(t,!0)?ae({true:e}):ae({})}o(XB,"FromLiteralKey");function QB(t,e){return ls(ph,e)}o(QB,"FromNumberKey");function ZB(t,e){return at(t,"pattern")&&(Dt(t.pattern)||t.pattern instanceof RegExp)?ls(t.pattern.toString(),e):ls(ta,e)}o(ZB,"FromStringKey");function JB(t,e){const n=n$(t);return o$(n)?Mh(bo(t),e):ls(t,e)}o(JB,"FromTemplateKey");function WB(t){return t.some(e=>Bn(e)||gr(e)||di(e))}o(WB,"StringOrNumberCheck");function tU(t,e){return O(WB(t),!0)?ls(ta,e):void 0}o(tU,"TryBuildRecord");function eU(t,e){return t.reduce((n,r)=>De(r)&&(Dt(r.const)||Vt(r.const))?{...n,[r.const]:e}:n,{})}o(eU,"CreateProperties");function nU(t,e){const n=eU(t,e);return ae(n)}o(nU,"CreateObject");function rU(t,e){const n=ef(t),r=tU(n,e);return Bt(r)?r:nU(n,e)}o(rU,"FromUnionKey");function Mh(t,e){return po(t)?qB(e):go(t)?GB(e):fi(t)?YB(t.enum,e):di(t)?VB(t,e):xe(t)?KB(t.allOf,e):De(t)?XB(t.const,e):gr(t)?QB(t,e):kt(t)?rU(t.anyOf,e):Bn(t)?ZB(t,e):Pr(t)?JB(t.pattern,e):ae({})}o(Mh,"FromKey");function iU(t,e,n,r,a){const c=xt(t,e,n),f=xt(t,e,r);return Qt(Mh(c,f),{},a)}o(iU,"RecordImmediate");function oU(t,e,n,r,a){return fe(t,[n])?iU(t,e,n,r,a):Yb(n,r,a)}o(oU,"RecordInstantiate");function sU(t,e,n,r){return r in t?EM([r],t,t[r])?n:xt(t,e,t[r]):n}o(sU,"RefInstantiate");function aU(t,e){const n=rf(t,e),r=Oh(n);return Ku(Xe(t,{[e]:r}),e)}o(aU,"FromCyclic$6");function lU(t){const e=t.map(n=>Oh(n));return qr(e)}o(lU,"FromIntersect$6");function cU(t){const e=t.map(n=>Oh(n));return ve(e)}o(cU,"FromUnion$6");function uU(t){const e=gt(t).reduce((r,a)=>({...r,[a]:zb(t[a])}),{});return ae(e)}o(uU,"FromObject$8");function Oh(t){return Mn(t)?aU(t.$defs,t.$ref):xe(t)?lU(t.allOf):kt(t)?cU(t.anyOf):Ce(t)?uU(t.properties):ae({})}o(Oh,"FromType$6");function Fv(t,e={}){return de("Required",[t],e)}o(Fv,"RequiredDeferred");function fU(t,e={}){return Wt({},Fv(t,e))}o(fU,"Required");function dU(t,e,n,r){const a=xt(t,e,n);return Qt(Oh(a),{},r)}o(dU,"RequiredImmediate");function mU(t,e,n,r){return fe(t,[n])?dU(t,e,n,r):Fv(n,r)}o(mU,"RequiredInstantiate");function Pv(t,e={}){return de("ReturnType",[t],e)}o(Pv,"ReturnTypeDeferred");function hU(t,e={}){return Wt({},Pv(t,e))}o(hU,"ReturnType");function pU(t){return Ii(t)?t.returnType:Ze()}o(pU,"ReturnTypeAction");function gU(t,e,n,r){const a=xt(t,e,n);return Qt(pU(a),{},r)}o(gU,"ReturnTypeImmediate");function yU(t,e,n,r){return fe(t,[n])?gU(t,e,n,r):Pv(n,r)}o(yU,"ReturnTypeInstantiate");function bU(t){return t.join("|")}o(bU,"JoinString");function vU(t){return t.slice(1,t.length-1)}o(vU,"UnwrapTemplateLiteralPattern");function SU(t,e,n){return gs(e,`${n}${t}`)}o(SU,"EncodeLiteral");function xU(t,e){return gs(t,`${e}${b6}`)}o(xU,"EncodeBigInt");function EU(t,e){return gs(t,`${e}${ZC}`)}o(EU,"EncodeInteger");function wU(t,e){return gs(t,`${e}${WC}`)}o(wU,"EncodeNumber");function TU(t,e){return Gv(ve([ge("false"),ge("true")]),t,e)}o(TU,"EncodeBoolean");function AU(t,e){return gs(t,`${e}${e$}`)}o(AU,"EncodeString");function CU(t,e,n){return gs(e,`${n}${vU(t)}`)}o(CU,"EncodeTemplateLiteral");function $U(t,e,n,r=[]){const a=Fl(t);return qv(a,e,n)}o($U,"EncodeEnum");function qv(t,e,n,r=[]){const[a,...c]=t;return Bt(a)?qv(c,e,n,[...r,Gv(a,[],"")]):gs(e,`${n}(${bU(r)})`)}o(qv,"EncodeUnion");function Gv(t,e,n){return fi(t)?$U(t.enum,e,n):di(t)?EU(e,n):De(t)?SU(t.const,e,n):ua(t)?xU(e,n):go(t)?TU(e,n):gr(t)?wU(e,n):Bn(t)?AU(e,n):Pr(t)?CU(t.pattern,e,n):kt(t)?qv(t.anyOf,e,n):z_}o(Gv,"EncodeType");function gs(t,e){const[n,...r]=t;return Bt(n)?Gv(n,r,e):e}o(gs,"EncodeTypes");function MU(t){return`^${gs(t,"")}$`}o(MU,"EncodePattern");function OU(t){const e=MU(t);return s$(e)}o(OU,"TemplateLiteralEncode");function RU(t,e,n,r){const a=Ci(t,e,n);return Qt(OU(a),{},r)}o(RU,"TemplateLiteralImmediate");function NU(t,e,n,r){return fe(t,n)?RU(t,e,n,r):av(n,r)}o(NU,"TemplateLiteralInstantiate");function _U(t){return yh(t)?Pe(t.items)?FM(t.items.items):ur(t.items)?[t]:$n(t.items)?[t]:[Ze()]:[t]}o(_U,"SpreadElement");function FM(t){return t.reduce((n,r)=>[...n,..._U(r)],[])}o(FM,"RestSpread");function DU(t,e){return e in t}o(DU,"CanInstantiateRef");function jU(t,e){return xe(e)?fe(t,e.allOf):kt(e)?fe(t,e.anyOf):$n(e)?DU(t,e.$ref):!0}o(jU,"CanInstantiateType");function fe(t,e){const[n,...r]=e;return Bt(n)?jU(t,n)?fe(t,r):!1:!0}o(fe,"CanInstantiate");function mu(t,e,n){return N_(t)?mu(t.type,"remove",n):$_(t)?mu(t.type,e,"remove"):O_(t)?mu(t.type,"add",n):A_(t)?mu(t.type,e,"add"):[t,e,n]}o(mu,"ModifierActions");function IU(t,e){return O(t,"remove")?HC(e):O(t,"add")?Br(e):e}o(IU,"ApplyReadonly");function zU(t,e){return O(t,"remove")?zb(e):O(t,"add")?Lr(e):e}o(zU,"ApplyOptional");function Yv(t,e,n){return gt(n).reduce((r,a)=>({...r,[a]:xt(t,e,n[a])}),{})}o(Yv,"InstantiateProperties");function Vv(t,e,n){const r=Ci(t,e,n);return FM(r)}o(Vv,"InstantiateElements");function Ci(t,e,n){return n.map(r=>xt(t,e,r))}o(Ci,"InstantiateTypes");function LU(t,e,n,r,a){return O(n,"Awaited")?M8(t,e,r[0],a):O(n,"Capitalize")?F8(t,e,r[0],a):O(n,"Conditional")?Z8(t,e,r[0],r[1],r[2],r[3],a):O(n,"ConstructorParameters")?e9(t,e,r[0],a):O(n,"Evaluate")?ML(t,e,r[0],a):O(n,"Exclude")?OM(t,e,r[0],r[1],a):O(n,"Extract")?l9(t,e,r[0],r[1],a):O(n,"Index")?I9(t,e,r[0],r[1],a):O(n,"InstanceType")?U9(t,e,r[0],a):O(n,"Interface")?H9(t,e,r[0],r[1],a):O(n,"KeyOf")?Z9(t,e,r[0],a):O(n,"Lowercase")?q8(t,e,r[0],a):O(n,"Mapped")?sB(t,e,r[0],r[1],r[2],r[3],a):O(n,"Module")?uB(t,e,r[0],a):O(n,"NonNullable")?hB(t,e,r[0],a):O(n,"Pick")?jB(t,e,r[0],r[1],a):O(n,"Options")?SB(t,e,r[0],r[1]):O(n,"Parameters")?TB(t,e,r[0],a):O(n,"Partial")?RB(t,e,r[0],a):O(n,"Omit")?bB(t,e,r[0],r[1],a):O(n,"ReadonlyType")?PB(t,e,r[0],a):O(n,"Record")?oU(t,e,r[0],r[1],a):O(n,"Required")?mU(t,e,r[0],a):O(n,"ReturnType")?yU(t,e,r[0],a):O(n,"TemplateLiteral")?NU(t,e,r[0],a):O(n,"Uncapitalize")?Y8(t,e,r[0],a):O(n,"Uppercase")?K8(t,e,r[0],a):de(n,r,a)}o(LU,"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=$n(c)?sU(t,e,c,c.$ref):en(c)?ca(xt(t,e,c.items),PC(c)):ds(c)?Yu(xt(t,e,c.iteratorItems),D_(c)):Sv(c)?AM(t,e,c.target,c.arguments):ji(c)?fh(Ci(t,e,c.parameters),xt(t,e,c.instanceType),j_(c)):__(c)?LU(t,e,c.action,c.parameters,c.options):Ii(c)?dh(Ci(t,e,c.parameters),xt(t,e,c.returnType),I_(c)):xe(c)?Ws(Ci(t,e,c.allOf),G_(c)):ms(c)?Xu(xt(t,e,c.iteratorItems),S6(c)):Ce(c)?ae(Yv(t,e,c.properties),C6(c)):yo(c)?Ju(xt(t,e,c.item),M6(c)):yr(c)?L6(hs(c),xt(t,e,zi(c))):yh(c)?gh(xt(t,e,c.items)):Pe(c)?mi(Vv(t,e,c.items),U6(c)):kt(c)?ve(Ci(t,e,c.anyOf),O6(c)):c,d=r?uh(f):f;return IU(a[1],zU(a[2],d))}o(xt,"InstantiateType");function Wt(t,e){return xt(t,{callstack:[]},e)}o(Wt,"Instantiate");function Kv(t,e={}){return de("Awaited",[t],e)}o(Kv,"AwaitedDeferred");function BU(t,e={}){return Wt({},Kv(t,e))}o(BU,"Awaited");function PM(t,e={}){return de("Evaluate",[t],e)}o(PM,"EvaluateDeferred");function sf(t,e={}){return Wt({},PM(t,e))}o(sf,"Evaluate");function qM(t,e={}){return de("Module",[t],e)}o(qM,"ModuleDeferred");function UU(t,e={}){return Wt({},qM(t,e))}o(UU,"Module");function kU(...t){const[e,n,r]=nn(t,{2:(f,d)=>Dt(f)?[{},f,d]:[f,d,{}],3:(f,d,h)=>[f,d,h],1:f=>[{},f,{}]}),a=Pz(n),c=wt(a)&&O(a.length,2)?xt(e,{callstack:[]},a[0]):Ze();return Qt(c,{},r)}o(kU,"Script");const HU=Object.freeze(Object.defineProperty({__proto__:null,Any:bl,Array:ca,AsyncIterator:Yu,Awaited:BU,Base:qC,BigInt:Hb,Boolean:Fb,Call:C8,Capitalize:D8,Codec:kb,Conditional:X8,Constructor:fh,ConstructorParameters:J8,Cyclic:Ku,Decode:h6,DecodeBuilder:Sm,Encode:p6,EncodeBuilder:vm,Enum:q_,Evaluate:sf,Exclude:n9,Extends:uo,ExtendsResult:Vz,Extract:o9,Function:dh,Generic:Vu,Identifier:xm,Immutable:uh,Index:jM,Infer:C0,InstanceType:z9,Instantiate:Wt,Integer:Tl,Interface:xM,Intersect:Ws,IsAny:po,IsArray:en,IsAsyncIterator:ds,IsBase:Ul,IsBigInt:ua,IsBoolean:go,IsCall:Sv,IsCodec:fr,IsConstructor:ji,IsCyclic:Mn,IsEnum:fi,IsFunction:Ii,IsGeneric:Bb,IsIdentifier:v6,IsImmutable:ym,IsInfer:ur,IsInteger:di,IsIntersect:xe,IsIterator:ms,IsKind:Ht,IsLiteral:De,IsNever:mh,IsNull:kl,IsNumber:gr,IsObject:Ce,IsOptional:Hn,IsParameter:$6,IsPromise:yo,IsReadonly:bm,IsRecord:yr,IsRef:$n,IsRefine:QC,IsRest:yh,IsSchema:Bt,IsString:Bn,IsSymbol:Qu,IsTemplateLiteral:Pr,IsThis:B6,IsTuple:Pe,IsUndefined:Hl,IsUnion:kt,IsUnknown:ss,IsUnsafe:m$,IsVoid:ps,Iterator:Xu,KeyOf:zM,Literal:ge,Lowercase:j8,Mapped:LM,Module:UU,Never:Ze,NonNullable:fB,Null:Xs,Number:lo,Object:ae,Omit:UM,Optional:Lb,Options:Lv,Parameter:Zu,Parameters:xB,Partial:kM,Pick:HM,Promise:Ju,Readonly:FC,ReadonlyType:IB,Record:Vb,RecordKey:Kb,RecordKeyAsPattern:hs,RecordValue:zi,Ref:lr,Refine:y6,Required:fU,Rest:gh,ReturnType:hU,Script:kU,String:Ur,Symbol:Gb,TemplateLiteral:Yz,This:d$,Tuple:mi,Uncapitalize:I8,Undefined:bh,Union:ve,Unknown:cr,Unsafe:Qd,Uppercase:z8,Void:Xb},Symbol.toStringTag,{value:"Module"})),FU=[0,31,28,31,30,31,30,31,31,30,31,30,31],PU=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function qU(t){return t%4===0&&(t%100!==0||t%400===0)}o(qU,"IsLeapYear");function Xv(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&&qU(n)?29:FU[r])}o(Xv,"IsDate");const GU=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Qv(t,e=!0){const n=GU.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(Qv,"IsTime");function GM(t,e=!0){const n=t.split(/T/i);return n.length===2&&Xv(n[0])&&Qv(n[1],e)}o(GM,"IsDateTime");const YU=/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/;function YM(t){return YU.test(t)}o(YM,"IsDuration");const VU=/^(?!.*\.\.)[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 VM(t){return VU.test(t)}o(VM,"IsEmail");const KU=/^(?=.{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 KM(t){return KU.test(t)}o(KM,"IsHostname");const XU=/^(?!.*\.\.)[\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 XM(t){return XU.test(t)}o(XM,"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 QM(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(QM,"IsIdnHostname");const QU=/^(?:(?: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 ZM(t){return QU.test(t)}o(ZM,"IsIPv4");const ZU=/^((([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 JM(t){return ZU.test(t)}o(JM,"IsIPv6");function rA(t){try{return new URL(t,"http://example.com"),!0}catch{return!1}}o(rA,"TryUrl");function WM(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))?rA(t):t.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&e===-1?!1:rA(t)}o(WM,"IsIriReference");function tO(t){try{return new URL(t),!0}catch{return!1}}o(tO,"IsIri");const JU=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function eO(t){return JU.test(t)}o(eO,"IsJsonPointerUriFragment");const WU=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function nO(t){return WU.test(t)}o(nO,"IsJsonPointer");function rO(t){if(t.length===0)return!1;try{return new RegExp(t),!0}catch{return!1}}o(rO,"IsRegex");const t7=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function iO(t){return t7.test(t)}o(iO,"IsRelativeJsonPointer");const e7=/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i;function oO(t){return e7.test(t)}o(oO,"IsUriReference");const n7=/^(?:(?:[^\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 sO(t){return n7.test(t)}o(sO,"IsUriTemplate");const r7=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i;function aO(t){return r7.test(t)}o(aO,"IsUri");const i7=/^(?: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 lO(t){return i7.test(t)}o(lO,"IsUrl");const o7=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function cO(t){return o7.test(t)}o(cO,"IsUuid");const he=new Map;function uO(){he.clear()}o(uO,"Clear");function s7(){return[...he.entries()]}o(s7,"Entries");function a7(t,e){he.set(t,e)}o(a7,"Set$1");function l7(t){return he.has(t)}o(l7,"Has");function c7(t){return he.get(t)}o(c7,"Get$1");function fO(t,e){return he.get(t)?.(e)??!0}o(fO,"Test");function dO(){uO(),he.set("date-time",GM),he.set("date",Xv),he.set("duration",YM),he.set("email",VM),he.set("hostname",KM),he.set("idn-email",XM),he.set("idn-hostname",QM),he.set("ipv4",ZM),he.set("ipv6",JM),he.set("iri-reference",WM),he.set("iri",tO),he.set("json-pointer-uri-fragment",eO),he.set("json-pointer",nO),he.set("regex",rO),he.set("relative-json-pointer",iO),he.set("time",Qv),he.set("uri-reference",oO),he.set("uri-template",sO),he.set("uri",aO),he.set("url",lO),he.set("uuid",cO)}o(dO,"Reset");dO();const B0=Object.freeze(Object.defineProperty({__proto__:null,Clear:uO,Entries:s7,Get:c7,Has:l7,IsDate:Xv,IsDateTime:GM,IsDuration:YM,IsEmail:VM,IsHostname:KM,IsIPv4:ZM,IsIPv6:JM,IsIdnEmail:XM,IsIdnHostname:QM,IsIri:tO,IsIriReference:WM,IsJsonPointer:nO,IsJsonPointerUriFragment:eO,IsRegex:rO,IsRelativeJsonPointer:iO,IsTime:Qv,IsUri:aO,IsUriReference:oO,IsUriTemplate:sO,IsUrl:lO,IsUuid:cO,Reset:dO,Set:a7,Test:fO},Symbol.toStringTag,{value:"Module"}));function u7(t){return Mt(t)&&at(t,"check")&&at(t,"errors")&&ao(t.check)&&ao(t.errors)}o(u7,"IsGuardInterface");function Zv(t){return at(t,"~guard")&&u7(t["~guard"])}o(Zv,"IsGuard");function Jv(t){return at(t,"~refine")&&wt(t["~refine"])&&pn(t["~refine"],0,e=>Mt(e)&&at(e,"refine")&&at(e,"message")&&ao(e.refine)&&Dt(e.message))}o(Jv,"IsRefine");function Ni(t){return Mt(t)&&!wt(t)}o(Ni,"IsSchemaObject");function Rh(t){return Fe(t)}o(Rh,"IsBooleanSchema");function Re(t){return Ni(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 Wv(t){return at(t,"allOf")&&wt(t.allOf)&&t.allOf.every(e=>Re(e))}o(Wv,"IsAllOf");function U0(t){return at(t,"$anchor")&&Dt(t.$anchor)}o(U0,"IsAnchor");function t1(t){return at(t,"anyOf")&&wt(t.anyOf)&&t.anyOf.every(e=>Re(e))}o(t1,"IsAnyOf");function e1(t){return at(t,"const")}o(e1,"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=>Dt(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=>Dt(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 iA(t){return at(t,"$dynamicAnchor")&&Dt(t.$dynamicAnchor)}o(iA,"IsDynamicAnchor");function n1(t){return at(t,"else")&&Re(t.else)}o(n1,"IsElse");function r1(t){return at(t,"enum")&&wt(t.enum)}o(r1,"IsEnum");function Ih(t){return at(t,"exclusiveMaximum")&&(Vt(t.exclusiveMaximum)||Oe(t.exclusiveMaximum))}o(Ih,"IsExclusiveMaximum");function da(t){return at(t,"exclusiveMinimum")&&(Vt(t.exclusiveMinimum)||Oe(t.exclusiveMinimum))}o(da,"IsExclusiveMinimum");function af(t){return at(t,"format")&&Dt(t.format)}o(af,"IsFormat");function $u(t){return at(t,"$id")&&Dt(t.$id)}o($u,"IsId");function i1(t){return at(t,"if")&&Re(t.if)}o(i1,"IsIf");function Kl(t){return at(t,"items")&&(Re(t.items)||wt(t.items)&&t.items.every(e=>Re(e)))}o(Kl,"IsItems");function o1(t){return Kl(t)&&wt(t.items)}o(o1,"IsItemsSized");function zh(t){return at(t,"maximum")&&(Vt(t.maximum)||Oe(t.maximum))}o(zh,"IsMaximum");function Lh(t){return at(t,"maxContains")&&Vt(t.maxContains)}o(Lh,"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 kh(t){return at(t,"maxProperties")&&Vt(t.maxProperties)}o(kh,"IsMaxProperties");function ma(t){return at(t,"minimum")&&(Vt(t.minimum)||Oe(t.minimum))}o(ma,"IsMinimum");function Xl(t){return at(t,"minContains")&&Vt(t.minContains)}o(Xl,"IsMinContains");function lf(t){return at(t,"minItems")&&Vt(t.minItems)}o(lf,"IsMinItems");function cf(t){return at(t,"minLength")&&Vt(t.minLength)}o(cf,"IsMinLength");function uf(t){return at(t,"minProperties")&&Vt(t.minProperties)}o(uf,"IsMinProperties");function Hh(t){return at(t,"multipleOf")&&(Vt(t.multipleOf)||Oe(t.multipleOf))}o(Hh,"IsMultipleOf");function s1(t){return at(t,"not")&&Re(t.not)}o(s1,"IsNot");function a1(t){return at(t,"oneOf")&&wt(t.oneOf)&&t.oneOf.every(e=>Re(e))}o(a1,"IsOneOf");function ff(t){return at(t,"pattern")&&(Dt(t.pattern)||t.pattern instanceof RegExp)}o(ff,"IsPattern");function Ql(t){return at(t,"patternProperties")&&Mt(t.patternProperties)&&Object.values(t.patternProperties).every(e=>Re(e))}o(Ql,"IsPatternProperties");function ha(t){return at(t,"prefixItems")&&wt(t.prefixItems)&&t.prefixItems.every(e=>Re(e))}o(ha,"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 f7(t){return at(t,"$recursiveAnchor")&&Fe(t.$recursiveAnchor)}o(f7,"IsRecursiveAnchor");function Qy(t){return f7(t)&&O(t.$recursiveAnchor,!0)}o(Qy,"IsRecursiveAnchorTrue");function l1(t){return at(t,"$recursiveRef")&&Dt(t.$recursiveRef)}o(l1,"IsRecursiveRef");function c1(t){return at(t,"$ref")&&Dt(t.$ref)}o(c1,"IsRef");function ys(t){return at(t,"required")&&wt(t.required)&&t.required.every(e=>Dt(e))}o(ys,"IsRequired");function u1(t){return at(t,"then")&&Re(t.then)}o(u1,"IsThen");function Ph(t){return at(t,"type")&&(Dt(t.type)||wt(t.type)&&t.type.every(e=>Dt(e)))}o(Ph,"IsType");function df(t){return at(t,"uniqueItems")&&Fe(t.uniqueItems)}o(df,"IsUniqueItems");function mf(t){return at(t,"unevaluatedItems")&&Re(t.unevaluatedItems)}o(mf,"IsUnevaluatedItems");function hf(t){return at(t,"unevaluatedProperties")&&Re(t.unevaluatedProperties)}o(hf,"IsUnevaluatedProperties");function d7(t){return mf(t)||hf(t)||gt(t).some(e=>Cm(t[e]))}o(d7,"HasUnevaluatedFromObject");function m7(t){return t.some(e=>Cm(e))}o(m7,"HasUnevaluatedFromArray");function Cm(t){return wt(t)?m7(t):Mt(t)?d7(t):!1}o(Cm,"HasUnevaluatedFromUnknown");function h7(t,e){return Cm(e)||gt(t).some(n=>Cm(t[n]))}o(h7,"HasUnevaluated");const MS=class MS{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}AddIndex(e){return ne(_t("context","AddIndex"),[e])}AddKey(e){return ne(_t("context","AddKey"),[e])}Merge(e){return ne(_t("context","Merge"),[e])}};o(MS,"BuildContext");let k0=MS;const OS=class OS{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(OS,"CheckContext");let oi=OS;const RS=class RS extends oi{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}};o(RS,"ErrorContext");let $m=RS;const NS=class NS extends $m{constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}};o(NS,"AccumulatedErrorContext");let si=NS;const mO="external_";let H0=0;const vl={identifier:`${mO}${H0}`,variables:[]};function p7(){vl.identifier=`${mO}${H0}`,vl.variables=[],H0+=1}o(p7,"ResetExternal");function pa(t){const e=`${vl.identifier}[${vl.variables.length}]`;return vl.variables.push(t),e}o(pa,"CreateVariable");function g7(){return vl}o(g7,"GetExternal");function y7(t,e,n,r){return ne(_t(_t(pa(n),"~guard"),"check"),[r])}o(y7,"BuildGuard");function b7(t,e,n,r){return n["~guard"].check(r)}o(b7,"CheckGuard");function v7(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(v7,"ErrorGuard");function S7(t,e,n,r){const a=pa(n["~refine"].map(c=>c));return aa(a,St(0),["refinement","_"],ne(_t("refinement","refine"),[r]))}o(S7,"BuildRefine");function x7(t,e,n,r){return pn(n["~refine"],0,(a,c)=>a.refine(r))}o(x7,"CheckRefine");function E7(t,e,n,r,a,c){return gn(a["~refine"],0,(f,d)=>f.refine(c)||e.AddError({keyword:"~refine",schemaPath:n,instancePath:r,params:{index:d,message:f.message}}))}o(E7,"ErrorRefine");let w7=0;function yn(){return`var_${w7++}`}o(yn,"Unique");function f1(t){return Kl(t)&&wt(t.items)}o(f1,"IsValid$4");function T7(t,e,n,r){if(!f1(n))return St(!0);const[a,c]=[yn(),yn()],f=Me(t,e,n.additionalItems,a),d=DC(c,St(n.items.length)),h=e.AddIndex(c),g=e.UseUnevaluated()?be(d,pr(f,h)):be(d,f);return ne(_t(r,"every"),[ar([a,c],g)])}o(T7,"BuildAdditionalItems");function A7(t,e,n,r){return f1(n)?r.every((c,f)=>oh(f,n.items.length)||Se(t,e,n.additionalItems,c)&&e.AddIndex(f)):!0}o(A7,"CheckAdditionalItems");function C7(t,e,n,r,a,c){return f1(a)?c.every((d,h)=>{const g=`${n}/additionalItems`,y=`${r}/${h}`;return oh(h,a.items.length)||ke(t,e,g,y,a.additionalItems,d)&&e.AddIndex(h)}):!0}o(C7,"ErrorAdditionalItems");function $7(t){return`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`}o($7,"GetPropertyKeyAsPattern");function d1(t){const e=[];return Ql(t)&&e.push(...gt(t.patternProperties)),Zl(t)&&e.push(...gt(t.properties).map($7)),O(e.length,0)?"(?!)":`(${e.join("|")})`}o(d1,"GetPropertiesPattern");function M7(t,e,n){return ys(e)&&Zl(e)&&!Ql(e)&&O(e.additionalProperties,!1)&&O(gt(e.properties).length,e.required.length)}o(M7,"CanAdditionalPropertiesFast");function O7(t,e,n){return sr(_t(ne(_t("Object","getOwnPropertyNames"),[n]),"length"),St(e.required.length))}o(O7,"BuildAdditionalPropertiesFast");function R7(t,e,n,r){const[a,c]=[yn(),yn()],f=pa(new RegExp(d1(n))),d=Me(t,e,n.additionalProperties,`${r}[${a}]`),h=ne(_t(f,"test"),[a]),g=e.AddKey(a),y=e.UseUnevaluated()?be(h,pr(d,g)):be(h,d);return aa(la(r),St(0),[a,c],y)}o(R7,"BuildAdditionalPropertiesStandard");function N7(t,e,n,r){return M7(e,n)?O7(e,n,r):R7(t,e,n,r)}o(N7,"BuildAdditionalProperties");function _7(t,e,n,r){const a=new RegExp(d1(n));return pn(gt(r),0,(f,d)=>a.test(f)||Se(t,e,n.additionalProperties,r[f])&&e.AddKey(f))}o(_7,"CheckAdditionalProperties");function D7(t,e,n,r,a,c){const f=new RegExp(d1(a)),d=[];return gn(gt(c),0,(g,y)=>{const v=`${n}/additionalProperties`,E=`${r}/${g}`,x=new si,C=f.test(g)||ke(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(D7,"ErrorAdditionalProperties");function qh(t,e,n,r,a){const c=oo("results","[]"),f=n.map((y,v)=>oo(`context_${v}`,_b("CheckContext",[]))),d=n.map((y,v)=>oo(`condition_${v}`,ne(ar(["context"],Me(t,e,y,r)),[`context_${v}`]))),h=n.map((y,v)=>zC(`condition_${v}`,ne(_t("results","push"),[`context_${v}`]))),g=ch(pr(a,e.Merge("results")));return ne(ar([],lh([c,...f,...d,...h,g])),[])}o(qh,"Reducer");function j7(t,e,n,r){return qh(t,e,n.allOf,r,sr(_t("results","length"),St(n.allOf.length)))}o(j7,"BuildAllOfStandard");function I7(t,e,n,r){return Sn(n.allOf.map(a=>Me(t,e,a,r)))}o(I7,"BuildAllOfFast");function z7(t,e,n,r){return e.UseUnevaluated()?j7(t,e,n,r):I7(t,e,n,r)}o(z7,"BuildAllOf");function L7(t,e,n,r){const a=n.allOf.reduce((c,f)=>{const d=new oi;return Se(t,d,f,r)?[...c,d]:c},[]);return O(a.length,n.allOf.length)&&e.Merge(a)}o(L7,"CheckAllOf");function B7(t,e,n,r,a,c){const f=[],d=a.allOf.reduce((g,y,v)=>{const E=`${n}/allOf/${v}`,x=new si,C=ke(t,x,E,r,y,c);return C||f.push(x),C?[...g,x]:g},[]),h=O(d.length,a.allOf.length)&&e.Merge(d);return h||f.forEach(g=>g.GetErrors().forEach(y=>e.AddError(y))),h}o(B7,"ErrorAllOf");function U7(t,e,n,r){return qh(t,e,n.anyOf,r,_C(_t("results","length"),St(0)))}o(U7,"BuildAnyOfStandard");function k7(t,e,n,r){return Db(n.anyOf.map(a=>Me(t,e,a,r)))}o(k7,"BuildAnyOfFast");function H7(t,e,n,r){return e.UseUnevaluated()?U7(t,e,n,r):k7(t,e,n,r)}o(H7,"BuildAnyOf");function F7(t,e,n,r){const a=n.anyOf.reduce((c,f,d)=>{const h=new oi;return Se(t,h,f,r)?[...c,h]:c},[]);return zl(a.length,0)&&e.Merge(a)}o(F7,"CheckAnyOf");function P7(t,e,n,r,a,c){const f=[],d=a.anyOf.reduce((g,y,v)=>{const E=new si,x=`${n}/anyOf/${v}`,C=ke(t,E,x,r,y,c);return C||f.push(E),C?[...g,E]:g},[]),h=zl(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 q7(t,e,n,r){return St(!!n)}o(q7,"BuildBooleanSchema");function hO(t,e,n,r){return n}o(hO,"CheckBooleanSchema");function G7(t,e,n,r,a,c){return hO(t,e,a)||e.AddError({keyword:"boolean",schemaPath:n,instancePath:r,params:{}})}o(G7,"ErrorBooleanSchema");function Y7(t,e,n,r){return qu(n.const)?sr(r,St(n.const)):IC(r,pa(n.const))}o(Y7,"BuildConst");function pO(t,e,n,r){return qu(n.const)?O(r,n.const):Gu(r,n.const)}o(pO,"CheckConst");function V7(t,e,n,r,a,c){return pO(t,e,a,c)||e.AddError({keyword:"const",schemaPath:n,instancePath:r,params:{allowedValue:a.const}})}o(V7,"ErrorConst");function gO(t){return!(Xl(t)&&O(t.minContains,0))}o(gO,"IsValid$3");function K7(t,e,n,r){if(!gO(n))return St(!0);const a=yn(),c=Cn(sr(_t(r,"length"),St(0))),f=ne(_t(r,"some"),[ar([a],Me(t,e,n.contains,a))]);return pr(c,f)}o(K7,"BuildContains");function yO(t,e,n,r){return gO(n)?!O(r.length,0)&&r.some(a=>Se(t,e,n.contains,a)):!0}o(yO,"CheckContains");function X7(t,e,n,r,a,c){return yO(t,e,a,c)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:1}})}o(X7,"ErrorContains");function Q7(t,e,n,r){const a=sr(_t(la(r),"length"),St(0)),c=Sn(Qe(n.dependencies).map(([f,d])=>{const h=Cn(Js(r,St(f))),g=Me(t,e,d,r),y=o(v=>Sn(v.map(E=>Js(r,St(E)))),"isEveryKey");return be(h,wt(d)?y(d):g)}));return be(a,c)}o(Q7,"BuildDependencies");function Z7(t,e,n,r){const a=O(gt(r).length,0),c=pn(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(Z7,"CheckDependencies");function J7(t,e,n,r,a,c){const f=O(gt(c).length,0),d=gn(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}})):ke(t,e,y,r,g,c))});return f||d}o(J7,"ErrorDependencies");function W7(t,e,n,r){const a=sr(_t(la(r),"length"),St(0)),c=Sn(Qe(n.dependentRequired).map(([f,d])=>{const h=Cn(Js(r,St(f))),g=Sn(d.map(y=>Js(r,St(y))));return be(h,g)}));return be(a,c)}o(W7,"BuildDependentRequired");function tk(t,e,n,r){const a=O(gt(r).length,0),c=pn(Qe(n.dependentRequired),0,([f,d])=>!at(r,f)||d.every(h=>at(r,h)));return a||c}o(tk,"CheckDependentRequired");function ek(t,e,n,r,a,c){const f=O(gt(c).length,0),d=gn(Qe(a.dependentRequired),0,([h,g])=>!at(c,h)||gn(g,0,y=>at(c,y)||e.AddError({keyword:"dependentRequired",schemaPath:n,instancePath:r,params:{property:h,dependencies:g}})));return f||d}o(ek,"ErrorDependentRequired");function nk(t,e,n,r){const a=sr(_t(la(r),"length"),St(0)),c=Sn(Qe(n.dependentSchemas).map(([f,d])=>{const h=Cn(Js(r,St(f))),g=Me(t,e,d,r);return be(h,g)}));return be(a,c)}o(nk,"BuildDependentSchemas");function rk(t,e,n,r){const a=O(gt(r).length,0),c=pn(Qe(n.dependentSchemas),0,([f,d])=>!at(r,f)||Se(t,e,d,r));return a||c}o(rk,"CheckDependentSchemas");function ik(t,e,n,r,a,c){const f=O(gt(c).length,0),d=gn(Qe(a.dependentSchemas),0,([h,g])=>{const y=`${n}/dependentSchemas/${h}`;return!at(c,h)||ke(t,e,y,r,g,c)});return f||d}o(ik,"ErrorDependentSchemas");function ok(t,e,n,r){return Db(n.enum.map(a=>{if(qu(a))return sr(r,St(a));const c=pa(a);return IC(r,c)}))}o(ok,"BuildEnum");function bO(t,e,n,r){return n.enum.some(a=>qu(a)?O(r,a):Gu(r,a))}o(bO,"CheckEnum");function sk(t,e,n,r,a,c){return bO(t,e,a,c)||e.AddError({keyword:"enum",schemaPath:n,instancePath:r,params:{allowedValues:a.enum}})}o(sk,"ErrorEnum");function ak(t,e,n,r){return DC(r,St(n.exclusiveMaximum))}o(ak,"BuildExclusiveMaximum");function vO(t,e,n,r){return oh(r,n.exclusiveMaximum)}o(vO,"CheckExclusiveMaximum");function lk(t,e,n,r,a,c){return vO(t,e,a,c)||e.AddError({keyword:"exclusiveMaximum",schemaPath:n,instancePath:r,params:{comparison:"<",limit:a.exclusiveMaximum}})}o(lk,"ErrorExclusiveMaximum");function ck(t,e,n,r){return _C(r,St(n.exclusiveMinimum))}o(ck,"BuildExclusiveMinimum");function SO(t,e,n,r){return zl(r,n.exclusiveMinimum)}o(SO,"CheckExclusiveMinimum");function uk(t,e,n,r,a,c){return SO(t,e,a,c)||e.AddError({keyword:"exclusiveMinimum",schemaPath:n,instancePath:r,params:{comparison:">",limit:a.exclusiveMinimum}})}o(uk,"ErrorExclusiveMinimum");function fk(t,e,n,r){return ne(_t("Format","Test"),[St(n.format),r])}o(fk,"BuildFormat");function xO(t,e,n,r){return fO(n.format,r)}o(xO,"CheckFormat");function dk(t,e,n,r,a,c){return xO(t,e,a,c)||e.AddError({keyword:"format",schemaPath:n,instancePath:r,params:{format:a.format}})}o(dk,"ErrorFormat");function mk(t,e,n,r){const a=u1(n)?n.then:!0,c=n1(n)?n.else:!0;return ah(Me(t,e,n.if,r),Me(t,e,a,r),Me(t,e,c,r))}o(mk,"BuildIf");function hk(t,e,n,r){const a=u1(n)?n.then:!0,c=n1(n)?n.else:!0;return Se(t,e,n.if,r)?Se(t,e,a,r):Se(t,e,c,r)}o(hk,"CheckIf");function pk(t,e,n,r,a,c){const f=u1(a)?a.then:!0,d=n1(a)?a.else:!0,h=new si,g=ke(t,h,`${n}/if`,r,a.if,c)?ke(t,h,`${n}/then`,r,f,c)||e.AddError({keyword:"if",schemaPath:n,instancePath:r,params:{failingKeyword:"then"}}):ke(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(pk,"ErrorIf");function gk(t,e,n,r){return Sn(n.items.map((a,c)=>{const f=Bl(_t(r,"length"),St(c)),d=Me(t,e,a,`${r}[${c}]`),h=e.AddIndex(St(c)),g=e.UseUnevaluated()?pr(d,h):d;return be(f,g)}))}o(gk,"BuildItemsSized");function yk(t,e,n,r){return pn(n.items,0,(a,c)=>ho(r.length,c)||Se(t,e,a,r[c])&&e.AddIndex(c))}o(yk,"CheckItemsSized");function bk(t,e,n,r,a,c){return gn(a.items,0,(f,d)=>{const h=`${n}/items/${d}`,g=`${r}/${d}`;return ho(c.length,d)||ke(t,e,h,g,f,c[d])&&e.AddIndex(d)})}o(bk,"ErrorItemsSized");function vk(t,e,n,r){const a=ha(n)?n.prefixItems.length:0,c=Me(t,e,n.items,"element"),f=e.AddIndex("index"),d=e.UseUnevaluated()?pr(c,f):c;return aa(r,St(a),["element","index"],d)}o(vk,"BuildItemsUnsized");function Sk(t,e,n,r){const a=ha(n)?n.prefixItems.length:0;return pn(r,a,(c,f)=>Se(t,e,n.items,c)&&e.AddIndex(f))}o(Sk,"CheckItemsUnsized");function xk(t,e,n,r,a,c){const f=ha(a)?a.prefixItems.length:0;return gn(c,f,(d,h)=>{const g=`${n}/items`,y=`${r}/${h}`;return ke(t,e,g,y,a.items,d)&&e.AddIndex(h)})}o(xk,"ErrorItemsUnsized");function Ek(t,e,n,r){return o1(n)?gk(t,e,n,r):vk(t,e,n,r)}o(Ek,"BuildItems");function wk(t,e,n,r){return o1(n)?yk(t,e,n,r):Sk(t,e,n,r)}o(wk,"CheckItems");function Tk(t,e,n,r,a,c){return o1(a)?bk(t,e,n,r,a,c):xk(t,e,n,r,a,c)}o(Tk,"ErrorItems");function EO(t){return Yl(t)}o(EO,"IsValid$2");function Ak(t,e,n,r){if(!EO(n))return St(!0);const[a,c]=[yn(),yn()],f=ne(_t(r,"reduce"),[ar([a,c],ah(Me(t,e,n.contains,c),jb(a),a)),St(0)]);return Bl(f,St(n.maxContains))}o(Ak,"BuildMaxContains");function wO(t,e,n,r){if(!EO(n))return!0;const a=r.reduce((c,f)=>Se(t,e,n.contains,f)?++c:c,0);return ho(a,n.maxContains)}o(wO,"CheckMaxContains");function Ck(t,e,n,r,a,c){const f=Xl(a)?a.minContains:1;return wO(t,e,a,c)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:f,maxContains:a.maxContains}})}o(Ck,"ErrorMaxContains");function $k(t,e,n,r){return Bl(r,St(n.maximum))}o($k,"BuildMaximum");function TO(t,e,n,r){return ho(r,n.maximum)}o(TO,"CheckMaximum");function Mk(t,e,n,r,a,c){return TO(t,e,a,c)||e.AddError({keyword:"maximum",schemaPath:n,instancePath:r,params:{comparison:"<=",limit:a.maximum}})}o(Mk,"ErrorMaximum");function Ok(t,e,n,r){return Bl(_t(r,"length"),St(n.maxItems))}o(Ok,"BuildMaxItems");function AO(t,e,n,r){return ho(r.length,n.maxItems)}o(AO,"CheckMaxItems");function Rk(t,e,n,r,a,c){return AO(t,e,a,c)||e.AddError({keyword:"maxItems",schemaPath:n,instancePath:r,params:{limit:a.maxItems}})}o(Rk,"ErrorMaxItems");function Nk(t,e,n,r){return l_(r,St(n.maxLength))}o(Nk,"BuildMaxLength");function CO(t,e,n,r){return AC(r,n.maxLength)}o(CO,"CheckMaxLength");function _k(t,e,n,r,a,c){return CO(t,e,a,c)||e.AddError({keyword:"maxLength",schemaPath:n,instancePath:r,params:{limit:a.maxLength}})}o(_k,"ErrorMaxLength");function Dk(t,e,n,r){return Bl(_t(la(r),"length"),St(n.maxProperties))}o(Dk,"BuildMaxProperties");function $O(t,e,n,r){return ho(gt(r).length,n.maxProperties)}o($O,"CheckMaxProperties");function jk(t,e,n,r,a,c){return $O(t,e,a,c)||e.AddError({keyword:"maxProperties",schemaPath:n,instancePath:r,params:{limit:a.maxProperties}})}o(jk,"ErrorMaxProperties");function MO(t){return Yl(t)}o(MO,"IsValid$1");function Ik(t,e,n,r){if(!MO(n))return St(!0);const[a,c]=[yn(),yn()],f=ne(_t(r,"reduce"),[ar([a,c],ah(Me(t,e,n.contains,c),jb(a),a)),St(0)]);return sh(f,St(n.minContains))}o(Ik,"BuildMinContains");function OO(t,e,n,r){if(!MO(n))return!0;const a=r.reduce((c,f)=>Se(t,e,n.contains,f)?++c:c,0);return Ll(a,n.minContains)}o(OO,"CheckMinContains");function zk(t,e,n,r,a,c){return OO(t,e,a,c)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:a.minContains}})}o(zk,"ErrorMinContains");function Lk(t,e,n,r){return sh(r,St(n.minimum))}o(Lk,"BuildMinimum");function RO(t,e,n,r){return Ll(r,n.minimum)}o(RO,"CheckMinimum");function Bk(t,e,n,r,a,c){return RO(t,e,a,c)||e.AddError({keyword:"minimum",schemaPath:n,instancePath:r,params:{comparison:">=",limit:a.minimum}})}o(Bk,"ErrorMinimum");function Uk(t,e,n,r){return sh(_t(r,"length"),St(n.minItems))}o(Uk,"BuildMinItems");function NO(t,e,n,r){return Ll(r.length,n.minItems)}o(NO,"CheckMinItems");function kk(t,e,n,r,a,c){return NO(t,e,a,c)||e.AddError({keyword:"minItems",schemaPath:n,instancePath:r,params:{limit:a.minItems}})}o(kk,"ErrorMinItems");function Hk(t,e,n,r){return a_(r,St(n.minLength))}o(Hk,"BuildMinLength");function _O(t,e,n,r){return CC(r,n.minLength)}o(_O,"CheckMinLength");function Fk(t,e,n,r,a,c){return _O(t,e,a,c)||e.AddError({keyword:"minLength",schemaPath:n,instancePath:r,params:{limit:a.minLength}})}o(Fk,"ErrorMinLength");function Pk(t,e,n,r){return sh(_t(la(r),"length"),St(n.minProperties))}o(Pk,"BuildMinProperties");function DO(t,e,n,r){return Ll(gt(r).length,n.minProperties)}o(DO,"CheckMinProperties");function qk(t,e,n,r,a,c){return DO(t,e,a,c)||e.AddError({keyword:"minProperties",schemaPath:n,instancePath:r,params:{limit:a.minProperties}})}o(qk,"ErrorMinProperties");function Gk(t,e,n,r){return u_(r,St(n.multipleOf))}o(Gk,"BuildMultipleOf");function jO(t,e,n,r){return wC(r,n.multipleOf)}o(jO,"CheckMultipleOf");function Yk(t,e,n,r,a,c){return jO(t,e,a,c)||e.AddError({keyword:"multipleOf",schemaPath:n,instancePath:r,params:{multipleOf:a.multipleOf}})}o(Yk,"ErrorMultipleOf");function Vk(t,e,n,r){return qh(t,e,[n.not],r,Cn(sr(_t("results","length"),St(1))))}o(Vk,"BuildNotUnevaluated");function Kk(t,e,n,r){return Cn(Me(t,e,n.not,r))}o(Kk,"BuildNotFast");function Xk(t,e,n,r){return e.UseUnevaluated()?Vk(t,e,n,r):Kk(t,e,n,r)}o(Xk,"BuildNot");function IO(t,e,n,r){const a=new oi;return!Se(t,a,n.not,r)&&e.Merge([a])}o(IO,"CheckNot");function Qk(t,e,n,r,a,c){return IO(t,e,a,c)||e.AddError({keyword:"not",schemaPath:n,instancePath:r,params:{}})}o(Qk,"ErrorNot");function Zk(t,e,n,r){return qh(t,e,n.oneOf,r,sr(_t("results","length"),St(1)))}o(Zk,"BuildOneOfUnevaluated");function Jk(t,e,n,r){const a=c_(n.oneOf.map(f=>Me(t,e,f,r))),c=ne(_t(a,"reduce"),[ar(["count","result"],ah(sr("result",St(!0)),jb("count"),"count")),St(0)]);return sr(c,St(1))}o(Jk,"BuildOneOfFast");function Wk(t,e,n,r){return e.UseUnevaluated()?Zk(t,e,n,r):Jk(t,e,n,r)}o(Wk,"BuildOneOf");function tH(t,e,n,r){const a=n.oneOf.reduce((c,f)=>{const d=new oi;return Se(t,d,f,r)?[...c,d]:c},[]);return O(a.length,1)&&e.Merge(a)}o(tH,"CheckOneOf");function eH(t,e,n,r,a,c){const f=[],d=[],h=a.oneOf.reduce((y,v,E)=>{const x=new si,C=`${n}/oneOf/${E}`,w=ke(t,x,C,r,v,c);return w&&d.push(E),w||f.push(x),w?[...y,x]:y},[]),g=O(h.length,1)&&e.Merge(h);return!g&&O(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(eH,"ErrorOneOf");function nH(t,e,n,r){const a=pa(Dt(n.pattern)?new RegExp(n.pattern):n.pattern);return ne(_t(a,"test"),[r])}o(nH,"BuildPattern");function zO(t,e,n,r){return(Dt(n.pattern)?new RegExp(n.pattern):n.pattern).test(r)}o(zO,"CheckPattern");function rH(t,e,n,r,a,c){return zO(t,e,a,c)||e.AddError({keyword:"pattern",schemaPath:n,instancePath:r,params:{pattern:a.pattern}})}o(rH,"ErrorPattern");function iH(t,e,n,r){return Sn(Qe(n.patternProperties).map(([a,c])=>{const[f,d]=[yn(),yn()],h=pa(new RegExp(a)),g=Cn(ne(_t(h,"test"),[f])),y=Me(t,e,c,d),v=e.AddKey(f),E=e.UseUnevaluated()?be(g,pr(y,v)):be(g,y);return aa(jC(r),St(0),[`[${f}, ${d}]`,"_"],E)}))}o(iH,"BuildPatternProperties");function oH(t,e,n,r){return pn(Qe(n.patternProperties),0,([a,c])=>{const f=new RegExp(a);return pn(Qe(r),0,([d,h])=>!f.test(d)||Se(t,e,c,h)&&e.AddKey(d))})}o(oH,"CheckPatternProperties");function sH(t,e,n,r,a,c){return gn(Qe(a.patternProperties),0,([f,d])=>{const h=`${n}/patternProperties/${f}`,g=new RegExp(f);return gn(Qe(c),0,([y,v])=>{const E=`${r}/${y}`;return!g.test(y)||ke(t,e,h,E,d,v)&&e.AddKey(y)})})}o(sH,"ErrorPatternProperties");function aH(t,e,n,r){return Sn(n.prefixItems.map((a,c)=>{const f=Bl(_t(r,"length"),St(c)),d=Me(t,e,a,`${r}[${c}]`),h=e.AddIndex(St(c)),g=e.UseUnevaluated()?pr(d,h):d;return be(f,g)}))}o(aH,"BuildPrefixItems");function lH(t,e,n,r){return O(r.length,0)||pn(n.prefixItems,0,(a,c)=>ho(r.length,c)||Se(t,e,a,r[c])&&e.AddIndex(c))}o(lH,"CheckPrefixItems");function cH(t,e,n,r,a,c){return O(c.length,0)||gn(a.prefixItems,0,(f,d)=>{const h=`${n}/prefixItems/${d}`,g=`${r}/${d}`;return ho(c.length,d)||ke(t,e,h,g,f,c[d])&&e.AddIndex(d)})}o(cH,"ErrorPrefixItems");function m1(t,e){return t.includes(e)||fs().exactOptionalPropertyTypes}o(m1,"IsExactOptional");function uH(t,e){return A0(_t(t,e))}o(uH,"InexactOptionalBuild");function LO(t,e){return pe(t[e])}o(LO,"InexactOptionalCheck");function fH(t,e,n,r){const a=ys(n)?n.required:[],c=Qe(n.properties).map(([f,d])=>{const h=Cn(Js(r,St(f))),g=Me(t,e,d,_t(r,f)),y=e.AddKey(St(f)),v=e.UseUnevaluated()?pr(g,y):g,E=a.includes(f)?v:be(h,v);return m1(a,f)?E:be(uH(r,f),E)});return Sn(c)}o(fH,"BuildProperties");function dH(t,e,n,r){const a=ys(n)?n.required:[];return pn(Qe(n.properties),0,([f,d])=>{const h=!at(r,f)||Se(t,e,d,r[f])&&e.AddKey(f);return m1(a,f)?h:LO(r,f)||h})}o(dH,"CheckProperties");function mH(t,e,n,r,a,c){const f=ys(a)?a.required:[];return gn(Qe(a.properties),0,([h,g])=>{const y=`${n}/properties/${h}`,v=`${r}/${h}`,E=o(()=>!at(c,h)||ke(t,e,y,v,g,c[h])&&e.AddKey(h),"isProperty");return m1(f,h)?E():LO(c,h)||E()})}o(mH,"ErrorProperties");function hH(t,e,n,r){const[a,c]=[yn(),yn()];return aa(la(r),St(0),[a,c],Me(t,e,n.propertyNames,a))}o(hH,"BuildPropertyNames");function pH(t,e,n,r){return pn(gt(r),0,(a,c)=>Se(t,e,n.propertyNames,a))}o(pH,"CheckPropertyNames");function gH(t,e,n,r,a,c){const f=[];return gn(gt(c),0,(h,g)=>{const y=`${r}/${h}`,v=`${n}/propertyNames`,E=new si,x=ke(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(gH,"ErrorPropertyNames");function yH(t,e,n,r){const a=t.RecursiveRef(n.$recursiveRef)??!1;return Gh(t,e,a,r)}o(yH,"BuildRecursiveRef");function bH(t,e,n,r){const a=t.RecursiveRef(n.$recursiveRef)??!1;return Re(a)&&Se(t,e,a,r)}o(bH,"CheckRecursiveRef");function vH(t,e,n,r,a,c){const f=t.RecursiveRef(a.$recursiveRef)??!1;return Re(f)&&ke(t,e,"#",r,f,c)}o(vH,"ErrorRecursiveRef");function SH(t,e,n,r){const a=ar(["context","value"],Gh(t,e,n,"value")),c=ar(["context","value"],lh([oo("nextContext",_b("CheckContext",[])),oo("result",ne(a,["nextContext","value"])),zC("result",e.Merge("[nextContext]")),ch("result")]));return ne(c,["context",r])}o(SH,"BuildRefStandard");function xH(t,e,n,r){return Gh(t,e,n,r)}o(xH,"BuildRefFast");function EH(t,e,n,r){const a=t.Ref(n.$ref)??!1;return e.UseUnevaluated()?SH(t,e,a,r):xH(t,e,a,r)}o(EH,"BuildRef");function wH(t,e,n,r){const a=t.Ref(n.$ref)??!1,c=new oi,f=Re(a)&&Se(t,c,a,r);return f&&e.Merge([c]),f}o(wH,"CheckRef");function TH(t,e,n,r,a,c){const f=t.Ref(a.$ref)??!1,d=new si,h=Re(f)&&ke(t,d,"#",r,f,c);return h&&e.Merge([d]),h||d.GetErrors().forEach(g=>e.AddError(g)),h}o(TH,"ErrorRef");function AH(t,e,n,r){return Sn(n.required.map(a=>Js(r,St(a))))}o(AH,"BuildRequired");function CH(t,e,n,r){return pn(n.required,0,a=>at(r,a))}o(CH,"CheckRequired");function $H(t,e,n,r,a,c){const f=[];return gn(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($H,"ErrorRequired");function BO(t,e,n,r){return O(n,"object")?OC(r):O(n,"array")?gm(r):O(n,"boolean")?t_(r):O(n,"integer")?e_(r):O(n,"number")?MC(r):O(n,"null")?r_(r):O(n,"string")?NC(r):O(n,"asyncIterator")?W5(r):O(n,"bigint")?$C(r):O(n,"constructor")?s_(r):O(n,"function")?o_(r):O(n,"iterator")?n_(r):O(n,"symbol")?i_(r):O(n,"undefined")||O(n,"void")?A0(r):St(!0)}o(BO,"BuildTypeName");function h1(t,e,n,r,a){return O(n,"object")?mo(a):O(n,"array")?wt(a):O(n,"boolean")?Fe(a):O(n,"integer")?ih(a):O(n,"number")?Vt(a):O(n,"null")?qn(a):O(n,"string")?Dt(a):O(n,"asyncIterator")?xC(a):O(n,"bigint")?Oe(a):O(n,"constructor")?Mb(a):O(n,"function")?ao(a):O(n,"iterator")?EC(a):O(n,"symbol")?Ob(a):O(n,"undefined")||O(n,"void")?pe(a):!0}o(h1,"CheckTypeName");function MH(t,e,n,r){return Db(n.map(a=>BO(t,e,a,r)))}o(MH,"BuildTypeNames");function UO(t,e,n,r,a){return n.some(c=>h1(t,e,c,r,a))}o(UO,"CheckTypeNames");function OH(t,e,n,r){return wt(n.type)?MH(t,e,n.type,r):BO(t,e,n.type,r)}o(OH,"BuildType");function RH(t,e,n,r){return wt(n.type)?UO(t,e,n.type,n,r):h1(t,e,n.type,n,r)}o(RH,"CheckType");function NH(t,e,n,r,a,c){return(wt(a.type)?UO(t,e,a.type,a,c):h1(t,e,a.type,a,c))||e.AddError({keyword:"type",schemaPath:n,instancePath:r,params:{type:a.type}})}o(NH,"ErrorType");function _H(t,e,n,r){const[a,c]=[yn(),yn()],f=ne(_t("context","GetIndices"),[]),d=ne(_t("indices","has"),[a]),h=Me(t,e,n.unevaluatedItems,c),g=ne(_t("context","AddIndex"),[a]),y=aa(r,St(0),[c,a],pr(be(d,h),g));return ne(ar(["context"],lh([oo("indices",f),ch(y)])),["context"])}o(_H,"BuildUnevaluatedItems");function DH(t,e,n,r){const a=e.GetIndices();return pn(r,0,(c,f)=>(a.has(f)||Se(t,e,n.unevaluatedItems,c))&&e.AddIndex(f))}o(DH,"CheckUnevaluatedItems");function jH(t,e,n,r,a,c){const f=e.GetIndices(),d=[];return gn(c,0,(g,y)=>{const v=new si,E=(f.has(y)||ke(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(jH,"ErrorUnevaluatedItems");function IH(t,e,n,r){const[a,c]=[yn(),yn()],f=ne(_t("context","GetKeys"),[]),d=ne(_t("keys","has"),[a]),h=ne(_t("context","AddKey"),[a]),g=Me(t,e,n.unevaluatedProperties,c),y=aa(jC(r),St(0),[`[${a}, ${c}]`,"_"],be(d,pr(g,h)));return ne(ar(["context"],lh([oo("keys",f),ch(y)])),["context"])}o(IH,"BuildUnevaluatedProperties");function zH(t,e,n,r){const a=e.GetKeys();return pn(Qe(r),0,([c,f])=>a.has(c)||Se(t,e,n.unevaluatedProperties,f)&&e.AddKey(c))}o(zH,"CheckUnevaluatedProperties");function LH(t,e,n,r,a,c){const f=e.GetKeys(),d=[];return gn(Qe(c),0,([g,y])=>{const v=new si,E=f.has(g)||ke(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(LH,"ErrorUnevaluatedProperties");function p1(t){return!O(t.uniqueItems,!1)}o(p1,"IsValid");function BH(t,e,n,r){if(!p1(n))return St(!0);const a=_t(_b("Set",[ne(_t(r,"map"),[_t("Hashing","Hash")])]),"size"),c=_t(r,"length");return sr(a,c)}o(BH,"BuildUniqueItems");function UH(t,e,n,r){if(!p1(n))return!0;const a=new Set(r.map(Cu)).size,c=r.length;return O(a,c)}o(UH,"CheckUniqueItems");function kH(t,e,n,r,a,c){if(!p1(a))return!0;const f=new Set,d=c.reduce((g,y,v)=>{const E=Cu(y);return f.has(E)?[...g,v]:(f.add(E),g)},[]);return O(d.length,0)||e.AddError({keyword:"uniqueItems",schemaPath:n,instancePath:r,params:{duplicateItems:d}})}o(kH,"ErrorUniqueItems");function Mu(t,e){return Ph(t)&&(wt(t.type)&&t.type.includes(e)||O(t.type,e))}o(Mu,"HasTypeName");function HH(t){return Mu(t,"object")}o(HH,"HasObjectType");function FH(t){return Ni(t)&&(Gl(t)||_h(t)||Dh(t)||jh(t)||Zl(t)||Ql(t)||Fh(t)||uf(t)||kh(t)||ys(t)||hf(t))}o(FH,"HasObjectKeywords");function PH(t){return Mu(t,"array")}o(PH,"HasArrayType");function qH(t){return Ni(t)&&(Nh(t)||Kl(t)||Yl(t)||Lh(t)||Bh(t)||Xl(t)||lf(t)||ha(t)||mf(t)||df(t))}o(qH,"HasArrayKeywords");function GH(t){return Mu(t,"string")}o(GH,"HasStringType");function YH(t){return Ni(t)&&(cf(t)||Uh(t)||af(t)||ff(t))}o(YH,"HasStringKeywords");function VH(t){return Mu(t,"number")||Mu(t,"bigint")}o(VH,"HasNumberType");function KH(t){return Ni(t)&&(ma(t)||zh(t)||Ih(t)||da(t)||Hh(t))}o(KH,"HasNumberKeywords");function Me(t,e,n,r){t.Push(n);const a=[];if(Rh(n))return q7(t,e,n);if(Ph(n)&&a.push(OH(t,e,n,r)),FH(n)){const f=[];ys(n)&&f.push(AH(t,e,n,r)),Gl(n)&&f.push(N7(t,e,n,r)),_h(n)&&f.push(Q7(t,e,n,r)),Dh(n)&&f.push(W7(t,e,n,r)),jh(n)&&f.push(nk(t,e,n,r)),Ql(n)&&f.push(iH(t,e,n,r)),Zl(n)&&f.push(fH(t,e,n,r)),Fh(n)&&f.push(hH(t,e,n,r)),uf(n)&&f.push(Pk(t,e,n,r)),kh(n)&&f.push(Dk(t,e,n,r));const d=Sn(f),h=be(Cn(OC(r)),d);a.push(HH(n)?d:h)}if(qH(n)){const f=[];Nh(n)&&f.push(T7(t,e,n,r)),Yl(n)&&f.push(K7(t,e,n,r)),Kl(n)&&f.push(Ek(t,e,n,r)),Lh(n)&&f.push(Ak(t,e,n,r)),Bh(n)&&f.push(Ok(t,e,n,r)),Xl(n)&&f.push(Ik(t,e,n,r)),lf(n)&&f.push(Uk(t,e,n,r)),ha(n)&&f.push(aH(t,e,n,r)),df(n)&&f.push(BH(t,e,n,r));const d=Sn(f),h=be(Cn(gm(r)),d);a.push(PH(n)?d:h)}if(YH(n)){const f=[];Uh(n)&&f.push(Nk(t,e,n,r)),cf(n)&&f.push(Hk(t,e,n,r)),af(n)&&f.push(fk(t,e,n,r)),ff(n)&&f.push(nH(t,e,n,r));const d=Sn(f),h=be(Cn(NC(r)),d);a.push(GH(n)?d:h)}if(KH(n)){const f=[];Ih(n)&&f.push(ak(t,e,n,r)),da(n)&&f.push(ck(t,e,n,r)),zh(n)&&f.push($k(t,e,n,r)),ma(n)&&f.push(Lk(t,e,n,r)),Hh(n)&&f.push(Gk(t,e,n,r));const d=Sn(f),h=be(Cn(be(MC(r),$C(r))),d);a.push(VH(n)?d:h)}l1(n)&&a.push(yH(t,e,n,r)),c1(n)&&a.push(EH(t,e,n,r)),Zv(n)&&a.push(y7(t,e,n,r)),e1(n)&&a.push(Y7(t,e,n,r)),r1(n)&&a.push(ok(t,e,n,r)),i1(n)&&a.push(mk(t,e,n,r)),s1(n)&&a.push(Xk(t,e,n,r)),Wv(n)&&a.push(z7(t,e,n,r)),t1(n)&&a.push(H7(t,e,n,r)),a1(n)&&a.push(Wk(t,e,n,r)),mf(n)&&a.push(be(Cn(gm(r)),_H(t,e,n,r))),hf(n)&&a.push(be(Cn(RC(r)),IH(t,e,n,r))),Jv(n)&&a.push(S7(t,e,n,r));const c=Sn(a);return t.Pop(n),c}o(Me,"BuildSchema");function Se(t,e,n,r){t.Push(n);const a=Rh(n)?hO(t,e,n):(!Ph(n)||RH(t,e,n,r))&&(!(Mt(r)&&!wt(r))||(!ys(n)||CH(t,e,n,r))&&(!Gl(n)||_7(t,e,n,r))&&(!_h(n)||Z7(t,e,n,r))&&(!Dh(n)||tk(t,e,n,r))&&(!jh(n)||rk(t,e,n,r))&&(!Ql(n)||oH(t,e,n,r))&&(!Zl(n)||dH(t,e,n,r))&&(!Fh(n)||pH(t,e,n,r))&&(!uf(n)||DO(t,e,n,r))&&(!kh(n)||$O(t,e,n,r)))&&(!wt(r)||(!Nh(n)||A7(t,e,n,r))&&(!Yl(n)||yO(t,e,n,r))&&(!Kl(n)||wk(t,e,n,r))&&(!Lh(n)||wO(t,e,n,r))&&(!Bh(n)||AO(t,e,n,r))&&(!Xl(n)||OO(t,e,n,r))&&(!lf(n)||NO(t,e,n,r))&&(!ha(n)||lH(t,e,n,r))&&(!df(n)||UH(t,e,n,r)))&&(!Dt(r)||(!Uh(n)||CO(t,e,n,r))&&(!cf(n)||_O(t,e,n,r))&&(!af(n)||xO(t,e,n,r))&&(!ff(n)||zO(t,e,n,r)))&&(!(Vt(r)||Oe(r))||(!Ih(n)||vO(t,e,n,r))&&(!da(n)||SO(t,e,n,r))&&(!zh(n)||TO(t,e,n,r))&&(!ma(n)||RO(t,e,n,r))&&(!Hh(n)||jO(t,e,n,r)))&&(!l1(n)||bH(t,e,n,r))&&(!c1(n)||wH(t,e,n,r))&&(!Zv(n)||b7(t,e,n,r))&&(!e1(n)||pO(t,e,n,r))&&(!r1(n)||bO(t,e,n,r))&&(!i1(n)||hk(t,e,n,r))&&(!s1(n)||IO(t,e,n,r))&&(!Wv(n)||L7(t,e,n,r))&&(!t1(n)||F7(t,e,n,r))&&(!a1(n)||tH(t,e,n,r))&&(!mf(n)||!wt(r)||DH(t,e,n,r))&&(!hf(n)||!Mt(r)||zH(t,e,n,r))&&(!Jv(n)||x7(t,e,n,r));return t.Pop(n),a}o(Se,"CheckSchema");function ke(t,e,n,r,a,c){t.Push(a);const f=Rh(a)?G7(t,e,n,r,a):!!(+(!Ph(a)||NH(t,e,n,r,a,c))&+(!(Mt(c)&&!wt(c))||!!(+(!ys(a)||$H(t,e,n,r,a,c))&+(!Gl(a)||D7(t,e,n,r,a,c))&+(!_h(a)||J7(t,e,n,r,a,c))&+(!Dh(a)||ek(t,e,n,r,a,c))&+(!jh(a)||ik(t,e,n,r,a,c))&+(!Ql(a)||sH(t,e,n,r,a,c))&+(!Zl(a)||mH(t,e,n,r,a,c))&+(!Fh(a)||gH(t,e,n,r,a,c))&+(!uf(a)||qk(t,e,n,r,a,c))&+(!kh(a)||jk(t,e,n,r,a,c))))&+(!wt(c)||!!(+(!Nh(a)||C7(t,e,n,r,a,c))&+(!Yl(a)||X7(t,e,n,r,a,c))&+(!Kl(a)||Tk(t,e,n,r,a,c))&+(!Lh(a)||Ck(t,e,n,r,a,c))&+(!Bh(a)||Rk(t,e,n,r,a,c))&+(!Xl(a)||zk(t,e,n,r,a,c))&+(!lf(a)||kk(t,e,n,r,a,c))&+(!ha(a)||cH(t,e,n,r,a,c))&+(!df(a)||kH(t,e,n,r,a,c))))&+(!Dt(c)||!!(+(!Uh(a)||_k(t,e,n,r,a,c))&+(!cf(a)||Fk(t,e,n,r,a,c))&+(!af(a)||dk(t,e,n,r,a,c))&+(!ff(a)||rH(t,e,n,r,a,c))))&+(!(Vt(c)||Oe(c))||!!(+(!Ih(a)||lk(t,e,n,r,a,c))&+(!da(a)||uk(t,e,n,r,a,c))&+(!zh(a)||Mk(t,e,n,r,a,c))&+(!ma(a)||Bk(t,e,n,r,a,c))&+(!Hh(a)||Yk(t,e,n,r,a,c))))&+(!l1(a)||vH(t,e,n,r,a,c))&+(!c1(a)||TH(t,e,n,r,a,c))&+(!Zv(a)||v7(t,e,n,r,a,c))&+(!e1(a)||V7(t,e,n,r,a,c))&+(!r1(a)||sk(t,e,n,r,a,c))&+(!i1(a)||pk(t,e,n,r,a,c))&+(!s1(a)||Qk(t,e,n,r,a,c))&+(!Wv(a)||B7(t,e,n,r,a,c))&+(!t1(a)||P7(t,e,n,r,a,c))&+(!a1(a)||eH(t,e,n,r,a,c))&+(!mf(a)||!wt(c)||jH(t,e,n,r,a,c))&+(!hf(a)||!Mt(c)||LH(t,e,n,r,a,c)))&&(!Jv(a)||E7(t,e,n,r,a,c));return t.Pop(a),f}o(ke,"ErrorSchema");const bu=new Map;function XH(t,e,n,r){return t.UseUnevaluated()?ne(`check_${n}`,["context",r]):ne(`check_${n}`,[r])}o(XH,"CreateCallExpression");function QH(t,e,n,r){const a=Me(t,e,n,"value");return e.UseUnevaluated()?oo(`check_${r}`,ar(["context","value"],a)):oo(`check_${r}`,ar(["value"],a))}o(QH,"CreateFunctionExpression");function ZH(){bu.clear()}o(ZH,"ResetFunctions");function JH(){return[...bu.values()]}o(JH,"GetFunctions");function Gh(t,e,n,r){const a=Ni(n)?Cu({__baseURL:t.BaseURL().href,...n}):Cu(n),c=XH(e,n,a,r);return bu.has(a)||(bu.set(a,""),bu.set(a,QH(t,e,n,a))),c}o(Gh,"CreateFunction");function WH(t,e){return Mt(e)?e[t]:void 0}o(WH,"GetIndex");function tF(t,e){return t.reduce((n,r)=>WH(r,n),e)}o(tF,"GetIndices");function eF(t){if(O(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(eF,"Indices");function nF(t,e){const n=eF(e);return tF(n,t)}o(nF,"Get");function rF(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(O(r.pathname,a.pathname))return n.hash.startsWith("#")?kO(t,e,n):t}o(rF,"MatchId");function iF(t,e,n){const r=new URL(`#${t.$anchor}`,e.href),a=new URL(n.href,e.href);if(O(r.href,a.href))return t}o(iF,"MatchAnchor");function kO(t,e,n){return n.href.endsWith("#")?t:n.hash.startsWith("#")?nF(t,decodeURIComponent(n.hash.slice(1))):void 0}o(kO,"MatchHash");function oF(t,e,n){if($u(t)){const r=rF(t,e,n);if(!pe(r))return r}if(U0(t)){const r=iF(t,e,n);if(!pe(r))return r}return kO(t,e,n)}o(oF,"Match");function sF(t,e,n){return t.reduce((r,a)=>{const c=g1(a,e,n);return pe(c)?r:c},void 0)}o(sF,"FromArray$7");function aF(t,e,n){return gt(t).reduce((r,a)=>{const c=g1(t[a],e,n);return pe(c)?r:c},void 0)}o(aF,"FromObject$7");function g1(t,e,n){if(e=Ni(t)&&$u(t)?new URL(t.$id,e.href):e,Ni(t)){const r=oF(t,e,n);if(!pe(r))return r}if(wt(t))return sF(t,e,n);if(Mt(t))return aF(t,e,n)}o(g1,"FromValue$1");function kd(t,e){const n=new URL("http://unknown"),r=$u(t)?new URL(t.$id,n.href):n,a=new URL(e,r.href);return g1(t,r,a)}o(kd,"Ref");const _S=class _S{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){Ni(e)&&($u(e)&&this.ids.push(e),U0(e)&&this.anchors.push(e),Qy(e)&&this.recursiveAnchors.push(e),iA(e)&&this.dynamicAnchors.push(e))}Pop(e){Ni(e)&&($u(e)&&this.ids.pop(),U0(e)&&this.anchors.pop(),Qy(e)&&this.recursiveAnchors.pop(),iA(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(_S,"Stack");let Al=_S;function lF(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(lF,"CreateCode");function cF(t,e){return new globalThis.Function("CheckContext","Guard","Format","Hashing",t.External().identifier,e)(oi,Q5,B0,u6,t.External().variables)}o(cF,"CreateEvaluatedCheck");function uF(t){const e=new Al(t.Context(),t.Schema()),n=new oi;return r=>Se(e,n,t.Schema(),r)}o(uF,"CreateDynamicCheck");function fF(t,e){return Ub()?cF(t,e):uF(t)}o(fF,"CreateCheck");const DS=class DS{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=lF(this),n=fF(this,e);return{IsAccelerated:Ub(),Code:e,Check:n}}};o(DS,"BuildResult");let F0=DS;function dF(...t){const[e,n]=nn(t,{2:(h,g)=>[h,g],1:h=>[{},h]});p7(),ZH();const r=new Al(e,n),a=new k0(h7(e,n)),c=Gh(r,a,n,"value"),f=JH(),d=g7();return new F0(e,n,d,f,c,a.UseUnevaluated())}o(dF,"Build");function mF(...t){const[e,n,r]=nn(t,{3:(y,v,E)=>[y,v,E],2:(y,v)=>[{},y,v]}),a=fs(),c=m6(),f=[],d=new Al(e,n),h=new $m(y=>{if(!Ll(f.length,a.maxErrors))return f.push({...y,message:c(y)})});return[ke(d,h,"#","",n,r),f]}o(mF,"Errors$1");function hF(...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 oi;return Se(a,c,n,r)}o(hF,"Check$1");function kr(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return hF(e,n,r)}o(kr,"Check");function pf(...t){const[e,n,r]=nn(t,{3:(f,d,h)=>[f,d,h],2:(f,d)=>[{},f,d]}),[a,c]=mF(e,n,r);return c}o(pf,"Errors");const jS=class jS 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(jS,"AssertError");let Ou=jS;function pF(t,e,n){return wt(n)?n.map(r=>ai(t,e.items,r)):n}o(pF,"FromArray$6");function gF(t,e,n){return e.Clean(n)}o(gF,"FromBase$3");function yF(t,e,n){return ai({...t,...e.$defs},lr(e.$ref),n)}o(yF,"FromCyclic$5");function bF(t,e){const n=at(e,"unevaluatedProperties")?{additionalProperties:e.unevaluatedProperties}:{},r=Wt(t,e),a=sf(r);return Ce(a)?Lv(a,n):a}o(bF,"EvaluateIntersection");function vF(t,e,n){const r=bF(t,e);return ai(t,r,n)}o(vF,"FromIntersect$5");function HO(t){return at(t,"additionalProperties")?t.additionalProperties:void 0}o(HO,"GetAdditionalProperties");function SF(t,e,n){if(!Mt(n)||wt(n))return n;const r=HO(e);for(const a of gt(n)){if(at(e.properties,a)){n[a]=ai(t,e.properties[a],n[a]);continue}if(Fe(r)&&O(r,!0)||Bt(r)&&kr(t,r,n[a])){n[a]=ai(t,r,n[a]);continue}delete n[a]}return n}o(SF,"FromObject$6");function xF(t,e,n){if(!Mt(n))return n;const r=HO(e),[a,c]=[new RegExp(hs(e)),zi(e)];for(const f of gt(n)){if(a.test(f)){n[f]=ai(t,c,n[f]);continue}if(Fe(r)&&O(r,!0)||Bt(r)&&kr(t,r,n[f])){n[f]=ai(t,r,n[f]);continue}delete n[f]}return n}o(xF,"FromRecord$5");function EF(t,e,n){return at(t,e.$ref)?ai(t,t[e.$ref],n):n}o(EF,"FromRef$5");function wF(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]=ai(t,e.items[a],n[a]);return zl(n.length,r)?n.slice(0,r):n}o(wF,"FromTuple$5");function TF(t){const e={};for(const n of Object.getOwnPropertyNames(t))e[n]=Fn(t[n]);for(const n of Object.getOwnPropertySymbols(t))e[n]=Fn(t[n]);return e}o(TF,"FromObjectInstance");function AF(t){return TC(t)?t:TF(t)}o(AF,"FromObject$5");function CF(t){return t.map(e=>Fn(e))}o(CF,"FromArray$5");function $F(t){return t.slice()}o($F,"FromTypedArray");function MF(t){return new Map(Fn([...t.entries()]))}o(MF,"FromMap");function OF(t){return new Set(Fn([...t.values()]))}o(OF,"FromSet");function Fn(t){return LC(t)?$F(t):y_(t)?MF(t):g_(t)?OF(t):wt(t)?CF(t):Mt(t)?AF(t):t}o(Fn,"Clone");function RF(t,e,n){for(const r of e.anyOf){const a=ai(t,r,Fn(n));if(kr(t,r,a))return a}return n}o(RF,"FromUnion$5");function ai(t,e,n){return en(e)?pF(t,e,n):Ul(e)?gF(t,e,n):Mn(e)?yF(t,e,n):xe(e)?vF(t,e,n):Ce(e)?SF(t,e,n):yr(e)?xF(t,e,n):$n(e)?EF(t,e,n):Pe(e)?wF(t,e,n):kt(e)?RF(t,e,n):n}o(ai,"FromType$5");function Yh(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return ai(e,n,r)}o(Yh,"Clean");function NF(t,e,n){return wt(n)?n.map(r=>hi(t,e.items,r)):n}o(NF,"FromArray$4");function _F(t,e,n){return e.Convert(n)}o(_F,"FromBase$2");function vr(t){return Mt(t)&&at(t,"value")}o(vr,"IsOk");function $t(t){return{value:t}}o($t,"Ok");function DF(t){return $t(t)}o(DF,"FromBigInt$7");function jF(t){return O(t,!0)?$t(BigInt(1)):$t(BigInt(0))}o(jF,"FromBoolean$7");function IF(t){return $t(BigInt(Math.trunc(t)))}o(IF,"FromNumber$7");function zF(t){return $t(BigInt(0))}o(zF,"FromNull$7");const LF=/^-?(0|[1-9]\d*)n$/,BF=/^-?(0|[1-9]\d*)\.\d+$/,UF=/^-?(0|[1-9]\d*)$/;function kF(t){return LF.test(t)}o(kF,"IsStringBigIntLike");function HF(t){return BF.test(t)}o(HF,"IsStringDecimalLike");function FF(t){return UF.test(t)}o(FF,"IsStringIntegerLike");function PF(t){const e=t.toLowerCase();return kF(t)?$t(BigInt(t.slice(0,t.length-1))):HF(t)?$t(BigInt(t.split(".")[0])):FF(t)?$t(BigInt(t)):O(e,"false")?$t(BigInt(0)):O(e,"true")?$t(BigInt(1)):void 0}o(PF,"FromString$7");function qF(t){return $t(BigInt(0))}o(qF,"FromUndefined$7");function y1(t){return Oe(t)?DF(t):Fe(t)?jF(t):Vt(t)?IF(t):qn(t)?zF():Dt(t)?PF(t):pe(t)?qF():void 0}o(y1,"TryBigInt");function GF(t){return O(t,BigInt(0))?$t(!1):O(t,BigInt(1))?$t(!0):void 0}o(GF,"FromBigInt$6");function YF(t){return $t(t)}o(YF,"FromBoolean$6");function VF(t){return O(t,0)?$t(!1):O(t,1)?$t(!0):void 0}o(VF,"FromNumber$6");function KF(t){return $t(!1)}o(KF,"FromNull$6");function XF(t){return O(t.toLowerCase(),"false")?$t(!1):O(t.toLowerCase(),"true")?$t(!0):O(t,"0")?$t(!1):O(t,"1")?$t(!0):void 0}o(XF,"FromString$6");function QF(t){return $t(!1)}o(QF,"FromUndefined$6");function FO(t){return Oe(t)?GF(t):Fe(t)?YF(t):Vt(t)?VF(t):qn(t)?KF():Dt(t)?XF(t):pe(t)?QF():void 0}o(FO,"TryBoolean");function ZF(t){return O(t,BigInt(0))?$t(null):void 0}o(ZF,"FromBigInt$5");function JF(t){return O(t,!1)?$t(null):void 0}o(JF,"FromBoolean$5");function WF(t){return O(t,0)?$t(null):void 0}o(WF,"FromNumber$5");function tP(t){return $t(null)}o(tP,"FromNull$5");function eP(t){const e=t.toLowerCase();return O(e,"undefined")||O(e,"null")||O(t,"")||O(t,"0")?$t(null):void 0}o(eP,"FromString$5");function nP(t){return $t(null)}o(nP,"FromUndefined$5");function rP(t){return Oe(t)?ZF(t):Fe(t)?JF(t):Vt(t)?WF(t):qn(t)?tP():Dt(t)?eP(t):pe(t)?nP():void 0}o(rP,"TryNull");const iP=BigInt(Number.MAX_SAFE_INTEGER),oP=BigInt(Number.MIN_SAFE_INTEGER);function sP(t){return t<=iP&&t>=oP}o(sP,"CanBigIntDowncast");function PO(t){return sP(t)?$t(Number(t)):void 0}o(PO,"FromBigInt$4");function aP(t){return $t(t?1:0)}o(aP,"FromBoolean$4");function lP(t){return $t(t)}o(lP,"FromNumber$4");function cP(t){return $t(0)}o(cP,"FromNull$4");function uP(t){const e=+t;if(Vt(e))return $t(e);const n=t.toLowerCase();if(O(n,"false"))return $t(0);if(O(n,"true"))return $t(1);const r=y1(t);return vr(r)?PO(r.value):void 0}o(uP,"FromString$4");function fP(t){return $t(0)}o(fP,"FromUndefined$4");function b1(t){return Oe(t)?PO(t):Fe(t)?aP(t):Vt(t)?lP(t):qn(t)?cP():Dt(t)?uP(t):pe(t)?fP():void 0}o(b1,"TryNumber");function dP(t){return $t(t.toString())}o(dP,"FromBigInt$3");function mP(t){return $t(t.toString())}o(mP,"FromBoolean$3");function hP(t){return $t(t.toString())}o(hP,"FromNumber$3");function pP(t){return $t("null")}o(pP,"FromNull$3");function gP(t){return $t(t)}o(gP,"FromString$3");function yP(t){return $t("")}o(yP,"FromUndefined$3");function qO(t){return Oe(t)?dP(t):Fe(t)?mP(t):Vt(t)?hP(t):qn(t)?pP():Dt(t)?gP(t):pe(t)?yP():void 0}o(qO,"TryString");function bP(t){return O(t,BigInt(0))?$t(void 0):void 0}o(bP,"FromBigInt$2");function vP(t){return O(t,!1)?$t(void 0):void 0}o(vP,"FromBoolean$2");function SP(t){return O(t,0)?$t(void 0):void 0}o(SP,"FromNumber$2");function xP(t){return $t(void 0)}o(xP,"FromNull$2");function EP(t){const e=t.toLowerCase();return O(e,"undefined")||O(e,"null")||O(t,"")||O(t,"0")?$t(void 0):void 0}o(EP,"FromString$2");function wP(t){return $t(void 0)}o(wP,"FromUndefined$2");function GO(t){return Oe(t)?bP(t):Fe(t)?vP(t):Vt(t)?SP(t):qn(t)?xP():Dt(t)?EP(t):pe(t)?wP():void 0}o(GO,"TryUndefined");function TP(t,e,n){if(Oe(n))return n;const r=y1(n);return vr(r)?r.value:n}o(TP,"FromBigInt$1");function AP(t,e,n){if(Fe(n))return n;const r=FO(n);return vr(r)?r.value:n}o(AP,"FromBoolean$1");function CP(t,e,n){return hi({...t,...e.$defs},lr(e.$ref),n)}o(CP,"FromCyclic$4");function YO(t,e,n){if(e.anyOf.some(f=>kr(t,f,n)))return n;const c=e.anyOf.map(f=>hi(t,f,Fn(n))).find(f=>kr(t,e,f));return pe(c)?n:c}o(YO,"FromUnion$4");function $P(t,e,n){const r=fv(e);return YO(t,r,n)}o($P,"FromEnum$1");function MP(t,e,n){if(ih(n))return n;const r=b1(n);return vr(r)?Math.trunc(r.value):n}o(MP,"FromInteger$1");function OP(t,e,n){const r=Wt(t,e),a=sf(r);return hi(t,a,n)}o(OP,"FromIntersect$4");function RP(t,e,n){const r=y1(n);return vr(r)&&O(e.const,r.value)?r.value:n}o(RP,"FromLiteralBigInt");function NP(t,e,n){const r=FO(n);return vr(r)&&O(e.const,r.value)?r.value:n}o(NP,"FromLiteralBoolean");function _P(t,e,n){const r=b1(n);return vr(r)&&O(e.const,r.value)?r.value:n}o(_P,"FromLiteralNumber");function DP(t,e,n){const r=qO(n);return vr(r)&&O(e.const,r.value)?r.value:n}o(DP,"FromLiteralString");function jP(t,e,n){return O(e.const,n)?n:E6(e)?RP(t,e,n):w6(e)?NP(t,e,n):Pb(e)?_P(t,e,n):qb(e)?DP(t,e,n):He()}o(jP,"FromLiteral$1");function IP(t,e,n){if(qn(n))return n;const r=rP(n);return vr(r)?r.value:n}o(IP,"FromNull$1");function zP(t,e,n){if(Vt(n))return n;const r=b1(n);return vr(r)?r.value:n}o(zP,"FromNumber$1");function VO(t,e,n,r){const a=gt(r);for(const[c,f]of e)for(const d of a)c.test(d)||(r[d]=hi(t,n,r[d]));return r}o(VO,"FromAdditionalProperties");function v1(t,e,n){return Hn(t)&&pe(n[e])}o(v1,"IsOptionalUndefined");function LP(t,e,n){const r=Rb(e.properties),a=gt(n);for(const[c,f]of r)for(const d of a)!c.test(d)||v1(f,d,n)||(n[d]=hi(t,f,n[d]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?VO(t,r,e.additionalProperties,n):n}o(LP,"FromProperties");function BP(t,e,n){return mo(n)?LP(t,e,n):n}o(BP,"FromObject$4");function UP(t,e,n){const r=Rb(e.patternProperties),a=gt(n);for(const[c,f]of r)for(const d of a)c.test(d)&&(n[d]=hi(t,f,n[d]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?VO(t,r,e.additionalProperties,n):n}o(UP,"FromPatternProperties");function kP(t,e,n){return mo(n)?UP(t,e,n):n}o(kP,"FromRecord$4");function HP(t,e,n){return at(t,e.$ref)?hi(t,t[e.$ref],n):n}o(HP,"FromRef$4");function FP(t,e,n){if(Dt(n))return n;const r=qO(n);return vr(r)?r.value:n}o(FP,"FromString$1");function PP(t,e,n){const r=bo(e.pattern);return hi(t,r,n)}o(PP,"FromTemplateLiteral$1");function qP(t,e,n){if(!wt(n))return n;for(let r=0;r<Math.min(e.items.length,n.length);r++)n[r]=hi(t,e.items[r],n[r]);return n}o(qP,"FromTuple$4");function GP(t,e,n){if(pe(n))return n;const r=GO(n);return vr(r)?r.value:n}o(GP,"FromUndefined$1");function YP(t,e,n){if(pe(n))return n;const r=GO(n);return vr(r)?void 0:n}o(YP,"FromVoid$1");function hi(t,e,n){return en(e)?NF(t,e,n):Ul(e)?_F(t,e,n):ua(e)?TP(t,e,n):go(e)?AP(t,e,n):Mn(e)?CP(t,e,n):fi(e)?$P(t,e,n):di(e)?MP(t,e,n):xe(e)?OP(t,e,n):De(e)?jP(t,e,n):kl(e)?IP(t,e,n):gr(e)?zP(t,e,n):Ce(e)?BP(t,e,n):yr(e)?kP(t,e,n):$n(e)?HP(t,e,n):Bn(e)?FP(t,e,n):Pr(e)?PP(t,e,n):Pe(e)?qP(t,e,n):Hl(e)?GP(t,e,n):kt(e)?YO(t,e,n):ps(e)?YP(t,e,n):n}o(hi,"FromType$4");function Vh(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return hi(e,n,r)}o(Vh,"Convert");function VP(t,e,n){if(!wt(n))return n;for(let r=0;r<n.length;r++)n[r]=Ir(t,e.items,n[r]);return n}o(VP,"FromArray$3");function KP(t,e,n){return e.Default(n)}o(KP,"FromBase$1");function XP(t,e,n){return Ir({...t,...e.$defs},lr(e.$ref),n)}o(XP,"FromCyclic$3");function QP(t,e){return pe(e)?ao(t.default)?t.default():Fn(t.default):e}o(QP,"FromDefault$1");function ZP(t,e,n){const r=Wt(t,e),a=sf(r);return Ir(t,a,n)}o(ZP,"FromIntersect$3");function JP(t,e,n){if(!Mt(n))return n;const r=gt(e.properties);for(const a of r){const c=Ir(t,e.properties[a],n[a]);pe(c)&&(Hn(e.properties[a])||!at(e.properties[a],"default"))||(n[a]=Ir(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]=Ir(t,e.additionalProperties,n[a]));return n}o(JP,"FromObject$3");function WP(t,e,n){if(!Mt(n))return n;const[r,a]=[new RegExp(hs(e)),zi(e)];for(const c of gt(n))r.test(c)&&Vl(a)&&(n[c]=Ir(t,a,n[c]));if(!Gl(e))return n;for(const c of gt(n))r.test(c)||(n[c]=Ir(t,e.additionalProperties,n[c]));return n}o(WP,"FromRecord$3");function tq(t,e,n){return at(t,e.$ref)?Ir(t,t[e.$ref],n):n}o(tq,"FromRef$3");function eq(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]=Ir(t,r[c],n[c]));return n}o(eq,"FromTuple$3");function nq(t,e,n){for(const r of e.anyOf){const a=Ir(t,r,Fn(n));if(kr(t,r,a))return a}return n}o(nq,"FromUnion$3");function Ir(t,e,n){const r=Vl(e)?QP(e,n):n;return en(e)?VP(t,e,r):Ul(e)?KP(t,e,r):Mn(e)?XP(t,e,r):xe(e)?ZP(t,e,r):Ce(e)?JP(t,e,r):yr(e)?WP(t,e,r):$n(e)?tq(t,e,r):Pe(e)?eq(t,e,r):kt(e)?nq(t,e,r):r}o(Ir,"FromType$3");function Kh(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return Ir(e,n,r)}o(Kh,"Default");function S1(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(S1,"Pipeline");function rq(t,e,n){return e["~codec"].decode(n)}o(rq,"Decode$7");function iq(t,e,n){return e["~codec"].encode(n)}o(iq,"Encode$7");function On(t,e,n,r){return fr(n)?O(t,"Decode")?rq(e,n,r):iq(e,n,r):r}o(On,"Callback");function oq(t,e,n,r){if(!wt(r))return He();for(let a=0;a<r.length;a++)r[a]=wn(t,e,n.items,r[a]);return On(t,e,n,r)}o(oq,"Decode$6");function sq(t,e,n,r){const a=On(t,e,n,r);if(!wt(a))return a;for(let c=0;c<a.length;c++)a[c]=wn(t,e,n.items,a[c]);return a}o(sq,"Encode$6");function aq(t,e,n,r){return O(t,"Decode")?oq(t,e,n,r):sq(t,e,n,r)}o(aq,"FromArray$2");function lq(t,e,n,r){return r=wn(t,{...e,...n.$defs},lr(n.$ref),r),On(t,e,n,r)}o(lq,"FromCyclic$2");function cq(t,e,n,r){for(const a of n.allOf)r=wn(t,e,a,r);return On(t,e,n,r)}o(cq,"Decode$5");function uq(t,e,n,r){let a=On(t,e,n,r);for(const c of n.allOf)a=wn(t,e,c,a);return a}o(uq,"Encode$5");function fq(t,e,n,r){return O(t,"Decode")?cq(t,e,n,r):uq(t,e,n,r)}o(fq,"FromIntersect$2");function dq(t,e,n,r){if(!mo(r))return He();for(const a of gt(n.properties))!at(r,a)||v1(n.properties[a],a,r)||(r[a]=wn(t,e,n.properties[a],r[a]));return On(t,e,n,r)}o(dq,"Decode$4");function mq(t,e,n,r){const a=On(t,e,n,r);if(!mo(a))return a;for(const c of gt(n.properties))!at(a,c)||v1(n.properties[c],c,a)||(a[c]=wn(t,e,n.properties[c],a[c]));return a}o(mq,"Encode$4");function hq(t,e,n,r){return O(t,"Decode")?dq(t,e,n,r):mq(t,e,n,r)}o(hq,"FromObject$2");function pq(t,e,n,r){if(!mo(r))return He();const a=new RegExp(hs(n));for(const c of gt(r))a.test(c)||He(),r[c]=wn(t,e,zi(n),r[c]);return On(t,e,n,r)}o(pq,"Decode$3");function gq(t,e,n,r){const a=On(t,e,n,r);if(!mo(a))return a;const c=new RegExp(hs(n));for(const f of gt(a))c.test(f)&&(a[f]=wn(t,e,zi(n),a[f]));return a}o(gq,"Encode$3");function yq(t,e,n,r){return O(t,"Decode")?pq(t,e,n,r):gq(t,e,n,r)}o(yq,"FromRecord$2");function bq(t,e,n,r){return r=at(e,n.$ref)?wn(t,e,e[n.$ref],r):r,On(t,e,n,r)}o(bq,"FromRef$2");function vq(t,e,n,r){if(!wt(r))return He();for(let a=0;a<Math.min(n.items.length,r.length);a++)r[a]=wn(t,e,n.items[a],r[a]);return On(t,e,n,r)}o(vq,"Decode$2");function Sq(t,e,n,r){const a=On(t,e,n,r);if(!wt(a))return r;for(let c=0;c<Math.min(n.items.length,a.length);c++)a[c]=wn(t,e,n.items[c],a[c]);return a}o(Sq,"Encode$2");function xq(t,e,n,r){return O(t,"Decode")?vq(t,e,n,r):Sq(t,e,n,r)}o(xq,"FromTuple$2");function Eq(t,e,n,r){for(const a of n.anyOf){if(!kr(e,a,r))continue;const c=wn(t,e,a,r);return On(t,e,n,c)}return He()}o(Eq,"Decode$1");function wq(t,e,n,r){let a=On(t,e,n,r);for(const c of n.anyOf){const f=wn(t,e,c,Fn(a));if(kr(e,c,f))return f}return a}o(wq,"Encode$1");function Tq(t,e,n,r){return O(t,"Decode")?Eq(t,e,n,r):wq(t,e,n,r)}o(Tq,"FromUnion$2");function wn(t,e,n,r){return en(n)?aq(t,e,n,r):Mn(n)?lq(t,e,n,r):xe(n)?fq(t,e,n,r):Ce(n)?hq(t,e,n,r):yr(n)?yq(t,e,n,r):$n(n)?bq(t,e,n,r):Pe(n)?xq(t,e,n,r):kt(n)?Tq(t,e,n,r):On(t,e,n,r)}o(wn,"FromType$2");const IS=class IS extends Ou{constructor(e,n){super("Decode",e,n)}};o(IS,"DecodeError");let P0=IS;function Aq(t,e,n){if(!kr(t,e,n))throw new P0(n,pf(t,e,n));return n}o(Aq,"Assert$2");function Cq(t,e,n){return wn("Decode",t,e,n)}o(Cq,"DecodeUnsafe");const $q=S1([(t,e,n)=>Fn(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)=>Aq(t,e,n),(t,e,n)=>Cq(t,e,n)]);function Mq(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return $q(e,n,r)}o(Mq,"Decode");const zS=class zS extends Ou{constructor(e,n){super("Encode",e,n)}};o(zS,"EncodeError");let q0=zS;function Oq(t,e,n){if(!kr(t,e,n))throw new q0(n,pf(t,e,n));return n}o(Oq,"Assert$1");function Rq(t,e,n){return wn("Encode",t,e,n)}o(Rq,"EncodeUnsafe");const Nq=S1([(t,e,n)=>Fn(n),(t,e,n)=>Rq(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)=>Oq(t,e,n)]);function _q(...t){const[e,n,r]=nn(t,{3:(a,c,f)=>[a,c,f],2:(a,c)=>[{},a,c]});return Nq(e,n,r)}o(_q,"Encode");function Dq(t,e){return fr(e)||bs(t,e.items)}o(Dq,"FromArray$1");function jq(t,e){return fr(e)||KO({...t,...e.$defs},lr(e.$ref))}o(jq,"FromCyclic$1");function Iq(t,e){return fr(e)||e.allOf.some(n=>bs(t,n))}o(Iq,"FromIntersect$1");function zq(t,e){return fr(e)||gt(e.properties).some(n=>bs(t,e.properties[n]))}o(zq,"FromObject$1");function Lq(t,e){return fr(e)||bs(t,zi(e))}o(Lq,"FromRecord$1");function KO(t,e){return G0.has(e.$ref)?!1:(G0.add(e.$ref),fr(e)||at(t,e.$ref)&&bs(t,t[e.$ref]))}o(KO,"FromRef$1");function Bq(t,e){return fr(e)||e.items.some(n=>bs(t,n))}o(Bq,"FromTuple$1");function Uq(t,e){return fr(e)||e.anyOf.some(n=>bs(t,n))}o(Uq,"FromUnion$1");function bs(t,e){return en(e)?Dq(t,e):Mn(e)?jq(t,e):xe(e)?Iq(t,e):Ce(e)?zq(t,e):yr(e)?Lq(t,e):$n(e)?KO(t,e):Pe(e)?Bq(t,e):kt(e)?Uq(t,e):fr(e)}o(bs,"FromType$1");const G0=new Set;function kq(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a],1:r=>[{},r]});return G0.clear(),bs(e,n)}o(kq,"HasCodec");const LS=class LS extends Error{constructor(e,n){super(n),this.type=e}};o(LS,"CreateError");let ea=LS;function Hq(t,e){return ao(e.default)?e.default(e):Mt(e.default)?Fn(e.default):e.default}o(Hq,"FromDefault");function Fq(t,e){if(df(e)&&!Vl(e))throw new ea(e,"Arrays with uniqueItems constraints must specify a default annotation");const n=lf(e)?e.minItems:0;return Array.from({length:n},()=>Sr(t,e.items))}o(Fq,"FromArray");async function*Pq(){}o(Pq,"CreateAsyncIterator");function qq(t,e){return Pq()}o(qq,"FromAsyncIterator");function Gq(t,e){return e.Create()}o(Gq,"FromBase");function Yq(t,e){return da(e)?BigInt(e.exclusiveMinimum)+BigInt(1):ma(e)?BigInt(e.minimum):BigInt(0)}o(Yq,"FromBigInt");function Vq(t,e){return!1}o(Vq,"FromBoolean");function Kq(t,e){const n=Sr(t,e.instanceType);return class{constructor(){Object.assign(this,n)}}}o(Kq,"FromConstructor");function Xq(t,e){return Sr({...t,...e.$defs},lr(e.$ref))}o(Xq,"FromCyclic");function Qq(t,e){return Sr(t,fv(e))}o(Qq,"FromEnum");function Zq(t,e){const n=Sr(t,e.returnType);return()=>n}o(Zq,"FromFunction");function Jq(t,e){return da(e)&&Vt(e.exclusiveMinimum)?e.exclusiveMinimum+1:ma(e)?e.minimum:0}o(Jq,"FromInteger");function Wq(t,e){const n=Wt(t,e),r=sf(n);return Sr(t,r)}o(Wq,"FromIntersect");function*tG(){}o(tG,"CreateIterator");function eG(t,e){return tG()}o(eG,"FromIterator");function nG(t,e){return e.const}o(nG,"FromLiteral");function rG(t,e){throw new ea(e,"Cannot create TNever types")}o(rG,"FromNever");function iG(t,e){return null}o(iG,"FromNull");function oG(t,e){return da(e)&&Vt(e.exclusiveMinimum)?e.exclusiveMinimum+1:ma(e)?e.minimum:0}o(oG,"FromNumber");function sG(t,e){return(pe(e.required)?[]:e.required).reduce((r,a)=>({...r,[a]:Sr(t,e.properties[a])}),{})}o(sG,"FromObject");function aG(t,e){return Promise.resolve(Sr(t,e.item))}o(aG,"FromPromise");function lG(t,e){if(uf(e)&&!Vl(e))throw new ea(e,"Record with the minProperties constraint must have a default annotation");return{}}o(lG,"FromRecord");function cG(t,e){return at(t,e.$ref)?Sr(t,t[e.$ref]):(()=>{throw new ea(e,"Unable to deref Ref")})()}o(cG,"FromRef");function uG(t,e){if((ff(e)||af(e))&&!Vl(e))throw Error("Strings with format or pattern constraints must specify default");const r=cf(e)?e.minLength:0;return"".padEnd(r)}o(uG,"FromString");function fG(t,e){return Symbol()}o(fG,"FromSymbol");function dG(t,e){const n=bo(e.pattern);if(Bn(n))throw new ea(e,"Unable to create TemplateLiteral due to infinite type expansion");return Sr(t,n)}o(dG,"FromTemplateLiteral");function mG(t,e){return Array.from({length:e.minItems},(n,r)=>Sr(t,e.items[r]))}o(mG,"FromTuple");function hG(t,e){if(O(e.anyOf.length,0))throw Error("Unable to create Union with no variants");return Sr(t,e.anyOf[0])}o(hG,"FromUnion");function Sr(t,e){return Vl(e)?Hq(t,e):en(e)?Fq(t,e):ds(e)?qq():Ul(e)?Gq(t,e):ua(e)?Yq(t,e):go(e)?Vq():ji(e)?Kq(t,e):Mn(e)?Xq(t,e):fi(e)?Qq(t,e):Ii(e)?Zq(t,e):di(e)?Jq(t,e):xe(e)?Wq(t,e):ms(e)?eG():De(e)?nG(t,e):mh(e)?rG(t,e):kl(e)?iG():gr(e)?oG(t,e):Ce(e)?sG(t,e):yo(e)?aG(t,e):yr(e)?lG(t,e):$n(e)?cG(t,e):Bn(e)?uG(t,e):Qu(e)?fG():Pr(e)?dG(t,e):Pe(e)?mG(t,e):Hl(e)?void 0:kt(e)?hG(t,e):ps(e)?void 0:void 0}o(Sr,"FromType");function pG(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a],1:r=>[{},r]});return Sr(e,n)}o(pG,"Create");const BS=class BS extends Ou{constructor(e,n){super("Parse",e,n)}};o(BS,"ParseError");let Ru=BS;function gG(t,e,n){if(!kr(t,e,n))throw new Ru(n,pf(t,e,n));return n}o(gG,"Assert");const XO=S1([(t,e,n)=>Fn(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)=>gG(t,e,n)]);function yG(...t){const[e,n,r]=nn(t,{3:(c,f,d)=>[c,f,d],2:(c,f)=>[{},c,f]});if(kr(e,n,r))return r;if(fs().correctiveParse)return XO(e,n,r);throw new Ru(r,pf(e,n,r))}o(yG,"Parse");const bG=ae({type:ge("insert"),path:Ur(),value:cr()}),vG=Object({type:ge("update"),path:Ur(),value:cr()}),SG=ae({type:ge("delete"),path:Ur()});ve([bG,vG,SG]);const xG=o(t=>t&&typeof t=="object"&&"format"in t&&t.format==="binary","isTypeFile"),EG=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");E_({correctiveParse:!0});const US=class US{isBigInt=o(e=>Bn(e)&&"format"in e&&e.format==="bigint","isBigInt");isUUID=o(e=>Bn(e)&&"format"in e&&e.format==="uuid","isUUID");isObject=Ce;isNumber=gr;isString=Bn;isBoolean=go;isAny=po;isArray=en;isOptional=Hn;isUnion=kt;isInteger=di;isNull=kl;isUndefined=Hl;isUnsafe=m$;isRecord=yr;isTuple=Pe;isVoid=ps;isLiteral=De;isSchema=Bt;isScalar=o(e=>this.isString(e)||this.isNumber(e)||this.isInteger(e)||this.isBoolean(e),"isScalar");isFile=xG;isDateTime=o(e=>_.schema.isString(e)&&e.format==="date-time","isDateTime");isDate=o(e=>_.schema.isString(e)&&e.format==="date","isDate");isTime=o(e=>_.schema.isString(e)&&e.format==="time","isTime");isDuration=o(e=>_.schema.isString(e)&&e.format==="duration","isDuration")};o(US,"TypeGuard");let Y0=US;const An=class An{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=HU;any=bl;void=Xb;undefined=bh;record=Vb;union=ve;tuple=mi;null=Xs;const=ge;options=Lv;schema=new Y0;extend(e,n,r){return xM(Array.isArray(e)?e:[e],n,{additionalProperties:!1,...r})}pick(e,n,r){return HM(e,n,{additionalProperties:!1,...r})}omit(e,n,r){return UM(e,n,{additionalProperties:!1,...r})}partial(e,n){return kM(e,{additionalProperties:!1,...n})}object(e,n){return ae(e,{additionalProperties:!1,...n})}array(e,n){return ca(e,{maxItems:An.DEFAULT_ARRAY_MAX_ITEMS,...n})}string(e={}){return Ur({...e})}text(e={}){const{size:n,...r}=e,a=n==="short"?An.DEFAULT_SHORT_STRING_MAX_LENGTH:n==="long"?An.DEFAULT_LONG_STRING_MAX_LENGTH:n==="rich"?An.DEFAULT_RICH_STRING_MAX_LENGTH:An.DEFAULT_STRING_MAX_LENGTH;return Ur({maxLength:a,"~options":{trim:e.trim??!0,lowercase:e.lowercase??!1},...r})}json(e){return _.record(_.text(),_.any(),e)}boolean(e){return Fb({...e})}number(e){return lo({...e})}integer(e){return Tl({...e})}int32(e){return Tl({minimum:-2147483647,maximum:2147483647,...e})}int64(e){return lo({format:"int64",multipleOf:1,minimum:-9007199254740991,maximum:9007199254740991,...e})}optional(e){return Lb(e)}nullable(e,n){return ve([Xs(),e],n)}nullify=o((e,n)=>LM(xm("K"),zM(e),lr("K"),ve([jM(e,lr("K")),Xs()]),n),"nullify");enum(e,n){return Qd(_.text({enum:e,pattern:e.map(r=>`^${r}$`).join("|"),...n}))}bigint(e){return _.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 Qd(bl({[Ks]:e,format:"binary"}))}stream(){return Qd(bl({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=>_.text({...e,format:"date-time"}),"datetime");date=o(e=>_.text({...e,format:"date"}),"date");time=o(e=>_.text({...e,format:"time"}),"time");duration=o(e=>_.text({...e,format:"duration"}),"duration")};o(An,"TypeProvider"),sn(An,"format",B0),B0.Set("bigint",e=>An.isValidBigInt(e)),sn(An,"DEFAULT_STRING_MAX_LENGTH",255),sn(An,"DEFAULT_SHORT_STRING_MAX_LENGTH",64),sn(An,"DEFAULT_LONG_STRING_MAX_LENGTH",1024),sn(An,"DEFAULT_RICH_STRING_MAX_LENGTH",65535),sn(An,"DEFAULT_ARRAY_MAX_ITEMS",1e3);let Cl=An;const _=new Cl,kS=class kS extends mm{cache=new Map;textEncoder=new TextEncoder;textDecoder=new TextDecoder;varCounter=0;useFunctionCompilation=!0;configure(e){return e.useFunctionCompilation!==void 0&&(this.useFunctionCompilation=e.useFunctionCompilation,this.cache.clear()),this}onConfigure=ir({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}}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(_.schema.isBigInt(e))return`${n}n`;if(_.schema.isArray(e)){const r=e;return!Array.isArray(n)||_.schema.isScalar(r.items)?n:n.map(a=>this.interpretEncode(r.items,a))}if(_.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(_.schema.isOptional(e)||_.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(_.schema.isBigInt(e))return BigInt(n.arr[n.i++].slice(0,-1));if(_.schema.isArray(e)){const r=e,a=n.arr[n.i++];return Array.isArray(a)&&_.schema.isObject(r.items)?a.map(c=>this.interpretDecodeFromValue(r.items,c)):a}if(_.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(_.schema.isOptional(e)||_.schema.isUnion(e)){const r=this.unwrap(e),a=n.arr[n.i++];return a===null?this.isNullable(e)?null:void 0:_.schema.isObject(r)||_.schema.isArray(r)?this.interpretDecodeFromValue(r,a):a}return n.arr[n.i++]}interpretDecodeFromValue(e,n){if(this.isLeaf(e))return n;if(_.schema.isBigInt(e))return BigInt(n.slice(0,-1));if(_.schema.isArray(e)){if(!Array.isArray(n))return n;const r=e;return _.schema.isObject(r.items)?n.map(a=>this.interpretDecodeFromValue(r.items,a)):n}if(_.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];_.schema.isObject(g)?f[h]=this.interpretDecodeFromValue(g,y):_.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(_.schema.isBigInt(e))return`${n}+'n'`;if(_.schema.isArray(e)){const r=e,a=this.genEnc(r.items,"e");return _.schema.isScalar(r.items)?n:`${n}.map(e=>${a})`}if(_.schema.isObject(e)){const r=[];for(const{key:a,isOpt:c,isNullable:f,inner:d}of this.getObjectFields(e)){const h=JSON.stringify(a),g=`${n}[${h}]`,y=this.genEnc(d,g);c?r.push(`${g}!==undefined?${y}:null`):f?r.push(`${g}!==null?${y}:null`):r.push(y)}return`[${r.join(",")}]`}if(_.schema.isOptional(e)||_.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(_.schema.isBigInt(e))return{code:"",result:"BigInt(a[i++].slice(0,-1))"};if(_.schema.isArray(e)){const r=e;return _.schema.isObject(r.items)?{code:"",result:`a[i++].map(e=>${this.genDecFromValue(r.items,"e")})`}:{code:"",result:"a[i++]"}}if(_.schema.isObject(e)){const r=this.getObjectFields(e);if(r.every(({isOpt:f,isNullable:d,inner:h})=>!f&&!d&&!_.schema.isObject(h)&&!_.schema.isArray(h)))return{code:"",result:`{${r.map(({key:d})=>`${JSON.stringify(d)}:a[i++]`).join(",")}}`};let c=`const ${n}={};`;for(const{key:f,isOpt:d,isNullable:h,inner:g}of r){const y=JSON.stringify(f);if(d){const v=this.genDecFromValue(g,"t");c+=`{const t=a[i++];if(t!==null){${n}[${y}]=${v};}}`}else if(h){const v=this.genDecFromValue(g,"t");c+=`{const t=a[i++];if(t===null){${n}[${y}]=null;}else{${n}[${y}]=${v};}}`}else if(_.schema.isObject(g)){const v=this.genDecFromValue(g,"a[i++]");c+=`${n}[${y}]=${v};`}else if(_.schema.isArray(g)){const v=g;if(_.schema.isObject(v.items)){const E=this.genDecFromValue(v.items,"e");c+=`${n}[${y}]=a[i++].map(e=>${E});`}else c+=`${n}[${y}]=a[i++];`}else c+=`${n}[${y}]=a[i++];`}return{code:c,result:n}}if(_.schema.isOptional(e)||_.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(_.schema.isBigInt(e))return`BigInt(${n}.slice(0,-1))`;if(_.schema.isArray(e))return n;if(_.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}]`,E=JSON.stringify(h);return _.schema.isObject(y)?`${E}:${this.genDecFromValue(y,v)}`:_.schema.isBigInt(y)?`${E}:BigInt(${v}.slice(0,-1))`:`${E}:${v}`});return`((${f}=${n})=>({${d.join(",")}}))()`}return n}isLeaf(e){return _.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)||_.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 _.schema.isUnion(e)?e.anyOf?.some(r=>_.schema.isNull(r))??!1:!1}unwrap(e){return"anyOf"in e&&Array.isArray(e.anyOf)&&e.anyOf.find(r=>!_.schema.isNull(r))||e}reconstructObject(e,n){if(!_.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]=_.schema.isObject(h)?this.reconstructObject(h,g):g):d?r[c]=g===null?null:_.schema.isObject(h)?this.reconstructObject(h,g):g:r[c]=_.schema.isObject(h)?this.reconstructObject(h,g):g}return r}};o(kS,"KeylessJsonSchemaCodec");let V0=kS;const nh=class nh extends qC{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.isAccelerated=c,this.hasCodec=f,this.code=d,this.check=h}else{const[r,a]=n,c=dF(r,a).Evaluate();this.hasCodec=kq(r,a),this.context=r,this.type=a,this.isAccelerated=c.IsAccelerated,this.code=c.Code,this.check=c.Check}}IsAccelerated(){return this.isAccelerated}Context(){return this.context}Type(){return this.type}Code(){return this.code}Check(e){return this.check(e)}Errors(e){return Ub()&&this.check(e)?[]:pf(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 pG(this.context,this.type)}Default(e){return Kh(this.context,this.type,e)}Clone(){return new nh(this.context,this.type,this.isAccelerated,this.hasCodec,this.code,this.check)}Parse(e){if(this.Check(e))return e;if(fs().correctiveParse)return XO(this.context,this.type,e);throw new Ru(e,this.Errors(e))}Decode(e){return this.hasCodec?Mq(this.context,this.type,e):this.Parse(e)}Encode(e){return this.hasCodec?_q(this.context,this.type,e):this.Parse(e)}};o(nh,"Validator");let K0=nh;function oA(...t){const[e,n]=nn(t,{2:(r,a)=>[r,a],1:r=>[{},r]});return new K0(e,n)}o(oA,"Compile");const HS=class HS extends Ut{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(HS,"TypeBoxError");let $l=HS;const FS=class FS{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):yG(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=oA(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(!e.type&&e.anyOf&&(e=e.anyOf.find(a=>a.type!=="null"&&a.type!=="undefined")||e),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=ir({on:"configure",handler:o(()=>{this.useEval=this.canEval()},"handler")});canEval(){try{return oA(_.object({test:_.string()})).Parse({test:"value"}),!0}catch{return!1}}};o(FS,"SchemaValidator");let X0=FS;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 Ut(`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 qS=class qS{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 Ut("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 Ut(`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(qS,"EventManager");let Mm=qS;const pi=o(t=>new ns(t),"$atom"),GS=class GS{options;get schema(){return this.options.schema}get key(){return this.options.name}constructor(e){this.options=e}};o(GS,"Atom");let ns=GS;pi[kn]="atom";const YS=class YS{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 ns&&this.register(e);const r=e instanceof ns?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 ns&&this.register(e);const a=e instanceof ns?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(YS,"StateManager");let Z0=YS;var sA={};const ro=class ro{static create(e={}){typeof process=="object"&&typeof sA=="object"&&(e.env={...sA,...e.env}),typeof process=="object"&&(e.env??={},Object.assign(e.env,{NODE_ENV:"production"}));const n=new ro(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;startPromise;startedAt=0;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.startPromise){const e=performance.now()-this.startedAt;if(e>ro.STARTUP_TIMEOUT)this.log?.warn(`Previous start attempt is stale (${Math.round(e)}ms ago), resetting...`),this.resetStartup();else return this.log?.warn("App is already starting, waiting for it to finish..."),this.startPromise}return this.startedAt=performance.now(),this.startPromise=this.boot(),this.startPromise}async boot(){const e=performance.now();this.log?.info("Starting App...");try{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)}return 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,this}catch(n){throw this.resetStartup(),n}}resetStartup(){this.startPromise=void 0,this.startedAt=0,this.locked=!1,this.configured=!1,this.started=!1,this.ready=!1}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,this.startPromise=void 0,this.startedAt=0)}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===ro)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:Dr?.parent??ro,c=r==="transient",f=r==="scoped"?this.context.get("registry")??this.registry:this.registry;if(e===ro)return this;if(typeof e=="string"){for(const[E,x]of f.entries())if(E.name===e)return x.instance;throw new Ut(`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 yl){this.modules.push(y);const E=Dr.parent;Dr.parent=y.constructor,y.register(this),Dr.parent=E}return y}parseEnv(e){if(this.cacheEnv.has(e))return this.cacheEnv.get(e);const n=this.codec.validate(e,this.env);let r=!0;for(let a=0;r&&a<10;a++){r=!1;for(const c in n)if(typeof n[c]=="string")for(const f in n){const d=n[c];n[c]=d.replaceAll(`$${f}`,String(n[f]??"")),n[c]!==d&&(r=!0)}}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===""||yl.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=yl.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[kn])??[]}new(e,n=[]){this.pendingInstantiations.push(e),Dr.alepha=this,Dr.service=e;const r=L5(e)?new e(...n):e(...n)??{},a=r;for(const[c,f]of Object.entries(a))if(f instanceof ii&&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&&(Dr.alepha=void 0),Dr.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(ro,"Alepha"),sn(ro,"STARTUP_TIMEOUT",3e4);let Ke=ro;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");_.object({page:_.optional(_.integer({description:"The page number to retrieve.",minimum:0,default:0})),size:_.optional(_.integer({description:"The number of items per page.",minimum:1,maximum:100,default:10})),sort:_.optional(_.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 wG=_.object({number:_.integer({description:"Page number, starting from 0"}),size:_.integer({description:"Number of items per page (requested page size)"}),offset:_.integer({description:"Offset in the dataset (page × size)"}),numberOfElements:_.integer({description:"Number of elements in THIS page (content.length). Different from totalElements which is the total across all pages."}),totalElements:_.optional(_.integer({description:"Total number of elements across all pages. Only available when counting is enabled."})),totalPages:_.optional(_.integer({description:"Total number of pages. Only available when `totalElements` is present."})),isEmpty:_.boolean({description:"Indicates if the current page has no items (numberOfElements === 0)"}),isFirst:_.boolean({description:"Indicates if this is the first page (number === 0)"}),isLast:_.boolean({description:"Indicates if this is the last page (no more pages after this)"}),sort:_.optional(_.object({sorted:_.boolean({description:"Whether the results are sorted"}),fields:_.array(_.object({field:_.text({description:"The field used for sorting"}),direction:_.enum(["asc","desc"],{description:"The direction of the sort. Either 'asc' or 'desc'"})}))}))}),TG=o((t,e)=>_.object({content:_.array(t),page:wG},e),"pageSchema");Cl.prototype.page=t=>TG(t);const AG=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"),CG="modulepreload",$G=o(function(t){return"/__devtools/"+t},"assetsURL"),aA={},rr=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=$G(g),g in aA)return;aA[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":CG,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 vs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o(vs,"getDefaultExportFromCjs");var Zy={exports:{}},cu={};var lA;function MG(){if(lA)return cu;lA=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(MG,"requireReactJsxRuntime_production");var cA;function OG(){return cA||(cA=1,Zy.exports=MG()),Zy.exports}o(OG,"requireJsxRuntime");var $=OG(),Jy={exports:{}},Nt={};var uA;function RG(){if(uA)return Nt;uA=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(N){return N===null||typeof N!="object"?null:(N=E&&N[E]||N["@@iterator"],typeof N=="function"?N: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(N,Y,lt){this.props=N,this.context=Y,this.refs=M,this.updater=lt||C}o(L,"Component"),L.prototype.isReactComponent={},L.prototype.setState=function(N,Y){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,Y,"setState")},L.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function z(){}o(z,"ComponentDummy"),z.prototype=L.prototype;function D(N,Y,lt){this.props=N,this.context=Y,this.refs=M,this.updater=lt||C}o(D,"PureComponent");var F=D.prototype=new z;F.constructor=D,w(F,L.prototype),F.isPureReactComponent=!0;var G=Array.isArray;function P(){}o(P,"noop");var B={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function et(N,Y,lt){var dt=lt.ref;return{$$typeof:t,type:N,key:Y,ref:dt!==void 0?dt:null,props:lt}}o(et,"ReactElement");function nt(N,Y){return et(N.type,Y,N.props)}o(nt,"cloneAndReplaceKey");function ot(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}o(ot,"isValidElement");function ft(N){var Y={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(lt){return Y[lt]})}o(ft,"escape");var mt=/\/+/g;function V(N,Y){return typeof N=="object"&&N!==null&&N.key!=null?ft(""+N.key):Y.toString(36)}o(V,"getElementKey");function J(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(P,P):(N.status="pending",N.then(function(Y){N.status==="pending"&&(N.status="fulfilled",N.value=Y)},function(Y){N.status==="pending"&&(N.status="rejected",N.reason=Y)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}o(J,"resolveThenable");function R(N,Y,lt,dt,ht){var yt=typeof N;(yt==="undefined"||yt==="boolean")&&(N=null);var Ct=!1;if(N===null)Ct=!0;else switch(yt){case"bigint":case"string":case"number":Ct=!0;break;case"object":switch(N.$$typeof){case t:case e:Ct=!0;break;case y:return Ct=N._init,R(Ct(N._payload),Y,lt,dt,ht)}}if(Ct)return ht=ht(N),Ct=dt===""?"."+V(N,0):dt,G(ht)?(lt="",Ct!=null&&(lt=Ct.replace(mt,"$&/")+"/"),R(ht,Y,lt,"",function(ye){return ye})):ht!=null&&(ot(ht)&&(ht=nt(ht,lt+(ht.key==null||N&&N.key===ht.key?"":(""+ht.key).replace(mt,"$&/")+"/")+Ct)),Y.push(ht)),1;Ct=0;var te=dt===""?".":dt+":";if(G(N))for(var Kt=0;Kt<N.length;Kt++)dt=N[Kt],yt=te+V(dt,Kt),Ct+=R(dt,Y,lt,yt,ht);else if(Kt=x(N),typeof Kt=="function")for(N=Kt.call(N),Kt=0;!(dt=N.next()).done;)dt=dt.value,yt=te+V(dt,Kt++),Ct+=R(dt,Y,lt,yt,ht);else if(yt==="object"){if(typeof N.then=="function")return R(J(N),Y,lt,dt,ht);throw Y=String(N),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ct}o(R,"mapIntoArray");function U(N,Y,lt){if(N==null)return N;var dt=[],ht=0;return R(N,dt,"","",function(yt){return Y.call(lt,yt,ht++)}),dt}o(U,"mapChildren");function I(N){if(N._status===-1){var Y=N._result;Y=Y(),Y.then(function(lt){(N._status===0||N._status===-1)&&(N._status=1,N._result=lt)},function(lt){(N._status===0||N._status===-1)&&(N._status=2,N._result=lt)}),N._status===-1&&(N._status=0,N._result=Y)}if(N._status===1)return N._result.default;throw N._result}o(I,"lazyInitializer");var tt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},it={map:U,forEach:o(function(N,Y,lt){U(N,function(){Y.apply(this,arguments)},lt)},"forEach"),count:o(function(N){var Y=0;return U(N,function(){Y++}),Y},"count"),toArray:o(function(N){return U(N,function(Y){return Y})||[]},"toArray"),only:o(function(N){if(!ot(N))throw Error("React.Children.only expected to receive a single React element child.");return N},"only")};return Nt.Activity=v,Nt.Children=it,Nt.Component=L,Nt.Fragment=n,Nt.Profiler=a,Nt.PureComponent=D,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(N){return B.H.useMemoCache(N)},"c")},Nt.cache=function(N){return function(){return N.apply(null,arguments)}},Nt.cacheSignal=function(){return null},Nt.cloneElement=function(N,Y,lt){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var dt=w({},N.props),ht=N.key;if(Y!=null)for(yt in Y.key!==void 0&&(ht=""+Y.key),Y)!H.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(N.type,ht,dt)},Nt.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:c,_context:N},N},Nt.createElement=function(N,Y,lt){var dt,ht={},yt=null;if(Y!=null)for(dt in Y.key!==void 0&&(yt=""+Y.key),Y)H.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(N&&N.defaultProps)for(dt in Ct=N.defaultProps,Ct)ht[dt]===void 0&&(ht[dt]=Ct[dt]);return et(N,yt,ht)},Nt.createRef=function(){return{current:null}},Nt.forwardRef=function(N){return{$$typeof:d,render:N}},Nt.isValidElement=ot,Nt.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:I}},Nt.memo=function(N,Y){return{$$typeof:g,type:N,compare:Y===void 0?null:Y}},Nt.startTransition=function(N){var Y=B.T,lt={};B.T=lt;try{var dt=N(),ht=B.S;ht!==null&&ht(lt,dt),typeof dt=="object"&&dt!==null&&typeof dt.then=="function"&&dt.then(P,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(N){return B.H.use(N)},Nt.useActionState=function(N,Y,lt){return B.H.useActionState(N,Y,lt)},Nt.useCallback=function(N,Y){return B.H.useCallback(N,Y)},Nt.useContext=function(N){return B.H.useContext(N)},Nt.useDebugValue=function(){},Nt.useDeferredValue=function(N,Y){return B.H.useDeferredValue(N,Y)},Nt.useEffect=function(N,Y){return B.H.useEffect(N,Y)},Nt.useEffectEvent=function(N){return B.H.useEffectEvent(N)},Nt.useId=function(){return B.H.useId()},Nt.useImperativeHandle=function(N,Y,lt){return B.H.useImperativeHandle(N,Y,lt)},Nt.useInsertionEffect=function(N,Y){return B.H.useInsertionEffect(N,Y)},Nt.useLayoutEffect=function(N,Y){return B.H.useLayoutEffect(N,Y)},Nt.useMemo=function(N,Y){return B.H.useMemo(N,Y)},Nt.useOptimistic=function(N,Y){return B.H.useOptimistic(N,Y)},Nt.useReducer=function(N,Y,lt){return B.H.useReducer(N,Y,lt)},Nt.useRef=function(N){return B.H.useRef(N)},Nt.useState=function(N){return B.H.useState(N)},Nt.useSyncExternalStore=function(N,Y,lt){return B.H.useSyncExternalStore(N,Y,lt)},Nt.useTransition=function(){return B.H.useTransition()},Nt.version="19.2.4",Nt}o(RG,"requireReact_production");var fA;function x1(){return fA||(fA=1,Jy.exports=RG()),Jy.exports}o(x1,"requireReact");var A=x1();const jr=vs(A),QO=z5({__proto__:null,default:jr},[A]),NG=o(t=>{const[e,n]=A.useState(!1);return A.useEffect(()=>n(!0),[]),t.disabled||e?t.children:t.fallback},"ClientOnly"),VS=class VS extends jr.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(){if(this.state.error){const e=o(()=>{this.setState({error:void 0})},"reset");return this.props.fallback(this.state.error,e)}return this.props.children}};o(VS,"ErrorBoundary");let Om=VS;const ZO=A.createContext(void 0);var Zd={exports:{}},_G=Zd.exports,dA;function DG(){return dA||(dA=1,(function(t,e){(function(n,r){t.exports=r()})(_G,(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"}],D=z.length,F=0;F<D;F+=1){var G=z[F];G.d&&(C=E?a(g).diff(v,G.d,!0):v.diff(g,G.d,!0));var P=(n.rounding||Math.round)(Math.abs(C));if(M=C>0,P<=G.r||!G.r){P<=1&&F>0&&(G=z[F-1]);var B=L[G.l];x&&(P=x(""+P)),w=typeof B=="string"?B.replace("%d",P):B(P,y,G.l,M);break}}if(y)return w;var H=M?L.future:L.past;return typeof H=="function"?H(w):H.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)}}}))})(Zd)),Zd.exports}o(DG,"requireRelativeTime");var jG=DG();const IG=vs(jG);var Jd={exports:{}},zG=Jd.exports,mA;function LG(){return mA||(mA=1,(function(t,e){(function(n,r){t.exports=r()})(zG,(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(P){return P instanceof F},"c"),C=o(function(P,B,H){return new F(P,H,B.$l)},"f"),w=o(function(P){return r.p(P)+"s"},"m"),M=o(function(P){return P<0},"l"),L=o(function(P){return M(P)?Math.ceil(P):Math.floor(P)},"$"),z=o(function(P){return Math.abs(P)},"y"),D=o(function(P,B){return P?M(P)?{negative:!0,format:""+z(P)+B}:{negative:!1,format:""+P+B}:{negative:!1,format:""}},"v"),F=(function(){function P(H,et,nt){var ot=this;if(this.$d={},this.$l=nt,H===void 0&&(this.$ms=0,this.parseFromMilliseconds()),et)return C(H*E[w(et)],this);if(typeof H=="number")return this.$ms=H,this.parseFromMilliseconds(),this;if(typeof H=="object")return Object.keys(H).forEach((function(V){ot.$d[w(V)]=H[V]})),this.calMilliseconds(),this;if(typeof H=="string"){var ft=H.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(P,"l");var B=P.prototype;return B.calMilliseconds=function(){var H=this;this.$ms=Object.keys(this.$d).reduce((function(et,nt){return et+(H.$d[nt]||0)*E[nt]}),0)},B.parseFromMilliseconds=function(){var H=this.$ms;this.$d.years=L(H/g),H%=g,this.$d.months=L(H/y),H%=y,this.$d.days=L(H/d),H%=d,this.$d.hours=L(H/f),H%=f,this.$d.minutes=L(H/c),H%=c,this.$d.seconds=L(H/a),H%=a,this.$d.milliseconds=H},B.toISOString=function(){var H=D(this.$d.years,"Y"),et=D(this.$d.months,"M"),nt=+this.$d.days||0;this.$d.weeks&&(nt+=7*this.$d.weeks);var ot=D(nt,"D"),ft=D(this.$d.hours,"H"),mt=D(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=D(V,"S"),R=H.negative||et.negative||ot.negative||ft.negative||mt.negative||J.negative,U=ft.format||mt.format||J.format?"T":"",I=(R?"-":"")+"P"+H.format+et.format+ot.format+U+ft.format+mt.format+J.format;return I==="P"||I==="-P"?"P0D":I},B.toJSON=function(){return this.toISOString()},B.format=function(H){var et=H||"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(H){return this.$ms/E[w(H)]},B.get=function(H){var et=this.$ms,nt=w(H);return nt==="milliseconds"?et%=1e3:et=nt==="weeks"?L(et/E[nt]):this.$d[nt],et||0},B.add=function(H,et,nt){var ot;return ot=et?H*E[w(et)]:x(H)?H.$ms:C(H,this).$ms,C(this.$ms+ot*(nt?-1:1),this)},B.subtract=function(H,et){return this.add(H,et,!0)},B.locale=function(H){var et=this.clone();return et.$l=H,et},B.clone=function(){return C(this.$ms,this)},B.humanize=function(H){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!H)},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")},P})(),G=o(function(P,B,H){return P.add(B.years()*H,"y").add(B.months()*H,"M").add(B.days()*H,"d").add(B.hours()*H,"h").add(B.minutes()*H,"m").add(B.seconds()*H,"s").add(B.milliseconds()*H,"ms")},"p");return function(P,B,H){n=H,r=H().$utils(),H.duration=function(ot,ft){var mt=H.locale();return C(ot,{$l:mt},ft)},H.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)}}}))})(Jd)),Jd.exports}o(LG,"requireDuration");var BG=LG();const UG=vs(BG);var Wd={exports:{}},kG=Wd.exports,hA;function HG(){return hA||(hA=1,(function(t,e){(function(n,r){t.exports=r()})(kG,(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 P=G.match(r);if(!P)return null;var B=(""+P[0]).match(a)||["-",0,0],H=B[0],et=60*+B[1]+ +B[2];return et===0?0:H==="+"?et:-et})(w),w===null))return this;var z=Math.abs(w)<=16?60*w:w;if(z===0)return this.utc(M);var D=this.clone();if(M)return D.$offset=z,D.$u=!1,D;var F=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(D=this.local().add(z+F,n)).$offset=z,D.$x.$localOffset=F,D};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(),D=d(w).local();return C.call(z,D,M,L)}}}))})(Wd)),Wd.exports}o(HG,"requireUtc");var FG=HG();const PG=vs(FG);var tm={exports:{}},qG=tm.exports,pA;function GG(){return pA||(pA=1,(function(t,e){(function(n,r){t.exports=r()})(qG,(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 D=z.timeZoneName||"short",F=L+"|"+D,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:D}),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,D=L.value,F=n[z];F>=0&&(w[F]=parseInt(D,10))}var G=w[3],P=G===24?0:G,B=w[0]+"-"+w[1]+"-"+w[2]+" "+P+":"+w[4]+":"+w[5]+":000",H=+E;return(f.utc(B).valueOf()-(H-=H%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),D=15*-Math.round(M.getTimezoneOffset()/15)-z;if(!Number(D))C=this.utcOffset(0,x);else if(C=f(L,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(D,!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(P,B,H){var et=P-60*B*1e3,nt=g(et,H);if(B===nt)return[et,B];var ot=g(et-=60*(nt-B)*1e3,H);return nt===ot?[et,nt]:[P-60*Math.min(nt,ot)*1e3,Math.max(nt,ot)]})(f.utc(E,w).valueOf(),L,M),D=z[0],F=z[1],G=f(D).utcOffset(F);return G.$x.$timezone=M,G},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(E){d=E}}}))})(tm)),tm.exports}o(GG,"requireTimezone");var YG=GG();const VG=vs(YG);var em={exports:{}},KG=em.exports,gA;function XG(){return gA||(gA=1,(function(t,e){(function(n,r){t.exports=r()})(KG,(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,D){return z||D.slice(1)}))}))})(h,g===void 0?{}:g);return d.call(this,y)}}}))})(em)),em.exports}o(XG,"requireLocalizedFormat");var QG=XG();const ZG=vs(QG);var nm={exports:{}},rm={exports:{}},JG=rm.exports,yA;function E1(){return yA||(yA=1,(function(t,e){(function(n,r){t.exports=r()})(JG,(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"],R=V%100;return"["+V+(J[(R-20)%10]||J[R]||J[0])+"]"},"ordinal")},D=o(function(V,J,R){var U=String(V);return!U||U.length>=J?V:""+Array(J+1-U.length).join(R)+V},"m"),F={s:D,z:o(function(V){var J=-V.utcOffset(),R=Math.abs(J),U=Math.floor(R/60),I=R%60;return(J<=0?"+":"-")+D(U,2,"0")+":"+D(I,2,"0")},"z"),m:o(function V(J,R){if(J.date()<R.date())return-V(R,J);var U=12*(R.year()-J.year())+(R.month()-J.month()),I=J.clone().add(U,v),tt=R-I<0,it=J.clone().add(U+(tt?-1:1),v);return+(-(U+(R-I)/(tt?I-it:it-I))||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",P={};P[G]=z;var B="$isDayjsObject",H=o(function(V){return V instanceof ft||!(!V||!V[B])},"S"),et=o(function V(J,R,U){var I;if(!J)return G;if(typeof J=="string"){var tt=J.toLowerCase();P[tt]&&(I=tt),R&&(P[tt]=R,I=tt);var it=J.split("-");if(!I&&it.length>1)return V(it[0])}else{var N=J.name;P[N]=J,I=N}return!U&&I&&(G=I),I||!U&&G},"t"),nt=o(function(V,J){if(H(V))return V.clone();var R=typeof J=="object"?J:{};return R.date=V,R.args=arguments,new ft(R)},"O"),ot=F;ot.l=et,ot.i=H,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(R){this.$L=et(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[B]=!0}o(V,"M");var J=V.prototype;return J.parse=function(R){this.$d=(function(U){var I=U.date,tt=U.utc;if(I===null)return new Date(NaN);if(ot.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var it=I.match(M);if(it){var N=it[2]-1||0,Y=(it[7]||"0").substring(0,3);return tt?new Date(Date.UTC(it[1],N,it[3]||1,it[4]||0,it[5]||0,it[6]||0,Y)):new Date(it[1],N,it[3]||1,it[4]||0,it[5]||0,it[6]||0,Y)}}return new Date(I)})(R),this.init()},J.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},J.$utils=function(){return ot},J.isValid=function(){return this.$d.toString()!==w},J.isSame=function(R,U){var I=nt(R);return this.startOf(U)<=I&&I<=this.endOf(U)},J.isAfter=function(R,U){return nt(R)<this.startOf(U)},J.isBefore=function(R,U){return this.endOf(U)<nt(R)},J.$g=function(R,U,I){return ot.u(R)?this[U]:this.set(I,R)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(R,U){var I=this,tt=!!ot.u(U)||U,it=ot.p(R),N=o(function(Kt,ye){var an=ot.w(I.$u?Date.UTC(I.$y,ye,Kt):new Date(I.$y,ye,Kt),I);return tt?an:an.endOf(g)},"l"),Y=o(function(Kt,ye){return ot.w(I.toDate()[Kt].apply(I.toDate("s"),(tt?[0,0,0,0]:[23,59,59,999]).slice(ye)),I)},"$"),lt=this.$W,dt=this.$M,ht=this.$D,yt="set"+(this.$u?"UTC":"");switch(it){case x:return tt?N(1,0):N(31,11);case v:return tt?N(1,dt):N(0,dt+1);case y:var Ct=this.$locale().weekStart||0,te=(lt<Ct?lt+7:lt)-Ct;return N(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(R){return this.startOf(R,!1)},J.$set=function(R,U){var I,tt=ot.p(R),it="set"+(this.$u?"UTC":""),N=(I={},I[g]=it+"Date",I[C]=it+"Date",I[v]=it+"Month",I[x]=it+"FullYear",I[h]=it+"Hours",I[d]=it+"Minutes",I[f]=it+"Seconds",I[c]=it+"Milliseconds",I)[tt],Y=tt===g?this.$D+(U-this.$W):U;if(tt===v||tt===x){var lt=this.clone().set(C,1);lt.$d[N](Y),lt.init(),this.$d=lt.set(C,Math.min(this.$D,lt.daysInMonth())).$d}else N&&this.$d[N](Y);return this.init(),this},J.set=function(R,U){return this.clone().$set(R,U)},J.get=function(R){return this[ot.p(R)]()},J.add=function(R,U){var I,tt=this;R=Number(R);var it=ot.p(U),N=o(function(dt){var ht=nt(tt);return ot.w(ht.date(ht.date()+Math.round(dt*R)),tt)},"y");if(it===v)return this.set(v,this.$M+R);if(it===x)return this.set(x,this.$y+R);if(it===g)return N(1);if(it===y)return N(7);var Y=(I={},I[d]=r,I[h]=a,I[f]=n,I)[it]||1,lt=this.$d.getTime()+R*Y;return ot.w(lt,this)},J.subtract=function(R,U){return this.add(-1*R,U)},J.format=function(R){var U=this,I=this.$locale();if(!this.isValid())return I.invalidDate||w;var tt=R||"YYYY-MM-DDTHH:mm:ssZ",it=ot.z(this),N=this.$H,Y=this.$m,lt=this.$M,dt=I.weekdays,ht=I.months,yt=I.meridiem,Ct=o(function(ye,an,Yn,Zr){return ye&&(ye[an]||ye(U,tt))||Yn[an].slice(0,Zr)},"h"),te=o(function(ye){return ot.s(N%12||12,ye,"0")},"d"),Kt=yt||function(ye,an,Yn){var Zr=ye<12?"AM":"PM";return Yn?Zr.toLowerCase():Zr};return tt.replace(L,(function(ye,an){return an||(function(Yn){switch(Yn){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(I.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(I.weekdaysMin,U.$W,dt,2);case"ddd":return Ct(I.weekdaysShort,U.$W,dt,3);case"dddd":return dt[U.$W];case"H":return String(N);case"HH":return ot.s(N,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return Kt(N,Y,!0);case"A":return Kt(N,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(R,U,I){var tt,it=this,N=ot.p(U),Y=nt(R),lt=(Y.utcOffset()-this.utcOffset())*r,dt=this-Y,ht=o(function(){return ot.m(it,Y)},"D");switch(N){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 I?tt:ot.a(tt)},J.daysInMonth=function(){return this.endOf(v).$D},J.$locale=function(){return P[this.$L]},J.locale=function(R,U){if(!R)return this.$L;var I=this.clone(),tt=et(R,U,!0);return tt&&(I.$L=tt),I},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=H,nt.unix=function(V){return nt(1e3*V)},nt.en=P[G],nt.Ls=P,nt.p={},nt}))})(rm)),rm.exports}o(E1,"requireDayjs_min");var WG=nm.exports,bA;function tY(){return bA||(bA=1,(function(t,e){(function(n,r){t.exports=r(E1())})(WG,(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}))})(nm)),nm.exports}o(tY,"requireAr");tY();var im={exports:{}},eY=im.exports,vA;function nY(){return vA||(vA=1,(function(t,e){(function(n,r){t.exports=r(E1())})(eY,(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}))})(im)),im.exports}o(nY,"requireFr");nY();var rY=E1();const iY=vs(rY),no=iY,wu=class wu{alepha=Ot(Ke);ref=null;timeouts=[];intervals=[];constructor(){for(const e of wu.PLUGINS)no.extend(e)}onStart=ir({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=ir({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(wu,"DateTimeProvider"),sn(wu,"PLUGINS",[UG,IG,PG,VG,ZG]);let li=wu;const JO=o(t=>us(Rm,t),"$interval"),KS=class KS extends ii{dateTimeProvider=Ot(li);called=0;onInit(){this.dateTimeProvider.createInterval(async()=>{await this.options.handler(),this.called+=1},this.options.duration)}};o(KS,"IntervalPrimitive");let Rm=KS;JO[kn]=Rm;const WO=Pn({name:"alepha.datetime",primitives:[JO],services:[li]}),Qh=o(()=>{const t=A.useContext(ZO);if(!t)throw new Ut("Hook 'useAlepha()' must be used within an AlephaContext.Provider");return t},"useAlepha"),w1=o(t=>{const e=Qh();return A.useMemo(()=>e.inject(t),[])},"useInject"),oY=_.object({path:_.text({description:"Pathname used to access the action."}),method:_.optional(_.text({description:"HTTP method. Omitted when GET (the default for ~75% of actions)."})),contentType:_.optional(_.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."})),kind:_.optional(_.text({description:"Action kind. Used to distinguish special action types (e.g. 'sse' for Server-Sent Events streams)."})),service:_.optional(_.text({description:"Service name associated with the action, used for service discovery and routing."}))}),tR=_.object({prefix:_.optional(_.text()),actions:_.record(_.text(),oY),permissions:_.optional(_.array(_.text()))}),sY=pi({name:"alepha.server.request.apiLinks",schema:_.optional(tR)}),eR=pi({name:"alepha.server.links.options",description:"Configuration options for the links module.",schema:_.object({batch:_.boolean({description:"Enable batch collection for browser-side calls.",default:!0})}),default:{batch:!0}}),XS=class XS{};o(XS,"LogDestinationProvider");let Ml=XS;const QS=class QS{};o(QS,"LogFormatterProvider");let na=QS;const ZS=class ZS{alepha=Ot(Ke);formatter=Ot(na);destination=Ot(Ml);dateTimeProvider=Ot(li);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 Ut(`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 Ut(`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(ZS,"Logger");let Ol=ZS;const Gr=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");Gr[kn]=Ol;const gl=class gl{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=gl.COLORS.RESET){return this.enabled?`${gl.COLORS[e]}${n}${r}`:n}};o(gl,"ConsoleColorProvider"),sn(gl,"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=gl;const JS=class JS extends Ml{write(e){console.log(e)}};o(JS,"ConsoleDestinationProvider");let _m=JS;const WS=class WS extends na{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(WS,"JsonFormatterProvider");let vu=WS;const tx=class tx 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(tx,"MemoryDestinationProvider");let Su=tx;const ex=class ex extends na{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="",y=n;if("error"in n&&n.error instanceof Error){g=this.formatError(n.error);const{error:v,...E}=n;y=E}if(Object.keys(y).length>0)try{c=JSON.stringify(y)}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(ex,"PrettyFormatterProvider");let xu=ex;const nx=class nx extends na{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(nx,"RawFormatterProvider");let Dm=nx;_.object({level:_.enum(["SILENT","TRACE","DEBUG","INFO","WARN","ERROR"]),message:_.text({size:"rich"}),service:_.text(),module:_.text(),context:_.optional(_.text()),app:_.optional(_.text()),data:_.optional(_.any()),timestamp:_.number()});Pn({name:"alepha.logger",primitives:[Gr],services:[Ol,_m,Su,vu,xu,Dm,Nm],register:o(t=>{const e=t.parseEnv(aY);let n=e.LOG_LEVEL,r=e.LOG_FORMAT;if(e.DEBUG){const f=e.DEBUG.split(",").map(d=>d.trim().replaceAll(":",".")).filter(Boolean);n??=`${f.map(d=>`${d}:debug`).join(",")},info`,r??="pretty"}const a=o(()=>{if(t.isTest()&&!n){const f=o(d=>{if(d.task?.result?.state==="fail"){const h=t.inject(Su);for(const g of h.logs)console.log(g.formatted)}},"printOnError");try{t.store.get("alepha.test.afterEach")?.(f),t.store.get("alepha.test.onTestFinished")?.(f)}catch{}return Su}return _m},"getLogDestinationProvider"),c=o(()=>r?r==="json"?vu:r==="raw"?Dm:xu:t.isProduction()&&!t.isBrowser()?vu:xu,"getLogFormatterProvider");t.with({optional:!0,provide:Ml,use:a()}),t.with({optional:!0,provide:na,use:c()}),t.store.set("alepha.logger",t.inject(Ol,{lifetime:"transient",args:["Alepha","alepha.core"]})),t.store.set("alepha.logger.level",n??(t.isTest()?"trace":"info"))},"register")});const aY=_.object({DEBUG:_.optional(_.text({description:"Enable debug logging for specific modules using the debug package convention. Example: DEBUG=alepha:*"})),LOG_LEVEL:_.optional(_.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:_.optional(_.enum(["json","pretty","raw"],{description:"Default log format for the application.",lowercase:!0}))}),rx=class rx extends Ut{};o(rx,"CacheError");let J0=rx;const ix=class ix{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(ix,"CacheProvider");let Rl=ix;const ox=class ox extends Rl{dateTimeProvider=Ot(li);log=Gr();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(ox,"MemoryCacheProvider");let Nu=ox;function Zh(t={}){const e=us(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 lY=pi({name:"alepha.cache.options",schema:_.object({enabled:_.boolean({default:!0,description:"Whether caching is enabled."}),defaultTtl:_.number({default:300,description:"Default time to live for cache entries in seconds."})}),default:{enabled:!0,defaultTtl:300}}),sx=class sx extends ii{settings=Xh(lY);dateTimeProvider=Ot(li);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(Nu):this.alepha.inject(this.options.provider):this.alepha.inject(Rl)}};o(sx,"CachePrimitive");let jm=sx;Zh[kn]=jm;Pn({name:"alepha.cache",primitives:[Zh],services:[Rl,Nu],register:o(t=>t.with({optional:!0,provide:Rl,use:Nu}),"register")});const cY=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 Ut{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??uY[this.status]??"HttpError":this.error=this.constructor.name}};o(rh,"HttpError"),sn(rh,"is",cY);let ra=rh;const uY={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"},fY=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"),dY=_.object({error:_.text({description:"HTTP error name"}),status:_.integer({description:"HTTP status code"}),message:_.text({description:"Short text which describe the error",size:"rich"}),details:_.optional(_.text({description:"Detailed description of the error",size:"rich"})),requestId:_.optional(_.text()),cause:_.optional(_.object({name:_.text(),message:_.text({description:"Cause Error message",size:"rich"})}))},{title:"HttpError",description:"Generic response after a failed operation"}),ax=class ax{log=Gr();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"||fY(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}EG(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(dY,r),c=new ra(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 ra({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(ax,"HttpClient");let _u=ax;const lx=class lx extends ra{constructor(e="No permission to access this resource",n){super({message:e,status:403},n)}};o(lx,"ForbiddenError");let W0=lx;const cx=class cx extends ra{name="UnauthorizedError";constructor(e="Not allowed to access this resource",n){super({message:e,status:401},n)}};o(cx,"UnauthorizedError");let tb=cx;const ux=class ux{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(ux,"ServerReply");let eb=ux;_.object({ok:_.boolean({description:"True when operation succeed"}),id:_.optional(_.union([_.text(),_.integer()])),count:_.optional(_.number({description:"Number of resources affected"}))},{title:"Ok",description:"Generic response after a successful operation on a resource"});const nR=Pn({name:"alepha.server",primitives:[],services:[_u]}),Tu=class Tu{log=Gr();httpClient=Ot(_u);pending=[];scheduled=!1;add(e){return new Promise((n,r)=>{this.pending.push({entry:e,resolve:n,reject:r}),this.scheduled||(this.scheduled=!0,setTimeout(()=>{this.scheduled=!1,this.flush().catch(a=>this.log.error(a))},10))})}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,Tu.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 ra({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(Tu,"BatchCollector"),sn(Tu,"MAX_BATCH_SIZE",20);let Im=Tu;const Au=class Au{log=Gr();alepha=Ot(Ke);httpClient=Ot(_u);serverLinkMap=new Map;actionMap=new Map;permissions=new Set;lastLoadedRegistry=null;batchCollector;options=Xh(eR);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 Ut("Can't create link - 'handler' or 'host' is required");if(this.serverLinkMap.get(e.name)?.handler&&e.handler)throw new Ut(`Duplicate action name "${e.name}". Each action must have a unique name.`);this.serverLinkMap.set(e.name,e)}loadRegistry(e){this.lastLoadedRegistry=e,this.permissions.clear(),this.actionMap.clear();for(const[n,r]of Object.entries(e.actions))this.actionMap.set(n,{name:n,path:r.path,kind:r.kind,method:r.method,contentType:r.contentType,service:r.service});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(`${Au.path.apiLinks}`,{method:"GET",schema:{response:tR}});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}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:_.any(),response:_.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(Au,"LinkProvider"),sn(Au,"path",{apiLinks:"/api/_links"});let Du=Au;const rR=o(t=>Ot(Du).client(t),"$client");rR[kn]="$client";const iR=o(t=>us(zm,t),"$remote"),fx=class fx extends ii{get name(){return this.options.name??this.config.propertyKey}};o(fx,"RemotePrimitive");let zm=fx;iR[kn]=zm;const mY=Pn({name:"alepha.server.links",atoms:[sY,eR],primitives:[iR,rR],services:[Du,Im]}),oR=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 Lm(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 ns?t.key:t;return n.events.on("state:mutate",f=>{f.key===c&&a(f.value)})},[]),[r,c=>{n.store.set(t,c)}]}o(Lm,"useStore$1");const sR=Pn({name:"alepha.react.core"}),dx=class dx extends $l{name="ValidationError";constructor(e){super({message:e.message,instancePath:e.path,schemaPath:"",keyword:"not",params:{}})}};o(dx,"FormValidationError");let nb=dx;const hY=Pn({name:"alepha.react.form"}),mx=class mx{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(mx,"SeoExpander");let rb=mx;const hx=class hx{log=Gr();seoExpander=Ot(rb);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(hx,"HeadProvider");let Bm=hx;const T1=o(t=>us(Um,t),"$head"),px=class px extends ii{provider=Ot(Bm);onInit(){this.provider.global=[...this.provider.global??[],this.options]}};o(px,"HeadPrimitive");let Um=px;T1[kn]=Um;const gx=class gx{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(gx,"BrowserHeadProvider");let ia=gx;const aR=Pn({name:"alepha.react.head",primitives:[T1],services:[sR,ia]}),yx=class yx{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(yx,"CookieParser");let ib=yx;const km=o((t,e)=>(e&&(t={key:t.key,schema:t.schema,...e}),us(Hm,t)),"$cookie"),bx=class bx extends ii{cookieParser=Ot(ib);alepha=Ot(Ke);dateTimeProvider=Ot(li);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 Ut("Compression is not supported in browser cookies.");if(r.encrypt)throw new Ut("Encryption is not supported in browser cookies.");if(r.sign)throw new Ut("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 Ut("Compression is not supported in browser cookies.");if(this.options.encrypt)throw new Ut("Encryption is not supported in browser cookies.");if(this.options.sign)throw new Ut("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(bx,"BrowserCookiePrimitive");let Hm=bx;km[kn]=Hm;Pn({name:"alepha.server.cookies",primitives:[],services:[nR]});const vx=class vx{log=Gr();alepha=Ot(Ke);dateTimeProvider=Ot(li);cookie=km({name:"lang",schema:_.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=ir({on:"server:onRequest",priority:"last",handler:o(async({request:e})=>{this.alepha.store.set("alepha.react.i18n.lang",this.cookie.get(e))},"handler")});onStart=ir({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=ir({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(vx,"I18nProvider");let Fm=vx;const lR=o(t=>us(Pm,t),"$dictionary"),Sx=class Sx extends ii{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(Sx,"DictionaryPrimitive");let Pm=Sx;lR[kn]=Pm;const pY=Pn({name:"alepha.react.i18n",primitives:[lR],services:[Fm]}),utt=pi({name:"alepha.ui.sidebar",schema:_.object({closed:_.boolean(),collapsed:_.boolean(),expandedWidth:_.number(),collapsedWidth:_.number()}),default:{closed:!0,collapsed:!1,expandedWidth:300,collapsedWidth:72}}),hu=pi({name:"alepha.ui.theme",schema:_.object({index:_.integer()}),default:{index:0}}),pu=pi({name:"alepha.ui.themeOverrides",schema:_.object({primaryColor:_.optional(_.text()),radius:_.optional(_.text()),fontFamily:_.optional(_.text()),fontSize:_.optional(_.text()),scale:_.optional(_.text())}),default:{}}),cR={name:"Default",description:"Default Alepha Theme"};var Ti=o(function(){return Ti=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"),Ti.apply(this,arguments)},"__assign");function uR(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(uR,"__rest");function gY(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(gY,"__spreadArray");var om="right-scroll-bar-position",sm="width-before-scroll-bar",yY="with-scroll-bars-hidden",bY="--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 vY(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(vY,"useCallbackRef$1");var SY=typeof window<"u"?A.useLayoutEffect:A.useEffect,SA=new WeakMap;function xY(t,e){var n=vY(null,function(r){return t.forEach(function(a){return Wy(a,r)})});return SY(function(){var r=SA.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)})}SA.set(n,t)},[t]),n}o(xY,"useMergeRefs$1");function EY(t){return t}o(EY,"ItoI");function wY(t,e){e===void 0&&(e=EY);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(wY,"innerCreateMedium");function TY(t){t===void 0&&(t={});var e=wY(null);return e.options=Ti({async:!0,ssr:!1},t),e}o(TY,"createSidecarMedium");var fR=o(function(t){var e=t.sideCar,n=uR(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,Ti({},n))},"SideCar$1");fR.isSideCarExport=!0;function AY(t,e){return t.useMedium(e),fR}o(AY,"exportSidecar");var dR=TY(),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,D=t.gapMode,F=uR(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=E,P=xY([n,e]),B=Ti(Ti({},F),a);return A.createElement(A.Fragment,null,y&&A.createElement(G,{sideCar:dR,removeScrollBar:g,shards:v,noRelative:x,noIsolation:C,inert:w,setCallbacks:c,allowPinchZoom:!!M,lockRef:n,gapMode:D}),f?A.cloneElement(A.Children.only(d),Ti(Ti({},B),{ref:P})):A.createElement(z,Ti({},B,{className:h,ref:P}),d))});Jh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jh.classNames={fullWidth:sm,zeroRight:om};var CY=o(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function $Y(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=CY();return e&&t.setAttribute("nonce",e),t}o($Y,"makeStyleTag");function MY(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}o(MY,"injectStyles");function OY(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}o(OY,"insertStyleTag");var RY=o(function(){var t=0,e=null;return{add:o(function(n){t==0&&(e=$Y())&&(MY(e,n),OY(e)),t++},"add"),remove:o(function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)},"remove")}},"stylesheetSingleton"),NY=o(function(){var t=RY();return function(e,n){A.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},"styleHookSingleton"),mR=o(function(){var t=NY(),e=o(function(n){var r=n.styles,a=n.dynamic;return t(r,a),null},"Sheet");return e},"styleSingleton"),_Y={left:0,top:0,right:0,gap:0},e0=o(function(t){return parseInt(t||"",10)||0},"parse"),DY=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"),jY=o(function(t){if(t===void 0&&(t="margin"),typeof window>"u")return _Y;var e=DY(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"),IY=mR(),Sl="data-scroll-locked",zY=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(yY,` {
|
|
20
|
+
overflow: hidden `).concat(r,`;
|
|
21
|
+
padding-right: `).concat(d,"px ").concat(r,`;
|
|
22
|
+
}
|
|
23
|
+
body[`).concat(Sl,`] {
|
|
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(om,` {
|
|
37
|
+
right: `).concat(d,"px ").concat(r,`;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.`).concat(sm,` {
|
|
41
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.`).concat(om," .").concat(om,` {
|
|
45
|
+
right: 0 `).concat(r,`;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.`).concat(sm," .").concat(sm,` {
|
|
49
|
+
margin-right: 0 `).concat(r,`;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
body[`).concat(Sl,`] {
|
|
53
|
+
`).concat(bY,": ").concat(d,`px;
|
|
54
|
+
}
|
|
55
|
+
`)},"getStyles"),xA=o(function(){var t=parseInt(document.body.getAttribute(Sl)||"0",10);return isFinite(t)?t:0},"getCurrentUseCounter"),LY=o(function(){A.useEffect(function(){return document.body.setAttribute(Sl,(xA()+1).toString()),function(){var t=xA()-1;t<=0?document.body.removeAttribute(Sl):document.body.setAttribute(Sl,t.toString())}},[])},"useLockAttribute"),BY=o(function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,a=r===void 0?"margin":r;LY();var c=A.useMemo(function(){return jY(a)},[a]);return A.createElement(IY,{styles:zY(c,!e,a,n?"":"!important")})},"RemoveScrollBar"),ob=!1;if(typeof window<"u")try{var Hd=Object.defineProperty({},"passive",{get:o(function(){return ob=!0,!0},"get")});window.addEventListener("test",Hd,Hd),window.removeEventListener("test",Hd,Hd)}catch{ob=!1}var sl=ob?{passive:!1}:!1,UY=o(function(t){return t.tagName==="TEXTAREA"},"alwaysContainsScroll"),hR=o(function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!UY(t)&&n[e]==="visible")},"elementCanBeScrolled"),kY=o(function(t){return hR(t,"overflowY")},"elementCouldBeVScrolled"),HY=o(function(t){return hR(t,"overflowX")},"elementCouldBeHScrolled"),EA=o(function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=pR(t,r);if(a){var c=gR(t,r),f=c[1],d=c[2];if(f>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},"locationCouldBeScrolled"),FY=o(function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},"getVScrollVariables"),PY=o(function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},"getHScrollVariables"),pR=o(function(t,e){return t==="v"?kY(e):HY(e)},"elementCouldBeScrolled"),gR=o(function(t,e){return t==="v"?FY(e):PY(e)},"getScrollVariables"),qY=o(function(t,e){return t==="h"&&e==="rtl"?-1:1},"getDirectionFactor"),GY=o(function(t,e,n,r,a){var c=qY(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=gR(t,d),C=x[0],w=x[1],M=x[2],L=w-M-c*C;(C||L)&&pR(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"),Fd=o(function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},"getTouchXY"),wA=o(function(t){return[t.deltaX,t.deltaY]},"getDeltaXY"),TA=o(function(t){return t&&"current"in t?t.current:t},"extractRef"),YY=o(function(t,e){return t[0]===e[0]&&t[1]===e[1]},"deltaCompare"),VY=o(function(t){return`
|
|
56
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
57
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
58
|
+
`)},"generateStyle"),KY=0,al=[];function XY(t){var e=A.useRef([]),n=A.useRef([0,0]),r=A.useRef(),a=A.useState(KY++)[0],c=A.useState(mR)[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=gY([t.lockRef.current],(t.shards||[]).map(TA),!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=Fd(w),z=n.current,D="deltaX"in w?w.deltaX:z[0]-L[0],F="deltaY"in w?w.deltaY:z[1]-L[1],G,P=w.target,B=Math.abs(D)>Math.abs(F)?"h":"v";if("touches"in w&&B==="h"&&P.type==="range")return!1;var H=window.getSelection(),et=H&&H.anchorNode,nt=et?et===P||et.contains(P):!1;if(nt)return!1;var ot=EA(B,P);if(!ot)return!0;if(ot?G=B:(G=B==="v"?"h":"v",ot=EA(B,P)),!ot)return!1;if(!r.current&&"changedTouches"in w&&(D||F)&&(r.current=G),!G)return!0;var ft=r.current||G;return GY(ft,M,w,ft==="h"?D:F)},[]),h=A.useCallback(function(w){var M=w;if(!(!al.length||al[al.length-1]!==c)){var L="deltaY"in M?wA(M):Fd(M),z=e.current.filter(function(G){return G.name===M.type&&(G.target===M.target||M.target===G.shadowParent)&&YY(G.delta,L)})[0];if(z&&z.should){M.cancelable&&M.preventDefault();return}if(!z){var D=(f.current.shards||[]).map(TA).filter(Boolean).filter(function(G){return G.contains(M.target)}),F=D.length>0?d(M,D[0]):!f.current.noIsolation;F&&M.cancelable&&M.preventDefault()}}},[]),g=A.useCallback(function(w,M,L,z){var D={name:w,delta:M,target:L,should:z,shadowParent:QY(L)};e.current.push(D),setTimeout(function(){e.current=e.current.filter(function(F){return F!==D})},1)},[]),y=A.useCallback(function(w){n.current=Fd(w),r.current=void 0},[]),v=A.useCallback(function(w){g(w.type,wA(w),w.target,d(w,t.lockRef.current))},[]),E=A.useCallback(function(w){g(w.type,Fd(w),w.target,d(w,t.lockRef.current))},[]);A.useEffect(function(){return al.push(c),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:E}),document.addEventListener("wheel",h,sl),document.addEventListener("touchmove",h,sl),document.addEventListener("touchstart",y,sl),function(){al=al.filter(function(w){return w!==c}),document.removeEventListener("wheel",h,sl),document.removeEventListener("touchmove",h,sl),document.removeEventListener("touchstart",y,sl)}},[]);var x=t.removeScrollBar,C=t.inert;return A.createElement(A.Fragment,null,C?A.createElement(c,{styles:VY(a)}):null,x?A.createElement(BY,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}o(XY,"RemoveScrollSideCar");function QY(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}o(QY,"getOutermostShadowParent");const ZY=AY(dR,XY);var qm=A.forwardRef(function(t,e){return A.createElement(Jh,Ti({},t,{ref:e,sideCar:ZY}))});qm.classNames=Jh.classNames;function $i(t){return Object.keys(t)}o($i,"keys");function n0(t){return t&&typeof t=="object"&&!Array.isArray(t)}o(n0,"isObject");function A1(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]=A1(n[a],r[a]):n[a]=r[a]}),n}o(A1,"deepMerge");function JY(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}o(JY,"camelToKebabCase");function WY(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}o(WY,"getTransformedScaledValue");function tV(t){const e=WY(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(tV,"px");function AA(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}o(AA,"scaleRem");function yR(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?AA(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?AA(c):c}}return r}return o(n,"converter"),n}o(yR,"createConverter");const ut=yR("rem",{shouldScale:!0}),CA=yR("em");function Wh(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}o(Wh,"filterProps");function bR(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(bR,"isNumberLike");function eV(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==A.Fragment:!1}o(eV,"isElement$1");function ga(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(ga,"createSafeContext");function C1(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(C1,"createOptionalContext");const nV={app:100,modal:200,popover:300,overlay:400,max:9999};function gi(t){return nV[t]}o(gi,"getDefaultZIndex");function ze(t,e="size",n=!0){if(t!==void 0)return bR(t)?n?ut(t):t:`var(--${e}-${t})`}o(ze,"getSize");function tp(t){return ze(t,"mantine-spacing")}o(tp,"getSpacing");function Yr(t){return t===void 0?"var(--mantine-radius-default)":ze(t,"mantine-radius")}o(Yr,"getRadius");function or(t){return ze(t,"mantine-font-size")}o(or,"getFontSize");function rV(t){return ze(t,"mantine-line-height",!1)}o(rV,"getLineHeight");function vR(t){if(t)return ze(t,"mantine-shadow",!1)}o(vR,"getShadow");function SR(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(SR,"clamp$2");function is(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}o(is,"randomId");function Gs(t){const e=A.useRef(t);return A.useEffect(()=>{e.current=t}),A.useMemo(()=>((...n)=>e.current?.(...n)),[])}o(Gs,"useCallbackRef");function ep(t,e){const{delay:n,flushOnUnmount:r,leading:a}=typeof e=="number"?{delay:e,flushOnUnmount:!1,leading:!1}:e,c=Gs(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 iV(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}o(iV,"attachMediaListener");function oV(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}o(oV,"getInitialValue");function sV(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,a]=A.useState(n?e:oV(t));return A.useEffect(()=>{try{const c=window.matchMedia(t);return a(c.matches),iV(c,f=>a(f.matches))}catch{return}},[t]),r||!1}o(sV,"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 aV({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(aV,"useFocusReturn");const lV=/input|select|textarea|button|object/,xR="a, input, select, textarea, button, object, [tabindex]";function cV(t){return t.style.display==="none"}o(cV,"hidden");function uV(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(cV(n))return!1;n=n.parentNode}return!0}o(uV,"visible");function ER(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}o(ER,"getElementTabIndex");function sb(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(ER(t));return(lV.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&uV(t)}o(sb,"focusable");function wR(t){const e=ER(t);return(Number.isNaN(e)||e>=0)&&sb(t)}o(wR,"tabbable");function fV(t){return Array.from(t.querySelectorAll(xR)).filter(wR)}o(fV,"findTabbableDescendants");function dV(t,e){const n=fV(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(dV,"scopeTab");function mV(t=!0){const e=A.useRef(null),n=o(a=>{let c=a.querySelector("[data-autofocus]");if(!c){const f=Array.from(a.querySelectorAll(xR));c=f.find(wR)||f.find(sb)||null,!c&&sb(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&&dV(e.current,c)},"handleKeyDown");return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[t]),r}o(mV,"useFocusTrap");const hV=o(t=>(t+1)%1e6,"reducer");function pV(){const[,t]=A.useReducer(hV,0);return t}o(pV,"useForceUpdate");const gV=jr.useId||(()=>{});function yV(){const t=gV();return t?`mantine-${t.replace(/:/g,"")}`:""}o(yV,"useReactId$1");function TR(t){const e=yV(),[n,r]=A.useState(e);return Jl(()=>{r(is())},[]),typeof t=="string"?t:typeof window>"u"?e:n}o(TR,"useId$1");function bV(t,e,n){A.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}o(bV,"useWindowEvent");function ab(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}o(ab,"assignRef");function vV(...t){const e=new Map;return n=>{if(t.forEach(r=>{const a=ab(r,n);a&&e.set(r,a)}),e.size>0)return()=>{t.forEach(r=>{const a=e.get(r);a&&typeof a=="function"?a():ab(r,null)}),e.clear()}}}o(vV,"mergeRefs");function ya(...t){return A.useCallback(vV(...t),t)}o(ya,"useMergedRef");function SV({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(SV,"useUncontrolled");function $1(t,e){return sV("(prefers-reduced-motion: reduce)",t,e)}o($1,"useReducedMotion");const xV={" ":"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 xV[t]||e}o(Pd,"normalizeKey");function EV(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(EV,"parseHotkey");function wV(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(wV,"isExactHotkey");function TV(t,e){return n=>wV(EV(t),n,e)}o(TV,"getHotkeyMatcher");function AV(t,e,n=!1){return t.target instanceof HTMLElement?(n||!t.target.isContentEditable)&&!e.includes(t.target.tagName):!0}o(AV,"shouldFireEvent");function CV(t,e=["INPUT","TEXTAREA","SELECT"],n=!1){A.useEffect(()=>{const r=o(a=>{t.forEach(([c,f,d={preventDefault:!0,usePhysicalKeys:!1}])=>{TV(c,d.usePhysicalKeys)(a)&&AV(a,e,n)&&(d.preventDefault&&a.preventDefault(),f(a))})},"keydownListener");return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[t])}o(CV,"useHotkeys");function $V(t,e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}o($V,"dispatchEvent");function MV(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)=>$V(`${t}:${String(r)}`,a[0])}return o(n,"createEvent"),[e,n]}o(MV,"createUseExternalEvents");var OV={};function ftt(){return typeof process<"u"&&OV?"production":"development"}o(ftt,"getEnv");function RV(t){const e=A.Children.toArray(t);return e.length!==1||!eV(e[0])?null:e[0]}o(RV,"getSingleElementChild");function dtt(t){return t}o(dtt,"createVarsResolver");function AR(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=AR(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}o(AR,"r");function dr(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=AR(t))&&(r&&(r+=" "),r+=e);return r}o(dr,"clsx");const NV={};function _V(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,a])=>{e[r]?e[r]=dr(e[r],a):e[r]=a})}),e}o(_V,"mergeClassNames");function gf({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||NV);return _V(c)}o(gf,"resolveClassNames");function ju({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(ju,"resolveStyles");const CR=A.createContext(null);function Ss(){const t=A.useContext(CR);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}o(Ss,"useMantineContext");function DV(){return Ss().cssVariablesResolver}o(DV,"useMantineCssVariablesResolver");function jV(){return Ss().classNamesPrefix}o(jV,"useMantineClassNamesPrefix");function M1(){return Ss().getStyleNonce}o(M1,"useMantineStyleNonce");function IV(){return Ss().withStaticClasses}o(IV,"useMantineWithStaticClasses");function zV(){return Ss().headless}o(zV,"useMantineIsHeadless");function LV(){return Ss().stylesTransform?.sx}o(LV,"useMantineSxTransform");function BV(){return Ss().stylesTransform?.styles}o(BV,"useMantineStylesTransform");function $R(){return Ss().env||"default"}o($R,"useMantineEnv");function UV(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}o(UV,"isHexColor");function kV(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(kV,"hexToRgba");function HV(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(HV,"rgbStringToRgba");function FV(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(FV,"hslStringToRgba");function O1(t){return UV(t)?kV(t):t.startsWith("rgb")?HV(t):t.startsWith("hsl")?FV(t):{r:0,g:0,b:0,a:1}}o(O1,"toRgba");function qd(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:a,a:c}=O1(t),f=1-e,d=o(h=>Math.round(h*f),"dark");return`rgba(${d(n)}, ${d(r)}, ${d(a)}, ${c})`}o(qd,"darken");function Iu(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}o(Iu,"getPrimaryShade");function r0(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}o(r0,"gammaCorrect");function PV(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}o(PV,"getLightnessFromOklch");function qV(t){if(t.startsWith("oklch("))return(PV(t)||0)/100;const{r:e,g:n,b:r}=O1(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][Iu(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 oa(t,e){const n=Wl({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}o(oa,"getThemeColor");function lb(t,e){const n={from:t?.from||e.defaultGradient.from,to:t?.to||e.defaultGradient.to,deg:t?.deg??e.defaultGradient.deg??0},r=oa(n.from,e),a=oa(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${a} 100%)`}o(lb,"getGradient");function Ei(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}=O1(t);return`rgba(${n}, ${r}, ${a}, ${e})`}o(Ei,"rgba");const ll=Ei,GV=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:qd(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:Ei(d,.1),hover:Ei(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:Ei(t,.1),hover:Ei(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:Ei(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:Ei(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:Ei(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:"transparent",hover:Ei(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:qd(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:qd(e.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:qd(e.white,.01),color:t,border:`${ut(1)} solid transparent`}:n==="gradient"?{background:lb(r,e),hover:lb(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"),YV={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"]},$A="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",R1={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:YV,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:GV,autoContrast:!1,luminanceThreshold:.3,fontFamily:$A,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:$A,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 MA(t){return t==="auto"||t==="dark"||t==="light"}o(MA,"isMantineColorScheme");function VV({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 MA(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&&MA(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(VV,"localStorageColorSchemeManager");const KV="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",OA="[@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 RA(t){if(!(t.primaryColor in t.colors))throw new Error(KV);if(typeof t.primaryShade=="object"&&(!i0(t.primaryShade.dark)||!i0(t.primaryShade.light)))throw new Error(OA);if(typeof t.primaryShade=="number"&&!i0(t.primaryShade))throw new Error(OA)}o(RA,"validateMantineTheme");function XV(t,e){if(!e)return RA(t),t;const n=A1(t,e);return e.fontFamily&&!e.headings?.fontFamily&&(n.headings.fontFamily=e.fontFamily),RA(n),n}o(XV,"mergeMantineTheme");const N1=A.createContext(null),QV=o(()=>A.useContext(N1)||R1,"useSafeMantineTheme");function Vr(){const t=A.useContext(N1);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(Vr,"useMantineTheme");function MR({theme:t,children:e,inherit:n=!0}){const r=QV(),a=A.useMemo(()=>XV(n?r:R1,t),[t,r,n]);return $.jsx(N1.Provider,{value:a,children:e})}o(MR,"MantineThemeProvider");MR.displayName="@mantine/core/MantineThemeProvider";function ZV(){const t=Vr(),e=M1(),n=$i(t.breakpoints).reduce((r,a)=>{const c=t.breakpoints[a].includes("px"),f=tV(t.breakpoints[a]),d=c?`${f-.1}px`:CA(f-.1),h=c?`${f}px`:CA(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(ZV,"MantineClasses");function o0(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}o(o0,"cssVariablesObjectToString");function OR(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(OR,"convertCssVariables");function RR({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(RR,"getContrastColor");function NA(t,e){return RR({color:t.colors[t.primaryColor][Iu(t,e)],theme:t,autoContrast:null})}o(NA,"getPrimaryContrastColor");function Gd({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:a=!0}){if(!t.colors[e])return{};if(n==="light"){const d=Iu(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`]:ll(t.colors[e][d],.1),[`--mantine-color-${r}-light-hover`]:ll(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`]:ll(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=Iu(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`]:ll(t.colors[e][Math.max(0,c-2)],.15),[`--mantine-color-${r}-light-hover`]:ll(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`]:ll(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(Gd,"getCSSColorVariables");function JV(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}o(JV,"isVirtualColor");function cl(t,e,n){$i(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}o(cl,"assignSizeVariables");const NR=o(t=>{const e=Iu(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":NA(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":NA(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)"}};cl(r.variables,t.breakpoints,"breakpoint"),cl(r.variables,t.spacing,"spacing"),cl(r.variables,t.fontSizes,"font-size"),cl(r.variables,t.lineHeights,"line-height"),cl(r.variables,t.shadows,"shadow"),cl(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${t.primaryColor}-${f})`}),$i(t.colors).forEach(c=>{const f=t.colors[c];if(JV(f)){Object.assign(r.light,Gd({theme:t,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Gd({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,Gd({theme:t,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Gd({theme:t,color:c,colorScheme:"dark",withColorValues:!1}))});const a=t.headings.sizes;return $i(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 WV({theme:t,generator:e}){const n=NR(t),r=e?.(t);return r?A1(n,r):n}o(WV,"getMergedVariables");const s0=NR(R1);function tK(t){const e={variables:{},light:{},dark:{}};return $i(t.variables).forEach(n=>{s0.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),$i(t.light).forEach(n=>{s0.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),$i(t.dark).forEach(n=>{s0.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}o(tK,"removeDefaultVariables");function eK(t){return OR({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}o(eK,"getColorSchemeCssVariables");function _R({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Vr(),r=M1(),a=DV(),c=WV({theme:n,generator:a}),f=(t===void 0||t===":root"||t===":host")&&e,d=f?tK(c):c,h=OR(d,t);return h?$.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${h}${f?"":eK(t)}`}}):null}o(_R,"MantineCssVariables");_R.displayName="@mantine/CssVariables";function ul(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(ul,"setColorSchemeAttribute");function nK({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||(ul(y,n),f(y),t.set(y))},[t.set,d,r]),g=A.useCallback(()=>{f(e),ul(e,n),t.clear()},[t.clear,e]);return A.useEffect(()=>(t.subscribe(h),t.unsubscribe),[t.subscribe,t.unsubscribe]),Jl(()=>{ul(t.get(e),n)},[]),A.useEffect(()=>{if(r)return ul(r,n),()=>{};r===void 0&&ul(c,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const y=o(v=>{c==="auto"&&ul(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(nK,"useProviderColorScheme");function rK({respectReducedMotion:t,getRootElement:e}){Jl(()=>{t&&e()?.setAttribute("data-respect-reduced-motion","true")},[t])}o(rK,"useRespectReduceMotion");function DR({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=VV(),defaultColorScheme:y="light",getRootElement:v=o(()=>document.documentElement,"getRootElement"),cssVariablesResolver:E,forceColorScheme:x,stylesTransform:C,env:w}){const{colorScheme:M,setColorScheme:L,clearColorScheme:z}=nK({defaultColorScheme:y,forceColorScheme:x,manager:g,getRootElement:v});return rK({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:v}),$.jsx(CR.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(MR,{theme:t,children:[f&&$.jsx(_R,{cssVariablesSelector:d,deduplicateCssVariables:c}),a&&$.jsx(ZV,{}),e]})})}o(DR,"MantineProvider");DR.displayName="@mantine/core/MantineProvider";function jR({classNames:t,styles:e,props:n,stylesCtx:r}){const a=Vr();return{resolvedClassNames:gf({theme:a,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:ju({theme:a,styles:e,props:n,stylesCtx:r||void 0})}}o(jR,"useResolvedStylesApi");const iK={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function oK({theme:t,options:e,unstyled:n}){return dr(e?.focusable&&!n&&(t.focusClassName||iK[t.focusRing]),e?.active&&!n&&t.activeClassName)}o(oK,"getGlobalClassNames");function sK({selector:t,stylesCtx:e,options:n,props:r,theme:a}){return gf({theme:a,classNames:n?.classNames,props:n?.props||r,stylesCtx:e})[t]}o(sK,"getOptionsClassNames");function _A({selector:t,stylesCtx:e,theme:n,classNames:r,props:a}){return gf({theme:n,classNames:r,props:a,stylesCtx:e})[t]}o(_A,"getResolvedClassNames");function aK({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}o(aK,"getRootClassName");function lK({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}o(lK,"getSelectorClassName");function cK({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(a=>`${e}-${a}-${n}`)}o(cK,"getStaticClassNames");function uK({themeName:t,theme:e,selector:n,props:r,stylesCtx:a}){return t.map(c=>gf({theme:e,classNames:e.components[c]?.classNames,props:r,stylesCtx:a})?.[n])}o(uK,"getThemeClassNames");function fK({options:t,classes:e,selector:n,unstyled:r}){return t?.variant&&!r?e[`${n}--${t.variant}`]:void 0}o(fK,"getVariantClassName");function dK({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 dr(oK({theme:t,options:e,unstyled:d||x}),uK({theme:t,themeName:n,selector:r,props:y,stylesCtx:v}),fK({options:e,classes:f,selector:r,unstyled:d}),_A({selector:r,stylesCtx:v,theme:t,classNames:c,props:y}),_A({selector:r,stylesCtx:v,theme:t,classNames:C,props:y}),sK({selector:r,stylesCtx:v,options:e,props:y,theme:t}),aK({rootSelector:g,selector:r,className:h}),lK({selector:r,classes:f,unstyled:d||x}),E&&!x&&cK({themeName:n,classNamesPrefix:a,selector:r,withStaticClass:e?.withStaticClass}),e?.className)}o(dK,"getClassName");function mK({theme:t,themeName:e,props:n,stylesCtx:r,selector:a}){return e.map(c=>ju({theme:t,styles:t.components[c]?.styles,props:n,stylesCtx:r})[a]).reduce((c,f)=>({...c,...f}),{})}o(mK,"getThemeStyles");function cb({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...cb({style:r,theme:e})}),{}):typeof t=="function"?t(e):t??{}}o(cb,"resolveStyle");function hK(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]={...e[r],...Wh(n[r])}}),e),{})}o(hK,"mergeVars");function pK({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:a,selector:c,themeName:f,headless:d}){return hK([d?{}:e?.(n,r,a),...f.map(h=>n.components?.[h]?.vars?.(n,r,a)),t?.(n,r,a)])?.[c]}o(pK,"resolveVars");function gK({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&&mK({theme:t,themeName:e,props:a,stylesCtx:c,selector:n}),...!E&&ju({theme:t,styles:d,props:a,stylesCtx:c})[n],...!E&&ju({theme:t,styles:r?.styles,props:r?.props||a,stylesCtx:c})[n],...pK({theme:t,props:a,stylesCtx:c,vars:g,varsResolver:y,selector:n,themeName:e,headless:v}),...f===n?cb({style:h,theme:t}):null,...cb({style:r?.style,theme:t})}}o(gK,"getStyle");function yK({props:t,stylesCtx:e,themeName:n}){const r=Vr(),a=BV()?.();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(yK,"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=Vr(),C=jV(),w=IV(),M=zV(),L=(Array.isArray(t)?t:[t]).filter(F=>F),{withStylesTransform:z,getTransformedStyles:D}=yK({props:n,stylesCtx:r,themeName:L});return(F,G)=>({className:dK({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:D([G?.styles,g])}),style:gK({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 bK(t,e){return typeof t=="boolean"?t:e.autoContrast}o(bK,"getAutoContrastValue");const vK=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 SK({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:vK({defaultColorScheme:a,localStorageKey:e,forceColorScheme:n})}})}o(SK,"ColorSchemeScript");function vt(t,e,n){const r=Vr(),a=r.components[t]?.defaultProps,c=typeof a=="function"?a(r):a;return{...e,...c,...Wh(n)}}o(vt,"useProps");function a0(t){return $i(t).reduce((e,n)=>t[n]!==void 0?`${e}${JY(n)}:${t[n]};`:e,"").trim()}o(a0,"cssObjectToString");function xK({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(xK,"stylesToString");function IR(t){const e=M1();return $.jsx("style",{"data-mantine-styles":"inline",nonce:e?.(),dangerouslySetInnerHTML:{__html:xK(t)}})}o(IR,"InlineStyles");function _1(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:D,bdrs:F,bg:G,c:P,opacity:B,ff:H,fz:et,fw:nt,lts:ot,ta:ft,lh:mt,fs:V,tt:J,td:R,w:U,miw:I,maw:tt,h:it,mih:N,mah:Y,bgsz:lt,bgp:dt,bgr:ht,bga:yt,pos:Ct,top:te,left:Kt,bottom:ye,right:an,inset:Yn,display:Zr,flex:Jr,hiddenFrom:dc,visibleFrom:mc,lightHidden:Dp,darkHidden:xf,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:D,bg:G,c:P,opacity:B,ff:H,fz:et,fw:nt,lts:ot,ta:ft,lh:mt,fs:V,tt:J,td:R,w:U,miw:I,maw:tt,h:it,mih:N,mah:Y,bgsz:lt,bgp:dt,bgr:ht,bga:yt,pos:Ct,top:te,left:Kt,bottom:ye,right:an,inset:Yn,display:Zr,flex:Jr,bdrs:F,hiddenFrom:dc,visibleFrom:mc,lightHidden:Dp,darkHidden:xf,sx:hc}),rest:pc}}o(_1,"extractStyleProps");const EK={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 D1(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(D1,"colorResolver");function wK(t,e){const n=Wl({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:D1(t,e)}o(wK,"textColorResolver");function TK(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+=` ${D1(a.join(" "),e)}`),c.trim()}return t}o(TK,"borderResolver");const DA={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 AK(t){return typeof t=="string"&&t in DA?DA[t]:t}o(AK,"fontFamilyResolver");const CK=["h1","h2","h3","h4","h5","h6"];function $K(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&CK.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?ut(t):t}o($K,"fontSizeResolver");function MK(t){return t}o(MK,"identityResolver");const OK=["h1","h2","h3","h4","h5","h6"];function RK(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&OK.includes(t)?`var(--mantine-${t}-line-height)`:t}o(RK,"lineHeightResolver");function NK(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?ut(t):t}o(NK,"radiusResolver");function _K(t){return typeof t=="number"?ut(t):t}o(_K,"sizeResolver");function DK(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(DK,"spacingResolver");const l0={color:D1,textColor:wK,fontSize:$K,spacing:DK,radius:NK,identity:MK,size:_K,lineHeight:RK,fontFamily:AK,border:TK};function jA(t){return t.replace("(min-width: ","").replace("em)","")}o(jA,"replaceMediaQuery");function jK({media:t,...e}){const r=Object.keys(t).sort((a,c)=>Number(jA(a))-Number(jA(c))).map(a=>({query:a,styles:t[a]}));return{...e,media:r}}o(jK,"sortMediaQueries");function IK(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}o(IK,"hasResponsiveStyles");function zK(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}o(zK,"getBaseValue");function LK(t){return typeof t=="object"&&t!==null?$i(t).filter(e=>e!=="base"):[]}o(LK,"getBreakpointKeys");function BK(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}o(BK,"getBreakpointValue");function zR({styleProps:t,data:e,theme:n}){return jK($i(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=zK(t[a]);if(!IK(t[a]))return f.forEach(g=>{r.inlineStyles[g]=l0[c.type](d,n)}),r;r.hasResponsiveStyles=!0;const h=LK(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](BK(t[a],y),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}o(zR,"parseStyleProps");function LR(){return`__m__-${A.useId().replace(/[:«»]/g,"")}`}o(LR,"useRandomClassName");function BR(t){return t.startsWith("data-")?t:`data-${t}`}o(BR,"transformModKey");function UK(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[BR(n)]=t[n]),e},{})}o(UK,"getMod");function UR(t){return t?typeof t=="string"?{[BR(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...UR(n)}),{}):UK(t):null}o(UR,"getBoxMod");function ub(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...ub(r,e)}),{}):typeof t=="function"?t(e):t??{}}o(ub,"mergeStyles");function kK({theme:t,style:e,vars:n,styleProps:r}){const a=ub(e,t),c=ub(n,t);return{...a,...c,...r}}o(kK,"getBoxStyle");const kR=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=Vr(),M=t||"div",{styleProps:L,rest:z}=_1(x),F=LV()?.()?.(L.sx),G=LR(),P=zR({styleProps:L,theme:w,data:EK}),B={ref:C,style:kK({theme:w,style:e,vars:n,styleProps:P.inlineStyles}),className:dr(r,F,{[G]:P.hasResponsiveStyles,"mantine-light-hidden":g,"mantine-dark-hidden":y,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${h}`]:h}),"data-variant":a,"data-size":bR(f)?void 0:f||void 0,size:E,...UR(c),...z};return $.jsxs($.Fragment,{children:[P.hasResponsiveStyles&&$.jsx(IR,{selector:`.${G}`,styles:P.styles,media:P.media}),typeof v=="function"?v(B):$.jsx(M,{...B})]})});kR.displayName="@mantine/core/Box";const Et=kR;function HR(t){return t}o(HR,"identity");function mtt(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(mtt,"getWithProps");function zt(t){const e=A.forwardRef(t);return e.extend=HR,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 Gn(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=HR,e}o(Gn,"polymorphicFactory");const HK=A.createContext({dir:"ltr",toggleDirection:o(()=>{},"toggleDirection"),setDirection:o(()=>{},"setDirection")});function FK(){return A.useContext(HK)}o(FK,"useDirection");var c0={exports:{}},bn={};var IA;function PK(){if(IA)return bn;IA=1;var t=x1();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"),bn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,bn.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)},bn.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()}},bn.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))},bn.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},bn.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})}},bn.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)},bn.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})}},bn.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)},bn.requestFormReset=function(h){r.d.r(h)},bn.unstable_batchedUpdates=function(h,g){return h(g)},bn.useFormState=function(h,g,y){return f.H.useFormState(h,g,y)},bn.useFormStatus=function(){return f.H.useHostTransitionStatus()},bn.version="19.2.4",bn}o(PK,"requireReactDom_production");var zA;function FR(){if(zA)return c0.exports;zA=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=PK(),c0.exports}o(FR,"requireReactDom");var j1=FR();const gu=vs(j1);function rp(){return typeof window<"u"}o(rp,"hasWindow");function tc(t){return PR(t)?(t.nodeName||"").toLowerCase():"#document"}o(tc,"getNodeName");function Un(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}o(Un,"getWindow");function Li(t){var e;return(e=(PR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}o(Li,"getDocumentElement");function PR(t){return rp()?t instanceof Node||t instanceof Un(t).Node:!1}o(PR,"isNode");function Te(t){return rp()?t instanceof Element||t instanceof Un(t).Element:!1}o(Te,"isElement");function mr(t){return rp()?t instanceof HTMLElement||t instanceof Un(t).HTMLElement:!1}o(mr,"isHTMLElement");function fb(t){return!rp()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Un(t).ShadowRoot}o(fb,"isShadowRoot");const qK=new Set(["inline","contents"]);function yf(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(yf,"isOverflowElement");const GK=new Set(["table","td","th"]);function YK(t){return GK.has(tc(t))}o(YK,"isTableElement");const VK=[":popover-open",":modal"];function ip(t){return VK.some(e=>{try{return t.matches(e)}catch{return!1}})}o(ip,"isTopLayer");const KK=["transform","translate","scale","rotate","perspective"],XK=["transform","translate","scale","rotate","perspective","filter"],QK=["paint","layout","strict","content"];function I1(t){const e=op(),n=Te(t)?Hr(t):t;return KK.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)||XK.some(r=>(n.willChange||"").includes(r))||QK.some(r=>(n.contain||"").includes(r))}o(I1,"isContainingBlock");function ZK(t){let e=fo(t);for(;mr(e)&&!so(e);){if(I1(e))return e;if(ip(e))return null;e=fo(e)}return null}o(ZK,"getContainingBlock");function op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}o(op,"isWebKit");const JK=new Set(["html","body","#document"]);function so(t){return JK.has(tc(t))}o(so,"isLastTraversableNode");function Hr(t){return Un(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 fo(t){if(tc(t)==="html")return t;const e=t.assignedSlot||t.parentNode||fb(t)&&t.host||Li(t);return fb(e)?e.host:e}o(fo,"getParentNode");function qR(t){const e=fo(t);return so(e)?t.ownerDocument?t.ownerDocument.body:t.body:mr(e)&&yf(e)?e:qR(e)}o(qR,"getNearestOverflowAncestor");function os(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=qR(t),c=a===((r=t.ownerDocument)==null?void 0:r.body),f=Un(a);if(c){const d=db(f);return e.concat(f,f.visualViewport||[],yf(a)?a:[],d&&n?os(d):[])}return e.concat(a,os(a,[],n))}o(os,"getOverflowAncestors");function db(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}o(db,"getFrameElement");const WK=["top","right","bottom","left"],ci=Math.min,vn=Math.max,Gm=Math.round,Yd=Math.floor,Mi=o(t=>({x:t,y:t}),"createCoords"),tX={left:"right",right:"left",bottom:"top",top:"bottom"},eX={start:"end",end:"start"};function mb(t,e,n){return vn(t,ci(e,n))}o(mb,"clamp$1");function _i(t,e){return typeof t=="function"?t(e):t}o(_i,"evaluate");function ui(t){return t.split("-")[0]}o(ui,"getSide");function ec(t){return t.split("-")[1]}o(ec,"getAlignment");function z1(t){return t==="x"?"y":"x"}o(z1,"getOppositeAxis");function L1(t){return t==="y"?"height":"width"}o(L1,"getAxisLength");const nX=new Set(["top","bottom"]);function ni(t){return nX.has(ui(t))?"y":"x"}o(ni,"getSideAxis");function B1(t){return z1(ni(t))}o(B1,"getAlignmentAxis");function rX(t,e,n){n===void 0&&(n=!1);const r=ec(t),a=B1(t),c=L1(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(rX,"getAlignmentSides");function iX(t){const e=Ym(t);return[hb(t),e,hb(e)]}o(iX,"getExpandedPlacements");function hb(t){return t.replace(/start|end/g,e=>eX[e])}o(hb,"getOppositeAlignmentPlacement");const LA=["left","right"],BA=["right","left"],oX=["top","bottom"],sX=["bottom","top"];function aX(t,e,n){switch(t){case"top":case"bottom":return n?e?BA:LA:e?LA:BA;case"left":case"right":return e?oX:sX;default:return[]}}o(aX,"getSideList");function lX(t,e,n,r){const a=ec(t);let c=aX(ui(t),n==="start",r);return a&&(c=c.map(f=>f+"-"+a),e&&(c=c.concat(c.map(hb)))),c}o(lX,"getOppositeAxisPlacements");function Ym(t){return t.replace(/left|right|bottom|top/g,e=>tX[e])}o(Ym,"getOppositePlacement");function cX(t){return{top:0,right:0,bottom:0,left:0,...t}}o(cX,"expandPaddingObject");function U1(t){return typeof t!="number"?cX(t):{top:t,right:t,bottom:t,left:t}}o(U1,"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 uX(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}o(uX,"getPlatform");function fX(){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(fX,"getUserAgent");function dX(){return/apple/i.test(navigator.vendor)}o(dX,"isSafari");function mX(){return uX().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}o(mX,"isMac");function hX(){return fX().includes("jsdom/")}o(hX,"isJSDOM");const UA="data-floating-ui-focusable",pX="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function kA(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(kA,"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&&fb(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}o(zu,"contains");function ml(t){return"composedPath"in t?t.composedPath()[0]:t.target}o(ml,"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 gX(t){return t.matches("html,body")}o(gX,"isRootElement");function Ys(t){return t?.ownerDocument||document}o(Ys,"getDocument");function yX(t){return mr(t)&&t.matches(pX)}o(yX,"isTypeableElement");function bX(t){if(!t||hX())return!0;try{return t.matches(":focus-visible")}catch{return!0}}o(bX,"matchesFocusVisible");function vX(t){return t?t.hasAttribute(UA)?t:t.querySelector("["+UA+"]")||t:null}o(vX,"getFloatingFocusElement");function am(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,...am(t,a.id,n)])}o(am,"getNodeChildren");function SX(t){return"nativeEvent"in t}o(SX,"isReactEvent");function pb(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}o(pb,"isMouseLikePointerType");var xX=typeof document<"u",EX=o(function(){},"noop2"),Oi=xX?A.useLayoutEffect:EX;const wX={...QO};function Vd(t){const e=A.useRef(t);return Oi(()=>{e.current=t}),e}o(Vd,"useLatestRef$1");const TX=wX.useInsertionEffect,AX=TX||(t=>t());function Ai(t){const e=A.useRef(()=>{});return AX(()=>{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(Ai,"useEffectEvent");function HA(t,e,n){let{reference:r,floating:a}=t;const c=ni(e),f=B1(e),d=L1(f),h=ui(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(HA,"computeCoordsFromPlacement");async function CX(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=U1(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,D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),F=await(c.isElement==null?void 0:c.isElement(D))?await(c.getScale==null?void 0:c.getScale(D))||{x:1,y:1}:{x:1,y:1},G=Nl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:z,offsetParent:D,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(CX,"detectOverflow");const $X=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}=HA(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:D,y:F,data:G,reset:P}=await z({x:y,y:v,initialPlacement:r,placement:E,strategy:a,middlewareData:x,rects:g,platform:{...f,detectOverflow:(w=f.detectOverflow)!=null?w:CX},elements:{reference:t,floating:e}});y=D??y,v=F??v,x={...x,[L]:{...x[L],...G}},P&&C<=50&&(C++,typeof P=="object"&&(P.placement&&(E=P.placement),P.rects&&(g=P.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:a}):P.rects),{x:y,y:v}=HA(g,E,h)),M=-1)}return{x:y,y:v,placement:E,strategy:a,middlewareData:x}},"computePosition$1"),MX=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=U1(y),E={x:n,y:r},x=B1(a),C=L1(x),w=await f.getDimensions(g),M=x==="y",L=M?"top":"left",z=M?"bottom":"right",D=M?"clientHeight":"clientWidth",F=c.reference[C]+c.reference[x]-E[x]-c.floating[C],G=E[x]-c.reference[x],P=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let B=P?P[D]:0;(!B||!await(f.isElement==null?void 0:f.isElement(P)))&&(B=d.floating[D]||c.floating[C]);const H=F/2-G/2,et=B/2-w[C]/2-1,nt=ci(v[L],et),ot=ci(v[z],et),ft=nt,mt=B-w[C]-ot,V=B/2-w[C]/2+H,J=mb(ft,V,mt),R=!h.arrow&&ec(a)!=null&&V!==J&&c.reference[C]/2-(V<ft?nt:ot)-w[C]/2<0,U=R?V<ft?V-ft:V-mt:0;return{[x]:E[x]+U,data:{[x]:J,centerOffset:V-J-U,...R&&{alignmentOffset:U}},reset:R}}}),"arrow$3"),OX=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=ui(a),z=ni(d),D=ui(d)===d,F=await(h.isRTL==null?void 0:h.isRTL(g.floating)),G=E||(D||!w?[Ym(d)]:iX(d)),P=C!=="none";!E&&P&&G.push(...lX(d,w,C,F));const B=[d,...G],H=await h.detectOverflow(e,M),et=[];let nt=((r=c.flip)==null?void 0:r.overflows)||[];if(y&&et.push(H[L]),v){const V=rX(a,f,F);et.push(H[V[0]],H[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!==ni(J):!1)||nt.every(I=>ni(I.placement)===z?I.overflows[0]>0:!0)))return{data:{index:V,overflows:nt},reset:{placement:J}};let R=(ft=nt.filter(U=>U.overflows[0]<=0).sort((U,I)=>U.overflows[1]-I.overflows[1])[0])==null?void 0:ft.placement;if(!R)switch(x){case"bestFit":{var mt;const U=(mt=nt.filter(I=>{if(P){const tt=ni(I.placement);return tt===z||tt==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(tt=>tt>0).reduce((tt,it)=>tt+it,0)]).sort((I,tt)=>I[1]-tt[1])[0])==null?void 0:mt[0];U&&(R=U);break}case"initialPlacement":R=d;break}if(a!==R)return{reset:{placement:R}}}return{}}}},"flip$2");function FA(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}o(FA,"getSideOffsets");function PA(t){return WK.some(e=>t[e]>=0)}o(PA,"isAnySideFullyClipped");const RX=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=FA(f,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:PA(d)}}}case"escaped":{const f=await r.detectOverflow(e,{...c,altBoundary:!0}),d=FA(f,n.floating);return{data:{escapedOffsets:d,escaped:PA(d)}}}default:return{}}}}},"hide$2");function GR(t){const e=ci(...t.map(c=>c.left)),n=ci(...t.map(c=>c.top)),r=vn(...t.map(c=>c.right)),a=vn(...t.map(c=>c.bottom));return{x:e,y:n,width:r-e,height:a-n}}o(GR,"getBoundingRect");function NX(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(GR(a)))}o(NX,"getRectsByLine");const _X=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=NX(y),E=Nl(GR(y)),x=U1(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(ni(n)==="y"){const nt=v[0],ot=v[v.length-1],ft=ui(n)==="top",mt=nt.top,V=ot.bottom,J=ft?nt.left:ot.left,R=ft?nt.right:ot.right,U=R-J,I=V-mt;return{top:mt,bottom:V,left:J,right:R,width:U,height:I,x:J,y:mt}}const M=ui(n)==="left",L=vn(...v.map(nt=>nt.right)),z=ci(...v.map(nt=>nt.left)),D=v.filter(nt=>M?nt.left===z:nt.right===L),F=D[0].top,G=D[D.length-1].bottom,P=z,B=L,H=B-P,et=G-F;return{top:F,bottom:G,left:P,right:B,width:H,height:et,x:P,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"),YR=new Set(["left","top"]);async function DX(t,e){const{placement:n,platform:r,elements:a}=t,c=await(r.isRTL==null?void 0:r.isRTL(a.floating)),f=ui(n),d=ec(n),h=ni(n)==="y",g=YR.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(DX,"convertValueToCoords");const jX=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 DX(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"),IX=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:D}=L;return{x:z,y:D}},"fn")},...g}=_i(t,e),y={x:n,y:r},v=await c.detectOverflow(e,g),E=ni(ui(a)),x=z1(E);let C=y[x],w=y[E];if(f){const L=x==="y"?"top":"left",z=x==="y"?"bottom":"right",D=C+v[L],F=C-v[z];C=mb(D,C,F)}if(d){const L=E==="y"?"top":"left",z=E==="y"?"bottom":"right",D=w+v[L],F=w-v[z];w=mb(D,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"),zX=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=ni(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 D=E==="y"?"height":"width",F=c.reference[E]-c.floating[D]+M.mainAxis,G=c.reference[E]+c.reference[D]-M.mainAxis;x<F?x=F:x>G&&(x=G)}if(g){var L,z;const D=E==="y"?"width":"height",F=YR.has(ui(a)),G=c.reference[v]-c.floating[D]+(F&&((L=f.offset)==null?void 0:L[v])||0)+(F?0:M.crossAxis),P=c.reference[v]+c.reference[D]+(F?0:((z=f.offset)==null?void 0:z[v])||0)-(F?M.crossAxis:0);C<G?C=G:C>P&&(C=P)}return{[E]:x,[v]:C}}}},"limitShift$2"),LX=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=ui(a),E=ec(a),x=ni(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,D=C-y.left-y.right,F=ci(w-y[M],z),G=ci(C-y[L],D),P=!e.middlewareData.shift;let B=F,H=G;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(H=D),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(B=z),P&&!E){const nt=vn(y.left,0),ot=vn(y.right,0),ft=vn(y.top,0),mt=vn(y.bottom,0);x?H=C-2*(nt!==0||ot!==0?nt+ot:vn(y.left,y.right)):B=w-2*(ft!==0||mt!==0?ft+mt:vn(y.top,y.bottom))}await h({...e,availableWidth:H,availableHeight:B});const et=await f.getDimensions(d.floating);return C!==et.width||w!==et.height?{reset:{rects:!0}}:{}}}},"size$2");function VR(t){const e=Hr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=mr(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(VR,"getCssDimensions");function k1(t){return Te(t)?t:t.contextElement}o(k1,"unwrapElement");function xl(t){const e=k1(t);if(!mr(e))return Mi(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:c}=VR(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(xl,"getScale");const BX=Mi(0);function KR(t){const e=Un(t);return!op()||!e.visualViewport?BX:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}o(KR,"getVisualOffsets");function UX(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Un(t)?!1:e}o(UX,"shouldAddVisualOffsets");function sa(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),c=k1(t);let f=Mi(1);e&&(r?Te(r)&&(f=xl(r)):f=xl(t));const d=UX(c,n,r)?KR(c):Mi(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=Un(c),x=r&&Te(r)?Un(r):r;let C=E,w=db(C);for(;w&&r&&x!==C;){const M=xl(w),L=w.getBoundingClientRect(),z=Hr(w),D=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+=D,g+=F,C=Un(w),w=db(C)}}return Nl({width:y,height:v,x:h,y:g})}o(sa,"getBoundingClientRect");function ap(t,e){const n=sp(t).scrollLeft;return e?e.left+n:sa(Li(t)).left+n}o(ap,"getWindowScrollBarX");function XR(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(XR,"getHTMLOffset");function kX(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const c=a==="fixed",f=Li(r),d=e?ip(e.floating):!1;if(r===f||d&&c)return n;let h={scrollLeft:0,scrollTop:0},g=Mi(1);const y=Mi(0),v=mr(r);if((v||!v&&!c)&&((tc(r)!=="body"||yf(f))&&(h=sp(r)),mr(r))){const x=sa(r);g=xl(r),y.x=x.x+r.clientLeft,y.y=x.y+r.clientTop}const E=f&&!v&&!c?XR(f,h):Mi(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(kX,"convertOffsetParentRelativeRectToViewportRelativeRect");function HX(t){return Array.from(t.getClientRects())}o(HX,"getClientRects");function FX(t){const e=Li(t),n=sp(t),r=t.ownerDocument.body,a=vn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),c=vn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let f=-n.scrollLeft+ap(t);const d=-n.scrollTop;return Hr(r).direction==="rtl"&&(f+=vn(e.clientWidth,r.clientWidth)-a),{width:a,height:c,x:f,y:d}}o(FX,"getDocumentRect");const qA=25;function PX(t,e){const n=Un(t),r=Li(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<=qA&&(c-=C)}else g<=qA&&(c+=g);return{width:c,height:f,x:d,y:h}}o(PX,"getViewportRect");const qX=new Set(["absolute","fixed"]);function GX(t,e){const n=sa(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,c=mr(t)?xl(t):Mi(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(GX,"getInnerBoundingClientRect");function GA(t,e,n){let r;if(e==="viewport")r=PX(t,n);else if(e==="document")r=FX(Li(t));else if(Te(e))r=GX(e,n);else{const a=KR(t);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Nl(r)}o(GA,"getClientRectFromClippingAncestor");function QR(t,e){const n=fo(t);return n===e||!Te(n)||so(n)?!1:Hr(n).position==="fixed"||QR(n,e)}o(QR,"hasFixedPositionAncestor");function YX(t,e){const n=e.get(t);if(n)return n;let r=os(t,[],!1).filter(d=>Te(d)&&tc(d)!=="body"),a=null;const c=Hr(t).position==="fixed";let f=c?fo(t):t;for(;Te(f)&&!so(f);){const d=Hr(f),h=I1(f);!h&&d.position==="fixed"&&(a=null),(c?!h&&!a:!h&&d.position==="static"&&!!a&&qX.has(a.position)||yf(f)&&!h&&QR(t,f))?r=r.filter(y=>y!==f):a=d,f=fo(f)}return e.set(t,r),r}o(YX,"getClippingElementAncestors");function VX(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const f=[...n==="clippingAncestors"?ip(e)?[]:YX(e,this._c):[].concat(n),r],d=f[0],h=f.reduce((g,y)=>{const v=GA(e,y,a);return g.top=vn(v.top,g.top),g.right=ci(v.right,g.right),g.bottom=ci(v.bottom,g.bottom),g.left=vn(v.left,g.left),g},GA(e,d,a));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}o(VX,"getClippingRect");function KX(t){const{width:e,height:n}=VR(t);return{width:e,height:n}}o(KX,"getDimensions");function XX(t,e,n){const r=mr(e),a=Li(e),c=n==="fixed",f=sa(t,!0,c,e);let d={scrollLeft:0,scrollTop:0};const h=Mi(0);function g(){h.x=ap(a)}if(o(g,"setLeftRTLScrollbarOffset"),r||!r&&!c)if((tc(e)!=="body"||yf(a))&&(d=sp(e)),r){const x=sa(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?XR(a,d):Mi(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(XX,"getRectRelativeToOffsetParent");function f0(t){return Hr(t).position==="static"}o(f0,"isStaticPositioned");function YA(t,e){if(!mr(t)||Hr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Li(t)===n&&(n=n.ownerDocument.body),n}o(YA,"getTrueOffsetParent");function ZR(t,e){const n=Un(t);if(ip(t))return n;if(!mr(t)){let a=fo(t);for(;a&&!so(a);){if(Te(a)&&!f0(a))return a;a=fo(a)}return n}let r=YA(t,e);for(;r&&YK(r)&&f0(r);)r=YA(r,e);return r&&so(r)&&f0(r)&&!I1(r)?n:r||ZK(t)||n}o(ZR,"getOffsetParent");const QX=o(async function(t){const e=this.getOffsetParent||ZR,n=this.getDimensions,r=await n(t.floating);return{reference:XX(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},"getElementRects");function ZX(t){return Hr(t).direction==="rtl"}o(ZX,"isRTL");const JX={convertOffsetParentRelativeRectToViewportRelativeRect:kX,getDocumentElement:Li,getClippingRect:VX,getOffsetParent:ZR,getElementRects:QX,getClientRects:HX,getDimensions:KX,getScale:xl,isElement:Te,isRTL:ZX};function JR(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}o(JR,"rectsAreEqual");function WX(t,e){let n=null,r;const a=Li(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=Yd(v),w=Yd(a.clientWidth-(y+E)),M=Yd(a.clientHeight-(v+x)),L=Yd(y),D={rootMargin:-C+"px "+-w+"px "+-M+"px "+-L+"px",threshold:vn(0,ci(1,h))||1};let F=!0;function G(P){const B=P[0].intersectionRatio;if(B!==h){if(!F)return f();B?f(!1,B):r=setTimeout(()=>{f(!1,1e-7)},1e3)}B===1&&!JR(g,t.getBoundingClientRect())&&f(),F=!1}o(G,"handleObserve");try{n=new IntersectionObserver(G,{...D,root:a.ownerDocument})}catch{n=new IntersectionObserver(G,D)}n.observe(t)}return o(f,"refresh"),f(!0),c}o(WX,"observeMove");function htt(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?os(g):[],...os(e)]:[];y.forEach(L=>{a&&L.addEventListener("scroll",n,{passive:!0}),c&&L.addEventListener("resize",n)});const v=g&&d?WX(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 D;(D=x)==null||D.observe(e)})),n()}),g&&!h&&x.observe(g),x.observe(e));let C,w=h?sa(t):null;h&&M();function M(){const L=sa(t);w&&!JR(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(htt,"autoUpdate");const tQ=jX,eQ=IX,nQ=OX,rQ=LX,iQ=RX,VA=MX,oQ=_X,sQ=zX,aQ=o((t,e,n)=>{const r=new Map,a={platform:JX,...n},c={...a.platform,_c:r};return $X(t,e,{...a,platform:c})},"computePosition");var lQ=typeof document<"u",cQ=o(function(){},"noop"),lm=lQ?A.useLayoutEffect:cQ;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 WR(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}o(WR,"getDPR");function KA(t,e){const n=WR(t);return Math.round(e*n)/n}o(KA,"roundByDPR");function d0(t){const e=A.useRef(t);return lm(()=>{e.current=t}),e}o(d0,"useLatestRef");function uQ(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(I=>{I!==P.current&&(P.current=I,w(I))},[]),D=A.useCallback(I=>{I!==B.current&&(B.current=I,L(I))},[]),F=c||C,G=f||M,P=A.useRef(null),B=A.useRef(null),H=A.useRef(y),et=h!=null,nt=d0(h),ot=d0(a),ft=d0(g),mt=A.useCallback(()=>{if(!P.current||!B.current)return;const I={placement:e,strategy:n,middleware:E};ot.current&&(I.platform=ot.current),aQ(P.current,B.current,I).then(tt=>{const it={...tt,isPositioned:ft.current!==!1};V.current&&!Vm(H.current,it)&&(H.current=it,j1.flushSync(()=>{v(it)}))})},[E,e,n,ot,ft]);lm(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,v(I=>({...I,isPositioned:!1})))},[g]);const V=A.useRef(!1);lm(()=>(V.current=!0,()=>{V.current=!1}),[]),lm(()=>{if(F&&(P.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:P,floating:B,setReference:z,setFloating:D}),[z,D]),R=A.useMemo(()=>({reference:F,floating:G}),[F,G]),U=A.useMemo(()=>{const I={position:n,left:0,top:0};if(!R.floating)return I;const tt=KA(R.floating,y.x),it=KA(R.floating,y.y);return d?{...I,transform:"translate("+tt+"px, "+it+"px)",...WR(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:tt,top:it}},[n,d,R.floating,y.x,y.y]);return A.useMemo(()=>({...y,update:mt,refs:J,elements:R,floatingStyles:U}),[y,mt,J,R,U])}o(uQ,"useFloating$1");const fQ=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?VA({element:r.current,padding:a}).fn(n):{}:r?VA({element:r,padding:a}).fn(n):{}}}},"arrow$1"),ptt=o((t,e)=>({...tQ(t),options:[t,e]}),"offset"),gtt=o((t,e)=>({...eQ(t),options:[t,e]}),"shift"),ytt=o((t,e)=>({...sQ(t),options:[t,e]}),"limitShift"),btt=o((t,e)=>({...nQ(t),options:[t,e]}),"flip"),vtt=o((t,e)=>({...rQ(t),options:[t,e]}),"size"),Stt=o((t,e)=>({...iQ(t),options:[t,e]}),"hide"),xtt=o((t,e)=>({...oQ(t),options:[t,e]}),"inline"),Ett=o((t,e)=>({...fQ(t),options:[t,e]}),"arrow");function t3(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(t3,"useMergeRefs");const dQ="data-floating-ui-focusable",XA="active",QA="selected",mQ={...QO};let ZA=!1,hQ=0;const JA=o(()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+hQ++,"genId");function pQ(){const[t,e]=A.useState(()=>ZA?JA():void 0);return Oi(()=>{t==null&&e(JA())},[]),A.useEffect(()=>{ZA=!0},[]),t}o(pQ,"useFloatingId");const gQ=mQ.useId,e3=gQ||pQ;function yQ(){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(yQ,"createEventEmitter");const bQ=A.createContext(null),vQ=A.createContext(null),H1=o(()=>{var t;return((t=A.useContext(bQ))==null?void 0:t.id)||null},"useFloatingParentNodeId"),F1=o(()=>A.useContext(vQ),"useFloatingTree");function P1(t){return"data-floating-ui-"+t}o(P1,"createAttribute");function _r(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}o(_r,"clearTimeoutIfSet");const WA=P1("safe-polygon");function cm(t,e,n){if(n&&!pb(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(cm,"getDelay");function m0(t){return typeof t=="function"?t():t}o(m0,"getRestMs");function wtt(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=F1(),C=H1(),w=Vd(g),M=Vd(h),L=Vd(n),z=Vd(v),D=A.useRef(),F=A.useRef(-1),G=A.useRef(),P=A.useRef(-1),B=A.useRef(!0),H=A.useRef(!1),et=A.useRef(()=>{}),nt=A.useRef(!1),ot=Ai(()=>{var U;const I=(U=a.current.openEvent)==null?void 0:U.type;return I?.includes("mouse")&&I!=="mousedown"});A.useEffect(()=>{if(!d)return;function U(I){let{open:tt}=I;tt||(_r(F),_r(P),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 I=Ys(f.floating).documentElement;return I.addEventListener("mouseleave",U),()=>{I.removeEventListener("mouseleave",U)}},[f.floating,n,r,d,w,ot]);const ft=A.useCallback(function(U,I,tt){I===void 0&&(I=!0),tt===void 0&&(tt="hover");const it=cm(M.current,"close",D.current);it&&!G.current?(_r(F),F.current=window.setTimeout(()=>r(!1,U,tt),it)):I&&(_r(F),r(!1,U,tt))},[M,r]),mt=Ai(()=>{et.current(),G.current=void 0}),V=Ai(()=>{if(H.current){const U=Ys(f.floating).body;U.style.pointerEvents="",U.removeAttribute(WA),H.current=!1}}),J=Ai(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);A.useEffect(()=>{if(!d)return;function U(Y){if(_r(F),B.current=!1,y&&!pb(D.current)||m0(z.current)>0&&!cm(M.current,"open"))return;const lt=cm(M.current,"open",D.current);lt?F.current=window.setTimeout(()=>{L.current||r(!0,Y,"hover")},lt):n||r(!0,Y,"hover")}o(U,"onReferenceMouseEnter");function I(Y){if(J()){V();return}et.current();const lt=Ys(f.floating);if(_r(P),nt.current=!1,w.current&&a.current.floatingContext){n||_r(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}(D.current!=="touch"||!zu(f.floating,Y.relatedTarget))&&ft(Y)}o(I,"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(){_r(F)}o(it,"onFloatingMouseEnter");function N(Y){J()||ft(Y,!1)}if(o(N,"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",I),lt&&(lt.addEventListener("mouseleave",tt),lt.addEventListener("mouseenter",it),lt.addEventListener("mouseleave",N)),()=>{n&&Y.removeEventListener("mouseleave",tt),E&&Y.removeEventListener("mousemove",U),Y.removeEventListener("mouseenter",U),Y.removeEventListener("mouseleave",I),lt&&(lt.removeEventListener("mouseleave",tt),lt.removeEventListener("mouseenter",it),lt.removeEventListener("mouseleave",N))}}},[f,d,t,y,E,ft,mt,V,r,n,L,x,M,w,a,J,z]),Oi(()=>{var U;if(d&&n&&(U=w.current)!=null&&(U=U.__options)!=null&&U.blockPointerEvents&&ot()){H.current=!0;const tt=f.floating;if(Te(f.domReference)&&tt){var I;const it=Ys(f.floating).body;it.setAttribute(WA,"");const N=f.domReference,Y=x==null||(I=x.nodesRef.current.find(lt=>lt.id===C))==null||(I=I.context)==null?void 0:I.elements.floating;return Y&&(Y.style.pointerEvents=""),it.style.pointerEvents="none",N.style.pointerEvents="auto",tt.style.pointerEvents="auto",()=>{it.style.pointerEvents="",N.style.pointerEvents="",tt.style.pointerEvents=""}}}},[d,n,C,f,x,w,ot]),Oi(()=>{n||(D.current=void 0,nt.current=!1,mt(),V())},[n,mt,V]),A.useEffect(()=>()=>{mt(),_r(F),_r(P),V()},[d,f.domReference,mt,V]);const R=A.useMemo(()=>{function U(I){D.current=I.pointerType}return o(U,"setPointerRef"),{onPointerDown:U,onPointerEnter:U,onMouseMove(I){const{nativeEvent:tt}=I;function it(){!B.current&&!L.current&&r(!0,tt,"hover")}o(it,"handleMouseMove"),!(y&&!pb(D.current))&&(n||m0(z.current)===0||nt.current&&I.movementX**2+I.movementY**2<2||(_r(P),D.current==="touch"?it():(nt.current=!0,P.current=window.setTimeout(it,m0(z.current)))))}}},[y,r,n,L,z]);return A.useMemo(()=>d?{reference:R}:{},[d,R])}o(wtt,"useHover");const gb=o(()=>{},"NOOP"),n3=A.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:gb,setState:gb,isInstantPhase:!1}),SQ=o(()=>A.useContext(n3),"useDelayGroupContext");function Ttt(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 Oi(()=>{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(n3.Provider,{value:A.useMemo(()=>({...a,setState:c,setCurrentId:d}),[a,d]),children:e})}o(Ttt,"FloatingDelayGroup");function Att(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:a}=t,{id:c,enabled:f=!0}=e,d=c??a,h=SQ(),{currentId:g,setCurrentId:y,initialDelay:v,setState:E,timeoutMs:x}=h;return Oi(()=>{f&&g&&(E({delay:{open:1,close:cm(v,"close")}}),g!==d&&r(!1))},[f,d,r,E,g,v]),Oi(()=>{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]),Oi(()=>{f&&(y===gb||!n||y(d))},[f,n,y,d]),h}o(Att,"useDelayGroup");const xQ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},EQ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},tC=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 Ctt(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=F1(),M=Ai(typeof h=="function"?h:()=>!1),L=typeof h=="function"?M:h,z=A.useRef(!1),{escapeKey:D,outsidePress:F}=tC(x),{escapeKey:G,outsidePress:P}=tC(C),B=A.useRef(!1),H=Ai(V=>{var J;if(!n||!f||!d||V.key!=="Escape"||B.current)return;const R=(J=c.current.floatingContext)==null?void 0:J.nodeId,U=w?am(w.nodesRef.current,R):[];if(!D&&(V.stopPropagation(),U.length>0)){let I=!0;if(U.forEach(tt=>{var it;if((it=tt.context)!=null&&it.open&&!tt.context.dataRef.current.__escapeKeyBubbles){I=!1;return}}),!I)return}r(!1,SX(V)?V.nativeEvent:V,"escape-key")}),et=Ai(V=>{var J;const R=o(()=>{var U;H(V),(U=ml(V))==null||U.removeEventListener("keydown",R)},"callback");(J=ml(V))==null||J.addEventListener("keydown",R)}),nt=Ai(V=>{var J;const R=c.current.insideReactTree;c.current.insideReactTree=!1;const U=z.current;if(z.current=!1,g==="click"&&U||R||typeof L=="function"&&!L(V))return;const I=ml(V),tt="["+P1("inert")+"]",it=Ys(a.floating).querySelectorAll(tt);let N=Te(I)?I:null;for(;N&&!so(N);){const ht=fo(N);if(so(ht)||!Te(ht))break;N=ht}if(it.length&&Te(I)&&!gX(I)&&!zu(I,a.floating)&&Array.from(it).every(ht=>!zu(N,ht)))return;if(mr(I)&&mt){const ht=so(I),yt=Hr(I),Ct=/auto|scroll/,te=ht||Ct.test(yt.overflowX),Kt=ht||Ct.test(yt.overflowY),ye=te&&I.clientWidth>0&&I.scrollWidth>I.clientWidth,an=Kt&&I.clientHeight>0&&I.scrollHeight>I.clientHeight,Yn=yt.direction==="rtl",Zr=an&&(Yn?V.offsetX<=I.offsetWidth-I.clientWidth:V.offsetX>I.clientWidth),Jr=ye&&V.offsetY>I.clientHeight;if(Zr||Jr)return}const Y=(J=c.current.floatingContext)==null?void 0:J.nodeId,lt=w&&am(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?am(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=Ai(V=>{var J;const R=o(()=>{var U;nt(V),(U=ml(V))==null||U.removeEventListener(g,R)},"callback");(J=ml(V))==null||J.addEventListener(g,R)});A.useEffect(()=>{if(!n||!f)return;c.current.__escapeKeyBubbles=D,c.current.__outsidePressBubbles=F;let V=-1;function J(it){r(!1,it,"ancestor-scroll")}o(J,"onScroll");function R(){window.clearTimeout(V),B.current=!0}o(R,"handleCompositionStart");function U(){V=window.setTimeout(()=>{B.current=!1},op()?5:0)}o(U,"handleCompositionEnd");const I=Ys(a.floating);d&&(I.addEventListener("keydown",G?et:H,G),I.addEventListener("compositionstart",R),I.addEventListener("compositionend",U)),L&&I.addEventListener(g,P?ot:nt,P);let tt=[];return E&&(Te(a.domReference)&&(tt=os(a.domReference)),Te(a.floating)&&(tt=tt.concat(os(a.floating))),!Te(a.reference)&&a.reference&&a.reference.contextElement&&(tt=tt.concat(os(a.reference.contextElement)))),tt=tt.filter(it=>{var N;return it!==((N=I.defaultView)==null?void 0:N.visualViewport)}),tt.forEach(it=>{it.addEventListener("scroll",J,{passive:!0})}),()=>{d&&(I.removeEventListener("keydown",G?et:H,G),I.removeEventListener("compositionstart",R),I.removeEventListener("compositionend",U)),L&&I.removeEventListener(g,P?ot:nt,P),tt.forEach(it=>{it.removeEventListener("scroll",J)}),window.clearTimeout(V)}},[c,a,d,L,g,n,r,E,f,D,F,H,G,et,nt,P,ot]),A.useEffect(()=>{c.current.insideReactTree=!1},[c,L,g]);const ft=A.useMemo(()=>({onKeyDown:H,...y&&{[xQ[v]]:V=>{r(!1,V.nativeEvent,"reference-press")},...v!=="click"&&{onClick(V){r(!1,V.nativeEvent,"reference-press")}}}}),[H,r,y,v]),mt=A.useMemo(()=>({onKeyDown:H,onMouseDown(){z.current=!0},onMouseUp(){z.current=!0},[EQ[g]]:()=>{c.current.insideReactTree=!0}}),[H,g,c]);return A.useMemo(()=>f?{reference:ft,floating:mt}:{},[f,ft,mt])}o(Ctt,"useDismiss");function wQ(t){const{open:e=!1,onOpenChange:n,elements:r}=t,a=e3(),c=A.useRef({}),[f]=A.useState(()=>yQ()),d=H1()!=null,[h,g]=A.useState(r.reference),y=Ai((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(wQ,"useFloatingRootContext");function $tt(t){t===void 0&&(t={});const{nodeId:e}=t,n=wQ({...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=F1();Oi(()=>{y&&(v.current=y)},[y]);const x=uQ({...t,elements:{...a,...d&&{reference:d}}}),C=A.useCallback(D=>{const F=Te(D)?{getBoundingClientRect:o(()=>D.getBoundingClientRect(),"getBoundingClientRect"),getClientRects:o(()=>D.getClientRects(),"getClientRects"),contextElement:D}:D;h(F),x.refs.setReference(F)},[x.refs]),w=A.useCallback(D=>{(Te(D)||D===null)&&(v.current=D,f(D)),(Te(x.refs.reference.current)||x.refs.reference.current===null||D!==null&&!Te(D))&&x.refs.setReference(D)},[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 Oi(()=>{r.dataRef.current.floatingContext=z;const D=E?.nodesRef.current.find(F=>F.id===e);D&&(D.context=z)}),A.useMemo(()=>({...x,context:z,refs:M,elements:L}),[x,M,L,z])}o($tt,"useFloating");function h0(){return mX()&&dX()}o(h0,"isMacSafari");function Mtt(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=Un(f.domReference);function C(){!n&&mr(f.domReference)&&f.domReference===kA(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(()=>()=>{_r(y)},[]);const E=A.useMemo(()=>({onMouseLeave(){g.current=!1},onFocus(x){if(g.current)return;const C=ml(x.nativeEvent);if(h&&Te(C)){if(h0()&&!x.relatedTarget){if(!v.current&&!yX(C))return}else if(!bX(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=kA(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(Mtt,"useFocus");function p0(t,e,n){const r=new Map,a=n==="item";let c=t;if(a&&t){const{[XA]:f,[QA]:d,...h}=t;c=h}return{...n==="floating"&&{tabIndex:-1,[dQ]:""},...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&&[XA,QA].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 Ott(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(Ott,"useInteractions");const TQ=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Rtt(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=e3(),y=((n=c.domReference)==null?void 0:n.id)||g,v=A.useMemo(()=>{var z;return((z=vX(c.floating))==null?void 0:z.id)||f},[c.floating,f]),E=(r=TQ.get(h))!=null?r:h,C=H1()!=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:D,selected:F}=z;const G={role:"option",...D&&{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(Rtt,"useRole");var q1={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const[AQ,Kr]=ga("ScrollArea.Root component was not found in tree");function _l(t,e){const n=Gs(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 CQ=A.forwardRef((t,e)=>{const{style:n,...r}=t,a=Kr(),[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}),$Q=A.forwardRef((t,e)=>{const n=Kr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?$.jsx(CQ,{...t,ref:e}):null}),MQ={scrollHideDelay:1e3,type:"hover"},r3=A.forwardRef((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:a,getStyles:c,...f}=vt("ScrollAreaRoot",MQ,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),[D,F]=A.useState(0),[G,P]=A.useState(!1),[B,H]=A.useState(!1),et=ya(e,nt=>h(nt));return $.jsx(AQ,{value:{type:n,scrollHideDelay:r,scrollArea:d,viewport:g,onViewportChange:y,content:v,onContentChange:E,scrollbarX:x,onScrollbarXChange:C,scrollbarXEnabled:G,onScrollbarXEnabledChange:P,scrollbarY:w,onScrollbarYChange:M,scrollbarYEnabled:B,onScrollbarYEnabledChange:H,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":`${D}px`}})})});r3.displayName="@mantine/core/ScrollAreaRoot";function i3(t,e){const n=t/e;return Number.isNaN(n)?0:n}o(i3,"getThumbRatio");function lp(t){const e=i3(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 o3(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(o3,"linearScale");function OQ(t,[e,n]){return Math.min(n,Math.max(e,t))}o(OQ,"clamp");function eC(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=OQ(t,h);return o3([0,f],[0,d])(g)}o(eC,"getThumbOffsetFromScroll");function RQ(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 o3([h,g],v)(t)}o(RQ,"getScrollPositionFromPointer");function s3(t,e){return t>0&&t<e}o(s3,"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[NQ,a3]=ga("ScrollAreaScrollbar was not found in tree"),l3=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=Kr(),[x,C]=A.useState(null),w=ya(e,H=>C(H)),M=A.useRef(null),L=A.useRef(""),{viewport:z}=E,D=n.content-n.viewport,F=Gs(g),G=Gs(d),P=ep(y,10),B=o(H=>{if(M.current){const et=H.clientX-M.current.left,nt=H.clientY-M.current.top;h({x:et,y:nt})}},"handleDragScroll");return A.useEffect(()=>{const H=o(et=>{const nt=et.target;x?.contains(nt)&&F(et,D)},"handleWheel");return document.addEventListener("wheel",H,{passive:!1}),()=>document.removeEventListener("wheel",H,{passive:!1})},[z,x,D,F]),A.useEffect(G,[n,G]),_l(x,P),_l(E.content,P),$.jsx(NQ,{value:{scrollbar:x,hasThumb:r,onThumbChange:Gs(a),onThumbPointerUp:Gs(c),onThumbPositionChange:G,onThumbPointerDown:Gs(f)},children:$.jsx("div",{...v,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...v.style},onPointerDown:Qs(t.onPointerDown,H=>{H.preventDefault(),H.button===0&&(H.target.setPointerCapture(H.pointerId),M.current=x.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",B(H))}),onPointerMove:Qs(t.onPointerMove,B),onPointerUp:Qs(t.onPointerUp,H=>{const et=H.target;et.hasPointerCapture(H.pointerId)&&(H.preventDefault(),et.releasePointerCapture(H.pointerId))}),onLostPointerCapture:o(()=>{document.body.style.webkitUserSelect=L.current,M.current=null},"onLostPointerCapture")})})}),c3=A.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:a,...c}=t,f=Kr(),[d,h]=A.useState(),g=A.useRef(null),y=ya(e,g,f.onScrollbarXChange);return A.useEffect(()=>{g.current&&h(getComputedStyle(g.current))},[g]),$.jsx(l3,{"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),s3(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")})});c3.displayName="@mantine/core/ScrollAreaScrollbarX";const u3=A.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:a,...c}=t,f=Kr(),[d,h]=A.useState(),g=A.useRef(null),y=ya(e,g,f.onScrollbarYChange);return A.useEffect(()=>{g.current&&h(window.getComputedStyle(g.current))},[]),$.jsx(l3,{...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),s3(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")})});u3.displayName="@mantine/core/ScrollAreaScrollbarY";const cp=A.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:a}=FK(),c=Kr(),f=A.useRef(null),d=A.useRef(0),[h,g]=A.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),y=i3(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)=>RQ(x,d.current,h,C),"getScrollPosition");return n==="horizontal"?$.jsx(c3,{...v,ref:e,onThumbPositionChange:o(()=>{if(c.viewport&&f.current){const x=c.viewport.scrollLeft,C=eC(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(u3,{...v,ref:e,onThumbPositionChange:o(()=>{if(c.viewport&&f.current){const x=c.viewport.scrollTop,C=eC(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 G1=A.forwardRef((t,e)=>{const n=Kr(),{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});G1.displayName="@mantine/core/ScrollAreaScrollbarAuto";const f3=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=Kr(),[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(G1,{"data-state":c?"visible":"hidden",...r,ref:e}):null});f3.displayName="@mantine/core/ScrollAreaScrollbarHover";const _Q=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=Kr(),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}),yb=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=Kr(),{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(f3,{...r,ref:e,forceMount:n}):a.type==="scroll"?$.jsx(_Q,{...r,ref:e,forceMount:n}):a.type==="auto"?$.jsx(G1,{...r,ref:e,forceMount:n}):a.type==="always"?$.jsx(cp,{...r,ref:e}):null});yb.displayName="@mantine/core/ScrollAreaScrollbar";function DQ(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(DQ,"addUnlinkedScrollListener");const d3=A.forwardRef((t,e)=>{const{style:n,...r}=t,a=Kr(),c=a3(),{onThumbPositionChange:f}=c,d=ya(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=DQ(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)})});d3.displayName="@mantine/core/ScrollAreaThumb";const bb=A.forwardRef((t,e)=>{const{forceMount:n,...r}=t,a=a3();return n||a.hasThumb?$.jsx(d3,{ref:e,...r}):null});bb.displayName="@mantine/core/ScrollAreaThumb";const m3=A.forwardRef(({children:t,style:e,onWheel:n,...r},a)=>{const c=Kr(),f=ya(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})})});m3.displayName="@mantine/core/ScrollAreaViewport";const h3={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},jQ=(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",h3,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:D,overscrollBehavior:F,attributes:G,...P}=n,[B,H]=A.useState(!1),[et,nt]=A.useState(!1),[ot,ft]=A.useState(!1),mt=ie({name:"ScrollArea",props:n,classes:q1,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:G,vars:g,varsResolver:jQ}),V=A.useRef(null),J=t3([x,V]);return A.useEffect(()=>{if(!V.current||M!=="present")return;const R=V.current,U=new ResizeObserver(()=>{const{scrollHeight:I,clientHeight:tt,scrollWidth:it,clientWidth:N}=R;nt(I>tt),ft(it>N)});return U.observe(R),()=>U.disconnect()},[V,M]),$.jsxs(r3,{getStyles:mt,type:y==="never"?"always":y,scrollHideDelay:v,ref:e,scrollbars:L,...mt("root"),...P,children:[$.jsx(m3,{...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(R=>{E?.onScroll?.(R),C?.({x:R.currentTarget.scrollLeft,y:R.currentTarget.scrollTop});const{scrollTop:U,scrollHeight:I,clientHeight:tt}=R.currentTarget;U-(I-tt)>=-.8&&z?.(),U===0&&D?.()},"onScroll"),children:w}),(L==="xy"||L==="x")&&$.jsx(yb,{...mt("scrollbar"),orientation:"horizontal","data-hidden":y==="never"||M==="present"&&!ot?!0:void 0,forceMount:!0,onMouseEnter:o(()=>H(!0),"onMouseEnter"),onMouseLeave:o(()=>H(!1),"onMouseLeave"),children:$.jsx(bb,{...mt("thumb")})}),(L==="xy"||L==="y")&&$.jsx(yb,{...mt("scrollbar"),orientation:"vertical","data-hidden":y==="never"||M==="present"&&!et?!0:void 0,forceMount:!0,onMouseEnter:o(()=>H(!0),"onMouseEnter"),onMouseLeave:o(()=>H(!1),"onMouseLeave"),children:$.jsx(bb,{...mt("thumb")})}),$.jsx($Q,{...mt("corner"),"data-hovered":B||void 0,"data-hidden":y==="never"||void 0})]})});nc.displayName="@mantine/core/ScrollArea";const Y1=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:D,onTopReached:F,onOverflowChange:G,...P}=vt("ScrollAreaAutosize",h3,t),B=A.useRef(null),H=t3([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,{...P,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:H,onScrollPositionChange:E,unstyled:x,variant:C,viewportProps:w,vars:z,scrollbars:M,onBottomReached:D,onTopReached:F,"data-autosize":"true",children:n})})})});nc.classes=q1;Y1.displayName="@mantine/core/ScrollAreaAutosize";Y1.classes=q1;nc.Autosize=Y1;var p3={root:"m_87cf2631"};const IQ={__staticSelector:"UnstyledButton"},rc=Gn((t,e)=>{const n=vt("UnstyledButton",IQ,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:p3,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=p3;rc.displayName="@mantine/core/UnstyledButton";var g3={root:"m_515a97f8"};const V1=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:g3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:g});return $.jsx(Et,{component:"span",ref:e,...v("root"),...y})});V1.classes=g3;V1.displayName="@mantine/core/VisuallyHidden";var y3={root:"m_1b7284a3"};const zQ=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Yr(e),"--paper-shadow":vR(n)}}),So=Gn((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:y3,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:C,vars:g,varsResolver:zQ});return $.jsx(Et,{ref:e,mod:[{"data-with-border":h},x],...M("root"),variant:E,...w})});So.classes=y3;So.displayName="@mantine/core/Paper";var b3={root:"m_9814e45f"};const LQ={zIndex:gi("modal")},BQ=(t,{gradient:e,color:n,backgroundOpacity:r,blur:a,radius:c,zIndex:f})=>({root:{"--overlay-bg":e||(n!==void 0||r!==void 0)&&Ei(n||"#000",r??.6)||void 0,"--overlay-filter":a?`blur(${ut(a)})`:void 0,"--overlay-radius":c===void 0?void 0:Yr(c),"--overlay-z-index":f?.toString()}}),K1=Gn((t,e)=>{const n=vt("Overlay",LQ,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:D,...F}=n,G=ie({name:"Overlay",props:n,classes:b3,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:D,vars:h,varsResolver:BQ});return $.jsx(Et,{ref:e,...G("root"),mod:[{center:y,fixed:g},z],...F,children:v})});K1.classes=b3;K1.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 UQ({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(UQ,"getTargetNode");const kQ={reuseTargetNode:!0},v3=zt((t,e)=>{const{children:n,target:r,reuseTargetNode:a,...c}=vt("Portal",kQ,t),[f,d]=A.useState(!1),h=A.useRef(null);return Jl(()=>(d(!0),h.current=UQ({target:r,reuseTargetNode:a,...c}),ab(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:j1.createPortal($.jsx($.Fragment,{children:n}),h.current)});v3.displayName="@mantine/core/Portal";const up=zt(({withinPortal:t=!0,children:e,...n},r)=>$R()==="test"||!t?$.jsx($.Fragment,{children:e}):$.jsx(v3,{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"),Kd={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"}}},nC={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function HQ({transition:t,state:e,duration:n,timingFunction:r}){const a={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in Kd?{transitionProperty:Kd[t].transitionProperty,...a,...Kd[t].common,...Kd[t][nC[e]]}:{}:{transitionProperty:t.transitionProperty,...a,...t.common,...t[nC[e]]}}o(HQ,"getTransitionStyles");function FQ({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:a,onExit:c,onEntered:f,onExited:d,enterDelay:h,exitDelay:g}){const y=Vr(),v=$1(),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),D=A.useRef(-1);function F(){window.clearTimeout(L.current),window.clearTimeout(z.current),cancelAnimationFrame(D.current)}o(F,"clearAllTimeouts");const G=o(B=>{F();const H=B?a:c,et=B?f:d,nt=E?0:B?t:e;C(nt),nt===0?(typeof H=="function"&&H(),typeof et=="function"&&et(),M(B?"entered":"exited")):D.current=requestAnimationFrame(()=>{gu.flushSync(()=>{M(B?"pre-entering":"pre-exiting")}),D.current=requestAnimationFrame(()=>{typeof H=="function"&&H(),M(B?"entering":"exiting"),L.current=window.setTimeout(()=>{typeof et=="function"&&et(),M(B?"entered":"exited")},nt)})})},"handleStateChange"),P=o(B=>{if(F(),typeof(B?h:g)!="number"){G(B);return}z.current=window.setTimeout(()=>{G(B)},B?h:g)},"handleTransitionWithDelay");return np(()=>{P(r)},[r]),A.useEffect(()=>()=>{F()},[]),{transitionDuration:x,transitionStatus:w,transitionTimingFunction:n||"ease"}}o(FQ,"useTransition");function bf({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=$R(),{transitionDuration:C,transitionStatus:w,transitionTimingFunction:M}=FQ({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(HQ({transition:e,duration:C,state:w,timingFunction:M}))})}o(bf,"Transition$2");bf.displayName="@mantine/core/Transition";function X1({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const a=mV(e),c=ya(a,r),f=RV(t);return f?A.cloneElement(f,{[n]:c}):t}o(X1,"FocusTrap");function S3(t){return $.jsx(V1,{tabIndex:-1,"data-autofocus":!0,...t})}o(S3,"FocusTrapInitialFocus");X1.displayName="@mantine/core/FocusTrap";S3.displayName="@mantine/core/FocusTrapInitialFocus";X1.InitialFocus=S3;var ri={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 x3=A.forwardRef(({className:t,...e},n)=>$.jsxs(Et,{component:"span",className:dr(ri.barsLoader,t),...e,ref:n,children:[$.jsx("span",{className:ri.bar}),$.jsx("span",{className:ri.bar}),$.jsx("span",{className:ri.bar})]}));x3.displayName="@mantine/core/Bars";const E3=A.forwardRef(({className:t,...e},n)=>$.jsxs(Et,{component:"span",className:dr(ri.dotsLoader,t),...e,ref:n,children:[$.jsx("span",{className:ri.dot}),$.jsx("span",{className:ri.dot}),$.jsx("span",{className:ri.dot})]}));E3.displayName="@mantine/core/Dots";const w3=A.forwardRef(({className:t,...e},n)=>$.jsx(Et,{component:"span",className:dr(ri.ovalLoader,t),...e,ref:n}));w3.displayName="@mantine/core/Oval";const T3={bars:x3,oval:w3,dots:E3},PQ={loaders:T3,type:"oval"},qQ=(t,{size:e,color:n})=>({root:{"--loader-size":ze(e,"loader-size"),"--loader-color":n?oa(n,t):void 0}}),ic=zt((t,e)=>{const n=vt("Loader",PQ,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:ri,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=T3;ic.classes=ri;ic.displayName="@mantine/core/Loader";var oc={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const rC={orientation:"horizontal"},GQ=(t,{borderWidth:e})=>({group:{"--ai-border-width":ut(e)}}),Q1=zt((t,e)=>{const n=vt("ActionIconGroup",rC,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",rC,t),w=ie({name:"ActionIconGroup",props:n,classes:oc,className:r,style:a,classNames:c,styles:f,unstyled:d,attributes:x,vars:g,varsResolver:GQ,rootSelector:"group"});return $.jsx(Et,{...w("group"),ref:e,variant:v,mod:[{"data-orientation":h},E],role:"group",...C})});Q1.classes=oc;Q1.displayName="@mantine/core/ActionIconGroup";const YQ=(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":ze(f,"section-height"),"--section-padding-x":ze(f,"section-padding-x"),"--section-fz":or(f),"--section-radius":e===void 0?void 0:Yr(e),"--section-bg":n||a?d.background:void 0,"--section-color":d.color,"--section-bd":n||a?d.border:void 0}}},Z1=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:YQ,rootSelector:"groupSection"});return $.jsx(Et,{...w("groupSection"),ref:e,variant:g,...C})});Z1.classes=oc;Z1.displayName="@mantine/core/ActionIconGroupSection";const VQ=(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":ze(e,"ai-size"),"--ai-radius":n===void 0?void 0:Yr(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}}},xo=Gn((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":D,autoContrast:F,mod:G,attributes:P,...B}=n,H=ie({name:["ActionIcon",C],props:n,className:r,style:h,classes:oc,classNames:f,styles:d,unstyled:a,attributes:P,vars:M,varsResolver:VQ});return $.jsxs(rc,{...H("root",{active:!z&&!g&&!D}),...B,unstyled:a,variant:c,size:v,disabled:z||g,ref:e,mod:[{loading:g,disabled:z||D},G],children:[typeof g=="boolean"&&$.jsx(bf,{mounted:g,transition:"slide-down",duration:150,children:o(et=>$.jsx(Et,{component:"span",...H("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},...H("icon"),children:L})]})});xo.classes=oc;xo.displayName="@mantine/core/ActionIcon";xo.Group=Q1;xo.GroupSection=Z1;const A3=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"})}));A3.displayName="@mantine/core/CloseIcon";var C3={root:"m_86a44da5","root--subtle":"m_220c80f2"};const KQ={variant:"subtle"},XQ=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":ze(e,"cb-size"),"--cb-radius":n===void 0?void 0:Yr(n),"--cb-icon-size":ut(r)}}),vf=Gn((t,e)=>{const n=vt("CloseButton",KQ,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,...D}=n,F=ie({name:z||"CloseButton",props:n,className:d,style:g,classes:C3,classNames:h,styles:y,unstyled:v,attributes:L,vars:c,varsResolver:XQ});return $.jsxs(rc,{ref:e,...D,unstyled:v,variant:C,disabled:x,mod:[{disabled:x||E},M],...F("root",{variant:C,active:!x&&!E}),children:[w||$.jsx(A3,{}),a]})});vf.classes=C3;vf.displayName="@mantine/core/CloseButton";function QQ(t){return A.Children.toArray(t).filter(Boolean)}o(QQ,"filterFalsyChildren");var $3={root:"m_4081bf90"};const ZQ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},JQ=(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}}),J1=zt((t,e)=>{const n=vt("Group",ZQ,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:D,...F}=n,G=QQ(h),P=G.length,B=tp(g??"md"),et={childWidth:`calc(${100/P}% - (${B} - ${B} / ${P}))`},nt=ie({name:"Group",props:n,stylesCtx:et,className:a,style:c,classes:$3,classNames:r,styles:f,unstyled:d,attributes:D,vars:w,varsResolver:JQ});return $.jsx(Et,{...nt("root"),ref:e,variant:M,mod:[{grow:x},z],size:L,...F,children:G})});J1.classes=$3;J1.displayName="@mantine/core/Group";const[WQ,Eo]=ga("ModalBase component was not found in tree");function tZ({opened:t,transitionDuration:e}){const[n,r]=A.useState(t),a=A.useRef(-1),f=$1()?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(tZ,"useLockScroll");function eZ({id:t,transitionProps:e,opened:n,trapFocus:r,closeOnEscape:a,onClose:c,returnFocus:f}){const d=TR(t),[h,g]=A.useState(!1),[y,v]=A.useState(!1),E=typeof e?.duration=="number"?e?.duration:200,x=tZ({opened:n,transitionDuration:E});return bV("keydown",C=>{C.key==="Escape"&&a&&!C.isComposing&&n&&C.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&c()},{capture:!0}),aV({opened:n,shouldReturnFocus:r&&f}),{_id:d,titleMounted:h,bodyMounted:y,shouldLockScroll:x,setTitleMounted:g,setBodyMounted:v}}o(eZ,"useModal");const M3=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:D,removeScrollProps:F,...G},P)=>{const{_id:B,titleMounted:H,bodyMounted:et,shouldLockScroll:nt,setTitleMounted:ot,setBodyMounted:ft}=eZ({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(WQ,{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:H,bodyMounted:et,setTitleMounted:ot,setBodyMounted:ft,trapFocus:d,closeOnEscape:h,zIndex:w,unstyled:D},children:$.jsx(qm,{enabled:nt&&x,...V,children:$.jsx(Et,{ref:P,...G,__vars:{...z,"--mb-z-index":(w||gi("modal")).toString(),"--mb-shadow":vR(M),"--mb-padding":tp(L)},children:C})},mt)})})});M3.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 nZ(){const t=Eo();return A.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}o(nZ,"useModalBodyId");const O3=A.forwardRef(({className:t,...e},n)=>{const r=nZ(),a=Eo();return $.jsx(Et,{ref:n,...e,id:r,className:dr({[Dl.body]:!a.unstyled},t)})});O3.displayName="@mantine/core/ModalBaseBody";const R3=A.forwardRef(({className:t,onClick:e,...n},r)=>{const a=Eo();return $.jsx(vf,{ref:r,...n,onClick:o(c=>{a.onClose(),e?.(c)},"onClick"),className:dr({[Dl.close]:!a.unstyled},t),unstyled:a.unstyled})});R3.displayName="@mantine/core/ModalBaseCloseButton";const N3=A.forwardRef(({transitionProps:t,className:e,innerProps:n,onKeyDown:r,style:a,...c},f)=>{const d=Eo();return $.jsx(bf,{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:dr({[Dl.inner]:!d.unstyled},n.className),children:$.jsx(X1,{active:d.opened&&d.trapFocus,innerRef:f,children:$.jsx(So,{...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:dr({[Dl.content]:!d.unstyled},e),unstyled:d.unstyled,children:c.children})})}),"children")})});N3.displayName="@mantine/core/ModalBaseContent";const _3=A.forwardRef(({className:t,...e},n)=>{const r=Eo();return $.jsx(Et,{component:"header",ref:n,className:dr({[Dl.header]:!r.unstyled},t),...e})});_3.displayName="@mantine/core/ModalBaseHeader";const rZ={duration:200,timingFunction:"ease",transition:"fade"};function iZ(t){const e=Eo();return{...rZ,...e.transitionProps,...t}}o(iZ,"useModalTransition");const D3=A.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...a},c)=>{const f=Eo(),d=iZ(e);return $.jsx(bf,{mounted:r!==void 0?r:f.opened,...d,transition:"fade",children:o(h=>$.jsx(K1,{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")})});D3.displayName="@mantine/core/ModalBaseOverlay";function oZ(){const t=Eo();return A.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}o(oZ,"useModalTitle");const j3=A.forwardRef(({className:t,...e},n)=>{const r=oZ(),a=Eo();return $.jsx(Et,{component:"h2",ref:n,className:dr({[Dl.title]:!a.unstyled},t),...e,id:r})});j3.displayName="@mantine/core/ModalBaseTitle";function sZ({children:t}){return $.jsx($.Fragment,{children:t})}o(sZ,"NativeScrollArea");const[aZ,lZ]=C1({size:"sm"});var Xr={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 I3=zt((t,e)=>{const n=vt("InputClearButton",null,t),{size:r,variant:a,vars:c,classNames:f,styles:d,...h}=n,g=lZ(),{resolvedClassNames:y,resolvedStyles:v}=jR({classNames:f,styles:d,props:n});return $.jsx(vf,{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})});I3.displayName="@mantine/core/InputClearButton";const cZ={xs:7,sm:8,md:10,lg:12,xl:15};function uZ({__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:cZ[a]},children:[c,n||r]}):n===null?null:n||c||r}o(uZ,"InputClearSection");const[fZ,fp]=C1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),dZ=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${or(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:Xr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:E,rootSelector:"description",vars:h,varsResolver:dZ}),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=Xr;dp.displayName="@mantine/core/InputDescription";const mZ=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${or(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:Xr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:y,rootSelector:"error",vars:h,varsResolver:mZ}),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=Xr;mp.displayName="@mantine/core/InputError";const iC={labelElement:"label"},hZ=(t,{size:e})=>({label:{"--input-label-size":or(e),"--input-asterisk-color":void 0}}),hp=zt((t,e)=>{const n=vt("InputLabel",iC,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,...D}=vt("InputLabel",iC,n),F=ie({name:["InputWrapper",w],props:n,classes:Xr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:z,rootSelector:"label",vars:h,varsResolver:hZ}),G=fp(),P=G?.getStyles||F;return $.jsxs(Et,{...P("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"),...D,children:[C,v&&$.jsx("span",{...P("required"),"aria-hidden":!0,children:" *"})]})});hp.classes=Xr;hp.displayName="@mantine/core/InputLabel";const W1=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:Xr,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})});W1.classes=Xr;W1.displayName="@mantine/core/InputPlaceholder";function pZ(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(pZ,"getInputOffsets");const gZ={labelElement:"label",inputContainer:o(t=>t,"inputContainer"),inputWrapperOrder:["label","description","input","error"]},yZ=(t,{size:e})=>({label:{"--input-label-size":or(e),"--input-asterisk-color":void 0},error:{"--input-error-size":e===void 0?void 0:`calc(${or(e)} - ${ut(2)})`},description:{"--input-description-size":e===void 0?void 0:`calc(${or(e)} - ${ut(2)})`}}),tS=zt((t,e)=>{const n=vt("InputWrapper",gZ,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:D,labelElement:F,children:G,withAsterisk:P,id:B,required:H,__stylesApiProps:et,mod:nt,attributes:ot,...ft}=n,mt=ie({name:["InputWrapper",v],props:et||n,classes:Xr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:ot,vars:h,varsResolver:yZ}),V={size:g,variant:y,__staticSelector:v},J=TR(B),R=typeof P=="boolean"?P:H,U=D?.id||`${J}-error`,I=z?.id||`${J}-description`,tt=J,it=!!w&&typeof w!="boolean",N=!!M,Y=`${it?U:""} ${N?I:""}`,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:R,...V,...L,children:C},"label"),yt=N&&$.jsx(dp,{...z,...V,size:z?.size||V.size,id:z?.id||I,children:M},"description"),Ct=$.jsx(A.Fragment,{children:E(G)},"input"),te=it&&A.createElement(mp,{...D,...V,size:D?.size||V.size,key:"error",id:D?.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(fZ,{value:{getStyles:mt,describedBy:lt,inputId:tt,labelId:dt,...pZ(x,{hasDescription:N,hasError:it})},children:$.jsx(Et,{ref:e,variant:y,size:g,mod:[{error:!!w},nt],...mt("root"),...ft,children:Kt})})});tS.classes=Xr;tS.displayName="@mantine/core/InputWrapper";const bZ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},vZ=(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":ze(e.size,"input-height"),"--input-fz":or(e.size),"--input-radius":e.radius===void 0?void 0:Yr(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?ze(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),hr=Gn((t,e)=>{const n=vt("Input",bZ,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:D,rightSectionWidth:F,rightSectionPointerEvents:G,leftSectionPointerEvents:P,variant:B,vars:H,pointer:et,multiline:nt,radius:ot,id:ft,withAria:mt,withErrorStyles:V,mod:J,inputSize:R,attributes:U,__clearSection:I,__clearable:tt,__defaultRightSection:it,...N}=n,{styleProps:Y,rest:lt}=_1(N),dt=fp(),ht={offsetBottom:dt?.offsetBottom,offsetTop:dt?.offsetTop},yt=ie({name:["Input",g],props:y||n,classes:Xr,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:U,stylesCtx:ht,rootSelector:"wrapper",vars:H,varsResolver:vZ}),Ct=mt?{required:h,disabled:C,"aria-invalid":!!x,"aria-describedby":dt?.describedBy,id:dt?.inputId||ft}:{},te=uZ({__clearable:tt,__clearSection:I,rightSection:z,__defaultRightSection:it,size:v});return $.jsx(aZ,{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:R,...yt("input")}),te&&$.jsx("div",{...D,"data-position":"right",...yt("section",{className:D?.className,style:D?.style}),children:te})]})})});hr.classes=Xr;hr.Wrapper=tS;hr.Label=hp;hr.Error=mp;hr.Description=dp;hr.Placeholder=W1;hr.ClearButton=I3;hr.displayName="@mantine/core/Input";function SZ(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:D,style:F,inputContainer:G,inputWrapperOrder:P,withAsterisk:B,variant:H,vars:et,mod:nt,attributes:ot,...ft}=r,{styleProps:mt,rest:V}=_1(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:D,style:F,inputContainer:G,inputWrapperOrder:P,withAsterisk:B,variant:H,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:D,__staticSelector:E,__stylesApiProps:x||r,error:f,variant:H,id:z,attributes:ot}}}o(SZ,"useInputProps");const xZ={__staticSelector:"InputBase",withAria:!0,size:"sm"},pp=Gn((t,e)=>{const{inputProps:n,wrapperProps:r,...a}=SZ("InputBase",xZ,t);return $.jsx(hr.Wrapper,{...r,children:$.jsx(hr,{...n,...a,ref:e})})});pp.classes={...hr.classes,...hr.Wrapper.classes};pp.displayName="@mantine/core/InputBase";const EZ={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 z3={root:"m_8bffd616"};const sc=Gn((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:z3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:h}),D=Vr(),F=LR(),G=zR({styleProps:{gap:g,rowGap:y,columnGap:v,align:E,justify:x,wrap:C,direction:w},theme:D,data:EZ});return $.jsxs($.Fragment,{children:[G.hasResponsiveStyles&&$.jsx(IR,{selector:`.${F}`,styles:G.styles,media:G.media}),$.jsx(Et,{ref:e,...z("root",{className:F,style:Wh(G.inlineStyles)}),...L})]})});sc.classes=z3;sc.displayName="@mantine/core/Flex";var L3={root:"m_b6d8b162"};function wZ(t){if(t==="start")return"start";if(t==="end"||t)return"end"}o(wZ,"getTextTruncate");const TZ={inherit:!1},AZ=(t,{variant:e,lineClamp:n,gradient:r,size:a,color:c})=>({root:{"--text-fz":or(a),"--text-lh":rV(a),"--text-gradient":e==="gradient"?lb(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":c?oa(c,t):void 0}}),xs=Gn((t,e)=>{const n=vt("Text",TZ,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:D,...F}=n,G=ie({name:["Text",g],props:n,classes:L3,className:v,style:E,classNames:x,styles:C,unstyled:w,attributes:D,vars:y,varsResolver:AZ});return $.jsx(Et,{...G("root",{focusable:!0}),ref:e,component:h?"span":"p",variant:M,mod:[{"data-truncate":wZ(a),"data-line-clamp":typeof r=="number","data-inline":c,"data-inherit":f},L],size:z,...F})});xs.classes=L3;xs.displayName="@mantine/core/Text";var B3={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const CZ=(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":ze(c,"badge-height"),"--badge-padding-x":ze(c,"badge-padding-x"),"--badge-fz":ze(c,"badge-fz"),"--badge-radius":d||e===void 0?void 0:Yr(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"?oa(n,t):void 0}}},ba=Gn((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:D,attributes:F,...G}=n,P=ie({name:"Badge",props:n,classes:B3,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:F,vars:h,varsResolver:CZ});return $.jsxs(Et,{variant:w,mod:[{block:M,circle:z,"with-right-section":!!x,"with-left-section":!!E},D],...P("root",{variant:w}),ref:e,...G,children:[E&&$.jsx("span",{...P("section"),"data-position":"left",children:E}),$.jsx("span",{...P("label"),children:C}),x&&$.jsx("span",{...P("section"),"data-position":"right",children:x})]})});ba.classes=B3;ba.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 oC={orientation:"horizontal"},$Z=(t,{borderWidth:e})=>({group:{"--button-border-width":ut(e)}}),eS=zt((t,e)=>{const n=vt("ButtonGroup",oC,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",oC,t),w=ie({name:"ButtonGroup",props:n,classes:ac,className:r,style:a,classNames:c,styles:f,unstyled:d,attributes:x,vars:g,varsResolver:$Z,rootSelector:"group"});return $.jsx(Et,{...w("group"),ref:e,variant:v,mod:[{"data-orientation":h},E],role:"group",...C})});eS.classes=ac;eS.displayName="@mantine/core/ButtonGroup";const MZ=(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":ze(f,"section-height"),"--section-padding-x":ze(f,"section-padding-x"),"--section-fz":f?.includes("compact")?or(f.replace("compact-","")):or(f),"--section-radius":e===void 0?void 0:Yr(e),"--section-bg":n||a?d.background:void 0,"--section-color":d.color,"--section-bd":n||a?d.border:void 0}}},nS=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:MZ,rootSelector:"groupSection"});return $.jsx(Et,{...w("groupSection"),ref:e,variant:g,...C})});nS.classes=ac;nS.displayName="@mantine/core/ButtonGroupSection";const OZ={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ut(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},RZ=(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":ze(c,"button-height"),"--button-padding-x":ze(c,"button-padding-x"),"--button-fz":c?.includes("compact")?or(c.replace("compact-","")):or(c),"--button-radius":e===void 0?void 0:Yr(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}}},En=Gn((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:D,"data-disabled":F,autoContrast:G,mod:P,attributes:B,...H}=n,et=ie({name:"Button",props:n,classes:ac,className:c,style:r,classNames:L,styles:z,unstyled:D,attributes:B,vars:a,varsResolver:RZ}),nt=!!g,ot=!!y;return $.jsxs(rc,{ref:e,...et("root",{active:!d&&!C&&!F}),unstyled:D,variant:E,disabled:d||C,mod:[{disabled:d||F,loading:C,block:v,"with-left-section":nt,"with-right-section":ot},P],...H,children:[typeof C=="boolean"&&$.jsx(bf,{mounted:C,transition:OZ,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})]})]})});En.classes=ac;En.displayName="@mantine/core/Button";En.Group=eS;En.GroupSection=nS;const[NZ,_Z]=ga("Card component was not found in tree");var rS={root:"m_e615b15f",section:"m_599a2148"};const gp=Gn((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=_Z();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=rS;gp.displayName="@mantine/core/CardSection";const DZ=(t,{padding:e})=>({root:{"--card-padding":tp(e)}}),Es=Gn((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:rS,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:h,varsResolver:DZ}),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(NZ,{value:{getStyles:x},children:$.jsx(So,{ref:e,unstyled:d,...x("root"),...E,children:w})})});Es.classes=rS;Es.displayName="@mantine/core/Card";Es.Section=gp;var U3={root:"m_7485cace"};const jZ=(t,{size:e,fluid:n})=>({root:{"--container-size":n?void 0:ze(e,"container-size")}}),iS=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:U3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:h,varsResolver:jZ});return $.jsx(Et,{ref:e,mod:[{fluid:g,strategy:E||"block"},y],...C("root"),...x})});iS.classes=U3;iS.displayName="@mantine/core/Container";function sC({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(sC,"getMarkColor");var k3={root:"m_bcb3f3c2"};const IZ={color:"yellow"},zZ=(t,{color:e})=>({root:{"--mark-bg-dark":sC({color:e,theme:t,defaultShade:5}),"--mark-bg-light":sC({color:e,theme:t,defaultShade:2})}}),oS=zt((t,e)=>{const n=vt("Mark",IZ,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:k3,classNames:r,styles:f,unstyled:d,attributes:v,vars:h,varsResolver:zZ});return $.jsx(Et,{component:"mark",ref:e,variant:y,...x("root"),...E})});oS.classes=k3;oS.displayName="@mantine/core/Mark";function aC(t){return t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}o(aC,"escapeRegex");function LZ(t,e){if(e==null)return[{chunk:t,highlighted:!1}];const n=Array.isArray(e)?e.map(aC):aC(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(LZ,"highlighter");const sS=Gn((t,e)=>{const{unstyled:n,children:r,highlight:a,highlightStyles:c,color:f,...d}=vt("Highlight",null,t),h=LZ(r,a);return $.jsx(xs,{unstyled:n,ref:e,...d,__staticSelector:"Highlight",children:h.map(({chunk:g,highlighted:y},v)=>y?$.jsx(oS,{unstyled:n,color:f,style:c,"data-highlight":g,children:g},v):$.jsx("span",{children:g},v))})});sS.classes=xs.classes;sS.displayName="@mantine/core/Highlight";function vb(){return vb=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},vb.apply(null,arguments)}o(vb,"_extends");function H3(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(H3,"_objectWithoutPropertiesLoose");var wo={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const[BZ,lc]=ga("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(O3,{ref:e,...g.getStyles("body",{classNames:r,style:c,styles:f,className:a}),...h})});yp.classes=wo;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(R3,{ref:e,...g.getStyles("close",{classNames:r,style:c,styles:f,className:a}),...h})});bp.classes=wo;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||sZ;return $.jsx(N3,{...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=wo;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(_3,{ref:e,...g.getStyles("header",{classNames:r,style:c,styles:f,className:a}),...h})});Sp.classes=wo;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(D3,{ref:e,...g.getStyles("overlay",{classNames:r,style:c,styles:f,className:a}),...h})});xp.classes=wo;xp.displayName="@mantine/core/ModalOverlay";const UZ={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:gi("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},kZ=(t,{radius:e,size:n,yOffset:r,xOffset:a})=>({root:{"--modal-radius":e===void 0?void 0:Yr(e),"--modal-size":ze(n,"modal-size"),"--modal-y-offset":ut(r),"--modal-x-offset":ut(a)}}),Ep=zt((t,e)=>{const n=vt("ModalRoot",UZ,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:wo,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:h,varsResolver:kZ});return $.jsx(BZ,{value:{yOffset:g,scrollAreaComponent:y,getStyles:z,fullScreen:E},children:$.jsx(M3,{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=wo;Ep.displayName="@mantine/core/ModalRoot";const[HZ,FZ]=C1();function F3({children:t}){const[e,n]=A.useState([]),[r,a]=A.useState(gi("modal"));return $.jsx(HZ,{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(F3,"ModalStack");F3.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(j3,{ref:e,...g.getStyles("title",{classNames:r,style:c,styles:f,className:a}),...h})});wp.classes=wo;wp.displayName="@mantine/core/ModalTitle";const PZ={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:gi("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Qr=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",PZ,t),x=FZ(),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||gi("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})]})]})});Qr.classes=wo;Qr.displayName="@mantine/core/Modal";Qr.Root=Ep;Qr.Overlay=xp;Qr.Content=vp;Qr.Body=yp;Qr.Header=Sp;Qr.Title=wp;Qr.CloseButton=bp;Qr.Stack=F3;var P3={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},GZ=(t,{radius:e,color:n})=>({root:{"--notification-radius":e===void 0?void 0:Yr(e),"--notification-color":n?oa(n,t):void 0}}),aS=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:D,loaderProps:F,role:G,attributes:P,...B}=n,H=ie({name:"Notification",classes:P3,props:n,className:r,style:w,classNames:C,styles:M,unstyled:L,attributes:P,vars:z,varsResolver:GZ});return $.jsxs(Et,{...H("root"),mod:[{"data-with-icon":!!y||f,"data-with-border":h},D],ref:e,role:G||"alert",...B,children:[y&&!f&&$.jsx("div",{...H("icon"),children:y}),f&&$.jsx(ic,{size:28,color:a,...F,...H("loader")}),$.jsxs("div",{...H("body"),children:[g&&$.jsx("div",{...H("title"),children:g}),$.jsx(Et,{...H("description"),mod:{"data-with-title":!!g},children:v})]}),d&&$.jsx(vf,{iconSize:16,color:"gray",...x,unstyled:L,onClick:E,...H("closeButton")})]})});aS.classes=P3;aS.displayName="@mantine/core/Notification";var Sf={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd","stripes-animation-vertical":"m_e0fb7a86",label:"m_91e40b74"};const[YZ,q3]=ga("Progress.Root component was not found in tree"),lS=zt((t,e)=>{const{classNames:n,className:r,style:a,styles:c,vars:f,...d}=vt("ProgressLabel",null,t),h=q3();return $.jsx(Et,{ref:e,...h.getStyles("label",{className:r,style:a,classNames:n,styles:c}),...d})});lS.classes=Sf;lS.displayName="@mantine/core/ProgressLabel";const VZ=(t,{size:e,radius:n,transitionDuration:r})=>({root:{"--progress-size":ze(e,"progress-size"),"--progress-radius":n===void 0?void 0:Yr(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:Sf,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:h,varsResolver:VZ});return $.jsx(YZ,{value:{getStyles:w,autoContrast:g},children:$.jsx(Et,{ref:e,mod:[{orientation:v},x],...w("root"),...C})})});Tp.classes=Sf;Tp.displayName="@mantine/core/ProgressRoot";const KZ={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",KZ,t),C=q3(),w=Vr(),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":oa(g,w),"--progress-label-color":bK(C.autoContrast,w)?RR({color:g,theme:w,autoContrast:C.autoContrast}):void 0}})});Ap.classes=Sf;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}=jR({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=Sf;cc.displayName="@mantine/core/Progress";cc.Section=Ap;cc.Root=Tp;cc.Label=lS;const ws=zt((t,e)=>{const n=vt("TextInput",null,t);return $.jsx(pp,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});ws.classes=pp.classes;ws.displayName="@mantine/core/TextInput";const XZ={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:En.extend({defaultProps:{fw:600},styles:{root:{letterSpacing:"0.02em"}}}),ActionIcon:xo.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Paper:So.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Card:Es.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),TextInput:ws.extend({styles:{input:{border:"1px solid var(--mantine-color-default-border)"}}}),Badge:ba.extend({defaultProps:{fw:600,variant:"outline"},styles:{root:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',letterSpacing:"0.04em",textTransform:"uppercase",fontSize:"0.65rem"}}})}},G3={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"]}},QZ={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:En.extend({defaultProps:{fw:700},styles:{root:{border:"2px solid currentColor",letterSpacing:"0.03em",textTransform:"uppercase",fontSize:"0.8125rem"}}}),ActionIcon:xo.extend({styles:{root:{border:"2px solid currentColor"}}}),Paper:So.extend({styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),Card:Es.extend({styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),TextInput:ws.extend({styles:{input:{border:"2px solid var(--mantine-color-default-border)"}}}),Badge:ba.extend({defaultProps:{fw:700,variant:"outline"},styles:{root:{textTransform:"uppercase",letterSpacing:"0.06em",fontSize:"0.65rem",border:"2px solid currentColor"}}})}},ZZ={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:En.extend({defaultProps:{fw:500},styles:{root:{transition:"background-color 0.15s ease, opacity 0.15s ease"}}}),ActionIcon:xo.extend({styles:{root:{transition:"background-color 0.15s ease, opacity 0.15s ease"}}}),Paper:So.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Card:Es.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),TextInput:ws.extend({styles:{input:{border:"1px solid var(--mantine-color-default-border)"}}}),Badge:ba.extend({defaultProps:{fw:500}})}},JZ={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:En.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:xo.extend({styles:{root:{border:"2px solid currentColor",boxShadow:"2px 2px 0 0 rgba(100, 80, 140, 0.15)"}}}),Paper:So.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),Card:Es.extend({defaultProps:{shadow:"sm"},styles:{root:{border:"2px solid var(--mantine-color-default-border)"}}}),TextInput:ws.extend({styles:{input:{border:"2px solid var(--mantine-color-default-border)",transition:"box-shadow 0.15s ease, border-color 0.15s ease"}}}),Badge:ba.extend({defaultProps:{fw:600},styles:{root:{border:"2px solid currentColor"}}})}},WZ={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:En.extend({defaultProps:{fw:600},styles:{root:{border:"1px solid currentColor",textTransform:"uppercase",letterSpacing:"0.05em",fontSize:"0.8125rem"}}}),ActionIcon:xo.extend({styles:{root:{border:"1px solid currentColor"}}}),Paper:So.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),Card:Es.extend({styles:{root:{border:"1px solid var(--mantine-color-default-border)"}}}),TextInput:ws.extend({styles:{input:{border:"1px solid var(--mantine-color-default-border)",fontFamily:"inherit"}}}),Badge:ba.extend({defaultProps:{fw:600},styles:{root:{border:"1px solid currentColor",textTransform:"uppercase",letterSpacing:"0.05em"}}})}},Sb=pi({name:"alepha.ui.themeList",schema:_.array(_.json()),default:[cR,G3,JZ,WZ,XZ,ZZ,QZ]}),io=class io{alepha=Ot(Ke);cookie=km({name:"theme",schema:hu.schema,ttl:[1,"year"]});overridesCookie=km({name:"themeOverrides",schema:pu.schema,ttl:[1,"year"]});head=T1(()=>{const e=this.getTheme();return!e||!e.name?{}:{htmlAttributes:{"data-theme":this.slugify(e.name)},...e.head}});setTheme(e){if(!this.alepha.store.get(Sb)[e])throw new Ut(`Theme with index ${e} not found`);this.cookie.set({index:e}),this.alepha.store.set(hu,{index:e}),this.alepha.isBrowser()&&this.alepha.inject(ia).refreshGlobalHead()}slugify(e){return e.toLowerCase().replace(/\s+/g,"-")}getTheme(){const e=this.getThemeIndex(),n=this.alepha.store.get(Sb),r=n[e]||n[0]||cR,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:io.SCALE_VALUES[a.scale]??1}};if(a.fontSize&&a.fontSize!=="md"){const f=io.FONT_SIZE_MULTIPLIERS[a.fontSize]??1,d=r.fontSizes??io.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(ia).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(io,"ThemeProvider"),sn(io,"FONT_SIZE_MULTIPLIERS",{xs:.85,sm:.925,md:1,lg:1.1,xl:1.25}),sn(io,"SCALE_VALUES",{xs:.85,sm:.925,md:1,lg:1.1,xl:1.25}),sn(io,"DEFAULT_FONT_SIZES",{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"});let Lu=io;const cS=A.createContext(null);cS.displayName="@mantine/modals/ModalsContext";function tJ(){const t=A.useContext(cS);if(!t)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return t}o(tJ,"useModals");function eJ({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=tJ(),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(J1,{mt:g?0:"md",justify:"flex-end",...f,children:[$.jsx(En,{variant:"default",...e,onClick:x,children:e?.children||y}),$.jsx(En,{...n,onClick:C,children:n?.children||v})]})]})}o(eJ,"ConfirmModal");const[nJ,va]=MV("mantine-modals"),rJ=o(t=>{const e=t.modalId||is();return va("openModal")({...t,modalId:e}),e},"openModal"),iJ=o(t=>{const e=t.modalId||is();return va("openConfirmModal")({...t,modalId:e}),e},"openConfirmModal"),oJ=o(t=>{const e=t.modalId||is();return va("openContextModal")({...t,modalId:e}),e},"openContextModal"),sJ=va("closeModal"),aJ=va("closeAllModals"),lJ=o(t=>va("updateModal")(t),"updateModal"),cJ=o(t=>va("updateContextModal")(t),"updateContextModal"),y0={open:rJ,close:sJ,closeAll:aJ,openConfirmModal:iJ,openContextModal:oJ,updateModal:lJ,updateContextModal:cJ};function lC(t,e){e&&t.type==="confirm"&&t.props.onCancel?.(),t.props.onClose?.()}o(lC,"handleCloseModal");function uJ(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;lC(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=>{lC(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(uJ,"modalsReducer");function fJ(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(fJ,"separateConfirmModalProps");function dJ({children:t,modalProps:e,labels:n,modals:r}){const[a,c]=A.useReducer(uJ,{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,...D})=>{const F=z||is();return c({type:"OPEN",modal:{id:F,type:"content",props:D}}),F},[c]),g=A.useCallback(({modalId:z,...D})=>{const F=z||is();return c({type:"OPEN",modal:{id:F,type:"confirm",props:D}}),F},[c]),y=A.useCallback((z,{modalId:D,...F})=>{const G=D||is();return c({type:"OPEN",modal:{id:G,type:"context",props:F,ctx:z}}),G},[c]),v=A.useCallback((z,D)=>{c({type:"CLOSE",modalId:z,canceled:D})},[f,c]),E=A.useCallback(({modalId:z,...D})=>{c({type:"UPDATE",modalId:z,newProps:D})},[c]),x=A.useCallback(({modalId:z,...D})=>{c({type:"UPDATE",modalId:z,newProps:D})},[c]);nJ({openModal:h,openConfirmModal:g,openContextModal:o(({modal:z,...D})=>y(z,D),"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:D,...F}=z.props,G=r[z.ctx];return{modalProps:F,content:$.jsx(G,{innerProps:D,context:C,id:z.id})}}case"confirm":{const{modalProps:D,confirmProps:F}=fJ(z.props);return{modalProps:D,content:$.jsx(eJ,{...F,id:z.id,labels:z.props.labels||n})}}case"content":{const{children:D,...F}=z.props;return{modalProps:F,content:D}}default:return{modalProps:{},content:null}}},"getCurrentModal"),{modalProps:M,content:L}=w();return $.jsxs(cS.Provider,{value:C,children:[$.jsx(Qr,{zIndex:gi("modal")+1,...e,...M,opened:a.modals.length>0,onClose:o(()=>v(a.current?.id),"onClose"),children:L}),t]})}o(dJ,"ModalsProvider");const mJ=o(({options:t,onClose:e})=>$.jsxs($.Fragment,{children:[t?.message&&$.jsx(xs,{mb:"md",children:t.message}),$.jsx(sc,{justify:"flex-end",children:$.jsx(En,{onClick:e,children:t?.okLabel||"OK"})})]}),"AlertDialog"),hJ=o(({options:t,onConfirm:e})=>$.jsxs($.Fragment,{children:[t?.message&&$.jsx(xs,{mb:"md",children:t.message}),$.jsxs(sc,{justify:"flex-end",children:[$.jsx(En,{variant:"subtle",onClick:o(()=>e(!1),"onClick"),children:t?.cancelLabel||"Cancel"}),$.jsx(En,{color:t?.confirmColor||"blue",onClick:o(()=>e(!0),"onClick"),children:t?.confirmLabel||"Confirm"})]})]}),"ConfirmDialog"),pJ=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(xs,{mb:"md",children:t.message}),$.jsx(ws,{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(En,{variant:"subtle",onClick:o(()=>e(null),"onClick"),children:t?.cancelLabel||"Cancel"}),$.jsx(En,{onClick:c,disabled:t?.required&&!n.trim(),children:t?.submitLabel||"OK"})]})]})},"PromptDialog"),xx=class xx{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(mJ,{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(hJ,{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(pJ,{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(xx,"DialogService");let Xm=xx;function uS(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(uS,"createStore");function fS(t){return A.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}o(fS,"useStore");function gJ(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(gJ,"getDistributedNotifications");const yJ=o(()=>uS({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),"createNotificationsStore"),Sa=yJ(),bJ=o((t=Sa)=>fS(t),"useNotifications");function uc(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),a=gJ(r,n.defaultPosition,n.limit);t.setState({notifications:a.notifications,queue:a.queue,limit:n.limit,defaultPosition:n.defaultPosition})}o(uc,"updateNotificationsState");function vJ(t,e=Sa){const n=t.id||is();return uc(e,r=>t.id&&r.some(a=>a.id===t.id)?r:[...r,{...t,id:n}]),n}o(vJ,"showNotification");function Y3(t,e=Sa){return uc(e,n=>n.filter(r=>r.id===t?(r.onClose?.(r),!1):!0)),t}o(Y3,"hideNotification");function SJ(t,e=Sa){return uc(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}o(SJ,"updateNotification");function xJ(t=Sa){uc(t,()=>[])}o(xJ,"cleanNotifications");function EJ(t=Sa){uc(t,e=>e.slice(0,t.getState().limit))}o(EJ,"cleanNotificationsQueue");const cs={show:vJ,hide:Y3,update:SJ,clean:xJ,cleanQueue:EJ,updateState:uc};function xb(t,e){return xb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xb(t,e)}o(xb,"_setPrototypeOf");function V3(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,xb(t,e)}o(V3,"_inheritsLoose");const cC={disabled:!1},Qm=jr.createContext(null);var wJ=o(function(e){return e.scrollTop},"forceReflow"),yu="unmounted",Fs="exited",Ps="entering",hl="entered",Eb="exiting",To=(function(t){V3(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=Fs,c.appearStatus=Ps):h=hl:r.unmountOnExit||r.mountOnEnter?h=yu:h=Fs,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:Fs}: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!==Ps&&f!==hl&&(c=Ps):(f===Ps||f===hl)&&(c=Eb)}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===Ps){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:gu.findDOMNode(this);f&&wJ(f)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fs&&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||cC.disabled){this.safeSetState({status:hl},function(){c.props.onEntered(g)});return}this.props.onEnter(g,y),this.safeSetState({status:Ps},function(){c.props.onEntering(g,y),c.onTransitionEnd(E,function(){c.safeSetState({status:hl},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||cC.disabled){this.safeSetState({status:Fs},function(){a.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Eb},function(){a.props.onExiting(d),a.onTransitionEnd(f.exit,function(){a.safeSetState({status:Fs},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=H3(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return jr.createElement(Qm.Provider,{value:null},typeof f=="function"?f(a,d):jr.cloneElement(jr.Children.only(f),d))},"render"),e})(jr.Component);To.contextType=Qm;To.propTypes={};function fl(){}o(fl,"noop");To.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fl,onEntering:fl,onEntered:fl,onExit:fl,onExiting:fl,onExited:fl};To.UNMOUNTED=yu;To.EXITED=Fs;To.ENTERING=Ps;To.ENTERED=hl;To.EXITING=Eb;function TJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}o(TJ,"_assertThisInitialized");function dS(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(dS,"getChildMapping");function AJ(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(AJ,"mergeChildMappings");function Vs(t,e,n){return n[e]!=null?n[e]:t.props[e]}o(Vs,"getProp");function CJ(t,e){return dS(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(CJ,"getInitialChildMapping");function $J(t,e,n){var r=dS(t.children),a=AJ(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($J,"getNextChildMapping");var MJ=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},OJ={component:"div",childFactory:o(function(e){return e},"childFactory")},Jo=(function(t){V3(e,t);function e(r,a){var c;c=t.call(this,r,a)||this;var f=c.handleExited.bind(TJ(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?CJ(a,d):$J(a,f,d),firstRender:!1}},"getDerivedStateFromProps"),n.handleExited=o(function(a,c){var f=dS(this.props.children);a.key in f||(a.props.onExited&&a.props.onExited(c),this.mounted&&this.setState(function(d){var h=vb({},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=H3(a,["component","childFactory"]),h=this.state.contextValue,g=MJ(this.state.children).map(f);return delete d.appear,delete d.enter,delete d.exit,c===null?jr.createElement(Qm.Provider,{value:h},g):jr.createElement(Qm.Provider,{value:h},jr.createElement(c,d,g))},"render"),e})(jr.Component);Jo.propTypes={};Jo.defaultProps=OJ;const K3=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function RJ(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),K3.reduce((n,r)=>(n[r]=[],n),{}))}o(RJ,"getGroupedNotifications");const uC={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},NJ={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function _J({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:uC[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:NJ[f]},g={opacity:0,maxHeight:0,transform:uC[f]};return{...d,...{entering:h,entered:h,exiting:g,exited:g}[t]}}o(_J,"getNotificationStateStyles");function DJ(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}o(DJ,"getAutoClose");const X3=A.forwardRef(({data:t,onHide:e,autoClose:n,...r},a)=>{const{autoClose:c,message:f,...d}=t,h=DJ(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(aS,{...r,...d,onClose:v,ref:a,onMouseEnter:y,onMouseLeave:E,children:f})});X3.displayName="@mantine/notifications/NotificationContainer";var Q3={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const jJ=To,IJ={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:gi("overlay"),store:Sa,withinPortal:!0},zJ=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e?.toString(),"--notifications-container-width":ut(n)}}),Ao=zt((t,e)=>{const n=vt("Notifications",IJ,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,...D}=n,F=Vr(),G=bJ(M),P=pV(),B=$1(),H=A.useRef({}),et=A.useRef(0),ot=(F.respectReducedMotion?B:!1)?1:v,ft=ie({name:"Notifications",classes:Q3,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,vars:h,varsResolver:zJ});A.useEffect(()=>{M?.updateState(J=>({...J,limit:C||5,defaultPosition:g}))},[C,g]),np(()=>{G.notifications.length>et.current&&setTimeout(()=>P(),0),et.current=G.notifications.length},[G.notifications]);const mt=RJ(G.notifications,g),V=K3.reduce((J,R)=>(J[R]=mt[R].map(({style:U,...I})=>$.jsx(jJ,{timeout:ot,onEnter:o(()=>H.current[I.id].offsetHeight,"onEnter"),nodeRef:{current:H.current[I.id]},children:o(tt=>$.jsx(X3,{ref:o(it=>{it&&(H.current[I.id]=it)},"ref"),data:I,onHide:o(it=>Y3(it,M),"onHide"),autoClose:y,...ft("notification",{style:{..._J({state:tt,position:R,transitionDuration:ot,maxHeight:x}),...U}})}),"children")},I.id)),J),{});return $.jsxs(up,{withinPortal:z,...L,children:[$.jsx(Et,{...ft("root"),"data-position":"top-center",ref:e,...D,children:$.jsx(Jo,{children:V["top-center"]})}),$.jsx(Et,{...ft("root"),"data-position":"top-left",...D,children:$.jsx(Jo,{children:V["top-left"]})}),$.jsx(Et,{...ft("root",{className:qm.classNames.fullWidth}),"data-position":"top-right",...D,children:$.jsx(Jo,{children:V["top-right"]})}),$.jsx(Et,{...ft("root",{className:qm.classNames.fullWidth}),"data-position":"bottom-right",...D,children:$.jsx(Jo,{children:V["bottom-right"]})}),$.jsx(Et,{...ft("root"),"data-position":"bottom-left",...D,children:$.jsx(Jo,{children:V["bottom-left"]})}),$.jsx(Et,{...ft("root"),"data-position":"bottom-center",...D,children:$.jsx(Jo,{children:V["bottom-center"]})})]})});Ao.classes=Q3;Ao.displayName="@mantine/notifications/Notifications";Ao.show=cs.show;Ao.hide=cs.hide;Ao.update=cs.update;Ao.clean=cs.clean;Ao.cleanQueue=cs.cleanQueue;Ao.updateState=cs.updateState;var LJ={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 yi=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,...LJ[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 BJ=[["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"}]],UJ=yi("outline","alert-triangle","AlertTriangle",BJ);const kJ=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],HJ=yi("outline","check","Check",kJ);const FJ=[["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"}]],PJ=yi("outline","dashboard","Dashboard",FJ);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"}]],fC=yi("outline","database","Database",qJ);const GJ=[["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"}]],YJ=yi("outline","info-circle","InfoCircle",GJ);const VJ=[["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"}]],KJ=yi("outline","list","List",VJ);const XJ=[["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"}]],QJ=yi("outline","search","Search",XJ);const ZJ=[["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"}]],dC=yi("outline","settings","Settings",ZJ);const JJ=[["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"}]],WJ=yi("outline","sitemap","Sitemap",JJ);const tW=[["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"}]],eW=yi("outline","topology-ring","TopologyRing",tW);const nW=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],rW=yi("outline","x","X",nW),Ex=class Ex{raw=cs;options={default:{radius:"md",withBorder:!0,withCloseButton:!0,autoClose:5e3,position:"top-center"}};show(e){cs.show({...this.options.default,...e})}info(e){typeof e=="string"&&(e={message:e}),this.show({color:"blue",icon:$.jsx(YJ,{size:20}),title:"Info",message:"Information notification",...e})}success(e){typeof e=="string"&&(e={message:e}),this.show({color:"green",icon:$.jsx(HJ,{size:16}),title:"Success",message:"Operation completed successfully",...e})}warning(e){typeof e=="string"&&(e={message:e}),this.show({color:"yellow",icon:$.jsx(UJ,{size:20}),title:"Warning",message:"Please review this warning",...e})}danger(e){typeof e=="string"&&(e={message:e}),this.show({color:"red",icon:$.jsx(rW,{size:20}),title:"Error",message:"An error occurred",...e})}};o(Ex,"ToastService");let Bu=Ex;const wx=class wx{fetch(e,n={}){throw new Ut("Fetch is not available for this environment.")}render(e,n={}){throw new Ut("Render is not available for this environment.")}};o(wx,"ReactPageService");let Zm=wx;const mn=o(t=>us(Jm,t),"$page"),Tx=class Tx extends ii{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(Tx,"PagePrimitive");let Jm=Tx;mn[kn]=Jm;const Ax=class Ax{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 Ut(`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 Ut(`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 Ut(`Route '${n}' has an invalid param syntax`);if(d.startsWith(":")){const h=r[c].slice(1).replaceAll("}","");if(!h)throw new Ut(`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 Ut(`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(Ax,"RouterProvider");let wb=Ax;const Z3=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"),Cx=class Cx extends Ut{redirect;constructor(e){super("Redirection"),this.redirect=e}};o(Cx,"Redirection");let Zs=Cx;const J3=o(()=>{const[t]=Lm("alepha.react.router.state");if(!t)throw new Ut("Missing react router state");return t},"useRouterState"),um='ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace',W3=o(t=>t.alepha.isProduction()?$.jsx(oW,{error:t.error}):$.jsx(iW,{...t}),"ErrorViewer"),iW=o(t=>{const[e,n]=A.useState(!1),a=J3().url.pathname,c=o(()=>{const d=sW(t.error);typeof navigator<"u"&&navigator.clipboard&&(navigator.clipboard.writeText(d),n(!0),setTimeout(()=>n(!1),2e3))},"handleCopy"),f=aW(t.error);return $.jsx("div",{style:hn.overlay,children:$.jsxs("div",{style:hn.card,children:[$.jsxs("div",{style:hn.header,children:[$.jsxs("div",{style:hn.headerLeft,children:[$.jsx("div",{style:hn.icon,children:"!"}),$.jsx("div",{style:hn.title,children:t.error.name||"Error"})]}),$.jsxs("div",{style:hn.headerRight,children:[t.onRetry&&$.jsx("button",{type:"button",style:hn.retryBtn,onClick:t.onRetry,children:"Retry"}),$.jsx("button",{type:"button",style:hn.copyBtn,onClick:c,children:e?"Copied":"Copy"})]})]}),$.jsx(t4,{error:t.error}),$.jsxs("div",{style:hn.meta,children:[a&&$.jsx("span",{style:hn.metaItem,children:a}),$.jsx("span",{style:hn.metaItem,children:new Date().toLocaleTimeString()}),f&&$.jsx("span",{style:hn.statusBadge,children:f})]})]})})},"DevErrorPage"),t4=o(t=>{const{error:e,depth:n=0}=t;return $.jsxs($.Fragment,{children:[n>0&&$.jsx("div",{style:hn.causedBy,children:"Caused by:"}),$.jsxs("pre",{style:hn.messageBlock,children:[e.name,": ",e.message]}),e.stack&&$.jsxs($.Fragment,{children:[$.jsx("div",{style:hn.stackLabel,children:"STACK TRACE"}),$.jsx("pre",{style:hn.stackBlock,children:e4(e.stack)})]}),e.cause instanceof Error&&$.jsx(t4,{error:e.cause,depth:n+1})]})},"ErrorBlock"),oW=o(t=>{const e=t.error.requestId,n=o(()=>{typeof window<"u"&&window.location.reload()},"handleReload");return $.jsx("div",{style:Zo.page,children:$.jsxs("div",{style:Zo.card,children:[$.jsx("div",{style:Zo.heading,children:"Something went wrong"}),$.jsx("div",{style:Zo.subtitle,children:"We're having trouble processing your request."}),e&&$.jsxs("div",{style:Zo.refText,children:["Reference: ",e]}),$.jsxs("div",{style:Zo.actions,children:[$.jsx("button",{type:"button",style:Zo.reloadBtn,onClick:n,children:"Reload page"}),$.jsx("a",{href:"/",style:Zo.homeLink,children:"Go home"})]})]})})},"ProdErrorPage");function e4(t){return t.split(`
|
|
69
|
+
`).slice(1).map(e=>e.trim()).join(`
|
|
70
|
+
`)}o(e4,"cleanStack");function sW(t){const e=[],n=o((r,a)=>{a>0&&e.push(`
|
|
71
|
+
Caused by:`),e.push(`${r.name}: ${r.message}`),r.stack&&e.push(e4(r.stack)),r.cause instanceof Error&&n(r.cause,a+1)},"append");return n(t,0),e.join(`
|
|
72
|
+
`)}o(sW,"buildErrorText");function aW(t){if("status"in t&&typeof t.status=="number")return t.status}o(aW,"getHttpStatus");const hn={overlay:{position:"fixed",inset:0,zIndex:2147483647,display:"flex",alignItems:"center",justifyContent:"center",padding:"24px",backgroundColor:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(4px)",fontFamily:um,fontSize:"13px",color:"#e5e7eb",boxSizing:"border-box",overflow:"auto"},card:{width:"100%",maxWidth:"900px",maxHeight:"90vh",overflow:"auto",padding:"24px",backgroundColor:"#111",borderLeft:"4px solid #ef4444",borderRadius:"8px",boxShadow:"0 25px 50px rgba(0, 0, 0, 0.5)"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"20px",flexWrap:"wrap",gap:"12px"},headerLeft:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},headerRight:{display:"flex",gap:"8px",flexShrink:0},icon:{width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"#ef4444",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:"16px",flexShrink:0},title:{color:"#f87171",fontSize:"18px",fontWeight:700},retryBtn:{padding:"6px 16px",backgroundColor:"#2563eb",color:"#fff",border:"none",borderRadius:"6px",cursor:"pointer",fontFamily:um,fontSize:"12px",fontWeight:600},copyBtn:{padding:"6px 16px",backgroundColor:"transparent",color:"#9ca3af",border:"1px solid #374151",borderRadius:"6px",cursor:"pointer",fontFamily:um,fontSize:"12px",fontWeight:600},messageBlock:{margin:"0 0 12px",padding:"12px",backgroundColor:"#1f2937",borderRadius:"6px",color:"#f9fafb",fontSize:"13px",lineHeight:1.6,whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"auto"},stackLabel:{fontSize:"10px",color:"#6b7280",textTransform:"uppercase",letterSpacing:"1.5px",marginBottom:"6px",fontWeight:600},stackBlock:{margin:"0 0 20px",padding:"12px",backgroundColor:"#0f172a",borderRadius:"6px",color:"#94a3b8",fontSize:"12px",lineHeight:1.6,whiteSpace:"pre-wrap",wordBreak:"break-all",overflow:"auto"},causedBy:{fontSize:"10px",color:"#6b7280",textTransform:"uppercase",letterSpacing:"1.5px",marginBottom:"8px",paddingTop:"12px",borderTop:"1px solid #374151",fontWeight:600},meta:{display:"flex",gap:"16px",alignItems:"center",paddingTop:"12px",borderTop:"1px solid #1f2937",flexWrap:"wrap"},metaItem:{fontSize:"11px",color:"#6b7280"},statusBadge:{fontSize:"11px",color:"#fbbf24",backgroundColor:"#422006",padding:"2px 8px",borderRadius:"4px",fontWeight:600}},Zo={page:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#0f172a",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',padding:"24px"},card:{textAlign:"center",maxWidth:"440px"},heading:{fontSize:"28px",fontWeight:700,color:"#f1f5f9",marginBottom:"12px"},subtitle:{fontSize:"16px",color:"#94a3b8",marginBottom:"24px",lineHeight:1.5},refText:{fontSize:"13px",color:"#64748b",marginBottom:"24px",fontFamily:um},actions:{display:"flex",gap:"12px",justifyContent:"center",alignItems:"center"},reloadBtn:{padding:"10px 24px",backgroundColor:"#2563eb",color:"#fff",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:600},homeLink:{padding:"10px 24px",color:"#94a3b8",textDecoration:"none",fontSize:"14px"}},n4=A.createContext(void 0),lW=o(t=>{const e=A.use(n4),n=e?.index??0,r=e?.onError,a=J3(),c=Qh(),[f,d]=A.useState(0),[h,g]=A.useState(a.layers[n]?.element),[y,v]=A.useState(""),E=A.useRef(0),x=A.useRef(0);oR({"react:transition:begin":o(async({previous:M,state:L})=>{const z=M.layers[n];if(!z||`${L.url.pathname}/`.startsWith(`${z.path}/`))return;const D=mC(z.route?.animation,L,"exit");if(D){const F=D.duration||200;x.current=Date.now(),E.current=F,v(D.animation)}else x.current=0,E.current=0,v("")},"react:transition:begin"),"react:transition:end":o(async({state:M})=>{const L=M.layers[n];if(x.current){const z=E.current,D=Date.now()-x.current;D<z&&await new Promise(F=>setTimeout(F,z-D))}if(!L?.cache){g(L?.element);const z=mC(L?.route?.animation,M,"enter");v(z?z.animation:"")}},"react:transition:end")},[]);let C=h??t.children??null;if(y&&(C=$.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:y},children:C})})),t.errorBoundary===!1)return $.jsx($.Fragment,{children:C});if(t.errorBoundary)return $.jsx(Om,{fallback:t.errorBoundary,children:C},f);const w=o(M=>{const L=r?.(M,a)??$.jsx(W3,{error:M,alepha:c});return L instanceof Zs?"Redirection inside ErrorBoundary is not allowed.":L},"fallback");return $.jsx(Om,{fallback:w,children:C},f)},"NestedView"),Tb=A.memo(lW);function mC(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(mC,"parseAnimation");const cW=pi({name:"alepha.react.page.options",description:"Configuration options for the React page provider.",schema:_.object({strictMode:_.boolean({default:!0}),staticFilePattern:_.string()}),default:{strictMode:!0,staticFilePattern:"\\.[a-zA-Z0-9]{1,10}$"}}),$x=class $x{dateTimeProvider=Ot(li);log=Gr();options=Xh(cW);alepha=Ot(Ke);pages=[];nextIdCursor=0;configure=ir({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:Z3,onServerResponse:o(({reply:a})=>{a.status=404},"onServerResponse")})},"handler")});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 Ut(`Page '${e}' not found`)}pathname(e,n={}){const r=this.page(e);if(!r)throw new Ut(`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(ZO.Provider,{value:this.alepha},A.createElement(Tb,{},e.layers[0]?.element));return this.options.strictMode?A.createElement(A.StrictMode,{},n):n}convertStringObjectToObject=o((e,n)=>{if(_.schema.isObject(e)&&typeof n=="object"){for(const r in e.properties)if(_.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 instanceof Error?x:new Error(String(x));break}try{E.params=v.schema?.params?this.alepha.codec.decode(v.schema.params,n.params):{}}catch(x){y.error=x instanceof Error?x:new Error(String(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.redirect)return{redirect:v.redirect};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 Zs)return{redirect:x.redirect};this.log.error("Page loader has failed",x),y.error=x instanceof Error?x:new Error(String(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.url);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 instanceof Error?w:new Error(String(w))}if(y.error)try{let w=await n.onError(y.error,n);if(w===void 0)throw y.error;if(w instanceof Zs)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,cache:y.cache});break}catch(w){if(w instanceof Zs)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,r){if(e.lazy&&e.component&&this.log.warn(`Page ${e.name} has both lazy and component options, lazy will be used`),e.lazy)try{const a=await e.lazy();return A.createElement(a.default,n)}catch(a){if(this.alepha.isBrowser()&&this.isChunkLoadError(a)&&this.reloadAfterChunkError(r))return;throw a}if(e.component)return A.createElement(e.component,n)}isChunkLoadError(e){if(!(e instanceof Error))return!1;const n=e.message;return/Failed to fetch dynamically imported module/.test(n)||/error loading dynamically imported module/i.test(n)||/Unable to preload CSS/.test(n)||/Importing a module script failed/.test(n)}reloadAfterChunkError(e){const n="alepha:chunk-reload",r=sessionStorage.getItem(n),a=this.dateTimeProvider.nowMillis();return r&&a-Number(r)<1e4?(this.log.error("Chunk load failed after recent reload, not retrying to avoid loop"),!1):(this.log.warn("Chunk load failed after deployment, reloading page"),sessionStorage.setItem(n,String(a)),window.location.assign(e?e.pathname+e.search:window.location.href),!0)}renderError(e){return A.createElement(W3,{error:e,alepha:this.alepha})}renderEmptyView(){return A.createElement(Tb,{})}href(e,n={}){const r=this.pages.find(f=>f.name===e.options.name);if(!r)throw new Ut(`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(NG,typeof a.client=="object"?a.client:{},r):r;return A.createElement(n4.Provider,{value:{index:e,path:n,onError:this.getErrorHandler(a)??(f=>this.renderError(f))}},c)}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 Ut("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}nextId(){return this.nextIdCursor+=1,`P${this.nextIdCursor}`}};o($x,"ReactPageProvider");let jl=$x;const uW=o(t=>t&&typeof t=="object"&&typeof t.path=="string"&&typeof t.page=="object","isPageRoute"),Mx=class Mx extends wb{log=Gr();alepha=Ot(Ke);pageApi=Ot(jl);browserHeadProvider=Ot(ia);add(e){this.pageApi.add(e)}configure=ir({on:"configure",handler:o(async()=>{for(const e of this.pageApi.getPages())(e.component||e.lazy||e.redirect)&&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??{},uW(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(Z3),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);let g;try{const y=d.onError(h,d);y!=null&&!(y instanceof Zs)&&(g=y)}catch{}d.layers=[{name:"error",element:g??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(Mx,"ReactBrowserRouterProvider");let Uu=Mx;const fW=pi({name:"alepha.react.browser.options",schema:_.object({scrollRestoration:_.enum(["top","manual"])}),default:{scrollRestoration:"top"}}),Ox=class Ox{log=Gr();client=Ot(Du);alepha=Ot(Ke);router=Ot(Uu);dateTimeProvider=Ot(li);browserHeadProvider=Ot(ia);options=Xh(fW);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=ir({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=ir({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(Ox,"ReactBrowserProvider");let ku=Ox;var b0={exports:{}},du={},v0={exports:{}},S0={};var hC;function dW(){return hC||(hC=1,(function(t){function e(R,U){var I=R.length;R.push(U);t:for(;0<I;){var tt=I-1>>>1,it=R[tt];if(0<a(it,U))R[tt]=U,R[I]=it,I=tt;else break t}}o(e,"push");function n(R){return R.length===0?null:R[0]}o(n,"peek");function r(R){if(R.length===0)return null;var U=R[0],I=R.pop();if(I!==U){R[0]=I;t:for(var tt=0,it=R.length,N=it>>>1;tt<N;){var Y=2*(tt+1)-1,lt=R[Y],dt=Y+1,ht=R[dt];if(0>a(lt,I))dt<it&&0>a(ht,lt)?(R[tt]=ht,R[dt]=I,tt=dt):(R[tt]=lt,R[Y]=I,tt=Y);else if(dt<it&&0>a(ht,I))R[tt]=ht,R[dt]=I,tt=dt;else break t}}return U}o(r,"pop");function a(R,U){var I=R.sortIndex-U.sortIndex;return I!==0?I:R.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,D=typeof setImmediate<"u"?setImmediate:null;function F(R){for(var U=n(g);U!==null;){if(U.callback===null)r(g);else if(U.startTime<=R)r(g),U.sortIndex=U.expirationTime,e(h,U);else break;U=n(g)}}o(F,"advanceTimers");function G(R){if(w=!1,F(R),!C)if(n(h)!==null)C=!0,P||(P=!0,ft());else{var U=n(g);U!==null&&J(G,U.startTime-R)}}o(G,"handleTimeout");var P=!1,B=-1,H=5,et=-1;function nt(){return M?!0:!(t.unstable_now()-et<H)}o(nt,"shouldYieldToHost");function ot(){if(M=!1,P){var R=t.unstable_now();et=R;var U=!0;try{t:{C=!1,w&&(w=!1,z(B),B=-1),x=!0;var I=E;try{e:{for(F(R),v=n(h);v!==null&&!(v.expirationTime>R&&nt());){var tt=v.callback;if(typeof tt=="function"){v.callback=null,E=v.priorityLevel;var it=tt(v.expirationTime<=R);if(R=t.unstable_now(),typeof it=="function"){v.callback=it,F(R),U=!0;break e}v===n(h)&&r(h),F(R)}else r(h);v=n(h)}if(v!==null)U=!0;else{var N=n(g);N!==null&&J(G,N.startTime-R),U=!1}}break t}finally{v=null,E=I,x=!1}U=void 0}}finally{U?ft():P=!1}}}o(ot,"performWorkUntilDeadline");var ft;if(typeof D=="function")ft=o(function(){D(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(R,U){B=L(function(){R(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(R){R.callback=null},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return E},t.unstable_next=function(R){switch(E){case 1:case 2:case 3:var U=3;break;default:U=E}var I=E;E=U;try{return R()}finally{E=I}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(R,U){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var I=E;E=R;try{return U()}finally{E=I}},t.unstable_scheduleCallback=function(R,U,I){var tt=t.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?tt+I:tt):I=tt,R){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=I+it,R={id:y++,callback:U,priorityLevel:R,startTime:I,expirationTime:it,sortIndex:-1},I>tt?(R.sortIndex=I,e(g,R),n(h)===null&&R===n(g)&&(w?(z(B),B=-1):w=!0,J(G,I-tt))):(R.sortIndex=it,e(h,R),C||x||(C=!0,P||(P=!0,ft()))),R},t.unstable_shouldYield=nt,t.unstable_wrapCallback=function(R){var U=E;return function(){var I=E;E=U;try{return R.apply(this,arguments)}finally{E=I}}}})(S0)),S0}o(dW,"requireScheduler_production");var pC;function mW(){return pC||(pC=1,v0.exports=dW()),v0.exports}o(mW,"requireScheduler");var gC;function hW(){if(gC)return du;gC=1;var t=mW(),e=x1(),n=FR();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"),D=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),H=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 P:return"SuspenseList";case et:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case C:return"Portal";case D: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 H:s=i._payload,i=i._init;try{return V(i(s))}catch{}}return null}o(V,"getComponentNameFromType");var J=Array.isArray,R=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,I={pending:!1,data:null,method:null,action:null},tt=[],it=-1;function N(i){return{current:i}}o(N,"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=N(null),ht=N(null),yt=N(null),Ct=N(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)?nT(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=nT(s),i=rT(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=rT(s,i.type);s!==l&&(lt(ht,i),lt(dt,l))}o(ye,"pushHostContext");function an(i){ht.current===i&&(Y(dt),Y(ht)),Ct.current===i&&(Y(Ct),iu._currentValue=I)}o(an,"popHostContext");var Yn,Zr;function Jr(i){if(Yn===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);Yn=s&&s[1]||"",Zr=-1<l.stack.indexOf(`
|
|
73
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
74
|
+
`+Yn+i+Zr}o(Jr,"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 j=S.split(`
|
|
75
|
+
`),X=T.split(`
|
|
76
|
+
`);for(m=u=0;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;for(;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;if(u===j.length||m===X.length)for(u=j.length-1,m=X.length-1;1<=u&&0<=m&&j[u]!==X[m];)m--;for(;1<=u&&0<=m;u--,m--)if(j[u]!==X[m]){if(u!==1||m!==1)do if(u--,m--,0>m||j[u]!==X[m]){var rt=`
|
|
77
|
+
`+j[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:"")?Jr(l):""}o(mc,"describeNativeComponentFrame");function Dp(i,s){switch(i.tag){case 26:case 27:case 5:return Jr(i.type);case 16:return Jr("Lazy");case 13:return i.child!==s&&s!==null?Jr("Suspense Fallback"):Jr("Suspense");case 19:return Jr("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 Jr("Activity");default:return""}}o(Dp,"describeFiber");function xf(i){try{var s="",l=null;do s+=Dp(i,l),l=i,i=i.return;while(i);return s}catch(u){return`
|
|
78
|
+
Error generating stack: `+u.message+`
|
|
79
|
+
`+u.stack}}o(xf,"getStackByFiberInDevAndProd");var hc=Object.prototype.hasOwnProperty,pc=t.unstable_scheduleCallback,Ef=t.unstable_cancelCallback,m4=t.unstable_shouldYield,h4=t.unstable_requestPaint,Vn=t.unstable_now,p4=t.unstable_getCurrentPriorityLevel,jx=t.unstable_ImmediatePriority,Ix=t.unstable_UserBlockingPriority,wf=t.unstable_NormalPriority,g4=t.unstable_LowPriority,zx=t.unstable_IdlePriority,y4=t.log,b4=t.unstable_setDisableYieldValue,gc=null,Kn=null;function Co(i){if(typeof y4=="function"&&b4(i),Kn&&typeof Kn.setStrictMode=="function")try{Kn.setStrictMode(gc,i)}catch{}}o(Co,"setIsStrictModeForDevtools");var Xn=Math.clz32?Math.clz32:x4,v4=Math.log,S4=Math.LN2;function x4(i){return i>>>=0,i===0?32:31-(v4(i)/S4|0)|0}o(x4,"clz32Fallback");var Tf=256,Af=262144,Cf=4194304;function Ts(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(Ts,"getHighestPriorityLanes");function $f(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=Ts(u):(S&=T,S!==0?m=Ts(S):l||(l=T&~i,l!==0&&(m=Ts(l))))):(T=u&~p,T!==0?m=Ts(T):S!==0?m=Ts(S):l||(l=u&~i,l!==0&&(m=Ts(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($f,"getNextLanes");function yc(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}o(yc,"checkIfRootIsPrerendering");function E4(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(E4,"computeExpirationTime");function Lx(){var i=Cf;return Cf<<=1,(Cf&62914560)===0&&(Cf=4194304),i}o(Lx,"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 w4(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,j=i.expirationTimes,X=i.hiddenUpdates;for(l=S&~l;0<l;){var rt=31-Xn(l),ct=1<<rt;T[rt]=0,j[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&&Bx(i,u,0),p!==0&&m===0&&i.tag!==0&&(i.suspendedLanes|=p&~(S&~s))}o(w4,"markRootFinished");function Bx(i,s,l){i.pendingLanes|=s,i.suspendedLanes&=~s;var u=31-Xn(s);i.entangledLanes|=s,i.entanglements[u]=i.entanglements[u]|1073741824|l&261930}o(Bx,"markSpawnedDeferredLane");function Ux(i,s){var l=i.entangledLanes|=s;for(i=i.entanglements;l;){var u=31-Xn(l),m=1<<u;m&s|i[u]&s&&(i[u]|=s),l&=~m}}o(Ux,"markRootEntangled");function kx(i,s){var l=s&-s;return l=(l&42)!==0?1:Ip(l),(l&(i.suspendedLanes|s))!==0?0:l}o(kx,"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 zp(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}o(zp,"lanesToEventPriority");function Hx(){var i=U.p;return i!==0?i:(i=window.event,i===void 0?32:CT(i.type))}o(Hx,"resolveUpdatePriority");function Fx(i,s){var l=U.p;try{return U.p=i,s()}finally{U.p=l}}o(Fx,"runWithPriority");var $o=Math.random().toString(36).slice(2),ln="__reactFiber$"+$o,Rn="__reactProps$"+$o,xa="__reactContainer$"+$o,Lp="__reactEvents$"+$o,T4="__reactListeners$"+$o,A4="__reactHandles$"+$o,Px="__reactResources$"+$o,vc="__reactMarker$"+$o;function Bp(i){delete i[ln],delete i[Rn],delete i[Lp],delete i[T4],delete i[A4]}o(Bp,"detachDeletedInstance");function Ea(i){var s=i[ln];if(s)return s;for(var l=i.parentNode;l;){if(s=l[xa]||l[ln]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(i=uT(i);i!==null;){if(l=i[ln])return l;i=uT(i)}return s}i=l,l=i.parentNode}return null}o(Ea,"getClosestInstanceFromNode");function wa(i){if(i=i[ln]||i[xa]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}o(wa,"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 Ta(i){var s=i[Px];return s||(s=i[Px]={hoistableStyles:new Map,hoistableScripts:new Map}),s}o(Ta,"getResourcesFromRoot");function rn(i){i[vc]=!0}o(rn,"markNodeAsHoistable");var qx=new Set,Gx={};function As(i,s){Aa(i,s),Aa(i+"Capture",s)}o(As,"registerTwoPhaseEvent");function Aa(i,s){for(Gx[i]=s,i=0;i<s.length;i++)qx.add(s[i])}o(Aa,"registerDirectEvent");var C4=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]*$"),Yx={},Vx={};function $4(i){return hc.call(Vx,i)?!0:hc.call(Yx,i)?!1:C4.test(i)?Vx[i]=!0:(Yx[i]=!0,!1)}o($4,"isAttributeNameSafe");function Mf(i,s,l){if($4(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(Mf,"setValueForAttribute");function Of(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(Of,"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 Er(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}o(Er,"getToStringValue");function Kx(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}o(Kx,"isCheckable");function M4(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(M4,"trackValueOnNode");function Up(i){if(!i._valueTracker){var s=Kx(i)?"checked":"value";i._valueTracker=M4(i,s,""+i[s])}}o(Up,"track");function Xx(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var l=s.getValue(),u="";return i&&(u=Kx(i)?i.checked?"true":"false":i.value),i=u,i!==l?(s.setValue(i),!0):!1}o(Xx,"updateValueIfChanged");function Rf(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(Rf,"getActiveElement");var O4=/[\n"\\]/g;function wr(i){return i.replace(O4,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}o(wr,"escapeSelectorAttributeValueInsideDoubleQuotes");function kp(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=""+Er(s)):i.value!==""+Er(s)&&(i.value=""+Er(s)):S!=="submit"&&S!=="reset"||i.removeAttribute("value"),s!=null?Hp(i,S,Er(s)):l!=null?Hp(i,S,Er(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=""+Er(T):i.removeAttribute("name")}o(kp,"updateInput");function Qx(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?""+Er(l):"",s=s!=null?""+Er(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(Qx,"initInput");function Hp(i,s,l){s==="number"&&Rf(i.ownerDocument)===i||i.defaultValue===""+l||(i.defaultValue=""+l)}o(Hp,"setDefaultValue");function Ca(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=""+Er(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(Ca,"updateOptions");function Zx(i,s,l){if(s!=null&&(s=""+Er(s),s!==i.value&&(i.value=s),l==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=l!=null?""+Er(l):""}o(Zx,"updateTextarea");function Jx(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=Er(s),i.defaultValue=l,u=i.textContent,u===l&&u!==""&&u!==null&&(i.value=u),Up(i)}o(Jx,"initTextarea");function $a(i,s){if(s){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=s;return}}i.textContent=s}o($a,"setTextContent");var R4=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 Wx(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||R4.has(s)?s==="float"?i.cssFloat=l:i[s]=(""+l).trim():i[s]=l+"px"}o(Wx,"setValueForStyle");function tE(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&&Wx(i,m,u)}else for(var p in s)s.hasOwnProperty(p)&&Wx(i,p,s[p])}o(tE,"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 N4=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"]]),_4=/^[\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 Nf(i){return _4.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}o(Nf,"sanitizeURL");function Ui(){}o(Ui,"noop$1");var Pp=null;function qp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}o(qp,"getEventTarget");var Ma=null,Oa=null;function eE(i){var s=wa(i);if(s&&(i=s.stateNode)){var l=i[Rn]||null;t:switch(i=s.stateNode,s.type){case"input":if(kp(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="'+wr(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var u=l[s];if(u!==i&&u.form===i.form){var m=u[Rn]||null;if(!m)throw Error(r(90));kp(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&&Xx(u)}break t;case"textarea":Zx(i,l.value,l.defaultValue);break t;case"select":s=l.value,s!=null&&Ca(i,!!l.multiple,s,!1)}}}o(eE,"restoreStateOfTarget");var Gp=!1;function nE(i,s,l){if(Gp)return i(s,l);Gp=!0;try{var u=i(s);return u}finally{if(Gp=!1,(Ma!==null||Oa!==null)&&(bd(),Ma&&(s=Ma,i=Oa,Oa=Ma=null,eE(s),i)))for(s=0;s<i.length;s++)eE(i[s])}}o(nE,"batchedUpdates$1");function xc(i,s){var l=i.stateNode;if(l===null)return null;var u=l[Rn]||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 ki=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yp=!1;if(ki)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 Mo=null,Vp=null,_f=null;function rE(){if(_f)return _f;var i,s=Vp,l=s.length,u,m="value"in Mo?Mo.value:Mo.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 _f=m.slice(i,1<u?1-u:void 0)}o(rE,"getData");function Df(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(Df,"getEventCharCode");function jf(){return!0}o(jf,"functionThatReturnsTrue");function iE(){return!1}o(iE,"functionThatReturnsFalse");function Nn(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)?jf:iE,this.isPropagationStopped=iE,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=jf)},"preventDefault"),stopPropagation:o(function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=jf)},"stopPropagation"),persist:o(function(){},"persist"),isPersistent:jf}),s}o(Nn,"createSyntheticEvent");var Cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:o(function(i){return i.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},If=Nn(Cs),wc=v({},Cs,{view:0,detail:0}),D4=Nn(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")}),oE=Nn(zf),j4=v({},zf,{dataTransfer:0}),I4=Nn(j4),z4=v({},wc,{relatedTarget:0}),Qp=Nn(z4),L4=v({},Cs,{animationName:0,elapsedTime:0,pseudoElement:0}),B4=Nn(L4),U4=v({},Cs,{clipboardData:o(function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData},"clipboardData")}),k4=Nn(U4),H4=v({},Cs,{data:0}),sE=Nn(H4),F4={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"},q4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G4(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=q4[i])?!!s[i]:!1}o(G4,"modifierStateGetter");function Zp(){return G4}o(Zp,"getEventModifierState");var Y4=v({},wc,{key:o(function(i){if(i.key){var s=F4[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Df(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"?Df(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"?Df(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0},"which")}),V4=Nn(Y4),K4=v({},zf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),aE=Nn(K4),X4=v({},wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zp}),Q4=Nn(X4),Z4=v({},Cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),J4=Nn(Z4),W4=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}),tN=Nn(W4),eN=v({},Cs,{newState:0,oldState:0}),nN=Nn(eN),rN=[9,13,27,32],Jp=ki&&"CompositionEvent"in window,Ac=null;ki&&"documentMode"in document&&(Ac=document.documentMode);var iN=ki&&"TextEvent"in window&&!Ac,lE=ki&&(!Jp||Ac&&8<Ac&&11>=Ac),cE=" ",uE=!1;function fE(i,s){switch(i){case"keyup":return rN.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}o(fE,"isFallbackCompositionEnd");function dE(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}o(dE,"getDataFromCustomEvent");var Ra=!1;function oN(i,s){switch(i){case"compositionend":return dE(s);case"keypress":return s.which!==32?null:(uE=!0,cE);case"textInput":return i=s.data,i===cE&&uE?null:i;default:return null}}o(oN,"getNativeBeforeInputChars");function sN(i,s){if(Ra)return i==="compositionend"||!Jp&&fE(i,s)?(i=rE(),_f=Vp=Mo=null,Ra=!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 lE&&s.locale!=="ko"?null:s.data;default:return null}}o(sN,"getFallbackBeforeInputChars");var aN={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 mE(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!aN[i.type]:s==="textarea"}o(mE,"isTextInputElement");function hE(i,s,l,u){Ma?Oa?Oa.push(u):Oa=[u]:Ma=u,s=Ad(s,"onChange"),0<s.length&&(l=new If("onChange","change",null,l,u),i.push({event:l,listeners:s}))}o(hE,"createAndAccumulateChangeEvent");var Cc=null,$c=null;function lN(i){Q2(i,0)}o(lN,"runEventInBatch");function Lf(i){var s=Sc(i);if(Xx(s))return i}o(Lf,"getInstIfValueChanged");function pE(i,s){if(i==="change")return s}o(pE,"getTargetInstForChangeEvent");var gE=!1;if(ki){var Wp;if(ki){var tg="oninput"in document;if(!tg){var yE=document.createElement("div");yE.setAttribute("oninput","return;"),tg=typeof yE.oninput=="function"}Wp=tg}else Wp=!1;gE=Wp&&(!document.documentMode||9<document.documentMode)}function bE(){Cc&&(Cc.detachEvent("onpropertychange",vE),$c=Cc=null)}o(bE,"stopWatchingForValueChange");function vE(i){if(i.propertyName==="value"&&Lf($c)){var s=[];hE(s,$c,i,qp(i)),nE(lN,s)}}o(vE,"handlePropertyChange");function cN(i,s,l){i==="focusin"?(bE(),Cc=s,$c=l,Cc.attachEvent("onpropertychange",vE)):i==="focusout"&&bE()}o(cN,"handleEventsForInputEventPolyfill");function uN(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Lf($c)}o(uN,"getTargetInstForInputEventPolyfill");function fN(i,s){if(i==="click")return Lf(s)}o(fN,"getTargetInstForClickEvent");function dN(i,s){if(i==="input"||i==="change")return Lf(s)}o(dN,"getTargetInstForInputOrChangeEvent");function mN(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}o(mN,"is");var Qn=typeof Object.is=="function"?Object.is:mN;function Mc(i,s){if(Qn(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)||!Qn(i[m],s[m]))return!1}return!0}o(Mc,"shallowEqual");function SE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}o(SE,"getLeafNode");function xE(i,s){var l=SE(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=SE(l)}}o(xE,"getNodeForCharacterOffset");function EE(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?EE(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}o(EE,"containsNode");function wE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Rf(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=Rf(i.document)}return s}o(wE,"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 hN=ki&&"documentMode"in document&&11>=document.documentMode,Na=null,ng=null,Oc=null,rg=!1;function TE(i,s,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;rg||Na==null||Na!==Rf(u)||(u=Na,"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=Ad(ng,"onSelect"),0<u.length&&(s=new If("onSelect","select",null,s,l),i.push({event:s,listeners:u}),s.target=Na)))}o(TE,"constructSelectEvent");function $s(i,s){var l={};return l[i.toLowerCase()]=s.toLowerCase(),l["Webkit"+i]="webkit"+s,l["Moz"+i]="moz"+s,l}o($s,"makePrefixMap");var _a={animationend:$s("Animation","AnimationEnd"),animationiteration:$s("Animation","AnimationIteration"),animationstart:$s("Animation","AnimationStart"),transitionrun:$s("Transition","TransitionRun"),transitionstart:$s("Transition","TransitionStart"),transitioncancel:$s("Transition","TransitionCancel"),transitionend:$s("Transition","TransitionEnd")},ig={},AE={};ki&&(AE=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function Ms(i){if(ig[i])return ig[i];if(!_a[i])return i;var s=_a[i],l;for(l in s)if(s.hasOwnProperty(l)&&l in AE)return ig[i]=s[l];return i}o(Ms,"getVendorPrefixedEventName");var CE=Ms("animationend"),$E=Ms("animationiteration"),ME=Ms("animationstart"),pN=Ms("transitionrun"),gN=Ms("transitionstart"),yN=Ms("transitioncancel"),OE=Ms("transitionend"),RE=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 Wr(i,s){RE.set(i,s),As(s,[i])}o(Wr,"registerSimpleEvent");var Bf=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)},Tr=[],Da=0,sg=0;function Uf(){for(var i=Da,s=sg=Da=0;s<i;){var l=Tr[s];Tr[s++]=null;var u=Tr[s];Tr[s++]=null;var m=Tr[s];Tr[s++]=null;var p=Tr[s];if(Tr[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&&NE(l,m,p)}}o(Uf,"finishQueueingConcurrentUpdates");function kf(i,s,l,u){Tr[Da++]=i,Tr[Da++]=s,Tr[Da++]=l,Tr[Da++]=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),Hf(i)}o(ag,"enqueueConcurrentHookUpdate");function Os(i,s){return kf(i,null,null,s),Hf(i)}o(Os,"enqueueConcurrentRenderForLane");function NE(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-Xn(l),i=p.hiddenUpdates,u=i[m],u===null?i[m]=[s]:u.push(s),s.lane=l|536870912),p):null}o(NE,"markUpdateLaneFromFiberToRoot");function Hf(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(Hf,"getRootForUpdatedFiber");var ja={};function bN(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(bN,"FiberNode");function Zn(i,s,l,u){return new bN(i,s,l,u)}o(Zn,"createFiberImplClass");function lg(i){return i=i.prototype,!(!i||!i.isReactComponent)}o(lg,"shouldConstruct");function Hi(i,s){var l=i.alternate;return l===null?(l=Zn(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(Hi,"createWorkInProgress");function _E(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(_E,"resetWorkInProgress");function Ff(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=w5(i,l,dt.current)?26:i==="html"||i==="head"||i==="body"?27:5;else t:switch(i){case et:return i=Zn(31,l,s,m),i.elementType=et,i.lanes=p,i;case w:return Rs(l.children,m,p,s);case M:S=8,m|=24;break;case L:return i=Zn(12,l,s,m|2),i.elementType=L,i.lanes=p,i;case G:return i=Zn(13,l,s,m),i.elementType=G,i.lanes=p,i;case P:return i=Zn(19,l,s,m),i.elementType=P,i.lanes=p,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case D:S=10;break t;case z:S=9;break t;case F:S=11;break t;case B:S=14;break t;case H:S=16,u=null;break t}S=29,l=Error(r(130,i===null?"null":typeof i,"")),u=null}return s=Zn(S,l,s,m),s.elementType=i,s.type=u,s.lanes=p,s}o(Ff,"createFiberFromTypeAndProps");function Rs(i,s,l,u){return i=Zn(7,i,u,s),i.lanes=l,i}o(Rs,"createFiberFromFragment");function cg(i,s,l){return i=Zn(6,i,null,s),i.lanes=l,i}o(cg,"createFiberFromText");function DE(i){var s=Zn(18,null,null,0);return s.stateNode=i,s}o(DE,"createFiberFromDehydratedFragment");function ug(i,s,l){return s=Zn(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 jE=new WeakMap;function Ar(i,s){if(typeof i=="object"&&i!==null){var l=jE.get(i);return l!==void 0?l:(s={value:i,source:s,stack:xf(s)},jE.set(i,s),s)}return{value:i,source:s,stack:xf(s)}}o(Ar,"createCapturedValueAtFiber");var Ia=[],za=0,Pf=null,Rc=0,Cr=[],$r=0,Oo=null,bi=1,vi="";function Fi(i,s){Ia[za++]=Rc,Ia[za++]=Pf,Pf=i,Rc=s}o(Fi,"pushTreeFork");function IE(i,s,l){Cr[$r++]=bi,Cr[$r++]=vi,Cr[$r++]=Oo,Oo=i;var u=bi;i=vi;var m=32-Xn(u)-1;u&=~(1<<m),l+=1;var p=32-Xn(s)+m;if(30<p){var S=m-m%5;p=(u&(1<<S)-1).toString(32),u>>=S,m-=S,bi=1<<32-Xn(s)+m|l<<m|u,vi=p+i}else bi=1<<p|l<<m|u,vi=i}o(IE,"pushTreeId");function fg(i){i.return!==null&&(Fi(i,1),IE(i,1,0))}o(fg,"pushMaterializedTreeId");function dg(i){for(;i===Pf;)Pf=Ia[--za],Ia[za]=null,Rc=Ia[--za],Ia[za]=null;for(;i===Oo;)Oo=Cr[--$r],Cr[$r]=null,vi=Cr[--$r],Cr[$r]=null,bi=Cr[--$r],Cr[$r]=null}o(dg,"popTreeContext");function zE(i,s){Cr[$r++]=bi,Cr[$r++]=vi,Cr[$r++]=Oo,bi=s.id,vi=s.overflow,Oo=i}o(zE,"restoreSuspendedTreeContext");var cn=null,Ee=null,Xt=!1,Ro=null,Mr=!1,mg=Error(r(519));function No(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nc(Ar(s,i)),mg}o(No,"throwOnHydrationMismatch");function LE(i){var s=i.stateNode,l=i.type,u=i.memoizedProps;switch(s[ln]=i,s[Rn]=u,l){case"dialog":Pt("cancel",s),Pt("close",s);break;case"iframe":case"object":case"embed":Pt("load",s);break;case"video":case"audio":for(l=0;l<Wc.length;l++)Pt(Wc[l],s);break;case"source":Pt("error",s);break;case"img":case"image":case"link":Pt("error",s),Pt("load",s);break;case"details":Pt("toggle",s);break;case"input":Pt("invalid",s),Qx(s,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Pt("invalid",s);break;case"textarea":Pt("invalid",s),Jx(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||tT(s.textContent,l)?(u.popover!=null&&(Pt("beforetoggle",s),Pt("toggle",s)),u.onScroll!=null&&Pt("scroll",s),u.onScrollEnd!=null&&Pt("scrollend",s),u.onClick!=null&&(s.onclick=Ui),s=!0):s=!1,s||No(i,!0)}o(LE,"prepareToHydrateHostInstance");function BE(i){for(cn=i.return;cn;)switch(cn.tag){case 5:case 31:case 13:Mr=!1;return;case 27:case 3:Mr=!0;return;default:cn=cn.return}}o(BE,"popToNextHostParent");function La(i){if(i!==cn)return!1;if(!Xt)return BE(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&&No(i),BE(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Ee=cT(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Ee=cT(i)}else s===27?(s=Ee,Go(i.type)?(i=zy,zy=null,Ee=i):Ee=s):Ee=cn?Rr(i.stateNode.nextSibling):null;return!0}o(La,"popHydrationState");function Ns(){Ee=cn=null,Xt=!1}o(Ns,"resetHydrationState");function hg(){var i=Ro;return i!==null&&(In===null?In=i:In.push.apply(In,i),Ro=null),i}o(hg,"upgradeHydrationErrorsToRecoverable");function Nc(i){Ro===null?Ro=[i]:Ro.push(i)}o(Nc,"queueHydrationError");var pg=N(null),_s=null,Pi=null;function _o(i,s,l){lt(pg,s._currentValue),s._currentValue=l}o(_o,"pushProvider");function qi(i){i._currentValue=pg.current,Y(pg)}o(qi,"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 j=0;j<s.length;j++)if(T.context===s[j]){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 Ba(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;Qn(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(Ba,"propagateParentContextChanges");function qf(i){for(i=i.firstContext;i!==null;){if(!Qn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}o(qf,"checkIfContextChanged");function Ds(i){_s=i,Pi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}o(Ds,"prepareToReadContext");function un(i){return UE(_s,i)}o(un,"readContext");function Gf(i,s){return _s===null&&Ds(i),UE(i,s)}o(Gf,"readContextDuringReconciliation");function UE(i,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},Pi===null){if(i===null)throw Error(r(308));Pi=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Pi=Pi.next=s;return l}o(UE,"readContextForConsumer");var vN=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()})}},SN=t.unstable_scheduleCallback,xN=t.unstable_NormalPriority,qe={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bg(){return{controller:new vN,data:new Map,refCount:0}}o(bg,"createCache");function _c(i){i.refCount--,i.refCount===0&&SN(xN,function(){i.controller.abort()})}o(_c,"releaseCache");var Dc=null,vg=0,Ua=0,ka=null;function EN(i,s){if(Dc===null){var l=Dc=[];vg=0,Ua=Ey(),ka={status:"pending",value:void 0,then:o(function(u){l.push(u)},"then")}}return vg++,s.then(kE,kE),s}o(EN,"entangleAsyncAction");function kE(){if(--vg===0&&Dc!==null){ka!==null&&(ka.status="fulfilled");var i=Dc;Dc=null,Ua=0,ka=null;for(var s=0;s<i.length;s++)(0,i[s])()}}o(kE,"pingEngtangledActionScope");function wN(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(wN,"chainThenableValue");var HE=R.S;R.S=function(i,s){T2=Vn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&EN(i,s),HE!==null&&HE(i,s)};var js=N(null);function Sg(){var i=js.current;return i!==null?i:me.pooledCache}o(Sg,"peekCacheFromPool");function Yf(i,s){s===null?lt(js,js.current):lt(js,s.pool)}o(Yf,"pushTransition");function FE(){var i=Sg();return i===null?null:{parent:qe._currentValue,pool:i}}o(FE,"getSuspendedCache");var Ha=Error(r(460)),xg=Error(r(474)),Vf=Error(r(542)),Kf={then:o(function(){},"then")};function PE(i){return i=i.status,i==="fulfilled"||i==="rejected"}o(PE,"isThenableResolved");function qE(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,YE(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,YE(i),i}throw zs=s,Ha}}o(qE,"trackUsedThenable");function Is(i){try{var s=i._init;return s(i._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(zs=l,Ha):l}}o(Is,"resolveLazy");var zs=null;function GE(){if(zs===null)throw Error(r(459));var i=zs;return zs=null,i}o(GE,"getSuspendedThenable");function YE(i){if(i===Ha||i===Vf)throw Error(r(483))}o(YE,"checkIfUseWrappedInAsyncCatch");var Fa=null,jc=0;function Xf(i){var s=jc;return jc+=1,Fa===null&&(Fa=[]),qE(Fa,i,s)}o(Xf,"unwrapThenable");function Ic(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}o(Ic,"coerceRef");function Qf(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(Qf,"throwOnInvalidObjectTypeImpl");function VE(i){function s(q,k){if(i){var K=q.deletions;K===null?(q.deletions=[k],q.flags|=16):K.push(k)}}o(s,"deleteChild");function l(q,k){if(!i)return null;for(;k!==null;)s(q,k),k=k.sibling;return null}o(l,"deleteRemainingChildren");function u(q){for(var k=new Map;q!==null;)q.key!==null?k.set(q.key,q):k.set(q.index,q),q=q.sibling;return k}o(u,"mapRemainingChildren");function m(q,k){return q=Hi(q,k),q.index=0,q.sibling=null,q}o(m,"useFiber");function p(q,k,K){return q.index=K,i?(K=q.alternate,K!==null?(K=K.index,K<k?(q.flags|=67108866,k):K):(q.flags|=67108866,k)):(q.flags|=1048576,k)}o(p,"placeChild");function S(q){return i&&q.alternate===null&&(q.flags|=67108866),q}o(S,"placeSingleChild");function T(q,k,K,st){return k===null||k.tag!==6?(k=cg(K,q.mode,st),k.return=q,k):(k=m(k,K),k.return=q,k)}o(T,"updateTextNode");function j(q,k,K,st){var Tt=K.type;return Tt===w?rt(q,k,K.props.children,st,K.key):k!==null&&(k.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===H&&Is(Tt)===k.type)?(k=m(k,K.props),Ic(k,K),k.return=q,k):(k=Ff(K.type,K.key,K.props,null,q.mode,st),Ic(k,K),k.return=q,k)}o(j,"updateElement");function X(q,k,K,st){return k===null||k.tag!==4||k.stateNode.containerInfo!==K.containerInfo||k.stateNode.implementation!==K.implementation?(k=ug(K,q.mode,st),k.return=q,k):(k=m(k,K.children||[]),k.return=q,k)}o(X,"updatePortal");function rt(q,k,K,st,Tt){return k===null||k.tag!==7?(k=Rs(K,q.mode,st,Tt),k.return=q,k):(k=m(k,K),k.return=q,k)}o(rt,"updateFragment");function ct(q,k,K){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=cg(""+k,q.mode,K),k.return=q,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case x:return K=Ff(k.type,k.key,k.props,null,q.mode,K),Ic(K,k),K.return=q,K;case C:return k=ug(k,q.mode,K),k.return=q,k;case H:return k=Is(k),ct(q,k,K)}if(J(k)||ft(k))return k=Rs(k,q.mode,K,null),k.return=q,k;if(typeof k.then=="function")return ct(q,Xf(k),K);if(k.$$typeof===D)return ct(q,Gf(q,k),K);Qf(q,k)}return null}o(ct,"createChild");function Q(q,k,K,st){var Tt=k!==null?k.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return Tt!==null?null:T(q,k,""+K,st);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return K.key===Tt?j(q,k,K,st):null;case C:return K.key===Tt?X(q,k,K,st):null;case H:return K=Is(K),Q(q,k,K,st)}if(J(K)||ft(K))return Tt!==null?null:rt(q,k,K,st,null);if(typeof K.then=="function")return Q(q,k,Xf(K),st);if(K.$$typeof===D)return Q(q,k,Gf(q,K),st);Qf(q,K)}return null}o(Q,"updateSlot");function W(q,k,K,st,Tt){if(typeof st=="string"&&st!==""||typeof st=="number"||typeof st=="bigint")return q=q.get(K)||null,T(k,q,""+st,Tt);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case x:return q=q.get(st.key===null?K:st.key)||null,j(k,q,st,Tt);case C:return q=q.get(st.key===null?K:st.key)||null,X(k,q,st,Tt);case H:return st=Is(st),W(q,k,K,st,Tt)}if(J(st)||ft(st))return q=q.get(K)||null,rt(k,q,st,Tt,null);if(typeof st.then=="function")return W(q,k,K,Xf(st),Tt);if(st.$$typeof===D)return W(q,k,K,Gf(k,st),Tt);Qf(k,st)}return null}o(W,"updateFromMap");function pt(q,k,K,st){for(var Tt=null,Zt=null,bt=k,Lt=k=0,Yt=null;bt!==null&&Lt<K.length;Lt++){bt.index>Lt?(Yt=bt,bt=null):Yt=bt.sibling;var Jt=Q(q,bt,K[Lt],st);if(Jt===null){bt===null&&(bt=Yt);break}i&&bt&&Jt.alternate===null&&s(q,bt),k=p(Jt,k,Lt),Zt===null?Tt=Jt:Zt.sibling=Jt,Zt=Jt,bt=Yt}if(Lt===K.length)return l(q,bt),Xt&&Fi(q,Lt),Tt;if(bt===null){for(;Lt<K.length;Lt++)bt=ct(q,K[Lt],st),bt!==null&&(k=p(bt,k,Lt),Zt===null?Tt=bt:Zt.sibling=bt,Zt=bt);return Xt&&Fi(q,Lt),Tt}for(bt=u(bt);Lt<K.length;Lt++)Yt=W(bt,q,Lt,K[Lt],st),Yt!==null&&(i&&Yt.alternate!==null&&bt.delete(Yt.key===null?Lt:Yt.key),k=p(Yt,k,Lt),Zt===null?Tt=Yt:Zt.sibling=Yt,Zt=Yt);return i&&bt.forEach(function(Qo){return s(q,Qo)}),Xt&&Fi(q,Lt),Tt}o(pt,"reconcileChildrenArray");function At(q,k,K,st){if(K==null)throw Error(r(151));for(var Tt=null,Zt=null,bt=k,Lt=k=0,Yt=null,Jt=K.next();bt!==null&&!Jt.done;Lt++,Jt=K.next()){bt.index>Lt?(Yt=bt,bt=null):Yt=bt.sibling;var Qo=Q(q,bt,Jt.value,st);if(Qo===null){bt===null&&(bt=Yt);break}i&&bt&&Qo.alternate===null&&s(q,bt),k=p(Qo,k,Lt),Zt===null?Tt=Qo:Zt.sibling=Qo,Zt=Qo,bt=Yt}if(Jt.done)return l(q,bt),Xt&&Fi(q,Lt),Tt;if(bt===null){for(;!Jt.done;Lt++,Jt=K.next())Jt=ct(q,Jt.value,st),Jt!==null&&(k=p(Jt,k,Lt),Zt===null?Tt=Jt:Zt.sibling=Jt,Zt=Jt);return Xt&&Fi(q,Lt),Tt}for(bt=u(bt);!Jt.done;Lt++,Jt=K.next())Jt=W(bt,q,Lt,Jt.value,st),Jt!==null&&(i&&Jt.alternate!==null&&bt.delete(Jt.key===null?Lt:Jt.key),k=p(Jt,k,Lt),Zt===null?Tt=Jt:Zt.sibling=Jt,Zt=Jt);return i&&bt.forEach(function(j5){return s(q,j5)}),Xt&&Fi(q,Lt),Tt}o(At,"reconcileChildrenIterator");function ue(q,k,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;k!==null;){if(k.key===Tt){if(Tt=K.type,Tt===w){if(k.tag===7){l(q,k.sibling),st=m(k,K.props.children),st.return=q,q=st;break t}}else if(k.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===H&&Is(Tt)===k.type){l(q,k.sibling),st=m(k,K.props),Ic(st,K),st.return=q,q=st;break t}l(q,k);break}else s(q,k);k=k.sibling}K.type===w?(st=Rs(K.props.children,q.mode,st,K.key),st.return=q,q=st):(st=Ff(K.type,K.key,K.props,null,q.mode,st),Ic(st,K),st.return=q,q=st)}return S(q);case C:t:{for(Tt=K.key;k!==null;){if(k.key===Tt)if(k.tag===4&&k.stateNode.containerInfo===K.containerInfo&&k.stateNode.implementation===K.implementation){l(q,k.sibling),st=m(k,K.children||[]),st.return=q,q=st;break t}else{l(q,k);break}else s(q,k);k=k.sibling}st=ug(K,q.mode,st),st.return=q,q=st}return S(q);case H:return K=Is(K),ue(q,k,K,st)}if(J(K))return pt(q,k,K,st);if(ft(K)){if(Tt=ft(K),typeof Tt!="function")throw Error(r(150));return K=Tt.call(K),At(q,k,K,st)}if(typeof K.then=="function")return ue(q,k,Xf(K),st);if(K.$$typeof===D)return ue(q,k,Gf(q,K),st);Qf(q,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,k!==null&&k.tag===6?(l(q,k.sibling),st=m(k,K),st.return=q,q=st):(l(q,k),st=cg(K,q.mode,st),st.return=q,q=st),S(q)):l(q,k)}return o(ue,"reconcileChildFibersImpl"),function(q,k,K,st){try{jc=0;var Tt=ue(q,k,K,st);return Fa=null,Tt}catch(bt){if(bt===Ha||bt===Vf)throw bt;var Zt=Zn(29,bt,null,q.mode);return Zt.lanes=st,Zt.return=q,Zt}}}o(VE,"createChildReconciler");var Ls=VE(!0),KE=VE(!1),Do=!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 jo(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}o(jo,"createUpdate");function Io(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=Hf(i),NE(i,null,l),s}return kf(i,u,s,l),Hf(i)}o(Io,"enqueueUpdate");function zc(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,Ux(i,l)}}o(zc,"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 Lc(){if(Ag){var i=ka;if(i!==null)throw i}}o(Lc,"suspendIfUpdateReadFromEntangledAsyncAction");function Bc(i,s,l,u){Ag=!1;var m=i.updateQueue;Do=!1;var p=m.firstBaseUpdate,S=m.lastBaseUpdate,T=m.shared.pending;if(T!==null){m.shared.pending=null;var j=T,X=j.next;j.next=null,S===null?p=X:S.next=X,S=j;var rt=i.alternate;rt!==null&&(rt=rt.updateQueue,T=rt.lastBaseUpdate,T!==S&&(T===null?rt.firstBaseUpdate=X:T.next=X,rt.lastBaseUpdate=j))}if(p!==null){var ct=m.baseState;S=0,rt=X=j=null,T=p;do{var Q=T.lane&-536870913,W=Q!==T.lane;if(W?(Gt&Q)===Q:(u&Q)===Q){Q!==0&&Q===Ua&&(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:Do=!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,j=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&&(j=ct),m.baseState=j,m.firstBaseUpdate=X,m.lastBaseUpdate=rt,p===null&&(m.shared.lanes=0),ko|=S,i.lanes=S,i.memoizedState=ct}}o(Bc,"processUpdateQueue");function XE(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}o(XE,"callCallback");function QE(i,s){var l=i.callbacks;if(l!==null)for(i.callbacks=null,i=0;i<l.length;i++)XE(l[i],s)}o(QE,"commitCallbacks");var Pa=N(null),Zf=N(0);function ZE(i,s){i=Wi,lt(Zf,i),lt(Pa,s),Wi=i|s.baseLanes}o(ZE,"pushHiddenContext");function Cg(){lt(Zf,Wi),lt(Pa,Pa.current)}o(Cg,"reuseHiddenContextOnStack");function $g(){Wi=Zf.current,Y(Pa),Y(Zf)}o($g,"popHiddenContext");var Jn=N(null),Or=null;function zo(i){var s=i.alternate;lt(Be,Be.current&1),lt(Jn,i),Or===null&&(s===null||Pa.current!==null||s.memoizedState!==null)&&(Or=i)}o(zo,"pushPrimaryTreeSuspenseHandler");function Mg(i){lt(Be,Be.current),lt(Jn,i),Or===null&&(Or=i)}o(Mg,"pushDehydratedActivitySuspenseHandler");function JE(i){i.tag===22?(lt(Be,Be.current),lt(Jn,i),Or===null&&(Or=i)):Lo()}o(JE,"pushOffscreenSuspenseHandler");function Lo(){lt(Be,Be.current),lt(Jn,Jn.current)}o(Lo,"reuseSuspenseHandlerOnStack");function Wn(i){Y(Jn),Or===i&&(Or=null),Y(Be)}o(Wn,"popSuspenseHandler");var Be=N(0);function Jf(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(Jf,"findFirstSuspended");var Gi=0,It=null,le=null,Ge=null,Wf=!1,qa=!1,Bs=!1,td=0,Uc=0,Ga=null,TN=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(!Qn(i[l],s[l]))return!1;return!0}o(Og,"areHookInputsEqual");function Rg(i,s,l,u,m,p){return Gi=p,It=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,R.H=i===null||i.memoizedState===null?Iw:Gg,Bs=!1,p=l(u,m),Bs=!1,qa&&(p=tw(s,l,u,m)),WE(i),p}o(Rg,"renderWithHooks");function WE(i){R.H=Fc;var s=le!==null&&le.next!==null;if(Gi=0,Ge=le=It=null,Wf=!1,Uc=0,Ga=null,s)throw Error(r(300));i===null||Ye||(i=i.dependencies,i!==null&&qf(i)&&(Ye=!0))}o(WE,"finishRenderingHooks");function tw(i,s,l,u){It=i;var m=0;do{if(qa&&(Ga=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)}R.H=zw,p=s(l,u)}while(qa);return p}o(tw,"renderWithHooksAgain");function AN(){var i=R.H,s=i.useState()[0];return s=typeof s.then=="function"?kc(s):s,i=i.useState()[0],(le!==null?le.memoizedState:null)!==i&&(It.flags|=1024),s}o(AN,"TransitionAwareHostComponent");function Ng(){var i=td!==0;return td=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(Wf){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Wf=!1}Gi=0,Ge=le=It=null,qa=!1,Uc=td=0,Ga=null}o(Dg,"resetHooksOnUnwind");function Tn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?It.memoizedState=Ge=i:Ge=Ge.next=i,Ge}o(Tn,"mountWorkInProgressHook");function Ue(){if(le===null){var i=It.alternate;i=i!==null?i.memoizedState:null}else i=le.next;var s=Ge===null?It.memoizedState:Ge.next;if(s!==null)Ge=s,le=i;else{if(i===null)throw It.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?It.memoizedState=Ge=i:Ge=Ge.next=i}return Ge}o(Ue,"updateWorkInProgressHook");function ed(){return{lastEffect:null,events:null,stores:null,memoCache:null}}o(ed,"createFunctionComponentUpdateQueue");function kc(i){var s=Uc;return Uc+=1,Ga===null&&(Ga=[]),i=qE(Ga,i,s),s=It,(Ge===null?s.memoizedState:Ge.next)===null&&(s=s.alternate,R.H=s===null||s.memoizedState===null?Iw:Gg),i}o(kc,"useThenable");function nd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return kc(i);if(i.$$typeof===D)return un(i)}throw Error(r(438,String(i)))}o(nd,"use");function jg(i){var s=null,l=It.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var u=It.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=ed(),It.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 rd(i){var s=Ue();return Ig(s,le,i)}o(rd,"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,j=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)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ct===Ua&&(rt=!0);else if((Gi&Q)===Q){X=X.next,Q===Ua&&(rt=!0);continue}else ct={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},j===null?(T=j=ct,S=p):j=j.next=ct,It.lanes|=Q,ko|=Q;ct=X.action,Bs&&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},j===null?(T=j=Q,S=p):j=j.next=Q,It.lanes|=ct,ko|=ct;X=X.next}while(X!==null&&X!==s);if(j===null?S=p:j.next=T,!Qn(p,i.memoizedState)&&(Ye=!0,rt&&(l=ka,l!==null)))throw l;i.memoizedState=p,i.baseState=S,i.baseQueue=j,u.lastRenderedState=p}return m===null&&(u.lanes=0),[i.memoizedState,u.dispatch]}o(Ig,"updateReducerImpl");function zg(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);Qn(p,s.memoizedState)||(Ye=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),l.lastRenderedState=p}return[p,u]}o(zg,"rerenderReducer");function ew(i,s,l){var u=It,m=Ue(),p=Xt;if(p){if(l===void 0)throw Error(r(407));l=l()}else l=s();var S=!Qn((le||m).memoizedState,l);if(S&&(m.memoizedState=l,Ye=!0),m=m.queue,Ug(iw.bind(null,u,m,i),[i]),m.getSnapshot!==s||S||Ge!==null&&Ge.memoizedState.tag&1){if(u.flags|=2048,Ya(9,{destroy:void 0},rw.bind(null,u,m,l,s),null),me===null)throw Error(r(349));p||(Gi&127)!==0||nw(u,s,l)}return l}o(ew,"updateSyncExternalStore");function nw(i,s,l){i.flags|=16384,i={getSnapshot:s,value:l},s=It.updateQueue,s===null?(s=ed(),It.updateQueue=s,s.stores=[i]):(l=s.stores,l===null?s.stores=[i]:l.push(i))}o(nw,"pushStoreConsistencyCheck");function rw(i,s,l,u){s.value=l,s.getSnapshot=u,ow(s)&&sw(i)}o(rw,"updateStoreInstance");function iw(i,s,l){return l(function(){ow(s)&&sw(i)})}o(iw,"subscribeToStore");function ow(i){var s=i.getSnapshot;i=i.value;try{var l=s();return!Qn(i,l)}catch{return!0}}o(ow,"checkIfSnapshotChanged");function sw(i){var s=Os(i,2);s!==null&&zn(s,i,2)}o(sw,"forceStoreRerender");function Lg(i){var s=Tn();if(typeof i=="function"){var l=i;if(i=l(),Bs){Co(!0);try{l()}finally{Co(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:i},s}o(Lg,"mountStateImpl");function aw(i,s,l,u){return i.baseState=l,Ig(i,le,typeof u=="function"?u:Yi)}o(aw,"updateOptimisticImpl");function CN(i,s,l,u,m){if(sd(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")};R.T!==null?l(!0):p.isTransition=!1,u(p),l=s.pending,l===null?(p.next=s.pending=p,lw(s,p)):(p.next=l.next,s.pending=l.next=p)}}o(CN,"dispatchActionState");function lw(i,s){var l=s.action,u=s.payload,m=i.state;if(s.isTransition){var p=R.T,S={};R.T=S;try{var T=l(m,u),j=R.S;j!==null&&j(S,T),cw(i,s,T)}catch(X){Bg(i,s,X)}finally{p!==null&&S.types!==null&&(p.types=S.types),R.T=p}}else try{p=l(m,u),cw(i,s,p)}catch(X){Bg(i,s,X)}}o(lw,"runActionStateAction");function cw(i,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){uw(i,s,u)},function(u){return Bg(i,s,u)}):uw(i,s,l)}o(cw,"handleActionReturnValue");function uw(i,s,l){s.status="fulfilled",s.value=l,fw(s),i.state=l,s=i.pending,s!==null&&(l=s.next,l===s?i.pending=null:(l=l.next,s.next=l,lw(i,l)))}o(uw,"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,fw(s),s=s.next;while(s!==u)}i.action=null}o(Bg,"onActionError");function fw(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}o(fw,"notifyActionListeners");function dw(i,s){return s}o(dw,"actionStateReducer");function mw(i,s){if(Xt){var l=me.formState;if(l!==null){t:{var u=It;if(Xt){if(Ee){e:{for(var m=Ee,p=Mr;m.nodeType!==8;){if(!p){m=null;break e}if(m=Rr(m.nextSibling),m===null){m=null;break e}}p=m.data,m=p==="F!"||p==="F"?m:null}if(m){Ee=Rr(m.nextSibling),u=m.data==="F!";break t}}No(u)}u=!1}u&&(s=l[0])}}return l=Tn(),l.memoizedState=l.baseState=s,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dw,lastRenderedState:s},l.queue=u,l=_w.bind(null,It,u),u.dispatch=l,u=Lg(!1),p=qg.bind(null,It,!1,u.queue),u=Tn(),m={state:s,dispatch:null,action:i,pending:null},u.queue=m,l=CN.bind(null,It,m,p,l),m.dispatch=l,u.memoizedState=i,[s,l,!1]}o(mw,"mountActionState");function hw(i){var s=Ue();return pw(s,le,i)}o(hw,"updateActionState");function pw(i,s,l){if(s=Ig(i,s,dw)[0],i=rd(Yi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var u=kc(s)}catch(S){throw S===Ha?Vf:S}else u=s;s=Ue();var m=s.queue,p=m.dispatch;return l!==s.memoizedState&&(It.flags|=2048,Ya(9,{destroy:void 0},$N.bind(null,m,l),null)),[u,p,i]}o(pw,"updateActionStateImpl");function $N(i,s){i.action=s}o($N,"actionStateActionEffect");function gw(i){var s=Ue(),l=le;if(l!==null)return pw(s,l,i);Ue(),s=s.memoizedState,l=Ue();var u=l.queue.dispatch;return l.memoizedState=i,[s,u,!1]}o(gw,"rerenderActionState");function Ya(i,s,l,u){return i={tag:i,create:l,deps:u,inst:s,next:null},s=It.updateQueue,s===null&&(s=ed(),It.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(Ya,"pushSimpleEffect");function yw(){return Ue().memoizedState}o(yw,"updateRef");function id(i,s,l,u){var m=Tn();It.flags|=i,m.memoizedState=Ya(1|s,{destroy:void 0},l,u===void 0?null:u)}o(id,"mountEffectImpl");function od(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=Ya(s,p,l,u):(It.flags|=i,m.memoizedState=Ya(1|s,p,l,u))}o(od,"updateEffectImpl");function bw(i,s){id(8390656,8,i,s)}o(bw,"mountEffect");function Ug(i,s){od(2048,8,i,s)}o(Ug,"updateEffect");function MN(i){It.flags|=4;var s=It.updateQueue;if(s===null)s=ed(),It.updateQueue=s,s.events=[i];else{var l=s.events;l===null?s.events=[i]:l.push(i)}}o(MN,"useEffectEventImpl");function vw(i){var s=Ue().memoizedState;return MN({ref:s,nextImpl:i}),function(){if((ee&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}o(vw,"updateEvent");function Sw(i,s){return od(4,2,i,s)}o(Sw,"updateInsertionEffect");function xw(i,s){return od(4,4,i,s)}o(xw,"updateLayoutEffect");function Ew(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(Ew,"imperativeHandleEffect");function ww(i,s,l){l=l!=null?l.concat([i]):null,od(4,4,Ew.bind(null,s,i),l)}o(ww,"updateImperativeHandle");function kg(){}o(kg,"mountDebugValue");function Tw(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(Tw,"updateCallback");function Aw(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(),Bs){Co(!0);try{i()}finally{Co(!1)}}return l.memoizedState=[u,s],u}o(Aw,"updateMemo");function Hg(i,s,l){return l===void 0||(Gi&1073741824)!==0&&(Gt&261930)===0?i.memoizedState=s:(i.memoizedState=l,i=C2(),It.lanes|=i,ko|=i,l)}o(Hg,"mountDeferredValueImpl");function Cw(i,s,l,u){return Qn(l,s)?l:Pa.current!==null?(i=Hg(i,l,u),Qn(i,s)||(Ye=!0),i):(Gi&42)===0||(Gi&1073741824)!==0&&(Gt&261930)===0?(Ye=!0,i.memoizedState=l):(i=C2(),It.lanes|=i,ko|=i,s)}o(Cw,"updateDeferredValueImpl");function $w(i,s,l,u,m){var p=U.p;U.p=p!==0&&8>p?p:8;var S=R.T,T={};R.T=T,qg(i,!1,s,l);try{var j=m(),X=R.S;if(X!==null&&X(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var rt=wN(j,u);Hc(i,s,rt,nr(i))}else Hc(i,s,u,nr(i))}catch(ct){Hc(i,s,{then:o(function(){},"then"),status:"rejected",reason:ct},nr())}finally{U.p=p,S!==null&&T.types!==null&&(S.types=T.types),R.T=S}}o($w,"startTransition");function ON(){}o(ON,"noop");function Fg(i,s,l,u){if(i.tag!==5)throw Error(r(476));var m=Mw(i).queue;$w(i,m,s,I,l===null?ON:function(){return Ow(i),l(u)})}o(Fg,"startHostTransition");function Mw(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:I},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(Mw,"ensureFormComponentIsStateful");function Ow(i){var s=Mw(i);s.next===null&&(s=i.alternate.memoizedState),Hc(i,s.next.queue,{},nr())}o(Ow,"requestFormReset$1");function Pg(){return un(iu)}o(Pg,"useHostTransitionStatus");function Rw(){return Ue().memoizedState}o(Rw,"updateId");function Nw(){return Ue().memoizedState}o(Nw,"updateRefresh");function RN(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var l=nr();i=jo(l);var u=Io(s,i,l);u!==null&&(zn(u,s,l),zc(u,s,l)),s={cache:bg()},i.payload=s;return}s=s.return}}o(RN,"refreshCache");function NN(i,s,l){var u=nr();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},sd(i)?Dw(s,l):(l=ag(i,s,l,u),l!==null&&(zn(l,i,u),jw(l,s,u)))}o(NN,"dispatchReducerAction");function _w(i,s,l){var u=nr();Hc(i,s,l,u)}o(_w,"dispatchSetState");function Hc(i,s,l,u){var m={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(sd(i))Dw(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,Qn(T,S))return kf(i,s,m,0),me===null&&Uf(),!1}catch{}if(l=ag(i,s,m,u),l!==null)return zn(l,i,u),jw(l,s,u),!0}return!1}o(Hc,"dispatchSetStateInternal");function qg(i,s,l,u){if(u={lane:2,revertLane:Ey(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},sd(i)){if(s)throw Error(r(479))}else s=ag(i,l,u,2),s!==null&&zn(s,i,2)}o(qg,"dispatchOptimisticSetState");function sd(i){var s=i.alternate;return i===It||s!==null&&s===It}o(sd,"isRenderPhaseUpdate");function Dw(i,s){qa=Wf=!0;var l=i.pending;l===null?s.next=s:(s.next=l.next,l.next=s),i.pending=s}o(Dw,"enqueueRenderPhaseUpdate");function jw(i,s,l){if((l&4194048)!==0){var u=s.lanes;u&=i.pendingLanes,l|=u,s.lanes=l,Ux(i,l)}}o(jw,"entangleTransitionUpdate");var Fc={readContext:un,use:nd,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 Iw={readContext:un,use:nd,useCallback:o(function(i,s){return Tn().memoizedState=[i,s===void 0?null:s],i},"useCallback"),useContext:un,useEffect:bw,useImperativeHandle:o(function(i,s,l){l=l!=null?l.concat([i]):null,id(4194308,4,Ew.bind(null,s,i),l)},"useImperativeHandle"),useLayoutEffect:o(function(i,s){return id(4194308,4,i,s)},"useLayoutEffect"),useInsertionEffect:o(function(i,s){id(4,2,i,s)},"useInsertionEffect"),useMemo:o(function(i,s){var l=Tn();s=s===void 0?null:s;var u=i();if(Bs){Co(!0);try{i()}finally{Co(!1)}}return l.memoizedState=[u,s],u},"useMemo"),useReducer:o(function(i,s,l){var u=Tn();if(l!==void 0){var m=l(s);if(Bs){Co(!0);try{l(s)}finally{Co(!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=NN.bind(null,It,i),[u.memoizedState,i]},"useReducer"),useRef:o(function(i){var s=Tn();return i={current:i},s.memoizedState=i},"useRef"),useState:o(function(i){i=Lg(i);var s=i.queue,l=_w.bind(null,It,s);return s.dispatch=l,[i.memoizedState,l]},"useState"),useDebugValue:kg,useDeferredValue:o(function(i,s){var l=Tn();return Hg(l,i,s)},"useDeferredValue"),useTransition:o(function(){var i=Lg(!1);return i=$w.bind(null,It,i.queue,!0,!1),Tn().memoizedState=i,[!1,i]},"useTransition"),useSyncExternalStore:o(function(i,s,l){var u=It,m=Tn();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||nw(u,s,l)}m.memoizedState=l;var p={value:l,getSnapshot:s};return m.queue=p,bw(iw.bind(null,u,p,i),[i]),u.flags|=2048,Ya(9,{destroy:void 0},rw.bind(null,u,p,l,s),null),l},"useSyncExternalStore"),useId:o(function(){var i=Tn(),s=me.identifierPrefix;if(Xt){var l=vi,u=bi;l=(u&~(1<<32-Xn(u)-1)).toString(32)+l,s="_"+s+"R_"+l,l=td++,0<l&&(s+="H"+l.toString(32)),s+="_"}else l=TN++,s="_"+s+"r_"+l.toString(32)+"_";return i.memoizedState=s},"useId"),useHostTransitionStatus:Pg,useFormState:mw,useActionState:mw,useOptimistic:o(function(i){var s=Tn();s.memoizedState=s.baseState=i;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=qg.bind(null,It,!0,l),l.dispatch=s,[i,s]},"useOptimistic"),useMemoCache:jg,useCacheRefresh:o(function(){return Tn().memoizedState=RN.bind(null,It)},"useCacheRefresh"),useEffectEvent:o(function(i){var s=Tn(),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:un,use:nd,useCallback:Tw,useContext:un,useEffect:Ug,useImperativeHandle:ww,useInsertionEffect:Sw,useLayoutEffect:xw,useMemo:Aw,useReducer:rd,useRef:yw,useState:o(function(){return rd(Yi)},"useState"),useDebugValue:kg,useDeferredValue:o(function(i,s){var l=Ue();return Cw(l,le.memoizedState,i,s)},"useDeferredValue"),useTransition:o(function(){var i=rd(Yi)[0],s=Ue().memoizedState;return[typeof i=="boolean"?i:kc(i),s]},"useTransition"),useSyncExternalStore:ew,useId:Rw,useHostTransitionStatus:Pg,useFormState:hw,useActionState:hw,useOptimistic:o(function(i,s){var l=Ue();return aw(l,le,i,s)},"useOptimistic"),useMemoCache:jg,useCacheRefresh:Nw};Gg.useEffectEvent=vw;var zw={readContext:un,use:nd,useCallback:Tw,useContext:un,useEffect:Ug,useImperativeHandle:ww,useInsertionEffect:Sw,useLayoutEffect:xw,useMemo:Aw,useReducer:zg,useRef:yw,useState:o(function(){return zg(Yi)},"useState"),useDebugValue:kg,useDeferredValue:o(function(i,s){var l=Ue();return le===null?Hg(l,i,s):Cw(l,le.memoizedState,i,s)},"useDeferredValue"),useTransition:o(function(){var i=zg(Yi)[0],s=Ue().memoizedState;return[typeof i=="boolean"?i:kc(i),s]},"useTransition"),useSyncExternalStore:ew,useId:Rw,useHostTransitionStatus:Pg,useFormState:gw,useActionState:gw,useOptimistic:o(function(i,s){var l=Ue();return le!==null?aw(l,le,i,s):(l.baseState=i,[i,l.queue.dispatch])},"useOptimistic"),useMemoCache:jg,useCacheRefresh:Nw};zw.useEffectEvent=vw;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=nr(),m=jo(u);m.payload=s,l!=null&&(m.callback=l),s=Io(i,m,u),s!==null&&(zn(s,i,u),zc(s,i,u))},"enqueueSetState"),enqueueReplaceState:o(function(i,s,l){i=i._reactInternals;var u=nr(),m=jo(u);m.tag=1,m.payload=s,l!=null&&(m.callback=l),s=Io(i,m,u),s!==null&&(zn(s,i,u),zc(s,i,u))},"enqueueReplaceState"),enqueueForceUpdate:o(function(i,s){i=i._reactInternals;var l=nr(),u=jo(l);u.tag=2,s!=null&&(u.callback=s),s=Io(i,u,l),s!==null&&(zn(s,i,l),zc(s,i,l))},"enqueueForceUpdate")};function Lw(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(Lw,"checkShouldComponentUpdate");function Bw(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(Bw,"callComponentWillReceiveProps");function Us(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(Us,"resolveClassComponentProps");function Uw(i){Bf(i)}o(Uw,"defaultOnUncaughtError");function kw(i){console.error(i)}o(kw,"defaultOnCaughtError");function Hw(i){Bf(i)}o(Hw,"defaultOnRecoverableError");function ad(i,s){try{var l=i.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(u){setTimeout(function(){throw u})}}o(ad,"logUncaughtError");function Fw(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(Fw,"logCaughtError");function Kg(i,s,l){return l=jo(l),l.tag=3,l.payload={element:null},l.callback=function(){ad(i,s)},l}o(Kg,"createRootErrorUpdate");function Pw(i){return i=jo(i),i.tag=3,i}o(Pw,"createClassErrorUpdate");function qw(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(){Fw(s,l,u)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(i.callback=function(){Fw(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(qw,"initializeClassErrorUpdate");function _N(i,s,l,u,m){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(s=l.alternate,s!==null&&Ba(s,l,m,!0),l=Jn.current,l!==null){switch(l.tag){case 31:case 13:return Or===null?vd():l.alternate===null&&Ie===0&&(Ie=3),l.flags&=-257,l.flags|=65536,l.lanes=m,u===Kf?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===Kf?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),vd(),!1}if(Xt)return s=Jn.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(Ar(i,l)))):(u!==mg&&(s=Error(r(423),{cause:u}),Nc(Ar(s,l))),i=i.current.alternate,i.flags|=65536,m&=-m,i.lanes|=m,u=Ar(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=Ar(p,l),Qc===null?Qc=[p]:Qc.push(p),Ie!==4&&(Ie=2),s===null)return!0;u=Ar(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=Pw(m),qw(m,i,l,u),Tg(l,m),!1}l=l.return}while(l!==null);return!1}o(_N,"throwException");var Xg=Error(r(461)),Ye=!1;function fn(i,s,l,u){s.child=i===null?KE(s,null,l,u):Ls(s,i.child,l,u)}o(fn,"reconcileChildren");function Gw(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 Ds(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,fn(i,s,u,m),s.child)}o(Gw,"updateForwardRef");function Yw(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,Vw(i,s,p,u,m)):(i=Ff(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=Hi(p,u),i.ref=s.ref,i.return=s,s.child=i}o(Yw,"updateMemoComponent");function Vw(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(Vw,"updateSimpleMemoComponent");function Kw(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 Xw(i,s,p,l,u)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Yf(s,p!==null?p.cachePool:null),p!==null?ZE(s,p):Cg(),JE(s);else return u=s.lanes=536870912,Xw(i,s,p!==null?p.baseLanes|l:l,l,u)}else p!==null?(Yf(s,p.cachePool),ZE(s,p),Lo(),s.memoizedState=null):(i!==null&&Yf(s,null),Cg(),Lo());return fn(i,s,m,l),s.child}o(Kw,"updateOffscreenComponent");function Pc(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}o(Pc,"bailoutOffscreenComponent");function Xw(i,s,l,u,m){var p=Sg();return p=p===null?null:{parent:qe._currentValue,pool:p},s.memoizedState={baseLanes:l,cachePool:p},i!==null&&Yf(s,null),Cg(),JE(s),i!==null&&Ba(i,s,u,!0),s.childLanes=m,null}o(Xw,"deferHiddenOffscreenComponent");function ld(i,s){return s=ud({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}o(ld,"mountActivityChildren");function Qw(i,s,l){return Ls(s,i.child,null,l),i=ld(s,s.pendingProps),i.flags|=2,Wn(s),s.memoizedState=null,i}o(Qw,"retryActivityComponentWithoutHydrating");function DN(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=ld(s,u),s.lanes=536870912,Pc(null,i);if(Mg(s),(i=Ee)?(i=lT(i,Mr),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Oo!==null?{id:bi,overflow:vi}:null,retryLane:536870912,hydrationErrors:null},l=DE(i),l.return=s,s.child=l,cn=s,Ee=null)):i=null,i===null)throw No(s);return s.lanes=536870912,null}return ld(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=Qw(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||Ba(i,s,l,!1),m=(l&i.childLanes)!==0,Ye||m){if(u=me,u!==null&&(S=kx(u,l),S!==0&&S!==p.retryLane))throw p.retryLane=S,Os(i,S),zn(u,i,S),Xg;vd(),s=Qw(i,s,l)}else i=p.treeContext,Ee=Rr(S.nextSibling),cn=s,Xt=!0,Ro=null,Mr=!1,i!==null&&zE(s,i),s=ld(s,u),s.flags|=4096;return s}return i=Hi(i.child,{mode:u.mode,children:u.children}),i.ref=s.ref,s.child=i,i.return=s,i}o(DN,"updateActivityComponent");function cd(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(cd,"markRef");function Qg(i,s,l,u,m){return Ds(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,fn(i,s,l,m),s.child)}o(Qg,"updateFunctionComponent");function Zw(i,s,l,u,m,p){return Ds(s),s.updateQueue=null,l=tw(s,u,l,m),WE(i),u=Ng(),i!==null&&!Ye?(_g(i,s,p),Vi(i,s,p)):(Xt&&u&&fg(s),s.flags|=1,fn(i,s,l,p),s.child)}o(Zw,"replayFunctionComponent");function Jw(i,s,l,u,m){if(Ds(s),s.stateNode===null){var p=ja,S=l.contextType;typeof S=="object"&&S!==null&&(p=un(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?un(S):ja,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),Lc(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),u=!0}else if(i===null){p=s.stateNode;var T=s.memoizedProps,j=Us(l,T);p.props=j;var X=p.context,rt=l.contextType;S=ja,typeof rt=="object"&&rt!==null&&(S=un(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)&&Bw(s,p,u,S),Do=!1;var Q=s.memoizedState;p.state=Q,Bc(s,u,p,m),Lc(),X=s.memoizedState,T||Q!==X||Do?(typeof ct=="function"&&(Yg(s,l,ct,u),X=s.memoizedState),(j=Do||Lw(s,l,j,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=j):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{p=s.stateNode,wg(i,s),S=s.memoizedProps,rt=Us(l,S),p.props=rt,ct=s.pendingProps,Q=p.context,X=l.contextType,j=ja,typeof X=="object"&&X!==null&&(j=un(X)),T=l.getDerivedStateFromProps,(X=typeof T=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==ct||Q!==j)&&Bw(s,p,u,j),Do=!1,Q=s.memoizedState,p.state=Q,Bc(s,u,p,m),Lc();var W=s.memoizedState;S!==ct||Q!==W||Do||i!==null&&i.dependencies!==null&&qf(i.dependencies)?(typeof T=="function"&&(Yg(s,l,T,u),W=s.memoizedState),(rt=Do||Lw(s,l,rt,u,Q,W,j)||i!==null&&i.dependencies!==null&&qf(i.dependencies))?(X||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,W,j),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,W,j)),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=j,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,cd(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)):fn(i,s,l,m),s.memoizedState=p.state,i=s.child):i=Vi(i,s,m),i}o(Jw,"updateClassComponent");function Ww(i,s,l,u){return Ns(),s.flags|=256,fn(i,s,l,u),s.child}o(Ww,"mountHostRootWithoutHydrating");var Zg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jg(i){return{baseLanes:i,cachePool:FE()}}o(Jg,"mountSuspenseOffscreenState");function Wg(i,s,l){return i=i!==null?i.childLanes&~l:0,s&&(i|=er),i}o(Wg,"getRemainingWorkInPrimaryTree");function t2(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?zo(s):Lo(),(i=Ee)?(i=lT(i,Mr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Oo!==null?{id:bi,overflow:vi}:null,retryLane:536870912,hydrationErrors:null},l=DE(i),l.return=s,s.child=l,cn=s,Ee=null)):i=null,i===null)throw No(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=ud({mode:"hidden",children:T},m),u=Rs(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,Pc(null,u)):(zo(s),ty(s,T))}var j=i.memoizedState;if(j!==null&&(T=j.dehydrated,T!==null)){if(p)s.flags&256?(zo(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=ud({mode:"visible",children:u.children},m),T=Rs(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=Pc(null,u));else if(zo(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||Ba(i,s,l,!1),S=(l&i.childLanes)!==0,Ye||S){if(S=me,S!==null&&(u=kx(S,l),u!==0&&u!==j.retryLane))throw j.retryLane=u,Os(i,u),zn(S,i,u),Xg;jy(T)||vd(),s=ey(i,s,l)}else jy(T)?(s.flags|=192,s.child=i.child,s=null):(i=j.treeContext,Ee=Rr(T.nextSibling),cn=s,Xt=!0,Ro=null,Mr=!1,i!==null&&zE(s,i),s=ty(s,u.children),s.flags|=4096);return s}return m?(Lo(),T=u.fallback,m=s.mode,j=i.child,X=j.sibling,u=Hi(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,X!==null?T=Hi(X,T):(T=Rs(T,m,l,null),T.flags|=2),T.return=s,u.return=s,u.sibling=T,s.child=u,Pc(null,u),u=s.child,T=i.child.memoizedState,T===null?T=Jg(l):(m=T.cachePool,m!==null?(j=qe._currentValue,m=m.parent!==j?{parent:j,pool:j}:m):m=FE(),T={baseLanes:T.baseLanes|l,cachePool:m}),u.memoizedState=T,u.childLanes=Wg(i,S,l),s.memoizedState=Zg,Pc(i.child,u)):(zo(s),l=i.child,i=l.sibling,l=Hi(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(t2,"updateSuspenseComponent");function ty(i,s){return s=ud({mode:"visible",children:s},i.mode),s.return=i,i.child=s}o(ty,"mountSuspensePrimaryChildren");function ud(i,s){return i=Zn(22,i,null,s),i.lanes=0,i}o(ud,"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 e2(i,s,l){i.lanes|=s;var u=i.alternate;u!==null&&(u.lanes|=s),gg(i.return,s,l)}o(e2,"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 n2(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),fn(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&&e2(i,l,s);else if(i.tag===19)e2(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&&Jf(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&&Jf(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(n2,"updateSuspenseListComponent");function Vi(i,s,l){if(i!==null&&(s.dependencies=i.dependencies),ko|=s.lanes,(l&s.childLanes)===0)if(i!==null){if(Ba(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=Hi(i,i.pendingProps),s.child=l,l.return=s;i.sibling!==null;)i=i.sibling,l=l.sibling=Hi(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&&qf(i)))}o(ry,"checkScheduledUpdateOrContext");function jN(i,s,l){switch(s.tag){case 3:te(s,s.stateNode.containerInfo),_o(s,qe,i.memoizedState.cache),Ns();break;case 27:case 5:ye(s);break;case 4:te(s,s.stateNode.containerInfo);break;case 10:_o(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?(zo(s),s.flags|=128,null):(l&s.child.childLanes)!==0?t2(i,s,l):(zo(s),i=Vi(i,s,l),i!==null?i.sibling:null);zo(s);break;case 19:var m=(i.flags&128)!==0;if(u=(l&s.childLanes)!==0,u||(Ba(i,s,l,!1),u=(l&s.childLanes)!==0),m){if(u)return n2(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,Kw(i,s,l,s.pendingProps);case 24:_o(s,qe,i.memoizedState.cache)}return Vi(i,s,l)}o(jN,"attemptEarlyBailoutIfNoScheduledUpdate");function r2(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,jN(i,s,l);Ye=(i.flags&131072)!==0}else Ye=!1,Xt&&(s.flags&1048576)!==0&&IE(s,Rc,s.index);switch(s.lanes=0,s.tag){case 16:t:{var u=s.pendingProps;if(i=Is(s.elementType),s.type=i,typeof i=="function")lg(i)?(u=Us(i,u),s.tag=1,s=Jw(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=Gw(null,s,i,u,l);break t}else if(m===B){s.tag=14,s=Yw(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=Us(u,s.pendingProps),Jw(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,_o(s,qe,u),u!==p.cache&&yg(s,[qe],l,!0),Lc(),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=Ww(i,s,u,l);break t}else if(u!==m){m=Ar(Error(r(424)),s),Nc(m),s=Ww(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=Rr(i.firstChild),cn=s,Xt=!0,Ro=null,Mr=!0,l=KE(s,null,u,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ns(),u===m){s=Vi(i,s,l);break t}fn(i,s,u,l)}s=s.child}return s;case 26:return cd(i,s),i===null?(l=hT(s.type,null,s.pendingProps,null))?s.memoizedState=l:Xt||(l=s.type,i=s.pendingProps,u=Cd(yt.current).createElement(l),u[ln]=s,u[Rn]=i,dn(u,l,i),rn(u),s.stateNode=u):s.memoizedState=hT(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return ye(s),i===null&&Xt&&(u=s.stateNode=fT(s.type,s.pendingProps,yt.current),cn=s,Mr=!0,m=Ee,Go(s.type)?(zy=m,Ee=Rr(u.firstChild)):Ee=m),fn(i,s,s.pendingProps.children,l),cd(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&Xt&&((m=u=Ee)&&(u=u5(u,s.type,s.pendingProps,Mr),u!==null?(s.stateNode=u,cn=s,Ee=Rr(u.firstChild),Mr=!1,m=!0):m=!1),m||No(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,AN,null,null,l),iu._currentValue=m),cd(i,s),fn(i,s,u,l),s.child;case 6:return i===null&&Xt&&((i=l=Ee)&&(l=f5(l,s.pendingProps,Mr),l!==null?(s.stateNode=l,cn=s,Ee=null,i=!0):i=!1),i||No(s)),null;case 13:return t2(i,s,l);case 4:return te(s,s.stateNode.containerInfo),u=s.pendingProps,i===null?s.child=Ls(s,null,u,l):fn(i,s,u,l),s.child;case 11:return Gw(i,s,s.type,s.pendingProps,l);case 7:return fn(i,s,s.pendingProps,l),s.child;case 8:return fn(i,s,s.pendingProps.children,l),s.child;case 12:return fn(i,s,s.pendingProps.children,l),s.child;case 10:return u=s.pendingProps,_o(s,s.type,u.value),fn(i,s,u.children,l),s.child;case 9:return m=s.type._context,u=s.pendingProps.children,Ds(s),m=un(m),u=u(m),s.flags|=1,fn(i,s,u,l),s.child;case 14:return Yw(i,s,s.type,s.pendingProps,l);case 15:return Vw(i,s,s.type,s.pendingProps,l);case 19:return n2(i,s,l);case 31:return DN(i,s,l);case 22:return Kw(i,s,l,s.pendingProps);case 24:return Ds(s),u=un(qe),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),_o(s,qe,m)):((i.lanes&l)!==0&&(wg(i,s),Bc(s,null,null,l),Lc()),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),_o(s,qe,u)):(u=p.cache,_o(s,qe,u),u!==m.cache&&yg(s,[qe],l,!0))),fn(i,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}o(r2,"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(R2())i.flags|=8192;else throw zs=Kf,xg}else i.flags&=-16777217}o(iy,"preloadInstanceAndSuspendIfNeeded");function i2(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!vT(s))if(R2())i.flags|=8192;else throw zs=Kf,xg}o(i2,"preloadResourceAndSuspendIfNeeded");function fd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?Lx():536870912,i.lanes|=s,Qa|=s)}o(fd,"scheduleRetryEffect");function qc(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(qc,"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 IN(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),qi(qe),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),i2(s,p)):(we(s),iy(s,m,null,u,l))):p?p!==i.memoizedState?(Ki(s),we(s),i2(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(an(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)?LE(s):(i=fT(m,u,l),s.stateNode=i,Ki(s))}return we(s),null;case 5:if(an(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))LE(s);else{var S=Cd(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[ln]=s,p[Rn]=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(dn(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=cn,m!==null)switch(m.tag){case 27:case 5:u=m.memoizedProps}i[ln]=s,i=!!(i.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||tT(i.nodeValue,l)),i||No(s,!0)}else i=Cd(i).createTextNode(u),i[ln]=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[ln]=s}else Ns(),(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?(Wn(s),s):(Wn(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[ln]=s}else Ns(),(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?(Wn(s),s):(Wn(s),null)}return Wn(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),fd(s,s.updateQueue),we(s),null);case 4:return Kt(),i===null&&Cy(s.stateNode.containerInfo),we(s),null;case 10:return qi(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)qc(u,!1);else{if(Ie!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(p=Jf(i),p!==null){for(s.flags|=128,qc(u,!1),i=p.updateQueue,s.updateQueue=i,fd(s,i),s.subtreeFlags=0,i=l,l=s.child;l!==null;)_E(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&&Vn()>gd&&(s.flags|=128,m=!0,qc(u,!1),s.lanes=4194304)}else{if(!m)if(i=Jf(p),i!==null){if(s.flags|=128,m=!0,i=i.updateQueue,s.updateQueue=i,fd(s,i),qc(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!Xt)return we(s),null}else 2*Vn()-u.renderingStartTime>gd&&l!==536870912&&(s.flags|=128,m=!0,qc(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=Vn(),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 Wn(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&&fd(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(js),null;case 24:return l=null,i!==null&&(l=i.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),qi(qe),we(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}o(IN,"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 qi(qe),Kt(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return an(s),null;case 31:if(s.memoizedState!==null){if(Wn(s),s.alternate===null)throw Error(r(340));Ns()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(Wn(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Ns()}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 qi(s.type),null;case 22:case 23:return Wn(s),$g(),i!==null&&Y(js),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return qi(qe),null;case 25:return null;default:return null}}o(zN,"unwindWork");function o2(i,s){switch(dg(s),s.tag){case 3:qi(qe),Kt();break;case 26:case 27:case 5:an(s);break;case 4:Kt();break;case 31:s.memoizedState!==null&&Wn(s);break;case 13:Wn(s);break;case 19:Y(Be);break;case 10:qi(s.type);break;case 22:case 23:Wn(s),$g(),i!==null&&Y(js);break;case 24:qi(qe)}}o(o2,"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 Bo(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 j=l,X=T;try{X()}catch(rt){se(m,j,rt)}}}u=u.next}while(u!==p)}}catch(rt){se(s,s.return,rt)}}o(Bo,"commitHookEffectListUnmount");function s2(i){var s=i.updateQueue;if(s!==null){var l=i.stateNode;try{QE(s,l)}catch(u){se(i,i.return,u)}}}o(s2,"commitClassCallbacks");function a2(i,s,l){l.props=Us(i.type,i.memoizedProps),l.state=i.memoizedState;try{l.componentWillUnmount()}catch(u){se(i,s,u)}}o(a2,"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 Si(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(Si,"safelyDetachRef");function l2(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(l2,"commitHostMount");function oy(i,s,l){try{var u=i.stateNode;i5(u,i.type,l,s),u[Rn]=s}catch(m){se(i,i.return,m)}}o(oy,"commitHostUpdate");function c2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Go(i.type)||i.tag===4}o(c2,"isHostParent");function sy(i){t:for(;;){for(;i.sibling===null;){if(i.return===null||c2(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&&Go(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&&Go(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 dd(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&&Go(i.type)&&(l=i.stateNode),i=i.child,i!==null))for(dd(i,s,l),i=i.sibling;i!==null;)dd(i,s,l),i=i.sibling}o(dd,"insertOrAppendPlacementNode");function u2(i){var s=i.stateNode,l=i.memoizedProps;try{for(var u=i.type,m=s.attributes;m.length;)s.removeAttributeNode(m[0]);dn(s,u,l),s[ln]=i,s[Rn]=l}catch(p){se(i,i.return,p)}}o(u2,"commitHostSingletonAcquisition");var Xi=!1,Ve=!1,ly=!1,f2=typeof WeakSet=="function"?WeakSet:Set,on=null;function LN(i,s){if(i=i.containerInfo,Oy=Dd,i=wE(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,j=-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||(j=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&&(j=S),(W=ct.nextSibling)!==null)break;ct=Q,Q=ct.parentNode}ct=W}l=T===-1||j===-1?null:{start:T,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ry={focusedElem:i,selectionRange:l},Dd=!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=Us(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(LN,"commitBeforeMutationEffects");function d2(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=Us(l.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(m,s,i.__reactInternalSnapshotBeforeUpdate)}catch(S){se(l,l.return,S)}}u&64&&s2(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{QE(i,s)}catch(S){se(l,l.return,S)}}break;case 27:s===null&&u&4&&u2(l);case 26:case 5:Zi(i,l),s===null&&u&4&&l2(l),u&512&&Yc(l,l.return);break;case 12:Zi(i,l);break;case 31:Zi(i,l),u&4&&p2(i,l);break;case 13:Zi(i,l),u&4&&g2(i,l),u&64&&(i=l.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(l=YN.bind(null,l),d5(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(d2,"commitLayoutEffectOnFiber");function m2(i){var s=i.alternate;s!==null&&(i.alternate=null,m2(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(m2,"detachFiberAfterEffects");var $e=null,_n=!1;function Qi(i,s,l){for(l=l.child;l!==null;)h2(i,s,l),l=l.sibling}o(Qi,"recursivelyTraverseDeletionEffects");function h2(i,s,l){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(gc,l)}catch{}switch(l.tag){case 26:Ve||Si(l,s),Qi(i,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||Si(l,s);var u=$e,m=_n;Go(l.type)&&($e=l.stateNode,_n=!1),Qi(i,s,l),eu(l.stateNode),$e=u,_n=m;break;case 5:Ve||Si(l,s);case 6:if(u=$e,m=_n,$e=null,Qi(i,s,l),$e=u,_n=m,$e!==null)if(_n)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&&(_n?(i=$e,sT(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,l.stateNode),il(i)):sT($e,l.stateNode));break;case 4:u=$e,m=_n,$e=l.stateNode.containerInfo,_n=!0,Qi(i,s,l),$e=u,_n=m;break;case 0:case 11:case 14:case 15:Bo(2,l,s),Ve||Bo(4,l,s),Qi(i,s,l);break;case 1:Ve||(Si(l,s),u=l.stateNode,typeof u.componentWillUnmount=="function"&&a2(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(h2,"commitDeletionEffectsOnFiber");function p2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{il(i)}catch(l){se(s,s.return,l)}}}o(p2,"commitActivityHydrationCallbacks");function g2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{il(i)}catch(l){se(s,s.return,l)}}o(g2,"commitSuspenseHydrationCallbacks");function BN(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new f2),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new f2),s;default:throw Error(r(435,i.tag))}}o(BN,"getRetryCache");function md(i,s){var l=BN(i);s.forEach(function(u){if(!l.has(u)){l.add(u);var m=VN.bind(null,i,u);u.then(m,m)}})}o(md,"attachSuspenseRetryListeners");function Dn(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(Go(T.type)){$e=T.stateNode,_n=!1;break t}break;case 5:$e=T.stateNode,_n=!1;break t;case 3:case 4:$e=T.stateNode.containerInfo,_n=!0;break t}T=T.return}if($e===null)throw Error(r(160));h2(p,S,m),$e=null,_n=!1,p=m.alternate,p!==null&&(p.return=null),m.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)y2(s,i),s=s.sibling}o(Dn,"recursivelyTraverseMutationEffects");var ti=null;function y2(i,s){var l=i.alternate,u=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Dn(s,i),jn(i),u&4&&(Bo(3,i,i.return),Gc(3,i),Bo(5,i,i.return));break;case 1:Dn(s,i),jn(i),u&512&&(Ve||l===null||Si(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=ti;if(Dn(s,i),jn(i),u&512&&(Ve||l===null||Si(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[ln]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=m.createElement(u),m.head.insertBefore(p,m.querySelector("head > title"))),dn(p,u,l),p[ln]=i,rn(p),u=p;break t;case"link":var S=yT("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),dn(p,u,l),m.head.appendChild(p);break;case"meta":if(S=yT("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),dn(p,u,l),m.head.appendChild(p);break;default:throw Error(r(468,u))}p[ln]=i,rn(p),u=p}i.stateNode=u}else bT(m,i.type,i.stateNode);else i.stateNode=gT(m,u,i.memoizedProps);else p!==u?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,u===null?bT(m,i.type,i.stateNode):gT(m,u,i.memoizedProps)):u===null&&i.stateNode!==null&&oy(i,i.memoizedProps,l.memoizedProps)}break;case 27:Dn(s,i),jn(i),u&512&&(Ve||l===null||Si(l,l.return)),l!==null&&u&4&&oy(i,i.memoizedProps,l.memoizedProps);break;case 5:if(Dn(s,i),jn(i),u&512&&(Ve||l===null||Si(l,l.return)),i.flags&32){m=i.stateNode;try{$a(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(Dn(s,i),jn(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(Od=null,m=ti,ti=$d(s.containerInfo),Dn(s,i),ti=m,jn(i),u&4&&l!==null&&l.memoizedState.isDehydrated)try{il(s.containerInfo)}catch(pt){se(i,i.return,pt)}ly&&(ly=!1,b2(i));break;case 4:u=ti,ti=$d(i.stateNode.containerInfo),Dn(s,i),jn(i),ti=u;break;case 12:Dn(s,i),jn(i);break;case 31:Dn(s,i),jn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,md(i,u)));break;case 13:Dn(s,i),jn(i),i.child.flags&8192&&i.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(pd=Vn()),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,md(i,u)));break;case 22:m=i.memoizedState!==null;var j=l!==null&&l.memoizedState!==null,X=Xi,rt=Ve;if(Xi=X||m,Ve=rt||j,Dn(s,i),Ve=rt,Xi=X,jn(i),u&8192)t:for(s=i.stateNode,s._visibility=m?s._visibility&-2:s._visibility|1,m&&(l===null||j||Xi||Ve||ks(i)),l=null,s=i;;){if(s.tag===5||s.tag===26){if(l===null){j=l=s;try{if(p=j.stateNode,m)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{T=j.stateNode;var ct=j.memoizedProps.style,Q=ct!=null&&ct.hasOwnProperty("display")?ct.display:null;T.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(pt){se(j,j.return,pt)}}}else if(s.tag===6){if(l===null){j=s;try{j.stateNode.nodeValue=m?"":j.memoizedProps}catch(pt){se(j,j.return,pt)}}}else if(s.tag===18){if(l===null){j=s;try{var W=j.stateNode;m?aT(W,!0):aT(j.stateNode,!1)}catch(pt){se(j,j.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,md(i,l))));break;case 19:Dn(s,i),jn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,md(i,u)));break;case 30:break;case 21:break;default:Dn(s,i),jn(i)}}o(y2,"commitMutationEffectsOnFiber");function jn(i){var s=i.flags;if(s&2){try{for(var l,u=i.return;u!==null;){if(c2(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);dd(i,p,m);break;case 5:var S=l.stateNode;l.flags&32&&($a(S,""),l.flags&=-33);var T=sy(i);dd(i,T,S);break;case 3:case 4:var j=l.stateNode.containerInfo,X=sy(i);ay(i,X,j);break;default:throw Error(r(161))}}catch(rt){se(i,i.return,rt)}i.flags&=-3}s&4096&&(i.flags&=-4097)}o(jn,"commitReconciliationEffects");function b2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;b2(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}o(b2,"recursivelyResetForms");function Zi(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)d2(i,s.alternate,s),s=s.sibling}o(Zi,"recursivelyTraverseLayoutEffects");function ks(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Bo(4,s,s.return),ks(s);break;case 1:Si(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&a2(s,s.return,l),ks(s);break;case 27:eu(s.stateNode);case 26:case 5:Si(s,s.return),ks(s);break;case 22:s.memoizedState===null&&ks(s);break;case 30:ks(s);break;default:ks(s)}i=i.sibling}}o(ks,"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 j=m.shared.hiddenCallbacks;if(j!==null)for(m.shared.hiddenCallbacks=null,m=0;m<j.length;m++)XE(j[m],T)}catch(X){se(u,u.return,X)}}l&&S&64&&s2(p),Yc(p,p.return);break;case 27:u2(p);case 26:case 5:Ji(m,p,l),l&&u===null&&S&4&&l2(p),Yc(p,p.return);break;case 12:Ji(m,p,l);break;case 31:Ji(m,p,l),l&&S&4&&p2(m,p);break;case 13:Ji(m,p,l),l&&S&4&&g2(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 ei(i,s,l,u){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)v2(i,s,l,u),s=s.sibling}o(ei,"recursivelyTraversePassiveMountEffects");function v2(i,s,l,u){var m=s.flags;switch(s.tag){case 0:case 11:case 15:ei(i,s,l,u),m&2048&&Gc(9,s);break;case 1:ei(i,s,l,u);break;case 3:ei(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){ei(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(j){se(s,s.return,j)}}else ei(i,s,l,u);break;case 31:ei(i,s,l,u);break;case 13:ei(i,s,l,u);break;case 23:break;case 22:p=s.stateNode,S=s.alternate,s.memoizedState!==null?p._visibility&2?ei(i,s,l,u):Vc(i,s):p._visibility&2?ei(i,s,l,u):(p._visibility|=2,Va(i,s,l,u,(s.subtreeFlags&10256)!==0||!1)),m&2048&&cy(S,s);break;case 24:ei(i,s,l,u),m&2048&&uy(s.alternate,s);break;default:ei(i,s,l,u)}}o(v2,"commitPassiveMountOnFiber");function Va(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,j=u,X=S.flags;switch(S.tag){case 0:case 11:case 15:Va(p,S,T,j,m),Gc(8,S);break;case 23:break;case 22:var rt=S.stateNode;S.memoizedState!==null?rt._visibility&2?Va(p,S,T,j,m):Vc(p,S):(rt._visibility|=2,Va(p,S,T,j,m)),m&&X&2048&&cy(S.alternate,S);break;case 24:Va(p,S,T,j,m),m&&X&2048&&uy(S.alternate,S);break;default:Va(p,S,T,j,m)}s=s.sibling}}o(Va,"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 Ka(i,s,l){if(i.subtreeFlags&Kc)for(i=i.child;i!==null;)S2(i,s,l),i=i.sibling}o(Ka,"recursivelyAccumulateSuspenseyCommit");function S2(i,s,l){switch(i.tag){case 26:Ka(i,s,l),i.flags&Kc&&i.memoizedState!==null&&T5(l,ti,i.memoizedState,i.memoizedProps);break;case 5:Ka(i,s,l);break;case 3:case 4:var u=ti;ti=$d(i.stateNode.containerInfo),Ka(i,s,l),ti=u;break;case 22:i.memoizedState===null&&(u=i.alternate,u!==null&&u.memoizedState!==null?(u=Kc,Kc=16777216,Ka(i,s,l),Kc=u):Ka(i,s,l));break;default:Ka(i,s,l)}}o(S2,"accumulateSuspenseyCommitOnFiber");function x2(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(x2,"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,w2(u,i)}x2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)E2(i),i=i.sibling}o(Xc,"recursivelyTraversePassiveUnmountEffects");function E2(i){switch(i.tag){case 0:case 11:case 15:Xc(i),i.flags&2048&&Bo(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,hd(i)):Xc(i);break;default:Xc(i)}}o(E2,"commitPassiveUnmountOnFiber");function hd(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,w2(u,i)}x2(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Bo(8,s,s.return),hd(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,hd(s));break;default:hd(s)}i=i.sibling}}o(hd,"recursivelyTraverseDisconnectPassiveEffects");function w2(i,s){for(;on!==null;){var l=on;switch(l.tag){case 0:case 11:case 15:Bo(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(m2(u),u===l){on=null;break t}if(m!==null){m.return=p,on=m;break t}on=p}}}o(w2,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var UN={getCacheForType:o(function(i){var s=un(qe),l=s.data.get(i);return l===void 0&&(l=i(),s.data.set(i,l)),l},"getCacheForType"),cacheSignal:o(function(){return un(qe).controller.signal},"cacheSignal")},kN=typeof WeakMap=="function"?WeakMap:Map,ee=0,me=null,Ft=null,Gt=0,oe=0,tr=null,Uo=!1,Xa=!1,fy=!1,Wi=0,Ie=0,ko=0,Hs=0,dy=0,er=0,Qa=0,Qc=null,In=null,my=!1,pd=0,T2=0,gd=1/0,yd=null,Ho=null,We=0,Fo=null,Za=null,to=0,hy=0,py=null,A2=null,Zc=0,gy=null;function nr(){return(ee&2)!==0&&Gt!==0?Gt&-Gt:R.T!==null?Ey():Hx()}o(nr,"requestUpdateLane");function C2(){if(er===0)if((Gt&536870912)===0||Xt){var i=Af;Af<<=1,(Af&3932160)===0&&(Af=262144),er=i}else er=536870912;return i=Jn.current,i!==null&&(i.flags|=32),er}o(C2,"requestDeferredLane");function zn(i,s,l){(i===me&&(oe===2||oe===9)||i.cancelPendingCommit!==null)&&(Ja(i,0),Po(i,Gt,er,!1)),bc(i,l),((ee&2)===0||i!==me)&&(i===me&&((ee&2)===0&&(Hs|=l),Ie===4&&Po(i,Gt,er,!1)),xi(i))}o(zn,"scheduleUpdateOnFiber");function $2(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){Xa&&!u&&Po(i,s,0,!1);break}else{if(l=i.current.alternate,p&&!HN(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 j=T.current.memoizedState.isDehydrated;if(j&&(Ja(T,S).flags|=256),S=by(T,S,!1),S!==2){if(fy&&!j){T.errorRecoveryDisabledLanes|=p,Hs|=p,m=4;break t}p=In,In=m,p!==null&&(In===null?In=p:In.push.apply(In,p))}m=S}if(p=!1,m!==2)continue}}if(m===1){Ja(i,0),Po(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:Po(u,s,er,!Uo);break t;case 2:In=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(m=pd+300-Vn(),10<m)){if(Po(u,s,er,!Uo),$f(u,0,!0)!==0)break t;to=s,u.timeoutHandle=iT(M2.bind(null,u,l,In,yd,my,s,er,Hs,Qa,Uo,p,"Throttled",-0,0),m);break t}M2(u,l,In,yd,my,s,er,Hs,Qa,Uo,p,null,-0,0)}}break}while(!0);xi(i)}o($2,"performWorkOnRoot");function M2(i,s,l,u,m,p,S,T,j,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},S2(s,p,ct);var pt=(p&62914560)===p?pd-Vn():(p&4194048)===p?T2-Vn():0;if(pt=A5(ct,pt),pt!==null){to=p,i.cancelPendingCommit=pt(z2.bind(null,i,s,p,l,u,m,S,T,j,rt,ct,null,Q,W)),Po(i,p,S,!X);return}}z2(i,s,p,l,u,m,S,T,j)}o(M2,"commitRootWhenReady");function HN(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(!Qn(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(HN,"isRenderConsistentWithExternalStores");function Po(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-Xn(m),S=1<<p;u[p]=-1,m&=~S}l!==0&&Bx(i,l,s)}o(Po,"markRootSuspended");function bd(){return(ee&6)===0?(Jc(0),!1):!0}o(bd,"flushSyncWork$1");function yy(){if(Ft!==null){if(oe===0)var i=Ft.return;else i=Ft,Pi=_s=null,Dg(i),Fa=null,jc=0,i=Ft;for(;i!==null;)o2(i.alternate,i),i=i.return;Ft=null}}o(yy,"resetWorkInProgressStack");function Ja(i,s){var l=i.timeoutHandle;l!==-1&&(i.timeoutHandle=-1,a5(l)),l=i.cancelPendingCommit,l!==null&&(i.cancelPendingCommit=null,l()),to=0,yy(),me=i,Ft=l=Hi(i.current,null),Gt=s,oe=0,tr=null,Uo=!1,Xa=yc(i,s),fy=!1,Qa=er=dy=Hs=ko=Ie=0,In=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-Xn(u),p=1<<m;s|=i[m],u&=~p}return Wi=s,Uf(),l}o(Ja,"prepareFreshStack");function O2(i,s){It=null,R.H=Fc,s===Ha||s===Vf?(s=GE(),oe=3):s===xg?(s=GE(),oe=4):oe=s===Xg?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,tr=s,Ft===null&&(Ie=1,ad(i,Ar(s,i.current)))}o(O2,"handleThrow");function R2(){var i=Jn.current;return i===null?!0:(Gt&4194048)===Gt?Or===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?i===Or:!1}o(R2,"shouldRemainOnPreviousScreen");function N2(){var i=R.H;return R.H=Fc,i===null?Fc:i}o(N2,"pushDispatcher");function _2(){var i=R.A;return R.A=UN,i}o(_2,"pushAsyncDispatcher");function vd(){Ie=4,Uo||(Gt&4194048)!==Gt&&Jn.current!==null||(Xa=!0),(ko&134217727)===0&&(Hs&134217727)===0||me===null||Po(me,Gt,er,!1)}o(vd,"renderDidSuspendDelayIfPossible");function by(i,s,l){var u=ee;ee|=2;var m=N2(),p=_2();(me!==i||Gt!==s)&&(yd=null,Ja(i,s)),s=!1;var S=Ie;t:do try{if(oe!==0&&Ft!==null){var T=Ft,j=tr;switch(oe){case 8:yy(),S=6;break t;case 3:case 2:case 9:case 6:Jn.current===null&&(s=!0);var X=oe;if(oe=0,tr=null,Wa(i,T,j,X),l&&Xa){S=0;break t}break;default:X=oe,oe=0,tr=null,Wa(i,T,j,X)}}FN(),S=Ie;break}catch(rt){O2(i,rt)}while(!0);return s&&i.shellSuspendCounter++,Pi=_s=null,ee=u,R.H=m,R.A=p,Ft===null&&(me=null,Gt=0,Uf()),S}o(by,"renderRootSync");function FN(){for(;Ft!==null;)D2(Ft)}o(FN,"workLoopSync");function PN(i,s){var l=ee;ee|=2;var u=N2(),m=_2();me!==i||Gt!==s?(yd=null,gd=Vn()+500,Ja(i,s)):Xa=yc(i,s);t:do try{if(oe!==0&&Ft!==null){s=Ft;var p=tr;e:switch(oe){case 1:oe=0,tr=null,Wa(i,s,p,1);break;case 2:case 9:if(PE(p)){oe=0,tr=null,j2(s);break}s=o(function(){oe!==2&&oe!==9||me!==i||(oe=7),xi(i)},"lanes"),p.then(s,s);break t;case 3:oe=7;break t;case 4:oe=5;break t;case 7:PE(p)?(oe=0,tr=null,j2(s)):(oe=0,tr=null,Wa(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?vT(S):T.stateNode.complete){oe=0,tr=null;var j=T.sibling;if(j!==null)Ft=j;else{var X=T.return;X!==null?(Ft=X,Sd(X)):Ft=null}break e}}oe=0,tr=null,Wa(i,s,p,5);break;case 6:oe=0,tr=null,Wa(i,s,p,6);break;case 8:yy(),Ie=6;break t;default:throw Error(r(462))}}qN();break}catch(rt){O2(i,rt)}while(!0);return Pi=_s=null,R.H=u,R.A=m,ee=l,Ft!==null?0:(me=null,Gt=0,Uf(),Ie)}o(PN,"renderRootConcurrent");function qN(){for(;Ft!==null&&!m4();)D2(Ft)}o(qN,"workLoopConcurrentByScheduler");function D2(i){var s=r2(i.alternate,i,Wi);i.memoizedProps=i.pendingProps,s===null?Sd(i):Ft=s}o(D2,"performUnitOfWork");function j2(i){var s=i,l=s.alternate;switch(s.tag){case 15:case 0:s=Zw(l,s,s.pendingProps,s.type,void 0,Gt);break;case 11:s=Zw(l,s,s.pendingProps,s.type.render,s.ref,Gt);break;case 5:Dg(s);default:o2(l,s),s=Ft=_E(s,Wi),s=r2(l,s,Wi)}i.memoizedProps=i.pendingProps,s===null?Sd(i):Ft=s}o(j2,"replaySuspendedUnitOfWork");function Wa(i,s,l,u){Pi=_s=null,Dg(s),Fa=null,jc=0;var m=s.return;try{if(_N(i,m,s,l,Gt)){Ie=1,ad(i,Ar(l,i.current)),Ft=null;return}}catch(p){if(m!==null)throw Ft=m,p;Ie=1,ad(i,Ar(l,i.current)),Ft=null;return}s.flags&32768?(Xt||u===1?i=!0:Xa||(Gt&536870912)!==0?i=!1:(Uo=i=!0,(u===2||u===9||u===3||u===6)&&(u=Jn.current,u!==null&&u.tag===13&&(u.flags|=16384))),I2(s,i)):Sd(s)}o(Wa,"throwAndUnwindWorkLoop");function Sd(i){var s=i;do{if((s.flags&32768)!==0){I2(s,Uo);return}i=s.return;var l=IN(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(Sd,"completeUnitOfWork");function I2(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(I2,"unwindUnitOfWork");function z2(i,s,l,u,m,p,S,T,j){i.cancelPendingCommit=null;do xd();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,w4(i,l,p,S,T,j),i===me&&(Ft=me=null,Gt=0),Za=s,Fo=i,to=l,hy=p,py=m,A2=u,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,KN(wf,function(){return H2(),null})):(i.callbackNode=null,i.callbackPriority=0),u=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||u){u=R.T,R.T=null,m=U.p,U.p=2,S=ee,ee|=4;try{LN(i,s,l)}finally{ee=S,U.p=m,R.T=u}}We=1,L2(),B2(),U2()}}o(z2,"commitRoot");function L2(){if(We===1){We=0;var i=Fo,s=Za,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var u=U.p;U.p=2;var m=ee;ee|=4;try{y2(s,i);var p=Ry,S=wE(i.containerInfo),T=p.focusedElem,j=p.selectionRange;if(S!==T&&T&&T.ownerDocument&&EE(T.ownerDocument.documentElement,T)){if(j!==null&&eg(T)){var X=j.start,rt=j.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(j.start,pt),ue=j.end===void 0?At:Math.min(j.end,pt);!W.extend&&At>ue&&(S=ue,ue=At,At=S);var q=xE(T,At),k=xE(T,ue);if(q&&k&&(W.rangeCount!==1||W.anchorNode!==q.node||W.anchorOffset!==q.offset||W.focusNode!==k.node||W.focusOffset!==k.offset)){var K=ct.createRange();K.setStart(q.node,q.offset),W.removeAllRanges(),At>ue?(W.addRange(K),W.extend(k.node,k.offset)):(K.setEnd(k.node,k.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}}Dd=!!Oy,Ry=Oy=null}finally{ee=m,U.p=u,R.T=l}}i.current=s,We=2}}o(L2,"flushMutationEffects");function B2(){if(We===2){We=0;var i=Fo,s=Za,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var u=U.p;U.p=2;var m=ee;ee|=4;try{d2(i,s.alternate,s)}finally{ee=m,U.p=u,R.T=l}}We=3}}o(B2,"flushLayoutEffects");function U2(){if(We===4||We===3){We=0,h4();var i=Fo,s=Za,l=to,u=A2;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?We=5:(We=0,Za=Fo=null,k2(i,i.pendingLanes));var m=i.pendingLanes;if(m===0&&(Ho=null),zp(l),s=s.stateNode,Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(gc,s,void 0,(s.current.flags&128)===128)}catch{}if(u!==null){s=R.T,m=U.p,U.p=2,R.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{R.T=s,U.p=m}}(to&3)!==0&&xd(),xi(i),m=i.pendingLanes,(l&261930)!==0&&(m&42)!==0?i===gy?Zc++:(Zc=0,gy=i):Zc=0,Jc(0)}}o(U2,"flushSpawnedWork");function k2(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,_c(s)))}o(k2,"releaseRootPooledCache");function xd(){return L2(),B2(),U2(),H2()}o(xd,"flushPendingEffects");function H2(){if(We!==5)return!1;var i=Fo,s=hy;hy=0;var l=zp(to),u=R.T,m=U.p;try{U.p=32>l?32:l,R.T=null,l=py,py=null;var p=Fo,S=to;if(We=0,Za=Fo=null,to=0,(ee&6)!==0)throw Error(r(331));var T=ee;if(ee|=4,E2(p.current),v2(p,p.current,S,l),ee=T,Jc(0,!1),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(gc,p)}catch{}return!0}finally{U.p=m,R.T=u,k2(i,s)}}o(H2,"flushPassiveEffects");function F2(i,s,l){s=Ar(l,s),s=Kg(i.stateNode,s,2),i=Io(i,s,2),i!==null&&(bc(i,2),xi(i))}o(F2,"captureCommitPhaseErrorOnRoot");function se(i,s,l){if(i.tag===3)F2(i,i,l);else for(;s!==null;){if(s.tag===3){F2(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=Ar(l,i),l=Pw(2),u=Io(s,l,2),u!==null&&(qw(l,u,s,i),bc(u,2),xi(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=GN.bind(null,i,s,l),s.then(i,i))}o(vy,"attachPingListener");function GN(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>Vn()-pd?(ee&2)===0&&Ja(i,0):dy|=l,Qa===Gt&&(Qa=0)),xi(i)}o(GN,"pingSuspendedRoot");function P2(i,s){s===0&&(s=Lx()),i=Os(i,s),i!==null&&(bc(i,s),xi(i))}o(P2,"retryTimedOutBoundary");function YN(i){var s=i.memoizedState,l=0;s!==null&&(l=s.retryLane),P2(i,l)}o(YN,"retryDehydratedSuspenseBoundary");function VN(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),P2(i,l)}o(VN,"resolveRetryWakeable");function KN(i,s){return pc(i,s)}o(KN,"scheduleCallback$1");var Ed=null,tl=null,Sy=!1,wd=!1,xy=!1,qo=0;function xi(i){i!==tl&&i.next===null&&(tl===null?Ed=tl=i:tl=tl.next=i),wd=!0,Sy||(Sy=!0,QN())}o(xi,"ensureRootIsScheduled");function Jc(i,s){if(!xy&&wd){xy=!0;do for(var l=!1,u=Ed;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-Xn(42|i)+1)-1,p&=m&~(S&~T),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,V2(u,p))}else p=Gt,p=$f(u,u===me?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||yc(u,p)||(l=!0,V2(u,p));u=u.next}while(l);xy=!1}}o(Jc,"flushSyncWorkAcrossRoots_impl");function XN(){q2()}o(XN,"processRootScheduleInImmediateTask");function q2(){wd=Sy=!1;var i=0;qo!==0&&s5()&&(i=qo);for(var s=Vn(),l=null,u=Ed;u!==null;){var m=u.next,p=G2(u,s);p===0?(u.next=null,l===null?Ed=m:l.next=m,m===null&&(tl=l)):(l=u,(i!==0||(p&3)!==0)&&(wd=!0)),u=m}We!==0&&We!==5||Jc(i),qo!==0&&(qo=0)}o(q2,"processRootScheduleInMicrotask");function G2(i,s){for(var l=i.suspendedLanes,u=i.pingedLanes,m=i.expirationTimes,p=i.pendingLanes&-62914561;0<p;){var S=31-Xn(p),T=1<<S,j=m[S];j===-1?((T&l)===0||(T&u)!==0)&&(m[S]=E4(T,s)):j<=s&&(i.expiredLanes|=T),p&=~T}if(s=me,l=Gt,l=$f(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&&Ef(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&&Ef(u),zp(l)){case 2:case 8:l=Ix;break;case 32:l=wf;break;case 268435456:l=zx;break;default:l=wf}return u=Y2.bind(null,i),l=pc(l,u),i.callbackPriority=s,i.callbackNode=l,s}return u!==null&&u!==null&&Ef(u),i.callbackPriority=2,i.callbackNode=null,2}o(G2,"scheduleTaskForRootDuringMicrotask");function Y2(i,s){if(We!==0&&We!==5)return i.callbackNode=null,i.callbackPriority=0,null;var l=i.callbackNode;if(xd()&&i.callbackNode!==l)return null;var u=Gt;return u=$f(i,i===me?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u===0?null:($2(i,u,s),G2(i,Vn()),i.callbackNode!=null&&i.callbackNode===l?Y2.bind(null,i):null)}o(Y2,"performWorkOnRootViaSchedulerTask");function V2(i,s){if(xd())return null;$2(i,s,!0)}o(V2,"performSyncWorkOnRoot");function QN(){l5(function(){(ee&6)!==0?pc(jx,XN):q2()})}o(QN,"scheduleImmediateRootScheduleTask");function Ey(){if(qo===0){var i=Ua;i===0&&(i=Tf,Tf<<=1,(Tf&261888)===0&&(Tf=256)),qo=i}return qo}o(Ey,"requestTransitionLane");function K2(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Nf(""+i)}o(K2,"coerceFormActionProp");function X2(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(X2,"createFormDataWithSubmitter");function ZN(i,s,l,u,m){if(s==="submit"&&l&&l.stateNode===m){var p=K2((m[Rn]||null).action),S=u.submitter;S&&(s=(s=S[Rn]||null)?K2(s.formAction):S.getAttribute("formAction"),s!==null&&(p=s,S=null));var T=new If("action","action",null,u,m);i.push({event:T,listeners:[{instance:null,listener:o(function(){if(u.defaultPrevented){if(qo!==0){var j=S?X2(m,S):new FormData(m);Fg(l,{pending:!0,data:j,method:m.method,action:p},null,j)}}else typeof p=="function"&&(T.preventDefault(),j=S?X2(m,S):new FormData(m),Fg(l,{pending:!0,data:j,method:m.method,action:p},p,j))},"listener"),currentTarget:m}]})}}o(ZN,"extractEvents$1");for(var wy=0;wy<og.length;wy++){var Ty=og[wy],JN=Ty.toLowerCase(),WN=Ty[0].toUpperCase()+Ty.slice(1);Wr(JN,"on"+WN)}Wr(CE,"onAnimationEnd"),Wr($E,"onAnimationIteration"),Wr(ME,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(pN,"onTransitionRun"),Wr(gN,"onTransitionStart"),Wr(yN,"onTransitionCancel"),Wr(OE,"onTransitionEnd"),Aa("onMouseEnter",["mouseout","mouseover"]),Aa("onMouseLeave",["mouseout","mouseover"]),Aa("onPointerEnter",["pointerout","pointerover"]),Aa("onPointerLeave",["pointerout","pointerover"]),As("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),As("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),As("onBeforeInput",["compositionend","keypress","textInput","paste"]),As("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),As("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),As("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(" "),t5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wc));function Q2(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],j=T.instance,X=T.currentTarget;if(T=T.listener,j!==p&&m.isPropagationStopped())break t;p=T,m.currentTarget=X;try{p(m)}catch(rt){Bf(rt)}m.currentTarget=null,p=j}else for(S=0;S<u.length;S++){if(T=u[S],j=T.instance,X=T.currentTarget,T=T.listener,j!==p&&m.isPropagationStopped())break t;p=T,m.currentTarget=X;try{p(m)}catch(rt){Bf(rt)}m.currentTarget=null,p=j}}}}o(Q2,"processDispatchQueue");function Pt(i,s){var l=s[Lp];l===void 0&&(l=s[Lp]=new Set);var u=i+"__bubble";l.has(u)||(Z2(s,i,2,!1),l.add(u))}o(Pt,"listenToNonDelegatedEvent");function Ay(i,s,l){var u=0;s&&(u|=4),Z2(l,i,u,s)}o(Ay,"listenToNativeEvent");var Td="_reactListening"+Math.random().toString(36).slice(2);function Cy(i){if(!i[Td]){i[Td]=!0,qx.forEach(function(l){l!=="selectionchange"&&(t5.has(l)||Ay(l,!1,i),Ay(l,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Td]||(s[Td]=!0,Ay("selectionchange",!1,s))}}o(Cy,"listenToAllSupportedEvents");function Z2(i,s,l,u){switch(CT(s)){case 2:var m=M5;break;case 8:m=O5;break;default:m=Hy}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(Z2,"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 j=S.tag;if((j===3||j===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;T!==null;){if(S=Ea(T),S===null)return;if(j=S.tag,j===5||j===6||j===26||j===27){u=p=S;continue t}T=T.parentNode}}u=u.return}nE(function(){var X=p,rt=qp(l),ct=[];t:{var Q=RE.get(i);if(Q!==void 0){var W=If,pt=i;switch(i){case"keypress":if(Df(l)===0)break t;case"keydown":case"keyup":W=V4;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=oE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=I4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Q4;break;case CE:case $E:case ME:W=B4;break;case OE:W=J4;break;case"scroll":case"scrollend":W=D4;break;case"wheel":W=tN;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=aE;break;case"toggle":case"beforetoggle":W=nN}var At=(s&4)!==0,ue=!At&&(i==="scroll"||i==="scrollend"),q=At?Q!==null?Q+"Capture":null:Q;At=[];for(var k=X,K;k!==null;){var st=k;if(K=st.stateNode,st=st.tag,st!==5&&st!==26&&st!==27||K===null||q===null||(st=xc(k,q),st!=null&&At.push(tu(k,st,K))),ue)break;k=k.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!==Pp&&(pt=l.relatedTarget||l.fromElement)&&(Ea(pt)||pt[xa]))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?Ea(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=oE,st="onMouseLeave",q="onMouseEnter",k="mouse",(i==="pointerout"||i==="pointerover")&&(At=aE,st="onPointerLeave",q="onPointerEnter",k="pointer"),ue=W==null?Q:Sc(W),K=pt==null?Q:Sc(pt),Q=new At(st,k+"leave",W,l,rt),Q.target=ue,Q.relatedTarget=K,st=null,Ea(rt)===X&&(At=new At(q,k+"enter",pt,l,rt),At.target=K,At.relatedTarget=ue,st=At),ue=st,W&&pt)e:{for(At=e5,q=W,k=pt,K=0,st=q;st;st=At(st))K++;st=0;for(var Tt=k;Tt;Tt=At(Tt))st++;for(;0<K-st;)q=At(q),K--;for(;0<st-K;)k=At(k),st--;for(;K--;){if(q===k||k!==null&&q===k.alternate){At=q;break e}q=At(q),k=At(k)}At=null}else At=null;W!==null&&J2(ct,Q,W,At,!1),pt!==null&&ue!==null&&J2(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=pE;else if(mE(Q))if(gE)Zt=dN;else{Zt=uN;var bt=cN}else W=Q.nodeName,!W||W.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?X&&Fp(X.elementType)&&(Zt=pE):Zt=fN;if(Zt&&(Zt=Zt(i,X))){hE(ct,Zt,l,rt);break t}bt&&bt(i,Q,X),i==="focusout"&&X&&Q.type==="number"&&X.memoizedProps.value!=null&&Hp(Q,"number",Q.value)}switch(bt=X?Sc(X):window,i){case"focusin":(mE(bt)||bt.contentEditable==="true")&&(Na=bt,ng=X,Oc=null);break;case"focusout":Oc=ng=Na=null;break;case"mousedown":rg=!0;break;case"contextmenu":case"mouseup":case"dragend":rg=!1,TE(ct,l,rt);break;case"selectionchange":if(hN)break;case"keydown":case"keyup":TE(ct,l,rt)}var Lt;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 Ra?fE(i,l)&&(Yt="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(Yt="onCompositionStart");Yt&&(lE&&l.locale!=="ko"&&(Ra||Yt!=="onCompositionStart"?Yt==="onCompositionEnd"&&Ra&&(Lt=rE()):(Mo=rt,Vp="value"in Mo?Mo.value:Mo.textContent,Ra=!0)),bt=Ad(X,Yt),0<bt.length&&(Yt=new sE(Yt,i,null,l,rt),ct.push({event:Yt,listeners:bt}),Lt?Yt.data=Lt:(Lt=dE(l),Lt!==null&&(Yt.data=Lt)))),(Lt=iN?oN(i,l):sN(i,l))&&(Yt=Ad(X,"onBeforeInput"),0<Yt.length&&(bt=new sE("onBeforeInput","beforeinput",null,l,rt),ct.push({event:bt,listeners:Yt}),bt.data=Lt)),ZN(ct,i,X,l,rt)}Q2(ct,s)})}o($y,"dispatchEventForPluginEventSystem");function tu(i,s,l){return{instance:i,listener:s,currentTarget:l}}o(tu,"createDispatchListener");function Ad(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(Ad,"accumulateTwoPhaseListeners");function e5(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}o(e5,"getParent");function J2(i,s,l,u,m){for(var p=s._reactName,S=[];l!==null&&l!==u;){var T=l,j=T.alternate,X=T.stateNode;if(T=T.tag,j!==null&&j===u)break;T!==5&&T!==26&&T!==27||X===null||(j=X,m?(X=xc(l,p),X!=null&&S.unshift(tu(l,X,j))):m||(X=xc(l,p),X!=null&&S.push(tu(l,X,j)))),l=l.return}S.length!==0&&i.push({event:s,listeners:S})}o(J2,"accumulateEnterLeaveListenersForEvent");var n5=/\r\n?/g,r5=/\u0000|\uFFFD/g;function W2(i){return(typeof i=="string"?i:""+i).replace(n5,`
|
|
80
|
+
`).replace(r5,"")}o(W2,"normalizeMarkupForTextOrAttribute");function tT(i,s){return s=W2(s),W2(i)===s}o(tT,"checkForUnmatchedText");function ce(i,s,l,u,m,p){switch(l){case"children":typeof u=="string"?s==="body"||s==="textarea"&&u===""||$a(i,u):(typeof u=="number"||typeof u=="bigint")&&s!=="body"&&$a(i,""+u);break;case"className":Of(i,"class",u);break;case"tabIndex":Of(i,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Of(i,l,u);break;case"style":tE(i,u,p);break;case"data":if(s!=="object"){Of(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=Nf(""+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=Nf(""+u),i.setAttribute(l,u);break;case"onClick":u!=null&&(i.onclick=Ui);break;case"onScroll":u!=null&&Pt("scroll",i);break;case"onScrollEnd":u!=null&&Pt("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=Nf(""+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":Pt("beforetoggle",i),Pt("toggle",i),Mf(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":Mf(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=N4.get(l)||l,Mf(i,l,u))}}o(ce,"setProp");function My(i,s,l,u,m,p){switch(l){case"style":tE(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"?$a(i,u):(typeof u=="number"||typeof u=="bigint")&&$a(i,""+u);break;case"onScroll":u!=null&&Pt("scroll",i);break;case"onScrollEnd":u!=null&&Pt("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(!Gx.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[Rn]||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,""):Mf(i,l,u)}}}o(My,"setPropOnCustomElement");function dn(i,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",i),Pt("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":Pt("invalid",i);var T=p=S=m=null,j=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":j=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)}}Qx(i,p,T,j,X,S,m,!1);return;case"select":Pt("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?Ca(i,!!u,s,!1):l!=null&&Ca(i,!!u,l,!0);return;case"textarea":Pt("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)}Jx(i,u,m,p);return;case"option":for(j in l)l.hasOwnProperty(j)&&(u=l[j],u!=null)&&(j==="selected"?i.selected=u&&typeof u!="function"&&typeof u!="symbol":ce(i,s,j,u,l,null));return;case"dialog":Pt("beforetoggle",i),Pt("toggle",i),Pt("cancel",i),Pt("close",i);break;case"iframe":case"object":Pt("load",i);break;case"video":case"audio":for(u=0;u<Wc.length;u++)Pt(Wc[u],i);break;case"image":Pt("error",i),Pt("load",i);break;case"details":Pt("toggle",i);break;case"embed":case"source":case"link":Pt("error",i),Pt("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(dn,"setInitialProperties");function i5(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,j=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":j=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)}}kp(i,S,T,j,X,rt,p,m);return;case"select":W=S=T=Q=null;for(p in l)if(j=l[p],l.hasOwnProperty(p)&&j!=null)switch(p){case"value":break;case"multiple":W=j;default:u.hasOwnProperty(p)||ce(i,s,p,null,u,j)}for(m in u)if(p=u[m],j=l[m],u.hasOwnProperty(m)&&(p!=null||j!=null))switch(m){case"value":Q=p;break;case"defaultValue":T=p;break;case"multiple":S=p;default:p!==j&&ce(i,s,m,p,u,j)}s=T,l=S,u=W,Q!=null?Ca(i,!!l,Q,!1):!!u!=!!l&&(s!=null?Ca(i,!!l,s,!0):Ca(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)}Zx(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(j in u)Q=u[j],W=l[j],u.hasOwnProperty(j)&&Q!==W&&(Q!=null||W!=null)&&(j==="selected"?i.selected=Q&&typeof Q!="function"&&typeof Q!="symbol":ce(i,s,j,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 q in l)Q=l[q],l.hasOwnProperty(q)&&Q!=null&&!u.hasOwnProperty(q)&&ce(i,s,q,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(i5,"updateProperties");function eT(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}o(eT,"isLikelyStaticResource");function o5(){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&&eT(S)){for(S=0,T=m.responseEnd,u+=1;u<l.length;u++){var j=l[u],X=j.startTime;if(X>T)break;var rt=j.transferSize,ct=j.initiatorType;rt&&eT(ct)&&(j=j.responseEnd,S+=rt*(j<T?1:(T-X)/(j-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(o5,"estimateBandwidth");var Oy=null,Ry=null;function Cd(i){return i.nodeType===9?i:i.ownerDocument}o(Cd,"getOwnerDocumentFromRootContainer");function nT(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(nT,"getOwnHostContext");function rT(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(rT,"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 s5(){var i=window.event;return i&&i.type==="popstate"?i===_y?!1:(_y=i,!0):(_y=null,!1)}o(s5,"shouldAttemptEagerTransition");var iT=typeof setTimeout=="function"?setTimeout:void 0,a5=typeof clearTimeout=="function"?clearTimeout:void 0,oT=typeof Promise=="function"?Promise:void 0,l5=typeof queueMicrotask=="function"?queueMicrotask:typeof oT<"u"?function(i){return oT.resolve(null).then(i).catch(c5)}:iT;function c5(i){setTimeout(function(){throw i})}o(c5,"handleErrorInNextTick");function Go(i){return i==="head"}o(Go,"isSingletonScope");function sT(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),il(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);il(s)}o(sT,"clearHydrationBoundary");function aT(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(aT,"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 u5(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=Rr(i.nextSibling),i===null)break}return null}o(u5,"canHydrateInstance");function f5(i,s,l){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=Rr(i.nextSibling),i===null))return null;return i}o(f5,"canHydrateTextInstance");function lT(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Rr(i.nextSibling),i===null))return null;return i}o(lT,"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 d5(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(d5,"registerSuspenseInstanceRetry");function Rr(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(Rr,"getNextHydratable");var zy=null;function cT(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"||l==="/&"){if(s===0)return Rr(i.nextSibling);s--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||s++}i=i.nextSibling}return null}o(cT,"getNextHydratableInstanceAfterHydrationBoundary");function uT(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(uT,"getParentHydrationBoundary");function fT(i,s,l){switch(s=Cd(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(fT,"resolveSingletonInstance");function eu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Bp(i)}o(eu,"releaseSingletonInstance");var Nr=new Map,dT=new Set;function $d(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}o($d,"getHoistableRoot");var eo=U.d;U.d={f:m5,r:h5,D:p5,C:g5,L:y5,m:b5,X:S5,S:v5,M:x5};function m5(){var i=eo.f(),s=bd();return i||s}o(m5,"flushSyncWork");function h5(i){var s=wa(i);s!==null&&s.tag===5&&s.type==="form"?Ow(s):eo.r(i)}o(h5,"requestFormReset");var el=typeof document>"u"?null:document;function mT(i,s,l){var u=el;if(u&&typeof s=="string"&&s){var m=wr(s);m='link[rel="'+i+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),dT.has(m)||(dT.add(m),i={rel:i,crossOrigin:l,href:s},u.querySelector(m)===null&&(s=u.createElement("link"),dn(s,"link",i),rn(s),u.head.appendChild(s)))}}o(mT,"preconnectAs");function p5(i){eo.D(i),mT("dns-prefetch",i,null)}o(p5,"prefetchDNS");function g5(i,s){eo.C(i,s),mT("preconnect",i,s)}o(g5,"preconnect");function y5(i,s,l){eo.L(i,s,l);var u=el;if(u&&i&&s){var m='link[rel="preload"][as="'+wr(s)+'"]';s==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+wr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+wr(l.imageSizes)+'"]')):m+='[href="'+wr(i)+'"]';var p=m;switch(s){case"style":p=nl(i);break;case"script":p=rl(i)}Nr.has(p)||(i=v({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:i,as:s},l),Nr.set(p,i),u.querySelector(m)!==null||s==="style"&&u.querySelector(nu(p))||s==="script"&&u.querySelector(ru(p))||(s=u.createElement("link"),dn(s,"link",i),rn(s),u.head.appendChild(s)))}}o(y5,"preload");function b5(i,s){eo.m(i,s);var l=el;if(l&&i){var u=s&&typeof s.as=="string"?s.as:"script",m='link[rel="modulepreload"][as="'+wr(u)+'"][href="'+wr(i)+'"]',p=m;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=rl(i)}if(!Nr.has(p)&&(i=v({rel:"modulepreload",href:i},s),Nr.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"),dn(u,"link",i),rn(u),l.head.appendChild(u)}}}o(b5,"preloadModule");function v5(i,s,l){eo.S(i,s,l);var u=el;if(u&&i){var m=Ta(u).hoistableStyles,p=nl(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=Nr.get(p))&&Ly(i,l);var j=S=u.createElement("link");rn(j),dn(j,"link",i),j._p=new Promise(function(X,rt){j.onload=X,j.onerror=rt}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Md(S,s,u)}S={type:"stylesheet",instance:S,count:1,state:T},m.set(p,S)}}}o(v5,"preinitStyle");function S5(i,s){eo.X(i,s);var l=el;if(l&&i){var u=Ta(l).hoistableScripts,m=rl(i),p=u.get(m);p||(p=l.querySelector(ru(m)),p||(i=v({src:i,async:!0},s),(s=Nr.get(m))&&By(i,s),p=l.createElement("script"),rn(p),dn(p,"link",i),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}o(S5,"preinitScript");function x5(i,s){eo.M(i,s);var l=el;if(l&&i){var u=Ta(l).hoistableScripts,m=rl(i),p=u.get(m);p||(p=l.querySelector(ru(m)),p||(i=v({src:i,async:!0,type:"module"},s),(s=Nr.get(m))&&By(i,s),p=l.createElement("script"),rn(p),dn(p,"link",i),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}o(x5,"preinitModuleScript");function hT(i,s,l,u){var m=(m=yt.current)?$d(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=nl(l.href),l=Ta(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=nl(l.href);var p=Ta(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),Nr.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},Nr.set(i,l),p||E5(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=rl(l),l=Ta(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(hT,"getResource");function nl(i){return'href="'+wr(i)+'"'}o(nl,"getStyleKey");function nu(i){return'link[rel="stylesheet"]['+i+"]"}o(nu,"getStylesheetSelectorFromKey");function pT(i){return v({},i,{"data-precedence":i.precedence,precedence:null})}o(pT,"stylesheetPropsFromRawProps");function E5(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}),dn(s,"link",l),rn(s),i.head.appendChild(s))}o(E5,"preloadStylesheet");function rl(i){return'[src="'+wr(i)+'"]'}o(rl,"getScriptKey");function ru(i){return"script[async]"+i}o(ru,"getScriptSelectorFromKey");function gT(i,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var u=i.querySelector('style[data-href~="'+wr(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),dn(u,"style",m),Md(u,l.precedence,i),s.instance=u;case"stylesheet":m=nl(l.href);var p=i.querySelector(nu(m));if(p)return s.state.loading|=4,s.instance=p,rn(p),p;u=pT(l),(m=Nr.get(m))&&Ly(u,m),p=(i.ownerDocument||i).createElement("link"),rn(p);var S=p;return S._p=new Promise(function(T,j){S.onload=T,S.onerror=j}),dn(p,"link",u),s.state.loading|=4,Md(p,l.precedence,i),s.instance=p;case"script":return p=rl(l.src),(m=i.querySelector(ru(p)))?(s.instance=m,rn(m),m):(u=l,(m=Nr.get(p))&&(u=v({},l),By(u,m)),i=i.ownerDocument||i,m=i.createElement("script"),rn(m),dn(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,Md(u,l.precedence,i));return s.instance}o(gT,"acquireResource");function Md(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(Md,"insertStylesheet");function Ly(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}o(Ly,"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 Od=null;function yT(i,s,l){if(Od===null){var u=new Map,m=Od=new Map;m.set(l,u)}else m=Od,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[ln]||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(yT,"getHydratableHoistableCache");function bT(i,s,l){i=i.ownerDocument||i,i.head.insertBefore(l,s==="title"?i.querySelector("head > title"):null)}o(bT,"mountHoistable");function w5(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(w5,"isHostHoistableType");function vT(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}o(vT,"preloadResource");function T5(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=nl(u.href),p=s.querySelector(nu(m));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=Rd.bind(i),s.then(i,i)),l.state.loading|=4,l.instance=p,rn(p);return}p=s.ownerDocument||s,u=pT(u),(m=Nr.get(m))&&Ly(u,m),p=p.createElement("link"),rn(p);var S=p;S._p=new Promise(function(T,j){S.onload=T,S.onerror=j}),dn(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=Rd.bind(i),s.addEventListener("load",l),s.addEventListener("error",l))}}o(T5,"suspendResource");var Uy=0;function A5(i,s){return i.stylesheets&&i.count===0&&_d(i,i.stylesheets),0<i.count||0<i.imgCount?function(l){var u=setTimeout(function(){if(i.stylesheets&&_d(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4+s);0<i.imgBytes&&Uy===0&&(Uy=62500*o5());var m=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&_d(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(A5,"waitForCommitToBeReady");function Rd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_d(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}o(Rd,"onUnsuspend");var Nd=null;function _d(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Nd=new Map,s.forEach(C5,i),Nd=null,Rd.call(i))}o(_d,"insertSuspendedStylesheets");function C5(i,s){if(!(s.state.loading&4)){var l=Nd.get(i);if(l)var u=l.get(null);else{l=new Map,Nd.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=Rd.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(C5,"insertStylesheetIntoRoot");var iu={$$typeof:D,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function $5(i,s,l,u,m,p,S,T,j){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=j,this.incompleteTransitions=new Map}o($5,"FiberRootNode");function ST(i,s,l,u,m,p,S,T,j,X,rt,ct){return i=new $5(i,s,l,S,j,X,rt,ct,T),s=1,p===!0&&(s|=24),p=Zn(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(ST,"createFiberRoot");function xT(i){return i?(i=ja,i):ja}o(xT,"getContextForSubtree");function ET(i,s,l,u,m,p){m=xT(m),u.context===null?u.context=m:u.pendingContext=m,u=jo(s),u.payload={element:l},p=p===void 0?null:p,p!==null&&(u.callback=p),l=Io(i,u,s),l!==null&&(zn(l,i,s),zc(l,i,s))}o(ET,"updateContainerImpl");function wT(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<s?l:s}}o(wT,"markRetryLaneImpl");function ky(i,s){wT(i,s),(i=i.alternate)&&wT(i,s)}o(ky,"markRetryLaneIfNotHydrated");function TT(i){if(i.tag===13||i.tag===31){var s=Os(i,67108864);s!==null&&zn(s,i,67108864),ky(i,67108864)}}o(TT,"attemptContinuousHydration");function AT(i){if(i.tag===13||i.tag===31){var s=nr();s=Ip(s);var l=Os(i,s);l!==null&&zn(l,i,s),ky(i,s)}}o(AT,"attemptHydrationAtCurrentPriority");var Dd=!0;function M5(i,s,l,u){var m=R.T;R.T=null;var p=U.p;try{U.p=2,Hy(i,s,l,u)}finally{U.p=p,R.T=m}}o(M5,"dispatchDiscreteEvent");function O5(i,s,l,u){var m=R.T;R.T=null;var p=U.p;try{U.p=8,Hy(i,s,l,u)}finally{U.p=p,R.T=m}}o(O5,"dispatchContinuousEvent");function Hy(i,s,l,u){if(Dd){var m=Fy(u);if(m===null)$y(i,s,u,jd,l),$T(i,u);else if(N5(m,i,s,l,u))u.stopPropagation();else if($T(i,u),s&4&&-1<R5.indexOf(i)){for(;m!==null;){var p=wa(m);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=Ts(p.pendingLanes);if(S!==0){var T=p;for(T.pendingLanes|=2,T.entangledLanes|=2;S;){var j=1<<31-Xn(S);T.entanglements[1]|=j,S&=~j}xi(p),(ee&6)===0&&(gd=Vn()+500,Jc(0))}}break;case 31:case 13:T=Os(p,2),T!==null&&zn(T,p,2),bd(),ky(p,2)}if(p=Fy(u),p===null&&$y(i,s,u,jd,l),p===m)break;m=p}m!==null&&u.stopPropagation()}else $y(i,s,u,null,l)}}o(Hy,"dispatchEvent");function Fy(i){return i=qp(i),Py(i)}o(Fy,"findInstanceBlockingEvent");var jd=null;function Py(i){if(jd=null,i=Ea(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 jd=i,null}o(Py,"findInstanceBlockingTarget");function CT(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(p4()){case jx:return 2;case Ix:return 8;case wf:case g4:return 32;case zx:return 268435456;default:return 32}default:return 32}}o(CT,"getEventPriority");var qy=!1,Yo=null,Vo=null,Ko=null,ou=new Map,su=new Map,Xo=[],R5="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 $T(i,s){switch(i){case"focusin":case"focusout":Yo=null;break;case"dragenter":case"dragleave":Vo=null;break;case"mouseover":case"mouseout":Ko=null;break;case"pointerover":case"pointerout":ou.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":su.delete(s.pointerId)}}o($T,"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=wa(s),s!==null&&TT(s)),i):(i.eventSystemFlags|=u,s=i.targetContainers,m!==null&&s.indexOf(m)===-1&&s.push(m),i)}o(au,"accumulateOrCreateContinuousQueuedReplayableEvent");function N5(i,s,l,u,m){switch(s){case"focusin":return Yo=au(Yo,i,s,l,u,m),!0;case"dragenter":return Vo=au(Vo,i,s,l,u,m),!0;case"mouseover":return Ko=au(Ko,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(N5,"queueIfContinuousEvent");function MT(i){var s=Ea(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,Fx(i.priority,function(){AT(l)});return}}else if(s===31){if(s=d(l),s!==null){i.blockedOn=s,Fx(i.priority,function(){AT(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(MT,"attemptExplicitHydrationTarget");function Id(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);Pp=u,l.target.dispatchEvent(u),Pp=null}else return s=wa(l),s!==null&&TT(s),i.blockedOn=l,!1;s.shift()}return!0}o(Id,"attemptReplayContinuousQueuedEvent");function OT(i,s,l){Id(i)&&l.delete(s)}o(OT,"attemptReplayContinuousQueuedEventInMap");function _5(){qy=!1,Yo!==null&&Id(Yo)&&(Yo=null),Vo!==null&&Id(Vo)&&(Vo=null),Ko!==null&&Id(Ko)&&(Ko=null),ou.forEach(OT),su.forEach(OT)}o(_5,"replayUnblockedEvents");function zd(i,s){i.blockedOn===s&&(i.blockedOn=null,qy||(qy=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_5)))}o(zd,"scheduleCallbackIfUnblocked");var Ld=null;function RT(i){Ld!==i&&(Ld=i,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ld===i&&(Ld=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(Py(u||l)===null)continue;break}var p=wa(l);p!==null&&(i.splice(s,3),s-=3,Fg(p,{pending:!0,data:m,method:l.method,action:u},u,m))}}))}o(RT,"scheduleReplayQueueIfNeeded");function il(i){function s(j){return zd(j,i)}o(s,"unblock"),Yo!==null&&zd(Yo,i),Vo!==null&&zd(Vo,i),Ko!==null&&zd(Ko,i),ou.forEach(s),su.forEach(s);for(var l=0;l<Xo.length;l++){var u=Xo[l];u.blockedOn===i&&(u.blockedOn=null)}for(;0<Xo.length&&(l=Xo[0],l.blockedOn===null);)MT(l),l.blockedOn===null&&Xo.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[Rn]||null;if(typeof p=="function")S||RT(l);else if(S){var T=null;if(p&&p.hasAttribute("formAction")){if(m=p,S=p[Rn]||null)T=S.formAction;else if(Py(m)!==null)continue}else T=S.action;typeof T=="function"?l[u+1]=T:(l.splice(u,3),u-=3),RT(l)}}}o(il,"retryIfBlockedOn");function NT(){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(NT,"defaultOnDefaultTransitionIndicator");function Gy(i){this._internalRoot=i}o(Gy,"ReactDOMRoot"),Bd.prototype.render=Gy.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var l=s.current,u=nr();ET(l,u,i,s,null,null)},Bd.prototype.unmount=Gy.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;ET(i.current,2,null,i,null,null),bd(),s[xa]=null}};function Bd(i){this._internalRoot=i}o(Bd,"ReactDOMHydrationRoot"),Bd.prototype.unstable_scheduleHydration=function(i){if(i){var s=Hx();i={blockedOn:null,target:i,priority:s};for(var l=0;l<Xo.length&&s!==0&&s<Xo[l].priority;l++);Xo.splice(l,0,i),l===0&&MT(i)}};var _T=e.version;if(_T!=="19.2.4")throw Error(r(527,_T,"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 D5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ud=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ud.isDisabled&&Ud.supportsFiber)try{gc=Ud.inject(D5),Kn=Ud}catch{}}return du.createRoot=function(i,s){if(!a(i))throw Error(r(299));var l=!1,u="",m=Uw,p=kw,S=Hw;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=ST(i,1,!1,null,null,l,u,null,m,p,S,NT),i[xa]=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=Uw,S=kw,T=Hw,j=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&&(j=l.formState)),s=ST(i,1,!0,s,l??null,u,m,j,p,S,T,NT),s.context=xT(null),l=s.current,u=nr(),u=Ip(u),m=jo(u),m.callback=null,Io(l,m,u),l=u,s.current.lanes=l,bc(s,l),xi(s),i[xa]=s.current,Cy(i),new Bd(s)},du.version="19.2.4",du}o(hW,"requireReactDomClient_production");var yC;function pW(){if(yC)return b0.exports;yC=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=hW(),b0.exports}o(pW,"requireClient");var bC=pW();const Rx=class Rx{log=Gr();root;onBrowserRender=ir({on:"react:browser:render",handler:o(async({hydration:e,root:n,element:r})=>{e?.["alepha.react.router.layers"]?(this.root=bC.hydrateRoot(n,r),this.log.info("Hydrated root element")):(this.root??=bC.createRoot(n),this.root.render(r),this.log.info("Created root element"))},"handler")})};o(Rx,"ReactBrowserRendererProvider");let Wm=Rx;const Nx=class Nx{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(Nx,"ReactRouter");let Hu=Nx;const gW=o(()=>w1(Hu),"useRouter");Pn({name:"alepha.react.router",primitives:[mn],services:[jl,Uu,ku,Hu,Wm,Zm],register:o(t=>t.with(sR).with(aR).with(WO).with(nR).with(mY).with(jl).with(ku).with(Uu).with(Wm).with(Hu),"register")});const _x=class _x{root=mn({path:"/",component:JW})};o(_x,"UiRouter");let th=_x;var yW={root:"m_8f2832ae",section:"m_7a0fe999"};function vC(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(vC,"getIntervalProgressValue");const bW=o(()=>uS({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),"createNprogressStore"),vW=o(t=>fS(t),"useNprogress");function zr(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}o(zr,"updateNavigationProgressStateAction");function SW(t){zr(e=>({progress:Math.max(e.progress-e.step,0)}),t)}o(SW,"decrementNavigationProgressAction");function xW(t,e){zr(()=>({progress:SR(t,0,100),mounted:!0}),e)}o(xW,"setNavigationProgressAction");function mS(t){zr(e=>(window.clearInterval(e.interval),e.timeouts.forEach(n=>window.clearTimeout(n)),{timeouts:[]}),t)}o(mS,"cleanupNavigationProgressAction");function EW(t){mS(t),zr(e=>{const n=window.setTimeout(()=>{zr(()=>({mounted:!1}),t)},50),r=window.setTimeout(()=>{zr(()=>({progress:0}),t)},e.stepInterval+50);return{progress:100,timeouts:[n,r]}},t)}o(EW,"completeNavigationProgressAction");function wW(t){zr(e=>({progress:vC(e.progress),mounted:!0}),t),zr(e=>(window.clearInterval(e.interval),{interval:window.setInterval(()=>{zr(r=>({progress:vC(r.progress),mounted:!0}),t)},e.stepInterval),mounted:!0}),t)}o(wW,"startNavigationProgressAction");function r4(t){zr(e=>(window.clearInterval(e.interval),{interval:-1}),t)}o(r4,"stopNavigationProgressAction");function hS(t){mS(t),r4(t),zr(()=>({progress:0,mounted:!1}),t)}o(hS,"resetNavigationProgressAction");function TW(t){zr(e=>{const n=Math.min(e.progress+e.step,100),r=n!==100&&n!==0;if(!r){const a=window.setTimeout(()=>hS(t),e.stepInterval+50);return{progress:n,mounted:r,timeouts:[...e.timeouts,a]}}return{progress:n,mounted:r}},t)}o(TW,"incrementNavigationProgressAction");function AW(){const t=bW();return[t,{start:o(()=>wW(t),"start"),stop:o(()=>r4(t),"stop"),reset:o(()=>hS(t),"reset"),set:o(n=>xW(n,t),"set"),increment:o(()=>TW(t),"increment"),decrement:o(()=>SW(t),"decrement"),complete:o(()=>EW(t),"complete"),cleanup:o(()=>mS(t),"cleanup")}]}o(AW,"createNprogress");const[CW,Ab]=AW(),{start:Ntt,stop:_tt,reset:Dtt,set:jtt,increment:Itt,decrement:ztt,complete:Ltt,cleanup:Btt}=Ab;function i4({initialProgress:t=0,color:e,size:n=3,stepInterval:r=500,withinPortal:a=!0,portalProps:c,zIndex:f=gi("max"),store:d=CW,...h}){d.initialize({mounted:!1,progress:t,interval:-1,step:1,stepInterval:r,timeouts:[]});const g=vW(d);return A.useEffect(()=>()=>hS(d),[d]),$.jsx(up,{...c,withinPortal:a,children:$.jsx(cc,{radius:0,value:g.progress,size:n,color:e,classNames:yW,"data-mounted":g.mounted||void 0,__vars:{"--nprogress-z-index":f?.toString()},...h})})}o(i4,"NavigationProgress");i4.displayName="@mantine/nprogress/NavigationProgress";const $W=o(()=>{Lm(hu),Lm(pu);const t=w1(Lu),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"),MW=o(()=>w1(Bu),"useToast"),OW=o(()=>uS({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),"createSpotlightStore"),RW=o(t=>fS(t),"useSpotlight");function Il(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}o(Il,"updateSpotlightStateAction");function o4(t){Il(()=>({opened:!0,selected:-1}),t)}o(o4,"openSpotlightAction");function s4(t){Il(()=>({opened:!1}),t)}o(s4,"closeSpotlightAction");function a4(t){Il(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),t)}o(a4,"toggleSpotlightAction");function l4(t,e){e.updateState(n=>({...n,selected:t}))}o(l4,"setSelectedAction");function NW(t,e){e.updateState(n=>({...n,listId:t}))}o(NW,"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=SR(f,0,c.length-1);return a?.removeAttribute("data-selected"),c[d]?.scrollIntoView({block:"nearest"}),c[d]?.setAttribute("data-selected","true"),l4(d,e),d}o(Cp,"selectAction");function _W(t){return Cp(t.getState().selected+1,t)}o(_W,"selectNextAction");function DW(t){return Cp(t.getState().selected-1,t)}o(DW,"selectPreviousAction");function jW(t){const e=t.getState();eh(`#${e.listId} [data-selected]`)?.click()}o(jW,"triggerSelectedAction");function IW(t,e){const n=e.getState();return n.registeredActions.add(t),()=>{n.registeredActions.delete(t)}}o(IW,"registerAction");function zW(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(zW,"setQuery");function LW({clearQuery:t},e){e.updateState(n=>({...n,selected:-1,query:t?"":n.query,empty:t?!1:n.empty}))}o(LW,"clearSpotlightState");const Ri={open:o4,close:s4,toggle:a4,updateState:Il,setSelectedAction:l4,setListId:NW,selectAction:Cp,selectNextAction:_W,selectPreviousAction:DW,triggerSelectedAction:jW,registerAction:IW,setQuery:zW,clearSpotlightState:LW};function BW(){const t=OW();return[t,{open:o(()=>o4(t),"open"),close:o(()=>s4(t),"close"),toggle:o(()=>a4(t),"toggle")}]}o(BW,"createSpotlight");const[c4,$p]=BW(),{open:Utt,close:ktt,toggle:Htt}=$p;function u4(t){const e=t;return e.group!==void 0&&Array.isArray(e.actions)}o(u4,"isActionsGroup");function UW(t){return Array.isArray(t)?t.map(e=>e.trim()).join(",").toLowerCase().trim():typeof t=="string"?t.toLowerCase().trim():""}o(UW,"getKeywords");function kW(t){return t.reduce((e,n)=>"actions"in n?[...e,...n.actions.map(r=>({...r,group:n.group}))]:[...e,n],[])}o(kW,"getFlatActions");function HW(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(HW,"flatActionsToGroups");const FW=o((t,e)=>{const n=t.trim().toLowerCase(),r=[[],[]];return kW(e).forEach(c=>{c.label?.toLowerCase().includes(n)?r[0].push(c):(c.description?.toLowerCase().includes(n)||UW(c.keywords).includes(n))&&r[1].push(c)}),HW(r.flat())},"defaultSpotlightFilter");function f4(t,e){if(!Array.isArray(t))return[];let n=0;return t.reduce((r,a)=>{if(n>=e)return r;if(u4(a)){const c=f4(a.actions,e-n);r.push({group:a.group,actions:c}),n+=c.length}else r.push(a),n+=1;return r},[])}o(f4,"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[PW,fc]=ga("Spotlight component was not found in tree"),qW={dimmedSections:!0,highlightQuery:!1},Fu=zt((t,e)=>{const n=vt("SpotlightAction",qW,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:D,vars:F,...G}=n,P=fc(),B={classNames:c,styles:f},H=C&&typeof g=="string"?$.jsx(sS,{component:"span",highlight:P.query,color:w,...P.getStyles("actionLabel",B),children:g}):$.jsx("span",{...P.getStyles("actionLabel",B),children:g});return $.jsx(rc,{ref:e,"data-action":!0,...P.getStyles("action",{className:r,style:a,...B}),...G,onMouseDown:o(et=>{et.preventDefault(),z?.(et)},"onMouseDown"),onClick:o(et=>{L?.(et),(M??P.closeOnActionTrigger)&&Ri.close(P.store)},"onClick"),tabIndex:-1,children:E||$.jsxs($.Fragment,{children:[y&&$.jsx(Et,{component:"span",mod:{position:"left",dimmed:x},...P.getStyles("actionSection",B),children:y}),$.jsxs("span",{...P.getStyles("actionBody",B),children:[H,$.jsx("span",{...P.getStyles("actionDescription",B),children:h})]}),v&&$.jsx(Et,{component:"span",mod:{position:"right",dimmed:x},...P.getStyles("actionSection",B),children:v})]})})});Fu.classes=Di;Fu.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(()=>(Ri.setListId(E,y.store),()=>Ri.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 pS=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})});pS.classes=Di;pS.displayName="@mantine/spotlight/SpotlightFooter";function GW(t,e){if(!t)return[];const n=o(()=>Ri.open(e),"open");return Array.isArray(t)?t.map(r=>[r,n]):[[t,n]]}o(GW,"getHotkeys");const YW={size:600,yOffset:80,zIndex:gi("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:c4,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400},Np=zt((t,e)=>{const n=vt("SpotlightRoot",YW,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:D,onSpotlightClose:F,forceOpened:G,closeOnActionTrigger:P,maxHeight:B,scrollable:H,attributes:et,...nt}=n,ot=Vr(),{opened:ft,query:mt}=RW(g),V=typeof v=="string"?v:mt,J=o(U=>{E?.(U),Ri.setQuery(U,g)},"setQuery"),R=ie({name:"Spotlight",classes:Di,props:n,className:a,style:c,classNames:r,styles:f,unstyled:d,attributes:et});return CV(GW(w,g),M,L),np(()=>{ft?D?.():F?.()},[ft]),z?null:$.jsx(PW,{value:{getStyles:R,query:V,setQuery:J,store:g,closeOnActionTrigger:P},children:$.jsx(Qr,{ref:e,...nt,withCloseButton:!1,opened:ft||!!G,padding:0,onClose:o(()=>Ri.close(g),"onClose"),className:a,style:c,classNames:gf({theme:ot,classNames:[Di,r],props:n,stylesCtx:void 0}),styles:ju({theme:ot,styles:f,props:n,stylesCtx:void 0}),transitionProps:{...x,onExited:o(()=>{C&&J(""),Ri.clearSpotlightState({clearQuery:C},g),x?.onExited?.()},"onExited")},__vars:{"--spotlight-max-height":H?ut(B):void 0},__staticSelector:"Spotlight","data-scrollable":H||void 0,children:y})})});Np.classes=Di;Np.displayName="@mantine/spotlight/SpotlightRoot";const VW={size:"lg"},_p=zt((t,e)=>{const{classNames:n,styles:r,onKeyDown:a,onChange:c,vars:f,value:d,...h}=vt("SpotlightSearch",VW,t),g=fc(),y=g.getStyles("search"),[v,E]=A.useState(!1),x=o(C=>{a?.(C),!v&&(C.nativeEvent.code==="ArrowDown"&&(C.preventDefault(),Ri.selectNextAction(g.store)),C.nativeEvent.code==="ArrowUp"&&(C.preventDefault(),Ri.selectPreviousAction(g.store)),(C.nativeEvent.code==="Enter"||C.nativeEvent.code==="NumpadEnter")&&(C.preventDefault(),Ri.triggerSelectedAction(g.store)))},"handleKeyDown");return $.jsx(hr,{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 KW={size:600,yOffset:80,limit:1/0,zIndex:gi("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:c4,filter:FW,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K"},xr=zt((t,e)=>{const n=vt("Spotlight",KW,t),{searchProps:r,filter:a,query:c,onQueryChange:f,actions:d,nothingFound:h,highlightQuery:g,limit:y,scrollAreaProps:v,...E}=n,[x,C]=SV({value:c,defaultValue:"",finalValue:"",onChange:f}),w=f4(a(x,d),y).map(M=>{if(u4(M)){const L=M.actions.map(({id:z,...D})=>$.jsx(Fu,{highlightQuery:g,...D},z));return $.jsx(Mp,{label:M.group,children:L},M.group)}return $.jsx(Fu,{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})]})]})});xr.classes=Di;xr.displayName="@mantine/spotlight/Spotlight";xr.Search=_p;xr.ActionsList=Op;xr.Action=Fu;xr.Empty=Rp;xr.ActionsGroup=Mp;xr.Footer=pS;xr.Root=Np;xr.open=$p.open;xr.close=$p.close;xr.toggle=$p.toggle;const XW=_.object({id:_.text({description:"Unique identifier for the user."}),name:_.optional(_.text({description:"Full name of the user."})),email:_.optional(_.text({description:"Email address of the user.",format:"email"})),username:_.optional(_.text({description:"Preferred username of the user."})),picture:_.optional(_.text({description:"URL to the user's profile picture."})),sessionId:_.optional(_.text({description:"Session identifier for the user, if applicable."})),organizations:_.optional(_.array(_.text(),{description:"List of organizations the user belongs to."})),roles:_.optional(_.array(_.text(),{description:"List of roles assigned to the user."})),realm:_.optional(_.text({description:"The realm (issuer) the user was authenticated from."}))}),QW=pi({name:"alepha.security.user",schema:_.optional(XW)});_.object({name:_.text({description:"Name of the permission."}),group:_.optional(_.text({description:"Group of the permission."})),description:_.optional(_.text({description:"Describe the permission."})),method:_.optional(_.text({description:"HTTP method of the permission. When available."})),path:_.optional(_.text({description:"Pathname of the permission. When available."}))});_.object({name:_.text({description:"Name of the role."}),description:_.optional(_.text({description:"Describe the role."})),default:_.optional(_.boolean({description:"If true, this role will be assigned to all users by default."})),permissions:_.array(_.object({name:_.text({description:"Name of the permission."}),ownership:_.optional(_.boolean({description:"If true, user will only have access to it's own resources."})),exclude:_.optional(_.array(_.text(),{description:"Exclude some permissions. Useful when 'name' is a wildcard."}))}))});Pn({name:"alepha.security"});const ZW=o(t=>{const e=t.shortcut??"mod+K",n=t.searchPlaceholder??"Search...",r=t.nothingFound??"Nothing found...",a=gW(),[c]=Lm(QW),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:ntt(d.icon)})),[c]);return $.jsx(xr,{actions:f,shortcut:e,limit:10,searchProps:{leftSection:$.jsx(QJ,{size:d4.sizes.icon.md}),placeholder:n},nothingFound:r})},"Omnibar"),JW=o(t=>{const e=MW(),[n]=$W();oR({"react:transition:begin":o(()=>{Ab.start()},"react:transition:begin"),"react:transition:end":o(()=>{Ab.complete()},"react:transition:end"),"react:action:error":o(({error:a,type:c})=>{c==="transition"||a instanceof nb||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(SK,{defaultColorScheme:r,...t.colorSchemeScript}),$.jsxs(DR,{...t.mantine,defaultColorScheme:r,theme:{...n,...t.mantine?.theme},children:[$.jsx(Ao,{...t.notifications}),$.jsx(i4,{...t.navigationProgress}),$.jsxs(dJ,{...t.modals,children:[t.omnibar!==!1&&$.jsx(ZW,{...t.omnibar}),t.children??$.jsx(Tb,{})]})]})]})},"AlephaMantineProvider"),d4={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 WW(t){return A.isValidElement(t)?!1:typeof t=="function"||typeof t=="object"&&t!==null&&"$$typeof"in t}o(WW,"isComponentType");const ttt=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,overflow:w,...M}=t;return n&&(M.flex??=1),f&&(M.direction??="column"),r&&(M.align??="center",M.justify??="center"),a&&(M.justify??="center"),c&&(M.align??="center"),d?M.bg="var(--alepha-ground)":h?M.bg="var(--alepha-surface)":g&&(M.bg="var(--alepha-elevated)"),y&&(M.bdrs=y===!0?"md":y),v&&(M.bd="1px solid var(--alepha-border)"),E&&(M.style={borderTop:"1px solid var(--alepha-border)",...M.style??{}}),x&&(M.style={borderBottom:"1px solid var(--alepha-border)",...M.style??{}}),C&&(M.className=`${M.className??""} shadow-${C===!0?"md":C}`.trim()),w&&(M.className=`${M.className??""} overflow-auto`.trim()),$.jsx(sc,{ref:e,...M})});ttt.displayName="Flex";const ett=A.forwardRef((t,e)=>$.jsx(iS,{ref:e,...t}));ett.displayName="Container";const ntt=o((t,e)=>{if(!t)return null;if(A.isValidElement(t))return t;if(WW(t)){const n=t;return $.jsx(n,{size:e??d4.sizes.icon.md})}return t},"renderIcon"),rtt={primary:"blue",info:"cyan",success:"green",warning:"yellow",danger:"red"},itt=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??=rtt[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(xs,{ref:e,...x})});itt.displayName="Text";const x0=o((t,e,n)=>(Object.assign(t,{[e]:n??{}}),t),"pgAttr"),ott=Symbol.for("Alepha.Postgres.Default"),stt=Symbol.for("Alepha.Postgres.PrimaryKey"),att=Symbol.for("Alepha.Postgres.Serial");x0(x0(x0(_.integer(),stt),att),ott);Pn({name:"alepha.orm",primitives:[],services:[WO]});const ltt=o((t={})=>{const{alepha:e}=Pu();return t.themes&&e.store.set(Sb,t.themes),e.inject(th)},"$ui");Pn({name:"alepha.ui",services:[Xm,Bu,Lu,th],register:o(t=>{t.with(pY),t.with(aR),t.with(hY),t.with(Lu),t.with(Xm),t.with(Bu)},"register")});const Dx=class Dx{ui=ltt({themes:[G3]});layout=mn({parent:this.ui.root,lazy:o(()=>rr(()=>import("./chunk.BLOrlnMB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),"lazy"),[Symbol.for("alepha.page.preload")]:"c7848374"});dashboard=mn({path:"/",label:"Dashboard",icon:$.jsx(PJ,{}),parent:this.layout,lazy:o(()=>rr(()=>import("./chunk.Dx3JzAYM.js"),__vite__mapDeps([11,1,12,13,14,7,15])),"lazy"),[Symbol.for("alepha.page.preload")]:"d27c1f33"});explorer=mn({path:"/explorer",label:"Explorer",icon:$.jsx(WJ,{}),parent:this.layout,lazy:o(()=>rr(()=>import("./chunk.C8YUV2Wd.js"),__vite__mapDeps([16,1,17,3,4,18,10,12,19,20,15,7,8,21,2,5,9,6,22,23,24,25])),"lazy"),[Symbol.for("alepha.page.preload")]:"64e62d2a"});db=mn({path:"/db",parent:this.layout,lazy:o(()=>rr(()=>import("./chunk.Qqapj2zq.js").then(e=>e.D),[]),"lazy"),[Symbol.for("alepha.page.preload")]:"8da6cd85"});dbErd=mn({path:"/erd",label:"Database",icon:$.jsx(fC,{}),parent:this.db,lazy:o(()=>rr(()=>import("./chunk.B3au4Lhg.js"),__vite__mapDeps([26,1,27,28,20])),"lazy"),[Symbol.for("alepha.page.preload")]:"6720ea5c"});dbEditor=mn({path:"/editor",label:"Database",icon:$.jsx(fC,{}),parent:this.db,lazy:o(()=>rr(()=>import("./chunk.D7-0ziQ6.js"),__vite__mapDeps([29,1,19,20,15,7,8,21,2,3,4,5,9,17,18,10,6,22])),"lazy"),[Symbol.for("alepha.page.preload")]:"dcfae5ba"});dbEditorTable=mn({path:"/editor/:table",parent:this.db,lazy:o(()=>rr(()=>import("./chunk.D7-0ziQ6.js"),__vite__mapDeps([29,1,19,20,15,7,8,21,2,3,4,5,9,17,18,10,6,22])),"lazy"),[Symbol.for("alepha.page.preload")]:"dcfae5ba"});dbEditorRecord=mn({path:"/editor/:table/:id",parent:this.db,lazy:o(()=>rr(()=>import("./chunk.D7-0ziQ6.js"),__vite__mapDeps([29,1,19,20,15,7,8,21,2,3,4,5,9,17,18,10,6,22])),"lazy"),[Symbol.for("alepha.page.preload")]:"dcfae5ba"});conf=mn({path:"/conf",parent:this.layout,lazy:o(()=>rr(()=>import("./chunk.Qqapj2zq.js").then(e=>e.a),[]),"lazy"),[Symbol.for("alepha.page.preload")]:"b4bd1bbf"});confEnv=mn({path:"/env",label:"Configuration",icon:$.jsx(dC,{}),parent:this.conf,lazy:o(()=>rr(()=>import("./chunk.CBbIgDzE.js"),__vite__mapDeps([30,1,14,23,5,4,25])),"lazy"),[Symbol.for("alepha.page.preload")]:"d2b18abc"});confAtoms=mn({path:"/atoms",label:"Configuration",icon:$.jsx(dC,{}),parent:this.conf,lazy:o(()=>rr(()=>import("./chunk.CLFF7f7-.js"),__vite__mapDeps([31,1,17,3,4,18,10,13,2,5,24,25])),"lazy"),[Symbol.for("alepha.page.preload")]:"aeeca6e9"});graph=mn({path:"/graph",label:"Graph",icon:$.jsx(eW,{}),parent:this.layout,lazy:o(()=>rr(()=>import("./chunk.qZTNEAK0.js"),__vite__mapDeps([32,27,28,1,22,5,4,9,3,18,2,6,21])),"lazy"),[Symbol.for("alepha.page.preload")]:"d0246eea"});logs=mn({path:"/logs",label:"Logs",icon:$.jsx(KJ,{}),parent:this.layout,lazy:o(()=>rr(()=>import("./chunk.DAewe0vm.js"),__vite__mapDeps([33,22,9,3,4,23,24,25,10])),"lazy"),[Symbol.for("alepha.page.preload")]:"133f478f"})};o(Dx,"AppRouter");let Cb=Dx;AG(Cb);export{Pn as $,_ as A,Et as B,ga as C,Xm as D,dr as E,ttt as F,ws as G,_u as H,hr as I,QJ as J,HJ as K,gW as L,fC as M,ic as N,$tt as O,gtt as P,os as Q,jr as R,nc as S,xs as T,rc as U,RV as V,ya as W,up as X,gi as Y,Ttt as Z,TR as _,ie as a,oR as a$,Att as a0,Ott as a1,wtt as a2,Mtt as a3,Rtt as a4,Ctt as a5,np as a6,ptt as a7,btt as a8,Ett as a9,WW as aA,En as aB,pp as aC,bK as aD,RR as aE,_1 as aF,eW as aG,So as aH,rW as aI,UJ as aJ,Lm as aK,Fm as aL,sV as aM,CR as aN,M1 as aO,qm as aP,CA as aQ,Ss as aR,bV as aS,utt as aT,$p as aU,NG as aV,$W as aW,Sb as aX,iS as aY,itt as aZ,ntt as a_,xtt as aa,htt as ab,bf as ac,aV as ad,X1 as ae,$R as af,SV as ag,Jl as ah,Stt as ai,vtt as aj,ytt as ak,jR as al,K1 as am,vR as an,dC as ao,Es as ap,vf as aq,xo as ar,Qh as as,li as at,$l as au,C1 as av,Wl as aw,eV as ax,mtt as ay,J3 as az,dtt as b,Tb as b0,ett as b1,KJ as b2,PJ as b3,WJ as b4,H3 as b5,vb as b6,ftt as b7,ab as b8,SR as b9,Gr as ba,Ot as bb,Ke as bc,qV as bd,SZ as be,iY as bf,vs as bg,Qr as bh,Ut as bi,x1 as bj,Km as bk,is as bl,yi as c,Yr as d,A as e,zt as f,oa as g,ze as h,or as i,$ as j,fp as k,FK as l,w1 as m,d4 as n,ba as o,Gn as p,sc as q,ut as r,tV as s,Wh as t,vt as u,tp as v,IR as w,Vr as x,$i as y,LR as z};
|