From ec7df92b2186472364f71d2b6b4fc941963f0b3f Mon Sep 17 00:00:00 2001 From: eewing Date: Tue, 17 Feb 2026 15:18:31 -0600 Subject: [PATCH] Refactor environment variable declarations, update client entry points, and optimize asset handling in SvelteKit project for improved performance and maintainability. --- .svelte-kit/adapter-node/.vite/manifest.json | 8 +- .../immutable/assets/_layout.BQZUYDmN.css | 1 - .../immutable/assets/_layout.xzg7NZgL.css | 1 + .svelte-kit/adapter-node/chunks/internal.js | 2 +- .../entries/pages/_page.server.ts.js | 9 + .../entries/pages/_page.svelte.js | 47 +- .svelte-kit/adapter-node/manifest-full.js | 2 +- .svelte-kit/adapter-node/manifest.js | 2 +- .svelte-kit/adapter-node/nodes/0.js | 4 +- .svelte-kit/adapter-node/nodes/1.js | 2 +- .svelte-kit/adapter-node/nodes/2.js | 6 +- .svelte-kit/adapter-node/nodes/4.js | 2 +- .svelte-kit/adapter-node/nodes/5.js | 2 +- .svelte-kit/ambient.d.ts | 64 +- .svelte-kit/generated/client-optimized/app.js | 2 +- .svelte-kit/generated/client/app.js | 2 +- .svelte-kit/generated/server/internal.js | 2 +- .svelte-kit/output/client/.vite/manifest.json | 323 ++ .../_app/immutable/assets/0.DbRKE6YE.css | 1 + .../client/_app/immutable/chunks/25AjRaeI.js | 1 + .../client/_app/immutable/chunks/61AlszRR.js | 5 + .../client/_app/immutable/chunks/B12dZE2q.js | 1 + .../client/_app/immutable/chunks/BC20z61P.js | 1 + .../client/_app/immutable/chunks/BDMwQRor.js | 1 + .../client/_app/immutable/chunks/BKSreT2u.js | 4 +- .../client/_app/immutable/chunks/BapE3c1q.js | 3 + .../client/_app/immutable/chunks/Bd99md_0.js | 20 + .../client/_app/immutable/chunks/BxPgF2w2.js | 2 + .../client/_app/immutable/chunks/Bzak7iHL.js | 1 + .../client/_app/immutable/chunks/CRDN6Mh7.js | 1 + .../client/_app/immutable/chunks/CsnJU1X_.js | 1 + .../client/_app/immutable/chunks/DRlIEfz1.js | 173 + .../client/_app/immutable/chunks/DXZbZvqb.js | 1 + .../client/_app/immutable/chunks/DZmckTjd.js | 2 + .../client/_app/immutable/chunks/DcVg5zjO.js | 1 + .../client/_app/immutable/chunks/Dexp9pM5.js | 2 +- .../client/_app/immutable/chunks/agKGoZF1.js | 2 +- .../client/_app/immutable/chunks/hqfhVoHF.js | 1 + .../client/_app/immutable/chunks/iABcLwh6.js | 133 + .../client/_app/immutable/chunks/jOLfEXYH.js | 1 + .../_app/immutable/entry/app.c69iw9ai.js | 2 + .../_app/immutable/entry/start.BXvCRdku.js | 1 + .../client/_app/immutable/nodes/0.BXv9ZfXj.js | 1 + .../client/_app/immutable/nodes/1.BT8sl3NL.js | 1 + .../client/_app/immutable/nodes/2.OkkHA0lV.js | 2 + .../client/_app/immutable/nodes/4.Bn1qLW0B.js | 1 + .../client/_app/immutable/nodes/5.u4tkKrg-.js | 2 + .svelte-kit/output/client/_app/version.json | 1 + .svelte-kit/output/server/.vite/manifest.json | 179 + .../immutable/assets/_layout.xzg7NZgL.css | 1 + .../output/server/chunks/environment.js | 34 + .svelte-kit/output/server/chunks/exports.js | 232 + .svelte-kit/output/server/chunks/false.js | 4 + .svelte-kit/output/server/chunks/index.js | 1168 +++++ .svelte-kit/output/server/chunks/internal.js | 134 + .svelte-kit/output/server/chunks/root.js | 2613 ++++++++++++ .svelte-kit/output/server/chunks/shared.js | 770 ++++ .svelte-kit/output/server/chunks/utils.js | 43 + .svelte-kit/output/server/chunks/utils2.js | 8 + .../server/entries/fallbacks/error.svelte.js | 56 + .../output/server/entries/hooks.server.js | 34 + .../server/entries/pages/_layout.svelte.js | 9 + .../output/server/entries/pages/_layout.ts.js | 1 + .../server/entries/pages/_page.server.ts.js | 9 + .../server/entries/pages/_page.svelte.js | 106 + .../entries/pages/items/_page.server.ts.js | 117 + .../entries/pages/items/_page.svelte.js | 646 +++ .../entries/pages/login/_page.server.ts.js | 34 + .../entries/pages/login/_page.svelte.js | 13 + .../entries/pages/logout/_page.server.ts.js | 8 + .svelte-kit/output/server/index.js | 3744 +++++++++++++++++ .svelte-kit/output/server/internal.js | 14 + .svelte-kit/output/server/manifest-full.js | 63 + .svelte-kit/output/server/manifest.js | 63 + .svelte-kit/output/server/nodes/0.js | 10 + .svelte-kit/output/server/nodes/1.js | 8 + .svelte-kit/output/server/nodes/2.js | 10 + .svelte-kit/output/server/nodes/3.js | 8 + .svelte-kit/output/server/nodes/4.js | 10 + .svelte-kit/output/server/nodes/5.js | 10 + .svelte-kit/output/server/remote-entry.js | 557 +++ .svelte-kit/types/route_meta_data.json | 1 + .svelte-kit/types/src/routes/$types.d.ts | 17 +- .../types/src/routes/proxy+page.server.ts | 15 + .../_app/immutable/assets/0.DbRKE6YE.css | 1 + .../_app/immutable/assets/0.DbRKE6YE.css.br | Bin 0 -> 7908 bytes .../_app/immutable/assets/0.DbRKE6YE.css.gz | Bin 0 -> 8959 bytes .../_app/immutable/assets/0.EFPCDS6k.css | 1 - .../_app/immutable/assets/0.EFPCDS6k.css.br | Bin 7901 -> 0 bytes .../_app/immutable/assets/0.EFPCDS6k.css.gz | Bin 8946 -> 0 bytes .../client/_app/immutable/chunks/25AjRaeI.js | 1 + .../_app/immutable/chunks/25AjRaeI.js.br | 2 + .../_app/immutable/chunks/25AjRaeI.js.gz | Bin 0 -> 251 bytes .../client/_app/immutable/chunks/61AlszRR.js | 5 + .../_app/immutable/chunks/61AlszRR.js.br | Bin 0 -> 5426 bytes .../_app/immutable/chunks/61AlszRR.js.gz | Bin 0 -> 5989 bytes .../client/_app/immutable/chunks/B12dZE2q.js | 1 + .../_app/immutable/chunks/B12dZE2q.js.br | Bin 0 -> 958 bytes .../_app/immutable/chunks/B12dZE2q.js.gz | Bin 0 -> 1081 bytes .../client/_app/immutable/chunks/BC20z61P.js | 1 + .../_app/immutable/chunks/BC20z61P.js.br | Bin 0 -> 398 bytes .../_app/immutable/chunks/BC20z61P.js.gz | Bin 0 -> 438 bytes .../client/_app/immutable/chunks/BDMwQRor.js | 1 + .../_app/immutable/chunks/BDMwQRor.js.br | Bin 0 -> 1244 bytes .../_app/immutable/chunks/BDMwQRor.js.gz | Bin 0 -> 1442 bytes .../client/_app/immutable/chunks/BKSreT2u.js | 2 + .../_app/immutable/chunks/BKSreT2u.js.br | Bin 0 -> 11701 bytes .../_app/immutable/chunks/BKSreT2u.js.gz | Bin 0 -> 13398 bytes .../client/_app/immutable/chunks/BMmwim-G.js | 2 - .../_app/immutable/chunks/BMmwim-G.js.br | Bin 2613 -> 0 bytes .../_app/immutable/chunks/BMmwim-G.js.gz | Bin 2910 -> 0 bytes .../client/_app/immutable/chunks/BOCLbrhU.js | 5 - .../_app/immutable/chunks/BOCLbrhU.js.br | Bin 5574 -> 0 bytes .../_app/immutable/chunks/BOCLbrhU.js.gz | Bin 6151 -> 0 bytes .../client/_app/immutable/chunks/BU_acMKx.js | 3 - .../_app/immutable/chunks/BU_acMKx.js.br | Bin 11922 -> 0 bytes .../_app/immutable/chunks/BU_acMKx.js.gz | Bin 13145 -> 0 bytes .../client/_app/immutable/chunks/BapE3c1q.js | 3 + .../_app/immutable/chunks/BapE3c1q.js.br | Bin 0 -> 11966 bytes .../_app/immutable/chunks/BapE3c1q.js.gz | Bin 0 -> 13193 bytes .../client/_app/immutable/chunks/BxPgF2w2.js | 2 + .../_app/immutable/chunks/BxPgF2w2.js.br | Bin 0 -> 1349 bytes .../_app/immutable/chunks/BxPgF2w2.js.gz | Bin 0 -> 1516 bytes .../client/_app/immutable/chunks/CINS0kDe.js | 1 - .../_app/immutable/chunks/CINS0kDe.js.br | Bin 968 -> 0 bytes .../_app/immutable/chunks/CINS0kDe.js.gz | Bin 1083 -> 0 bytes .../client/_app/immutable/chunks/CRDN6Mh7.js | 1 + .../_app/immutable/chunks/CRDN6Mh7.js.br | Bin 0 -> 1612 bytes .../_app/immutable/chunks/CRDN6Mh7.js.gz | Bin 0 -> 1839 bytes .../client/_app/immutable/chunks/CsnJU1X_.js | 1 + .../_app/immutable/chunks/CsnJU1X_.js.br | Bin 0 -> 385 bytes .../_app/immutable/chunks/CsnJU1X_.js.gz | Bin 0 -> 433 bytes .../client/_app/immutable/chunks/D1I5yNUo.js | 2 - .../_app/immutable/chunks/D1I5yNUo.js.br | Bin 1562 -> 0 bytes .../_app/immutable/chunks/D1I5yNUo.js.gz | Bin 1753 -> 0 bytes .../client/_app/immutable/chunks/D6Mj8HfB.js | 1 - .../_app/immutable/chunks/D6Mj8HfB.js.br | Bin 1039 -> 0 bytes .../_app/immutable/chunks/D6Mj8HfB.js.gz | Bin 1194 -> 0 bytes .../client/_app/immutable/chunks/DAt58MA1.js | 1 - .../_app/immutable/chunks/DAt58MA1.js.br | 2 - .../_app/immutable/chunks/DAt58MA1.js.gz | Bin 54 -> 0 bytes .../client/_app/immutable/chunks/DBvDeCtH.js | 1 - .../_app/immutable/chunks/DBvDeCtH.js.br | Bin 409 -> 0 bytes .../_app/immutable/chunks/DBvDeCtH.js.gz | Bin 458 -> 0 bytes .../client/_app/immutable/chunks/DPCugUAM.js | 1 - .../_app/immutable/chunks/DPCugUAM.js.br | Bin 768 -> 0 bytes .../_app/immutable/chunks/DPCugUAM.js.gz | Bin 906 -> 0 bytes .../client/_app/immutable/chunks/DRlIEfz1.js | 173 + .../_app/immutable/chunks/DRlIEfz1.js.br | Bin 0 -> 17986 bytes .../_app/immutable/chunks/DRlIEfz1.js.gz | Bin 0 -> 20568 bytes .../client/_app/immutable/chunks/DSpOEFAc.js | 305 -- .../_app/immutable/chunks/DSpOEFAc.js.br | Bin 47125 -> 0 bytes .../_app/immutable/chunks/DSpOEFAc.js.gz | Bin 54573 -> 0 bytes .../client/_app/immutable/chunks/DXZbZvqb.js | 1 + .../_app/immutable/chunks/DXZbZvqb.js.br | Bin 0 -> 889 bytes .../_app/immutable/chunks/DXZbZvqb.js.gz | Bin 0 -> 1016 bytes .../client/_app/immutable/chunks/DYBeKdvA.js | 1 - .../_app/immutable/chunks/DYBeKdvA.js.br | Bin 1255 -> 0 bytes .../_app/immutable/chunks/DYBeKdvA.js.gz | Bin 1429 -> 0 bytes .../client/_app/immutable/chunks/DZmckTjd.js | 2 + .../_app/immutable/chunks/DZmckTjd.js.br | Bin 0 -> 2618 bytes .../_app/immutable/chunks/DZmckTjd.js.gz | Bin 0 -> 2917 bytes .../client/_app/immutable/chunks/DcVg5zjO.js | 1 + .../_app/immutable/chunks/DcVg5zjO.js.br | Bin 0 -> 403 bytes .../_app/immutable/chunks/DcVg5zjO.js.gz | Bin 0 -> 457 bytes .../_app/immutable/chunks/De4R2cbq.js.br | Bin 11731 -> 0 bytes .../_app/immutable/chunks/De4R2cbq.js.gz | Bin 13397 -> 0 bytes .../client/_app/immutable/chunks/Dexp9pM5.js | 1 + .../_app/immutable/chunks/Dexp9pM5.js.br | Bin 0 -> 9471 bytes .../chunks/{MIlO0V30.js.gz => Dexp9pM5.js.gz} | Bin 10561 -> 10560 bytes .../_app/immutable/chunks/Dt2zEVER.js.br | Bin 1046 -> 0 bytes .../_app/immutable/chunks/Dt2zEVER.js.gz | Bin 1214 -> 0 bytes .../_app/immutable/chunks/MIlO0V30.js.br | Bin 9444 -> 0 bytes .../client/_app/immutable/chunks/agKGoZF1.js | 1 + .../_app/immutable/chunks/agKGoZF1.js.br | Bin 0 -> 1040 bytes .../_app/immutable/chunks/agKGoZF1.js.gz | Bin 0 -> 1215 bytes .../client/_app/immutable/chunks/hqfhVoHF.js | 1 + .../_app/immutable/chunks/hqfhVoHF.js.br | 2 + .../_app/immutable/chunks/hqfhVoHF.js.gz | Bin 0 -> 54 bytes .../client/_app/immutable/chunks/iABcLwh6.js | 133 + .../_app/immutable/chunks/iABcLwh6.js.br | Bin 0 -> 32347 bytes .../_app/immutable/chunks/iABcLwh6.js.gz | Bin 0 -> 36964 bytes .../client/_app/immutable/chunks/jOLfEXYH.js | 1 + .../_app/immutable/chunks/jOLfEXYH.js.br | Bin 0 -> 1085 bytes .../_app/immutable/chunks/jOLfEXYH.js.gz | Bin 0 -> 1148 bytes .../client/_app/immutable/chunks/znVx7SEM.js | 1 - .../_app/immutable/chunks/znVx7SEM.js.br | Bin 1072 -> 0 bytes .../_app/immutable/chunks/znVx7SEM.js.gz | Bin 1154 -> 0 bytes .../_app/immutable/entry/app.c69iw9ai.js | 2 + .../_app/immutable/entry/app.c69iw9ai.js.br | Bin 0 -> 2035 bytes .../_app/immutable/entry/app.c69iw9ai.js.gz | Bin 0 -> 2263 bytes .../_app/immutable/entry/app.xKzg9ha8.js | 2 - .../_app/immutable/entry/app.xKzg9ha8.js.br | Bin 2022 -> 0 bytes .../_app/immutable/entry/app.xKzg9ha8.js.gz | Bin 2248 -> 0 bytes .../_app/immutable/entry/start.BXvCRdku.js | 1 + .../_app/immutable/entry/start.BXvCRdku.js.br | 2 + .../_app/immutable/entry/start.BXvCRdku.js.gz | Bin 0 -> 93 bytes .../_app/immutable/entry/start.lYj2oyFl.js | 1 - .../_app/immutable/entry/start.lYj2oyFl.js.br | 2 - .../_app/immutable/entry/start.lYj2oyFl.js.gz | Bin 93 -> 0 bytes .../client/_app/immutable/nodes/0.BXv9ZfXj.js | 1 + .../_app/immutable/nodes/0.BXv9ZfXj.js.br | 2 + .../_app/immutable/nodes/0.BXv9ZfXj.js.gz | Bin 0 -> 340 bytes .../client/_app/immutable/nodes/0.BbNusdVr.js | 1 - .../_app/immutable/nodes/0.BbNusdVr.js.br | Bin 315 -> 0 bytes .../_app/immutable/nodes/0.BbNusdVr.js.gz | Bin 340 -> 0 bytes .../client/_app/immutable/nodes/1.BSDMq5ii.js | 1 - .../_app/immutable/nodes/1.BSDMq5ii.js.br | Bin 556 -> 0 bytes .../_app/immutable/nodes/1.BSDMq5ii.js.gz | Bin 604 -> 0 bytes .../client/_app/immutable/nodes/1.BT8sl3NL.js | 1 + .../_app/immutable/nodes/1.BT8sl3NL.js.br | 1 + .../_app/immutable/nodes/1.BT8sl3NL.js.gz | Bin 0 -> 602 bytes .../client/_app/immutable/nodes/2.B-LkGsse.js | 1 - .../_app/immutable/nodes/2.B-LkGsse.js.br | 3 - .../_app/immutable/nodes/2.B-LkGsse.js.gz | Bin 482 -> 0 bytes .../client/_app/immutable/nodes/2.OkkHA0lV.js | 2 + .../_app/immutable/nodes/2.OkkHA0lV.js.br | Bin 0 -> 572 bytes .../_app/immutable/nodes/2.OkkHA0lV.js.gz | Bin 0 -> 628 bytes .../client/_app/immutable/nodes/4.Bn1qLW0B.js | 1 + .../_app/immutable/nodes/4.Bn1qLW0B.js.br | Bin 0 -> 70 bytes .../_app/immutable/nodes/4.Bn1qLW0B.js.gz | Bin 0 -> 81 bytes .../client/_app/immutable/nodes/4.CiQuz_-G.js | 1 - .../_app/immutable/nodes/4.CiQuz_-G.js.br | 2 - .../_app/immutable/nodes/4.CiQuz_-G.js.gz | Bin 81 -> 0 bytes .../client/_app/immutable/nodes/5.CncCf1V5.js | 2 - .../_app/immutable/nodes/5.CncCf1V5.js.br | Bin 582 -> 0 bytes .../_app/immutable/nodes/5.CncCf1V5.js.gz | Bin 641 -> 0 bytes .../client/_app/immutable/nodes/5.u4tkKrg-.js | 2 + .../_app/immutable/nodes/5.u4tkKrg-.js.br | Bin 0 -> 587 bytes .../_app/immutable/nodes/5.u4tkKrg-.js.gz | Bin 0 -> 653 bytes build/client/_app/version.json | 2 +- build/client/_app/version.json.br | Bin 31 -> 29 bytes build/client/_app/version.json.gz | Bin 47 -> 47 bytes .../chunks/{0-BG3ac_Ii.js => 0-pFHonfwH.js} | 6 +- .../{0-BG3ac_Ii.js.map => 0-pFHonfwH.js.map} | 2 +- build/server/chunks/1-DQKtEeGl.js | 9 - build/server/chunks/1-p02jFeMq.js | 9 + .../{1-DQKtEeGl.js.map => 1-p02jFeMq.js.map} | 2 +- build/server/chunks/2-CIfUOxeL.js | 22 + build/server/chunks/2-CIfUOxeL.js.map | 1 + build/server/chunks/2-D3BraRNb.js | 9 - build/server/chunks/2-D3BraRNb.js.map | 1 - .../chunks/{4-CfV0vtB3.js => 4-BhMW4SH8.js} | 4 +- build/server/chunks/4-BhMW4SH8.js.map | 1 + build/server/chunks/4-CfV0vtB3.js.map | 1 - .../chunks/{5-BHOJrLRF.js => 5-BEJSjzl2.js} | 4 +- .../{5-BHOJrLRF.js.map => 5-BEJSjzl2.js.map} | 2 +- ...e-BoMrJaXS.js => _page.svelte-BBZV9Anf.js} | 49 +- .../chunks/_page.svelte-BBZV9Anf.js.map | 1 + .../chunks/_page.svelte-BoMrJaXS.js.map | 1 - build/server/index.js | 2 +- build/server/index.js.map | 2 +- build/server/manifest.js | 12 +- build/server/manifest.js.map | 2 +- src/routes/+page.server.ts | 14 + src/routes/+page.svelte | 38 +- src/routes/HomeWithDialog.svelte | 51 + 257 files changed, 12058 insertions(+), 483 deletions(-) delete mode 100644 .svelte-kit/adapter-node/_app/immutable/assets/_layout.BQZUYDmN.css create mode 100644 .svelte-kit/adapter-node/_app/immutable/assets/_layout.xzg7NZgL.css create mode 100644 .svelte-kit/adapter-node/entries/pages/_page.server.ts.js create mode 100644 .svelte-kit/output/client/.vite/manifest.json create mode 100644 .svelte-kit/output/client/_app/immutable/assets/0.DbRKE6YE.css create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/25AjRaeI.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/61AlszRR.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/B12dZE2q.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/BC20z61P.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/BDMwQRor.js rename build/client/_app/immutable/chunks/De4R2cbq.js => .svelte-kit/output/client/_app/immutable/chunks/BKSreT2u.js (86%) create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/BapE3c1q.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/Bd99md_0.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/BxPgF2w2.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/CRDN6Mh7.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/CsnJU1X_.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/DRlIEfz1.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/DXZbZvqb.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/DZmckTjd.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/DcVg5zjO.js rename build/client/_app/immutable/chunks/MIlO0V30.js => .svelte-kit/output/client/_app/immutable/chunks/Dexp9pM5.js (95%) rename build/client/_app/immutable/chunks/Dt2zEVER.js => .svelte-kit/output/client/_app/immutable/chunks/agKGoZF1.js (78%) create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/hqfhVoHF.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/iABcLwh6.js create mode 100644 .svelte-kit/output/client/_app/immutable/chunks/jOLfEXYH.js create mode 100644 .svelte-kit/output/client/_app/immutable/entry/app.c69iw9ai.js create mode 100644 .svelte-kit/output/client/_app/immutable/entry/start.BXvCRdku.js create mode 100644 .svelte-kit/output/client/_app/immutable/nodes/0.BXv9ZfXj.js create mode 100644 .svelte-kit/output/client/_app/immutable/nodes/1.BT8sl3NL.js create mode 100644 .svelte-kit/output/client/_app/immutable/nodes/2.OkkHA0lV.js create mode 100644 .svelte-kit/output/client/_app/immutable/nodes/4.Bn1qLW0B.js create mode 100644 .svelte-kit/output/client/_app/immutable/nodes/5.u4tkKrg-.js create mode 100644 .svelte-kit/output/client/_app/version.json create mode 100644 .svelte-kit/output/server/.vite/manifest.json create mode 100644 .svelte-kit/output/server/_app/immutable/assets/_layout.xzg7NZgL.css create mode 100644 .svelte-kit/output/server/chunks/environment.js create mode 100644 .svelte-kit/output/server/chunks/exports.js create mode 100644 .svelte-kit/output/server/chunks/false.js create mode 100644 .svelte-kit/output/server/chunks/index.js create mode 100644 .svelte-kit/output/server/chunks/internal.js create mode 100644 .svelte-kit/output/server/chunks/root.js create mode 100644 .svelte-kit/output/server/chunks/shared.js create mode 100644 .svelte-kit/output/server/chunks/utils.js create mode 100644 .svelte-kit/output/server/chunks/utils2.js create mode 100644 .svelte-kit/output/server/entries/fallbacks/error.svelte.js create mode 100644 .svelte-kit/output/server/entries/hooks.server.js create mode 100644 .svelte-kit/output/server/entries/pages/_layout.svelte.js create mode 100644 .svelte-kit/output/server/entries/pages/_layout.ts.js create mode 100644 .svelte-kit/output/server/entries/pages/_page.server.ts.js create mode 100644 .svelte-kit/output/server/entries/pages/_page.svelte.js create mode 100644 .svelte-kit/output/server/entries/pages/items/_page.server.ts.js create mode 100644 .svelte-kit/output/server/entries/pages/items/_page.svelte.js create mode 100644 .svelte-kit/output/server/entries/pages/login/_page.server.ts.js create mode 100644 .svelte-kit/output/server/entries/pages/login/_page.svelte.js create mode 100644 .svelte-kit/output/server/entries/pages/logout/_page.server.ts.js create mode 100644 .svelte-kit/output/server/index.js create mode 100644 .svelte-kit/output/server/internal.js create mode 100644 .svelte-kit/output/server/manifest-full.js create mode 100644 .svelte-kit/output/server/manifest.js create mode 100644 .svelte-kit/output/server/nodes/0.js create mode 100644 .svelte-kit/output/server/nodes/1.js create mode 100644 .svelte-kit/output/server/nodes/2.js create mode 100644 .svelte-kit/output/server/nodes/3.js create mode 100644 .svelte-kit/output/server/nodes/4.js create mode 100644 .svelte-kit/output/server/nodes/5.js create mode 100644 .svelte-kit/output/server/remote-entry.js create mode 100644 .svelte-kit/types/src/routes/proxy+page.server.ts create mode 100644 build/client/_app/immutable/assets/0.DbRKE6YE.css create mode 100644 build/client/_app/immutable/assets/0.DbRKE6YE.css.br create mode 100644 build/client/_app/immutable/assets/0.DbRKE6YE.css.gz delete mode 100644 build/client/_app/immutable/assets/0.EFPCDS6k.css delete mode 100644 build/client/_app/immutable/assets/0.EFPCDS6k.css.br delete mode 100644 build/client/_app/immutable/assets/0.EFPCDS6k.css.gz create mode 100644 build/client/_app/immutable/chunks/25AjRaeI.js create mode 100644 build/client/_app/immutable/chunks/25AjRaeI.js.br create mode 100644 build/client/_app/immutable/chunks/25AjRaeI.js.gz create mode 100644 build/client/_app/immutable/chunks/61AlszRR.js create mode 100644 build/client/_app/immutable/chunks/61AlszRR.js.br create mode 100644 build/client/_app/immutable/chunks/61AlszRR.js.gz create mode 100644 build/client/_app/immutable/chunks/B12dZE2q.js create mode 100644 build/client/_app/immutable/chunks/B12dZE2q.js.br create mode 100644 build/client/_app/immutable/chunks/B12dZE2q.js.gz create mode 100644 build/client/_app/immutable/chunks/BC20z61P.js create mode 100644 build/client/_app/immutable/chunks/BC20z61P.js.br create mode 100644 build/client/_app/immutable/chunks/BC20z61P.js.gz create mode 100644 build/client/_app/immutable/chunks/BDMwQRor.js create mode 100644 build/client/_app/immutable/chunks/BDMwQRor.js.br create mode 100644 build/client/_app/immutable/chunks/BDMwQRor.js.gz create mode 100644 build/client/_app/immutable/chunks/BKSreT2u.js create mode 100644 build/client/_app/immutable/chunks/BKSreT2u.js.br create mode 100644 build/client/_app/immutable/chunks/BKSreT2u.js.gz delete mode 100644 build/client/_app/immutable/chunks/BMmwim-G.js delete mode 100644 build/client/_app/immutable/chunks/BMmwim-G.js.br delete mode 100644 build/client/_app/immutable/chunks/BMmwim-G.js.gz delete mode 100644 build/client/_app/immutable/chunks/BOCLbrhU.js delete mode 100644 build/client/_app/immutable/chunks/BOCLbrhU.js.br delete mode 100644 build/client/_app/immutable/chunks/BOCLbrhU.js.gz delete mode 100644 build/client/_app/immutable/chunks/BU_acMKx.js delete mode 100644 build/client/_app/immutable/chunks/BU_acMKx.js.br delete mode 100644 build/client/_app/immutable/chunks/BU_acMKx.js.gz create mode 100644 build/client/_app/immutable/chunks/BapE3c1q.js create mode 100644 build/client/_app/immutable/chunks/BapE3c1q.js.br create mode 100644 build/client/_app/immutable/chunks/BapE3c1q.js.gz create mode 100644 build/client/_app/immutable/chunks/BxPgF2w2.js create mode 100644 build/client/_app/immutable/chunks/BxPgF2w2.js.br create mode 100644 build/client/_app/immutable/chunks/BxPgF2w2.js.gz delete mode 100644 build/client/_app/immutable/chunks/CINS0kDe.js delete mode 100644 build/client/_app/immutable/chunks/CINS0kDe.js.br delete mode 100644 build/client/_app/immutable/chunks/CINS0kDe.js.gz create mode 100644 build/client/_app/immutable/chunks/CRDN6Mh7.js create mode 100644 build/client/_app/immutable/chunks/CRDN6Mh7.js.br create mode 100644 build/client/_app/immutable/chunks/CRDN6Mh7.js.gz create mode 100644 build/client/_app/immutable/chunks/CsnJU1X_.js create mode 100644 build/client/_app/immutable/chunks/CsnJU1X_.js.br create mode 100644 build/client/_app/immutable/chunks/CsnJU1X_.js.gz delete mode 100644 build/client/_app/immutable/chunks/D1I5yNUo.js delete mode 100644 build/client/_app/immutable/chunks/D1I5yNUo.js.br delete mode 100644 build/client/_app/immutable/chunks/D1I5yNUo.js.gz delete mode 100644 build/client/_app/immutable/chunks/D6Mj8HfB.js delete mode 100644 build/client/_app/immutable/chunks/D6Mj8HfB.js.br delete mode 100644 build/client/_app/immutable/chunks/D6Mj8HfB.js.gz delete mode 100644 build/client/_app/immutable/chunks/DAt58MA1.js delete mode 100644 build/client/_app/immutable/chunks/DAt58MA1.js.br delete mode 100644 build/client/_app/immutable/chunks/DAt58MA1.js.gz delete mode 100644 build/client/_app/immutable/chunks/DBvDeCtH.js delete mode 100644 build/client/_app/immutable/chunks/DBvDeCtH.js.br delete mode 100644 build/client/_app/immutable/chunks/DBvDeCtH.js.gz delete mode 100644 build/client/_app/immutable/chunks/DPCugUAM.js delete mode 100644 build/client/_app/immutable/chunks/DPCugUAM.js.br delete mode 100644 build/client/_app/immutable/chunks/DPCugUAM.js.gz create mode 100644 build/client/_app/immutable/chunks/DRlIEfz1.js create mode 100644 build/client/_app/immutable/chunks/DRlIEfz1.js.br create mode 100644 build/client/_app/immutable/chunks/DRlIEfz1.js.gz delete mode 100644 build/client/_app/immutable/chunks/DSpOEFAc.js delete mode 100644 build/client/_app/immutable/chunks/DSpOEFAc.js.br delete mode 100644 build/client/_app/immutable/chunks/DSpOEFAc.js.gz create mode 100644 build/client/_app/immutable/chunks/DXZbZvqb.js create mode 100644 build/client/_app/immutable/chunks/DXZbZvqb.js.br create mode 100644 build/client/_app/immutable/chunks/DXZbZvqb.js.gz delete mode 100644 build/client/_app/immutable/chunks/DYBeKdvA.js delete mode 100644 build/client/_app/immutable/chunks/DYBeKdvA.js.br delete mode 100644 build/client/_app/immutable/chunks/DYBeKdvA.js.gz create mode 100644 build/client/_app/immutable/chunks/DZmckTjd.js create mode 100644 build/client/_app/immutable/chunks/DZmckTjd.js.br create mode 100644 build/client/_app/immutable/chunks/DZmckTjd.js.gz create mode 100644 build/client/_app/immutable/chunks/DcVg5zjO.js create mode 100644 build/client/_app/immutable/chunks/DcVg5zjO.js.br create mode 100644 build/client/_app/immutable/chunks/DcVg5zjO.js.gz delete mode 100644 build/client/_app/immutable/chunks/De4R2cbq.js.br delete mode 100644 build/client/_app/immutable/chunks/De4R2cbq.js.gz create mode 100644 build/client/_app/immutable/chunks/Dexp9pM5.js create mode 100644 build/client/_app/immutable/chunks/Dexp9pM5.js.br rename build/client/_app/immutable/chunks/{MIlO0V30.js.gz => Dexp9pM5.js.gz} (93%) delete mode 100644 build/client/_app/immutable/chunks/Dt2zEVER.js.br delete mode 100644 build/client/_app/immutable/chunks/Dt2zEVER.js.gz delete mode 100644 build/client/_app/immutable/chunks/MIlO0V30.js.br create mode 100644 build/client/_app/immutable/chunks/agKGoZF1.js create mode 100644 build/client/_app/immutable/chunks/agKGoZF1.js.br create mode 100644 build/client/_app/immutable/chunks/agKGoZF1.js.gz create mode 100644 build/client/_app/immutable/chunks/hqfhVoHF.js create mode 100644 build/client/_app/immutable/chunks/hqfhVoHF.js.br create mode 100644 build/client/_app/immutable/chunks/hqfhVoHF.js.gz create mode 100644 build/client/_app/immutable/chunks/iABcLwh6.js create mode 100644 build/client/_app/immutable/chunks/iABcLwh6.js.br create mode 100644 build/client/_app/immutable/chunks/iABcLwh6.js.gz create mode 100644 build/client/_app/immutable/chunks/jOLfEXYH.js create mode 100644 build/client/_app/immutable/chunks/jOLfEXYH.js.br create mode 100644 build/client/_app/immutable/chunks/jOLfEXYH.js.gz delete mode 100644 build/client/_app/immutable/chunks/znVx7SEM.js delete mode 100644 build/client/_app/immutable/chunks/znVx7SEM.js.br delete mode 100644 build/client/_app/immutable/chunks/znVx7SEM.js.gz create mode 100644 build/client/_app/immutable/entry/app.c69iw9ai.js create mode 100644 build/client/_app/immutable/entry/app.c69iw9ai.js.br create mode 100644 build/client/_app/immutable/entry/app.c69iw9ai.js.gz delete mode 100644 build/client/_app/immutable/entry/app.xKzg9ha8.js delete mode 100644 build/client/_app/immutable/entry/app.xKzg9ha8.js.br delete mode 100644 build/client/_app/immutable/entry/app.xKzg9ha8.js.gz create mode 100644 build/client/_app/immutable/entry/start.BXvCRdku.js create mode 100644 build/client/_app/immutable/entry/start.BXvCRdku.js.br create mode 100644 build/client/_app/immutable/entry/start.BXvCRdku.js.gz delete mode 100644 build/client/_app/immutable/entry/start.lYj2oyFl.js delete mode 100644 build/client/_app/immutable/entry/start.lYj2oyFl.js.br delete mode 100644 build/client/_app/immutable/entry/start.lYj2oyFl.js.gz create mode 100644 build/client/_app/immutable/nodes/0.BXv9ZfXj.js create mode 100644 build/client/_app/immutable/nodes/0.BXv9ZfXj.js.br create mode 100644 build/client/_app/immutable/nodes/0.BXv9ZfXj.js.gz delete mode 100644 build/client/_app/immutable/nodes/0.BbNusdVr.js delete mode 100644 build/client/_app/immutable/nodes/0.BbNusdVr.js.br delete mode 100644 build/client/_app/immutable/nodes/0.BbNusdVr.js.gz delete mode 100644 build/client/_app/immutable/nodes/1.BSDMq5ii.js delete mode 100644 build/client/_app/immutable/nodes/1.BSDMq5ii.js.br delete mode 100644 build/client/_app/immutable/nodes/1.BSDMq5ii.js.gz create mode 100644 build/client/_app/immutable/nodes/1.BT8sl3NL.js create mode 100644 build/client/_app/immutable/nodes/1.BT8sl3NL.js.br create mode 100644 build/client/_app/immutable/nodes/1.BT8sl3NL.js.gz delete mode 100644 build/client/_app/immutable/nodes/2.B-LkGsse.js delete mode 100644 build/client/_app/immutable/nodes/2.B-LkGsse.js.br delete mode 100644 build/client/_app/immutable/nodes/2.B-LkGsse.js.gz create mode 100644 build/client/_app/immutable/nodes/2.OkkHA0lV.js create mode 100644 build/client/_app/immutable/nodes/2.OkkHA0lV.js.br create mode 100644 build/client/_app/immutable/nodes/2.OkkHA0lV.js.gz create mode 100644 build/client/_app/immutable/nodes/4.Bn1qLW0B.js create mode 100644 build/client/_app/immutable/nodes/4.Bn1qLW0B.js.br create mode 100644 build/client/_app/immutable/nodes/4.Bn1qLW0B.js.gz delete mode 100644 build/client/_app/immutable/nodes/4.CiQuz_-G.js delete mode 100644 build/client/_app/immutable/nodes/4.CiQuz_-G.js.br delete mode 100644 build/client/_app/immutable/nodes/4.CiQuz_-G.js.gz delete mode 100644 build/client/_app/immutable/nodes/5.CncCf1V5.js delete mode 100644 build/client/_app/immutable/nodes/5.CncCf1V5.js.br delete mode 100644 build/client/_app/immutable/nodes/5.CncCf1V5.js.gz create mode 100644 build/client/_app/immutable/nodes/5.u4tkKrg-.js create mode 100644 build/client/_app/immutable/nodes/5.u4tkKrg-.js.br create mode 100644 build/client/_app/immutable/nodes/5.u4tkKrg-.js.gz rename build/server/chunks/{0-BG3ac_Ii.js => 0-pFHonfwH.js} (58%) rename build/server/chunks/{0-BG3ac_Ii.js.map => 0-pFHonfwH.js.map} (65%) delete mode 100644 build/server/chunks/1-DQKtEeGl.js create mode 100644 build/server/chunks/1-p02jFeMq.js rename build/server/chunks/{1-DQKtEeGl.js.map => 1-p02jFeMq.js.map} (62%) create mode 100644 build/server/chunks/2-CIfUOxeL.js create mode 100644 build/server/chunks/2-CIfUOxeL.js.map delete mode 100644 build/server/chunks/2-D3BraRNb.js delete mode 100644 build/server/chunks/2-D3BraRNb.js.map rename build/server/chunks/{4-CfV0vtB3.js => 4-BhMW4SH8.js} (91%) create mode 100644 build/server/chunks/4-BhMW4SH8.js.map delete mode 100644 build/server/chunks/4-CfV0vtB3.js.map rename build/server/chunks/{5-BHOJrLRF.js => 5-BEJSjzl2.js} (85%) rename build/server/chunks/{5-BHOJrLRF.js.map => 5-BEJSjzl2.js.map} (90%) rename build/server/chunks/{_page.svelte-BoMrJaXS.js => _page.svelte-BBZV9Anf.js} (71%) create mode 100644 build/server/chunks/_page.svelte-BBZV9Anf.js.map delete mode 100644 build/server/chunks/_page.svelte-BoMrJaXS.js.map create mode 100644 src/routes/+page.server.ts create mode 100644 src/routes/HomeWithDialog.svelte diff --git a/.svelte-kit/adapter-node/.vite/manifest.json b/.svelte-kit/adapter-node/.vite/manifest.json index 48a8dc11..18bbafb6 100644 --- a/.svelte-kit/adapter-node/.vite/manifest.json +++ b/.svelte-kit/adapter-node/.vite/manifest.json @@ -117,7 +117,7 @@ "_index.js" ], "css": [ - "_app/immutable/assets/_layout.BQZUYDmN.css" + "_app/immutable/assets/_layout.xzg7NZgL.css" ] }, "src/routes/+layout.ts": { @@ -126,6 +126,12 @@ "src": "src/routes/+layout.ts", "isEntry": true }, + "src/routes/+page.server.ts": { + "file": "entries/pages/_page.server.ts.js", + "name": "entries/pages/_page.server.ts", + "src": "src/routes/+page.server.ts", + "isEntry": true + }, "src/routes/+page.svelte": { "file": "entries/pages/_page.svelte.js", "name": "entries/pages/_page.svelte", diff --git a/.svelte-kit/adapter-node/_app/immutable/assets/_layout.BQZUYDmN.css b/.svelte-kit/adapter-node/_app/immutable/assets/_layout.BQZUYDmN.css deleted file mode 100644 index 6f8a6636..00000000 --- a/.svelte-kit/adapter-node/_app/immutable/assets/_layout.BQZUYDmN.css +++ /dev/null @@ -1 +0,0 @@ -/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--tracking-widest:.1em;--radius-xs:.125rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.start-2{inset-inline-start:calc(var(--spacing)*2)}.end-2{inset-inline-end:calc(var(--spacing)*2)}.end-4{inset-inline-end:calc(var(--spacing)*4)}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-14{width:calc(var(--spacing)*14);height:calc(var(--spacing)*14)}.size-20{width:calc(var(--spacing)*20);height:calc(var(--spacing)*20)}.h-\(--bits-select-anchor-height\){height:var(--bits-select-anchor-height)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-24{height:calc(var(--spacing)*24)}.h-px{height:1px}.max-h-\(--bits-dropdown-menu-content-available-height\){max-height:var(--bits-dropdown-menu-content-available-height)}.max-h-\(--bits-select-content-available-height\){max-height:var(--bits-select-content-available-height)}.max-h-\[90vh\]{max-height:90vh}.min-h-screen{min-height:100vh}.w-16{width:calc(var(--spacing)*16)}.w-\[70px\]{width:70px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[200px\]{max-width:200px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-sm{max-width:var(--container-sm)}.min-w-\(--bits-select-anchor-width\){min-width:var(--bits-select-anchor-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[8rem\]{min-width:8rem}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--bits-dropdown-menu-content-transform-origin\){transform-origin:var(--bits-dropdown-menu-content-transform-origin)}.origin-\(--bits-select-content-transform-origin\){transform-origin:var(--bits-select-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-input{border-color:var(--input)}.border-transparent{border-color:#0000}.bg-background,.bg-background\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/95{background-color:color-mix(in oklab,var(--background)95%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.ps-2{padding-inline-start:calc(var(--spacing)*2)}.ps-8{padding-inline-start:calc(var(--spacing)*8)}.pe-2{padding-inline-end:calc(var(--spacing)*2)}.pe-8{padding-inline-end:calc(var(--spacing)*8)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-destructive:focus{color:var(--destructive)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\[highlighted\]\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[inset\]\:ps-8[data-inset]{padding-inline-start:calc(var(--spacing)*8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:min-h-full[data-orientation=vertical]{min-height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:data-highlighted\:text-destructive[data-variant=destructive][data-highlighted]{color:var(--destructive)}@media(min-width:40rem){.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:text-start{text-align:start}}@media(min-width:48rem){.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-destructive\/70:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/70:is(.dark *){background-color:color-mix(in oklab,var(--destructive)70%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media(hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}@media(hover:hover){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media(hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:#fff;--foreground:#09090b;--muted:#f4f4f5;--muted-foreground:#71717a;--popover:#fff;--popover-foreground:#09090b;--card:#fff;--card-foreground:#09090b;--border:#e4e4e7;--input:#e4e4e7;--primary:#18181b;--primary-foreground:#fafafa;--secondary:#f4f4f5;--secondary-foreground:#18181b;--accent:#f4f4f5;--accent-foreground:#18181b;--destructive:#dc2626;--destructive-foreground:#fafafa;--ring:#09090b;--sidebar:#fafafa;--sidebar-foreground:#3f3f46;--sidebar-primary:#18181b;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f4f4f5;--sidebar-accent-foreground:#18181b;--sidebar-border:#e5e7eb;--sidebar-ring:#3b82f6;--radius:.5rem}.dark{--background:#09090b;--foreground:#fafafa;--muted:#27272a;--muted-foreground:#a1a1aa;--popover:#09090b;--popover-foreground:#fafafa;--card:#09090b;--card-foreground:#fafafa;--border:#27272a;--input:#27272a;--primary:#fafafa;--primary-foreground:#18181b;--secondary:#27272a;--secondary-foreground:#fafafa;--accent:#27272a;--accent-foreground:#fafafa;--destructive:#7f1d1d;--destructive-foreground:#fafafa;--ring:#d4d4d8;--sidebar:#18181b;--sidebar-foreground:#f4f4f5;--sidebar-primary:#1d4ed8;--sidebar-primary-foreground:#fff;--sidebar-accent:#27272a;--sidebar-accent-foreground:#f4f4f5;--sidebar-border:#27272a;--sidebar-ring:#3b82f6}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}} diff --git a/.svelte-kit/adapter-node/_app/immutable/assets/_layout.xzg7NZgL.css b/.svelte-kit/adapter-node/_app/immutable/assets/_layout.xzg7NZgL.css new file mode 100644 index 00000000..7b3a3704 --- /dev/null +++ b/.svelte-kit/adapter-node/_app/immutable/assets/_layout.xzg7NZgL.css @@ -0,0 +1 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--tracking-widest:.1em;--radius-xs:.125rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.start-2{inset-inline-start:calc(var(--spacing)*2)}.end-2{inset-inline-end:calc(var(--spacing)*2)}.end-4{inset-inline-end:calc(var(--spacing)*4)}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-14{width:calc(var(--spacing)*14);height:calc(var(--spacing)*14)}.size-20{width:calc(var(--spacing)*20);height:calc(var(--spacing)*20)}.h-\(--bits-select-anchor-height\){height:var(--bits-select-anchor-height)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-24{height:calc(var(--spacing)*24)}.h-px{height:1px}.max-h-\(--bits-dropdown-menu-content-available-height\){max-height:var(--bits-dropdown-menu-content-available-height)}.max-h-\(--bits-select-content-available-height\){max-height:var(--bits-select-content-available-height)}.max-h-\[90vh\]{max-height:90vh}.min-h-screen{min-height:100vh}.w-16{width:calc(var(--spacing)*16)}.w-\[70px\]{width:70px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[200px\]{max-width:200px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-\(--bits-select-anchor-width\){min-width:var(--bits-select-anchor-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[8rem\]{min-width:8rem}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--bits-dropdown-menu-content-transform-origin\){transform-origin:var(--bits-dropdown-menu-content-transform-origin)}.origin-\(--bits-select-content-transform-origin\){transform-origin:var(--bits-select-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-input{border-color:var(--input)}.border-transparent{border-color:#0000}.bg-background,.bg-background\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/95{background-color:color-mix(in oklab,var(--background)95%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.ps-2{padding-inline-start:calc(var(--spacing)*2)}.ps-8{padding-inline-start:calc(var(--spacing)*8)}.pe-2{padding-inline-end:calc(var(--spacing)*2)}.pe-8{padding-inline-end:calc(var(--spacing)*8)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-destructive:focus{color:var(--destructive)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\[highlighted\]\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[inset\]\:ps-8[data-inset]{padding-inline-start:calc(var(--spacing)*8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:min-h-full[data-orientation=vertical]{min-height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:data-highlighted\:text-destructive[data-variant=destructive][data-highlighted]{color:var(--destructive)}@media(min-width:40rem){.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:text-start{text-align:start}}@media(min-width:48rem){.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-destructive\/70:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/70:is(.dark *){background-color:color-mix(in oklab,var(--destructive)70%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media(hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}@media(hover:hover){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media(hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:#fff;--foreground:#09090b;--muted:#f4f4f5;--muted-foreground:#71717a;--popover:#fff;--popover-foreground:#09090b;--card:#fff;--card-foreground:#09090b;--border:#e4e4e7;--input:#e4e4e7;--primary:#18181b;--primary-foreground:#fafafa;--secondary:#f4f4f5;--secondary-foreground:#18181b;--accent:#f4f4f5;--accent-foreground:#18181b;--destructive:#dc2626;--destructive-foreground:#fafafa;--ring:#09090b;--sidebar:#fafafa;--sidebar-foreground:#3f3f46;--sidebar-primary:#18181b;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f4f4f5;--sidebar-accent-foreground:#18181b;--sidebar-border:#e5e7eb;--sidebar-ring:#3b82f6;--radius:.5rem}.dark{--background:#09090b;--foreground:#fafafa;--muted:#27272a;--muted-foreground:#a1a1aa;--popover:#09090b;--popover-foreground:#fafafa;--card:#09090b;--card-foreground:#fafafa;--border:#27272a;--input:#27272a;--primary:#fafafa;--primary-foreground:#18181b;--secondary:#27272a;--secondary-foreground:#fafafa;--accent:#27272a;--accent-foreground:#fafafa;--destructive:#7f1d1d;--destructive-foreground:#fafafa;--ring:#d4d4d8;--sidebar:#18181b;--sidebar-foreground:#f4f4f5;--sidebar-primary:#1d4ed8;--sidebar-primary-foreground:#fff;--sidebar-accent:#27272a;--sidebar-accent-foreground:#f4f4f5;--sidebar-border:#27272a;--sidebar-ring:#3b82f6}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}} diff --git a/.svelte-kit/adapter-node/chunks/internal.js b/.svelte-kit/adapter-node/chunks/internal.js index 32fd17e5..d857fcc6 100644 --- a/.svelte-kit/adapter-node/chunks/internal.js +++ b/.svelte-kit/adapter-node/chunks/internal.js @@ -101,7 +101,7 @@ const options = {
` + status + '\n
\n

' + message + "

\n
\n
\n \n\n" }, - version_hash: "1clozn7" + version_hash: "1cw4viz" }; async function get_hooks() { let handle; diff --git a/.svelte-kit/adapter-node/entries/pages/_page.server.ts.js b/.svelte-kit/adapter-node/entries/pages/_page.server.ts.js new file mode 100644 index 00000000..464da2f8 --- /dev/null +++ b/.svelte-kit/adapter-node/entries/pages/_page.server.ts.js @@ -0,0 +1,9 @@ +const COLLECTION = "Stackq_Items"; +const load = async ({ locals }) => { + const list = await locals.pb.collection(COLLECTION).getFullList({ sort: "-created", expand: "Parent" }).catch(() => []); + const itemsForParent = list.map((i) => ({ id: i.id, Item: i.Item, SKU: i.SKU })); + return { itemsForParent }; +}; +export { + load +}; diff --git a/.svelte-kit/adapter-node/entries/pages/_page.svelte.js b/.svelte-kit/adapter-node/entries/pages/_page.svelte.js index 5886ed4b..e3f56846 100644 --- a/.svelte-kit/adapter-node/entries/pages/_page.svelte.js +++ b/.svelte-kit/adapter-node/entries/pages/_page.svelte.js @@ -69,22 +69,37 @@ function Button($$renderer, $$props) { }); } function _page($$renderer) { - $$renderer.push(`

Stackq

Svelte 5 + shadcn-svelte + PocketBase

`); + { + $$renderer.push(""); + $$renderer.push(`

Stackq

Svelte 5 + shadcn-svelte + PocketBase

`); + } + $$renderer.push(``); } export { _page as default diff --git a/.svelte-kit/adapter-node/manifest-full.js b/.svelte-kit/adapter-node/manifest-full.js index 8ef2e0b6..653adbbf 100644 --- a/.svelte-kit/adapter-node/manifest-full.js +++ b/.svelte-kit/adapter-node/manifest-full.js @@ -10,7 +10,7 @@ return { assets: new Set([]), mimeTypes: {}, _: { - client: {start:"_app/immutable/entry/start.lYj2oyFl.js",app:"_app/immutable/entry/app.xKzg9ha8.js",imports:["_app/immutable/entry/start.lYj2oyFl.js","_app/immutable/chunks/BU_acMKx.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.xKzg9ha8.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false}, + client: {start:"_app/immutable/entry/start.BXvCRdku.js",app:"_app/immutable/entry/app.c69iw9ai.js",imports:["_app/immutable/entry/start.BXvCRdku.js","_app/immutable/chunks/BapE3c1q.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/entry/app.c69iw9ai.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/25AjRaeI.js","_app/immutable/chunks/jOLfEXYH.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false}, nodes: [ __memo(() => import('./nodes/0.js')), __memo(() => import('./nodes/1.js')), diff --git a/.svelte-kit/adapter-node/manifest.js b/.svelte-kit/adapter-node/manifest.js index 7f2e2f39..304c6bb8 100644 --- a/.svelte-kit/adapter-node/manifest.js +++ b/.svelte-kit/adapter-node/manifest.js @@ -10,7 +10,7 @@ return { assets: new Set([]), mimeTypes: {}, _: { - client: {start:"_app/immutable/entry/start.lYj2oyFl.js",app:"_app/immutable/entry/app.xKzg9ha8.js",imports:["_app/immutable/entry/start.lYj2oyFl.js","_app/immutable/chunks/BU_acMKx.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.xKzg9ha8.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false}, + client: {start:"_app/immutable/entry/start.BXvCRdku.js",app:"_app/immutable/entry/app.c69iw9ai.js",imports:["_app/immutable/entry/start.BXvCRdku.js","_app/immutable/chunks/BapE3c1q.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/entry/app.c69iw9ai.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/25AjRaeI.js","_app/immutable/chunks/jOLfEXYH.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false}, nodes: [ __memo(() => import('./nodes/0.js')), __memo(() => import('./nodes/1.js')), diff --git a/.svelte-kit/adapter-node/nodes/0.js b/.svelte-kit/adapter-node/nodes/0.js index 5ff5e3d5..598251e5 100644 --- a/.svelte-kit/adapter-node/nodes/0.js +++ b/.svelte-kit/adapter-node/nodes/0.js @@ -5,6 +5,6 @@ let component_cache; export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default; export { universal }; export const universal_id = "src/routes/+layout.ts"; -export const imports = ["_app/immutable/nodes/0.BbNusdVr.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js"]; -export const stylesheets = ["_app/immutable/assets/0.EFPCDS6k.css"]; +export const imports = ["_app/immutable/nodes/0.BXv9ZfXj.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/hqfhVoHF.js","_app/immutable/chunks/Dexp9pM5.js"]; +export const stylesheets = ["_app/immutable/assets/0.DbRKE6YE.css"]; export const fonts = []; diff --git a/.svelte-kit/adapter-node/nodes/1.js b/.svelte-kit/adapter-node/nodes/1.js index e73c7557..129093f0 100644 --- a/.svelte-kit/adapter-node/nodes/1.js +++ b/.svelte-kit/adapter-node/nodes/1.js @@ -3,6 +3,6 @@ export const index = 1; let component_cache; export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default; -export const imports = ["_app/immutable/nodes/1.BSDMq5ii.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/BU_acMKx.js"]; +export const imports = ["_app/immutable/nodes/1.BT8sl3NL.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/hqfhVoHF.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/DZmckTjd.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/BapE3c1q.js"]; export const stylesheets = []; export const fonts = []; diff --git a/.svelte-kit/adapter-node/nodes/2.js b/.svelte-kit/adapter-node/nodes/2.js index a2377315..4519d96b 100644 --- a/.svelte-kit/adapter-node/nodes/2.js +++ b/.svelte-kit/adapter-node/nodes/2.js @@ -1,8 +1,10 @@ - +import * as server from '../entries/pages/_page.server.ts.js'; export const index = 2; let component_cache; export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default; -export const imports = ["_app/immutable/nodes/2.B-LkGsse.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/CINS0kDe.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"]; +export { server }; +export const server_id = "src/routes/+page.server.ts"; +export const imports = ["_app/immutable/nodes/2.OkkHA0lV.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/hqfhVoHF.js","_app/immutable/chunks/DcVg5zjO.js","_app/immutable/chunks/B12dZE2q.js","_app/immutable/chunks/BKSreT2u.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/jOLfEXYH.js"]; export const stylesheets = []; export const fonts = []; diff --git a/.svelte-kit/adapter-node/nodes/4.js b/.svelte-kit/adapter-node/nodes/4.js index c761f9a5..bd15b312 100644 --- a/.svelte-kit/adapter-node/nodes/4.js +++ b/.svelte-kit/adapter-node/nodes/4.js @@ -5,6 +5,6 @@ let component_cache; export const component = async () => component_cache ??= (await import('../entries/pages/items/_page.svelte.js')).default; export { server }; export const server_id = "src/routes/items/+page.server.ts"; -export const imports = ["_app/immutable/nodes/4.CiQuz_-G.js","_app/immutable/chunks/D1I5yNUo.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"]; +export const imports = ["_app/immutable/nodes/4.Bn1qLW0B.js","_app/immutable/chunks/BxPgF2w2.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DcVg5zjO.js","_app/immutable/chunks/25AjRaeI.js","_app/immutable/chunks/BKSreT2u.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/BC20z61P.js","_app/immutable/chunks/jOLfEXYH.js"]; export const stylesheets = []; export const fonts = []; diff --git a/.svelte-kit/adapter-node/nodes/5.js b/.svelte-kit/adapter-node/nodes/5.js index aacb309c..c8b1e86b 100644 --- a/.svelte-kit/adapter-node/nodes/5.js +++ b/.svelte-kit/adapter-node/nodes/5.js @@ -5,6 +5,6 @@ let component_cache; export const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default; export { server }; export const server_id = "src/routes/login/+page.server.ts"; -export const imports = ["_app/immutable/nodes/5.CncCf1V5.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js"]; +export const imports = ["_app/immutable/nodes/5.u4tkKrg-.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DcVg5zjO.js","_app/immutable/chunks/25AjRaeI.js"]; export const stylesheets = []; export const fonts = []; diff --git a/.svelte-kit/ambient.d.ts b/.svelte-kit/ambient.d.ts index 8daf8a86..b6b8a8fa 100644 --- a/.svelte-kit/ambient.d.ts +++ b/.svelte-kit/ambient.d.ts @@ -26,54 +26,56 @@ * ``` */ declare module '$env/static/private' { - export const VSCODE_GIT_IPC_AUTH_TOKEN: string; - export const TERM_PROGRAM: string; + export const _ZO_DOCTOR: string; + export const VSCODE_CRASH_REPORTER_PROCESS_TYPE: string; export const NODE: string; export const TERM: string; export const SHELL: string; - export const HOMEBREW_REPOSITORY: string; + export const VSCODE_PROCESS_TITLE: string; export const TMPDIR: string; - export const TERM_PROGRAM_VERSION: string; - export const ZDOTDIR: string; - export const CURSOR_TRACE_ID: string; + export const HOMEBREW_REPOSITORY: string; export const MallocNanoZone: string; + export const CURSOR_TRACE_ID: string; + export const NO_COLOR: string; export const npm_config_local_prefix: string; export const USER: string; export const COMMAND_MODE: string; export const SSH_AUTH_SOCK: string; - export const VSCODE_PROFILE_INITIALIZED: string; export const __CF_USER_TEXT_ENCODING: string; export const npm_execpath: string; export const PATH: string; export const npm_package_json: string; export const _: string; - export const USER_ZDOTDIR: string; export const __CFBundleIdentifier: string; export const npm_command: string; export const PWD: string; + export const VSCODE_HANDLES_UNCAUGHT_ERRORS: string; export const npm_lifecycle_event: string; + export const VSCODE_ESM_ENTRYPOINT: string; export const npm_package_name: string; + export const CURSOR_AGENT: string; export const LANG: string; - export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string; export const XPC_FLAGS: string; + export const FORCE_COLOR: string; export const npm_package_version: string; export const XPC_SERVICE_NAME: string; - export const VSCODE_INJECTION: string; export const SHLVL: string; export const HOME: string; - export const VSCODE_GIT_ASKPASS_MAIN: string; + export const VSCODE_NLS_CONFIG: string; + export const CI: string; export const HOMEBREW_PREFIX: string; export const LOGNAME: string; export const npm_lifecycle_script: string; - export const VSCODE_GIT_IPC_HANDLE: string; + export const VSCODE_IPC_HOOK: string; + export const VSCODE_CODE_CACHE_PATH: string; export const npm_config_user_agent: string; - export const VSCODE_GIT_ASKPASS_NODE: string; - export const GIT_ASKPASS: string; + export const VSCODE_PID: string; export const INFOPATH: string; export const HOMEBREW_CELLAR: string; export const OSLogRateLimit: string; + export const VSCODE_L10N_BUNDLE_LOCATION: string; + export const VSCODE_CWD: string; export const npm_node_execpath: string; - export const COLORTERM: string; export const NODE_ENV: string; } @@ -104,54 +106,56 @@ declare module '$env/static/public' { */ declare module '$env/dynamic/private' { export const env: { - VSCODE_GIT_IPC_AUTH_TOKEN: string; - TERM_PROGRAM: string; + _ZO_DOCTOR: string; + VSCODE_CRASH_REPORTER_PROCESS_TYPE: string; NODE: string; TERM: string; SHELL: string; - HOMEBREW_REPOSITORY: string; + VSCODE_PROCESS_TITLE: string; TMPDIR: string; - TERM_PROGRAM_VERSION: string; - ZDOTDIR: string; - CURSOR_TRACE_ID: string; + HOMEBREW_REPOSITORY: string; MallocNanoZone: string; + CURSOR_TRACE_ID: string; + NO_COLOR: string; npm_config_local_prefix: string; USER: string; COMMAND_MODE: string; SSH_AUTH_SOCK: string; - VSCODE_PROFILE_INITIALIZED: string; __CF_USER_TEXT_ENCODING: string; npm_execpath: string; PATH: string; npm_package_json: string; _: string; - USER_ZDOTDIR: string; __CFBundleIdentifier: string; npm_command: string; PWD: string; + VSCODE_HANDLES_UNCAUGHT_ERRORS: string; npm_lifecycle_event: string; + VSCODE_ESM_ENTRYPOINT: string; npm_package_name: string; + CURSOR_AGENT: string; LANG: string; - VSCODE_GIT_ASKPASS_EXTRA_ARGS: string; XPC_FLAGS: string; + FORCE_COLOR: string; npm_package_version: string; XPC_SERVICE_NAME: string; - VSCODE_INJECTION: string; SHLVL: string; HOME: string; - VSCODE_GIT_ASKPASS_MAIN: string; + VSCODE_NLS_CONFIG: string; + CI: string; HOMEBREW_PREFIX: string; LOGNAME: string; npm_lifecycle_script: string; - VSCODE_GIT_IPC_HANDLE: string; + VSCODE_IPC_HOOK: string; + VSCODE_CODE_CACHE_PATH: string; npm_config_user_agent: string; - VSCODE_GIT_ASKPASS_NODE: string; - GIT_ASKPASS: string; + VSCODE_PID: string; INFOPATH: string; HOMEBREW_CELLAR: string; OSLogRateLimit: string; + VSCODE_L10N_BUNDLE_LOCATION: string; + VSCODE_CWD: string; npm_node_execpath: string; - COLORTERM: string; NODE_ENV: string; [key: `PUBLIC_${string}`]: undefined; [key: `${string}`]: string | undefined; diff --git a/.svelte-kit/generated/client-optimized/app.js b/.svelte-kit/generated/client-optimized/app.js index 5fcf2745..0beb8d63 100644 --- a/.svelte-kit/generated/client-optimized/app.js +++ b/.svelte-kit/generated/client-optimized/app.js @@ -12,7 +12,7 @@ export const nodes = [ export const server_loads = []; export const dictionary = { - "/": [2], + "/": [~2], "/items": [~4], "/login": [~5], "/logout": [~3] diff --git a/.svelte-kit/generated/client/app.js b/.svelte-kit/generated/client/app.js index 5fcf2745..0beb8d63 100644 --- a/.svelte-kit/generated/client/app.js +++ b/.svelte-kit/generated/client/app.js @@ -12,7 +12,7 @@ export const nodes = [ export const server_loads = []; export const dictionary = { - "/": [2], + "/": [~2], "/items": [~4], "/login": [~5], "/logout": [~3] diff --git a/.svelte-kit/generated/server/internal.js b/.svelte-kit/generated/server/internal.js index c5278d99..4588545e 100644 --- a/.svelte-kit/generated/server/internal.js +++ b/.svelte-kit/generated/server/internal.js @@ -24,7 +24,7 @@ export const options = { app: ({ head, body, assets, nonce, env }) => "\n\n \n \n \n \n " + head + "\n \n \n
" + body + "
\n \n\n", error: ({ status, message }) => "\n\n\t\n\t\t\n\t\t" + message + "\n\n\t\t\n\t\n\t\n\t\t
\n\t\t\t" + status + "\n\t\t\t
\n\t\t\t\t

" + message + "

\n\t\t\t
\n\t\t
\n\t\n\n" }, - version_hash: "ajbkuw" + version_hash: "1cw4viz" }; export async function get_hooks() { diff --git a/.svelte-kit/output/client/.vite/manifest.json b/.svelte-kit/output/client/.vite/manifest.json new file mode 100644 index 00000000..e8ae7183 --- /dev/null +++ b/.svelte-kit/output/client/.vite/manifest.json @@ -0,0 +1,323 @@ +{ + ".svelte-kit/generated/client-optimized/app.js": { + "file": "_app/immutable/entry/app.c69iw9ai.js", + "name": "entry/app", + "src": ".svelte-kit/generated/client-optimized/app.js", + "isEntry": true, + "imports": [ + "_CRDN6Mh7.js", + "_Dexp9pM5.js", + "_DZmckTjd.js", + "_Bzak7iHL.js", + "_25AjRaeI.js", + "_jOLfEXYH.js" + ], + "dynamicImports": [ + ".svelte-kit/generated/client-optimized/nodes/0.js", + ".svelte-kit/generated/client-optimized/nodes/1.js", + ".svelte-kit/generated/client-optimized/nodes/2.js", + "_25AjRaeI.js", + ".svelte-kit/generated/client-optimized/nodes/4.js", + ".svelte-kit/generated/client-optimized/nodes/5.js" + ] + }, + ".svelte-kit/generated/client-optimized/nodes/0.js": { + "file": "_app/immutable/nodes/0.BXv9ZfXj.js", + "name": "nodes/0", + "src": ".svelte-kit/generated/client-optimized/nodes/0.js", + "isEntry": true, + "isDynamicEntry": true, + "imports": [ + "_Bzak7iHL.js", + "_hqfhVoHF.js", + "_Dexp9pM5.js" + ], + "css": [ + "_app/immutable/assets/0.DbRKE6YE.css" + ] + }, + ".svelte-kit/generated/client-optimized/nodes/1.js": { + "file": "_app/immutable/nodes/1.BT8sl3NL.js", + "name": "nodes/1", + "src": ".svelte-kit/generated/client-optimized/nodes/1.js", + "isEntry": true, + "isDynamicEntry": true, + "imports": [ + "_Bzak7iHL.js", + "_hqfhVoHF.js", + "_Dexp9pM5.js", + "_DZmckTjd.js", + "_BapE3c1q.js" + ] + }, + ".svelte-kit/generated/client-optimized/nodes/2.js": { + "file": "_app/immutable/nodes/2.OkkHA0lV.js", + "name": "nodes/2", + "src": ".svelte-kit/generated/client-optimized/nodes/2.js", + "isEntry": true, + "isDynamicEntry": true, + "imports": [ + "_CRDN6Mh7.js", + "_Bzak7iHL.js", + "_hqfhVoHF.js", + "_Dexp9pM5.js", + "_DcVg5zjO.js", + "_B12dZE2q.js" + ], + "dynamicImports": [ + "src/routes/HomeWithDialog.svelte" + ] + }, + ".svelte-kit/generated/client-optimized/nodes/4.js": { + "file": "_app/immutable/nodes/4.Bn1qLW0B.js", + "name": "nodes/4", + "src": ".svelte-kit/generated/client-optimized/nodes/4.js", + "isEntry": true, + "imports": [ + "_BxPgF2w2.js" + ] + }, + ".svelte-kit/generated/client-optimized/nodes/5.js": { + "file": "_app/immutable/nodes/5.u4tkKrg-.js", + "name": "nodes/5", + "src": ".svelte-kit/generated/client-optimized/nodes/5.js", + "isEntry": true, + "isDynamicEntry": true, + "imports": [ + "_CRDN6Mh7.js", + "_Bzak7iHL.js", + "_Dexp9pM5.js", + "_DcVg5zjO.js", + "_25AjRaeI.js" + ], + "dynamicImports": [ + "src/routes/login/LoginForm.svelte" + ] + }, + "_25AjRaeI.js": { + "file": "_app/immutable/chunks/25AjRaeI.js", + "name": "3", + "isDynamicEntry": true, + "imports": [ + "_Dexp9pM5.js", + "_CRDN6Mh7.js" + ] + }, + "_61AlszRR.js": { + "file": "_app/immutable/chunks/61AlszRR.js", + "name": "forms", + "imports": [ + "_Dexp9pM5.js", + "_Bzak7iHL.js", + "_CRDN6Mh7.js", + "_BKSreT2u.js", + "_jOLfEXYH.js", + "_25AjRaeI.js", + "_BapE3c1q.js" + ] + }, + "_B12dZE2q.js": { + "file": "_app/immutable/chunks/B12dZE2q.js", + "name": "button", + "imports": [ + "_Bzak7iHL.js", + "_BKSreT2u.js", + "_Dexp9pM5.js", + "_CRDN6Mh7.js", + "_jOLfEXYH.js" + ] + }, + "_BC20z61P.js": { + "file": "_app/immutable/chunks/BC20z61P.js", + "name": "svelte-element", + "imports": [ + "_Dexp9pM5.js", + "_agKGoZF1.js", + "_CRDN6Mh7.js" + ] + }, + "_BKSreT2u.js": { + "file": "_app/immutable/chunks/BKSreT2u.js", + "name": "index", + "imports": [ + "_Dexp9pM5.js", + "_CRDN6Mh7.js", + "_agKGoZF1.js" + ] + }, + "_BapE3c1q.js": { + "file": "_app/immutable/chunks/BapE3c1q.js", + "name": "entry", + "imports": [ + "_DZmckTjd.js", + "_Dexp9pM5.js" + ] + }, + "_BxPgF2w2.js": { + "file": "_app/immutable/chunks/BxPgF2w2.js", + "name": "4", + "isDynamicEntry": true, + "imports": [ + "_CRDN6Mh7.js", + "_Bzak7iHL.js", + "_Dexp9pM5.js", + "_DcVg5zjO.js", + "_25AjRaeI.js", + "_BKSreT2u.js", + "_BC20z61P.js", + "_jOLfEXYH.js" + ], + "dynamicImports": [ + "src/routes/items/ItemsCrud.svelte" + ] + }, + "_Bzak7iHL.js": { + "file": "_app/immutable/chunks/Bzak7iHL.js", + "name": "disclose-version" + }, + "_CRDN6Mh7.js": { + "file": "_app/immutable/chunks/CRDN6Mh7.js", + "name": "preload-helper", + "imports": [ + "_Dexp9pM5.js" + ] + }, + "_CsnJU1X_.js": { + "file": "_app/immutable/chunks/CsnJU1X_.js", + "name": "card-content", + "imports": [ + "_Bzak7iHL.js", + "_Dexp9pM5.js", + "_BKSreT2u.js", + "_jOLfEXYH.js" + ] + }, + "_DZmckTjd.js": { + "file": "_app/immutable/chunks/DZmckTjd.js", + "name": "index-client", + "imports": [ + "_Dexp9pM5.js", + "_agKGoZF1.js" + ] + }, + "_DcVg5zjO.js": { + "file": "_app/immutable/chunks/DcVg5zjO.js", + "name": "await", + "imports": [ + "_Dexp9pM5.js", + "_CRDN6Mh7.js" + ] + }, + "_Dexp9pM5.js": { + "file": "_app/immutable/chunks/Dexp9pM5.js", + "name": "template" + }, + "_agKGoZF1.js": { + "file": "_app/immutable/chunks/agKGoZF1.js", + "name": "events", + "imports": [ + "_Dexp9pM5.js" + ] + }, + "_hqfhVoHF.js": { + "file": "_app/immutable/chunks/hqfhVoHF.js", + "name": "legacy", + "imports": [ + "_Dexp9pM5.js" + ] + }, + "_iABcLwh6.js": { + "file": "_app/immutable/chunks/iABcLwh6.js", + "name": "ItemForm", + "imports": [ + "_Bzak7iHL.js", + "_Dexp9pM5.js", + "_25AjRaeI.js", + "_jOLfEXYH.js", + "_BKSreT2u.js", + "_61AlszRR.js", + "_CRDN6Mh7.js", + "_DZmckTjd.js", + "_agKGoZF1.js", + "_B12dZE2q.js", + "_BC20z61P.js" + ], + "dynamicImports": [ + "node_modules/barcode-detector-api-polyfill/esm/index.js" + ] + }, + "_jOLfEXYH.js": { + "file": "_app/immutable/chunks/jOLfEXYH.js", + "name": "props", + "imports": [ + "_Dexp9pM5.js" + ] + }, + "node_modules/@sveltejs/kit/src/runtime/client/entry.js": { + "file": "_app/immutable/entry/start.BXvCRdku.js", + "name": "entry/start", + "src": "node_modules/@sveltejs/kit/src/runtime/client/entry.js", + "isEntry": true, + "imports": [ + "_BapE3c1q.js" + ] + }, + "node_modules/barcode-detector-api-polyfill/esm/index.js": { + "file": "_app/immutable/chunks/Bd99md_0.js", + "name": "index", + "src": "node_modules/barcode-detector-api-polyfill/esm/index.js", + "isDynamicEntry": true + }, + "src/routes/HomeWithDialog.svelte": { + "file": "_app/immutable/chunks/DXZbZvqb.js", + "name": "HomeWithDialog", + "src": "src/routes/HomeWithDialog.svelte", + "isDynamicEntry": true, + "imports": [ + "_Bzak7iHL.js", + "_Dexp9pM5.js", + "_25AjRaeI.js", + "_B12dZE2q.js", + "_iABcLwh6.js", + "_BapE3c1q.js" + ] + }, + "src/routes/items/ItemsCrud.svelte": { + "file": "_app/immutable/chunks/DRlIEfz1.js", + "name": "ItemsCrud", + "src": "src/routes/items/ItemsCrud.svelte", + "isDynamicEntry": true, + "imports": [ + "_Bzak7iHL.js", + "_Dexp9pM5.js", + "_DZmckTjd.js", + "_CRDN6Mh7.js", + "_iABcLwh6.js", + "_25AjRaeI.js", + "_BxPgF2w2.js", + "_61AlszRR.js", + "_BKSreT2u.js", + "_jOLfEXYH.js", + "_B12dZE2q.js", + "_CsnJU1X_.js" + ] + }, + "src/routes/login/LoginForm.svelte": { + "file": "_app/immutable/chunks/BDMwQRor.js", + "name": "LoginForm", + "src": "src/routes/login/LoginForm.svelte", + "isDynamicEntry": true, + "imports": [ + "_Bzak7iHL.js", + "_Dexp9pM5.js", + "_DZmckTjd.js", + "_CRDN6Mh7.js", + "_25AjRaeI.js", + "_61AlszRR.js", + "_CsnJU1X_.js", + "_BKSreT2u.js", + "_jOLfEXYH.js", + "_B12dZE2q.js" + ] + } +} \ No newline at end of file diff --git a/.svelte-kit/output/client/_app/immutable/assets/0.DbRKE6YE.css b/.svelte-kit/output/client/_app/immutable/assets/0.DbRKE6YE.css new file mode 100644 index 00000000..b0cec712 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/assets/0.DbRKE6YE.css @@ -0,0 +1 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--tracking-widest:.1em;--radius-xs:.125rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.start-2{inset-inline-start:calc(var(--spacing)*2)}.end-2{inset-inline-end:calc(var(--spacing)*2)}.end-4{inset-inline-end:calc(var(--spacing)*4)}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-14{width:calc(var(--spacing)*14);height:calc(var(--spacing)*14)}.size-20{width:calc(var(--spacing)*20);height:calc(var(--spacing)*20)}.h-\(--bits-select-anchor-height\){height:var(--bits-select-anchor-height)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-24{height:calc(var(--spacing)*24)}.h-px{height:1px}.max-h-\(--bits-dropdown-menu-content-available-height\){max-height:var(--bits-dropdown-menu-content-available-height)}.max-h-\(--bits-select-content-available-height\){max-height:var(--bits-select-content-available-height)}.max-h-\[90vh\]{max-height:90vh}.min-h-screen{min-height:100vh}.w-16{width:calc(var(--spacing)*16)}.w-\[70px\]{width:70px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[200px\]{max-width:200px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-\(--bits-select-anchor-width\){min-width:var(--bits-select-anchor-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[8rem\]{min-width:8rem}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--bits-dropdown-menu-content-transform-origin\){transform-origin:var(--bits-dropdown-menu-content-transform-origin)}.origin-\(--bits-select-content-transform-origin\){transform-origin:var(--bits-select-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-input{border-color:var(--input)}.border-transparent{border-color:#0000}.bg-background,.bg-background\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/95{background-color:color-mix(in oklab,var(--background)95%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.ps-2{padding-inline-start:calc(var(--spacing)*2)}.ps-8{padding-inline-start:calc(var(--spacing)*8)}.pe-2{padding-inline-end:calc(var(--spacing)*2)}.pe-8{padding-inline-end:calc(var(--spacing)*8)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-destructive:focus{color:var(--destructive)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\[highlighted\]\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[inset\]\:ps-8[data-inset]{padding-inline-start:calc(var(--spacing)*8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:min-h-full[data-orientation=vertical]{min-height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:data-highlighted\:text-destructive[data-variant=destructive][data-highlighted]{color:var(--destructive)}@media(min-width:40rem){.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:text-start{text-align:start}}@media(min-width:48rem){.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-destructive\/70:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/70:is(.dark *){background-color:color-mix(in oklab,var(--destructive)70%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media(hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}@media(hover:hover){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media(hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:#fff;--foreground:#09090b;--muted:#f4f4f5;--muted-foreground:#71717a;--popover:#fff;--popover-foreground:#09090b;--card:#fff;--card-foreground:#09090b;--border:#e4e4e7;--input:#e4e4e7;--primary:#18181b;--primary-foreground:#fafafa;--secondary:#f4f4f5;--secondary-foreground:#18181b;--accent:#f4f4f5;--accent-foreground:#18181b;--destructive:#dc2626;--destructive-foreground:#fafafa;--ring:#09090b;--sidebar:#fafafa;--sidebar-foreground:#3f3f46;--sidebar-primary:#18181b;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f4f4f5;--sidebar-accent-foreground:#18181b;--sidebar-border:#e5e7eb;--sidebar-ring:#3b82f6;--radius:.5rem}.dark{--background:#09090b;--foreground:#fafafa;--muted:#27272a;--muted-foreground:#a1a1aa;--popover:#09090b;--popover-foreground:#fafafa;--card:#09090b;--card-foreground:#fafafa;--border:#27272a;--input:#27272a;--primary:#fafafa;--primary-foreground:#18181b;--secondary:#27272a;--secondary-foreground:#fafafa;--accent:#27272a;--accent-foreground:#fafafa;--destructive:#7f1d1d;--destructive-foreground:#fafafa;--ring:#d4d4d8;--sidebar:#18181b;--sidebar-foreground:#f4f4f5;--sidebar-primary:#1d4ed8;--sidebar-primary-foreground:#fff;--sidebar-accent:#27272a;--sidebar-accent-foreground:#f4f4f5;--sidebar-border:#27272a;--sidebar-ring:#3b82f6}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}} diff --git a/.svelte-kit/output/client/_app/immutable/chunks/25AjRaeI.js b/.svelte-kit/output/client/_app/immutable/chunks/25AjRaeI.js new file mode 100644 index 00000000..c9d1d3d9 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/25AjRaeI.js @@ -0,0 +1 @@ +import{i as c,j as s,l,L as i}from"./Dexp9pM5.js";import{B as _}from"./CRDN6Mh7.js";function f(n,o,r){c&&s();var a=new _(n);l(()=>{var e=o()??null;a.ensure(e,e&&(t=>r(t,e)))},i)}const u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{u as _,f as c}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/61AlszRR.js b/.svelte-kit/output/client/_app/immutable/chunks/61AlszRR.js new file mode 100644 index 00000000..63764a2c --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/61AlszRR.js @@ -0,0 +1,5 @@ +var ht=Object.defineProperty;var tt=t=>{throw TypeError(t)};var vt=(t,e,r)=>e in t?ht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var I=(t,e,r)=>vt(t,typeof e!="symbol"?e+"":e,r),et=(t,e,r)=>e.has(t)||tt("Cannot "+r);var w=(t,e,r)=>(et(t,e,"read from private field"),r?r.call(t):e.get(t)),O=(t,e,r)=>e.has(t)?tt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),F=(t,e,r,n)=>(et(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{b6 as yt,a1 as gt,ad as L,ac as Y,ay as Et,be as wt,bf as ut,i as lt,a3 as S,aX as xt,bg as At,g as A,u as M,I as St,ai as _t,F as ft,bh as Tt,A as z,c as P,f as j,a as E,G as K,h as kt,T as It,r as Ot,b as q}from"./Dexp9pM5.js";import"./Bzak7iHL.js";import{i as dt}from"./CRDN6Mh7.js";import{b as H,s as rt,a as C,c as G}from"./BKSreT2u.js";import{p as g,r as J,b as nt,s as Rt}from"./jOLfEXYH.js";import{c as Lt}from"./25AjRaeI.js";import{i as Pt,a as jt,b as Mt,c as Nt}from"./BapE3c1q.js";function Ft(){return Symbol(yt)}function Ne(t,e,r){gt(()=>{var n=L(()=>e(t,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var o=!1,i={};Y(()=>{var a=r();Et(a),o&&wt(i,a)&&(i=a,n.update(a))}),o=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function ot(t,e,r=e){var n=new WeakSet;ut(t,"input",async o=>{var i=o?t.defaultValue:t.value;if(i=W(t)?V(i):i,r(i),S!==null&&n.add(S),await xt(),i!==(i=e())){var a=t.selectionStart,u=t.selectionEnd,d=t.value.length;if(t.value=i??"",u!==null){var p=t.value.length;a===u&&u===d&&p>d?(t.selectionStart=p,t.selectionEnd=p):(t.selectionStart=a,t.selectionEnd=Math.min(u,p))}}}),(lt&&t.defaultValue!==t.value||L(e)==null&&t.value)&&(r(W(t)?V(t.value):t.value),S!==null&&n.add(S)),Y(()=>{var o=e();if(t===document.activeElement){var i=At??S;if(n.has(i))return}W(t)&&o===V(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function W(t){var e=t.type;return e==="number"||e==="range"}function V(t){return t===""?null:+t}function Ht(t,e,r=e){ut(t,"change",()=>{r(t.files)}),lt&&t.files&&r(t.files),Y(()=>{t.files=e()})}function Wt(t){return typeof t=="function"}function Vt(t){return t!==null&&typeof t=="object"}const Bt=["string","number","bigint","boolean"];function U(t){return t==null||Bt.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>U(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const _=Symbol("box"),Z=Symbol("is-writable");function X(t,e){const r=M(t);return e?{[_]:!0,[Z]:!0,get current(){return A(r)},set current(n){e(n)}}:{[_]:!0,get current(){return t()}}}function N(t){return Vt(t)&&_ in t}function pt(t){return N(t)&&Z in t}function Fe(t){return N(t)?t:Wt(t)?X(t):Ct(t)}function He(t){return Object.entries(t).reduce((e,[r,n])=>N(n)?(pt(n)?Object.defineProperty(e,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function We(t){return pt(t)?{[_]:!0,get current(){return t.current}}:t}function Ct(t){let e=St(_t(t));return{[_]:!0,[Z]:!0,get current(){return A(e)},set current(r){ft(e,r,!0)}}}function Gt(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var it=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ut=/\n/g,Xt=/^\s*/,Dt=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Yt=/^:\s*/,zt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Kt=/^[;\s]*/,qt=/^\s+|\s+$/g,Jt=` +`,at="/",st="*",y="",Zt="comment",Qt="declaration";function $t(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function o(c){var s=c.match(Ut);s&&(r+=s.length);var v=c.lastIndexOf(Jt);n=~v?c.length-v:n+c.length}function i(){var c={line:r,column:n};return function(s){return s.position=new a(c),p(),s}}function a(c){this.start=c,this.end={line:r,column:n},this.source=e.source}a.prototype.content=t;function u(c){var s=new Error(e.source+":"+r+":"+n+": "+c);if(s.reason=c,s.filename=e.source,s.line=r,s.column=n,s.source=t,!e.silent)throw s}function d(c){var s=c.exec(t);if(s){var v=s[0];return o(v),t=t.slice(v.length),s}}function p(){d(Xt)}function m(c){var s;for(c=c||[];s=b();)s!==!1&&c.push(s);return c}function b(){var c=i();if(!(at!=t.charAt(0)||st!=t.charAt(1))){for(var s=2;y!=t.charAt(s)&&(st!=t.charAt(s)||at!=t.charAt(s+1));)++s;if(s+=2,y===t.charAt(s-1))return u("End of comment missing");var v=t.slice(2,s-2);return n+=2,o(v),t=t.slice(s),n+=2,c({type:Zt,comment:v})}}function f(){var c=i(),s=d(Dt);if(s){if(b(),!d(Yt))return u("property missing ':'");var v=d(zt),h=c({type:Qt,property:ct(s[0].replace(it,y)),value:v?ct(v[0].replace(it,y)):y});return d(Kt),h}}function l(){var c=[];m(c);for(var s;s=f();)s!==!1&&(c.push(s),m(c));return c}return p(),l()}function ct(t){return t?t.replace(qt,y):y}function te(t,e){let r=null;if(!t||typeof t!="string")return r;const n=$t(t),o=typeof e=="function";return n.forEach(i=>{if(i.type!=="declaration")return;const{property:a,value:u}=i;o?e(a,u,i):u&&(r=r||{},r[a]=u)}),r}const ee=/\d/,re=["-","_","/","."];function ne(t=""){if(!ee.test(t))return t!==t.toLowerCase()}function oe(t){const e=[];let r="",n,o;for(const i of t){const a=re.includes(i);if(a===!0){e.push(r),r="",n=void 0;continue}const u=ne(i);if(o===!1){if(n===!1&&u===!0){e.push(r),r=i,n=u;continue}if(n===!0&&u===!1&&r.length>1){const d=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=d+i,n=u;continue}}r+=i,n=u,o=a}return e.push(r),e}function mt(t){return t?oe(t).map(e=>ae(e)).join(""):""}function ie(t){return se(mt(t||""))}function ae(t){return t?t[0].toUpperCase()+t.slice(1):""}function se(t){return t?t[0].toLowerCase()+t.slice(1):""}function R(t){if(!t)return{};const e={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[mt(n)]=o;return}if(n.startsWith("--")){e[n]=o;return}e[ie(n)]=o}return te(t,r),e}function ce(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function ue(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const le=ue(/[A-Z]/,t=>`-${t.toLowerCase()}`);function fe(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${le(e)}: ${t[e]};`).join(` +`)}function de(t={}){return fe(t).replace(` +`," ")}const pe=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],me=new Set(pe);function be(t){return me.has(t)}function he(...t){const e={...t[0]};for(let r=1;rN(t)?(t.current=r,L(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t.current=null,e==null||e(null))}):(t(r),L(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t(null),e==null||e(null))})}}function Ve(t){return t?"true":"false"}function Be(t){return t?"":void 0}function Ce(t){return t?"open":"closed"}var x,T;class ye{constructor(e){O(this,x);O(this,T);I(this,"attrs");F(this,x,e.getVariant?e.getVariant():null),F(this,T,w(this,x)?`data-${w(this,x)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(r=>[r,this.getAttr(r)]))}getAttr(e,r){return r?`data-${r}-${e}`:`${w(this,T)}${e}`}selector(e,r){return`[${this.getAttr(e,r)}]`}}x=new WeakMap,T=new WeakMap;function ge(t){const e=new ye(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}function Ee(t,e){return`bits-${t}`}const we=ge({component:"label",parts:["root"]});var k;const Q=class Q{constructor(e){I(this,"opts");I(this,"attachment");O(this,k,M(()=>({id:this.opts.id.current,[we.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=ve(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new Q(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return A(w(this,k))}set props(e){ft(w(this,k),e)}};k=new WeakMap;let D=Q;var xe=q("");function Ae(t,e){const r=Tt();z(e,!0);let n=g(e,"id",19,()=>Ee(r)),o=g(e,"ref",15,null),i=J(e,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const a=D.create({id:X(()=>n()),ref:X(()=>o(),f=>o(f))}),u=M(()=>he(i,a.props,{for:e.for}));var d=P(),p=j(d);{var m=f=>{var l=P(),c=j(l);rt(c,()=>e.child,()=>({props:A(u)})),E(f,l)},b=f=>{var l=xe();C(l,()=>({...A(u),for:e.for}));var c=kt(l);rt(c,()=>e.children??It),Ot(l),E(f,l)};dt(p,f=>{e.child?f(m):f(b,!1)})}E(t,d),K()}var Se=q(""),_e=q("");function Ge(t,e){z(e,!0);let r=g(e,"ref",15,null),n=g(e,"value",15),o=g(e,"files",15),i=g(e,"data-slot",3,"input"),a=J(e,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var u=P(),d=j(u);{var p=b=>{var f=Se();C(f,l=>({"data-slot":i(),class:l,type:"file",...a}),[()=>G("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e.class)],void 0,void 0,void 0,!0),nt(f,l=>r(l),()=>r()),Ht(f,o),ot(f,n),E(b,f)},m=b=>{var f=_e();C(f,l=>({"data-slot":i(),class:l,type:e.type,...a}),[()=>G("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e.class)],void 0,void 0,void 0,!0),nt(f,l=>r(l),()=>r()),ot(f,n),E(b,f)};dt(d,b=>{e.type==="file"?b(p):b(m,!1)})}E(t,u),K()}function Ue(t,e){z(e,!0);let r=g(e,"ref",15,null),n=J(e,["$$slots","$$events","$$legacy","ref","class"]);var o=P(),i=j(o);{let a=M(()=>G("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e.class));Lt(i,()=>Ae,(u,d)=>{d(u,Rt({"data-slot":"label",get class(){return A(a)}},()=>n,{get ref(){return r()},set ref(p){r(p)}}))})}E(t,o),K()}function Te(t){const e=JSON.parse(t);return e.data&&(e.data=Mt(e.data,Nt.decoders)),e}function B(t){return HTMLElement.prototype.cloneNode.call(t)}function Xe(t,e=()=>{}){const r=async({action:o,result:i,reset:a=!0,invalidateAll:u=!0})=>{i.type==="success"&&(a&&HTMLFormElement.prototype.reset.call(t),u&&await Pt()),(location.origin+location.pathname===o.origin+o.pathname||i.type==="redirect"||i.type==="error")&&await jt(i)};async function n(o){var c,s,v;if(((c=o.submitter)!=null&&c.hasAttribute("formmethod")?o.submitter.formMethod:B(t).method)!=="post")return;o.preventDefault();const a=new URL((s=o.submitter)!=null&&s.hasAttribute("formaction")?o.submitter.formAction:B(t).action),u=(v=o.submitter)!=null&&v.hasAttribute("formenctype")?o.submitter.formEnctype:B(t).enctype,d=new FormData(t,o.submitter),p=new AbortController;let m=!1;const f=await e({action:a,cancel:()=>m=!0,controller:p,formData:d,formElement:t,submitter:o.submitter})??r;if(m)return;let l;try{const h=new Headers({accept:"application/json","x-sveltekit-action":"true"});u!=="multipart/form-data"&&h.set("Content-Type",/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(u)?u:"application/x-www-form-urlencoded");const bt=u==="multipart/form-data"?d:new URLSearchParams(d),$=await fetch(a,{method:"POST",headers:h,cache:"no-store",body:bt,signal:p.signal});l=Te(await $.text()),l.type==="error"&&(l.status=$.status)}catch(h){if((h==null?void 0:h.name)==="AbortError")return;l={type:"error",error:h}}await f({action:a,formData:d,formElement:t,update:h=>r({action:a,result:l,reset:h==null?void 0:h.reset,invalidateAll:h==null?void 0:h.invalidateAll}),result:l})}return HTMLFormElement.prototype.addEventListener.call(t,"submit",n),{destroy(){HTMLFormElement.prototype.removeEventListener.call(t,"submit",n)}}}export{_ as B,Ge as I,Ue as L,Ne as a,Fe as b,ve as c,R as d,Xe as e,de as f,X as g,Ee as h,Z as i,He as j,N as k,pt as l,he as m,Vt as n,Ce as o,Be as p,ge as q,ce as r,Ct as s,We as t,Ve as u,Gt as v}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/B12dZE2q.js b/.svelte-kit/output/client/_app/immutable/chunks/B12dZE2q.js new file mode 100644 index 00000000..688818a6 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/B12dZE2q.js @@ -0,0 +1 @@ +import"./Bzak7iHL.js";import{t as j,a as b,s as f,c as g}from"./BKSreT2u.js";import{A,c as G,f as P,a as d,G as T,h,r as m,b as k,T as x}from"./Dexp9pM5.js";import{i as q}from"./CRDN6Mh7.js";import{p as r,b as p,r as C}from"./jOLfEXYH.js";const y=j({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var D=k(""),E=k("");function L(_,e){A(e,!0);let o=r(e,"variant",3,"default"),l=r(e,"size",3,"default"),s=r(e,"ref",15,null),c=r(e,"href",3,void 0),z=r(e,"type",3,"button"),v=C(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=G(),w=P(u);{var B=i=>{var a=D();b(a,t=>({"data-slot":"button",class:t,href:e.disabled?void 0:c(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...v}),[()=>g(y({variant:o(),size:l()}),e.class)]);var n=h(a);f(n,()=>e.children??x),m(a),p(a,t=>s(t),()=>s()),d(i,a)},V=i=>{var a=E();b(a,t=>({"data-slot":"button",class:t,type:z(),disabled:e.disabled,...v}),[()=>g(y({variant:o(),size:l()}),e.class)]);var n=h(a);f(n,()=>e.children??x),m(a),p(a,t=>s(t),()=>s()),d(i,a)};q(w,i=>{c()?i(B):i(V,!1)})}d(_,u),T()}export{L as B}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/BC20z61P.js b/.svelte-kit/output/client/_app/immutable/chunks/BC20z61P.js new file mode 100644 index 00000000..1f70ad13 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/BC20z61P.js @@ -0,0 +1 @@ +import{i as a,j as d,J as s,K as E,l as v,L as y,M as h,N,O as x,P as T,Q as w,o as _,s as r,R as A,S as C}from"./Dexp9pM5.js";import{i as M}from"./agKGoZF1.js";import{B as S}from"./CRDN6Mh7.js";function L(m,u,c,i,b,P){let p=a;a&&d();var e=null;a&&s.nodeType===E&&(e=s,d());var l=a?s:m,f=new S(l,!1);v(()=>{const t=u()||null;var g=c||t==="svg"?N:void 0;if(t===null){f.ensure(null,null);return}return f.ensure(t,o=>{if(t){if(e=a?e:h(t,g),x(e,e),i){a&&M(t)&&e.append(document.createComment(""));var n=a?T(e):e.appendChild(w());a&&(n===null?_(!1):r(n)),i(e,n)}A.nodes.end=e,o.before(e)}a&&r(o)}),()=>{}},y),C(()=>{}),p&&(_(!0),r(l))}export{L as e}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/BDMwQRor.js b/.svelte-kit/output/client/_app/immutable/chunks/BDMwQRor.js new file mode 100644 index 00000000..91954962 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/BDMwQRor.js @@ -0,0 +1 @@ +import"./Bzak7iHL.js";import{A as C,h as i,T,r as n,a as o,G as L,b as h,c as U,f as I,D as $,E as y,C as p,g as V,u as W,az as X}from"./Dexp9pM5.js";import{s as Y}from"./DZmckTjd.js";import{i as Z}from"./CRDN6Mh7.js";import{c as b}from"./25AjRaeI.js";import{L as J,I as K,a as ee,e as re}from"./61AlszRR.js";import{C as ae,a as te}from"./CsnJU1X_.js";import{a as j,c as k,s as z}from"./BKSreT2u.js";import{p as A,b as D,r as G}from"./jOLfEXYH.js";import{B as se}from"./B12dZE2q.js";var oe=h("

");function de(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=oe();j(r,s=>({"data-slot":"card-description",class:s,...u}),[()=>k("text-muted-foreground text-sm",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var le=h("
");function ie(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=le();j(r,s=>({"data-slot":"card-header",class:s,...u}),[()=>k("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var ne=h("
");function ce(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ne();j(r,s=>({"data-slot":"card-title",class:s,...u}),[()=>k("leading-none font-semibold",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var ue=h(" ",1),ve=h('

'),fe=h('
'),me=h(" ",1);function Le(c,e){C(e,!0);var d=U(),u=I(d);b(u,()=>te,(r,v)=>{v(r,{class:"w-full max-w-sm",children:(s,_e)=>{var O=me(),S=I(O);b(S,()=>ie,(E,q)=>{q(E,{children:(B,N)=>{var f=ue(),g=I(f);b(g,()=>ce,(x,m)=>{m(x,{children:(_,F)=>{$();var w=y("Login");o(_,w)},$$slots:{default:!0}})});var P=p(g,2);b(P,()=>de,(x,m)=>{m(x,{children:(_,F)=>{$();var w=y("Enter your email and password to sign in.");o(_,w)},$$slots:{default:!0}})}),o(B,f)},$$slots:{default:!0}})});var M=p(S,2);b(M,()=>ae,(E,q)=>{q(E,{children:(B,N)=>{var f=fe(),g=i(f),P=i(g);J(P,{for:"email",children:(a,t)=>{$();var l=y("Email");o(a,l)},$$slots:{default:!0}});var x=p(P,2);{let a=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});K(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(a)},required:!0})}n(g);var m=p(g,2),_=i(m),F=i(_);J(F,{for:"password",children:(a,t)=>{$();var l=y("Password");o(a,l)},$$slots:{default:!0}}),$(2),n(_);var w=p(_,2);K(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),n(m);var H=p(m,2);{var Q=a=>{var t=ve(),l=i(t,!0);n(t),X(()=>Y(l,e.data.error)),o(a,t)};Z(H,a=>{var t;(t=e.data)!=null&&t.error&&a(Q)})}var R=p(H,2);se(R,{type:"submit",class:"w-full",children:(a,t)=>{$();var l=y("Login");o(a,l)},$$slots:{default:!0}}),n(f),ee(f,(a,t)=>{var l;return(l=re)==null?void 0:l(a,t)},()=>()=>async({update:a})=>{await a()}),o(B,f)},$$slots:{default:!0}})}),o(s,O)},$$slots:{default:!0}})}),o(c,d),L()}export{Le as default}; diff --git a/build/client/_app/immutable/chunks/De4R2cbq.js b/.svelte-kit/output/client/_app/immutable/chunks/BKSreT2u.js similarity index 86% rename from build/client/_app/immutable/chunks/De4R2cbq.js rename to .svelte-kit/output/client/_app/immutable/chunks/BKSreT2u.js index 4535f769..8367ed13 100644 --- a/build/client/_app/immutable/chunks/De4R2cbq.js +++ b/.svelte-kit/output/client/_app/immutable/chunks/BKSreT2u.js @@ -1,2 +1,2 @@ -import{k as br,Q as hr,b1 as $e,J as Ae,M as De,_ as Ke,h as H,b2 as vr,b3 as yr,b4 as wr,au as kr,b5 as xr,g as Ar,b6 as Cr,b7 as ae,p as _e,b8 as Sr,U as Mr,q as Tr,b9 as zr,ba as Nr,bb as Gr,bc as Vr,bd as _r}from"./MIlO0V30.js";import{B as Ir}from"./D6Mj8HfB.js";import{c as Rr,d as Er,e as Or,f as Pr,n as Lr,g as jr}from"./Dt2zEVER.js";function to(e,o,...t){var r=new Ir(e);br(()=>{const n=o()??null;r.ensure(n,n&&(s=>n(s,...t)))},hr)}function Fr(e,o){var t=void 0,r;$e(()=>{t!==(t=o())&&(r&&(Ae(r),r=null),t&&(r=De(()=>{Ke(()=>t(e))})))})}function Ye(e){var o,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(o=0;o=0;){var u=a+s;(a===0||Ie.includes(r[a-1]))&&(u===r.length||Ie.includes(r[u]))?r=(a===0?"":r.substring(0,a))+r.substring(u+1):a=u}}return r===""?null:r}function Re(e,o=!1){var t=o?" !important;":";",r="";for(var n in e){var s=e[n];s!=null&&s!==""&&(r+=" "+n+": "+s+t)}return r}function we(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ur(e,o){if(o){var t="",r,n;if(Array.isArray(o)?(r=o[0],n=o[1]):r=o,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,u=!1,l=[];r&&l.push(...Object.keys(r).map(we)),n&&l.push(...Object.keys(n).map(we));var m=0,w=-1;const N=e.length;for(var h=0;h{Ce(e,e.__value)});o.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),kr(()=>{o.disconnect()})}function Ee(e){return"__value"in e?e.__value:e.value}const te=Symbol("class"),oe=Symbol("style"),He=Symbol("is custom element"),Xe=Symbol("is html"),Yr=ae?"link":"LINK",qr=ae?"input":"INPUT",Hr=ae?"option":"OPTION",Xr=ae?"select":"SELECT",Jr=ae?"progress":"PROGRESS";function Qr(e){if(H){var o=!1,t=()=>{if(!o){if(o=!0,e.hasAttribute("value")){var r=e.value;pe(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var n=e.checked;pe(e,"checked",null),e.checked=n}}};e.__on_r=t,Tr(t),zr()}}function oo(e,o){var t=ve(e);t.value===(t.value=o??void 0)||e.value===o&&(o!==0||e.nodeName!==Jr)||(e.value=o??"")}function so(e,o){var t=ve(e);t.checked!==(t.checked=o??void 0)&&(e.checked=o)}function Zr(e,o){o?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function pe(e,o,t,r){var n=ve(e);H&&(n[o]=e.getAttribute(o),o==="src"||o==="srcset"||o==="href"&&e.nodeName===Yr)||n[o]!==(n[o]=t)&&(o==="loading"&&(e[Vr]=t),t==null?e.removeAttribute(o):typeof t!="string"&&Je(e).includes(o)?e[o]=t:e.setAttribute(o,t))}function et(e,o,t,r,n=!1,s=!1){if(H&&n&&e.nodeName===qr){var a=e,u=a.type==="checkbox"?"defaultChecked":"defaultValue";u in t||Qr(a)}var l=ve(e),m=l[He],w=!l[Xe];let h=H&&m;h&&_e(!1);var g=o||{},S=e.nodeName===Hr;for(var T in o)T in t||(t[T]=null);t.class?t.class=Br(t.class):t[te]&&(t.class=null),t[oe]&&(t.style??(t.style=null));var N=Je(e);for(const y in t){let C=t[y];if(S&&y==="value"&&C==null){e.value=e.__value="",g[y]=C;continue}if(y==="class"){var G=e.namespaceURI==="http://www.w3.org/1999/xhtml";$r(e,G,C,r,o==null?void 0:o[te],t[te]),g[y]=C,g[te]=t[te];continue}if(y==="style"){Dr(e,C,o==null?void 0:o[oe],t[oe]),g[y]=C,g[oe]=t[oe];continue}var M=g[y];if(!(C===M&&!(C===void 0&&e.hasAttribute(y)))){g[y]=C;var B=y[0]+y[1];if(B!=="$$")if(B==="on"){const f={},E="$$"+y;let I=y.slice(2);var P=jr(I);if(Rr(I)&&(I=I.slice(0,-7),f.capture=!0),!P&&M){if(C!=null)continue;e.removeEventListener(I,g[E],f),g[E]=null}if(P)Er(I,e,C),Or([I]);else if(C!=null){let J=function(Y){g[y].call(this,Y)};g[E]=Pr(I,e,J,f)}}else if(y==="style")pe(e,y,C);else if(y==="autofocus")Sr(e,!!C);else if(!m&&(y==="__value"||y==="value"&&C!=null))e.value=e.__value=C;else if(y==="selected"&&S)Zr(e,C);else{var V=y;w||(V=Lr(V));var A=V==="defaultValue"||V==="defaultChecked";if(C==null&&!m&&!A)if(l[y]=null,V==="value"||V==="checked"){let f=e;const E=o===void 0;if(V==="value"){let I=f.defaultValue;f.removeAttribute(V),f.defaultValue=I,f.value=f.__value=E?I:null}else{let I=f.defaultChecked;f.removeAttribute(V),f.defaultChecked=I,f.checked=E?I:!1}}else e.removeAttribute(y);else A||N.includes(V)&&(m||typeof C!="string")?(e[V]=C,V in l&&(l[V]=Mr)):typeof C!="function"&&pe(e,V,C)}}}return h&&_e(!0),g}function no(e,o,t=[],r=[],n=[],s,a=!1,u=!1){xr(n,t,r,l=>{var m=void 0,w={},h=e.nodeName===Xr,g=!1;if($e(()=>{var T=o(...l.map(Ar)),N=et(e,m,T,s,a,u);g&&h&&"value"in T&&Ce(e,T.value);for(let M of Object.getOwnPropertySymbols(w))T[M]||Ae(w[M]);for(let M of Object.getOwnPropertySymbols(T)){var G=T[M];M.description===Cr&&(!m||G!==m[M])&&(w[M]&&Ae(w[M]),w[M]=De(()=>Fr(e,()=>G))),N[M]=G}m=N}),h){var S=e;Ke(()=>{Ce(S,m.value,!0),Kr(S)})}g=!0})}function ve(e){return e.__attributes??(e.__attributes={[He]:e.nodeName.includes("-"),[Xe]:e.namespaceURI===Nr})}var Oe=new Map;function Je(e){var o=e.getAttribute("is")||e.nodeName,t=Oe.get(o);if(t)return t;Oe.set(o,t=[]);for(var r,n=e,s=Element.prototype;s!==n;){r=_r(n);for(var a in r)r[a].set&&t.push(a);n=Gr(n)}return t}const rt=(e,o)=>{const t=new Array(e.length+o.length);for(let r=0;r({classGroupId:e,validator:o}),Qe=(e=new Map,o=null,t)=>({nextPart:e,validators:o,classGroupId:t}),be="-",Pe=[],ot="arbitrary..",st=e=>{const o=at(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return nt(a);const u=a.split(be),l=u[0]===""&&u.length>1?1:0;return Ze(u,l,o)},getConflictingClassGroupIds:(a,u)=>{if(u){const l=r[a],m=t[a];return l?m?rt(m,l):l:m||Pe}return t[a]||Pe}}},Ze=(e,o,t)=>{if(e.length-o===0)return t.classGroupId;const n=e[o],s=t.nextPart.get(n);if(s){const m=Ze(e,o+1,s);if(m)return m}const a=t.validators;if(a===null)return;const u=o===0?e.join(be):e.slice(o).join(be),l=a.length;for(let m=0;me.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=e.slice(1,-1),t=o.indexOf(":"),r=o.slice(0,t);return r?ot+r:void 0})(),at=e=>{const{theme:o,classGroups:t}=e;return it(t,o)},it=(e,o)=>{const t=Qe();for(const r in e){const n=e[r];Ne(n,t,r,o)}return t},Ne=(e,o,t,r)=>{const n=e.length;for(let s=0;s{if(typeof e=="string"){ct(e,o,t);return}if(typeof e=="function"){dt(e,o,t,r);return}ft(e,o,t,r)},ct=(e,o,t)=>{const r=e===""?o:er(o,e);r.classGroupId=t},dt=(e,o,t,r)=>{if(ut(e)){Ne(e(r),o,t,r);return}o.validators===null&&(o.validators=[]),o.validators.push(tt(t,e))},ft=(e,o,t,r)=>{const n=Object.entries(e),s=n.length;for(let a=0;a{let t=e;const r=o.split(be),n=r.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,mt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,t=Object.create(null),r=Object.create(null);const n=(s,a)=>{t[s]=a,o++,o>e&&(o=0,r=t,t=Object.create(null))};return{get(s){let a=t[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return n(s,a),a},set(s,a){s in t?t[s]=a:n(s,a)}}},Se="!",Le=":",gt=[],je=(e,o,t,r,n)=>({modifiers:e,hasImportantModifier:o,baseClassName:t,maybePostfixModifierPosition:r,isExternal:n}),pt=e=>{const{prefix:o,experimentalParseClassName:t}=e;let r=n=>{const s=[];let a=0,u=0,l=0,m;const w=n.length;for(let N=0;Nl?m-l:void 0;return je(s,S,g,T)};if(o){const n=o+Le,s=r;r=a=>a.startsWith(n)?s(a.slice(n.length)):je(gt,!1,a,void 0,!0)}if(t){const n=r;r=s=>t({className:s,parseClassName:n})}return r},bt=e=>{const o=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{o.set(t,1e6+r)}),t=>{const r=[];let n=[];for(let s=0;s0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},ht=e=>({cache:mt(e.cacheSize),parseClassName:pt(e),sortModifiers:bt(e),...st(e)}),vt=/\s+/,yt=(e,o)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=o,a=[],u=e.trim().split(vt);let l="";for(let m=u.length-1;m>=0;m-=1){const w=u[m],{isExternal:h,modifiers:g,hasImportantModifier:S,baseClassName:T,maybePostfixModifierPosition:N}=t(w);if(h){l=w+(l.length>0?" "+l:l);continue}let G=!!N,M=r(G?T.substring(0,N):T);if(!M){if(!G){l=w+(l.length>0?" "+l:l);continue}if(M=r(T),!M){l=w+(l.length>0?" "+l:l);continue}G=!1}const B=g.length===0?"":g.length===1?g[0]:s(g).join(":"),P=S?B+Se:B,V=P+M;if(a.indexOf(V)>-1)continue;a.push(V);const A=n(M,G);for(let y=0;y0?" "+l:l)}return l},wt=(...e)=>{let o=0,t,r,n="";for(;o{if(typeof e=="string")return e;let o,t="";for(let r=0;r{let t,r,n,s;const a=l=>{const m=o.reduce((w,h)=>h(w),e());return t=ht(m),r=t.cache.get,n=t.cache.set,s=u,u(l)},u=l=>{const m=r(l);if(m)return m;const w=yt(l,t);return n(l,w),w};return s=a,(...l)=>s(wt(...l))},kt=[],O=e=>{const o=t=>t[e]||kt;return o.isThemeGetter=!0,o},tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+\/\d+$/,At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,St=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>xt.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&p(e.slice(0,-1)),D=e=>At.test(e),sr=()=>!0,zt=e=>Ct.test(e)&&!St.test(e),Ge=()=>!1,Nt=e=>Mt.test(e),Gt=e=>Tt.test(e),Vt=e=>!c(e)&&!d(e),_t=e=>X(e,ir,Ge),c=e=>tr.test(e),Z=e=>X(e,lr,zt),Fe=e=>X(e,Ft,p),It=e=>X(e,dr,sr),Rt=e=>X(e,cr,Ge),Be=e=>X(e,nr,Ge),Et=e=>X(e,ar,Gt),fe=e=>X(e,fr,Nt),d=e=>or.test(e),se=e=>ee(e,lr),Ot=e=>ee(e,cr),We=e=>ee(e,nr),Pt=e=>ee(e,ir),Lt=e=>ee(e,ar),ue=e=>ee(e,fr,!0),jt=e=>ee(e,dr,!0),X=(e,o,t)=>{const r=tr.exec(e);return r?r[1]?o(r[1]):t(r[2]):!1},ee=(e,o,t=!1)=>{const r=or.exec(e);return r?r[1]?o(r[1]):t:!1},nr=e=>e==="position"||e==="percentage",ar=e=>e==="image"||e==="url",ir=e=>e==="length"||e==="size"||e==="bg-size",lr=e=>e==="length",Ft=e=>e==="number",cr=e=>e==="family-name",dr=e=>e==="number"||e==="weight",fr=e=>e==="shadow",Te=()=>{const e=O("color"),o=O("font"),t=O("text"),r=O("font-weight"),n=O("tracking"),s=O("leading"),a=O("breakpoint"),u=O("container"),l=O("spacing"),m=O("radius"),w=O("shadow"),h=O("inset-shadow"),g=O("text-shadow"),S=O("drop-shadow"),T=O("blur"),N=O("perspective"),G=O("aspect"),M=O("ease"),B=O("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...V(),d,c],y=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],f=()=>[d,c,l],E=()=>[re,"full","auto",...f()],I=()=>[q,"none","subgrid",d,c],J=()=>["auto",{span:["full",q,d,c]},q,d,c],Y=()=>[q,"auto",d,c],ie=()=>["auto","min","max","fr",d,c],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],x=()=>["start","end","center","stretch","center-safe","end-safe"],v=()=>["auto",...f()],b=()=>[re,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],i=()=>[e,d,c],_=()=>[...V(),We,Be,{position:[d,c]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Pt,_t,{size:[d,c]}],j=()=>[xe,se,Z],z=()=>["","none","full",m,d,c],R=()=>["",p,se,Z],W=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[p,xe,We,Be],Ve=()=>["","none",T,d,c],le=()=>["none",p,d,c],ce=()=>["none",p,d,c],ye=()=>[p,d,c],de=()=>[re,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[sr],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[Vt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",p],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",re,c,d,G]}],container:["container"],columns:[{columns:[p,c,d,u]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",d,c]}],basis:[{basis:[re,"full","auto",u,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,re,"auto","initial","none",c]}],grow:[{grow:["",p,d,c]}],shrink:[{shrink:["",p,d,c]}],order:[{order:[q,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...x(),"normal"]}],"justify-self":[{"justify-self":["auto",...x()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...x(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...x(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...x(),"baseline"]}],"place-self":[{"place-self":["auto",...x()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:v()}],mx:[{mx:v()}],my:[{my:v()}],ms:[{ms:v()}],me:[{me:v()}],mt:[{mt:v()}],mr:[{mr:v()}],mb:[{mb:v()}],ml:[{ml:v()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:b()}],w:[{w:[u,"screen",...b()]}],"min-w":[{"min-w":[u,"screen","none",...b()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[a]},...b()]}],h:[{h:["screen","lh",...b()]}],"min-h":[{"min-h":["screen","lh","none",...b()]}],"max-h":[{"max-h":["screen","lh",...b()]}],"font-size":[{text:["base",t,se,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,jt,It]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,c]}],"font-family":[{font:[Ot,Rt,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,d,c]}],"line-clamp":[{"line-clamp":[p,"none",d,Fe]}],leading:[{leading:[s,...f()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:i()}],"text-color":[{text:i()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",d,Z]}],"text-decoration-color":[{decoration:i()}],"underline-offset":[{"underline-offset":[p,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,d,c],radial:["",d,c],conic:[q,d,c]},Lt,Et]}],"bg-color":[{bg:i()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:i()}],"gradient-via":[{via:i()}],"gradient-to":[{to:i()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:i()}],"border-color-x":[{"border-x":i()}],"border-color-y":[{"border-y":i()}],"border-color-s":[{"border-s":i()}],"border-color-e":[{"border-e":i()}],"border-color-t":[{"border-t":i()}],"border-color-r":[{"border-r":i()}],"border-color-b":[{"border-b":i()}],"border-color-l":[{"border-l":i()}],"divide-color":[{divide:i()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,d,c]}],"outline-w":[{outline:["",p,se,Z]}],"outline-color":[{outline:i()}],shadow:[{shadow:["","none",w,ue,fe]}],"shadow-color":[{shadow:i()}],"inset-shadow":[{"inset-shadow":["none",h,ue,fe]}],"inset-shadow-color":[{"inset-shadow":i()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:i()}],"ring-offset-w":[{"ring-offset":[p,Z]}],"ring-offset-color":[{"ring-offset":i()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":i()}],"text-shadow":[{"text-shadow":["none",g,ue,fe]}],"text-shadow-color":[{"text-shadow":i()}],opacity:[{opacity:[p,d,c]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":i()}],"mask-image-linear-to-color":[{"mask-linear-to":i()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":i()}],"mask-image-t-to-color":[{"mask-t-to":i()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":i()}],"mask-image-r-to-color":[{"mask-r-to":i()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":i()}],"mask-image-b-to-color":[{"mask-b-to":i()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":i()}],"mask-image-l-to-color":[{"mask-l-to":i()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":i()}],"mask-image-x-to-color":[{"mask-x-to":i()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":i()}],"mask-image-y-to-color":[{"mask-y-to":i()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":i()}],"mask-image-radial-to-color":[{"mask-radial-to":i()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":i()}],"mask-image-conic-to-color":[{"mask-conic-to":i()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:Ve()}],brightness:[{brightness:[p,d,c]}],contrast:[{contrast:[p,d,c]}],"drop-shadow":[{"drop-shadow":["","none",S,ue,fe]}],"drop-shadow-color":[{"drop-shadow":i()}],grayscale:[{grayscale:["",p,d,c]}],"hue-rotate":[{"hue-rotate":[p,d,c]}],invert:[{invert:["",p,d,c]}],saturate:[{saturate:[p,d,c]}],sepia:[{sepia:["",p,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[p,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[p,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,d,c]}],"backdrop-invert":[{"backdrop-invert":["",p,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[p,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[p,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",p,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",d,c]}],ease:[{ease:["linear","initial",M,d,c]}],delay:[{delay:[p,d,c]}],animate:[{animate:["none",B,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,d,c]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:i()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:i()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,c]}],fill:[{fill:["none",...i()]}],"stroke-w":[{stroke:[p,se,Z,Fe]}],stroke:[{stroke:["none",...i()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Bt=(e,{cacheSize:o,prefix:t,experimentalParseClassName:r,extend:n={},override:s={}})=>(ne(e,"cacheSize",o),ne(e,"prefix",t),ne(e,"experimentalParseClassName",r),me(e.theme,s.theme),me(e.classGroups,s.classGroups),me(e.conflictingClassGroups,s.conflictingClassGroups),me(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ne(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),ge(e.theme,n.theme),ge(e.classGroups,n.classGroups),ge(e.conflictingClassGroups,n.conflictingClassGroups),ge(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),ur(e,n,"orderSensitiveModifiers"),e),ne=(e,o,t)=>{t!==void 0&&(e[o]=t)},me=(e,o)=>{if(o)for(const t in o)ne(e,t,o[t])},ge=(e,o)=>{if(o)for(const t in o)ur(e,o,t)},ur=(e,o,t)=>{const r=o[t];r!==void 0&&(e[t]=e[t]?e[t].concat(r):r)},Wt=(e,...o)=>typeof e=="function"?Me(Te,e,...o):Me(()=>Bt(Te(),e),...o),mr=Me(Te);function ao(...e){return mr(qe(e))}var Ut=/\s+/g,$t=e=>typeof e!="string"||!e?e:e.replace(Ut," ").trim(),he=(...e)=>{const o=[],t=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let s=0,a=r.length;s0?$t(o.join(" ")):void 0},Ue=e=>e===!1?"false":e===!0?"true":e===0?"0":e,U=e=>{if(!e||typeof e!="object")return!0;for(const o in e)return!1;return!0},Dt=(e,o)=>{if(e===o)return!0;if(!e||!o)return!1;const t=Object.keys(e),r=Object.keys(o);if(t.length!==r.length)return!1;for(let n=0;n{for(const t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const r=o[t];t in e?e[t]=he(e[t],r):e[t]=r}return e},gr=(e,o)=>{for(let t=0;t{const o=[];gr(e,o);const t=[];for(let r=0;r{const t={};for(const r in e){const n=e[r];if(r in o){const s=o[r];Array.isArray(n)||Array.isArray(s)?t[r]=pr(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?t[r]=ze(n,s):t[r]=s+" "+n}else t[r]=n}for(const r in o)r in e||(t[r]=o[r]);return t},Yt={twMerge:!0,twMergeConfig:{}};function qt(){let e=null,o={},t=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return o},set cachedTwMergeConfig(r){o=r},get didTwMergeConfigChange(){return t},set didTwMergeConfigChange(r){t=r},reset(){e=null,o={},t=!1}}}var K=qt(),Ht=e=>{const o=(r,n)=>{const{extend:s=null,slots:a={},variants:u={},compoundVariants:l=[],compoundSlots:m=[],defaultVariants:w={}}=r,h={...Yt,...n},g=s!=null&&s.base?he(s.base,r==null?void 0:r.base):r==null?void 0:r.base,S=s!=null&&s.variants&&!U(s.variants)?ze(u,s.variants):u,T=s!=null&&s.defaultVariants&&!U(s.defaultVariants)?{...s.defaultVariants,...w}:w;!U(h.twMergeConfig)&&!Dt(h.twMergeConfig,K.cachedTwMergeConfig)&&(K.didTwMergeConfigChange=!0,K.cachedTwMergeConfig=h.twMergeConfig);const N=U(s==null?void 0:s.slots),G=U(a)?{}:{base:he(r==null?void 0:r.base,N&&(s==null?void 0:s.base)),...a},M=N?G:Kt({...s==null?void 0:s.slots},U(G)?{base:r==null?void 0:r.base}:G),B=U(s==null?void 0:s.compoundVariants)?l:pr(s==null?void 0:s.compoundVariants,l),P=A=>{if(U(S)&&U(a)&&N)return e(g,A==null?void 0:A.class,A==null?void 0:A.className)(h);if(B&&!Array.isArray(B))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof B}`);if(m&&!Array.isArray(m))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof m}`);const y=(k,x=S,v=null,b=null)=>{const i=x[k];if(!i||U(i))return null;const _=(b==null?void 0:b[k])??(A==null?void 0:A[k]);if(_===null)return null;const F=Ue(_);if(typeof F=="object")return null;const $=T==null?void 0:T[k],j=F??Ue($);return i[j||"false"]},C=()=>{if(!S)return null;const k=Object.keys(S),x=[];for(let v=0;v{if(!S||typeof S!="object")return null;const v=[];for(const b in S){const i=y(b,S,k,x),_=k==="base"&&typeof i=="string"?i:i&&i[k];_&&v.push(_)}return v},E={};for(const k in A){const x=A[k];x!==void 0&&(E[k]=x)}const I=(k,x)=>{var b;const v=typeof(A==null?void 0:A[k])=="object"?{[k]:(b=A[k])==null?void 0:b.initial}:{};return{...T,...E,...v,...x}},J=(k=[],x)=>{const v=[],b=k.length;for(let i=0;i{const x=J(B,k);if(!Array.isArray(x))return x;const v={},b=e;for(let i=0;i{if(m.length<1)return null;const x={},v=I(null,k);for(let b=0;b{const i=Y(b),_=ie(b);return x(M[v],f(v,b),i?i[v]:void 0,_?_[v]:void 0,b==null?void 0:b.class,b==null?void 0:b.className)(h)}}return k}return e(g,C(),J(B),A==null?void 0:A.class,A==null?void 0:A.className)(h)},V=()=>{if(!(!S||typeof S!="object"))return Object.keys(S)};return P.variantKeys=V(),P.extend=s,P.base=g,P.slots=M,P.variants=S,P.defaultVariants=T,P.compoundSlots=m,P.compoundVariants=B,P};return{tv:o,createTV:r=>(n,s)=>o(n,s?ze(r,s):r)}},Xt=e=>U(e)?mr:Wt({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Jt=(e,o)=>{const t=he(e);return!t||!((o==null?void 0:o.twMerge)??!0)?t:((!K.cachedTwMerge||K.didTwMergeConfigChange)&&(K.didTwMergeConfigChange=!1,K.cachedTwMerge=Xt(K.cachedTwMergeConfig)),K.cachedTwMerge(t)||void 0)},Qt=(...e)=>o=>Jt(e,o),{tv:io}=Ht(Qt);export{no as a,qe as b,ao as c,pe as d,so as e,oo as f,Zr as g,Qr as r,to as s,io as t}; +import{l as br,L as hr,b1 as $e,a5 as Ae,a7 as De,a1 as Ke,i as H,b2 as vr,b3 as yr,b4 as wr,S as kr,b5 as xr,g as Ar,b6 as Cr,q as Sr,b7 as Mr,b8 as Tr,b9 as ae,o as Ie,ba as zr,U as Nr,bb as Gr,bc as Vr,bd as Ir}from"./Dexp9pM5.js";import{B as _r}from"./CRDN6Mh7.js";import{c as Rr,d as Er,e as Or,f as Pr,n as Lr,g as jr}from"./agKGoZF1.js";function to(e,o,...t){var r=new _r(e);br(()=>{const n=o()??null;r.ensure(n,n&&(s=>n(s,...t)))},hr)}function Fr(e,o){var t=void 0,r;$e(()=>{t!==(t=o())&&(r&&(Ae(r),r=null),t&&(r=De(()=>{Ke(()=>t(e))})))})}function Ye(e){var o,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(o=0;o=0;){var u=a+s;(a===0||_e.includes(r[a-1]))&&(u===r.length||_e.includes(r[u]))?r=(a===0?"":r.substring(0,a))+r.substring(u+1):a=u}}return r===""?null:r}function Re(e,o=!1){var t=o?" !important;":";",r="";for(var n in e){var s=e[n];s!=null&&s!==""&&(r+=" "+n+": "+s+t)}return r}function we(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ur(e,o){if(o){var t="",r,n;if(Array.isArray(o)?(r=o[0],n=o[1]):r=o,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,a=0,u=!1,l=[];r&&l.push(...Object.keys(r).map(we)),n&&l.push(...Object.keys(n).map(we));var m=0,w=-1;const N=e.length;for(var h=0;h{Ce(e,e.__value)});o.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),kr(()=>{o.disconnect()})}function Ee(e){return"__value"in e?e.__value:e.value}const te=Symbol("class"),oe=Symbol("style"),He=Symbol("is custom element"),Xe=Symbol("is html"),Yr=ae?"link":"LINK",qr=ae?"input":"INPUT",Hr=ae?"option":"OPTION",Xr=ae?"select":"SELECT",Jr=ae?"progress":"PROGRESS";function Zr(e){if(H){var o=!1,t=()=>{if(!o){if(o=!0,e.hasAttribute("value")){var r=e.value;pe(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var n=e.checked;pe(e,"checked",null),e.checked=n}}};e.__on_r=t,Sr(t),Mr()}}function oo(e,o){var t=ve(e);t.value===(t.value=o??void 0)||e.value===o&&(o!==0||e.nodeName!==Jr)||(e.value=o??"")}function so(e,o){var t=ve(e);t.checked!==(t.checked=o??void 0)&&(e.checked=o)}function Qr(e,o){o?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function pe(e,o,t,r){var n=ve(e);H&&(n[o]=e.getAttribute(o),o==="src"||o==="srcset"||o==="href"&&e.nodeName===Yr)||n[o]!==(n[o]=t)&&(o==="loading"&&(e[Tr]=t),t==null?e.removeAttribute(o):typeof t!="string"&&Je(e).includes(o)?e[o]=t:e.setAttribute(o,t))}function et(e,o,t,r,n=!1,s=!1){if(H&&n&&e.nodeName===qr){var a=e,u=a.type==="checkbox"?"defaultChecked":"defaultValue";u in t||Zr(a)}var l=ve(e),m=l[He],w=!l[Xe];let h=H&&m;h&&Ie(!1);var g=o||{},S=e.nodeName===Hr;for(var T in o)T in t||(t[T]=null);t.class?t.class=Br(t.class):t[te]&&(t.class=null),t[oe]&&(t.style??(t.style=null));var N=Je(e);for(const y in t){let C=t[y];if(S&&y==="value"&&C==null){e.value=e.__value="",g[y]=C;continue}if(y==="class"){var G=e.namespaceURI==="http://www.w3.org/1999/xhtml";$r(e,G,C,r,o==null?void 0:o[te],t[te]),g[y]=C,g[te]=t[te];continue}if(y==="style"){Dr(e,C,o==null?void 0:o[oe],t[oe]),g[y]=C,g[oe]=t[oe];continue}var M=g[y];if(!(C===M&&!(C===void 0&&e.hasAttribute(y)))){g[y]=C;var B=y[0]+y[1];if(B!=="$$")if(B==="on"){const f={},E="$$"+y;let _=y.slice(2);var P=jr(_);if(Rr(_)&&(_=_.slice(0,-7),f.capture=!0),!P&&M){if(C!=null)continue;e.removeEventListener(_,g[E],f),g[E]=null}if(P)Er(_,e,C),Or([_]);else if(C!=null){let J=function(Y){g[y].call(this,Y)};g[E]=Pr(_,e,J,f)}}else if(y==="style")pe(e,y,C);else if(y==="autofocus")zr(e,!!C);else if(!m&&(y==="__value"||y==="value"&&C!=null))e.value=e.__value=C;else if(y==="selected"&&S)Qr(e,C);else{var V=y;w||(V=Lr(V));var A=V==="defaultValue"||V==="defaultChecked";if(C==null&&!m&&!A)if(l[y]=null,V==="value"||V==="checked"){let f=e;const E=o===void 0;if(V==="value"){let _=f.defaultValue;f.removeAttribute(V),f.defaultValue=_,f.value=f.__value=E?_:null}else{let _=f.defaultChecked;f.removeAttribute(V),f.defaultChecked=_,f.checked=E?_:!1}}else e.removeAttribute(y);else A||N.includes(V)&&(m||typeof C!="string")?(e[V]=C,V in l&&(l[V]=Nr)):typeof C!="function"&&pe(e,V,C)}}}return h&&Ie(!0),g}function no(e,o,t=[],r=[],n=[],s,a=!1,u=!1){xr(n,t,r,l=>{var m=void 0,w={},h=e.nodeName===Xr,g=!1;if($e(()=>{var T=o(...l.map(Ar)),N=et(e,m,T,s,a,u);g&&h&&"value"in T&&Ce(e,T.value);for(let M of Object.getOwnPropertySymbols(w))T[M]||Ae(w[M]);for(let M of Object.getOwnPropertySymbols(T)){var G=T[M];M.description===Cr&&(!m||G!==m[M])&&(w[M]&&Ae(w[M]),w[M]=De(()=>Fr(e,()=>G))),N[M]=G}m=N}),h){var S=e;Ke(()=>{Ce(S,m.value,!0),Kr(S)})}g=!0})}function ve(e){return e.__attributes??(e.__attributes={[He]:e.nodeName.includes("-"),[Xe]:e.namespaceURI===Gr})}var Oe=new Map;function Je(e){var o=e.getAttribute("is")||e.nodeName,t=Oe.get(o);if(t)return t;Oe.set(o,t=[]);for(var r,n=e,s=Element.prototype;s!==n;){r=Ir(n);for(var a in r)r[a].set&&t.push(a);n=Vr(n)}return t}const rt=(e,o)=>{const t=new Array(e.length+o.length);for(let r=0;r({classGroupId:e,validator:o}),Ze=(e=new Map,o=null,t)=>({nextPart:e,validators:o,classGroupId:t}),be="-",Pe=[],ot="arbitrary..",st=e=>{const o=at(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return nt(a);const u=a.split(be),l=u[0]===""&&u.length>1?1:0;return Qe(u,l,o)},getConflictingClassGroupIds:(a,u)=>{if(u){const l=r[a],m=t[a];return l?m?rt(m,l):l:m||Pe}return t[a]||Pe}}},Qe=(e,o,t)=>{if(e.length-o===0)return t.classGroupId;const n=e[o],s=t.nextPart.get(n);if(s){const m=Qe(e,o+1,s);if(m)return m}const a=t.validators;if(a===null)return;const u=o===0?e.join(be):e.slice(o).join(be),l=a.length;for(let m=0;me.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=e.slice(1,-1),t=o.indexOf(":"),r=o.slice(0,t);return r?ot+r:void 0})(),at=e=>{const{theme:o,classGroups:t}=e;return it(t,o)},it=(e,o)=>{const t=Ze();for(const r in e){const n=e[r];Ne(n,t,r,o)}return t},Ne=(e,o,t,r)=>{const n=e.length;for(let s=0;s{if(typeof e=="string"){ct(e,o,t);return}if(typeof e=="function"){dt(e,o,t,r);return}ft(e,o,t,r)},ct=(e,o,t)=>{const r=e===""?o:er(o,e);r.classGroupId=t},dt=(e,o,t,r)=>{if(ut(e)){Ne(e(r),o,t,r);return}o.validators===null&&(o.validators=[]),o.validators.push(tt(t,e))},ft=(e,o,t,r)=>{const n=Object.entries(e),s=n.length;for(let a=0;a{let t=e;const r=o.split(be),n=r.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,mt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,t=Object.create(null),r=Object.create(null);const n=(s,a)=>{t[s]=a,o++,o>e&&(o=0,r=t,t=Object.create(null))};return{get(s){let a=t[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return n(s,a),a},set(s,a){s in t?t[s]=a:n(s,a)}}},Se="!",Le=":",gt=[],je=(e,o,t,r,n)=>({modifiers:e,hasImportantModifier:o,baseClassName:t,maybePostfixModifierPosition:r,isExternal:n}),pt=e=>{const{prefix:o,experimentalParseClassName:t}=e;let r=n=>{const s=[];let a=0,u=0,l=0,m;const w=n.length;for(let N=0;Nl?m-l:void 0;return je(s,S,g,T)};if(o){const n=o+Le,s=r;r=a=>a.startsWith(n)?s(a.slice(n.length)):je(gt,!1,a,void 0,!0)}if(t){const n=r;r=s=>t({className:s,parseClassName:n})}return r},bt=e=>{const o=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{o.set(t,1e6+r)}),t=>{const r=[];let n=[];for(let s=0;s0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},ht=e=>({cache:mt(e.cacheSize),parseClassName:pt(e),sortModifiers:bt(e),...st(e)}),vt=/\s+/,yt=(e,o)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=o,a=[],u=e.trim().split(vt);let l="";for(let m=u.length-1;m>=0;m-=1){const w=u[m],{isExternal:h,modifiers:g,hasImportantModifier:S,baseClassName:T,maybePostfixModifierPosition:N}=t(w);if(h){l=w+(l.length>0?" "+l:l);continue}let G=!!N,M=r(G?T.substring(0,N):T);if(!M){if(!G){l=w+(l.length>0?" "+l:l);continue}if(M=r(T),!M){l=w+(l.length>0?" "+l:l);continue}G=!1}const B=g.length===0?"":g.length===1?g[0]:s(g).join(":"),P=S?B+Se:B,V=P+M;if(a.indexOf(V)>-1)continue;a.push(V);const A=n(M,G);for(let y=0;y0?" "+l:l)}return l},wt=(...e)=>{let o=0,t,r,n="";for(;o{if(typeof e=="string")return e;let o,t="";for(let r=0;r{let t,r,n,s;const a=l=>{const m=o.reduce((w,h)=>h(w),e());return t=ht(m),r=t.cache.get,n=t.cache.set,s=u,u(l)},u=l=>{const m=r(l);if(m)return m;const w=yt(l,t);return n(l,w),w};return s=a,(...l)=>s(wt(...l))},kt=[],O=e=>{const o=t=>t[e]||kt;return o.isThemeGetter=!0,o},tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+\/\d+$/,At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,St=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>xt.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&p(e.slice(0,-1)),D=e=>At.test(e),sr=()=>!0,zt=e=>Ct.test(e)&&!St.test(e),Ge=()=>!1,Nt=e=>Mt.test(e),Gt=e=>Tt.test(e),Vt=e=>!c(e)&&!d(e),It=e=>X(e,ir,Ge),c=e=>tr.test(e),Q=e=>X(e,lr,zt),Fe=e=>X(e,Ft,p),_t=e=>X(e,dr,sr),Rt=e=>X(e,cr,Ge),Be=e=>X(e,nr,Ge),Et=e=>X(e,ar,Gt),fe=e=>X(e,fr,Nt),d=e=>or.test(e),se=e=>ee(e,lr),Ot=e=>ee(e,cr),We=e=>ee(e,nr),Pt=e=>ee(e,ir),Lt=e=>ee(e,ar),ue=e=>ee(e,fr,!0),jt=e=>ee(e,dr,!0),X=(e,o,t)=>{const r=tr.exec(e);return r?r[1]?o(r[1]):t(r[2]):!1},ee=(e,o,t=!1)=>{const r=or.exec(e);return r?r[1]?o(r[1]):t:!1},nr=e=>e==="position"||e==="percentage",ar=e=>e==="image"||e==="url",ir=e=>e==="length"||e==="size"||e==="bg-size",lr=e=>e==="length",Ft=e=>e==="number",cr=e=>e==="family-name",dr=e=>e==="number"||e==="weight",fr=e=>e==="shadow",Te=()=>{const e=O("color"),o=O("font"),t=O("text"),r=O("font-weight"),n=O("tracking"),s=O("leading"),a=O("breakpoint"),u=O("container"),l=O("spacing"),m=O("radius"),w=O("shadow"),h=O("inset-shadow"),g=O("text-shadow"),S=O("drop-shadow"),T=O("blur"),N=O("perspective"),G=O("aspect"),M=O("ease"),B=O("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...V(),d,c],y=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],f=()=>[d,c,l],E=()=>[re,"full","auto",...f()],_=()=>[q,"none","subgrid",d,c],J=()=>["auto",{span:["full",q,d,c]},q,d,c],Y=()=>[q,"auto",d,c],ie=()=>["auto","min","max","fr",d,c],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],x=()=>["start","end","center","stretch","center-safe","end-safe"],v=()=>["auto",...f()],b=()=>[re,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],i=()=>[e,d,c],I=()=>[...V(),We,Be,{position:[d,c]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Pt,It,{size:[d,c]}],j=()=>[xe,se,Q],z=()=>["","none","full",m,d,c],R=()=>["",p,se,Q],W=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[p,xe,We,Be],Ve=()=>["","none",T,d,c],le=()=>["none",p,d,c],ce=()=>["none",p,d,c],ye=()=>[p,d,c],de=()=>[re,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[sr],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[Vt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",p],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",re,c,d,G]}],container:["container"],columns:[{columns:[p,c,d,u]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",d,c]}],basis:[{basis:[re,"full","auto",u,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,re,"auto","initial","none",c]}],grow:[{grow:["",p,d,c]}],shrink:[{shrink:["",p,d,c]}],order:[{order:[q,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":_()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":_()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...x(),"normal"]}],"justify-self":[{"justify-self":["auto",...x()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...x(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...x(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...x(),"baseline"]}],"place-self":[{"place-self":["auto",...x()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:v()}],mx:[{mx:v()}],my:[{my:v()}],ms:[{ms:v()}],me:[{me:v()}],mt:[{mt:v()}],mr:[{mr:v()}],mb:[{mb:v()}],ml:[{ml:v()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:b()}],w:[{w:[u,"screen",...b()]}],"min-w":[{"min-w":[u,"screen","none",...b()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[a]},...b()]}],h:[{h:["screen","lh",...b()]}],"min-h":[{"min-h":["screen","lh","none",...b()]}],"max-h":[{"max-h":["screen","lh",...b()]}],"font-size":[{text:["base",t,se,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,jt,_t]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,c]}],"font-family":[{font:[Ot,Rt,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,d,c]}],"line-clamp":[{"line-clamp":[p,"none",d,Fe]}],leading:[{leading:[s,...f()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:i()}],"text-color":[{text:i()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",d,Q]}],"text-decoration-color":[{decoration:i()}],"underline-offset":[{"underline-offset":[p,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,d,c],radial:["",d,c],conic:[q,d,c]},Lt,Et]}],"bg-color":[{bg:i()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:i()}],"gradient-via":[{via:i()}],"gradient-to":[{to:i()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:i()}],"border-color-x":[{"border-x":i()}],"border-color-y":[{"border-y":i()}],"border-color-s":[{"border-s":i()}],"border-color-e":[{"border-e":i()}],"border-color-t":[{"border-t":i()}],"border-color-r":[{"border-r":i()}],"border-color-b":[{"border-b":i()}],"border-color-l":[{"border-l":i()}],"divide-color":[{divide:i()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,d,c]}],"outline-w":[{outline:["",p,se,Q]}],"outline-color":[{outline:i()}],shadow:[{shadow:["","none",w,ue,fe]}],"shadow-color":[{shadow:i()}],"inset-shadow":[{"inset-shadow":["none",h,ue,fe]}],"inset-shadow-color":[{"inset-shadow":i()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:i()}],"ring-offset-w":[{"ring-offset":[p,Q]}],"ring-offset-color":[{"ring-offset":i()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":i()}],"text-shadow":[{"text-shadow":["none",g,ue,fe]}],"text-shadow-color":[{"text-shadow":i()}],opacity:[{opacity:[p,d,c]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":i()}],"mask-image-linear-to-color":[{"mask-linear-to":i()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":i()}],"mask-image-t-to-color":[{"mask-t-to":i()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":i()}],"mask-image-r-to-color":[{"mask-r-to":i()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":i()}],"mask-image-b-to-color":[{"mask-b-to":i()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":i()}],"mask-image-l-to-color":[{"mask-l-to":i()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":i()}],"mask-image-x-to-color":[{"mask-x-to":i()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":i()}],"mask-image-y-to-color":[{"mask-y-to":i()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":i()}],"mask-image-radial-to-color":[{"mask-radial-to":i()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":i()}],"mask-image-conic-to-color":[{"mask-conic-to":i()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:Ve()}],brightness:[{brightness:[p,d,c]}],contrast:[{contrast:[p,d,c]}],"drop-shadow":[{"drop-shadow":["","none",S,ue,fe]}],"drop-shadow-color":[{"drop-shadow":i()}],grayscale:[{grayscale:["",p,d,c]}],"hue-rotate":[{"hue-rotate":[p,d,c]}],invert:[{invert:["",p,d,c]}],saturate:[{saturate:[p,d,c]}],sepia:[{sepia:["",p,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[p,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[p,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,d,c]}],"backdrop-invert":[{"backdrop-invert":["",p,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[p,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[p,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",p,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",d,c]}],ease:[{ease:["linear","initial",M,d,c]}],delay:[{delay:[p,d,c]}],animate:[{animate:["none",B,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,d,c]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:i()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:i()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,c]}],fill:[{fill:["none",...i()]}],"stroke-w":[{stroke:[p,se,Q,Fe]}],stroke:[{stroke:["none",...i()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Bt=(e,{cacheSize:o,prefix:t,experimentalParseClassName:r,extend:n={},override:s={}})=>(ne(e,"cacheSize",o),ne(e,"prefix",t),ne(e,"experimentalParseClassName",r),me(e.theme,s.theme),me(e.classGroups,s.classGroups),me(e.conflictingClassGroups,s.conflictingClassGroups),me(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ne(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),ge(e.theme,n.theme),ge(e.classGroups,n.classGroups),ge(e.conflictingClassGroups,n.conflictingClassGroups),ge(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),ur(e,n,"orderSensitiveModifiers"),e),ne=(e,o,t)=>{t!==void 0&&(e[o]=t)},me=(e,o)=>{if(o)for(const t in o)ne(e,t,o[t])},ge=(e,o)=>{if(o)for(const t in o)ur(e,o,t)},ur=(e,o,t)=>{const r=o[t];r!==void 0&&(e[t]=e[t]?e[t].concat(r):r)},Wt=(e,...o)=>typeof e=="function"?Me(Te,e,...o):Me(()=>Bt(Te(),e),...o),mr=Me(Te);function ao(...e){return mr(qe(e))}var Ut=/\s+/g,$t=e=>typeof e!="string"||!e?e:e.replace(Ut," ").trim(),he=(...e)=>{const o=[],t=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let s=0,a=r.length;s0?$t(o.join(" ")):void 0},Ue=e=>e===!1?"false":e===!0?"true":e===0?"0":e,U=e=>{if(!e||typeof e!="object")return!0;for(const o in e)return!1;return!0},Dt=(e,o)=>{if(e===o)return!0;if(!e||!o)return!1;const t=Object.keys(e),r=Object.keys(o);if(t.length!==r.length)return!1;for(let n=0;n{for(const t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const r=o[t];t in e?e[t]=he(e[t],r):e[t]=r}return e},gr=(e,o)=>{for(let t=0;t{const o=[];gr(e,o);const t=[];for(let r=0;r{const t={};for(const r in e){const n=e[r];if(r in o){const s=o[r];Array.isArray(n)||Array.isArray(s)?t[r]=pr(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?t[r]=ze(n,s):t[r]=s+" "+n}else t[r]=n}for(const r in o)r in e||(t[r]=o[r]);return t},Yt={twMerge:!0,twMergeConfig:{}};function qt(){let e=null,o={},t=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return o},set cachedTwMergeConfig(r){o=r},get didTwMergeConfigChange(){return t},set didTwMergeConfigChange(r){t=r},reset(){e=null,o={},t=!1}}}var K=qt(),Ht=e=>{const o=(r,n)=>{const{extend:s=null,slots:a={},variants:u={},compoundVariants:l=[],compoundSlots:m=[],defaultVariants:w={}}=r,h={...Yt,...n},g=s!=null&&s.base?he(s.base,r==null?void 0:r.base):r==null?void 0:r.base,S=s!=null&&s.variants&&!U(s.variants)?ze(u,s.variants):u,T=s!=null&&s.defaultVariants&&!U(s.defaultVariants)?{...s.defaultVariants,...w}:w;!U(h.twMergeConfig)&&!Dt(h.twMergeConfig,K.cachedTwMergeConfig)&&(K.didTwMergeConfigChange=!0,K.cachedTwMergeConfig=h.twMergeConfig);const N=U(s==null?void 0:s.slots),G=U(a)?{}:{base:he(r==null?void 0:r.base,N&&(s==null?void 0:s.base)),...a},M=N?G:Kt({...s==null?void 0:s.slots},U(G)?{base:r==null?void 0:r.base}:G),B=U(s==null?void 0:s.compoundVariants)?l:pr(s==null?void 0:s.compoundVariants,l),P=A=>{if(U(S)&&U(a)&&N)return e(g,A==null?void 0:A.class,A==null?void 0:A.className)(h);if(B&&!Array.isArray(B))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof B}`);if(m&&!Array.isArray(m))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof m}`);const y=(k,x=S,v=null,b=null)=>{const i=x[k];if(!i||U(i))return null;const I=(b==null?void 0:b[k])??(A==null?void 0:A[k]);if(I===null)return null;const F=Ue(I);if(typeof F=="object")return null;const $=T==null?void 0:T[k],j=F??Ue($);return i[j||"false"]},C=()=>{if(!S)return null;const k=Object.keys(S),x=[];for(let v=0;v{if(!S||typeof S!="object")return null;const v=[];for(const b in S){const i=y(b,S,k,x),I=k==="base"&&typeof i=="string"?i:i&&i[k];I&&v.push(I)}return v},E={};for(const k in A){const x=A[k];x!==void 0&&(E[k]=x)}const _=(k,x)=>{var b;const v=typeof(A==null?void 0:A[k])=="object"?{[k]:(b=A[k])==null?void 0:b.initial}:{};return{...T,...E,...v,...x}},J=(k=[],x)=>{const v=[],b=k.length;for(let i=0;i{const x=J(B,k);if(!Array.isArray(x))return x;const v={},b=e;for(let i=0;i{if(m.length<1)return null;const x={},v=_(null,k);for(let b=0;b{const i=Y(b),I=ie(b);return x(M[v],f(v,b),i?i[v]:void 0,I?I[v]:void 0,b==null?void 0:b.class,b==null?void 0:b.className)(h)}}return k}return e(g,C(),J(B),A==null?void 0:A.class,A==null?void 0:A.className)(h)},V=()=>{if(!(!S||typeof S!="object"))return Object.keys(S)};return P.variantKeys=V(),P.extend=s,P.base=g,P.slots=M,P.variants=S,P.defaultVariants=T,P.compoundSlots=m,P.compoundVariants=B,P};return{tv:o,createTV:r=>(n,s)=>o(n,s?ze(r,s):r)}},Xt=e=>U(e)?mr:Wt({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Jt=(e,o)=>{const t=he(e);return!t||!((o==null?void 0:o.twMerge)??!0)?t:((!K.cachedTwMerge||K.didTwMergeConfigChange)&&(K.didTwMergeConfigChange=!1,K.cachedTwMerge=Xt(K.cachedTwMergeConfig)),K.cachedTwMerge(t)||void 0)},Zt=(...e)=>o=>Jt(e,o),{tv:io}=Ht(Zt);export{no as a,qe as b,ao as c,pe as d,oo as e,so as f,Qr as g,Zr as r,to as s,io as t}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/BapE3c1q.js b/.svelte-kit/output/client/_app/immutable/chunks/BapE3c1q.js new file mode 100644 index 00000000..239b0e7d --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/BapE3c1q.js @@ -0,0 +1,3 @@ +var le=t=>{throw TypeError(t)};var Ge=(t,e,n)=>e.has(t)||le("Cannot "+n);var A=(t,e,n)=>(Ge(t,e,"read from private field"),n?n.call(t):e.get(t)),C=(t,e,n)=>e.has(t)?le("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{o as fe,a as Ke}from"./DZmckTjd.js";import{T as $t,be as Ye,I as N,g as O,F as j,aX as kt,b0 as We}from"./Dexp9pM5.js";const K=[];function Ht(t,e=$t){let n=null;const a=new Set;function r(c){if(Ye(t,c)&&(t=c,n)){const i=!K.length;for(const l of a)l[1](),K.push(l,t);if(i){for(let l=0;l{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:o}}class Ct{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class Jt{constructor(e,n){this.status=e,this.location=n}}class Xt extends Error{constructor(e,n,a){super(a),this.status=e,this.text=n}}new URL("sveltekit-internal://");function He(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Je(t){return t.split("%25").map(decodeURI).join("%25")}function Xe(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Dt({href:t}){return t.split("#")[0]}function Ze(...t){let e=5381;for(const n of t)if(typeof n=="string"){let a=n.length;for(;a;)e=e*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)e=e*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;const Qe=new TextDecoder;function tn(t){const e=atob(t),n=new Uint8Array(e.length);for(let a=0;a((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&tt.delete(Zt(t)),en(t,e));const tt=new Map;function nn(t,e){const n=Zt(t,e),a=document.querySelector(n);if(a!=null&&a.textContent){a.remove();let{body:r,...s}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&tt.set(n,{body:r,init:s,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=tn(r)),Promise.resolve(new Response(r,s))}return window.fetch(t,e)}function rn(t,e,n){if(tt.size>0){const a=Zt(t,n),r=tt.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return e.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,l)=>{if(l%2){if(i.startsWith("x+"))return Bt(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return Bt(String.fromCharCode(...i.slice(2).split("-").map(p=>parseInt(p,16))));const u=an.exec(i),[,h,y,d,f]=u;return e.push({name:d,matcher:f,optional:!!h,rest:!!y,chained:y?l===1&&o[0]==="":!1}),y?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Bt(i)}).join("")}).join("")}/?$`),params:e}}function sn(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function cn(t){return t.slice(1).split("/").filter(sn)}function ln(t,e,n){const a={},r=t.slice(1),s=r.filter(c=>c!==void 0);let o=0;for(let c=0;cu).join("/"),o=0),l===void 0)if(i.rest)l="";else continue;if(!i.matcher||n[i.matcher](l)){a[i.name]=l;const u=e[c+1],h=r[c+1];u&&!u.rest&&u.optional&&h&&i.chained&&(o=0),!u&&!h&&Object.keys(a).length===s.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return a}function Bt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function fn({nodes:t,server_loads:e,dictionary:n,matchers:a}){const r=new Set(e);return Object.entries(n).map(([c,[i,l,u]])=>{const{pattern:h,params:y}=on(c),d={id:c,exec:f=>{const p=h.exec(f);if(p)return ln(p,y,a)},errors:[1,...u||[]].map(f=>t[f]),layouts:[0,...l||[]].map(o),leaf:s(i)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function s(c){const i=c<0;return i&&(c=~c),[i,t[c]]}function o(c){return c===void 0?c:[r.has(c),t[c]]}}function Ee(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ue(t,e,n=JSON.stringify){const a=n(e);try{sessionStorage[t]=a}catch{}}var _e;const P=((_e=globalThis.__sveltekit_1cw4viz)==null?void 0:_e.base)??"";var ye;const un=((ye=globalThis.__sveltekit_1cw4viz)==null?void 0:ye.assets)??P??"",hn="1771363037851",Ae="sveltekit:snapshot",Se="sveltekit:scroll",Re="sveltekit:states",dn="sveltekit:pageurl",W="sveltekit:history",rt="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},_t=location.origin;function Qt(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function G(){return{x:pageXOffset,y:pageYOffset}}function Y(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const he={...z,"":z.hover};function Te(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function Ie(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=Te(t)}}function qt(t,e,n){let a;try{if(a=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const c=location.hash.split("#")[1]||"/";a.hash=`#${c}${a.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,s=!a||!!r||xt(a,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(a==null?void 0:a.origin)===_t&&t.hasAttribute("download");return{url:a,external:s,target:r,download:o}}function Et(t){let e=null,n=null,a=null,r=null,s=null,o=null,c=t;for(;c&&c!==document.documentElement;)a===null&&(a=Y(c,"preload-code")),r===null&&(r=Y(c,"preload-data")),e===null&&(e=Y(c,"keepfocus")),n===null&&(n=Y(c,"noscroll")),s===null&&(s=Y(c,"reload")),o===null&&(o=Y(c,"replacestate")),c=Te(c);function i(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:he[a??"off"],preload_data:he[r??"off"],keepfocus:i(e),noscroll:i(n),reload:i(s),replace_state:i(o)}}function de(t){const e=Ht(t);let n=!0;function a(){n=!0,e.update(o=>o)}function r(o){n=!1,e.set(o)}function s(o){let c;return e.subscribe(i=>{(c===void 0||n&&i!==c)&&o(c=i)})}return{notify:a,set:r,subscribe:s}}const Ue={v:()=>{}};function pn(){const{set:t,subscribe:e}=Ht(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${un}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==hn;return o&&(t(!0),Ue.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:e,check:a}}function xt(t,e,n){return t.origin!==_t||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function Xn(t){}function gn(t){const e=wn(t),n=new ArrayBuffer(e.length),a=new DataView(n);for(let r=0;r>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=a=0);return a===12?(n>>=4,e+=String.fromCharCode(n)):a===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const _n=-1,yn=-2,vn=-3,bn=-4,kn=-5,En=-6;function Zn(t,e){return Le(JSON.parse(t),e)}function Le(t,e){if(typeof t=="number")return s(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,a=Array(n.length);let r=null;function s(o,c=!1){if(o===_n)return;if(o===vn)return NaN;if(o===bn)return 1/0;if(o===kn)return-1/0;if(o===En)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in a)return a[o];const i=n[o];if(!i||typeof i!="object")a[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const l=i[0],u=e&&Object.hasOwn(e,l)?e[l]:void 0;if(u){let h=i[1];if(typeof h!="number"&&(h=n.push(i[1])-1),r??(r=new Set),r.has(h))throw new Error("Invalid circular reference");return r.add(h),a[o]=u(s(h)),r.delete(h),a[o]}switch(l){case"Date":a[o]=new Date(i[1]);break;case"Set":const h=new Set;a[o]=h;for(let f=1;fe!=null)}const Rn="x-sveltekit-invalidated",Tn="x-sveltekit-trailing-slash";function At(t){return t instanceof Ct||t instanceof Xt?t.status:500}function In(t){return t instanceof Xt?t.text:"Internal Error"}let R,at,Ft;const Un=fe.toString().includes("$$")||/function \w+\(\) \{\}/.test(fe.toString());var ct,lt,ft,ut,ht,dt,pt,gt,ve,mt,be,wt,ke;Un?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},at={current:null},Ft={current:!1}):(R=new(ve=class{constructor(){C(this,ct,N({}));C(this,lt,N(null));C(this,ft,N(null));C(this,ut,N({}));C(this,ht,N({id:null}));C(this,dt,N({}));C(this,pt,N(-1));C(this,gt,N(new URL("https://example.com")))}get data(){return O(A(this,ct))}set data(e){j(A(this,ct),e)}get form(){return O(A(this,lt))}set form(e){j(A(this,lt),e)}get error(){return O(A(this,ft))}set error(e){j(A(this,ft),e)}get params(){return O(A(this,ut))}set params(e){j(A(this,ut),e)}get route(){return O(A(this,ht))}set route(e){j(A(this,ht),e)}get state(){return O(A(this,dt))}set state(e){j(A(this,dt),e)}get status(){return O(A(this,pt))}set status(e){j(A(this,pt),e)}get url(){return O(A(this,gt))}set url(e){j(A(this,gt),e)}},ct=new WeakMap,lt=new WeakMap,ft=new WeakMap,ut=new WeakMap,ht=new WeakMap,dt=new WeakMap,pt=new WeakMap,gt=new WeakMap,ve),at=new(be=class{constructor(){C(this,mt,N(null))}get current(){return O(A(this,mt))}set current(e){j(A(this,mt),e)}},mt=new WeakMap,be),Ft=new(ke=class{constructor(){C(this,wt,N(!1))}get current(){return O(A(this,wt))}set current(e){j(A(this,wt),e)}},wt=new WeakMap,ke),Ue.v=()=>Ft.current=!0);function te(t){Object.assign(R,t)}const Ln="/__data.json",Pn=".html__data.json";function Cn(t){return t.endsWith(".html")?t.replace(/\.html$/,Pn):t.replace(/\/$/,"")+Ln}const{tick:Ce}=Ke,xn=new Set(["icon","shortcut icon","apple-touch-icon"]),V=Ee(Se)??{},ot=Ee(Ae)??{},F={url:de({}),page:de({}),navigating:Ht(null),updated:pn()};function ee(t){V[t]=G()}function Nn(t,e){let n=t+1;for(;V[n];)delete V[n],n+=1;for(n=e+1;ot[n];)delete ot[n],n+=1}function X(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function xe(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(P||"/");t&&await t.update()}}function zt(){}let ne,Gt,St,D,Kt,T;const Rt=[],Tt=[];let S=null;function It(){var t;(t=S==null?void 0:S.fork)==null||t.then(e=>e==null?void 0:e.discard()),S=null}const bt=new Map,Ne=new Set,On=new Set,et=new Set;let m={branch:[],error:null,url:null},re=!1,Ut=!1,pe=!0,st=!1,Q=!1,Oe=!1,yt=!1,Z,I,L,B;const nt=new Set;let Vt;const Lt=new Map;async function nr(t,e,n){var s,o,c,i,l;(s=globalThis.__sveltekit_1cw4viz)!=null&&s.data&&globalThis.__sveltekit_1cw4viz.data,document.URL!==location.href&&(location.href=location.href),T=t,await((c=(o=t.hooks).init)==null?void 0:c.call(o)),ne=fn(t),D=document.documentElement,Kt=e,Gt=t.nodes[0],St=t.nodes[1],Gt(),St(),I=(i=history.state)==null?void 0:i[W],L=(l=history.state)==null?void 0:l[rt],I||(I=L=Date.now(),history.replaceState({...history.state,[W]:I,[rt]:L},""));const a=V[I];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Kn(Kt,n)):(await H({type:"enter",url:Qt(T.hash?Yn(new URL(location.href)):location.href),replace_state:!0}),r()),Gn()}async function jn(t=!0,e=!0){if(await(Vt||(Vt=Promise.resolve())),!Vt)return;Vt=null;const n=B={},a=await vt(m.url,!0);if(It(),yt&&Lt.forEach(({resource:r})=>{var s;(s=r.refresh)==null||s.call(r)}),t){const r=R.state,s=a&&await se(a);if(!s||n!==B)return;if(s.type==="redirect")return Nt(new URL(s.location,m.url).href,{replaceState:!0},1,n);e||(s.props.page.state=r),te(s.props.page),m=s.state,Yt(),Z.$set(s.props)}else Yt();await Promise.all([...Lt.values()].map(({resource:r})=>r)).catch(zt)}function Yt(){Rt.length=0,yt=!1}function je(t){Tt.some(e=>e==null?void 0:e.snapshot)&&(ot[t]=Tt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function $e(t){var e;(e=ot[t])==null||e.forEach((n,a)=>{var r,s;(s=(r=Tt[a])==null?void 0:r.snapshot)==null||s.restore(n)})}function ge(){ee(I),ue(Se,V),je(L),ue(Ae,ot)}async function Nt(t,e,n,a){let r;e.invalidateAll&&It(),await H({type:"goto",url:Qt(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:a,accept:()=>{e.invalidateAll&&(yt=!0,r=[...Lt.keys()]),e.invalidate&&e.invalidate.forEach(qn)}}),e.invalidateAll&&kt().then(kt).then(()=>{Lt.forEach(({resource:s},o)=>{var c;r!=null&&r.includes(o)&&((c=s.refresh)==null||c.call(s))})})}async function $n(t){if(t.id!==(S==null?void 0:S.id)){It();const e={};nt.add(e),S={id:t.id,token:e,promise:se({...t,preload:e}).then(n=>(nt.delete(e),n.type==="loaded"&&n.state.error&&It(),n)),fork:null}}return S.promise}async function Mt(t){var n;const e=(n=await vt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(a=>a==null?void 0:a[1]()))}async function De(t,e,n){var r;m=t.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(R,t.props.page),Z=new T.root({target:e,props:{...t.props,stores:F,components:Tt},hydrate:n,sync:!1}),await Promise.resolve(),$e(L),n){const s={from:null,to:{params:m.params,route:{id:((r=m.route)==null?void 0:r.id)??null},url:new URL(location.href),scroll:V[I]??G()},willUnload:!1,type:"enter",complete:Promise.resolve()};et.forEach(o=>o(s))}Ut=!0}function it({url:t,params:e,branch:n,status:a,error:r,route:s,form:o}){let c="never";if(P&&(t.pathname===P||t.pathname===P+"/"))c="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(c=d.slash);t.pathname=He(t.pathname,c),t.search=t.search;const i={type:"loaded",state:{url:t,params:e,branch:n,error:r,route:s},props:{constructors:Sn(n).map(d=>d.node.component),page:jt(R)}};o!==void 0&&(i.props.form=o);let l={},u=!R,h=0;for(let d=0;dc(new URL(o))))return!0;return!1}function oe(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function Bn(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const a of n){const r=t.searchParams.getAll(a),s=e.searchParams.getAll(a);r.every(o=>s.includes(o))&&s.every(o=>r.includes(o))&&n.delete(a)}return n}function we({error:t,url:e,route:n,params:a}){return{type:"loaded",state:{error:t,url:e,route:n,params:a,branch:[]},props:{page:jt(R),constructors:[]}}}async function se({id:t,invalidating:e,url:n,params:a,route:r,preload:s}){if((S==null?void 0:S.id)===t)return nt.delete(S.token),S.promise;const{errors:o,layouts:c,leaf:i}=r,l=[...c,i];o.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let u=null;const h=m.url?t!==Pt(m.url):!1,y=m.route?r.id!==m.route.id:!1,d=Bn(m.url,n);let f=!1;{const g=l.map((v,b)=>{var E;const k=m.branch[b],x=!!(v!=null&&v[0])&&((k==null?void 0:k.loader)!==v[1]||me(f,y,h,d,(E=k.server)==null?void 0:E.uses,a));return x&&(f=!0),x});if(g.some(Boolean)){try{u=await Me(n,g)}catch(v){const b=await J(v,{url:n,params:a,route:{id:t}});return nt.has(s)?we({error:b,url:n,params:a,route:r}):Ot({status:At(v),error:b,url:n,route:r})}if(u.type==="redirect")return u}}const p=u==null?void 0:u.nodes;let _=!1;const w=l.map(async(g,v)=>{var E;if(!g)return;const b=m.branch[v],k=p==null?void 0:p[v];if((!k||k.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!me(_,y,h,d,(E=b.universal)==null?void 0:E.uses,a))return b;if(_=!0,(k==null?void 0:k.type)==="error")throw k;return ae({loader:g[1],url:n,params:a,route:r,parent:async()=>{var $;const M={};for(let q=0;q{});const U=[];for(let g=0;gPromise.resolve({}),server_data_node:oe(s)}),c={node:await St(),loader:St,universal:null,server:null,data:null};return it({url:n,params:r,branch:[o,c],status:t,error:e,route:null})}catch(o){if(o instanceof Jt)return Nt(new URL(o.location,location.href),{},0);throw o}}async function Fn(t){const e=t.href;if(bt.has(e))return bt.get(e);let n;try{const a=(async()=>{let r=await T.hooks.reroute({url:new URL(t),fetch:async(s,o)=>Dn(s,o,t).promise})??t;if(typeof r=="string"){const s=new URL(t);T.hash?s.hash=r:s.pathname=r,r=s}return r})();bt.set(e,a),n=await a}catch{bt.delete(e);return}return n}async function vt(t,e){if(t&&!xt(t,P,T.hash)){const n=await Fn(t);if(!n)return;const a=Vn(n);for(const r of ne){const s=r.exec(a);if(s)return{id:Pt(t),invalidating:e,route:r,params:Xe(s),url:t}}}}function Vn(t){return Je(T.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(P.length))||"/"}function Pt(t){return(T.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Fe({url:t,type:e,intent:n,delta:a,event:r,scroll:s}){let o=!1;const c=ce(m,n,t,e,s??null);a!==void 0&&(c.navigation.delta=a),r!==void 0&&(c.navigation.event=r);const i={...c.navigation,cancel:()=>{o=!0,c.reject(new Error("navigation cancelled"))}};return st||Ne.forEach(l=>l(i)),o?null:c}async function H({type:t,url:e,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o={},redirect_count:c=0,nav_token:i={},accept:l=zt,block:u=zt,event:h}){var x;const y=B;B=i;const d=await vt(e,!1),f=t==="enter"?ce(m,d,e,t):Fe({url:e,type:t,delta:n==null?void 0:n.delta,intent:d,scroll:n==null?void 0:n.scroll,event:h});if(!f){u(),B===i&&(B=y);return}const p=I,_=L;l(),st=!0,Ut&&f.navigation.type!=="enter"&&F.navigating.set(at.current=f.navigation);let w=d&&await se(d);if(!w){if(xt(e,P,T.hash))return await X(e,s);w=await Ve(e,{id:null},await J(new Xt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(d==null?void 0:d.url)||e,B!==i)return f.reject(new Error("navigation aborted")),!1;if(w.type==="redirect"){if(c<20){await H({type:t,url:new URL(w.location,e),popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o,redirect_count:c+1,nav_token:i}),f.fulfil(void 0);return}w=await Ot({status:500,error:await J(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else w.props.page.status>=400&&await F.updated.check()&&(await xe(),await X(e,s));if(Yt(),ee(p),je(_),w.props.page.url.pathname!==e.pathname&&(e.pathname=w.props.page.url.pathname),o=n?n.state:o,!n){const E=s?0:1,M={[W]:I+=E,[rt]:L+=E,[Re]:o};(s?history.replaceState:history.pushState).call(history,M,"",e),s||Nn(I,L)}const U=d&&(S==null?void 0:S.id)===d.id?S.fork:null;S=null,w.props.page.state=o;let g;if(Ut){const E=(await Promise.all(Array.from(On,$=>$(f.navigation)))).filter($=>typeof $=="function");if(E.length>0){let $=function(){E.forEach(q=>{et.delete(q)})};E.push($),E.forEach(q=>{et.add(q)})}m=w.state,w.props.page&&(w.props.page.url=e);const M=U&&await U;M?g=M.commit():(Z.$set(w.props),te(w.props.page),g=(x=We)==null?void 0:x()),Oe=!0}else await De(w,Kt,!1);const{activeElement:v}=document;await g,await kt(),await kt();let b=null;if(pe){const E=n?n.scroll:r?G():null;E?scrollTo(E.x,E.y):(b=e.hash&&document.getElementById(ze(e)))?b.scrollIntoView():scrollTo(0,0)}const k=document.activeElement!==v&&document.activeElement!==document.body;!a&&!k&&ie(e,!b),pe=!0,w.props.page&&Object.assign(R,w.props.page),st=!1,t==="popstate"&&$e(L),f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=G()),et.forEach(E=>E(f.navigation)),F.navigating.set(at.current=null)}async function Ve(t,e,n,a,r){return t.origin===_t&&t.pathname===location.pathname&&!re?await Ot({status:a,error:n,url:t,route:e}):await X(t,r)}function Mn(){let t,e={element:void 0,href:void 0},n;D.addEventListener("mousemove",c=>{const i=c.target;clearTimeout(t),t=setTimeout(()=>{s(i,z.hover)},20)});function a(c){c.defaultPrevented||s(c.composedPath()[0],z.tap)}D.addEventListener("mousedown",a),D.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(c=>{for(const i of c)i.isIntersecting&&(Mt(new URL(i.target.href)),r.unobserve(i.target))},{threshold:0});async function s(c,i){const l=Ie(c,D),u=l===e.element&&(l==null?void 0:l.href)===e.href&&i>=n;if(!l||u)return;const{url:h,external:y,download:d}=qt(l,P,T.hash);if(y||d)return;const f=Et(l),p=h&&Pt(m.url)===Pt(h);if(!(f.reload||p))if(i<=f.preload_data){e={element:l,href:l.href},n=z.tap;const _=await vt(h,!1);if(!_)return;$n(_)}else i<=f.preload_code&&(e={element:l,href:l.href},n=i,Mt(h))}function o(){r.disconnect();for(const c of D.querySelectorAll("a")){const{url:i,external:l,download:u}=qt(c,P,T.hash);if(l||u)continue;const h=Et(c);h.reload||(h.preload_code===z.viewport&&r.observe(c),h.preload_code===z.eager&&Mt(i))}}et.add(o),o()}function J(t,e){if(t instanceof Ct)return t.body;const n=At(t),a=In(t);return T.hooks.handleError({error:t,event:e,status:n,message:a})??{message:a}}function rr(t,e={}){return t=new URL(Qt(t)),t.origin!==_t?Promise.reject(new Error("goto: invalid URL")):Nt(t,e,0)}function qn(t){if(typeof t=="function")Rt.push(t);else{const{href:e}=new URL(t,location.href);Rt.push(n=>n.href===e)}}function ar(){return yt=!0,jn()}async function or(t){t.type==="error"?await zn(t.error,t.status):t.type==="redirect"?await Nt(t.location,{invalidateAll:!0},0):(R.form=t.data,R.status=t.status,Z.$set({form:null,page:jt(R)}),await Ce(),Z.$set({form:t.data}),t.type==="success"&&ie(R.url))}async function zn(t,e=500){const n=new URL(location.href),{branch:a,route:r}=m;if(!r)return;const s=await Be(m.branch.length,a,r.errors);if(s){const o=it({url:n,params:m.params,branch:a.slice(0,s.idx).concat(s.node),status:e,error:t,route:r});m=o.state,Z.$set(o.props),te(o.props.page),Ce().then(()=>ie(m.url))}}function Gn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ge(),!st){const r=ce(m,void 0,null,"leave"),s={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ne.forEach(o=>o(s))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ge()}),(e=navigator.connection)!=null&&e.saveData||Mn(),D.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=Ie(n.composedPath()[0],D);if(!a)return;const{url:r,external:s,target:o,download:c}=qt(a,P,T.hash);if(!r)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const i=Et(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||c)return;const[u,h]=(T.hash?r.hash.replace(/^#/,""):r.href).split("#"),y=u===Dt(location);if(s||i.reload&&(!y||!h)){Fe({url:r,type:"link",event:n})?st=!0:n.preventDefault();return}if(h!==void 0&&y){const[,d]=m.url.href.split("#");if(d===h){if(n.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=a.ownerDocument.getElementById(decodeURIComponent(h));f&&(f.scrollIntoView(),f.focus())}return}if(Q=!0,ee(I),t(r),!i.replace_state)return;Q=!1}n.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await H({type:"link",url:r,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??r.href===location.href,event:n})}),D.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const c=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(xt(c,P,!1))return;const i=n.target,l=Et(i);if(l.reload)return;n.preventDefault(),n.stopPropagation();const u=new FormData(i,r);c.search=new URLSearchParams(u).toString(),H({type:"form",url:c,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??c.href===location.href,event:n})}),addEventListener("popstate",async n=>{var a;if(!Wt){if((a=n.state)!=null&&a[W]){const r=n.state[W];if(B={},r===I)return;const s=V[r],o=n.state[Re]??{},c=new URL(n.state[dn]??location.href),i=n.state[rt],l=m.url?Dt(location)===Dt(m.url):!1;if(i===L&&(Oe||l)){o!==R.state&&(R.state=o),t(c),V[I]=G(),s&&scrollTo(s.x,s.y),I=r;return}const h=r-I;await H({type:"popstate",url:c,popped:{state:o,scroll:s,delta:h},accept:()=>{I=r,L=i},block:()=>{history.go(-h)},nav_token:B,event:n})}else if(!Q){const r=new URL(location.href);t(r),T.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Q&&(Q=!1,history.replaceState({...history.state,[W]:++I,[rt]:L},"",location.href))});for(const n of document.querySelectorAll("link"))xn.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(at.current=null)});function t(n){m.url=R.url=n,F.page.set(jt(R)),F.page.notify()}}async function Kn(t,{status:e=200,error:n,node_ids:a,params:r,route:s,server_route:o,data:c,form:i}){re=!0;const l=new URL(location.href);let u;({params:r={},route:s={id:null}}=await vt(l,!1)||{}),u=ne.find(({id:d})=>d===s.id);let h,y=!0;try{const d=a.map(async(p,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=qe(w.uses)),ae({loader:T.nodes[p],url:l,params:r,route:s,parent:async()=>{const U={};for(let g=0;g<_;g+=1)Object.assign(U,(await d[g]).data);return U},server_data_node:oe(w)})}),f=await Promise.all(d);if(u){const p=u.layouts;for(let _=0;_o?"1":"0").join(""));const a=window.fetch,r=await a(n.href,{});if(!r.ok){let o;throw(s=r.headers.get("content-type"))!=null&&s.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new Ct(r.status,o)}return new Promise(async o=>{var h;const c=new Map,i=r.body.getReader();function l(y){return Le(y,{...T.decoders,Promise:d=>new Promise((f,p)=>{c.set(d,{fulfil:f,reject:p})})})}let u="";for(;;){const{done:y,value:d}=await i.read();if(y&&!u)break;for(u+=!d&&u?` +`:Qe.decode(d,{stream:!0});;){const f=u.indexOf(` +`);if(f===-1)break;const p=JSON.parse(u.slice(0,f));if(u=u.slice(f+1),p.type==="redirect")return o(p);if(p.type==="data")(h=p.nodes)==null||h.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=qe(_.uses),_.data=l(_.data))}),o(p);else if(p.type==="chunk"){const{id:_,data:w,error:U}=p,g=c.get(_);c.delete(_),U?g.reject(l(U)):g.fulfil(l(w))}}}})}function qe(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Wt=!1;function ie(t,e=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=ze(t);if(a&&document.getElementById(a)){const{x:s,y:o}=G();setTimeout(()=>{const c=history.state;Wt=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(c,"",t),e&&scrollTo(s,o),Wt=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let o=0;o{if(r.rangeCount===s.length){for(let o=0;o{s=h,o=y});return c.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((l=t.route)==null?void 0:l.id)??null},url:t.url,scroll:G()},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((u=e==null?void 0:e.route)==null?void 0:u.id)??null},url:n,scroll:r},willUnload:!e,type:a,complete:c},fulfil:s,reject:o}}function jt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Yn(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function ze(t){let e;if(T.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{or as a,Zn as b,T as c,nr as d,rr as g,ar as i,Xn as l,R as p,F as s}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/Bd99md_0.js b/.svelte-kit/output/client/_app/immutable/chunks/Bd99md_0.js new file mode 100644 index 00000000..fe7bc8b2 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/Bd99md_0.js @@ -0,0 +1,20 @@ +var qr=Object.defineProperty;var Qr=(r,e,t)=>e in r?qr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var $t=(r,e,t)=>Qr(r,typeof e!="symbol"?e+"":e,t);function Jr(r,e){var t=Object.setPrototypeOf;t?t(r,e):r.__proto__=e}function en(r,e){e===void 0&&(e=r.constructor);var t=Error.captureStackTrace;t&&t(r,e)}var tn=(function(){var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},r(t,n)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),rn=(function(r){tn(e,r);function e(t,n){var i=this.constructor,a=r.call(this,t,n)||this;return Object.defineProperty(a,"name",{value:i.name,enumerable:!1,configurable:!0}),Jr(a,i.prototype),en(a),a}return e})(Error),nn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Ae=(function(r){nn(e,r);function e(t){t===void 0&&(t=void 0);var n=r.call(this,t)||this;return n.message=t,n}return e.prototype.getKind=function(){var t=this.constructor;return t.kind},e.kind="Exception",e})(rn),an=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ee=(function(r){an(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ArgumentException",e})(Ae),on=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),N=(function(r){on(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e})(Ae),Pr=(function(){function r(e){if(this.binarizer=e,e===null)throw new N("Binarizer must be non-null.")}return r.prototype.getWidth=function(){return this.binarizer.getWidth()},r.prototype.getHeight=function(){return this.binarizer.getHeight()},r.prototype.getBlackRow=function(e,t){return this.binarizer.getBlackRow(e,t)},r.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},r.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},r.prototype.crop=function(e,t,n,i){var a=this.binarizer.getLuminanceSource().crop(e,t,n,i);return new r(this.binarizer.createBinarizer(a))},r.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},r.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new r(this.binarizer.createBinarizer(e))},r.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new r(this.binarizer.createBinarizer(e))},r.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},r})(),fn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),te=(function(r){fn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e})(Ae),un=(function(){function r(e){this.source=e}return r.prototype.getLuminanceSource=function(){return this.source},r.prototype.getWidth=function(){return this.source.getWidth()},r.prototype.getHeight=function(){return this.source.getHeight()},r})(),Y=(function(){function r(){}return r.arraycopy=function(e,t,n,i,a){for(;a--;)n[i++]=e[t++]},r.currentTimeMillis=function(){return Date.now()},r})(),sn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Gt=(function(r){sn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e})(Ae),cn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Kt=(function(r){cn(e,r);function e(t,n){t===void 0&&(t=void 0),n===void 0&&(n=void 0);var i=r.call(this,n)||this;return i.index=t,i.message=n,i}return e.kind="ArrayIndexOutOfBoundsException",e})(Gt),hn=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},oe=(function(){function r(){}return r.fill=function(e,t){for(var n=0,i=e.length;nn)throw new N("fromIndex("+t+") > toIndex("+n+")");if(t<0)throw new Kt(t);if(n>e)throw new Kt(n)},r.asList=function(){for(var e=[],t=0;t>1,f=n(t,e[o]);if(f>0)i=o+1;else if(f<0)a=o-1;else return o}return-i-1},r.numberComparator=function(e,t){return e-t},r})(),B=(function(){function r(){}return r.numberOfTrailingZeros=function(e){var t;if(e===0)return 32;var n=31;return t=e<<16,t!==0&&(n-=16,e=t),t=e<<8,t!==0&&(n-=8,e=t),t=e<<4,t!==0&&(n-=4,e=t),t=e<<2,t!==0&&(n-=2,e=t),n-(e<<1>>>31)},r.numberOfLeadingZeros=function(e){if(e===0)return 32;var t=1;return e>>>16||(t+=16,e<<=16),e>>>24||(t+=8,e<<=8),e>>>28||(t+=4,e<<=4),e>>>30||(t+=2,e<<=2),t-=e>>>31,t},r.toHexString=function(e){return e.toString(16)},r.toBinaryString=function(e){return String(parseInt(String(e),2))},r.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},r.truncDivision=function(e,t){return Math.trunc(e/t)},r.parseInt=function(e,t){return t===void 0&&(t=void 0),parseInt(e,t)},r.MIN_VALUE_32_BITS=-2147483648,r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r})(),ce=(function(){function r(e,t){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,t==null?this.bits=r.makeArray(e):this.bits=t)}return r.prototype.getSize=function(){return this.size},r.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},r.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var t=r.makeArray(e);Y.arraycopy(this.bits,0,t,0,this.bits.length),this.bits=t}},r.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},r.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},r.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},r.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),a=n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return t;a=n[i]}var f=i*32+B.numberOfTrailingZeros(a);return f>t?t:f},r.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),a=~n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return t;a=~n[i]}var f=i*32+B.numberOfTrailingZeros(a);return f>t?t:f},r.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},r.prototype.setRange=function(e,t){if(tthis.size)throw new N;if(t!==e){t--;for(var n=Math.floor(e/32),i=Math.floor(t/32),a=this.bits,o=n;o<=i;o++){var f=o>n?0:e&31,u=othis.size)throw new N;if(t===e)return!0;t--;for(var i=Math.floor(e/32),a=Math.floor(t/32),o=this.bits,f=i;f<=a;f++){var u=f>i?0:e&31,s=f32)throw new N("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(var n=t;n>0;n--)this.appendBit((e>>n-1&1)===1)},r.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);for(var n=0;n>1&1431655765|(o&1431655765)<<1,o=o>>2&858993459|(o&858993459)<<2,o=o>>4&252645135|(o&252645135)<<4,o=o>>8&16711935|(o&16711935)<<8,o=o>>16&65535|(o&65535)<<16,e[t-a]=o}if(this.size!==n*32){for(var f=n*32-this.size,u=e[0]>>>f,a=1;a>>f}e[n-1]=u}this.bits=e},r.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.size===t.size&&oe.equals(this.bits,t.bits)},r.prototype.hashCode=function(){return 31*this.size+oe.hashCode(this.bits)},r.prototype.toString=function(){for(var e="",t=0,n=this.size;t=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},W;(function(r){r[r.Cp437=0]="Cp437",r[r.ISO8859_1=1]="ISO8859_1",r[r.ISO8859_2=2]="ISO8859_2",r[r.ISO8859_3=3]="ISO8859_3",r[r.ISO8859_4=4]="ISO8859_4",r[r.ISO8859_5=5]="ISO8859_5",r[r.ISO8859_6=6]="ISO8859_6",r[r.ISO8859_7=7]="ISO8859_7",r[r.ISO8859_8=8]="ISO8859_8",r[r.ISO8859_9=9]="ISO8859_9",r[r.ISO8859_10=10]="ISO8859_10",r[r.ISO8859_11=11]="ISO8859_11",r[r.ISO8859_13=12]="ISO8859_13",r[r.ISO8859_14=13]="ISO8859_14",r[r.ISO8859_15=14]="ISO8859_15",r[r.ISO8859_16=15]="ISO8859_16",r[r.SJIS=16]="SJIS",r[r.Cp1250=17]="Cp1250",r[r.Cp1251=18]="Cp1251",r[r.Cp1252=19]="Cp1252",r[r.Cp1256=20]="Cp1256",r[r.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",r[r.UTF8=22]="UTF8",r[r.ASCII=23]="ASCII",r[r.Big5=24]="Big5",r[r.GB18030=25]="GB18030",r[r.EUC_KR=26]="EUC_KR"})(W||(W={}));var ae=(function(){function r(e,t,n){for(var i,a,o=[],f=3;f=900)throw new T("incorect value");var t=r.VALUES_TO_ECI.get(e);if(t===void 0)throw new T("incorect value");return t},r.getCharacterSetECIByName=function(e){var t=r.NAME_TO_ECI.get(e);if(t===void 0)throw new T("incorect value");return t},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.getName()===t.getName()},r.VALUE_IDENTIFIER_TO_ECI=new Map,r.VALUES_TO_ECI=new Map,r.NAME_TO_ECI=new Map,r.Cp437=new r(W.Cp437,Int32Array.from([0,2]),"Cp437"),r.ISO8859_1=new r(W.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),r.ISO8859_2=new r(W.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),r.ISO8859_3=new r(W.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),r.ISO8859_4=new r(W.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),r.ISO8859_5=new r(W.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),r.ISO8859_6=new r(W.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),r.ISO8859_7=new r(W.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),r.ISO8859_8=new r(W.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),r.ISO8859_9=new r(W.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),r.ISO8859_10=new r(W.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),r.ISO8859_11=new r(W.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),r.ISO8859_13=new r(W.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),r.ISO8859_14=new r(W.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),r.ISO8859_15=new r(W.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),r.ISO8859_16=new r(W.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),r.SJIS=new r(W.SJIS,20,"SJIS","Shift_JIS"),r.Cp1250=new r(W.Cp1250,21,"Cp1250","windows-1250"),r.Cp1251=new r(W.Cp1251,22,"Cp1251","windows-1251"),r.Cp1252=new r(W.Cp1252,23,"Cp1252","windows-1252"),r.Cp1256=new r(W.Cp1256,24,"Cp1256","windows-1256"),r.UnicodeBigUnmarked=new r(W.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),r.UTF8=new r(W.UTF8,26,"UTF8","UTF-8"),r.ASCII=new r(W.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),r.Big5=new r(W.Big5,28,"Big5"),r.GB18030=new r(W.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),r.EUC_KR=new r(W.EUC_KR,30,"EUC_KR","EUC-KR"),r})(),vn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),st=(function(r){vn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e})(Ae),Ie=(function(){function r(){}return r.decode=function(e,t){var n=this.encodingName(t);return this.customDecoder?this.customDecoder(e,n):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},r.shouldDecodeOnFallback=function(e){return!r.isBrowser()&&e==="ISO-8859-1"},r.encode=function(e,t){var n=this.encodingName(t);return this.customEncoder?this.customEncoder(e,n):typeof TextEncoder>"u"?this.encodeFallback(e):new TextEncoder().encode(e)},r.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},r.encodingName=function(e){return typeof e=="string"?e:e.getName()},r.encodingCharacterSet=function(e){return e instanceof ae?e:ae.getCharacterSetECIByName(e)},r.decodeFallback=function(e,t){var n=this.encodingCharacterSet(t);if(r.isDecodeFallbackSupported(n)){for(var i="",a=0,o=e.length;a3&&e[0]===239&&e[1]===187&&e[2]===191,A=0;A0?(E&128)===0?o=!1:f--:(E&128)!==0&&((E&64)===0?o=!1:(f++,(E&32)===0?u++:(f++,(E&16)===0?s++:(f++,(E&8)===0?c++:o=!1))))),i&&(E>127&&E<160?i=!1:E>159&&(E<192||E===215||E===247)&&w++),a&&(h>0?E<64||E===127||E>252?a=!1:h--:E===128||E===160||E>239?a=!1:E>160&&E<224?(l++,v=0,d++,d>x&&(x=d)):E>127?(h++,d=0,v++,v>g&&(g=v)):(d=0,v=0))}return o&&f>0&&(o=!1),a&&h>0&&(a=!1),o&&(y||u+s+c>0)?r.UTF8:a&&(r.ASSUME_SHIFT_JIS||x>=3||g>=3)?r.SHIFT_JIS:i&&a?x===2&&l===2||w*10>=n?r.SHIFT_JIS:r.ISO88591:i?r.ISO88591:a?r.SHIFT_JIS:o?r.UTF8:r.PLATFORM_DEFAULT_ENCODING},r.format=function(e){for(var t=[],n=1;no){if(f===-1)f=a-o;else if(a-o!==f)throw new N("row lengths do not match");o=a,u++}s++}else if(e.substring(s,s+t.length)===t)s+=t.length,i[a]=!0,a++;else if(e.substring(s,s+n.length)===n)s+=n.length,i[a]=!1,a++;else throw new N("illegal character encountered: "+e.substring(s));if(a>o){if(f===-1)f=a-o;else if(a-o!==f)throw new N("row lengths do not match");u++}for(var c=new r(f,u),h=0;h>>(e&31)&1)!==0},r.prototype.set=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(e&31)&4294967295},r.prototype.unset=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(e&31)&4294967295)},r.prototype.flip=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(e&31)&4294967295},r.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new N("input matrix dimensions do not match");for(var t=new ce(Math.floor(this.width/32)+1),n=this.rowSize,i=this.bits,a=0,o=this.height;athis.height||a>this.width)throw new N("The region must fit inside the matrix");for(var f=this.rowSize,u=this.bits,s=t;su&&(u=s),c*32f){for(var l=31;!(h>>>l);)l--;c*32+l>f&&(f=c*32+l)}}}return f=0&&t[n]===0;)n--;if(n<0)return null;for(var i=Math.floor(n/e),a=Math.floor(n%e)*32,o=t[n],f=31;!(o>>>f);)f--;return a+=f,Int32Array.from([a,i])},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRowSize=function(){return this.rowSize},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&oe.equals(this.bits,t.bits)},r.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+oe.hashCode(this.bits),e},r.prototype.toString=function(e,t,n){return e===void 0&&(e="X "),t===void 0&&(t=" "),n===void 0&&(n=` +`),this.buildToString(e,t,n)},r.prototype.buildToString=function(e,t,n){for(var i=new M,a=0,o=this.height;a>e.LUMINANCE_SHIFT]++;var s=e.estimateBlackPoint(f);if(a<3)for(var u=0;u>e.LUMINANCE_SHIFT]++}for(var d=e.estimateBlackPoint(o),v=t.getMatrix(),f=0;fo&&(a=f,o=t[f]),t[f]>i&&(i=t[f]);for(var u=0,s=0,f=0;fs&&(u=f,s=h)}if(a>u){var l=a;a=u,u=l}if(u-a<=n/16)throw new C;for(var d=u-1,v=-1,f=u-1;f>a;f--){var x=f-a,h=x*x*(u-f)*(i-t[f]);h>v&&(d=f,v=h)}return d<=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var a=t.getMatrix(),o=n>>e.BLOCK_SIZE_POWER;(n&e.BLOCK_SIZE_MASK)!==0&&o++;var f=i>>e.BLOCK_SIZE_POWER;(i&e.BLOCK_SIZE_MASK)!==0&&f++;var u=e.calculateBlackPoints(a,o,f,n,i),s=new be(n,i);e.calculateThresholdForBlock(a,o,f,n,i,u,s),this.matrix=s}else this.matrix=r.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,n,i,a,o,f,u){for(var s=o-e.BLOCK_SIZE,c=a-e.BLOCK_SIZE,h=0;hs&&(l=s);for(var d=e.cap(h,2,i-3),v=0;vc&&(x=c);for(var g=e.cap(v,2,n-3),w=0,y=-2;y<=2;y++){var A=f[d+y];w+=A[g-2]+A[g-1]+A[g]+A[g+1]+A[g+2]}var E=w/25;e.thresholdBlock(t,x,l,E,a,u)}}},e.cap=function(t,n,i){return ti?i:t},e.thresholdBlock=function(t,n,i,a,o,f){for(var u=0,s=i*o+n;uf&&(h=f);for(var l=0;lu&&(d=u);for(var v=0,x=255,g=0,w=0,y=h*a+d;wg&&(g=E)}if(g-x>e.MIN_DYNAMIC_RANGE)for(w++,y+=a;w>e.BLOCK_SIZE_POWER*2;if(g-x<=e.MIN_DYNAMIC_RANGE&&(m=x/2,c>0&&l>0)){var I=(s[c-1][l]+2*s[c][l-1]+s[c-1][l-1])/4;x>10}o[u]=c}else for(var f=0,u=0,x=t.length;f>10}o[u]=255-c}return o},e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new N("Requested row is outside the image: "+t);var i=this.getWidth(),a=t*i;return n===null?n=this.buffer.slice(a,a+i):(n.length0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ze=(function(){function r(e,t,n){t===void 0&&(t=500),this.reader=e,this.timeBetweenScansMillis=t,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(r.prototype,"hasNavigator",{get:function(){return typeof navigator<"u"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),r.prototype.listVideoInputDevices=function(){return xe(this,void 0,void 0,function(){var e,t,n,i,a,o,f,u,s,c,h,l;return ge(this,function(d){switch(d.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=d.sent(),t=[];try{for(n=Cn(e),i=n.next();!i.done;i=n.next())a=i.value,o=a.kind==="video"?"videoinput":a.kind,o==="videoinput"&&(f=a.deviceId||a.id,u=a.label||"Video device "+(t.length+1),s=a.groupId,c={deviceId:f,label:u,kind:o,groupId:s},t.push(c))}catch(v){h={error:v}}finally{try{i&&!i.done&&(l=n.return)&&l.call(n)}finally{if(h)throw h.error}}return[2,t]}})})},r.prototype.getVideoInputDevices=function(){return xe(this,void 0,void 0,function(){var e;return ge(this,function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=t.sent(),[2,e.map(function(n){return new En(n.deviceId,n.label)})]}})})},r.prototype.findDeviceById=function(e){return xe(this,void 0,void 0,function(){var t;return ge(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=n.sent(),t?[2,t.find(function(i){return i.deviceId===e})]:[2,null]}})})},r.prototype.decodeFromInputVideoDevice=function(e,t){return xe(this,void 0,void 0,function(){return ge(this,function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,t)];case 1:return[2,n.sent()]}})})},r.prototype.decodeOnceFromVideoDevice=function(e,t){return xe(this,void 0,void 0,function(){var n,i;return ge(this,function(a){switch(a.label){case 0:return this.reset(),e?n={deviceId:{exact:e}}:n={facingMode:"environment"},i={video:n},[4,this.decodeOnceFromConstraints(i,t)];case 1:return[2,a.sent()]}})})},r.prototype.decodeOnceFromConstraints=function(e,t){return xe(this,void 0,void 0,function(){var n;return ge(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=i.sent(),[4,this.decodeOnceFromStream(n,t)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromStream=function(e,t){return xe(this,void 0,void 0,function(){var n,i;return ge(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return n=a.sent(),[4,this.decodeOnce(n)];case 2:return i=a.sent(),[2,i]}})})},r.prototype.decodeFromInputVideoDeviceContinuously=function(e,t,n){return xe(this,void 0,void 0,function(){return ge(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(e,t,n)];case 1:return[2,i.sent()]}})})},r.prototype.decodeFromVideoDevice=function(e,t,n){return xe(this,void 0,void 0,function(){var i,a;return ge(this,function(o){switch(o.label){case 0:return e?i={deviceId:{exact:e}}:i={facingMode:"environment"},a={video:i},[4,this.decodeFromConstraints(a,t,n)];case 1:return[2,o.sent()]}})})},r.prototype.decodeFromConstraints=function(e,t,n){return xe(this,void 0,void 0,function(){var i;return ge(this,function(a){switch(a.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return i=a.sent(),[4,this.decodeFromStream(i,t,n)];case 2:return[2,a.sent()]}})})},r.prototype.decodeFromStream=function(e,t,n){return xe(this,void 0,void 0,function(){var i;return ge(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return i=a.sent(),[4,this.decodeContinuously(i,n)];case 2:return[2,a.sent()]}})})},r.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},r.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},r.prototype.attachStreamToVideo=function(e,t){return xe(this,void 0,void 0,function(){var n;return ge(this,function(i){switch(i.label){case 0:return n=this.prepareVideoElement(t),this.addVideoSource(n,e),this.videoElement=n,this.stream=e,[4,this.playVideoOnLoadAsync(n)];case 1:return i.sent(),[2,n]}})})},r.prototype.playVideoOnLoadAsync=function(e){var t=this;return new Promise(function(n,i){return t.playVideoOnLoad(e,function(){return n()})})},r.prototype.playVideoOnLoad=function(e,t){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",t),this.tryPlayVideo(e)},r.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},r.prototype.tryPlayVideo=function(e){return xe(this,void 0,void 0,function(){return ge(this,function(t){switch(t.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:return t.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},r.prototype.getMediaElement=function(e,t){var n=document.getElementById(e);if(!n)throw new ee("element with id '"+e+"' not found");if(n.nodeName.toLowerCase()!==t.toLowerCase())throw new ee("element with id '"+e+"' must be an "+t+" element");return n},r.prototype.decodeFromImage=function(e,t){if(!e&&!t)throw new ee("either imageElement with a src set or an url must be provided");return t&&!e?this.decodeFromImageUrl(t):this.decodeFromImageElement(e)},r.prototype.decodeFromVideo=function(e,t){if(!e&&!t)throw new ee("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrl(t):this.decodeFromVideoElement(e)},r.prototype.decodeFromVideoContinuously=function(e,t,n){if(e===void 0&&t===void 0)throw new ee("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrlContinuously(t,n):this.decodeFromVideoElementContinuously(e,n)},r.prototype.decodeFromImageElement=function(e){if(!e)throw new ee("An image element must be provided.");this.reset();var t=this.prepareImageElement(e);this.imageElement=t;var n;return this.isImageLoaded(t)?n=this.decodeOnce(t,!1,!0):n=this._decodeOnLoadImage(t),n},r.prototype.decodeFromVideoElement=function(e){var t=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(t)},r.prototype.decodeFromVideoElementContinuously=function(e,t){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(n,t)},r.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new ee("A video element must be provided.");this.reset();var t=this.prepareVideoElement(e);return this.videoElement=t,t},r.prototype.decodeFromImageUrl=function(e){if(!e)throw new ee("An URL must be provided.");this.reset();var t=this.prepareImageElement();this.imageElement=t;var n=this._decodeOnLoadImage(t);return t.src=e,n},r.prototype.decodeFromVideoUrl=function(e){if(!e)throw new ee("An URL must be provided.");this.reset();var t=this.prepareVideoElement(),n=this.decodeFromVideoElement(t);return t.src=e,n},r.prototype.decodeFromVideoUrlContinuously=function(e,t){if(!e)throw new ee("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,t);return n.src=e,i},r.prototype._decodeOnLoadImage=function(e){var t=this;return new Promise(function(n,i){t.imageLoadedListener=function(){return t.decodeOnce(e,!1,!0).then(n,i)},e.addEventListener("load",t.imageLoadedListener)})},r.prototype._decodeOnLoadVideo=function(e){return xe(this,void 0,void 0,function(){return ge(this,function(t){switch(t.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return t.sent(),[4,this.decodeOnce(e)];case 2:return[2,t.sent()]}})})},r.prototype._decodeOnLoadVideoContinuously=function(e,t){return xe(this,void 0,void 0,function(){return ge(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),this.decodeContinuously(e,t),[2]}})})},r.prototype.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},r.prototype.prepareImageElement=function(e){var t;return typeof e>"u"&&(t=document.createElement("img"),t.width=200,t.height=200),typeof e=="string"&&(t=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(t=e),t},r.prototype.prepareVideoElement=function(e){var t;return!e&&typeof document<"u"&&(t=document.createElement("video"),t.width=200,t.height=200),typeof e=="string"&&(t=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(t=e),t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t},r.prototype.decodeOnce=function(e,t,n){var i=this;t===void 0&&(t=!0),n===void 0&&(n=!0),this._stopAsyncDecode=!1;var a=function(o,f){if(i._stopAsyncDecode){f(new C("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var u=i.decode(e);o(u)}catch(l){var s=t&&l instanceof C,c=l instanceof te||l instanceof T,h=c&&n;if(s||h)return setTimeout(a,i._timeBetweenDecodingAttempts,o,f);f(l)}};return new Promise(function(o,f){return a(o,f)})},r.prototype.decodeContinuously=function(e,t){var n=this;this._stopContinuousDecode=!1;var i=function(){if(n._stopContinuousDecode){n._stopContinuousDecode=void 0;return}try{var a=n.decode(e);t(a,null),setTimeout(i,n.timeBetweenScansMillis)}catch(u){t(null,u);var o=u instanceof te||u instanceof T,f=u instanceof C;(o||f)&&setTimeout(i,n._timeBetweenDecodingAttempts)}};i()},r.prototype.decode=function(e){var t=this.createBinaryBitmap(e);return this.decodeBitmap(t)},r.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e);var t=!1;e instanceof HTMLVideoElement?(this.drawFrameOnCanvas(e),t=!0):this.drawImageOnCanvas(e);var n=this.getCaptureCanvas(e),i=new An(n,t),a=new Mr(i);return new Pr(a)},r.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var t=this.getCaptureCanvas(e),n=void 0;try{n=t.getContext("2d",{willReadFrequently:!0})}catch{n=t.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},r.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var t=this.createCaptureCanvas(e);this.captureCanvas=t}return this.captureCanvas},r.prototype.drawFrameOnCanvas=function(e,t,n){t===void 0&&(t={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},r.prototype.drawImageOnCanvas=function(e,t,n){t===void 0&&(t={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},r.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},r.prototype.createCaptureCanvas=function(e){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var t=document.createElement("canvas"),n,i;return typeof e<"u"&&(e instanceof HTMLVideoElement?(n=e.videoWidth,i=e.videoHeight):e instanceof HTMLImageElement&&(n=e.naturalWidth||e.width,i=e.naturalHeight||e.height)),t.style.width=n+"px",t.style.height=i+"px",t.width=n,t.height=i,t},r.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(e){return e.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},r.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},r.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},r.prototype._destroyImageElement=function(){this.imageElement&&(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},r.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},r.prototype.addVideoSource=function(e,t){try{e.srcObject=t}catch{e.src=URL.createObjectURL(t)}},r.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch{e.src=""}this.videoElement.removeAttribute("src")},r})(),pe=(function(){function r(e,t,n,i,a,o){n===void 0&&(n=t==null?0:8*t.length),o===void 0&&(o=Y.currentTimeMillis()),this.text=e,this.rawBytes=t,this.numBits=n,this.resultPoints=i,this.format=a,this.timestamp=o,this.text=e,this.rawBytes=t,n==null?this.numBits=t==null?0:8*t.length:this.numBits=n,this.resultPoints=i,this.format=a,this.resultMetadata=null,o==null?this.timestamp=Y.currentTimeMillis():this.timestamp=o}return r.prototype.getText=function(){return this.text},r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.getResultPoints=function(){return this.resultPoints},r.prototype.getBarcodeFormat=function(){return this.format},r.prototype.getResultMetadata=function(){return this.resultMetadata},r.prototype.putMetadata=function(e,t){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(e,t)},r.prototype.putAllMetadata=function(e){e!==null&&(this.resultMetadata===null?this.resultMetadata=e:this.resultMetadata=new Map(e))},r.prototype.addResultPoints=function(e){var t=this.resultPoints;if(t===null)this.resultPoints=e;else if(e!==null&&e.length>0){var n=new Array(t.length+e.length);Y.arraycopy(t,0,n,0,t.length),Y.arraycopy(e,0,n,t.length,e.length),this.resultPoints=n}},r.prototype.getTimestamp=function(){return this.timestamp},r.prototype.toString=function(){return this.text},r})(),O;(function(r){r[r.AZTEC=0]="AZTEC",r[r.CODABAR=1]="CODABAR",r[r.CODE_39=2]="CODE_39",r[r.CODE_93=3]="CODE_93",r[r.CODE_128=4]="CODE_128",r[r.DATA_MATRIX=5]="DATA_MATRIX",r[r.EAN_8=6]="EAN_8",r[r.EAN_13=7]="EAN_13",r[r.ITF=8]="ITF",r[r.MAXICODE=9]="MAXICODE",r[r.PDF_417=10]="PDF_417",r[r.QR_CODE=11]="QR_CODE",r[r.RSS_14=12]="RSS_14",r[r.RSS_EXPANDED=13]="RSS_EXPANDED",r[r.UPC_A=14]="UPC_A",r[r.UPC_E=15]="UPC_E",r[r.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(O||(O={}));var Mt;(function(r){r[r.OTHER=0]="OTHER",r[r.ORIENTATION=1]="ORIENTATION",r[r.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",r[r.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",r[r.ISSUE_NUMBER=4]="ISSUE_NUMBER",r[r.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",r[r.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",r[r.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",r[r.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",r[r.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",r[r.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(Mt||(Mt={}));const de=Mt;var wt=(function(){function r(e,t,n,i,a,o){a===void 0&&(a=-1),o===void 0&&(o=-1),this.rawBytes=e,this.text=t,this.byteSegments=n,this.ecLevel=i,this.structuredAppendSequenceNumber=a,this.structuredAppendParity=o,this.numBits=e==null?0:8*e.length}return r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.setNumBits=function(e){this.numBits=e},r.prototype.getText=function(){return this.text},r.prototype.getByteSegments=function(){return this.byteSegments},r.prototype.getECLevel=function(){return this.ecLevel},r.prototype.getErrorsCorrected=function(){return this.errorsCorrected},r.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},r.prototype.getErasures=function(){return this.erasures},r.prototype.setErasures=function(e){this.erasures=e},r.prototype.getOther=function(){return this.other},r.prototype.setOther=function(e){this.other=e},r.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},r.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},r.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},r})(),Je=(function(){function r(){}return r.prototype.exp=function(e){return this.expTable[e]},r.prototype.log=function(e){if(e===0)throw new N;return this.logTable[e]},r.addOrSubtract=function(e,t){return e^t},r})(),Be=(function(){function r(e,t){if(t.length===0)throw new N;this.field=e;var n=t.length;if(n>1&&t[0]===0){for(var i=1;in.length){var i=t;t=n,n=i}var a=new Int32Array(n.length),o=n.length-t.length;Y.arraycopy(n,0,a,0,o);for(var f=o;f=e.getDegree()&&!i.isZero();){var f=i.getDegree()-e.getDegree(),u=t.multiply(i.getCoefficient(i.getDegree()),o),s=e.multiplyByMonomial(f,u),c=t.buildMonomial(f,u);n=n.addOrSubtract(c),i=i.addOrSubtract(s)}return[n,i]},r.prototype.toString=function(){for(var e="",t=this.getDegree();t>=0;t--){var n=this.getCoefficient(t);if(n!==0){if(n<0?(e+=" - ",n=-n):e.length>0&&(e+=" + "),t===0||n!==1){var i=this.field.log(n);i===0?e+="1":i===1?e+="a":(e+="a^",e+=i)}t!==0&&(t===1?e+="x":(e+="x^",e+=t))}}return e},r})(),mn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Br=(function(r){mn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ArithmeticException",e})(Ae),In=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),_e=(function(r){In(e,r);function e(t,n,i){var a=r.call(this)||this;a.primitive=t,a.size=n,a.generatorBase=i;for(var o=new Int32Array(n),f=1,u=0;u=n&&(f^=t,f&=n-1);a.expTable=o;for(var s=new Int32Array(n),u=0;u=(n/2|0);){var c=o,h=u;if(o=f,u=s,o.isZero())throw new it("r_{i-1} was zero");f=c;for(var l=a.getZero(),d=o.getCoefficient(o.getDegree()),v=a.inverse(d);f.getDegree()>=o.getDegree()&&!f.isZero();){var x=f.getDegree()-o.getDegree(),g=a.multiply(f.getCoefficient(f.getDegree()),v);l=l.addOrSubtract(a.buildMonomial(x,g)),f=f.addOrSubtract(o.multiplyByMonomial(x,g))}if(s=l.multiply(u).addOrSubtract(h),f.getDegree()>=o.getDegree())throw new nt("Division algorithm failed to reduce polynomial?")}var w=s.getCoefficient(0);if(w===0)throw new it("sigmaTilde(0) was zero");var y=a.inverse(w),A=s.multiplyScalar(y),E=f.multiplyScalar(y);return[A,E]},r.prototype.findErrorLocations=function(e){var t=e.getDegree();if(t===1)return Int32Array.from([e.getCoefficient(1)]);for(var n=new Int32Array(t),i=0,a=this.field,o=1;o1,v,v+n-1),v+=n-1;else for(var x=n-1;x>=0;--x)d[v++]=(l&1<=8?r.readCode(e,t,8):r.readCode(e,t,n)<<8-n},r.convertBoolArrayToByteArray=function(e){for(var t=new Uint8Array((e.length+7)/8),n=0;n","?","[","]","{","}","CTRL_UL"],r.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],r})(),U=(function(){function r(){}return r.round=function(e){return isNaN(e)?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},r.distance=function(e,t,n,i){var a=e-n,o=t-i;return Math.sqrt(a*a+o*o)},r.sum=function(e){for(var t=0,n=0,i=e.length;n!==i;n++){var a=e[n];t+=a}return t},r})(),Bt=(function(){function r(){}return r.floatToIntBits=function(e){return e},r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r})(),b=(function(){function r(e,t){this.x=e,this.y=t}return r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.equals=function(e){if(e instanceof r){var t=e;return this.x===t.x&&this.y===t.y}return!1},r.prototype.hashCode=function(){return 31*Bt.floatToIntBits(this.x)+Bt.floatToIntBits(this.y)},r.prototype.toString=function(){return"("+this.x+","+this.y+")"},r.orderBestPatterns=function(e){var t=this.distance(e[0],e[1]),n=this.distance(e[1],e[2]),i=this.distance(e[0],e[2]),a,o,f;if(n>=t&&n>=i?(o=e[0],a=e[1],f=e[2]):i>=n&&i>=t?(o=e[1],a=e[0],f=e[2]):(o=e[2],a=e[0],f=e[1]),this.crossProductZ(a,o,f)<0){var u=a;a=f,f=u}e[0]=a,e[1]=o,e[2]=f},r.distance=function(e,t){return U.distance(e.x,e.y,t.x,t.y)},r.crossProductZ=function(e,t,n){var i=t.x,a=t.y;return(n.x-i)*(e.y-a)-(n.y-a)*(e.x-i)},r})(),Xt=(function(){function r(e,t){this.bits=e,this.points=t}return r.prototype.getBits=function(){return this.bits},r.prototype.getPoints=function(){return this.points},r})(),Tn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Dn=(function(r){Tn(e,r);function e(t,n,i,a,o){var f=r.call(this,t,n)||this;return f.compact=i,f.nbDatablocks=a,f.nbLayers=o,f}return e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e})(Xt),Ft=(function(){function r(e,t,n,i){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),t==null&&(t=r.INIT_SIZE),n==null&&(n=e.getWidth()/2|0),i==null&&(i=e.getHeight()/2|0);var a=t/2|0;if(this.leftInit=n-a,this.rightInit=n+a,this.upInit=i-a,this.downInit=i+a,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new C}return r.prototype.detect=function(){for(var e=this.leftInit,t=this.rightInit,n=this.upInit,i=this.downInit,a=!1,o=!0,f=!1,u=!1,s=!1,c=!1,h=!1,l=this.width,d=this.height;o;){o=!1;for(var v=!0;(v||!u)&&t=l){a=!0;break}for(var x=!0;(x||!s)&&i=d){a=!0;break}for(var g=!0;(g||!c)&&e>=0;)g=this.containsBlackPoint(n,i,e,!1),g?(e--,o=!0,c=!0):c||e--;if(e<0){a=!0;break}for(var w=!0;(w||!h)&&n>=0;)w=this.containsBlackPoint(e,t,n,!0),w?(n--,o=!0,h=!0):h||n--;if(n<0){a=!0;break}o&&(f=!0)}if(!a&&f){for(var y=t-e,A=null,E=1;A===null&&En||u<-1||u>i)throw new C;a=!1,f===-1?(t[o]=0,a=!0):f===n&&(t[o]=n-1,a=!0),u===-1?(t[o+1]=0,a=!0):u===i&&(t[o+1]=i-1,a=!0)}a=!0;for(var o=t.length-2;o>=0&&a;o-=2){var f=Math.floor(t[o]),u=Math.floor(t[o+1]);if(f<-1||f>n||u<-1||u>i)throw new C;a=!1,f===-1?(t[o]=0,a=!0):f===n&&(t[o]=n-1,a=!0),u===-1?(t[o+1]=0,a=!0):u===i&&(t[o+1]=i-1,a=!0)}},r})(),Fr=(function(){function r(e,t,n,i,a,o,f,u,s){this.a11=e,this.a21=t,this.a31=n,this.a12=i,this.a22=a,this.a32=o,this.a13=f,this.a23=u,this.a33=s}return r.quadrilateralToQuadrilateral=function(e,t,n,i,a,o,f,u,s,c,h,l,d,v,x,g){var w=r.quadrilateralToSquare(e,t,n,i,a,o,f,u),y=r.squareToQuadrilateral(s,c,h,l,d,v,x,g);return y.times(w)},r.prototype.transformPoints=function(e){for(var t=e.length,n=this.a11,i=this.a12,a=this.a13,o=this.a21,f=this.a22,u=this.a23,s=this.a31,c=this.a32,h=this.a33,l=0;l>1&127):(i<<=10,i+=(o>>2&992)+(o>>1&31))}var f=this.getCorrectedParameterData(i,this.compact);this.compact?(this.nbLayers=(f>>6)+1,this.nbDataBlocks=(f&63)+1):(this.nbLayers=(f>>11)+1,this.nbDataBlocks=(f&2047)+1)},r.prototype.getRotation=function(e,t){var n=0;e.forEach(function(a,o,f){var u=(a>>t-2<<1)+(a&1);n=(n<<3)+u}),n=((n&1)<<11)+(n>>1);for(var i=0;i<4;i++)if(B.bitCount(n^this.EXPECTED_CORNER_BITS[i])<=2)return i;throw new C},r.prototype.getCorrectedParameterData=function(e,t){var n,i;t?(n=7,i=2):(n=10,i=4);for(var a=n-i,o=new Int32Array(n),f=n-1;f>=0;--f)o[f]=e&15,e>>=4;try{var u=new _t(_e.AZTEC_PARAM);u.decode(o,a)}catch{throw new C}for(var s=0,f=0;f2){var h=this.distancePoint(c,f)*this.nbCenterLayers/(this.distancePoint(a,t)*(this.nbCenterLayers+2));if(h<.75||h>1.25||!this.isWhiteOrBlackRectangle(f,u,s,c))break}t=f,n=u,i=s,a=c,o=!o}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new C;this.compact=this.nbCenterLayers===5;var l=new b(t.getX()+.5,t.getY()-.5),d=new b(n.getX()+.5,n.getY()+.5),v=new b(i.getX()-.5,i.getY()+.5),x=new b(a.getX()-.5,a.getY()-.5);return this.expandSquare([l,d,v,x],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},r.prototype.getMatrixCenter=function(){var e,t,n,i;try{var a=new Ft(this.image).detect();e=a[0],t=a[1],n=a[2],i=a[3]}catch{var o=this.image.getWidth()/2,f=this.image.getHeight()/2;e=this.getFirstDifferent(new we(o+7,f-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new we(o+7,f+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new we(o-7,f+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new we(o-7,f-7),!1,-1,-1).toResultPoint()}var u=U.round((e.getX()+i.getX()+t.getX()+n.getX())/4),s=U.round((e.getY()+i.getY()+t.getY()+n.getY())/4);try{var a=new Ft(this.image,15,u,s).detect();e=a[0],t=a[1],n=a[2],i=a[3]}catch{e=this.getFirstDifferent(new we(u+7,s-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new we(u+7,s+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new we(u-7,s+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new we(u-7,s-7),!1,-1,-1).toResultPoint()}return u=U.round((e.getX()+i.getX()+t.getX()+n.getX())/4),s=U.round((e.getY()+i.getY()+t.getY()+n.getY())/4),new we(u,s)},r.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},r.prototype.sampleGrid=function(e,t,n,i,a){var o=Wt.getInstance(),f=this.getDimension(),u=f/2-this.nbCenterLayers,s=f/2+this.nbCenterLayers;return o.sampleGrid(e,f,f,u,u,s,u,s,s,u,s,t.getX(),t.getY(),n.getX(),n.getY(),i.getX(),i.getY(),a.getX(),a.getY())},r.prototype.sampleLine=function(e,t,n){for(var i=0,a=this.distanceResultPoint(e,t),o=a/n,f=e.getX(),u=e.getY(),s=o*(t.getX()-e.getX())/a,c=o*(t.getY()-e.getY())/a,h=0;h.1&&l<.9?0:l<=.1===s?1:-1},r.prototype.getFirstDifferent=function(e,t,n,i){for(var a=e.getX()+n,o=e.getY()+i;this.isValid(a,o)&&this.image.get(a,o)===t;)a+=n,o+=i;for(a-=n,o-=i;this.isValid(a,o)&&this.image.get(a,o)===t;)a+=n;for(a-=n;this.isValid(a,o)&&this.image.get(a,o)===t;)o+=i;return o-=i,new we(a,o)},r.prototype.expandSquare=function(e,t,n){var i=n/(2*t),a=e[0].getX()-e[2].getX(),o=e[0].getY()-e[2].getY(),f=(e[0].getX()+e[2].getX())/2,u=(e[0].getY()+e[2].getY())/2,s=new b(f+i*a,u+i*o),c=new b(f-i*a,u-i*o);a=e[1].getX()-e[3].getX(),o=e[1].getY()-e[3].getY(),f=(e[1].getX()+e[3].getX())/2,u=(e[1].getY()+e[3].getY())/2;var h=new b(f+i*a,u+i*o),l=new b(f-i*a,u-i*o),d=[s,h,c,l];return d},r.prototype.isValid=function(e,t){return e>=0&&e0&&t>(o?8:5)),u;o?u=i:u=15;for(var s=Math.trunc(i/2),c=0;c=i)break;try{a=e.getBlackRow(d,a)}catch{continue}for(var v=function(y){if(y===1&&(a.reverse(),t&&t.get(X.NEED_RESULT_POINT_CALLBACK)===!0)){var A=new Map;t.forEach(function(I,S){return A.set(S,I)}),A.delete(X.NEED_RESULT_POINT_CALLBACK),t=A}try{var E=x.decodeRow(d,a,t);if(y===1){E.putMetadata(de.ORIENTATION,180);var m=E.getResultPoints();m!==null&&(m[0]=new b(n-m[0].getX()-1,m[0].getY()),m[1]=new b(n-m[1].getX()-1,m[1].getY()))}return{value:E}}catch{}},x=this,g=0;g<2;g++){var w=v(g);if(typeof w=="object")return w.value}}throw new C},r.recordPattern=function(e,t,n){for(var i=n.length,a=0;a=o)throw new C;for(var f=!e.get(t),u=0,s=t;s0&&i>=0;)e.get(--t)!==a&&(i--,a=!a);if(i>=0)throw new C;r.recordPattern(e,t+1,n)},r.patternMatchVariance=function(e,t,n){for(var i=e.length,a=0,o=0,f=0;fl?h-l:l-h;if(d>n)return Number.POSITIVE_INFINITY;s+=d}return s/a},r})(),Mn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Jt=(function(r){Mn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.findStartPattern=function(t){for(var n=t.getSize(),i=t.getNextSet(0),a=0,o=Int32Array.from([0,0,0,0,0,0]),f=i,u=!1,s=6,c=i;c=0&&t.isRange(Math.max(0,f-(c-f)/2),f,!1))return Int32Array.from([f,c,l]);f+=o[0]+o[1],o=o.slice(2,o.length),o[a-1]=0,o[a]=0,a--}else a++;o[a]=1,u=!u}throw new C},e.decodeCode=function(t,n,i){fe.recordPattern(t,i,n);for(var a=e.MAX_AVG_VARIANCE,o=-1,f=0;f=0)return o;throw new C},e.prototype.decodeRow=function(t,n,i){var a=i&&i.get(X.ASSUME_GS1)===!0,o=e.findStartPattern(n),f=o[2],u=0,s=new Uint8Array(20);s[u++]=f;var c;switch(f){case e.CODE_START_A:c=e.CODE_CODE_A;break;case e.CODE_START_B:c=e.CODE_CODE_B;break;case e.CODE_START_C:c=e.CODE_CODE_C;break;default:throw new T}for(var h=!1,l=!1,d="",v=o[0],x=o[1],g=Int32Array.from([0,0,0,0,0,0]),w=0,y=0,A=f,E=0,m=!0,I=!1,S=!1;!h;){var D=l;switch(l=!1,w=y,y=e.decodeCode(n,g,x),s[u++]=y,y!==e.CODE_STOP&&(m=!0),y!==e.CODE_STOP&&(E++,A+=E*y),v=x,x+=g.reduce(function(Et,Ct){return Et+Ct},0),y){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new T}switch(c){case e.CODE_CODE_A:if(y<64)S===I?d+=String.fromCharCode(32+y):d+=String.fromCharCode(32+y+128),S=!1;else if(y<96)S===I?d+=String.fromCharCode(y-64):d+=String.fromCharCode(y+64),S=!1;else switch(y!==e.CODE_STOP&&(m=!1),y){case e.CODE_FNC_1:a&&(d.length===0?d+="]C1":d+="");break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!I&&S?(I=!0,S=!1):I&&S?(I=!1,S=!1):S=!0;break;case e.CODE_SHIFT:l=!0,c=e.CODE_CODE_B;break;case e.CODE_CODE_B:c=e.CODE_CODE_B;break;case e.CODE_CODE_C:c=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_B:if(y<96)S===I?d+=String.fromCharCode(32+y):d+=String.fromCharCode(32+y+128),S=!1;else switch(y!==e.CODE_STOP&&(m=!1),y){case e.CODE_FNC_1:a&&(d.length===0?d+="]C1":d+="");break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!I&&S?(I=!0,S=!1):I&&S?(I=!1,S=!1):S=!0;break;case e.CODE_SHIFT:l=!0,c=e.CODE_CODE_A;break;case e.CODE_CODE_A:c=e.CODE_CODE_A;break;case e.CODE_CODE_C:c=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_C:if(y<100)y<10&&(d+="0"),d+=y;else switch(y!==e.CODE_STOP&&(m=!1),y){case e.CODE_FNC_1:a&&(d.length===0?d+="]C1":d+="");break;case e.CODE_CODE_A:c=e.CODE_CODE_A;break;case e.CODE_CODE_B:c=e.CODE_CODE_B;break;case e.CODE_STOP:h=!0;break}break}D&&(c=c===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var P=x-v;if(x=n.getNextUnset(x),!n.isRange(x,Math.min(n.getSize(),x+(x-v)/2),!1))throw new C;if(A-=E*w,A%103!==w)throw new te;var R=d.length;if(R===0)throw new C;R>0&&m&&(c===e.CODE_CODE_C?d=d.substring(0,R-2):d=d.substring(0,R-1));for(var J=(o[1]+o[0])/2,L=v+P/2,K=s.length,Ee=new Uint8Array(K),Ne=0;Ne=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},er=(function(r){Bn(e,r);function e(t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=r.call(this)||this;return i.usingCheckDigit=t,i.extendedMode=n,i.decodeRowResult="",i.counters=new Int32Array(9),i}return e.prototype.decodeRow=function(t,n,i){var a,o,f,u,s=this.counters;s.fill(0),this.decodeRowResult="";var c=e.findAsteriskPattern(n,s),h=n.getNextSet(c[1]),l=n.getSize(),d,v;do{e.recordPattern(n,h,s);var x=e.toNarrowWidePattern(s);if(x<0)throw new C;d=e.patternToChar(x),this.decodeRowResult+=d,v=h;try{for(var g=(a=void 0,mt(s)),w=g.next();!w.done;w=g.next()){var y=w.value;h+=y}}catch(K){a={error:K}}finally{try{w&&!w.done&&(o=g.return)&&o.call(g)}finally{if(a)throw a.error}}h=n.getNextSet(h)}while(d!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var A=0;try{for(var E=mt(s),m=E.next();!m.done;m=E.next()){var y=m.value;A+=y}}catch(K){f={error:K}}finally{try{m&&!m.done&&(u=E.return)&&u.call(E)}finally{if(f)throw f.error}}var I=h-v-A;if(h!==l&&I*2o&&(u=h)}}catch(x){n={error:x}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}o=u,f=0;for(var l=0,d=0,v=0;vo&&(d|=1<0;v++){var h=t[v];if(h>o&&(f--,h*2>=l))return-1}return d}}while(f>3);return-1},e.patternToChar=function(t){for(var n=0;n="A"&&f<="Z")u=String.fromCharCode(f.charCodeAt(0)+32);else throw new T;break;case"$":if(f>="A"&&f<="Z")u=String.fromCharCode(f.charCodeAt(0)-64);else throw new T;break;case"%":if(f>="A"&&f<="E")u=String.fromCharCode(f.charCodeAt(0)-38);else if(f>="F"&&f<="J")u=String.fromCharCode(f.charCodeAt(0)-11);else if(f>="K"&&f<="O")u=String.fromCharCode(f.charCodeAt(0)+16);else if(f>="P"&&f<="T")u=String.fromCharCode(f.charCodeAt(0)+43);else if(f==="U")u="\0";else if(f==="V")u="@";else if(f==="W")u="`";else if(f==="X"||f==="Y"||f==="Z")u="";else throw new T;break;case"/":if(f>="A"&&f<="O")u=String.fromCharCode(f.charCodeAt(0)-32);else if(f==="Z")u=":";else throw new T;break}i+=u,a++}else i+=o}return i},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e})(fe),Fn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),It=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tr=(function(r){Fn(e,r);function e(){var t=r.call(this)||this;return t.decodeRowResult="",t.counters=new Int32Array(6),t}return e.prototype.decodeRow=function(t,n,i){var a,o,f,u,s=this.findAsteriskPattern(n),c=n.getNextSet(s[1]),h=n.getSize(),l=this.counters;l.fill(0),this.decodeRowResult="";var d,v;do{e.recordPattern(n,c,l);var x=this.toPattern(l);if(x<0)throw new C;d=this.patternToChar(x),this.decodeRowResult+=d,v=c;try{for(var g=(a=void 0,It(l)),w=g.next();!w.done;w=g.next()){var y=w.value;c+=y}}catch(P){a={error:P}}finally{try{w&&!w.done&&(o=g.return)&&o.call(g)}finally{if(a)throw a.error}}c=n.getNextSet(c)}while(d!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var A=0;try{for(var E=It(l),m=E.next();!m.done;m=E.next()){var y=m.value;A+=y}}catch(P){f={error:P}}finally{try{m&&!m.done&&(u=E.return)&&u.call(E)}finally{if(f)throw f.error}}if(c===h||!n.get(c))throw new C;if(this.decodeRowResult.length<2)throw new C;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var I=this.decodeExtended(this.decodeRowResult),S=(s[1]+s[0])/2,D=v+A/2;return new pe(I,null,0,[new b(S,t),new b(D,t)],O.CODE_93,new Date().getTime())},e.prototype.findAsteriskPattern=function(t){var n=t.getSize(),i=t.getNextSet(0);this.counters.fill(0);for(var a=this.counters,o=i,f=!1,u=a.length,s=0,c=i;c4)return-1;if((h&1)===0)for(var d=0;d="a"&&o<="d"){if(a>=n-1)throw new T;var f=t.charAt(a+1),u="\0";switch(o){case"d":if(f>="A"&&f<="Z")u=String.fromCharCode(f.charCodeAt(0)+32);else throw new T;break;case"a":if(f>="A"&&f<="Z")u=String.fromCharCode(f.charCodeAt(0)-64);else throw new T;break;case"b":if(f>="A"&&f<="E")u=String.fromCharCode(f.charCodeAt(0)-38);else if(f>="F"&&f<="J")u=String.fromCharCode(f.charCodeAt(0)-11);else if(f>="K"&&f<="O")u=String.fromCharCode(f.charCodeAt(0)+16);else if(f>="P"&&f<="T")u=String.fromCharCode(f.charCodeAt(0)+43);else if(f==="U")u="\0";else if(f==="V")u="@";else if(f==="W")u="`";else if(f>="X"&&f<="Z")u="";else throw new T;break;case"c":if(f>="A"&&f<="O")u=String.fromCharCode(f.charCodeAt(0)-32);else if(f==="Z")u=":";else throw new T;break}i+=u,a++}else i+=o}return i},e.prototype.checkChecksums=function(t){var n=t.length;this.checkOneChecksum(t,n-2,20),this.checkOneChecksum(t,n-1,15)},e.prototype.checkOneChecksum=function(t,n,i){for(var a=1,o=0,f=n-1;f>=0;f--)o+=a*e.ALPHABET_STRING.indexOf(t.charAt(f)),++a>i&&(a=1);if(t.charAt(n)!==e.ALPHABET_STRING[o%47])throw new te},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",e.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350],e.ASTERISK_ENCODING=e.CHARACTER_ENCODINGS[47],e})(fe),Ln=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),kn=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},rr=(function(r){Ln(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.narrowLineWidth=-1,t}return e.prototype.decodeRow=function(t,n,i){var a,o,f=this.decodeStart(n),u=this.decodeEnd(n),s=new M;e.decodeMiddle(n,f[1],u[0],s);var c=s.toString(),h=null;i!=null&&(h=i.get(X.ALLOWED_LENGTHS)),h==null&&(h=e.DEFAULT_ALLOWED_LENGTHS);var l=c.length,d=!1,v=0;try{for(var x=kn(h),g=x.next();!g.done;g=x.next()){var w=g.value;if(l===w){d=!0;break}w>v&&(v=w)}}catch(E){a={error:E}}finally{try{g&&!g.done&&(o=x.return)&&o.call(x)}finally{if(a)throw a.error}}if(!d&&l>v&&(d=!0),!d)throw new T;var y=[new b(f[1],t),new b(u[0],t)],A=new pe(c,null,0,y,O.ITF,new Date().getTime());return A},e.decodeMiddle=function(t,n,i,a){var o=new Int32Array(10),f=new Int32Array(5),u=new Int32Array(5);for(o.fill(0),f.fill(0),u.fill(0);n0&&a>=0&&!t.get(a);a--)i--;if(i!==0)throw new C},e.skipWhiteSpace=function(t){var n=t.getSize(),i=t.getNextSet(0);if(i===n)throw new C;return i},e.prototype.decodeEnd=function(t){t.reverse();try{var n=e.skipWhiteSpace(t),i=void 0;try{i=e.findGuardPattern(t,n,e.END_PATTERN_REVERSED[0])}catch(o){o instanceof C&&(i=e.findGuardPattern(t,n,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,i[0]);var a=i[0];return i[0]=t.getSize()-i[1],i[1]=t.getSize()-a,i}finally{t.reverse()}},e.findGuardPattern=function(t,n,i){var a=i.length,o=new Int32Array(a),f=t.getSize(),u=!1,s=0,c=n;o.fill(0);for(var h=n;h=0)return i%10;throw new C},e.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e})(fe),Un=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Ye=(function(r){Un(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.decodeRowStringBuffer="",t}return e.findStartGuardPattern=function(t){for(var n=!1,i,a=0,o=Int32Array.from([0,0,0]);!n;){o=Int32Array.from([0,0,0]),i=e.findGuardPattern(t,a,!1,this.START_END_PATTERN,o);var f=i[0];a=i[1];var u=f-(a-f);u>=0&&(n=t.isRange(u,f,!1))}return i},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var n=t.length;if(n===0)return!1;var i=parseInt(t.charAt(n-1),10);return e.getStandardUPCEANChecksum(t.substring(0,n-1))===i},e.getStandardUPCEANChecksum=function(t){for(var n=t.length,i=0,a=n-1;a>=0;a-=2){var o=t.charAt(a).charCodeAt(0)-48;if(o<0||o>9)throw new T;i+=o}i*=3;for(var a=n-2;a>=0;a-=2){var o=t.charAt(a).charCodeAt(0)-48;if(o<0||o>9)throw new T;i+=o}return(1e3-i)%10},e.decodeEnd=function(t,n){return e.findGuardPattern(t,n,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(t,n,i,a){return this.findGuardPattern(t,n,i,a,new Int32Array(a.length))},e.findGuardPattern=function(t,n,i,a,o){var f=t.getSize();n=i?t.getNextUnset(n):t.getNextSet(n);for(var u=0,s=n,c=a.length,h=i,l=n;l=0)return f;throw new C},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],e})(fe),Vn=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Hn=(function(){function r(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return r.prototype.decodeRow=function(e,t,n){var i=this.decodeRowStringBuffer,a=this.decodeMiddle(t,n,i),o=i.toString(),f=r.parseExtensionString(o),u=[new b((n[0]+n[1])/2,e),new b(a,e)],s=new pe(o,null,0,u,O.UPC_EAN_EXTENSION,new Date().getTime());return f!=null&&s.putAllMetadata(f),s},r.prototype.decodeMiddle=function(e,t,n){var i,a,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var f=e.getSize(),u=t[1],s=0,c=0;c<5&&u=10&&(s|=1<<4-c),c!==4&&(u=e.getNextSet(u),u=e.getNextUnset(u))}if(n.length!==5)throw new C;var x=this.determineCheckDigit(s);if(r.extensionChecksum(n.toString())!==x)throw new C;return u},r.extensionChecksum=function(e){for(var t=e.length,n=0,i=t-2;i>=0;i-=2)n+=e.charAt(i).charCodeAt(0)-48;n*=3;for(var i=t-1;i>=0;i-=2)n+=e.charAt(i).charCodeAt(0)-48;return n*=3,n%10},r.prototype.determineCheckDigit=function(e){for(var t=0;t<10;t++)if(e===this.CHECK_DIGIT_ENCODINGS[t])return t;throw new C},r.parseExtensionString=function(e){if(e.length!==5)return null;var t=r.parseExtension5String(e);return t==null?null:new Map([[de.SUGGESTED_PRICE,t]])},r.parseExtension5String=function(e){var t;switch(e.charAt(0)){case"0":t="ÂŁ";break;case"5":t="$";break;case"9":switch(e){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}t="";break;default:t="";break}var n=parseInt(e.substring(1)),i=(n/100).toString(),a=n%100,o=a<10?"0"+a:a.toString();return t+i+"."+o},r})(),Gn=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Xn=(function(){function r(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return r.prototype.decodeRow=function(e,t,n){var i=this.decodeRowStringBuffer,a=this.decodeMiddle(t,n,i),o=i.toString(),f=r.parseExtensionString(o),u=[new b((n[0]+n[1])/2,e),new b(a,e)],s=new pe(o,null,0,u,O.UPC_EAN_EXTENSION,new Date().getTime());return f!=null&&s.putAllMetadata(f),s},r.prototype.decodeMiddle=function(e,t,n){var i,a,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var f=e.getSize(),u=t[1],s=0,c=0;c<2&&u=10&&(s|=1<<1-c),c!==1&&(u=e.getNextSet(u),u=e.getNextUnset(u))}if(n.length!==2)throw new C;if(parseInt(n.toString())%4!==s)throw new C;return u},r.parseExtensionString=function(e){return e.length!==2?null:new Map([[de.ISSUE_NUMBER,parseInt(e)]])},r})(),Wn=(function(){function r(){}return r.decodeRow=function(e,t,n){var i=Ye.findGuardPattern(t,n,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var a=new Hn;return a.decodeRow(e,t,i)}catch{var o=new Xn;return o.decodeRow(e,t,i)}},r.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),r})(),zn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ie=(function(r){zn(e,r);function e(){var t=r.call(this)||this;t.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map(function(f){return Int32Array.from(f)});for(var n=10;n<20;n++){for(var i=e.L_PATTERNS[n-10],a=new Int32Array(i.length),o=0;o=n.getSize()||!n.isRange(v,x,!1))throw new C;var g=c.toString();if(g.length<8)throw new T;if(!e.checkChecksum(g))throw new te;var w=(a[1]+a[0])/2,y=(l[1]+l[0])/2,A=this.getBarcodeFormat(),E=[new b(w,t),new b(y,t)],m=new pe(g,null,0,E,A,new Date().getTime()),I=0;try{var S=Wn.decodeRow(t,n,l[1]);m.putMetadata(de.UPC_EAN_EXTENSION,S.getText()),m.putAllMetadata(S.getResultMetadata()),m.addResultPoints(S.getResultPoints()),I=S.getText().length}catch{}var D=i==null?null:i.get(X.ALLOWED_EAN_EXTENSIONS);if(D!=null){var P=!1;for(var R in D)if(I.toString()===R){P=!0;break}if(!P)throw new C}return A===O.EAN_13||O.UPC_A,m},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var n=t.length;if(n===0)return!1;var i=parseInt(t.charAt(n-1),10);return e.getStandardUPCEANChecksum(t.substring(0,n-1))===i},e.getStandardUPCEANChecksum=function(t){for(var n=t.length,i=0,a=n-1;a>=0;a-=2){var o=t.charAt(a).charCodeAt(0)-48;if(o<0||o>9)throw new T;i+=o}i*=3;for(var a=n-2;a>=0;a-=2){var o=t.charAt(a).charCodeAt(0)-48;if(o<0||o>9)throw new T;i+=o}return(1e3-i)%10},e.decodeEnd=function(t,n){return e.findGuardPattern(t,n,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e})(Ye),jn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),nr=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Lt=(function(r){jn(e,r);function e(){var t=r.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return e.prototype.decodeMiddle=function(t,n,i){var a,o,f,u,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var c=t.getSize(),h=n[1],l=0,d=0;d<6&&h=10&&(l|=1<<5-d)}i=e.determineFirstDigit(i,l);var y=ie.findGuardPattern(t,h,!0,ie.MIDDLE_PATTERN,new Int32Array(ie.MIDDLE_PATTERN.length).fill(0));h=y[1];for(var d=0;d<6&&h=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ar=(function(r){Yn(e,r);function e(){var t=r.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return e.prototype.decodeMiddle=function(t,n,i){var a,o,f,u,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var c=t.getSize(),h=n[1],l=0;l<4&&h=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fr=(function(r){$n(e,r);function e(){var t=r.call(this)||this;return t.decodeMiddleCounters=new Int32Array(4),t}return e.prototype.decodeMiddle=function(t,n,i){var a,o,f=this.decodeMiddleCounters.map(function(g){return g});f[0]=0,f[1]=0,f[2]=0,f[3]=0;for(var u=t.getSize(),s=n[1],c=0,h=0;h<6&&s=10&&(c|=1<<5-h)}return e.determineNumSysAndCheckDigit(new M(i),c),s},e.prototype.decodeEnd=function(t,n){return e.findGuardPatternWithoutCounters(t,n,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(t){return ie.checkChecksum(e.convertUPCEtoUPCA(t))},e.determineNumSysAndCheckDigit=function(t,n){for(var i=0;i<=1;i++)for(var a=0;a<10;a++)if(n===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[i][a]){t.insert(0,"0"+i),t.append("0"+a);return}throw C.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return O.UPC_E},e.convertUPCEtoUPCA=function(t){var n=t.slice(1,7).split("").map(function(o){return o.charCodeAt(0)}),i=new M;i.append(t.charAt(0));var a=n[5];switch(a){case 0:case 1:case 2:i.appendChars(n,0,2),i.append(a),i.append("0000"),i.appendChars(n,2,3);break;case 3:i.appendChars(n,0,3),i.append("00000"),i.appendChars(n,3,2);break;case 4:i.appendChars(n,0,4),i.append("00000"),i.append(n[4]);break;default:i.appendChars(n,0,5),i.append("0000"),i.append(a);break}return t.length>=8&&i.append(t.charAt(7)),i.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],e})(ie),qn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ur=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},St=(function(r){qn(e,r);function e(t){var n=r.call(this)||this,i=t==null?null:t.get(X.POSSIBLE_FORMATS),a=[];return i!=null&&(i.indexOf(O.EAN_13)>-1&&a.push(new Lt),i.indexOf(O.UPC_A)>-1&&a.push(new or),i.indexOf(O.EAN_8)>-1&&a.push(new ar),i.indexOf(O.UPC_E)>-1&&a.push(new fr)),a.length===0&&(a.push(new Lt),a.push(new or),a.push(new ar),a.push(new fr)),n.readers=a,n}return e.prototype.decodeRow=function(t,n,i){var a,o;try{for(var f=ur(this.readers),u=f.next();!u.done;u=f.next()){var s=u.value;try{var c=s.decodeRow(t,n,i),h=c.getBarcodeFormat()===O.EAN_13&&c.getText().charAt(0)==="0",l=i==null?null:i.get(X.POSSIBLE_FORMATS),d=l==null||l.includes(O.UPC_A);if(h&&d){var v=c.getRawBytes(),x=new pe(c.getText().substring(1),v,v?v.length:null,c.getResultPoints(),O.UPC_A);return x.putAllMetadata(c.getResultMetadata()),x}return c}catch{}}}catch(g){a={error:g}}finally{try{u&&!u.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}throw new C},e.prototype.reset=function(){var t,n;try{for(var i=ur(this.readers),a=i.next();!a.done;a=i.next()){var o=a.value;o.reset()}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e})(fe),Qn=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Jn=(function(r){Qn(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},t}return e.prototype.decodeRow=function(t,n,i){var a=this.getValidRowData(n);if(!a)throw new C;var o=this.codaBarDecodeRow(a.row);if(!o)throw new C;return new pe(o,null,0,[new b(a.left,t),new b(a.right,t)],O.CODABAR,new Date().getTime())},e.prototype.getValidRowData=function(t){var n=t.toArray(),i=n.indexOf(!0);if(i===-1)return null;var a=n.lastIndexOf(!0);if(a<=i)return null;n=n.slice(i,a+1);for(var o=[],f=n[0],u=1,s=1;s0;){var a=t.splice(0,8).splice(0,7),o=a.map(function(u){return u=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ue=(function(r){ei(e,r);function e(){var t=r.call(this)||this;return t.decodeFinderCounters=new Int32Array(4),t.dataCharacterCounters=new Int32Array(8),t.oddRoundingErrors=new Array(4),t.evenRoundingErrors=new Array(4),t.oddCounts=new Array(t.dataCharacterCounters.length/2),t.evenCounts=new Array(t.dataCharacterCounters.length/2),t}return e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(t,n){for(var i=0;ia&&(a=n[o],i=o);t[i]++},e.decrement=function(t,n){for(var i=0,a=n[0],o=1;o=e.MIN_FINDER_PATTERN_RATIO&&f<=e.MAX_FINDER_PATTERN_RATIO){var u=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;try{for(var c=ti(t),h=c.next();!h.done;h=c.next()){var l=h.value;l>s&&(s=l),l=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Xe=(function(){function r(){}return r.getRSSvalue=function(e,t,n){var i,a,o=0;try{for(var f=ri(e),u=f.next();!u.done;u=f.next()){var s=u.value;o+=s}}catch(y){i={error:y}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}for(var c=0,h=0,l=e.length,d=0;d=l-d-1&&(x-=r.combins(o-v-(l-d),l-d-2)),l-d-1>1){for(var g=0,w=o-v-(l-d-2);w>t;w--)g+=r.combins(o-v-w-1,l-d-3);x-=g*(l-1-d)}else o-v>t&&x--;c+=x}o-=v}return c},r.combins=function(e,t){var n,i;e-t>t?(i=t,n=e-t):(i=e-t,n=t);for(var a=1,o=1,f=e;f>n;f--)a*=f,o<=i&&(a/=o,o++);for(;o<=i;)a/=o,o++;return a},r})(),ni=(function(){function r(){}return r.buildBitArray=function(e){var t=e.length*2-1;e[e.length-1].getRightChar()==null&&(t-=1);for(var n=12*t,i=new ce(n),a=0,o=e[0],f=o.getRightChar().getValue(),u=11;u>=0;--u)(f&1<=0;--h)(c&1<=0;--h)(l&1<10||i<0||i>10)throw new T;return a.firstDigit=n,a.secondDigit=i,a}return e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return this.firstDigit*10+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e})(zt),at=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fi=(function(){function r(){}return r.parseFieldsInGeneralPurpose=function(e){var t,n,i,a,o,f,u,s;if(!e)return null;if(e.length<2)throw new C;var c=e.substring(0,2);try{for(var h=at(r.TWO_DIGIT_DATA_LENGTH),l=h.next();!l.done;l=h.next()){var d=l.value;if(d[0]===c)return d[1]===r.VARIABLE_LENGTH?r.processVariableAI(2,d[2],e):r.processFixedAI(2,d[1],e)}}catch(I){t={error:I}}finally{try{l&&!l.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}if(e.length<3)throw new C;var v=e.substring(0,3);try{for(var x=at(r.THREE_DIGIT_DATA_LENGTH),g=x.next();!g.done;g=x.next()){var d=g.value;if(d[0]===v)return d[1]===r.VARIABLE_LENGTH?r.processVariableAI(3,d[2],e):r.processFixedAI(3,d[1],e)}}catch(I){i={error:I}}finally{try{g&&!g.done&&(a=x.return)&&a.call(x)}finally{if(i)throw i.error}}try{for(var w=at(r.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),y=w.next();!y.done;y=w.next()){var d=y.value;if(d[0]===v)return d[1]===r.VARIABLE_LENGTH?r.processVariableAI(4,d[2],e):r.processFixedAI(4,d[1],e)}}catch(I){o={error:I}}finally{try{y&&!y.done&&(f=w.return)&&f.call(w)}finally{if(o)throw o.error}}if(e.length<4)throw new C;var A=e.substring(0,4);try{for(var E=at(r.FOUR_DIGIT_DATA_LENGTH),m=E.next();!m.done;m=E.next()){var d=m.value;if(d[0]===A)return d[1]===r.VARIABLE_LENGTH?r.processVariableAI(4,d[2],e):r.processFixedAI(4,d[1],e)}}catch(I){u={error:I}}finally{try{m&&!m.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}throw new C},r.processFixedAI=function(e,t,n){if(n.lengththis.information.getSize())return e+4<=this.information.getSize();for(var t=e;tthis.information.getSize()){var t=this.extractNumericValueFromBitArray(e,4);return t===0?new Ge(this.information.getSize(),Ge.FNC1,Ge.FNC1):new Ge(this.information.getSize(),t-1,Ge.FNC1)}var n=this.extractNumericValueFromBitArray(e,7),i=(n-8)/11,a=(n-8)%11;return new Ge(e+7,i,a)},r.prototype.extractNumericValueFromBitArray=function(e,t){return r.extractNumericValueFromBitArray(this.information,e,t)},r.extractNumericValueFromBitArray=function(e,t,n){for(var i=0,a=0;athis.information.getSize())return!1;var t=this.extractNumericValueFromBitArray(e,5);if(t>=5&&t<16)return!0;if(e+7>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,7);if(n>=64&&n<116)return!0;if(e+8>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(e,8);return i>=232&&i<253},r.prototype.decodeIsoIec646=function(e){var t=this.extractNumericValueFromBitArray(e,5);if(t===15)return new Se(e+5,Se.FNC1);if(t>=5&&t<15)return new Se(e+5,"0"+(t-5));var n=this.extractNumericValueFromBitArray(e,7);if(n>=64&&n<90)return new Se(e+7,""+(n+1));if(n>=90&&n<116)return new Se(e+7,""+(n+7));var i=this.extractNumericValueFromBitArray(e,8),a;switch(i){case 232:a="!";break;case 233:a='"';break;case 234:a="%";break;case 235:a="&";break;case 236:a="'";break;case 237:a="(";break;case 238:a=")";break;case 239:a="*";break;case 240:a="+";break;case 241:a=",";break;case 242:a="-";break;case 243:a=".";break;case 244:a="/";break;case 245:a=":";break;case 246:a=";";break;case 247:a="<";break;case 248:a="=";break;case 249:a=">";break;case 250:a="?";break;case 251:a="_";break;case 252:a=" ";break;default:throw new T}return new Se(e+8,a)},r.prototype.isStillAlpha=function(e){if(e+5>this.information.getSize())return!1;var t=this.extractNumericValueFromBitArray(e,5);if(t>=5&&t<16)return!0;if(e+6>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,6);return n>=16&&n<63},r.prototype.decodeAlphanumeric=function(e){var t=this.extractNumericValueFromBitArray(e,5);if(t===15)return new Se(e+5,Se.FNC1);if(t>=5&&t<15)return new Se(e+5,"0"+(t-5));var n=this.extractNumericValueFromBitArray(e,6);if(n>=32&&n<58)return new Se(e+6,""+(n+33));var i;switch(n){case 58:i="*";break;case 59:i=",";break;case 60:i="-";break;case 61:i=".";break;case 62:i="/";break;default:throw new nt("Decoding invalid alphanumeric value: "+n)}return new Se(e+6,i)},r.prototype.isAlphaTo646ToAlphaLatch=function(e){if(e+1>this.information.getSize())return!1;for(var t=0;t<5&&t+ethis.information.getSize())return!1;for(var t=e;tthis.information.getSize())return!1;for(var t=0;t<4&&t+e=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Oi=(function(r){Si(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.pairs=new Array(e.MAX_PAIRS),t.rows=new Array,t.startEnd=[2],t}return e.prototype.decodeRow=function(t,n,i){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(t,n))}catch{}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(t,n))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(t,n){for(var i=!1;!i;)try{this.pairs.push(this.retrieveNextPair(n,this.pairs,t))}catch(f){if(f instanceof C){if(!this.pairs.length)throw new C;i=!0}}if(this.checkChecksum())return this.pairs;var a;if(this.rows.length?a=!0:a=!1,this.storeRow(t,!1),a){var o=this.checkRowsBoolean(!1);if(o!=null||(o=this.checkRowsBoolean(!0),o!=null))return o}throw new C},e.prototype.checkRowsBoolean=function(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());var n=null;try{n=this.checkRows(new Array,0)}catch(i){console.log(i)}return t&&(this.rows=this.rows.reverse()),n},e.prototype.checkRows=function(t,n){for(var i,a,o=n;of.length)){for(var u=!0,s=0;st){o=f.isEquivalent(this.pairs);break}a=f.isEquivalent(this.pairs),i++}o||a||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(i,new Ii(this.pairs,t,n)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(t,n){var i,a,o,f,u,s;try{for(var c=Pe(n),h=c.next();!h.done;h=c.next()){var l=h.value;if(l.getPairs().length!==t.length){var d=!0;try{for(var v=(o=void 0,Pe(l.getPairs())),x=v.next();!x.done;x=v.next()){var g=x.value,w=!1;try{for(var y=(u=void 0,Pe(t)),A=y.next();!A.done;A=y.next()){var E=A.value;if(sr.equals(g,E)){w=!0;break}}}catch(m){u={error:m}}finally{try{A&&!A.done&&(s=y.return)&&s.call(y)}finally{if(u)throw u.error}}w||(d=!1)}}catch(m){o={error:m}}finally{try{x&&!x.done&&(f=v.return)&&f.call(v)}finally{if(o)throw o.error}}}}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}},e.isPartialRow=function(t,n){var i,a,o,f,u,s;try{for(var c=Pe(n),h=c.next();!h.done;h=c.next()){var l=h.value,d=!0;try{for(var v=(o=void 0,Pe(t)),x=v.next();!x.done;x=v.next()){var g=x.value,w=!1;try{for(var y=(u=void 0,Pe(l.getPairs())),A=y.next();!A.done;A=y.next()){var E=A.value;if(g.equals(E)){w=!0;break}}}catch(m){u={error:m}}finally{try{A&&!A.done&&(s=y.return)&&s.call(y)}finally{if(u)throw u.error}}if(!w){d=!1;break}}}catch(m){o={error:m}}finally{try{x&&!x.done&&(f=v.return)&&f.call(v)}finally{if(o)throw o.error}}if(d)return!0}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(t){var n=ni.buildBitArray(t),i=mi(n),a=i.parseInformation(),o=t[0].getFinderPattern().getResultPoints(),f=t[t.length-1].getFinderPattern().getResultPoints(),u=[o[0],o[1],f[0],f[1]];return new pe(a,null,null,u,O.RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var t=this.pairs.get(0),n=t.getLeftChar(),i=t.getRightChar();if(i===null)return!1;for(var a=i.getChecksumPortion(),o=2,f=1;f=0)f=i;else if(this.isEmptyPair(n))f=0;else{var u=n[n.length-1];f=u.getFinderPattern().getStartEnd()[1]}var s=n.length%2!==0;this.startFromEven&&(s=!s);for(var c=!1;f=0&&!t.get(u);)u--;u++,a=this.startEnd[0]-u,o=u,f=this.startEnd[1]}else o=this.startEnd[0],f=t.getNextUnset(this.startEnd[1]+1),a=f-this.startEnd[1];var s=this.getDecodeFinderCounters();Y.arraycopy(s,0,s,1,s.length-1),s[0]=a;var c;try{c=this.parseFinderValue(s,e.FINDER_PATTERNS)}catch{return null}return new Lr(c,[o,f],o,f,n)},e.prototype.decodeDataCharacter=function(t,n,i,a){for(var o=this.getDataCharacterCounters(),f=0;f.3)throw new C;for(var v=this.getOddCounts(),x=this.getEvenCounts(),g=this.getOddRoundingErrors(),w=this.getEvenRoundingErrors(),u=0;u8){if(y>8.7)throw new C;A=8}var E=u/2;(u&1)===0?(v[E]=A,g[E]=y-A):(x[E]=A,w[E]=y-A)}this.adjustOddEvenCounts(h);for(var m=4*n.getValue()+(i?0:2)+(a?0:1)-1,I=0,S=0,u=v.length-1;u>=0;u--){if(e.isNotA1left(n,i,a)){var D=e.WEIGHTS[m][2*u];S+=v[u]*D}I+=v[u]}for(var P=0,u=x.length-1;u>=0;u--)if(e.isNotA1left(n,i,a)){var D=e.WEIGHTS[m][2*u+1];P+=x[u]*D}var R=S+P;if((I&1)!==0||I>13||I<4)throw new C;var J=(13-I)/2,L=e.SYMBOL_WIDEST[J],K=9-L,Ee=Xe.getRSSvalue(v,L,!0),Ne=Xe.getRSSvalue(x,K,!1),At=e.EVEN_TOTAL_SUBSET[J],Et=e.GSUM[J],Ct=Ee*At+Ne+Et;return new dt(Ct,R)},e.isNotA1left=function(t,n,i){return!(t.getValue()===0&&n&&i)},e.prototype.adjustOddEvenCounts=function(t){var n=U.sum(new Int32Array(this.getOddCounts())),i=U.sum(new Int32Array(this.getEvenCounts())),a=!1,o=!1;n>13?o=!0:n<4&&(a=!0);var f=!1,u=!1;i>13?u=!0:i<4&&(f=!0);var s=n+i-t,c=(n&1)===1,h=(i&1)===0;if(s===1)if(c){if(h)throw new C;o=!0}else{if(!h)throw new C;u=!0}else if(s===-1)if(c){if(h)throw new C;a=!0}else{if(!h)throw new C;f=!0}else if(s===0){if(c){if(!h)throw new C;n=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},cr=(function(r){bi(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.possibleLeftPairs=[],t.possibleRightPairs=[],t}return e.prototype.decodeRow=function(t,n,i){var a,o,f,u,s=this.decodePair(n,!1,t,i);e.addOrTally(this.possibleLeftPairs,s),n.reverse();var c=this.decodePair(n,!0,t,i);e.addOrTally(this.possibleRightPairs,c),n.reverse();try{for(var h=Ot(this.possibleLeftPairs),l=h.next();!l.done;l=h.next()){var d=l.value;if(d.getCount()>1)try{for(var v=(f=void 0,Ot(this.possibleRightPairs)),x=v.next();!x.done;x=v.next()){var g=x.value;if(g.getCount()>1&&e.checkChecksum(d,g))return e.constructResult(d,g)}}catch(w){f={error:w}}finally{try{x&&!x.done&&(u=v.return)&&u.call(v)}finally{if(f)throw f.error}}}}catch(w){a={error:w}}finally{try{l&&!l.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}throw new C},e.addOrTally=function(t,n){var i,a;if(n!=null){var o=!1;try{for(var f=Ot(t),u=f.next();!u.done;u=f.next()){var s=u.value;if(s.getValue()===n.getValue()){s.incrementCount(),o=!0;break}}}catch(c){i={error:c}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}o||t.push(n)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(t,n){for(var i=4537077*t.getValue()+n.getValue(),a=new String(i).toString(),o=new M,f=13-a.length;f>0;f--)o.append("0");o.append(a);for(var u=0,f=0;f<13;f++){var s=o.charAt(f).charCodeAt(0)-48;u+=(f&1)===0?3*s:s}u=10-u%10,u===10&&(u=0),o.append(u.toString());var c=t.getFinderPattern().getResultPoints(),h=n.getFinderPattern().getResultPoints();return new pe(o.toString(),null,0,[c[0],c[1],h[0],h[1]],O.RSS_14,new Date().getTime())},e.checkChecksum=function(t,n){var i=(t.getChecksumPortion()+16*n.getChecksumPortion())%79,a=9*t.getFinderPattern().getValue()+n.getFinderPattern().getValue();return a>72&&a--,a>8&&a--,i===a},e.prototype.decodePair=function(t,n,i,a){try{var o=this.findFinderPattern(t,n),f=this.parseFoundFinderPattern(t,i,n,o),u=a==null?null:a.get(X.NEED_RESULT_POINT_CALLBACK);if(u!=null){var s=(o[0]+o[1])/2;n&&(s=t.getSize()-1-s),u.foundPossibleResultPoint(new b(s,i))}var c=this.decodeDataCharacter(t,f,!0),h=this.decodeDataCharacter(t,f,!1);return new Di(1597*c.getValue()+h.getValue(),c.getChecksumPortion()+4*h.getChecksumPortion(),f)}catch{return null}},e.prototype.decodeDataCharacter=function(t,n,i){for(var a=this.getDataCharacterCounters(),o=0;o8&&(w=8);var y=Math.floor(f/2);(f&1)===0?(l[y]=w,v[y]=g-w):(d[y]=w,x[y]=g-w)}this.adjustOddEvenCounts(i,c);for(var A=0,E=0,f=l.length-1;f>=0;f--)E*=9,E+=l[f],A+=l[f];for(var m=0,I=0,f=d.length-1;f>=0;f--)m*=9,m+=d[f],I+=d[f];var S=E+3*m;if(i){if((A&1)!==0||A>12||A<4)throw new C;var D=(12-A)/2,P=e.OUTSIDE_ODD_WIDEST[D],R=9-P,J=Xe.getRSSvalue(l,P,!1),L=Xe.getRSSvalue(d,R,!0),K=e.OUTSIDE_EVEN_TOTAL_SUBSET[D],Ee=e.OUTSIDE_GSUM[D];return new dt(J*K+L+Ee,S)}else{if((I&1)!==0||I>10||I<4)throw new C;var D=(10-I)/2,P=e.INSIDE_ODD_WIDEST[D],R=9-P,J=Xe.getRSSvalue(l,P,!0),L=Xe.getRSSvalue(d,R,!1),Ne=e.INSIDE_ODD_TOTAL_SUBSET[D],Ee=e.INSIDE_GSUM[D];return new dt(L*Ne+J+Ee,S)}},e.prototype.findFinderPattern=function(t,n){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;for(var a=t.getSize(),o=!1,f=0;f=0&&o!==t.get(f);)f--;f++;var u=a[0]-f,s=this.getDecodeFinderCounters(),c=new Int32Array(s.length);Y.arraycopy(s,0,c,1,s.length-1),c[0]=u;var h=this.parseFinderValue(c,e.FINDER_PATTERNS),l=f,d=a[1];return i&&(l=t.getSize()-1-l,d=t.getSize()-1-d),new Lr(h,[f,a[1]],l,d,n)},e.prototype.adjustOddEvenCounts=function(t,n){var i=U.sum(new Int32Array(this.getOddCounts())),a=U.sum(new Int32Array(this.getEvenCounts())),o=!1,f=!1,u=!1,s=!1;t?(i>12?f=!0:i<4&&(o=!0),a>12?s=!0:a<4&&(u=!0)):(i>11?f=!0:i<5&&(o=!0),a>10?s=!0:a<4&&(u=!0));var c=i+a-n,h=(i&1)===(t?1:0),l=(a&1)===1;if(c===1)if(h){if(l)throw new C;f=!0}else{if(!l)throw new C;s=!0}else if(c===-1)if(h){if(l)throw new C;o=!0}else{if(!l)throw new C;u=!0}else if(c===0){if(h){if(!l)throw new C;i=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},G=(function(){function r(e,t,n){this.ecCodewords=e,this.ecBlocks=[t],n&&this.ecBlocks.push(n)}return r.prototype.getECCodewords=function(){return this.ecCodewords},r.prototype.getECBlocks=function(){return this.ecBlocks},r})(),V=(function(){function r(e,t){this.count=e,this.dataCodewords=t}return r.prototype.getCount=function(){return this.count},r.prototype.getDataCodewords=function(){return this.dataCodewords},r})(),Pi=(function(){function r(e,t,n,i,a,o){var f,u;this.versionNumber=e,this.symbolSizeRows=t,this.symbolSizeColumns=n,this.dataRegionSizeRows=i,this.dataRegionSizeColumns=a,this.ecBlocks=o;var s=0,c=o.getECCodewords(),h=o.getECBlocks();try{for(var l=hr(h),d=l.next();!d.done;d=l.next()){var v=d.value;s+=v.getCount()*(v.getDataCodewords()+c)}}catch(x){f={error:x}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(f)throw f.error}}this.totalCodewords=s}return r.prototype.getVersionNumber=function(){return this.versionNumber},r.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},r.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},r.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},r.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},r.prototype.getTotalCodewords=function(){return this.totalCodewords},r.prototype.getECBlocks=function(){return this.ecBlocks},r.getVersionForDimensions=function(e,t){var n,i;if((e&1)!==0||(t&1)!==0)throw new T;try{for(var a=hr(r.VERSIONS),o=a.next();!o.done;o=a.next()){var f=o.value;if(f.symbolSizeRows===e&&f.symbolSizeColumns===t)return f}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}throw new T},r.prototype.toString=function(){return""+this.versionNumber},r.buildVersions=function(){return[new r(1,10,10,8,8,new G(5,new V(1,3))),new r(2,12,12,10,10,new G(7,new V(1,5))),new r(3,14,14,12,12,new G(10,new V(1,8))),new r(4,16,16,14,14,new G(12,new V(1,12))),new r(5,18,18,16,16,new G(14,new V(1,18))),new r(6,20,20,18,18,new G(18,new V(1,22))),new r(7,22,22,20,20,new G(20,new V(1,30))),new r(8,24,24,22,22,new G(24,new V(1,36))),new r(9,26,26,24,24,new G(28,new V(1,44))),new r(10,32,32,14,14,new G(36,new V(1,62))),new r(11,36,36,16,16,new G(42,new V(1,86))),new r(12,40,40,18,18,new G(48,new V(1,114))),new r(13,44,44,20,20,new G(56,new V(1,144))),new r(14,48,48,22,22,new G(68,new V(1,174))),new r(15,52,52,24,24,new G(42,new V(2,102))),new r(16,64,64,14,14,new G(56,new V(2,140))),new r(17,72,72,16,16,new G(36,new V(4,92))),new r(18,80,80,18,18,new G(48,new V(4,114))),new r(19,88,88,20,20,new G(56,new V(4,144))),new r(20,96,96,22,22,new G(68,new V(4,174))),new r(21,104,104,24,24,new G(56,new V(6,136))),new r(22,120,120,18,18,new G(68,new V(6,175))),new r(23,132,132,20,20,new G(62,new V(8,163))),new r(24,144,144,22,22,new G(62,new V(8,156),new V(2,155))),new r(25,8,18,6,16,new G(7,new V(1,5))),new r(26,8,32,6,14,new G(11,new V(1,10))),new r(27,12,26,10,24,new G(14,new V(1,16))),new r(28,12,36,10,16,new G(18,new V(1,22))),new r(29,16,36,14,16,new G(24,new V(1,32))),new r(30,16,48,14,22,new G(28,new V(1,49)))]},r.VERSIONS=r.buildVersions(),r})(),Mi=(function(){function r(e){var t=e.getHeight();if(t<8||t>144||(t&1)!==0)throw new T;this.version=r.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new be(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return r.prototype.getVersion=function(){return this.version},r.readVersion=function(e){var t=e.getHeight(),n=e.getWidth();return Pi.getVersionForDimensions(t,n)},r.prototype.readCodewords=function(){var e=new Int8Array(this.version.getTotalCodewords()),t=0,n=4,i=0,a=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),f=!1,u=!1,s=!1,c=!1;do if(n===a&&i===0&&!f)e[t++]=this.readCorner1(a,o)&255,n-=2,i+=2,f=!0;else if(n===a-2&&i===0&&(o&3)!==0&&!u)e[t++]=this.readCorner2(a,o)&255,n-=2,i+=2,u=!0;else if(n===a+4&&i===2&&(o&7)===0&&!s)e[t++]=this.readCorner3(a,o)&255,n-=2,i+=2,s=!0;else if(n===a-2&&i===0&&(o&7)===4&&!c)e[t++]=this.readCorner4(a,o)&255,n-=2,i+=2,c=!0;else{do n=0&&!this.readMappingMatrix.get(i,n)&&(e[t++]=this.readUtah(n,i,a,o)&255),n-=2,i+=2;while(n>=0&&i=0&&i=0);n+=3,i+=1}while(n=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Bi=(function(){function r(e,t){this.numDataCodewords=e,this.codewords=t}return r.getDataBlocks=function(e,t){var n,i,a,o,f=t.getECBlocks(),u=0,s=f.getECBlocks();try{for(var c=lr(s),h=c.next();!h.done;h=c.next()){var l=h.value;u+=l.getCount()}}catch(Ee){n={error:Ee}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}var d=new Array(u),v=0;try{for(var x=lr(s),g=x.next();!g.done;g=x.next())for(var l=g.value,w=0;w7?w-1:w;d[L].codewords[K]=e[S++]}if(S!==e.length)throw new N;return d},r.prototype.getNumDataCodewords=function(){return this.numDataCodewords},r.prototype.getCodewords=function(){return this.codewords},r})(),Vr=(function(){function r(e){this.bytes=e,this.byteOffset=0,this.bitOffset=0}return r.prototype.getBitOffset=function(){return this.bitOffset},r.prototype.getByteOffset=function(){return this.byteOffset},r.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new N(""+e);var t=0,n=this.bitOffset,i=this.byteOffset,a=this.bytes;if(n>0){var o=8-n,f=e>8-f<>u,e-=f,n+=f,n===8&&(n=0,i++)}if(e>0){for(;e>=8;)t=t<<8|a[i]&255,i++,e-=8;if(e>0){var u=8-e,s=255>>u<>u,n+=e}}return this.bitOffset=n,this.byteOffset=i,t},r.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},r})(),re;(function(r){r[r.PAD_ENCODE=0]="PAD_ENCODE",r[r.ASCII_ENCODE=1]="ASCII_ENCODE",r[r.C40_ENCODE=2]="C40_ENCODE",r[r.TEXT_ENCODE=3]="TEXT_ENCODE",r[r.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",r[r.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",r[r.BASE256_ENCODE=6]="BASE256_ENCODE"})(re||(re={}));var Fi=(function(){function r(){}return r.decode=function(e){var t=new Vr(e),n=new M,i=new M,a=new Array,o=re.ASCII_ENCODE;do if(o===re.ASCII_ENCODE)o=this.decodeAsciiSegment(t,n,i);else{switch(o){case re.C40_ENCODE:this.decodeC40Segment(t,n);break;case re.TEXT_ENCODE:this.decodeTextSegment(t,n);break;case re.ANSIX12_ENCODE:this.decodeAnsiX12Segment(t,n);break;case re.EDIFACT_ENCODE:this.decodeEdifactSegment(t,n);break;case re.BASE256_ENCODE:this.decodeBase256Segment(t,n,a);break;default:throw new T}o=re.ASCII_ENCODE}while(o!==re.PAD_ENCODE&&t.available()>0);return i.length()>0&&n.append(i.toString()),new wt(e,n.toString(),a.length===0?null:a,null)},r.decodeAsciiSegment=function(e,t,n){var i=!1;do{var a=e.readBits(8);if(a===0)throw new T;if(a<=128)return i&&(a+=128),t.append(String.fromCharCode(a-1)),re.ASCII_ENCODE;if(a===129)return re.PAD_ENCODE;if(a<=229){var o=a-130;o<10&&t.append("0"),t.append(""+o)}else switch(a){case 230:return re.C40_ENCODE;case 231:return re.BASE256_ENCODE;case 232:t.append("");break;case 233:case 234:break;case 235:i=!0;break;case 236:t.append("[)>05"),n.insert(0,"");break;case 237:t.append("[)>06"),n.insert(0,"");break;case 238:return re.ANSIX12_ENCODE;case 239:return re.TEXT_ENCODE;case 240:return re.EDIFACT_ENCODE;case 241:break;default:if(a!==254||e.available()!==0)throw new T;break}}while(e.available()>0);return re.ASCII_ENCODE},r.decodeC40Segment=function(e,t){var n=!1,i=[],a=0;do{if(e.available()===8)return;var o=e.readBits(8);if(o===254)return;this.parseTwoBytes(o,e.readBits(8),i);for(var f=0;f<3;f++){var u=i[f];switch(a){case 0:if(u<3)a=u+1;else if(u0)},r.decodeTextSegment=function(e,t){var n=!1,i=[],a=0;do{if(e.available()===8)return;var o=e.readBits(8);if(o===254)return;this.parseTwoBytes(o,e.readBits(8),i);for(var f=0;f<3;f++){var u=i[f];switch(a){case 0:if(u<3)a=u+1;else if(u0)},r.decodeAnsiX12Segment=function(e,t){var n=[];do{if(e.available()===8)return;var i=e.readBits(8);if(i===254)return;this.parseTwoBytes(i,e.readBits(8),n);for(var a=0;a<3;a++){var o=n[a];switch(o){case 0:t.append("\r");break;case 1:t.append("*");break;case 2:t.append(">");break;case 3:t.append(" ");break;default:if(o<14)t.append(String.fromCharCode(o+44));else if(o<40)t.append(String.fromCharCode(o+51));else throw new T;break}}}while(e.available()>0)},r.parseTwoBytes=function(e,t,n){var i=(e<<8)+t-1,a=Math.floor(i/1600);n[0]=a,i-=a*1600,a=Math.floor(i/40),n[1]=a,n[2]=i-a*40},r.decodeEdifactSegment=function(e,t){do{if(e.available()<=16)return;for(var n=0;n<4;n++){var i=e.readBits(6);if(i===31){var a=8-e.getBitOffset();a!==8&&e.readBits(a);return}(i&32)===0&&(i|=64),t.append(String.fromCharCode(i))}}while(e.available()>0)},r.decodeBase256Segment=function(e,t,n){var i=1+e.getByteOffset(),a=this.unrandomize255State(e.readBits(8),i++),o;if(a===0?o=e.available()/8|0:a<250?o=a:o=250*(a-249)+this.unrandomize255State(e.readBits(8),i++),o<0)throw new T;for(var f=new Uint8Array(o),u=0;u=0?i:i+256},r.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],r.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],r.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],r.TEXT_SHIFT2_SET_CHARS=r.C40_SHIFT2_SET_CHARS,r.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",""],r})(),Li=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ki=(function(){function r(){this.rsDecoder=new _t(_e.DATA_MATRIX_FIELD_256)}return r.prototype.decode=function(e){var t,n,i=new Mi(e),a=i.getVersion(),o=i.readCodewords(),f=Bi.getDataBlocks(o,a),u=0;try{for(var s=Li(f),c=s.next();!c.done;c=s.next()){var h=c.value;u+=h.getNumDataCodewords()}}catch(A){t={error:A}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}for(var l=new Uint8Array(u),d=f.length,v=0;vf&&(c=f,h[0]=t,h[1]=n,h[2]=i,h[3]=a),c>u&&(c=u,h[0]=n,h[1]=i,h[2]=a,h[3]=t),c>s&&(h[0]=i,h[1]=a,h[2]=t,h[3]=n),h},r.prototype.detectSolid2=function(e){var t=e[0],n=e[1],i=e[2],a=e[3],o=this.transitionsBetween(t,a),f=r.shiftPoint(n,i,(o+1)*4),u=r.shiftPoint(i,n,(o+1)*4),s=this.transitionsBetween(f,t),c=this.transitionsBetween(u,a);return sd?c:h},r.prototype.shiftToModuleCenter=function(e){var t=e[0],n=e[1],i=e[2],a=e[3],o=this.transitionsBetween(t,a)+1,f=this.transitionsBetween(i,a)+1,u=r.shiftPoint(t,n,f*4),s=r.shiftPoint(i,n,o*4);o=this.transitionsBetween(u,a)+1,f=this.transitionsBetween(s,a)+1,(o&1)===1&&(o+=1),(f&1)===1&&(f+=1);var c=(t.getX()+n.getX()+i.getX()+a.getX())/4,h=(t.getY()+n.getY()+i.getY()+a.getY())/4;t=r.moveAway(t,c,h),n=r.moveAway(n,c,h),i=r.moveAway(i,c,h),a=r.moveAway(a,c,h);var l,d;return u=r.shiftPoint(t,n,f*4),u=r.shiftPoint(u,a,o*4),l=r.shiftPoint(n,t,f*4),l=r.shiftPoint(l,i,o*4),s=r.shiftPoint(i,a,f*4),s=r.shiftPoint(s,n,o*4),d=r.shiftPoint(a,i,f*4),d=r.shiftPoint(d,t,o*4),[u,l,s,d]},r.prototype.isValid=function(e){return e.getX()>=0&&e.getX()0&&e.getY()Math.abs(a-n);if(f){var u=n;n=i,i=u,u=a,a=o,o=u}for(var s=Math.abs(a-n),c=Math.abs(o-i),h=-s/2,l=i0){if(w===o)break;w+=l,h-=s}}return v},r})(),vt=(function(){function r(){this.decoder=new ki}return r.prototype.decode=function(e,t){t===void 0&&(t=null);var n,i;if(t!=null&&t.has(X.PURE_BARCODE)){var a=r.extractPureBits(e.getBlackMatrix());n=this.decoder.decode(a),i=r.NO_POINTS}else{var o=new Ui(e.getBlackMatrix()).detect();n=this.decoder.decode(o.getBits()),i=o.getPoints()}var f=n.getRawBytes(),u=new pe(n.getText(),f,8*f.length,i,O.DATA_MATRIX,Y.currentTimeMillis()),s=n.getByteSegments();s!=null&&u.putMetadata(de.BYTE_SEGMENTS,s);var c=n.getECLevel();return c!=null&&u.putMetadata(de.ERROR_CORRECTION_LEVEL,c),u},r.prototype.reset=function(){},r.extractPureBits=function(e){var t=e.getTopLeftOnBit(),n=e.getBottomRightOnBit();if(t==null||n==null)throw new C;var i=this.moduleSize(t,e),a=t[1],o=n[1],f=t[0],u=n[0],s=(u-f+1)/i,c=(o-a+1)/i;if(s<=0||c<=0)throw new C;var h=i/2;a+=h,f+=h;for(var l=new be(s,c),d=0;d=r.FOR_BITS.size)throw new N;return r.FOR_BITS.get(e)},r.FOR_BITS=new Map,r.FOR_VALUE=new Map,r.L=new r(ze.L,"L",1),r.M=new r(ze.M,"M",0),r.Q=new r(ze.Q,"Q",3),r.H=new r(ze.H,"H",2),r})(),Gi=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Hr=(function(){function r(e){this.errorCorrectionLevel=Hi.forBits(e>>3&3),this.dataMask=e&7}return r.numBitsDiffering=function(e,t){return B.bitCount(e^t)},r.decodeFormatInformation=function(e,t){var n=r.doDecodeFormatInformation(e,t);return n!==null?n:r.doDecodeFormatInformation(e^r.FORMAT_INFO_MASK_QR,t^r.FORMAT_INFO_MASK_QR)},r.doDecodeFormatInformation=function(e,t){var n,i,a=Number.MAX_SAFE_INTEGER,o=0;try{for(var f=Gi(r.FORMAT_INFO_DECODE_LOOKUP),u=f.next();!u.done;u=f.next()){var s=u.value,c=s[0];if(c===e||c===t)return new r(s[1]);var h=r.numBitsDiffering(e,c);h=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_=(function(){function r(e){for(var t=[],n=1;n=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},He=(function(){function r(e,t){for(var n,i,a=[],o=2;o40)throw new N;return r.VERSIONS[e-1]},r.decodeVersionInformation=function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,i=0;i6&&(t.setRegion(e-11,0,3,6),t.setRegion(0,e-11,6,3)),t},r.prototype.toString=function(){return""+this.versionNumber},r.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),r.VERSIONS=[new r(1,new Int32Array(0),new _(7,new p(1,19)),new _(10,new p(1,16)),new _(13,new p(1,13)),new _(17,new p(1,9))),new r(2,Int32Array.from([6,18]),new _(10,new p(1,34)),new _(16,new p(1,28)),new _(22,new p(1,22)),new _(28,new p(1,16))),new r(3,Int32Array.from([6,22]),new _(15,new p(1,55)),new _(26,new p(1,44)),new _(18,new p(2,17)),new _(22,new p(2,13))),new r(4,Int32Array.from([6,26]),new _(20,new p(1,80)),new _(18,new p(2,32)),new _(26,new p(2,24)),new _(16,new p(4,9))),new r(5,Int32Array.from([6,30]),new _(26,new p(1,108)),new _(24,new p(2,43)),new _(18,new p(2,15),new p(2,16)),new _(22,new p(2,11),new p(2,12))),new r(6,Int32Array.from([6,34]),new _(18,new p(2,68)),new _(16,new p(4,27)),new _(24,new p(4,19)),new _(28,new p(4,15))),new r(7,Int32Array.from([6,22,38]),new _(20,new p(2,78)),new _(18,new p(4,31)),new _(18,new p(2,14),new p(4,15)),new _(26,new p(4,13),new p(1,14))),new r(8,Int32Array.from([6,24,42]),new _(24,new p(2,97)),new _(22,new p(2,38),new p(2,39)),new _(22,new p(4,18),new p(2,19)),new _(26,new p(4,14),new p(2,15))),new r(9,Int32Array.from([6,26,46]),new _(30,new p(2,116)),new _(22,new p(3,36),new p(2,37)),new _(20,new p(4,16),new p(4,17)),new _(24,new p(4,12),new p(4,13))),new r(10,Int32Array.from([6,28,50]),new _(18,new p(2,68),new p(2,69)),new _(26,new p(4,43),new p(1,44)),new _(24,new p(6,19),new p(2,20)),new _(28,new p(6,15),new p(2,16))),new r(11,Int32Array.from([6,30,54]),new _(20,new p(4,81)),new _(30,new p(1,50),new p(4,51)),new _(28,new p(4,22),new p(4,23)),new _(24,new p(3,12),new p(8,13))),new r(12,Int32Array.from([6,32,58]),new _(24,new p(2,92),new p(2,93)),new _(22,new p(6,36),new p(2,37)),new _(26,new p(4,20),new p(6,21)),new _(28,new p(7,14),new p(4,15))),new r(13,Int32Array.from([6,34,62]),new _(26,new p(4,107)),new _(22,new p(8,37),new p(1,38)),new _(24,new p(8,20),new p(4,21)),new _(22,new p(12,11),new p(4,12))),new r(14,Int32Array.from([6,26,46,66]),new _(30,new p(3,115),new p(1,116)),new _(24,new p(4,40),new p(5,41)),new _(20,new p(11,16),new p(5,17)),new _(24,new p(11,12),new p(5,13))),new r(15,Int32Array.from([6,26,48,70]),new _(22,new p(5,87),new p(1,88)),new _(24,new p(5,41),new p(5,42)),new _(30,new p(5,24),new p(7,25)),new _(24,new p(11,12),new p(7,13))),new r(16,Int32Array.from([6,26,50,74]),new _(24,new p(5,98),new p(1,99)),new _(28,new p(7,45),new p(3,46)),new _(24,new p(15,19),new p(2,20)),new _(30,new p(3,15),new p(13,16))),new r(17,Int32Array.from([6,30,54,78]),new _(28,new p(1,107),new p(5,108)),new _(28,new p(10,46),new p(1,47)),new _(28,new p(1,22),new p(15,23)),new _(28,new p(2,14),new p(17,15))),new r(18,Int32Array.from([6,30,56,82]),new _(30,new p(5,120),new p(1,121)),new _(26,new p(9,43),new p(4,44)),new _(28,new p(17,22),new p(1,23)),new _(28,new p(2,14),new p(19,15))),new r(19,Int32Array.from([6,30,58,86]),new _(28,new p(3,113),new p(4,114)),new _(26,new p(3,44),new p(11,45)),new _(26,new p(17,21),new p(4,22)),new _(26,new p(9,13),new p(16,14))),new r(20,Int32Array.from([6,34,62,90]),new _(28,new p(3,107),new p(5,108)),new _(26,new p(3,41),new p(13,42)),new _(30,new p(15,24),new p(5,25)),new _(28,new p(15,15),new p(10,16))),new r(21,Int32Array.from([6,28,50,72,94]),new _(28,new p(4,116),new p(4,117)),new _(26,new p(17,42)),new _(28,new p(17,22),new p(6,23)),new _(30,new p(19,16),new p(6,17))),new r(22,Int32Array.from([6,26,50,74,98]),new _(28,new p(2,111),new p(7,112)),new _(28,new p(17,46)),new _(30,new p(7,24),new p(16,25)),new _(24,new p(34,13))),new r(23,Int32Array.from([6,30,54,78,102]),new _(30,new p(4,121),new p(5,122)),new _(28,new p(4,47),new p(14,48)),new _(30,new p(11,24),new p(14,25)),new _(30,new p(16,15),new p(14,16))),new r(24,Int32Array.from([6,28,54,80,106]),new _(30,new p(6,117),new p(4,118)),new _(28,new p(6,45),new p(14,46)),new _(30,new p(11,24),new p(16,25)),new _(30,new p(30,16),new p(2,17))),new r(25,Int32Array.from([6,32,58,84,110]),new _(26,new p(8,106),new p(4,107)),new _(28,new p(8,47),new p(13,48)),new _(30,new p(7,24),new p(22,25)),new _(30,new p(22,15),new p(13,16))),new r(26,Int32Array.from([6,30,58,86,114]),new _(28,new p(10,114),new p(2,115)),new _(28,new p(19,46),new p(4,47)),new _(28,new p(28,22),new p(6,23)),new _(30,new p(33,16),new p(4,17))),new r(27,Int32Array.from([6,34,62,90,118]),new _(30,new p(8,122),new p(4,123)),new _(28,new p(22,45),new p(3,46)),new _(30,new p(8,23),new p(26,24)),new _(30,new p(12,15),new p(28,16))),new r(28,Int32Array.from([6,26,50,74,98,122]),new _(30,new p(3,117),new p(10,118)),new _(28,new p(3,45),new p(23,46)),new _(30,new p(4,24),new p(31,25)),new _(30,new p(11,15),new p(31,16))),new r(29,Int32Array.from([6,30,54,78,102,126]),new _(30,new p(7,116),new p(7,117)),new _(28,new p(21,45),new p(7,46)),new _(30,new p(1,23),new p(37,24)),new _(30,new p(19,15),new p(26,16))),new r(30,Int32Array.from([6,26,52,78,104,130]),new _(30,new p(5,115),new p(10,116)),new _(28,new p(19,47),new p(10,48)),new _(30,new p(15,24),new p(25,25)),new _(30,new p(23,15),new p(25,16))),new r(31,Int32Array.from([6,30,56,82,108,134]),new _(30,new p(13,115),new p(3,116)),new _(28,new p(2,46),new p(29,47)),new _(30,new p(42,24),new p(1,25)),new _(30,new p(23,15),new p(28,16))),new r(32,Int32Array.from([6,34,60,86,112,138]),new _(30,new p(17,115)),new _(28,new p(10,46),new p(23,47)),new _(30,new p(10,24),new p(35,25)),new _(30,new p(19,15),new p(35,16))),new r(33,Int32Array.from([6,30,58,86,114,142]),new _(30,new p(17,115),new p(1,116)),new _(28,new p(14,46),new p(21,47)),new _(30,new p(29,24),new p(19,25)),new _(30,new p(11,15),new p(46,16))),new r(34,Int32Array.from([6,34,62,90,118,146]),new _(30,new p(13,115),new p(6,116)),new _(28,new p(14,46),new p(23,47)),new _(30,new p(44,24),new p(7,25)),new _(30,new p(59,16),new p(1,17))),new r(35,Int32Array.from([6,30,54,78,102,126,150]),new _(30,new p(12,121),new p(7,122)),new _(28,new p(12,47),new p(26,48)),new _(30,new p(39,24),new p(14,25)),new _(30,new p(22,15),new p(41,16))),new r(36,Int32Array.from([6,24,50,76,102,128,154]),new _(30,new p(6,121),new p(14,122)),new _(28,new p(6,47),new p(34,48)),new _(30,new p(46,24),new p(10,25)),new _(30,new p(2,15),new p(64,16))),new r(37,Int32Array.from([6,28,54,80,106,132,158]),new _(30,new p(17,122),new p(4,123)),new _(28,new p(29,46),new p(14,47)),new _(30,new p(49,24),new p(10,25)),new _(30,new p(24,15),new p(46,16))),new r(38,Int32Array.from([6,32,58,84,110,136,162]),new _(30,new p(4,122),new p(18,123)),new _(28,new p(13,46),new p(32,47)),new _(30,new p(48,24),new p(14,25)),new _(30,new p(42,15),new p(32,16))),new r(39,Int32Array.from([6,26,54,82,110,138,166]),new _(30,new p(20,117),new p(4,118)),new _(28,new p(40,47),new p(7,48)),new _(30,new p(43,24),new p(22,25)),new _(30,new p(10,15),new p(67,16))),new r(40,Int32Array.from([6,30,58,86,114,142,170]),new _(30,new p(19,118),new p(6,119)),new _(28,new p(18,47),new p(31,48)),new _(30,new p(34,24),new p(34,25)),new _(30,new p(20,15),new p(61,16)))],r})(),ue;(function(r){r[r.DATA_MASK_000=0]="DATA_MASK_000",r[r.DATA_MASK_001=1]="DATA_MASK_001",r[r.DATA_MASK_010=2]="DATA_MASK_010",r[r.DATA_MASK_011=3]="DATA_MASK_011",r[r.DATA_MASK_100=4]="DATA_MASK_100",r[r.DATA_MASK_101=5]="DATA_MASK_101",r[r.DATA_MASK_110=6]="DATA_MASK_110",r[r.DATA_MASK_111=7]="DATA_MASK_111"})(ue||(ue={}));var dr=(function(){function r(e,t){this.value=e,this.isMasked=t}return r.prototype.unmaskBitMatrix=function(e,t){for(var n=0;n=0;n--)e=this.copyBit(8,n,e);for(var i=this.bitMatrix.getHeight(),a=0,o=i-7,n=i-1;n>=o;n--)a=this.copyBit(8,n,a);for(var t=i-8;t=0;a--)for(var o=e-9;o>=i;o--)n=this.copyBit(o,a,n);var f=He.decodeVersionInformation(n);if(f!==null&&f.getDimensionForVersion()===e)return this.parsedVersion=f,f;n=0;for(var o=5;o>=0;o--)for(var a=e-9;a>=i;a--)n=this.copyBit(o,a,n);if(f=He.decodeVersionInformation(n),f!==null&&f.getDimensionForVersion()===e)return this.parsedVersion=f,f;throw new T},r.prototype.copyBit=function(e,t,n){var i=this.isMirror?this.bitMatrix.get(t,e):this.bitMatrix.get(e,t);return i?n<<1|1:n<<1},r.prototype.readCodewords=function(){var e=this.readFormatInformation(),t=this.readVersion(),n=dr.values.get(e.getDataMask()),i=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,i);for(var a=t.buildFunctionPattern(),o=!0,f=new Uint8Array(t.getTotalCodewords()),u=0,s=0,c=0,h=i-1;h>0;h-=2){h===6&&h--;for(var l=0;l=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ji=(function(){function r(e,t){this.numDataCodewords=e,this.codewords=t}return r.getDataBlocks=function(e,t,n){var i,a,o,f;if(e.length!==t.getTotalCodewords())throw new N;var u=t.getECBlocksForLevel(n),s=0,c=u.getECBlocks();try{for(var h=vr(c),l=h.next();!l.done;l=h.next()){var d=l.value;s+=d.getCount()}}catch(K){i={error:K}}finally{try{l&&!l.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}var v=new Array(s),x=0;try{for(var g=vr(c),w=g.next();!w.done;w=g.next())for(var d=w.value,y=0;y=0;){var S=v[I].codewords.length;if(S===m)break;I--}I++;for(var D=m-u.getECCodewordsPerBlock(),P=0,y=0;ye.available())throw new T;for(var i=new Uint8Array(2*n),a=0;n>0;){var o=e.readBits(13),f=o/96<<8&4294967295|o%96;f<959?f+=41377:f+=42657,i[a]=f>>8&255,i[a+1]=f&255,a+=2,n--}try{t.append(Ie.decode(i,F.GB2312))}catch(u){throw new T(u)}},r.decodeKanjiSegment=function(e,t,n){if(n*13>e.available())throw new T;for(var i=new Uint8Array(2*n),a=0;n>0;){var o=e.readBits(13),f=o/192<<8&4294967295|o%192;f<7936?f+=33088:f+=49472,i[a]=f>>8,i[a+1]=f,a+=2,n--}try{t.append(Ie.decode(i,F.SHIFT_JIS))}catch(u){throw new T(u)}},r.decodeByteSegment=function(e,t,n,i,a,o){if(8*n>e.available())throw new T;for(var f=new Uint8Array(n),u=0;u=r.ALPHANUMERIC_CHARS.length)throw new T;return r.ALPHANUMERIC_CHARS[e]},r.decodeAlphanumericSegment=function(e,t,n,i){for(var a=t.length();n>1;){if(e.available()<11)throw new T;var o=e.readBits(11);t.append(r.toAlphaNumericChar(Math.floor(o/45))),t.append(r.toAlphaNumericChar(o%45)),n-=2}if(n===1){if(e.available()<6)throw new T;t.append(r.toAlphaNumericChar(e.readBits(6)))}if(i)for(var f=a;f=3;){if(e.available()<10)throw new T;var i=e.readBits(10);if(i>=1e3)throw new T;t.append(r.toAlphaNumericChar(Math.floor(i/100))),t.append(r.toAlphaNumericChar(Math.floor(i/10)%10)),t.append(r.toAlphaNumericChar(i%10)),n-=3}if(n===2){if(e.available()<7)throw new T;var a=e.readBits(7);if(a>=100)throw new T;t.append(r.toAlphaNumericChar(Math.floor(a/10))),t.append(r.toAlphaNumericChar(a%10))}else if(n===1){if(e.available()<4)throw new T;var o=e.readBits(4);if(o>=10)throw new T;t.append(r.toAlphaNumericChar(o))}},r.parseECIValue=function(e){var t=e.readBits(8);if((t&128)===0)return t&127;if((t&192)===128){var n=e.readBits(8);return(t&63)<<8&4294967295|n}if((t&224)===192){var i=e.readBits(16);return(t&31)<<16&4294967295|i}throw new T},r.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",r.GB2312_SUBSET=1,r})(),Gr=(function(){function r(e){this.mirrored=e}return r.prototype.isMirrored=function(){return this.mirrored},r.prototype.applyMirroredCorrection=function(e){if(!(!this.mirrored||e===null||e.length<3)){var t=e[0];e[0]=e[2],e[2]=t}},r})(),pr=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Zi=(function(){function r(){this.rsDecoder=new _t(_e.QR_CODE_FIELD_256)}return r.prototype.decodeBooleanArray=function(e,t){return this.decodeBitMatrix(be.parseFromBooleanArray(e),t)},r.prototype.decodeBitMatrix=function(e,t){var n=new zi(e),i=null;try{return this.decodeBitMatrixParser(n,t)}catch(o){i=o}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var a=this.decodeBitMatrixParser(n,t);return a.setOther(new Gr(!0)),a}catch(o){throw i!==null?i:o}},r.prototype.decodeBitMatrixParser=function(e,t){var n,i,a,o,f=e.readVersion(),u=e.readFormatInformation().getErrorCorrectionLevel(),s=e.readCodewords(),c=ji.getDataBlocks(s,f,u),h=0;try{for(var l=pr(c),d=l.next();!d.done;d=l.next()){var v=d.value;h+=v.getNumDataCodewords()}}catch(I){n={error:I}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}var x=new Uint8Array(h),g=0;try{for(var w=pr(c),y=w.next();!y.done;y=w.next()){var v=y.value,A=v.getCodewords(),E=v.getNumDataCodewords();this.correctErrors(A,E);for(var m=0;m=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Qi=(function(){function r(e,t,n,i,a,o,f){this.image=e,this.startX=t,this.startY=n,this.width=i,this.height=a,this.moduleSize=o,this.resultPointCallback=f,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return r.prototype.find=function(){for(var e=this.startX,t=this.height,n=this.width,i=e+n,a=this.startY+t/2,o=new Int32Array(3),f=this.image,u=0;u=n)return!1;return!0},r.prototype.crossCheckVertical=function(e,t,n,i){var a=this.image,o=a.getHeight(),f=this.crossCheckStateCount;f[0]=0,f[1]=0,f[2]=0;for(var u=e;u>=0&&a.get(t,u)&&f[1]<=n;)f[1]++,u--;if(u<0||f[1]>n)return NaN;for(;u>=0&&!a.get(t,u)&&f[0]<=n;)f[0]++,u--;if(f[0]>n)return NaN;for(u=e+1;un)return NaN;for(;un)return NaN;var s=f[0]+f[1]+f[2];return 5*Math.abs(s-i)>=2*i?NaN:this.foundPatternCross(f)?r.centerFromEnd(f,u):NaN},r.prototype.handlePossibleCenter=function(e,t,n){var i,a,o=e[0]+e[1]+e[2],f=r.centerFromEnd(e,n),u=this.crossCheckVertical(t,f,2*e[1],o);if(!isNaN(u)){var s=(e[0]+e[1]+e[2])/3;try{for(var c=qi(this.possibleCenters),h=c.next();!h.done;h=c.next()){var l=h.value;if(l.aboutEquals(s,u,f))return l.combineEstimate(u,f,s)}}catch(v){i={error:v}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}var d=new Ki(f,u,s);this.possibleCenters.push(d),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(d)}return null},r})(),Ji=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ea=(function(r){Ji(e,r);function e(t,n,i,a){var o=r.call(this,t,n)||this;return o.estimatedModuleSize=i,o.count=a,a===void 0&&(o.count=1),o}return e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(t,n,i){if(Math.abs(n-this.getY())<=t&&Math.abs(i-this.getX())<=t){var a=Math.abs(t-this.estimatedModuleSize);return a<=1||a<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,n,i){var a=this.count+1,o=(this.count*this.getX()+n)/a,f=(this.count*this.getY()+t)/a,u=(this.count*this.estimatedModuleSize+i)/a;return new e(o,f,u,a)},e})(b),ta=(function(){function r(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return r.prototype.getBottomLeft=function(){return this.bottomLeft},r.prototype.getTopLeft=function(){return this.topLeft},r.prototype.getTopRight=function(){return this.topRight},r})(),Ke=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ra=(function(){function r(e,t){this.image=e,this.resultPointCallback=t,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=t}return r.prototype.getImage=function(){return this.image},r.prototype.getPossibleCenters=function(){return this.possibleCenters},r.prototype.find=function(e){var t=e!=null&&e.get(X.TRY_HARDER)!==void 0,n=e!=null&&e.get(X.PURE_BARCODE)!==void 0,i=this.image,a=i.getHeight(),o=i.getWidth(),f=Math.floor(3*a/(4*r.MAX_MODULES));(fs[2]&&(c+=v-s[2]-f,l=o-1)}else{s[0]=s[2],s[1]=s[3],s[2]=s[4],s[3]=1,s[4]=0,h=3;continue}h=0,s[0]=0,s[1]=0,s[2]=0,s[3]=0,s[4]=0}else s[0]=s[2],s[1]=s[3],s[2]=s[4],s[3]=1,s[4]=0,h=3;else s[++h]++;else s[h]++;if(r.foundPatternCross(s)){var d=this.handlePossibleCenter(s,c,o,n);d===!0&&(f=s[0],this.hasSkipped&&(u=this.haveMultiplyConfirmedCenters()))}}var x=this.selectBestPatterns();return b.orderBestPatterns(x),new ta(x)},r.centerFromEnd=function(e,t){return t-e[4]-e[3]-e[2]/2},r.foundPatternCross=function(e){for(var t=0,n=0;n<5;n++){var i=e[n];if(i===0)return!1;t+=i}if(t<7)return!1;var a=t/7,o=a/2;return Math.abs(a-e[0])=o&&t>=o&&f.get(t-o,e-o);)a[2]++,o++;if(e=o&&t>=o&&!f.get(t-o,e-o)&&a[1]<=n;)a[1]++,o++;if(en)return!1;for(;e>=o&&t>=o&&f.get(t-o,e-o)&&a[0]<=n;)a[0]++,o++;if(a[0]>n)return!1;var u=f.getHeight(),s=f.getWidth();for(o=1;e+o=u||t+o>=s)return!1;for(;e+o=u||t+o>=s||a[3]>=n)return!1;for(;e+o=n)return!1;var c=a[0]+a[1]+a[2]+a[3]+a[4];return Math.abs(c-i)<2*i&&r.foundPatternCross(a)},r.prototype.crossCheckVertical=function(e,t,n,i){for(var a=this.image,o=a.getHeight(),f=this.getCrossCheckStateCount(),u=e;u>=0&&a.get(t,u);)f[2]++,u--;if(u<0)return NaN;for(;u>=0&&!a.get(t,u)&&f[1]<=n;)f[1]++,u--;if(u<0||f[1]>n)return NaN;for(;u>=0&&a.get(t,u)&&f[0]<=n;)f[0]++,u--;if(f[0]>n)return NaN;for(u=e+1;u=n)return NaN;for(;u=n)return NaN;var s=f[0]+f[1]+f[2]+f[3]+f[4];return 5*Math.abs(s-i)>=2*i?NaN:r.foundPatternCross(f)?r.centerFromEnd(f,u):NaN},r.prototype.crossCheckHorizontal=function(e,t,n,i){for(var a=this.image,o=a.getWidth(),f=this.getCrossCheckStateCount(),u=e;u>=0&&a.get(u,t);)f[2]++,u--;if(u<0)return NaN;for(;u>=0&&!a.get(u,t)&&f[1]<=n;)f[1]++,u--;if(u<0||f[1]>n)return NaN;for(;u>=0&&a.get(u,t)&&f[0]<=n;)f[0]++,u--;if(f[0]>n)return NaN;for(u=e+1;u=n)return NaN;for(;u=n)return NaN;var s=f[0]+f[1]+f[2]+f[3]+f[4];return 5*Math.abs(s-i)>=i?NaN:r.foundPatternCross(f)?r.centerFromEnd(f,u):NaN},r.prototype.handlePossibleCenter=function(e,t,n,i){var a=e[0]+e[1]+e[2]+e[3]+e[4],o=r.centerFromEnd(e,n),f=this.crossCheckVertical(t,Math.floor(o),e[2],a);if(!isNaN(f)&&(o=this.crossCheckHorizontal(Math.floor(o),Math.floor(f),e[2],a),!isNaN(o)&&(!i||this.crossCheckDiagonal(Math.floor(f),Math.floor(o),e[2],a)))){for(var u=a/7,s=!1,c=this.possibleCenters,h=0,l=c.length;h=r.CENTER_QUORUM)if(i==null)i=f;else return this.hasSkipped=!0,Math.floor((Math.abs(i.getX()-f.getX())-Math.abs(i.getY()-f.getY()))/2)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return 0},r.prototype.haveMultiplyConfirmedCenters=function(){var e,t,n,i,a=0,o=0,f=this.possibleCenters.length;try{for(var u=Ke(this.possibleCenters),s=u.next();!s.done;s=u.next()){var c=s.value;c.getCount()>=r.CENTER_QUORUM&&(a++,o+=c.getEstimatedModuleSize())}}catch(x){e={error:x}}finally{try{s&&!s.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}if(a<3)return!1;var h=o/f,l=0;try{for(var d=Ke(this.possibleCenters),v=d.next();!v.done;v=d.next()){var c=v.value;l+=Math.abs(c.getEstimatedModuleSize()-h)}}catch(x){n={error:x}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return l<=.05*o},r.prototype.selectBestPatterns=function(){var e,t,n,i,a=this.possibleCenters.length;if(a<3)throw new C;var o=this.possibleCenters,f;if(a>3){var u=0,s=0;try{for(var c=Ke(this.possibleCenters),h=c.next();!h.done;h=c.next()){var l=h.value,d=l.getEstimatedModuleSize();u+=d,s+=d*d}}catch(m){e={error:m}}finally{try{h&&!h.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}f=u/a;var v=Math.sqrt(s/a-f*f);o.sort(function(m,I){var S=Math.abs(I.getEstimatedModuleSize()-f),D=Math.abs(m.getEstimatedModuleSize()-f);return SD?1:0});for(var x=Math.max(.2*f,v),g=0;g3;g++){var w=o[g];Math.abs(w.getEstimatedModuleSize()-f)>x&&(o.splice(g,1),g--)}}if(o.length>3){var u=0;try{for(var y=Ke(o),A=y.next();!A.done;A=y.next()){var E=A.value;u+=E.getEstimatedModuleSize()}}catch(I){n={error:I}}finally{try{A&&!A.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}f=u/o.length,o.sort(function(I,S){if(S.getCount()===I.getCount()){var D=Math.abs(S.getEstimatedModuleSize()-f),P=Math.abs(I.getEstimatedModuleSize()-f);return DP?-1:0}else return S.getCount()-I.getCount()}),o.splice(3)}return[o[0],o[1],o[2]]},r.CENTER_QUORUM=2,r.MIN_SKIP=3,r.MAX_MODULES=57,r})(),na=(function(){function r(e){this.image=e}return r.prototype.getImage=function(){return this.image},r.prototype.getResultPointCallback=function(){return this.resultPointCallback},r.prototype.detect=function(e){this.resultPointCallback=e==null?null:e.get(X.NEED_RESULT_POINT_CALLBACK);var t=new ra(this.image,this.resultPointCallback),n=t.find(e);return this.processFinderPatternInfo(n)},r.prototype.processFinderPatternInfo=function(e){var t=e.getTopLeft(),n=e.getTopRight(),i=e.getBottomLeft(),a=this.calculateModuleSize(t,n,i);if(a<1)throw new C("No pattern found in proccess finder.");var o=r.computeDimension(t,n,i,a),f=He.getProvisionalVersionForDimension(o),u=f.getDimensionForVersion()-7,s=null;if(f.getAlignmentPatternCenters().length>0)for(var c=n.getX()-t.getX()+i.getX(),h=n.getY()-t.getY()+i.getY(),l=1-3/u,d=Math.floor(t.getX()+l*(c-t.getX())),v=Math.floor(t.getY()+l*(h-t.getY())),x=4;x<=16;x<<=1)try{s=this.findAlignmentInRegion(a,d,v,x);break}catch(A){if(!(A instanceof C))throw A}var g=r.createTransform(t,n,i,s,o),w=r.sampleGrid(this.image,g,o),y;return s===null?y=[i,t,n]:y=[i,t,n,s],new Xt(w,y)},r.createTransform=function(e,t,n,i,a){var o=a-3.5,f,u,s,c;return i!==null?(f=i.getX(),u=i.getY(),s=o-3,c=s):(f=t.getX()-e.getX()+n.getX(),u=t.getY()-e.getY()+n.getY(),s=o,c=o),Fr.quadrilateralToQuadrilateral(3.5,3.5,o,3.5,s,c,3.5,o,e.getX(),e.getY(),t.getX(),t.getY(),f,u,n.getX(),n.getY())},r.sampleGrid=function(e,t,n){var i=Wt.getInstance();return i.sampleGridWithTransform(e,n,n,t)},r.computeDimension=function(e,t,n,i){var a=U.round(b.distance(e,t)/i),o=U.round(b.distance(e,n)/i),f=Math.floor((a+o)/2)+7;switch(f&3){case 0:f++;break;case 2:f--;break;case 3:throw new C("Dimensions could be not found.")}return f},r.prototype.calculateModuleSize=function(e,t,n){return(this.calculateModuleSizeOneWay(e,t)+this.calculateModuleSizeOneWay(e,n))/2},r.prototype.calculateModuleSizeOneWay=function(e,t){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY())),i=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(n)?i/7:isNaN(i)?n/7:(n+i)/14},r.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,t,n,i){var a=this.sizeOfBlackWhiteBlackRun(e,t,n,i),o=1,f=e-(n-e);f<0?(o=e/(e-f),f=0):f>=this.image.getWidth()&&(o=(this.image.getWidth()-1-e)/(f-e),f=this.image.getWidth()-1);var u=Math.floor(t-(i-t)*o);return o=1,u<0?(o=t/(t-u),u=0):u>=this.image.getHeight()&&(o=(this.image.getHeight()-1-t)/(u-t),u=this.image.getHeight()-1),f=Math.floor(e+(f-e)*o),a+=this.sizeOfBlackWhiteBlackRun(e,t,f,u),a-1},r.prototype.sizeOfBlackWhiteBlackRun=function(e,t,n,i){var a=Math.abs(i-t)>Math.abs(n-e);if(a){var o=e;e=t,t=o,o=n,n=i,i=o}for(var f=Math.abs(n-e),u=Math.abs(i-t),s=-f/2,c=e0){if(x===i)break;x+=h,s-=f}}return l===2?U.distance(n+c,i,e,t):NaN},r.prototype.findAlignmentInRegion=function(e,t,n,i){var a=Math.floor(i*e),o=Math.max(0,t-a),f=Math.min(this.image.getWidth()-1,t+a);if(f-o=u||a>=o)throw new C;if(o-a!==u-f&&(u=f+(o-a),u>=e.getWidth()))throw new C;var s=Math.round((u-f+1)/i),c=Math.round((o-a+1)/i);if(s<=0||c<=0)throw new C;if(c!==s)throw new C;var h=Math.floor(i/2);a+=h,f+=h;var l=f+Math.floor((s-1)*i)-u;if(l>0){if(l>h)throw new C;f-=l}var d=a+Math.floor((c-1)*i)-o;if(d>0){if(d>h)throw new C;a-=d}for(var v=new be(s,c),x=0;x=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},k=(function(){function r(){}return r.prototype.PDF417Common=function(){},r.getBitCountSum=function(e){return U.sum(e)},r.toIntArray=function(e){var t,n;if(e==null||!e.length)return r.EMPTY_INT_ARRAY;var i=new Int32Array(e.length),a=0;try{for(var o=ia(e),f=o.next();!f.done;f=o.next()){var u=f.value;i[a++]=u}}catch(s){t={error:s}}finally{try{f&&!f.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i},r.getCodeword=function(e){var t=oe.binarySearch(r.SYMBOL_TABLE,e&262143);return t<0?-1:(r.CODEWORD_TABLE[t]-1)%r.NUMBER_OF_CODEWORDS},r.NUMBER_OF_CODEWORDS=929,r.MAX_CODEWORDS_IN_BARCODE=r.NUMBER_OF_CODEWORDS-1,r.MIN_ROWS_IN_BARCODE=3,r.MAX_ROWS_IN_BARCODE=90,r.MODULES_IN_CODEWORD=17,r.MODULES_IN_STOP_PATTERN=18,r.BARS_IN_MODULE=8,r.EMPTY_INT_ARRAY=new Int32Array([]),r.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),r.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),r})(),aa=(function(){function r(e,t){this.bits=e,this.points=t}return r.prototype.getBits=function(){return this.bits},r.prototype.getPoints=function(){return this.points},r})(),oa=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fa=(function(){function r(){}return r.detectMultiple=function(e,t,n){var i=e.getBlackMatrix(),a=r.detect(n,i);return a.length||(i=i.clone(),i.rotate180(),a=r.detect(n,i)),new aa(i,a)},r.detect=function(e,t){for(var n,i,a=new Array,o=0,f=0,u=!1;o0;){var h=r.findGuardPattern(e,a,--i,n,!1,o,s);if(h!=null)c=h;else{i++;break}}f[0]=new b(c[0],i),f[1]=new b(c[1],i),u=!0;break}}var l=i+1;if(u){for(var d=0,h=Int32Array.from([Math.trunc(f[0].getX()),Math.trunc(f[1].getX())]);lr.SKIPPED_ROW_COUNT_MAX)break;d++}}l-=d+1,f[2]=new b(h[0],l),f[3]=new b(h[1],l)}return l-i0&&s++l?h-l:l-h;if(d>n)return 1/0;s+=d}return s/a},r.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),r.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),r.MAX_AVG_VARIANCE=.42,r.MAX_INDIVIDUAL_VARIANCE=.8,r.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),r.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),r.MAX_PIXEL_DRIFT=3,r.MAX_PATTERN_DRIFT=5,r.SKIPPED_ROW_COUNT_MAX=25,r.ROW_STEP=5,r.BARCODE_MIN_HEIGHT=10,r})(),ua=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ve=(function(){function r(e,t){if(t.length===0)throw new N;this.field=e;var n=t.length;if(n>1&&t[0]===0){for(var i=1;in.length){var i=t;t=n,n=i}var a=new Int32Array(n.length),o=n.length-t.length;Y.arraycopy(n,0,a,0,o);for(var f=o;f=0;t--){var n=this.getCoefficient(t);n!==0&&(n<0?(e.append(" - "),n=-n):e.length()>0&&e.append(" + "),(t===0||n!==1)&&e.append(n),t!==0&&(t===1?e.append("x"):(e.append("x^"),e.append(t))))}return e.toString()},r})(),sa=(function(){function r(){}return r.prototype.add=function(e,t){return(e+t)%this.modulus},r.prototype.subtract=function(e,t){return(this.modulus+e-t)%this.modulus},r.prototype.exp=function(e){return this.expTable[e]},r.prototype.log=function(e){if(e===0)throw new N;return this.logTable[e]},r.prototype.inverse=function(e){if(e===0)throw new Br;return this.expTable[this.modulus-this.logTable[e]-1]},r.prototype.multiply=function(e,t){return e===0||t===0?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.modulus-1)]},r.prototype.getSize=function(){return this.modulus},r.prototype.equals=function(e){return e===this},r})(),ca=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ha=(function(r){ca(e,r);function e(t,n){var i=r.call(this)||this;i.modulus=t,i.expTable=new Int32Array(t),i.logTable=new Int32Array(t);for(var a=1,o=0;o=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},da=(function(){function r(){this.field=ha.PDF417_GF}return r.prototype.decode=function(e,t,n){for(var i,a,o=new Ve(this.field,e),f=new Int32Array(t),u=!1,s=t;s>0;s--){var c=o.evaluateAt(this.field.exp(s));f[t-s]=c,c!==0&&(u=!0)}if(!u)return 0;var h=this.field.getOne();if(n!=null)try{for(var l=la(n),d=l.next();!d.done;d=l.next()){var v=d.value,x=this.field.exp(e.length-1-v),g=new Ve(this.field,new Int32Array([this.field.subtract(0,x),1]));h=h.multiply(g)}}catch(D){i={error:D}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}for(var w=new Ve(this.field,f),y=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),w,t),A=y[0],E=y[1],m=this.findErrorLocations(A),I=this.findErrorMagnitudes(E,A,m),s=0;s=Math.round(n/2);){var s=a,c=f;if(a=o,f=u,a.isZero())throw te.getChecksumInstance();o=s;for(var h=this.field.getZero(),l=a.getCoefficient(a.getDegree()),d=this.field.inverse(l);o.getDegree()>=a.getDegree()&&!o.isZero();){var v=o.getDegree()-a.getDegree(),x=this.field.multiply(o.getCoefficient(o.getDegree()),d);h=h.add(this.field.buildMonomial(v,x)),o=o.subtract(a.multiplyByMonomial(v,x))}u=h.multiply(f).subtract(c).negative()}var g=u.getCoefficient(0);if(g===0)throw te.getChecksumInstance();var w=this.field.inverse(g),y=u.multiply(w),A=o.multiply(w);return[y,A]},r.prototype.findErrorLocations=function(e){for(var t=e.getDegree(),n=new Int32Array(t),i=0,a=1;a0){var u=n?this.topLeft:this.topRight,s=Math.trunc(u.getY()-e);s<0&&(s=0);var c=new b(u.getX(),s);n?i=c:o=c}if(t>0){var h=n?this.bottomLeft:this.bottomRight,l=Math.trunc(h.getY()+t);l>=this.image.getHeight()&&(l=this.image.getHeight()-1);var d=new b(h.getX(),l);n?a=d:f=d}return new r(this.image,i,a,o,f)},r.prototype.getMinX=function(){return this.minX},r.prototype.getMaxX=function(){return this.maxX},r.prototype.getMinY=function(){return this.minY},r.prototype.getMaxY=function(){return this.maxY},r.prototype.getTopLeft=function(){return this.topLeft},r.prototype.getTopRight=function(){return this.topRight},r.prototype.getBottomLeft=function(){return this.bottomLeft},r.prototype.getBottomRight=function(){return this.bottomRight},r})(),va=(function(){function r(e,t,n,i){this.columnCount=e,this.errorCorrectionLevel=i,this.rowCountUpperPart=t,this.rowCountLowerPart=n,this.rowCount=t+n}return r.prototype.getColumnCount=function(){return this.columnCount},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.getRowCount=function(){return this.rowCount},r.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},r.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},r})(),jt=(function(){function r(){this.buffer=""}return r.form=function(e,t){var n=-1;function i(o,f,u,s,c,h){if(o==="%%")return"%";if(t[++n]!==void 0){o=s?parseInt(s.substr(1)):void 0;var l=c?parseInt(c.substr(1)):void 0,d;switch(h){case"s":d=t[n];break;case"c":d=t[n][0];break;case"f":d=parseFloat(t[n]).toFixed(o);break;case"p":d=parseFloat(t[n]).toPrecision(o);break;case"e":d=parseFloat(t[n]).toExponential(o);break;case"x":d=parseInt(t[n]).toString(l||16);break;case"d":d=parseFloat(parseInt(t[n],l||10).toPrecision(o)).toFixed(0);break}d=typeof d=="object"?JSON.stringify(d):(+d).toString(l);for(var v=parseInt(u),x=u&&u[0]+""=="0"?"0":" ";d.length=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Xr=(function(){function r(e){this.boundingBox=new kt(e),this.codewords=new Array(e.getMaxY()-e.getMinY()+1)}return r.prototype.getCodewordNearby=function(e){var t=this.getCodeword(e);if(t!=null)return t;for(var n=1;n=0&&(t=this.codewords[i],t!=null)||(i=this.imageRowToCodewordIndex(e)+n,i=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ga=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(f){o={error:f}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a},et=(function(){function r(){this.values=new Map}return r.prototype.setValue=function(e){e=Math.trunc(e);var t=this.values.get(e);t==null&&(t=0),t++,this.values.set(e,t)},r.prototype.getValue=function(){var e,t,n=-1,i=new Array,a=function(h,l){var d={getKey:function(){return h},getValue:function(){return l}};d.getValue()>n?(n=d.getValue(),i=[],i.push(d.getKey())):d.getValue()===n&&i.push(d.getKey())};try{for(var o=xa(this.values.entries()),f=o.next();!f.done;f=o.next()){var u=ga(f.value,2),s=u[0],c=u[1];a(s,c)}}catch(h){e={error:h}}finally{try{f&&!f.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return k.toIntArray(i)},r.prototype.getConfidence=function(e){return this.values.get(e)},r})(),ya=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Tt=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xr=(function(r){ya(e,r);function e(t,n){var i=r.call(this,t)||this;return i._isLeft=n,i}return e.prototype.setRowNumbers=function(){var t,n;try{for(var i=Tt(this.getCodewords()),a=i.next();!a.done;a=i.next()){var o=a.value;o!=null&&o.setRowNumberAsRowIndicatorColumn()}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.adjustCompleteIndicatorColumnRowNumbers=function(t){var n=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(n,t);for(var i=this.getBoundingBox(),a=this._isLeft?i.getTopLeft():i.getTopRight(),o=this._isLeft?i.getBottomLeft():i.getBottomRight(),f=this.imageRowToCodewordIndex(Math.trunc(a.getY())),u=this.imageRowToCodewordIndex(Math.trunc(o.getY())),s=-1,c=1,h=0,l=f;l=t.getRowCount()||v>l)n[l]=null;else{var x=void 0;c>2?x=(c-2)*v:x=v;for(var g=x>=l,w=1;w<=x&&!g;w++)g=n[l-w]!=null;g?n[l]=null:(s=d.getRowNumber(),h=1)}}},e.prototype.getRowHeights=function(){var t,n,i=this.getBarcodeMetadata();if(i==null)return null;this.adjustIncompleteIndicatorColumnRowNumbers(i);var a=new Int32Array(i.getRowCount());try{for(var o=Tt(this.getCodewords()),f=o.next();!f.done;f=o.next()){var u=f.value;if(u!=null){var s=u.getRowNumber();if(s>=a.length)continue;a[s]++}}}catch(c){t={error:c}}finally{try{f&&!f.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(t){for(var n=this.getBoundingBox(),i=this._isLeft?n.getTopLeft():n.getTopRight(),a=this._isLeft?n.getBottomLeft():n.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(i.getY())),f=this.imageRowToCodewordIndex(Math.trunc(a.getY())),u=this.getCodewords(),s=-1,c=o;c=t.getRowCount()?u[c]=null:s=h.getRowNumber())}},e.prototype.getBarcodeMetadata=function(){var t,n,i=this.getCodewords(),a=new et,o=new et,f=new et,u=new et;try{for(var s=Tt(i),c=s.next();!c.done;c=s.next()){var h=c.value;if(h!=null){h.setRowNumberAsRowIndicatorColumn();var l=h.getValue()%30,d=h.getRowNumber();switch(this._isLeft||(d+=2),d%3){case 0:o.setValue(l*3+1);break;case 1:u.setValue(l/3),f.setValue(l%3);break;case 2:a.setValue(l+1);break}}}}catch(x){t={error:x}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}if(a.getValue().length===0||o.getValue().length===0||f.getValue().length===0||u.getValue().length===0||a.getValue()[0]<1||o.getValue()[0]+f.getValue()[0]k.MAX_ROWS_IN_BARCODE)return null;var v=new va(a.getValue()[0],o.getValue()[0],f.getValue()[0],u.getValue()[0]);return this.removeIncorrectCodewords(i,v),v},e.prototype.removeIncorrectCodewords=function(t,n){for(var i=0;in.getRowCount()){t[i]=null;continue}switch(this._isLeft||(f+=2),f%3){case 0:o*3+1!==n.getRowCountUpperPart()&&(t[i]=null);break;case 1:(Math.trunc(o/3)!==n.getErrorCorrectionLevel()||o%3!==n.getRowCountLowerPart())&&(t[i]=null);break;case 2:o+1!==n.getColumnCount()&&(t[i]=null);break}}}},e.prototype.isLeft=function(){return this._isLeft},e.prototype.toString=function(){return"IsLeft: "+this._isLeft+` +`+r.prototype.toString.call(this)},e})(Xr),wa=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_a=(function(){function r(e,t){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=t,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return r.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e=k.MAX_CODEWORDS_IN_BARCODE,t;do t=e,e=this.adjustRowNumbersAndGetCount();while(e>0&&e0&&a0&&(s[0]=n[t-1],s[4]=f[t-1],s[5]=u[t-1]),t>1&&(s[8]=n[t-2],s[10]=f[t-2],s[11]=u[t-2]),t>=1;n=t&1,r.RATIOS_TABLE[e]||(r.RATIOS_TABLE[e]=new Array(k.BARS_IN_MODULE)),r.RATIOS_TABLE[e][k.BARS_IN_MODULE-i-1]=Math.fround(a/k.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},r.getDecodedValue=function(e){var t=r.getDecodedCodewordValue(r.sampleBitCounts(e));return t!==-1?t:r.getClosestDecodedValue(e)},r.sampleBitCounts=function(e){for(var t=U.sum(e),n=new Int32Array(k.BARS_IN_MODULE),i=0,a=0,o=0;o1)for(var i=0;i=a)break}ue.length||n<0||t+n>e.length||t+n<0)throw new Gt;if(n===0)return;for(var i=0;i0&&this.grow(t)},e.prototype.grow=function(t){var n=this.buf.length,i=n<<1;if(i-t<0&&(i=t),i<0){if(t<0)throw new Ta;i=B.MAX_VALUE}this.buf=oe.copyOfUint8Array(this.buf,i)},e.prototype.write=function(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1},e.prototype.writeBytesOffset=function(t,n,i){if(n<0||n>t.length||i<0||n+i-t.length>0)throw new Gt;this.ensureCapacity(this.count+i),Y.arraycopy(t,n,this.buf,this.count,i),this.count+=i},e.prototype.writeTo=function(t){t.writeBytesOffset(this.buf,0,this.count)},e.prototype.reset=function(){this.count=0},e.prototype.toByteArray=function(){return oe.copyOfUint8Array(this.buf,this.count)},e.prototype.size=function(){return this.count},e.prototype.toString=function(t){return t?typeof t=="string"?this.toString_string(t):this.toString_number(t):this.toString_void()},e.prototype.toString_void=function(){return new String(this.buf).toString()},e.prototype.toString_string=function(t){return new String(this.buf).toString()},e.prototype.toString_number=function(t){return new String(this.buf).toString()},e.prototype.close=function(){},e})(Sa),j;(function(r){r[r.ALPHA=0]="ALPHA",r[r.LOWER=1]="LOWER",r[r.MIXED=2]="MIXED",r[r.PUNCT=3]="PUNCT",r[r.ALPHA_SHIFT=4]="ALPHA_SHIFT",r[r.PUNCT_SHIFT=5]="PUNCT_SHIFT"})(j||(j={}));function Wr(){if(typeof window<"u")return window.BigInt||null;if(typeof global<"u")return global.BigInt||null;if(typeof self<"u")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}var ot;function Me(r){if(typeof ot>"u"&&(ot=Wr()),ot===null)throw new Error("BigInt is not supported!");return ot(r)}function Na(){var r=[];r[0]=Me(1);var e=Me(900);r[1]=e;for(var t=2;t<16;t++)r[t]=r[t-1]*e;return r}var Ra=(function(){function r(){}return r.decode=function(e,t){var n=new M(""),i=ae.ISO8859_1;n.enableDecoding(i);for(var a=1,o=e[a++],f=new Ca;ae[0])throw T.getFormatInstance();for(var i=new Int32Array(r.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a0){for(var l=0;l<6;++l)o.write(Number(Me(u)>>Me(8*(5-l))));u=0,f=0}break}i===t[0]&&h0){for(var l=0;l<6;++l)o.write(Number(Me(u)>>Me(8*(5-l))));u=0,f=0}}break}return a.append(Ie.decode(o.toByteArray(),n)),i},r.numericCompaction=function(e,t,n){for(var i=0,a=!1,o=new Int32Array(r.MAX_NUMERIC_CODEWORDS);t0&&(n.append(r.decodeBase900toBase10(o,i)),i=0)}return t},r.decodeBase900toBase10=function(e,t){for(var n=Me(0),i=0;i@[\\]_\`~!\r ,: +-.$/"|*()?{}'`,r.MIXED_CHARS="0123456789&\r ,:#-.$/+%*=^",r.EXP900=Wr()?Na():[],r.NUMBER_OF_SEQUENCE_CODEWORDS=2,r})(),qe=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Pa=(function(){function r(){}return r.decode=function(e,t,n,i,a,o,f){for(var u=new kt(e,t,n,i,a),s=null,c=null,h,l=!0;;l=!1){if(t!=null&&(s=r.getRowIndicatorColumn(e,u,t,!0,o,f)),i!=null&&(c=r.getRowIndicatorColumn(e,u,i,!1,o,f)),h=r.merge(s,c),h==null)throw C.getNotFoundInstance();var d=h.getBoundingBox();if(l&&d!=null&&(d.getMinY()u.getMaxY()))u=d;else break}h.setBoundingBox(u);var v=h.getBarcodeColumnCount()+1;h.setDetectionResultColumn(0,s),h.setDetectionResultColumn(v,c);for(var x=s!=null,g=1;g<=v;g++){var w=x?g:v-g;if(h.getDetectionResultColumn(w)===void 0){var y=void 0;w===0||w===v?y=new xr(u,w===0):y=new Xr(u),h.setDetectionResultColumn(w,y);for(var A=-1,E=A,m=u.getMinY();m<=u.getMaxY();m++){if(A=r.getStartColumn(h,w,m,x),A<0||A>u.getMaxX()){if(E===-1)continue;A=E}var I=r.detectCodeword(e,u.getMinX(),u.getMaxX(),x,A,m,o,f);I!=null&&(y.setCodeword(m,I),E=A,o=Math.min(o,I.getWidth()),f=Math.max(f,I.getWidth()))}}}return r.createDecoderResult(h)},r.merge=function(e,t){if(e==null&&t==null)return null;var n=r.getBarcodeMetadata(e,t);if(n==null)return null;var i=kt.merge(r.adjustBoundingBox(e),r.adjustBoundingBox(t));return new _a(n,i)},r.adjustBoundingBox=function(e){var t,n;if(e==null)return null;var i=e.getRowHeights();if(i==null)return null;var a=r.getMax(i),o=0;try{for(var f=qe(i),u=f.next();!u.done;u=f.next()){var s=u.value;if(o+=a-s,s>0)break}}catch(d){t={error:d}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}for(var c=e.getCodewords(),h=0;o>0&&c[h]==null;h++)o--;for(var l=0,h=i.length-1;h>=0&&(l+=a-i[h],!(i[h]>0));h--);for(var h=c.length-1;l>0&&c[h]==null;h--)l--;return e.getBoundingBox().addMissingRows(o,l,e.isLeft())},r.getMax=function(e){var t,n,i=-1;try{for(var a=qe(e),o=a.next();!o.done;o=a.next()){var f=o.value;i=Math.max(i,f)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},r.getBarcodeMetadata=function(e,t){var n;if(e==null||(n=e.getBarcodeMetadata())==null)return t==null?null:t.getBarcodeMetadata();var i;return t==null||(i=t.getBarcodeMetadata())==null?n:n.getColumnCount()!==i.getColumnCount()&&n.getErrorCorrectionLevel()!==i.getErrorCorrectionLevel()&&n.getRowCount()!==i.getRowCount()?null:n},r.getRowIndicatorColumn=function(e,t,n,i,a,o){for(var f=new xr(t,i),u=0;u<2;u++)for(var s=u===0?1:-1,c=Math.trunc(Math.trunc(n.getX())),h=Math.trunc(Math.trunc(n.getY()));h<=t.getMaxY()&&h>=t.getMinY();h+=s){var l=r.detectCodeword(e,0,e.getWidth(),i,c,h,a,o);l!=null&&(f.setCodeword(h,l),i?c=l.getStartX():c=l.getEndX())}return f},r.adjustCodewordCount=function(e,t){var n=t[0][1],i=n.getValue(),a=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-r.getNumberOfECCodeWords(e.getBarcodeECLevel());if(i.length===0){if(a<1||a>k.MAX_CODEWORDS_IN_BARCODE)throw C.getNotFoundInstance();n.setValue(a)}else i[0]!==a&&n.setValue(a)},r.createDecoderResult=function(e){var t=r.createBarcodeMatrix(e);r.adjustCodewordCount(e,t);for(var n=new Array,i=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),a=[],o=new Array,f=0;f0;){for(var u=0;u=0){if(g>=o.length)continue;o[g][s].setValue(x.getValue())}}}}catch(w){i={error:w}}finally{try{v&&!v.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}s++}}catch(w){t={error:w}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return o},r.isValidBarcodeColumn=function(e,t){return t>=0&&t<=e.getBarcodeColumnCount()+1},r.getStartColumn=function(e,t,n,i){var a,o,f=i?1:-1,u=null;if(r.isValidBarcodeColumn(e,t-f)&&(u=e.getDetectionResultColumn(t-f).getCodeword(n)),u!=null)return i?u.getEndX():u.getStartX();if(u=e.getDetectionResultColumn(t).getCodewordNearby(n),u!=null)return i?u.getStartX():u.getEndX();if(r.isValidBarcodeColumn(e,t-f)&&(u=e.getDetectionResultColumn(t-f).getCodewordNearby(n)),u!=null)return i?u.getEndX():u.getStartX();for(var s=0;r.isValidBarcodeColumn(e,t-f);){t-=f;try{for(var c=(a=void 0,qe(e.getDetectionResultColumn(t).getCodewords())),h=c.next();!h.done;h=c.next()){var l=h.value;if(l!=null)return(i?l.getEndX():l.getStartX())+f*s*(l.getEndX()-l.getStartX())}}catch(d){a={error:d}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}s++}return i?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},r.detectCodeword=function(e,t,n,i,a,o,f,u){a=r.adjustCodewordStartColumn(e,t,n,i,a,o);var s=r.getModuleBitCount(e,t,n,i,a,o);if(s==null)return null;var c,h=U.sum(s);if(i)c=a+h;else{for(var l=0;l=t)&&s=t:fr.CODEWORD_SKEW_SIZE)return a;f+=u}u=-u,i=!i}return f},r.checkCodewordSkew=function(e,t,n){return t-r.CODEWORD_SKEW_SIZE<=e&&e<=n+r.CODEWORD_SKEW_SIZE},r.decodeCodewords=function(e,t,n){if(e.length===0)throw T.getFormatInstance();var i=1<n/2+r.MAX_ERRORS||n<0||n>r.MAX_EC_CODEWORDS)throw te.getChecksumInstance();return r.errorCorrection.decode(e,n,t)},r.verifyCodewordCount=function(e,t){if(e.length<4)throw T.getFormatInstance();var n=e[0];if(n>e.length)throw T.getFormatInstance();if(n===0)if(t>=1;return t},r.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},r.getCodewordBucketNumber_number=function(e){return r.getCodewordBucketNumber(r.getBitCountForCodeword(e))},r.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},r.toString=function(e){for(var t=new jt,n=0;n=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xt=(function(){function r(){}return r.prototype.decode=function(e,t){t===void 0&&(t=null);var n=r.decode(e,t,!1);if(n==null||n.length===0||n[0]==null)throw C.getNotFoundInstance();return n[0]},r.prototype.decodeMultiple=function(e,t){t===void 0&&(t=null);try{return r.decode(e,t,!0)}catch(n){throw n instanceof T||n instanceof te?C.getNotFoundInstance():n}},r.decode=function(e,t,n){var i,a,o=new Array,f=fa.detectMultiple(e,t,n);try{for(var u=Ma(f.getPoints()),s=u.next();!s.done;s=u.next()){var c=s.value,h=Pa.decode(f.getBits(),c[4],c[5],c[6],c[7],r.getMinCodewordWidth(c),r.getMaxCodewordWidth(c)),l=new pe(h.getText(),h.getRawBytes(),void 0,c,O.PDF_417);l.putMetadata(de.ERROR_CORRECTION_LEVEL,h.getECLevel());var d=h.getOther();d!=null&&l.putMetadata(de.PDF417_EXTRA_METADATA,d),o.push(l)}}catch(v){i={error:v}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return o.map(function(v){return v})},r.getMaxWidth=function(e,t){return e==null||t==null?0:Math.trunc(Math.abs(e.getX()-t.getX()))},r.getMinWidth=function(e,t){return e==null||t==null?B.MAX_VALUE:Math.trunc(Math.abs(e.getX()-t.getX()))},r.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(r.getMaxWidth(e[0],e[4]),r.getMaxWidth(e[6],e[2])*k.MODULES_IN_CODEWORD/k.MODULES_IN_STOP_PATTERN),Math.max(r.getMaxWidth(e[1],e[5]),r.getMaxWidth(e[7],e[3])*k.MODULES_IN_CODEWORD/k.MODULES_IN_STOP_PATTERN)))},r.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(r.getMinWidth(e[0],e[4]),r.getMinWidth(e[6],e[2])*k.MODULES_IN_CODEWORD/k.MODULES_IN_STOP_PATTERN),Math.min(r.getMinWidth(e[1],e[5]),r.getMinWidth(e[7],e[3])*k.MODULES_IN_CODEWORD/k.MODULES_IN_STOP_PATTERN)))},r.prototype.reset=function(){},r})(),Ba=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),yr=(function(r){Ba(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ReaderException",e})(Ae),wr=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},zr=(function(){function r(){}return r.prototype.decode=function(e,t){return this.setHints(t),this.decodeInternal(e)},r.prototype.decodeWithState=function(e){return(this.readers===null||this.readers===void 0)&&this.setHints(null),this.decodeInternal(e)},r.prototype.setHints=function(e){this.hints=e;var t=e!=null&&e.get(X.TRY_HARDER)!==void 0,n=e==null?null:e.get(X.POSSIBLE_FORMATS),i=new Array;if(n!=null){var a=n.some(function(o){return o===O.UPC_A||o===O.UPC_E||o===O.EAN_13||o===O.EAN_8||o===O.CODABAR||o===O.CODE_39||o===O.CODE_93||o===O.CODE_128||o===O.ITF||o===O.RSS_14||o===O.RSS_EXPANDED});a&&!t&&i.push(new We(e)),n.includes(O.QR_CODE)&&i.push(new pt),n.includes(O.DATA_MATRIX)&&i.push(new vt),n.includes(O.AZTEC)&&i.push(new lt),n.includes(O.PDF_417)&&i.push(new xt),a&&t&&i.push(new We(e))}i.length===0&&(t||i.push(new We(e)),i.push(new pt),i.push(new vt),i.push(new lt),i.push(new xt),t&&i.push(new We(e))),this.readers=i},r.prototype.reset=function(){var e,t;if(this.readers!==null)try{for(var n=wr(this.readers),i=n.next();!i.done;i=n.next()){var a=i.value;a.reset()}}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},r.prototype.decodeInternal=function(e){var t,n;if(this.readers===null)throw new yr("No readers where selected, nothing can be read.");try{for(var i=wr(this.readers),a=i.next();!a.done;a=i.next()){var o=a.value;try{return o.decode(e,this.hints)}catch(f){if(f instanceof yr)continue}}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}throw new C("No MultiFormat Readers were able to detect the code.")},r})(),Fa=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){Fa(e,r);function e(t,n){t===void 0&&(t=null),n===void 0&&(n=500);var i=this,a=new zr;return a.setHints(t),i=r.call(this,a,n)||this,i}return e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e})(Ze);var La=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){La(e,r);function e(t){return t===void 0&&(t=500),r.call(this,new xt,t)||this}return e})(Ze);var ka=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){ka(e,r);function e(t){return t===void 0&&(t=500),r.call(this,new pt,t)||this}return e})(Ze);var Ut;(function(r){r[r.ERROR_CORRECTION=0]="ERROR_CORRECTION",r[r.CHARACTER_SET=1]="CHARACTER_SET",r[r.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",r[r.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",r[r.MIN_SIZE=4]="MIN_SIZE",r[r.MAX_SIZE=5]="MAX_SIZE",r[r.MARGIN=6]="MARGIN",r[r.PDF417_COMPACT=7]="PDF417_COMPACT",r[r.PDF417_COMPACTION=8]="PDF417_COMPACTION",r[r.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",r[r.AZTEC_LAYERS=10]="AZTEC_LAYERS",r[r.QR_VERSION=11]="QR_VERSION",r[r.GS1_FORMAT=12]="GS1_FORMAT",r[r.FORCE_C40=13]="FORCE_C40"})(Ut||(Ut={}));const ft=Ut;var jr=(function(){function r(e){this.field=e,this.cachedGenerators=[],this.cachedGenerators.push(new Be(e,Int32Array.from([1])))}return r.prototype.buildGenerator=function(e){var t=this.cachedGenerators;if(e>=t.length)for(var n=t[t.length-1],i=this.field,a=t.length;a<=e;a++){var o=n.multiply(new Be(i,Int32Array.from([1,i.exp(a-1+i.getGeneratorBase())])));t.push(o),n=o}return t[e]},r.prototype.encode=function(e,t){if(t===0)throw new N("No error correction bytes");var n=e.length-t;if(n<=0)throw new N("No data bytes provided");var i=this.buildGenerator(t),a=new Int32Array(n);Y.arraycopy(e,0,a,0,n);var o=new Be(this.field,a);o=o.multiplyByMonomial(t,1);for(var f=o.divide(i)[1],u=f.getCoefficients(),s=t-u.length,c=0;c=5&&(n+=r.N1+(u-5)),u=1,s=h)}u>=5&&(n+=r.N1+(u-5))}return n},r.N1=3,r.N2=3,r.N3=40,r.N4=10,r})(),Ua=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Va=(function(){function r(e,t){this.width=e,this.height=t;for(var n=new Array(t),i=0;i!==t;i++)n[i]=new Uint8Array(e);this.bytes=n}return r.prototype.getHeight=function(){return this.height},r.prototype.getWidth=function(){return this.width},r.prototype.get=function(e,t){return this.bytes[t][e]},r.prototype.getArray=function(){return this.bytes},r.prototype.setNumber=function(e,t,n){this.bytes[t][e]=n},r.prototype.setBoolean=function(e,t,n){this.bytes[t][e]=n?1:0},r.prototype.clear=function(e){var t,n;try{for(var i=Ua(this.bytes),a=i.next();!a.done;a=i.next()){var o=a.value;oe.fill(o,e)}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;if(this.width!==t.width||this.height!==t.height)return!1;for(var n=0,i=this.height;n> +`),e.toString()},r.prototype.setMode=function(e){this.mode=e},r.prototype.setECLevel=function(e){this.ecLevel=e},r.prototype.setVersion=function(e){this.version=e},r.prototype.setMaskPattern=function(e){this.maskPattern=e},r.prototype.setMatrix=function(e){this.matrix=e},r.isValidMaskPattern=function(e){return e>=0&&e0;){for(o===6&&(o-=1);f>=0&&f=n;)e^=t<=0)for(var u=0;u!==o;u++){var s=i[u];s>=0&&r.isEmpty(t.get(s,f))&&r.embedPositionAdjustmentPattern(s-2,f-2,t)}}},r.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),r.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),r.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),r.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),r.VERSION_INFO_POLY=7973,r.TYPE_INFO_POLY=1335,r.TYPE_INFO_MASK_PATTERN=21522,r})(),Ga=(function(){function r(e,t){this.dataBytes=e,this.errorCorrectionBytes=t}return r.prototype.getDataBytes=function(){return this.dataBytes},r.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},r})(),Ar=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function r(){}return r.calculateMaskPenalty=function(e){return tt.applyMaskPenaltyRule1(e)+tt.applyMaskPenaltyRule2(e)+tt.applyMaskPenaltyRule3(e)+tt.applyMaskPenaltyRule4(e)},r.encode=function(e,t,n){n===void 0&&(n=null);var i=r.DEFAULT_BYTE_MODE_ENCODING,a=n!==null&&n.get(ft.CHARACTER_SET)!==void 0;a&&(i=n.get(ft.CHARACTER_SET).toString());var o=this.chooseMode(e,i),f=new ce;if(o===$.BYTE&&(a||r.DEFAULT_BYTE_MODE_ENCODING!==i)){var u=ae.getCharacterSetECIByName(i);u!==void 0&&this.appendECI(u,f)}this.appendModeInfo(o,f);var s=new ce;this.appendBytes(e,o,s,i);var c;if(n!==null&&n.get(ft.QR_VERSION)!==void 0){var h=Number.parseInt(n.get(ft.QR_VERSION).toString(),10);c=He.getVersionForNumber(h);var l=this.calculateBitsNeeded(o,f,s,c);if(!this.willFit(l,c,t))throw new Z("Data too big for requested version")}else c=this.recommendVersion(t,o,f,s);var d=new ce;d.appendBitArray(f);var v=o===$.BYTE?s.getSizeInBytes():e.length;this.appendLengthInfo(v,c,o,d),d.appendBitArray(s);var x=c.getECBlocksForLevel(t),g=c.getTotalCodewords()-x.getTotalECCodewords();this.terminateBits(g,d);var w=this.interleaveWithECBytes(d,c.getTotalCodewords(),g,x.getNumBlocks()),y=new Vt;y.setECLevel(t),y.setMode(o),y.setVersion(c);var A=c.getDimensionForVersion(),E=new Va(A,A),m=this.chooseMaskPattern(w,t,c,E);return y.setMaskPattern(m),_r.buildMatrix(w,t,c,m,E),y.setMatrix(E),y},r.recommendVersion=function(e,t,n,i){var a=this.calculateBitsNeeded(t,n,i,He.getVersionForNumber(1)),o=this.chooseVersion(a,e),f=this.calculateBitsNeeded(t,n,i,o);return this.chooseVersion(f,e)},r.calculateBitsNeeded=function(e,t,n,i){return t.getSize()+e.getCharacterCountBits(i)+n.getSize()},r.getAlphanumericCode=function(e){return e159)&&(a<224||a>235))return!1}return!0},r.chooseMaskPattern=function(e,t,n,i){for(var a=Number.MAX_SAFE_INTEGER,o=-1,f=0;f=u},r.terminateBits=function(e,t){var n=e*8;if(t.getSize()>n)throw new Z("data bits cannot fit in the QR Code"+t.getSize()+" > "+n);for(var i=0;i<4&&t.getSize()0)for(var i=a;i<8;i++)t.appendBit(!1);for(var o=e-t.getSizeInBytes(),i=0;i=n)throw new Z("Block ID too large");var f=e%n,u=n-f,s=Math.floor(e/n),c=s+1,h=Math.floor(t/n),l=h+1,d=s-h,v=c-l;if(d!==v)throw new Z("EC bytes mismatch");if(n!==u+f)throw new Z("RS blocks mismatch");if(e!==(h+d)*u+(l+v)*f)throw new Z("Total bytes mismatch");i=1<=0&&t<=9},r.appendNumericBytes=function(e,t){for(var n=e.length,i=0;i=33088&&u<=40956?s=u-33088:u>=57408&&u<=60351&&(s=u-49472),s===-1)throw new Z("Invalid byte sequence");var c=(s>>8)*192+(s&255);t.appendBits(c,13)}},r.appendECI=function(e,t){t.appendBits($.ECI.getBits(),4),t.appendBits(e.getValue(),8)},r.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),r.DEFAULT_BYTE_MODE_ENCODING=ae.UTF8.getName(),r})();var Xa=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){Xa(e,r);function e(t,n,i,a,o,f,u,s){var c=r.call(this,f,u)||this;if(c.yuvData=t,c.dataWidth=n,c.dataHeight=i,c.left=a,c.top=o,a+f>n||o+u>i)throw new N("Crop rectangle does not fit within image data.");return s&&c.reverseHorizontal(f,u),c}return e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new N("Requested row is outside the image: "+t);var i=this.getWidth();(n==null||n.length>16&255,x=d>>7&510,g=d&255;h[l]=(v+x+g)/4&255}s.luminances=h}else s.luminances=t;if(a===void 0&&(s.dataWidth=n),o===void 0&&(s.dataHeight=i),f===void 0&&(s.left=0),u===void 0&&(s.top=0),s.left+n>s.dataWidth||s.top+i>s.dataHeight)throw new N("Crop rectangle does not fit within image data.");return s}return e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new N("Requested row is outside the image: "+t);var i=this.getWidth();(n==null||n.length=256&&(t^=Za);return{LOG:r,ALOG:e}};Ht=$a([],[]),Ht.LOG;Ht.ALOG;var Er;(function(r){r[r.FORCE_NONE=0]="FORCE_NONE",r[r.FORCE_SQUARE=1]="FORCE_SQUARE",r[r.FORCE_RECTANGLE=2]="FORCE_RECTANGLE"})(Er||(Er={}));var Cr=129,Yr=230,Ka=231,qa=235,Qa=236,Ja=237,eo=238,to=239,ro=240,Dt=254,no=254,mr="[)>05",Ir="[)>06",Sr="",z=0,le=1,ye=2,ne=3,se=4,ve=5,io=(function(){function r(){}return r.prototype.getEncodingMode=function(){return z},r.prototype.encode=function(e){var t=Te.determineConsecutiveDigitCount(e.getMessage(),e.pos);if(t>=2)e.writeCodeword(this.encodeASCIIDigits(e.getMessage().charCodeAt(e.pos),e.getMessage().charCodeAt(e.pos+1))),e.pos+=2;else{var n=e.getCurrentChar(),i=Te.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(i!==this.getEncodingMode())switch(i){case ve:e.writeCodeword(Ka),e.signalEncoderChange(ve);return;case le:e.writeCodeword(Yr),e.signalEncoderChange(le);return;case ne:e.writeCodeword(eo),e.signalEncoderChange(ne);break;case ye:e.writeCodeword(to),e.signalEncoderChange(ye);break;case se:e.writeCodeword(ro),e.signalEncoderChange(se);break;default:throw new Error("Illegal mode: "+i)}else Te.isExtendedASCII(n)?(e.writeCodeword(qa),e.writeCodeword(n-128+1),e.pos++):(e.writeCodeword(n+1),e.pos++)}},r.prototype.encodeASCIIDigits=function(e,t){if(Te.isDigit(e)&&Te.isDigit(t)){var n=(e-48)*10+(t-48);return n+130}throw new Error("not digits: "+e+t)},r})(),ao=(function(){function r(){}return r.prototype.getEncodingMode=function(){return ve},r.prototype.encode=function(e){var t=new M;for(t.append(0);e.hasMoreCharacters();){var n=e.getCurrentChar();t.append(n),e.pos++;var i=Te.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(i!==this.getEncodingMode()){e.signalEncoderChange(z);break}}var a=t.length()-1,o=1,f=e.getCodewordCount()+a+o;e.updateSymbolInfo(f);var u=e.getSymbolInfo().getDataCapacity()-f>0;if(e.hasMoreCharacters()||u)if(a<=249)t.setCharAt(0,F.getCharAt(a));else if(a<=1555)t.setCharAt(0,F.getCharAt(Math.floor(a/250)+249)),t.insert(1,F.getCharAt(a%250));else throw new Error("Message length not in valid ranges: "+a);for(var s=0,n=t.length();s3||s!==1))&&(e.pos=i)}t.length()>0&&e.writeCodeword(Yr),this.handleEOD(e,t)},r.prototype.encode=function(e){for(var t=new M;e.hasMoreCharacters();){var n=e.getCurrentChar();e.pos++;var i=this.encodeChar(n,t),a=Math.floor(t.length()/3)*2,o=e.getCodewordCount()+a;e.updateSymbolInfo(o);var f=e.getSymbolInfo().getDataCapacity()-o;if(!e.hasMoreCharacters()){var u=new M;for(t.length()%3===2&&f!==2&&(i=this.backtrackOneCharacter(e,t,u,i));t.length()%3===1&&(i>3||f!==1);)i=this.backtrackOneCharacter(e,t,u,i);break}var s=t.length();if(s%3===0){var c=Te.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(c!==this.getEncodingMode()){e.signalEncoderChange(z);break}}}this.handleEOD(e,t)},r.prototype.backtrackOneCharacter=function(e,t,n,i){var a=t.length(),o=t.toString().substring(0,a-i);t.setLengthToZero(),t.append(o),e.pos--;var f=e.getCurrentChar();return i=this.encodeChar(f,n),e.resetSymbolInfo(),i},r.prototype.writeNextTriplet=function(e,t){e.writeCodewords(this.encodeToCodewords(t.toString()));var n=t.toString().substring(3);t.setLengthToZero(),t.append(n)},r.prototype.handleEOD=function(e,t){var n=Math.floor(t.length()/3*2),i=t.length()%3,a=e.getCodewordCount()+n;e.updateSymbolInfo(a);var o=e.getSymbolInfo().getDataCapacity()-a;if(i===2){for(t.append("\0");t.length()>=3;)this.writeNextTriplet(e,t);e.hasMoreCharacters()&&e.writeCodeword(Dt)}else if(o===1&&i===1){for(;t.length()>=3;)this.writeNextTriplet(e,t);e.hasMoreCharacters()&&e.writeCodeword(Dt),e.pos--}else if(i===0){for(;t.length()>=3;)this.writeNextTriplet(e,t);(o>0||e.hasMoreCharacters())&&e.writeCodeword(Dt)}else throw new Error("Unexpected case. Please report!");e.signalEncoderChange(z)},r.prototype.encodeChar=function(e,t){if(e===32)return t.append(3),1;if(e>=48&&e<=57)return t.append(e-48+4),1;if(e>=65&&e<=90)return t.append(e-65+14),1;if(e<32)return t.append(0),t.append(e),2;if(e<=47)return t.append(1),t.append(e-33),2;if(e<=64)return t.append(1),t.append(e-58+15),2;if(e<=95)return t.append(1),t.append(e-91+22),2;if(e<=127)return t.append(2),t.append(e-96),2;t.append("1");var n=2;return n+=this.encodeChar(e-128,t),n},r.prototype.encodeToCodewords=function(e){var t=1600*e.charCodeAt(0)+40*e.charCodeAt(1)+e.charCodeAt(2)+1,n=t/256,i=t%256,a=new M;return a.append(n),a.append(i),a.toString()},r})(),oo=(function(){function r(){}return r.prototype.getEncodingMode=function(){return se},r.prototype.encode=function(e){for(var t=new M;e.hasMoreCharacters();){var n=e.getCurrentChar();this.encodeChar(n,t),e.pos++;var i=t.length();if(i>=4){e.writeCodewords(this.encodeToCodewords(t.toString()));var a=t.toString().substring(4);t.setLengthToZero(),t.append(a);var o=Te.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(o!==this.getEncodingMode()){e.signalEncoderChange(z);break}}}t.append(F.getCharAt(31)),this.handleEOD(e,t)},r.prototype.handleEOD=function(e,t){try{var n=t.length();if(n===0)return;if(n===1){e.updateSymbolInfo();var i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount(),a=e.getRemainingCharacters();if(a>i&&(e.updateSymbolInfo(e.getCodewordCount()+1),i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount()),a<=i&&i<=2)return}if(n>4)throw new Error("Count must not exceed 4");var o=n-1,f=this.encodeToCodewords(t.toString()),u=!e.hasMoreCharacters(),s=u&&o<=2;if(o<=2){e.updateSymbolInfo(e.getCodewordCount()+o);var i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount();i>=3&&(s=!1,e.updateSymbolInfo(e.getCodewordCount()+f.length))}s?(e.resetSymbolInfo(),e.pos-=o):e.writeCodewords(f)}finally{e.signalEncoderChange(z)}},r.prototype.encodeChar=function(e,t){e>=32&&e<=63?t.append(e):e>=64&&e<=94?t.append(F.getCharAt(e-64)):Te.illegalCharacter(F.getCharAt(e))},r.prototype.encodeToCodewords=function(e){var t=e.length;if(t===0)throw new Error("StringBuilder must not be empty");var n=e.charAt(0).charCodeAt(0),i=t>=2?e.charAt(1).charCodeAt(0):0,a=t>=3?e.charAt(2).charCodeAt(0):0,o=t>=4?e.charAt(3).charCodeAt(0):0,f=(n<<18)+(i<<12)+(a<<6)+o,u=f>>16&255,s=f>>8&255,c=f&255,h=new M;return h.append(u),t>=2&&h.append(s),t>=3&&h.append(c),h.toString()},r})(),fo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),uo=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},H=(function(){function r(e,t,n,i,a,o,f,u){f===void 0&&(f=0),u===void 0&&(u=0),this.rectangular=e,this.dataCapacity=t,this.errorCodewords=n,this.matrixWidth=i,this.matrixHeight=a,this.dataRegions=o,this.rsBlockData=f,this.rsBlockError=u}return r.lookup=function(e,t,n,i,a){var o,f;t===void 0&&(t=0),n===void 0&&(n=null),i===void 0&&(i=null),a===void 0&&(a=!0);try{for(var u=uo(co),s=u.next();!s.done;s=u.next()){var c=s.value;if(!(t===1&&c.rectangular)&&!(t===2&&!c.rectangular)&&!(n!=null&&(c.getSymbolWidth()i.getWidth()||c.getSymbolHeight()>i.getHeight()))&&e<=c.dataCapacity)return c}}catch(h){o={error:h}}finally{try{s&&!s.done&&(f=u.return)&&f.call(u)}finally{if(o)throw o.error}}if(a)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+e);return null},r.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},r.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},r.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},r.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},r.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+this.getHorizontalDataRegions()*2},r.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+this.getVerticalDataRegions()*2},r.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},r.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},r.prototype.getDataCapacity=function(){return this.dataCapacity},r.prototype.getErrorCodewords=function(){return this.errorCodewords},r.prototype.getDataLengthForInterleavedBlock=function(e){return this.rsBlockData},r.prototype.getErrorLengthForInterleavedBlock=function(e){return this.rsBlockError},r})(),so=(function(r){fo(e,r);function e(){return r.call(this,!1,1558,620,22,22,36,-1,62)||this}return e.prototype.getInterleavedBlockCount=function(){return 10},e.prototype.getDataLengthForInterleavedBlock=function(t){return t<=8?156:155},e})(H),co=[new H(!1,3,5,8,8,1),new H(!1,5,7,10,10,1),new H(!0,5,7,16,6,1),new H(!1,8,10,12,12,1),new H(!0,10,11,14,6,2),new H(!1,12,12,14,14,1),new H(!0,16,14,24,10,1),new H(!1,18,14,16,16,1),new H(!1,22,18,18,18,1),new H(!0,22,18,16,10,2),new H(!1,30,20,20,20,1),new H(!0,32,24,16,14,2),new H(!1,36,24,22,22,1),new H(!1,44,28,24,24,1),new H(!0,49,28,22,14,2),new H(!1,62,36,14,14,4),new H(!1,86,42,16,16,4),new H(!1,114,48,18,18,4),new H(!1,144,56,20,20,4),new H(!1,174,68,22,22,4),new H(!1,204,84,24,24,4,102,42),new H(!1,280,112,14,14,16,140,56),new H(!1,368,144,16,16,16,92,36),new H(!1,456,192,18,18,16,114,48),new H(!1,576,224,20,20,16,144,56),new H(!1,696,272,22,22,16,174,68),new H(!1,816,336,24,24,16,136,56),new H(!1,1050,408,18,18,36,175,68),new H(!1,1304,496,20,20,36,163,62),new so],ho=(function(){function r(e){this.msg=e,this.pos=0,this.skipAtEnd=0;for(var t=e.split("").map(function(f){return f.charCodeAt(0)}),n=new M,i=0,a=t.length;ithis.symbolInfo.getDataCapacity())&&(this.symbolInfo=H.lookup(e,this.shape,this.minSize,this.maxSize,!0))},r.prototype.resetSymbolInfo=function(){this.symbolInfo=null},r})(),lo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),vo=(function(r){lo(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getEncodingMode=function(){return ne},e.prototype.encode=function(t){for(var n=new M;t.hasMoreCharacters();){var i=t.getCurrentChar();t.pos++,this.encodeChar(i,n);var a=n.length();if(a%3===0){this.writeNextTriplet(t,n);var o=Te.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(o!==this.getEncodingMode()){t.signalEncoderChange(z);break}}}this.handleEOD(t,n)},e.prototype.encodeChar=function(t,n){switch(t){case 13:n.append(0);break;case 42:n.append(1);break;case 62:n.append(2);break;case 32:n.append(3);break;default:t>=48&&t<=57?n.append(t-48+4):t>=65&&t<=90?n.append(t-65+14):Te.illegalCharacter(F.getCharAt(t));break}return 1},e.prototype.handleEOD=function(t,n){t.updateSymbolInfo();var i=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),a=n.length();t.pos-=a,(t.getRemainingCharacters()>1||i>1||t.getRemainingCharacters()!==i)&&t.writeCodeword(no),t.getNewEncoding()<0&&t.signalEncoderChange(z)},e})(Yt),po=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),xo=(function(r){po(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getEncodingMode=function(){return ye},e.prototype.encodeChar=function(t,n){if(t===32)return n.append(3),1;if(t>=48&&t<=57)return n.append(t-48+4),1;if(t>=97&&t<=122)return n.append(t-97+14),1;if(t<32)return n.append(0),n.append(t),2;if(t<=47)return n.append(1),n.append(t-33),2;if(t<=64)return n.append(1),n.append(t-58+15),2;if(t>=91&&t<=95)return n.append(1),n.append(t-91+22),2;if(t===96)return n.append(2),n.append(0),2;if(t<=90)return n.append(2),n.append(t-65+1),2;if(t<=127)return n.append(2),n.append(t-123+27),2;n.append("1");var i=2;return i+=this.encodeChar(t-128,n),i},e})(Yt),Te=(function(){function r(){}return r.randomize253State=function(e){var t=149*e%253+1,n=Cr+t;return n<=254?n:n-254},r.encodeHighLevel=function(e,t,n,i,a){t===void 0&&(t=0),n===void 0&&(n=null),i===void 0&&(i=null),a===void 0&&(a=!1);var o=new Yt,f=[new io,o,new xo,new vo,new oo,new ao],u=new ho(e);u.setSymbolShape(t),u.setSizeConstraints(n,i),e.startsWith(mr)&&e.endsWith(Sr)?(u.writeCodeword(Qa),u.setSkipAtEnd(2),u.pos+=mr.length):e.startsWith(Ir)&&e.endsWith(Sr)&&(u.writeCodeword(Ja),u.setSkipAtEnd(2),u.pos+=Ir.length);var s=z;for(a&&(o.encodeMaximal(u),s=u.getNewEncoding(),u.resetEncoderSignal());u.hasMoreCharacters();)f[s].encode(u),u.getNewEncoding()>=0&&(s=u.getNewEncoding(),u.resetEncoderSignal());var c=u.getCodewordCount();u.updateSymbolInfo();var h=u.getSymbolInfo().getDataCapacity();c=e.length)return n;var i;n===z?i=[0,1,1,1,1,1.25]:(i=[1,2,2,2,2,2.25],i[n]=0);for(var a=0,o=new Uint8Array(6),f=[];;){if(t+a===e.length){oe.fill(o,0),oe.fill(f,0);var u=this.findMinimums(i,f,B.MAX_VALUE,o),s=this.getMinimumCount(o);if(f[z]===u)return z;if(s===1){if(o[ve]>0)return ve;if(o[se]>0)return se;if(o[ye]>0)return ye;if(o[ne]>0)return ne}return le}var c=e.charCodeAt(t+a);if(a++,this.isDigit(c)?i[z]+=.5:this.isExtendedASCII(c)?(i[z]=Math.ceil(i[z]),i[z]+=2):(i[z]=Math.ceil(i[z]),i[z]++),this.isNativeC40(c)?i[le]+=2/3:this.isExtendedASCII(c)?i[le]+=8/3:i[le]+=4/3,this.isNativeText(c)?i[ye]+=2/3:this.isExtendedASCII(c)?i[ye]+=8/3:i[ye]+=4/3,this.isNativeX12(c)?i[ne]+=2/3:this.isExtendedASCII(c)?i[ne]+=13/3:i[ne]+=10/3,this.isNativeEDIFACT(c)?i[se]+=3/4:this.isExtendedASCII(c)?i[se]+=17/4:i[se]+=13/4,this.isSpecialB256(c)?i[ve]+=4:i[ve]++,a>=4){if(oe.fill(o,0),oe.fill(f,0),this.findMinimums(i,f,B.MAX_VALUE,o),f[z]o&&(n=o,oe.fill(i,0)),n===o&&(i[a]=i[a]+1)}return n},r.getMinimumCount=function(e){for(var t=0,n=0;n<6;n++)t+=e[n];return t||0},r.isDigit=function(e){return e>=48&&e<=57},r.isExtendedASCII=function(e){return e>=128&&e<=255},r.isNativeC40=function(e){return e===32||e>=48&&e<=57||e>=65&&e<=90},r.isNativeText=function(e){return e===32||e>=48&&e<=57||e>=97&&e<=122},r.isNativeX12=function(e){return this.isX12TermSep(e)||e===32||e>=48&&e<=57||e>=65&&e<=90},r.isX12TermSep=function(e){return e===13||e===42||e===62},r.isNativeEDIFACT=function(e){return e>=32&&e<=94},r.isSpecialB256=function(e){return!1},r.determineConsecutiveDigitCount=function(e,t){t===void 0&&(t=0);for(var n=e.length,i=t;i=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Or=(function(){function r(e){this.charset=e,this.name=e.name}return r.prototype.canEncode=function(e){try{return Ie.encode(e,this.charset)!=null}catch{return!1}},r})(),go=(function(){function r(e,t,n){var i,a,o,f,u,s;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map(function(P){return new Or(ja.forName(P))}),this.encoders=[];var c=[];c.push(new Or(Ya.ISO_8859_1));for(var h=t!=null&&t.name.startsWith("UTF"),l=0;l=this.bytes.length)return!1;for(var n=0;n=this.length())throw new Error(""+e);if(this.isECI(e))throw new Error("value at "+e+" is not a character but an ECI");return this.isFNC1(e)?this.fnc1:this.bytes[e]},r.prototype.subSequence=function(e,t){if(e<0||e>t||t>this.length())throw new Error(""+e);for(var n=new M,i=e;i=this.length())throw new Error(""+e);return this.bytes[e]>255&&this.bytes[e]<=999},r.prototype.isFNC1=function(e){if(e<0||e>=this.length())throw new Error(""+e);return this.bytes[e]===1e3},r.prototype.getECIValue=function(e){if(e<0||e>=this.length())throw new Error(""+e);if(!this.isECI(e))throw new Error("value at "+e+" is not an ECI but a character");return this.bytes[e]-256},r.prototype.addEdge=function(e,t,n){(e[t][n.encoderIndex]==null||e[t][n.encoderIndex].cachedTotalSize>n.cachedTotalSize)&&(e[t][n.encoderIndex]=n)},r.prototype.addEdges=function(e,t,n,i,a,o){var f=e.charAt(i).charCodeAt(0),u=0,s=t.length();t.getPriorityEncoderIndex()>=0&&(f===o||t.canEncode(f,t.getPriorityEncoderIndex()))&&(u=t.getPriorityEncoderIndex(),s=u+1);for(var c=u;c=0;o--)h.unshift(d[o]&255);var v=l.previous===null?0:l.previous.encoderIndex;v!==l.encoderIndex&&h.unshift(256+t.getECIValue(l.encoderIndex)),l=l.previous}for(var x=[],o=0;o"},e})(Eo),mo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Io=(function(r){mo(e,r);function e(t,n,i){var a=r.call(this,t,0,0)||this;return a.binaryShiftStart=n,a.binaryShiftByteCount=i,a}return e.prototype.appendTo=function(t,n){for(var i=0;i62?t.appendBits(this.binaryShiftByteCount-31,16):i===0?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(n[this.binaryShiftStart+i],8)},e.prototype.addBinaryShift=function(t,n){return new e(this,t,n)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e})(Zt);function So(r,e,t){return new Io(r,e,t)}function Qe(r,e,t){return new Zt(r,e,t)}var Oo=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],Fe=0,gt=1,me=2,Zr=3,De=4,To=new Zt(null,0,0),Nt=[Int32Array.from([0,(5<<16)+28,(5<<16)+30,(5<<16)+29,656318]),Int32Array.from([(9<<16)+480+14,0,(5<<16)+30,(5<<16)+29,656318]),Int32Array.from([(4<<16)+14,(9<<16)+448+28,0,(9<<16)+448+29,932798]),Int32Array.from([(5<<16)+29,(5<<16)+28,656318,0,(5<<16)+30]),Int32Array.from([(5<<16)+31,656380,656382,656381,0])],Do=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function bo(r){var e,t;try{for(var n=Do(r),i=n.next();!i.done;i=n.next()){var a=i.value;oe.fill(a,-1)}}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r[Fe][De]=0,r[gt][De]=0,r[gt][Fe]=28,r[Zr][De]=0,r[me][De]=0,r[me][Fe]=15,r}var $r=bo(oe.createInt32Array(6,6)),No=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ro=(function(){function r(e,t,n,i){this.token=e,this.mode=t,this.binaryShiftByteCount=n,this.bitCount=i}return r.prototype.getMode=function(){return this.mode},r.prototype.getToken=function(){return this.token},r.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},r.prototype.getBitCount=function(){return this.bitCount},r.prototype.latchAndAppend=function(e,t){var n=this.bitCount,i=this.token;if(e!==this.mode){var a=Nt[this.mode][e];i=Qe(i,a&65535,a>>16),n+=a>>16}var o=e===me?4:5;return i=Qe(i,t,o),new r(i,e,0,n+o)},r.prototype.shiftAndAppend=function(e,t){var n=this.token,i=this.mode===me?4:5;return n=Qe(n,$r[this.mode][e],i),n=Qe(n,t,5),new r(n,this.mode,0,this.bitCount+i+5)},r.prototype.addBinaryShiftChar=function(e){var t=this.token,n=this.mode,i=this.bitCount;if(this.mode===De||this.mode===me){var a=Nt[n][Fe];t=Qe(t,a&65535,a>>16),i+=a>>16,n=Fe}var o=this.binaryShiftByteCount===0||this.binaryShiftByteCount===31?18:this.binaryShiftByteCount===62?9:8,f=new r(t,n,this.binaryShiftByteCount+1,i+o);return f.binaryShiftByteCount===2078&&(f=f.endBinaryShift(e+1)),f},r.prototype.endBinaryShift=function(e){if(this.binaryShiftByteCount===0)return this;var t=this.token;return t=So(t,e-this.binaryShiftByteCount,this.binaryShiftByteCount),new r(t,this.mode,0,this.bitCount)},r.prototype.isBetterThanOrEqualTo=function(e){var t=this.bitCount+(Nt[this.mode][e.mode]>>16);return this.binaryShiftByteCounte.binaryShiftByteCount&&e.binaryShiftByteCount>0&&(t+=10),t<=e.bitCount},r.prototype.toBitArray=function(e){for(var t,n,i=[],a=this.endBinaryShift(e.length).token;a!==null;a=a.getPrevious())i.unshift(a);var o=new ce;try{for(var f=No(i),u=f.next();!u.done;u=f.next()){var s=u.value;s.appendTo(o,e)}}catch(c){t={error:c}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return o},r.prototype.toString=function(){return F.format("%s bits=%d bytes=%d",Oo[this.mode],this.bitCount,this.binaryShiftByteCount)},r.calculateBinaryShiftCost=function(e){return e.binaryShiftByteCount>62?21:e.binaryShiftByteCount>31?20:e.binaryShiftByteCount>0?10:0},r.INITIAL_STATE=new r(To,Fe,0,0),r})();function Po(r){var e=F.getCharCode(" "),t=F.getCharCode("."),n=F.getCharCode(",");r[Fe][e]=1;for(var i=F.getCharCode("Z"),a=F.getCharCode("A"),o=a;o<=i;o++)r[Fe][o]=o-a+2;r[gt][e]=1;for(var f=F.getCharCode("z"),u=F.getCharCode("a"),o=u;o<=f;o++)r[gt][o]=o-u+2;r[me][e]=1;for(var s=F.getCharCode("9"),c=F.getCharCode("0"),o=c;o<=s;o++)r[me][o]=o-c+2;r[me][n]=12,r[me][t]=13;for(var h=["\0"," ","","","","","","","\x07","\b"," ",` +`,"\v","\f","\r","\x1B","","","","","@","\\","^","_","`","|","~",""],l=0;l","?","[","]","{","}"],l=0;l0&&(r[De][F.getCharCode(d[l])]=l);return r}var Rt=Po(oe.createInt32Array(5,256)),ut=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Mo=(function(){function r(e){this.text=e}return r.prototype.encode=function(){for(var e=F.getCharCode(" "),t=F.getCharCode(` +`),n=br.singletonList(Ro.INITIAL_STATE),i=0;i0?(n=r.updateStateListForPair(n,i,a),i++):n=this.updateStateListForChar(n,i)}var f=br.min(n,function(u,s){return u.getBitCount()-s.getBitCount()});return f.toBitArray(this.text)},r.prototype.updateStateListForChar=function(e,t){var n,i,a=[];try{for(var o=ut(e),f=o.next();!f.done;f=o.next()){var u=f.value;this.updateStateForChar(u,t,a)}}catch(s){n={error:s}}finally{try{f&&!f.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r.simplifyStates(a)},r.prototype.updateStateForChar=function(e,t,n){for(var i=this.text[t]&255,a=Rt[e.getMode()][i]>0,o=null,f=0;f<=De;f++){var u=Rt[f][i];if(u>0){if(o==null&&(o=e.endBinaryShift(t)),!a||f===e.getMode()||f===me){var s=o.latchAndAppend(f,u);n.push(s)}if(!a&&$r[e.getMode()][f]>=0){var c=o.shiftAndAppend(f,u);n.push(c)}}}if(e.getBinaryShiftByteCount()>0||Rt[e.getMode()][i]===0){var h=e.addBinaryShiftChar(t);n.push(h)}},r.updateStateListForPair=function(e,t,n){var i,a,o=[];try{for(var f=ut(e),u=f.next();!u.done;u=f.next()){var s=u.value;this.updateStateForPair(s,t,n,o)}}catch(c){i={error:c}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return this.simplifyStates(o)},r.updateStateForPair=function(e,t,n,i){var a=e.endBinaryShift(t);if(i.push(a.latchAndAppend(De,n)),e.getMode()!==De&&i.push(a.shiftAndAppend(De,n)),n===3||n===4){var o=a.latchAndAppend(me,16-n).latchAndAppend(me,1);i.push(o)}if(e.getBinaryShiftByteCount()>0){var f=e.addBinaryShiftChar(t).addBinaryShiftChar(t+1);i.push(f)}},r.simplifyStates=function(e){var t,n,i,a,o=[];try{for(var f=ut(e),u=f.next();!u.done;u=f.next()){var s=u.value,c=!0,h=function(g){if(g.isBetterThanOrEqualTo(s))return c=!1,"break";s.isBetterThanOrEqualTo(g)&&(o=o.filter(function(w){return w!==g}))};try{for(var l=(i=void 0,ut(o)),d=l.next();!d.done;d=l.next()){var v=d.value,x=h(v);if(x==="break")break}}catch(g){i={error:g}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}c&&o.push(s)}}catch(g){t={error:g}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return o},r})(),Bo=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function r(){}return r.encodeBytes=function(e){return r.encode(e,r.DEFAULT_EC_PERCENT,r.DEFAULT_AZTEC_LAYERS)},r.encode=function(e,t,n){var i=new Mo(e).encode(),a=B.truncDivision(i.getSize()*t,100)+11,o=i.getSize()+a,f,u,s,c,h;if(n!==r.DEFAULT_AZTEC_LAYERS){if(f=n<0,u=Math.abs(n),u>(f?r.MAX_NB_BITS_COMPACT:r.MAX_NB_BITS))throw new N(F.format("Illegal value %s for layers",n));s=r.totalBitsInLayer(u,f),c=r.WORD_SIZE[u];var l=s-s%c;if(h=r.stuffBits(i,c),h.getSize()+a>l)throw new N("Data to large for user specified layer");if(f&&h.getSize()>c*64)throw new N("Data to large for user specified layer")}else{c=0,h=null;for(var d=0;;d++){if(d>r.MAX_NB_BITS)throw new N("Data too large for an Aztec code");if(f=d<=3,u=f?d+1:d,s=r.totalBitsInLayer(u,f),!(o>s)){(h==null||c!==r.WORD_SIZE[u])&&(c=r.WORD_SIZE[u],h=r.stuffBits(i,c));var l=s-s%c;if(!(f&&h.getSize()>c*64)&&h.getSize()+a<=l)break}}}var v=r.generateCheckWords(h,s,c),x=h.getSize()/c,g=r.generateModeMessage(f,u,x),w=(f?11:14)+u*4,y=new Int32Array(w),A;if(f){A=w;for(var d=0;d=i||e.get(o+u))&&(f|=1<>10}a[f]=s}return a},e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new N("Requested row is outside the image: "+t);var i=this.getWidth(),a=t*i;return n===null?n=this.buffer.slice(a,a+i):(n.length0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Vo={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},$e=(function(){function r(e,t,n){t===void 0&&(t=new Map),n===void 0&&(n={}),this.reader=e,this.hints=t,this.options=je(je({},Vo),n)}return Object.defineProperty(r.prototype,"possibleFormats",{set:function(e){this.hints.set(X.POSSIBLE_FORMATS,e)},enumerable:!1,configurable:!0}),r.addVideoSource=function(e,t){try{e.srcObject=t}catch{console.error("got interrupted by new loading request")}},r.mediaStreamSetTorch=function(e,t){return q(this,void 0,void 0,function(){return Q(this,function(n){switch(n.label){case 0:return[4,e.applyConstraints({advanced:[{fillLightMode:t?"flash":"off",torch:!!t}]})];case 1:return n.sent(),[2]}})})},r.mediaStreamIsTorchCompatible=function(e){var t,n,i=e.getVideoTracks();try{for(var a=Pt(i),o=a.next();!o.done;o=a.next()){var f=o.value;if(r.mediaStreamIsTorchCompatibleTrack(f))return!0}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return!1},r.mediaStreamIsTorchCompatibleTrack=function(e){try{var t=e.getCapabilities();return"torch"in t}catch(n){return console.error(n),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},r.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&e.readyState>2},r.getMediaElement=function(e,t){var n=document.getElementById(e);if(!n)throw new ee("element with id '".concat(e,"' not found"));if(n.nodeName.toLowerCase()!==t.toLowerCase())throw new ee("element with id '".concat(e,"' must be an ").concat(t," element"));return n},r.createVideoElement=function(e){if(e instanceof HTMLVideoElement)return e;if(typeof e=="string")return r.getMediaElement(e,"video");if(!e&&typeof document<"u"){var t=document.createElement("video");return t.width=200,t.height=200,t}throw new Error("Couldn't get videoElement from videoSource!")},r.prepareImageElement=function(e){if(e instanceof HTMLImageElement)return e;if(typeof e=="string")return r.getMediaElement(e,"img");if(typeof e>"u"){var t=document.createElement("img");return t.width=200,t.height=200,t}throw new Error("Couldn't get imageElement from imageSource!")},r.prepareVideoElement=function(e){var t=r.createVideoElement(e);return t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t},r.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},r.createBinaryBitmapFromCanvas=function(e){var t=new Lo(e),n=new Mr(t);return new Pr(n)},r.drawImageOnCanvas=function(e,t){e.drawImage(t,0,0)},r.getMediaElementDimensions=function(e){if(e instanceof HTMLVideoElement)return{height:e.videoHeight,width:e.videoWidth};if(e instanceof HTMLImageElement)return{height:e.naturalHeight||e.height,width:e.naturalWidth||e.width};throw new Error("Couldn't find the Source's dimensions!")},r.createCaptureCanvas=function(e){if(!e)throw new ee("Cannot create a capture canvas without a media element.");if(typeof document>"u")throw new Error(`The page "Document" is undefined, make sure you're running in a browser.`);var t=document.createElement("canvas"),n=r.getMediaElementDimensions(e),i=n.width,a=n.height;return t.style.width=i+"px",t.style.height=a+"px",t.width=i,t.height=a,t},r.tryPlayVideo=function(e){return q(this,void 0,void 0,function(){var t;return Q(this,function(n){switch(n.label){case 0:if(e!=null&&e.ended)return console.error("Trying to play video that has ended."),[2,!1];if(r.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2,!0];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.play()];case 2:return n.sent(),[2,!0];case 3:return t=n.sent(),console.warn("It was not possible to play the video.",t),[2,!1];case 4:return[2]}})})},r.createCanvasFromMediaElement=function(e){var t=r.createCaptureCanvas(e),n=t.getContext("2d");if(!n)throw new Error("Couldn't find Canvas 2D Context.");return r.drawImageOnCanvas(n,e),t},r.createBinaryBitmapFromMediaElem=function(e){var t=r.createCanvasFromMediaElement(e);return r.createBinaryBitmapFromCanvas(t)},r.destroyImageElement=function(e){e.src="",e.removeAttribute("src"),e=void 0},r.listVideoInputDevices=function(){return q(this,void 0,void 0,function(){var e,t,n,i,a,o,f,u,s,c,h,l;return Q(this,function(d){switch(d.label){case 0:if(!Kr())throw new Error("Can't enumerate devices, navigator is not present.");if(!Uo())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=d.sent(),t=[];try{for(n=Pt(e),i=n.next();!i.done;i=n.next())a=i.value,o=a.kind==="video"?"videoinput":a.kind,o==="videoinput"&&(f=a.deviceId||a.id,u=a.label||"Video device ".concat(t.length+1),s=a.groupId,c={deviceId:f,label:u,kind:o,groupId:s},t.push(c))}catch(v){h={error:v}}finally{try{i&&!i.done&&(l=n.return)&&l.call(n)}finally{if(h)throw h.error}}return[2,t]}})})},r.findDeviceById=function(e){return q(this,void 0,void 0,function(){var t;return Q(this,function(n){switch(n.label){case 0:return[4,r.listVideoInputDevices()];case 1:return t=n.sent(),t?[2,t.find(function(i){return i.deviceId===e})]:[2]}})})},r.cleanVideoSource=function(e){if(e){try{e.srcObject=null}catch{e.src=""}e&&e.removeAttribute("src")}},r.releaseAllStreams=function(){r.streamTracker.length!==0&&r.streamTracker.forEach(function(e){e.getTracks().forEach(function(t){return t.stop()})}),r.streamTracker=[]},r.playVideoOnLoadAsync=function(e,t){return q(this,void 0,void 0,function(){var n;return Q(this,function(i){switch(i.label){case 0:return[4,r.tryPlayVideo(e)];case 1:return n=i.sent(),n?[2,!0]:[2,new Promise(function(a,o){var f=setTimeout(function(){r.isVideoPlaying(e)||(o(!1),e.removeEventListener("canplay",u))},t),u=function(){r.tryPlayVideo(e).then(function(s){clearTimeout(f),e.removeEventListener("canplay",u),a(s)})};e.addEventListener("canplay",u)})]}})})},r.attachStreamToVideo=function(e,t,n){return n===void 0&&(n=5e3),q(this,void 0,void 0,function(){var i;return Q(this,function(a){switch(a.label){case 0:return i=r.prepareVideoElement(t),r.addVideoSource(i,e),[4,r.playVideoOnLoadAsync(i,n)];case 1:return a.sent(),[2,i]}})})},r._waitImageLoad=function(e){return new Promise(function(t,n){var i=1e4,a=setTimeout(function(){r.isImageLoaded(e)||(e.removeEventListener("load",o),n())},i),o=function(){clearTimeout(a),e.removeEventListener("load",o),t()};e.addEventListener("load",o)})},r.checkCallbackFnOrThrow=function(e){if(!e)throw new ee("`callbackFn` is a required parameter, you cannot capture results without it.")},r.disposeMediaStream=function(e){e.getVideoTracks().forEach(function(t){return t.stop()}),e=void 0},r.prototype.decode=function(e){var t=r.createCanvasFromMediaElement(e);return this.decodeFromCanvas(t)},r.prototype.decodeBitmap=function(e){return this.reader.decode(e,this.hints)},r.prototype.decodeFromCanvas=function(e){var t=r.createBinaryBitmapFromCanvas(e);return this.decodeBitmap(t)},r.prototype.decodeFromImageElement=function(e){return q(this,void 0,void 0,function(){var t;return Q(this,function(n){switch(n.label){case 0:if(!e)throw new ee("An image element must be provided.");return t=r.prepareImageElement(e),[4,this._decodeOnLoadImage(t)];case 1:return[2,n.sent()]}})})},r.prototype.decodeFromImageUrl=function(e){return q(this,void 0,void 0,function(){var t;return Q(this,function(n){switch(n.label){case 0:if(!e)throw new ee("An URL must be provided.");t=r.prepareImageElement(),t.src=e,n.label=1;case 1:return n.trys.push([1,,3,4]),[4,this.decodeFromImageElement(t)];case 2:return[2,n.sent()];case 3:return r.destroyImageElement(t),[7];case 4:return[2]}})})},r.prototype.decodeFromConstraints=function(e,t,n){return q(this,void 0,void 0,function(){var i,a;return Q(this,function(o){switch(o.label){case 0:return r.checkCallbackFnOrThrow(n),[4,this.getUserMedia(e)];case 1:i=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.decodeFromStream(i,t,n)];case 3:return[2,o.sent()];case 4:throw a=o.sent(),r.disposeMediaStream(i),a;case 5:return[2]}})})},r.prototype.decodeFromStream=function(e,t,n){return q(this,void 0,void 0,function(){var i,a,o,f,u,s,c,h,l,d=this;return Q(this,function(v){switch(v.label){case 0:return r.checkCallbackFnOrThrow(n),i=this.options.tryPlayVideoTimeout,[4,r.attachStreamToVideo(e,t,i)];case 1:return a=v.sent(),o=function(){r.disposeMediaStream(e),r.cleanVideoSource(a)},f=this.scan(a,n,o),u=e.getVideoTracks(),s=je(je({},f),{stop:function(){f.stop()},streamVideoConstraintsApply:function(x,g){return q(this,void 0,void 0,function(){var w,y,A,E,m,I,S;return Q(this,function(D){switch(D.label){case 0:w=g?u.filter(g):u,D.label=1;case 1:D.trys.push([1,6,7,8]),y=Pt(w),A=y.next(),D.label=2;case 2:return A.done?[3,5]:(E=A.value,[4,E.applyConstraints(x)]);case 3:D.sent(),D.label=4;case 4:return A=y.next(),[3,2];case 5:return[3,8];case 6:return m=D.sent(),I={error:m},[3,8];case 7:try{A&&!A.done&&(S=y.return)&&S.call(y)}finally{if(I)throw I.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(x){return u.find(x).getConstraints()},streamVideoSettingsGet:function(x){return u.find(x).getSettings()},streamVideoCapabilitiesGet:function(x){return u.find(x).getCapabilities()}}),c=r.mediaStreamIsTorchCompatible(e),c&&(h=u==null?void 0:u.find(function(x){return r.mediaStreamIsTorchCompatibleTrack(x)}),l=function(x){return q(d,void 0,void 0,function(){return Q(this,function(g){switch(g.label){case 0:return[4,r.mediaStreamSetTorch(h,x)];case 1:return g.sent(),[2]}})})},s.switchTorch=l,s.stop=function(){return q(d,void 0,void 0,function(){return Q(this,function(x){switch(x.label){case 0:return f.stop(),[4,l(!1)];case 1:return x.sent(),[2]}})})}),[2,s]}})})},r.prototype.decodeFromVideoDevice=function(e,t,n){return q(this,void 0,void 0,function(){var i,a;return Q(this,function(o){switch(o.label){case 0:return r.checkCallbackFnOrThrow(n),e?i={deviceId:{exact:e}}:i={facingMode:"environment"},a={video:i},[4,this.decodeFromConstraints(a,t,n)];case 1:return[2,o.sent()]}})})},r.prototype.decodeFromVideoElement=function(e,t){return q(this,void 0,void 0,function(){var n,i;return Q(this,function(a){switch(a.label){case 0:if(r.checkCallbackFnOrThrow(t),!e)throw new ee("A video element must be provided.");return n=r.prepareVideoElement(e),i=this.options.tryPlayVideoTimeout,[4,r.playVideoOnLoadAsync(n,i)];case 1:return a.sent(),[2,this.scan(n,t)]}})})},r.prototype.decodeFromVideoUrl=function(e,t){return q(this,void 0,void 0,function(){var n,i,a,o;return Q(this,function(f){switch(f.label){case 0:if(r.checkCallbackFnOrThrow(t),!e)throw new ee("An URL must be provided.");return n=r.prepareVideoElement(),n.src=e,i=function(){r.cleanVideoSource(n)},a=this.options.tryPlayVideoTimeout,[4,r.playVideoOnLoadAsync(n,a)];case 1:return f.sent(),o=this.scan(n,t,i),[2,o]}})})},r.prototype.decodeOnceFromConstraints=function(e,t){return q(this,void 0,void 0,function(){var n;return Q(this,function(i){switch(i.label){case 0:return[4,this.getUserMedia(e)];case 1:return n=i.sent(),[4,this.decodeOnceFromStream(n,t)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromStream=function(e,t){return q(this,void 0,void 0,function(){var n,i,a;return Q(this,function(o){switch(o.label){case 0:return n=!!t,[4,r.attachStreamToVideo(e,t)];case 1:i=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,5]),[4,this.scanOneResult(i)];case 3:return a=o.sent(),[2,a];case 4:return n||r.cleanVideoSource(i),[7];case 5:return[2]}})})},r.prototype.decodeOnceFromVideoDevice=function(e,t){return q(this,void 0,void 0,function(){var n,i;return Q(this,function(a){switch(a.label){case 0:return e?n={deviceId:{exact:e}}:n={facingMode:"environment"},i={video:n},[4,this.decodeOnceFromConstraints(i,t)];case 1:return[2,a.sent()]}})})},r.prototype.decodeOnceFromVideoElement=function(e){return q(this,void 0,void 0,function(){var t,n;return Q(this,function(i){switch(i.label){case 0:if(!e)throw new ee("A video element must be provided.");return t=r.prepareVideoElement(e),n=this.options.tryPlayVideoTimeout,[4,r.playVideoOnLoadAsync(t,n)];case 1:return i.sent(),[4,this.scanOneResult(t)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromVideoUrl=function(e){return q(this,void 0,void 0,function(){var t,n;return Q(this,function(i){switch(i.label){case 0:if(!e)throw new ee("An URL must be provided.");t=r.prepareVideoElement(),t.src=e,n=this.decodeOnceFromVideoElement(t),i.label=1;case 1:return i.trys.push([1,,3,4]),[4,n];case 2:return[2,i.sent()];case 3:return r.cleanVideoSource(t),[7];case 4:return[2]}})})},r.prototype.scanOneResult=function(e,t,n,i){var a=this;return t===void 0&&(t=!0),n===void 0&&(n=!0),i===void 0&&(i=!0),new Promise(function(o,f){a.scan(e,function(u,s,c){if(u){o(u),c.stop();return}if(s){if(s instanceof C&&t||s instanceof te&&n||s instanceof T&&i)return;c.stop(),f(s)}})})},r.prototype.scan=function(e,t,n){var i=this;r.checkCallbackFnOrThrow(t);var a=r.createCaptureCanvas(e),o;try{o=a.getContext("2d",{willReadFrequently:!0})}catch{o=a.getContext("2d")}if(!o)throw new Error("Couldn't create canvas for visual element scan.");var f=function(){o=void 0,a=void 0},u=!1,s,c=function(){u=!0,clearTimeout(s),f(),n&&n()},h={stop:c},l=function(){if(!u)try{r.drawImageOnCanvas(o,e);var d=i.decodeFromCanvas(a);t(d,void 0,h),s=setTimeout(l,i.options.delayBetweenScanSuccess)}catch(w){t(void 0,w,h);var v=w instanceof te,x=w instanceof T,g=w instanceof C;if(v||x||g){s=setTimeout(l,i.options.delayBetweenScanAttempts);return}f(),n&&n(w)}};return l(),h},r.prototype._decodeOnLoadImage=function(e){return q(this,void 0,void 0,function(){var t;return Q(this,function(n){switch(n.label){case 0:return t=r.isImageLoaded(e),t?[3,2]:[4,r._waitImageLoad(e)];case 1:n.sent(),n.label=2;case 2:return[2,this.decode(e)]}})})},r.prototype.getUserMedia=function(e){return q(this,void 0,void 0,function(){var t;return Q(this,function(n){switch(n.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return t=n.sent(),r.streamTracker.push(t),[2,t]}})})},r.streamTracker=[],r})(),Ho=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){Ho(e,r);function e(t,n){return r.call(this,new lt,t,n)||this}return e})($e);var Go=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){Go(e,r);function e(t,n){return r.call(this,new We(t),t,n)||this}return e})($e);var Xo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){Xo(e,r);function e(t,n){return r.call(this,new vt,t,n)||this}return e})($e);var Wo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),zo=(function(r){Wo(e,r);function e(t,n){var i=this,a=new zr;return a.setHints(t),i=r.call(this,a,t,n)||this,i.reader=a,i}return Object.defineProperty(e.prototype,"possibleFormats",{set:function(t){this.hints.set(X.POSSIBLE_FORMATS,t),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e.prototype.setHints=function(t){this.hints=t,this.reader.setHints(this.hints)},e})($e),jo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){jo(e,r);function e(t,n){return r.call(this,new xt,t,n)||this}return e})($e);var Yo=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();(function(r){Yo(e,r);function e(t,n){return r.call(this,new pt,t,n)||this}return e})($e);const Nr={[O.AZTEC]:"aztec",[O.CODABAR]:"codabar",[O.CODE_39]:"code_39",[O.CODE_93]:"code_93",[O.CODE_128]:"code_128",[O.DATA_MATRIX]:"data_matrix",[O.EAN_8]:"ean_8",[O.EAN_13]:"ean_13",[O.ITF]:"itf",[O.PDF_417]:"pdf417",[O.QR_CODE]:"qr_code",[O.UPC_A]:"upc_a",[O.UPC_E]:"upc_e",[O.UPC_EAN_EXTENSION]:"unknown",[O.MAXICODE]:"unknown",[O.RSS_14]:"unknown",[O.RSS_EXPANDED]:"unknown"},Rr={aztec:O.AZTEC,codabar:O.CODABAR,code_39:O.CODE_39,code_93:O.CODE_93,code_128:O.CODE_128,data_matrix:O.DATA_MATRIX,ean_8:O.EAN_8,ean_13:O.EAN_13,itf:O.ITF,pdf417:O.PDF_417,qr_code:O.QR_CODE,upc_a:O.UPC_A,upc_e:O.UPC_E};class $o{constructor(e){$t(this,"reader");const t=new Map([[X.TRY_HARDER,!0],[X.POSSIBLE_FORMATS,e?e.formats.map(n=>Rr[n]):Object.values(Rr)]]);this.reader=new zo(t)}static getSupportedFormats(){return Promise.resolve(Object.values(Nr))}async detect(e){try{let t;if(e instanceof HTMLVideoElement||e instanceof HTMLImageElement)t=await this.reader.scanOneResult(e,!1);else if(e instanceof HTMLCanvasElement)t=this.reader.decodeFromCanvas(e);else if(e instanceof Blob){const n=await this.blobToImage(e);t=await this.reader.scanOneResult(n,!1)}else if(e instanceof ImageBitmap||e instanceof ImageData||e instanceof VideoFrame)t=this.reader.decodeFromCanvas(this.imageDataSourceToCanvas(e));else throw new TypeError("Image source is not supported");return[{rawValue:t.getText(),format:Nr[t.getBarcodeFormat()],boundingBox:new DOMRectReadOnly,cornerPoints:t.getResultPoints().map(n=>({x:n.getX(),y:n.getY()}))}]}catch(t){if(t&&!(t instanceof C))throw t;return[]}}async blobToImage(e){return new Promise((t,n)=>{const i=URL.createObjectURL(e),a=new Image;a.onload=()=>{URL.revokeObjectURL(i),t(a)},a.onerror=()=>n(),a.src=i})}imageDataSourceToCanvas(e){const t=document.createElement("canvas"),n=t.getContext("2d"),i=e instanceof VideoFrame?e.displayWidth:e.width,a=e instanceof VideoFrame?e.displayHeight:e.height;return n&&(e instanceof ImageData?n.putImageData(e,i,a):n.drawImage(e,i,a)),t}}export{$o as BarcodeDetector,$o as default}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/BxPgF2w2.js b/.svelte-kit/output/client/_app/immutable/chunks/BxPgF2w2.js new file mode 100644 index 00000000..af83880a --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/BxPgF2w2.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DRlIEfz1.js","./Bzak7iHL.js","./Dexp9pM5.js","./DZmckTjd.js","./agKGoZF1.js","./CRDN6Mh7.js","./iABcLwh6.js","./25AjRaeI.js","./jOLfEXYH.js","./BKSreT2u.js","./61AlszRR.js","./BapE3c1q.js","./B12dZE2q.js","./BC20z61P.js","./CsnJU1X_.js"])))=>i.map(i=>d[i]); +import{i as P,_ as A}from"./CRDN6Mh7.js";import"./Bzak7iHL.js";import{Q as D,l as O,_ as V,i as p,$ as B,a0 as h,o as y,s as x,J as F,P as L,A as E,c as v,f as u,T as M,a as n,G as C,a1 as N,a2 as j,g as _,u as k,b as q}from"./Dexp9pM5.js";import{a as z}from"./DcVg5zjO.js";import{c as G}from"./25AjRaeI.js";import{t as H,a as J,c as Q,s as R}from"./BKSreT2u.js";import{e as S}from"./BC20z61P.js";import{p as w,b as K,r as U}from"./jOLfEXYH.js";function W(o,a){let r=null,d=p;var t;if(p){r=F;for(var e=L(document.head);e!==null&&(e.nodeType!==B||e.data!==o);)e=h(e);if(e===null)y(!1);else{var i=h(e);e.remove(),x(i)}}p||(t=document.head.appendChild(D()));try{O(()=>a(t),V)}finally{d&&(y(!0),x(r))}}const X=H({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ne(o,a){E(a,!0);let r=w(a,"ref",15,null),d=w(a,"variant",3,"default"),t=U(a,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var e=v(),i=u(e);S(i,()=>a.href?"a":"span",!1,(c,l)=>{K(c,f=>r(f),()=>r()),J(c,f=>({"data-slot":"badge",href:a.href,class:f,...t}),[()=>Q(X({variant:d()}),a.class)]);var s=v(),m=u(s);R(m,()=>a.children??M),n(l,s)}),n(o,e),C()}var Y=q('

Loading…

');function oe(o,a){E(a,!0);var r=v();W("rk8na7",e=>{N(()=>{j.title="Items – Stackq"})});var d=u(r);{var t=e=>{var i=v(),c=u(i);z(c,()=>A(()=>import("./DRlIEfz1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),l=>{var s=Y();n(l,s)},(l,s)=>{var m=k(()=>{var{default:g}=_(s);return{ItemsCrud:g}}),f=k(()=>_(m).ItemsCrud),b=v(),I=u(b);G(I,()=>_(f),(g,T)=>{T(g,{get data(){return a.data}})}),n(l,b)}),n(e,i)};P(d,e=>{e(t)})}n(o,r),C()}export{ne as B,oe as _,W as h}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js b/.svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js new file mode 100644 index 00000000..e8f20e7b --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js @@ -0,0 +1 @@ +var e;typeof window<"u"&&((e=window.__svelte??(window.__svelte={})).v??(e.v=new Set)).add("5"); diff --git a/.svelte-kit/output/client/_app/immutable/chunks/CRDN6Mh7.js b/.svelte-kit/output/client/_app/immutable/chunks/CRDN6Mh7.js new file mode 100644 index 00000000..8230495f --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/CRDN6Mh7.js @@ -0,0 +1 @@ +var H=Object.defineProperty;var y=r=>{throw TypeError(r)};var I=(r,e,t)=>e in r?H(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var P=(r,e,t)=>I(r,typeof e!="symbol"?e+"":e,t),L=(r,e,t)=>e.has(r)||y("Cannot "+t);var s=(r,e,t)=>(L(r,e,"read from private field"),t?t.call(r):e.get(r)),v=(r,e,t)=>e.has(r)?y("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),C=(r,e,t,n)=>(L(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t);import{a3 as D,a4 as N,a5 as T,a6 as O,Q as F,a7 as j,i as R,J as $,a8 as q,a9 as U,l as Y,j as J,L as M,aa as Q,ab as W,H as z,n as G,s as K,o as x}from"./Dexp9pM5.js";var u,d,h,b,k,w,A;class V{constructor(e,t=!0){P(this,"anchor");v(this,u,new Map);v(this,d,new Map);v(this,h,new Map);v(this,b,new Set);v(this,k,!0);v(this,w,()=>{var e=D;if(s(this,u).has(e)){var t=s(this,u).get(e),n=s(this,d).get(t);if(n)N(n),s(this,b).delete(t);else{var f=s(this,h).get(t);f&&(s(this,d).set(t,f.effect),s(this,h).delete(t),f.fragment.lastChild.remove(),this.anchor.before(f.fragment),n=f.effect)}for(const[c,a]of s(this,u)){if(s(this,u).delete(c),c===e)break;const i=s(this,h).get(a);i&&(T(i.effect),s(this,h).delete(a))}for(const[c,a]of s(this,d)){if(c===t||s(this,b).has(c))continue;const i=()=>{if(Array.from(s(this,u).values()).includes(c)){var m=document.createDocumentFragment();q(a,m),m.append(F()),s(this,h).set(c,{effect:a,fragment:m})}else T(a);s(this,b).delete(c),s(this,d).delete(c)};s(this,k)||!n?(s(this,b).add(c),O(a,i,!1)):i()}}});v(this,A,e=>{s(this,u).delete(e);const t=Array.from(s(this,u).values());for(const[n,f]of s(this,h))t.includes(n)||(T(f.effect),s(this,h).delete(n))});this.anchor=e,C(this,k,t)}ensure(e,t){var n=D,f=U();if(t&&!s(this,d).has(e)&&!s(this,h).has(e))if(f){var c=document.createDocumentFragment(),a=F();c.append(a),s(this,h).set(e,{effect:j(()=>t(a)),fragment:c})}else s(this,d).set(e,j(()=>t(this.anchor)));if(s(this,u).set(n,e),f){for(const[i,o]of s(this,d))i===e?n.unskip_effect(o):n.skip_effect(o);for(const[i,o]of s(this,h))i===e?n.unskip_effect(o.effect):n.skip_effect(o.effect);n.oncommit(s(this,w)),n.ondiscard(s(this,A))}else R&&(this.anchor=$),s(this,w).call(this)}}u=new WeakMap,d=new WeakMap,h=new WeakMap,b=new WeakMap,k=new WeakMap,w=new WeakMap,A=new WeakMap;function se(r,e,t=!1){R&&J();var n=new V(r),f=t?M:0;function c(a,i){if(R){const l=Q(r);var o;if(l===W?o=0:l===z?o=!1:o=parseInt(l.substring(1)),a!==o){var m=G();K(m),n.anchor=m,x(!1),n.ensure(a,i),x(!0);return}}n.ensure(a,i)}Y(()=>{var a=!1;e((i,o=0)=>{a=!0,c(o,i)}),a||c(!1,null)},f)}const X="modulepreload",Z=function(r,e){return new URL(r,e).href},B={},re=function(e,t,n){let f=Promise.resolve();if(t&&t.length>0){let a=function(l){return Promise.all(l.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),m=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));f=a(t.map(l=>{if(l=Z(l,n),l in B)return;B[l]=!0;const p=l.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(n)for(let E=i.length-1;E>=0;E--){const S=i[E];if(S.href===l&&(!p||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${g}`))return;const _=document.createElement("link");if(_.rel=p?"stylesheet":X,p||(_.as="script"),_.crossOrigin="",_.href=l,m&&_.setAttribute("nonce",m),document.head.appendChild(_),p)return new Promise((E,S)=>{_.addEventListener("load",E),_.addEventListener("error",()=>S(Error(`Unable to preload CSS for ${l}`)))})}))}function c(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return f.then(a=>{for(const i of a||[])i.status==="rejected"&&c(i.reason);return e().catch(c)})};export{V as B,re as _,se as i}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/CsnJU1X_.js b/.svelte-kit/output/client/_app/immutable/chunks/CsnJU1X_.js new file mode 100644 index 00000000..bb9e6b25 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/CsnJU1X_.js @@ -0,0 +1 @@ +import"./Bzak7iHL.js";import{A as o,h as c,r as n,a as i,G as f,T as v,b as h}from"./Dexp9pM5.js";import{a as m,s as u,c as p}from"./BKSreT2u.js";import{p as b,b as x,r as g}from"./jOLfEXYH.js";var _=h("
");function G(t,a){o(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=_();m(r,e=>({"data-slot":"card",class:e,...d}),[()=>p("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class)]);var l=c(r);u(l,()=>a.children??v),n(r),x(r,e=>s(e),()=>s()),i(t,r),f()}var y=h("
");function T(t,a){o(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=y();m(r,e=>({"data-slot":"card-content",class:e,...d}),[()=>p("px-6",a.class)]);var l=c(r);u(l,()=>a.children??v),n(r),x(r,e=>s(e),()=>s()),i(t,r),f()}export{T as C,G as a}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/DRlIEfz1.js b/.svelte-kit/output/client/_app/immutable/chunks/DRlIEfz1.js new file mode 100644 index 00000000..aedbf25f --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/DRlIEfz1.js @@ -0,0 +1,173 @@ +var qr=Object.defineProperty;var ar=e=>{throw TypeError(e)};var Zr=(e,t,n)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yt=(e,t,n)=>Zr(e,typeof t!="symbol"?t+"":t,n),lr=(e,t,n)=>t.has(e)||ar("Cannot "+n);var P=(e,t,n)=>(lr(e,t,"read from private field"),n?n.call(e):t.get(e)),N=(e,t,n)=>t.has(e)?ar("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),le=(e,t,n,r)=>(lr(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import"./Bzak7iHL.js";import{A as at,h as ft,r as ht,a as u,G as lt,T as gt,b as Z,u as F,g as l,I as Et,ai as Rn,av as Zt,F as L,c as B,f as A,C as R,bh as Hn,a1 as Jr,a2 as Qr,D as z,E as X,az as wt}from"./Dexp9pM5.js";import{c as Gr,o as $r,s as Pt}from"./DZmckTjd.js";import{i as Ot}from"./CRDN6Mh7.js";import{e as to,C as Vn,u as Ar,i as eo,w as cr,g as no,F as ro,S as dr,E as oo,f as io,T as so,n as pe,M as ao,h as lo,j as co,k as uo,l as fo,m as _n,P as ho,o as Bn,D as go,a as vo,b as mo,c as wo,I as po,d as yo,p as ur}from"./iABcLwh6.js";import{c as S}from"./25AjRaeI.js";import{h as xo,B as Ne}from"./BxPgF2w2.js";import{s as Jt,b as bo,c as Mn,d as Po,f as _o,g as I,m as de,h as Kn,a as Oo,e as So}from"./61AlszRR.js";import{a as Tt,s as st,c as $t,r as Ao,d as Tn,e as Co}from"./BKSreT2u.js";import{p as y,b as Se,r as dt,s as St}from"./jOLfEXYH.js";import{B as Fo}from"./B12dZE2q.js";import{a as Eo,C as Do}from"./CsnJU1X_.js";var Ro=Z('
');function Bo(e,t){at(t,!0);let n=y(t,"ref",15,null),r=dt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Ro(),s=ft(o);Tt(s,a=>({"data-slot":"table",class:a,...r}),[()=>$t("w-full caption-bottom text-sm",t.class)]);var i=ft(s);st(i,()=>t.children??gt),ht(s),Se(s,a=>n(a),()=>n()),ht(o),u(e,o),lt()}var Mo=Z("");function To(e,t){at(t,!0);let n=y(t,"ref",15,null),r=dt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Mo();Tt(o,i=>({"data-slot":"table-body",class:i,...r}),[()=>$t("[&_tr:last-child]:border-0",t.class)]);var s=ft(o);st(s,()=>t.children??gt),ht(o),Se(o,i=>n(i),()=>n()),u(e,o),lt()}var Io=Z("");function xt(e,t){at(t,!0);let n=y(t,"ref",15,null),r=dt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Io();Tt(o,i=>({"data-slot":"table-cell",class:i,...r}),[()=>$t("bg-clip-padding p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0",t.class)]);var s=ft(o);st(s,()=>t.children??gt),ht(o),Se(o,i=>n(i),()=>n()),u(e,o),lt()}var ko=Z("");function _t(e,t){at(t,!0);let n=y(t,"ref",15,null),r=dt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=ko();Tt(o,i=>({"data-slot":"table-head",class:i,...r}),[()=>$t("text-foreground h-10 bg-clip-padding px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0",t.class)]);var s=ft(o);st(s,()=>t.children??gt),ht(o),Se(o,i=>n(i),()=>n()),u(e,o),lt()}var Wo=Z("");function Lo(e,t){at(t,!0);let n=y(t,"ref",15,null),r=dt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Wo();Tt(o,i=>({"data-slot":"table-header",class:i,...r}),[()=>$t("[&_tr]:border-b",t.class)]);var s=ft(o);st(s,()=>t.children??gt),ht(o),Se(o,i=>n(i),()=>n()),u(e,o),lt()}var No=Z("");function In(e,t){at(t,!0);let n=y(t,"ref",15,null),r=dt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=No();Tt(o,i=>({"data-slot":"table-row",class:i,...r}),[()=>$t("hover:[&,&>svelte-css-wrapper]:[&>th,td]:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t.class)]);var s=ft(o);st(s,()=>t.children??gt),ht(o),Se(o,i=>n(i),()=>n()),u(e,o),lt()}function zo(e){return typeof e=="function"}function fr(e){return zo(e)?e():e}var jt,xe,be,Pe,qt,wn,pn,_e;class Ho{constructor(t,n={box:"border-box"}){N(this,jt,{width:0,height:0});N(this,xe,!1);N(this,be);N(this,Pe);N(this,qt);N(this,wn,F(()=>{var t;return(t=l(P(this,_e)))==null||t(),this.getSize().width}));N(this,pn,F(()=>{var t;return(t=l(P(this,_e)))==null||t(),this.getSize().height}));N(this,_e,F(()=>{const t=fr(P(this,Pe));if(t)return Gr(n=>{if(!P(this,qt))return;const r=new(P(this,qt)).ResizeObserver(o=>{le(this,xe,!0);for(const s of o){const i=P(this,be).box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];P(this,jt).width=a.reduce((c,d)=>Math.max(c,d.inlineSize),0),P(this,jt).height=a.reduce((c,d)=>Math.max(c,d.blockSize),0)}n()});return r.observe(t),()=>{le(this,xe,!1),r.disconnect()}})}));le(this,qt,n.window??to),le(this,be,n),le(this,Pe,t),le(this,jt,{width:0,height:0})}calculateSize(){const t=fr(P(this,Pe));if(!t||!P(this,qt))return;const n=t.offsetWidth,r=t.offsetHeight;if(P(this,be).box==="border-box")return{width:n,height:r};const o=P(this,qt).getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),d=n-s-a,h=r-i-c;return{width:d,height:h}}getSize(){return P(this,xe)?P(this,jt):this.calculateSize()??P(this,jt)}get current(){var t;return(t=l(P(this,_e)))==null||t(),this.getSize()}get width(){return l(P(this,wn))}get height(){return l(P(this,pn))}}jt=new WeakMap,xe=new WeakMap,be=new WeakMap,Pe=new WeakMap,qt=new WeakMap,wn=new WeakMap,pn=new WeakMap,_e=new WeakMap;const Vo=["top","right","bottom","left"],Qt=Math.min,Rt=Math.max,fn=Math.round,un=Math.floor,zt=e=>({x:e,y:e}),Ko={left:"right",right:"left",bottom:"top",top:"bottom"},Uo={start:"end",end:"start"};function Wn(e,t,n){return Rt(e,Qt(t,n))}function Kt(e,t){return typeof e=="function"?e(t):e}function Ut(e){return e.split("-")[0]}function Ae(e){return e.split("-")[1]}function Un(e){return e==="x"?"y":"x"}function Yn(e){return e==="y"?"height":"width"}const Yo=new Set(["top","bottom"]);function Nt(e){return Yo.has(Ut(e))?"y":"x"}function Xn(e){return Un(Nt(e))}function Xo(e,t,n){n===void 0&&(n=!1);const r=Ae(e),o=Xn(e),s=Yn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=hn(i)),[i,hn(i)]}function jo(e){const t=hn(e);return[Ln(e),t,Ln(t)]}function Ln(e){return e.replace(/start|end/g,t=>Uo[t])}const hr=["left","right"],gr=["right","left"],qo=["top","bottom"],Zo=["bottom","top"];function Jo(e,t,n){switch(e){case"top":case"bottom":return n?t?gr:hr:t?hr:gr;case"left":case"right":return t?qo:Zo;default:return[]}}function Qo(e,t,n,r){const o=Ae(e);let s=Jo(Ut(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ln)))),s}function hn(e){return e.replace(/left|right|bottom|top/g,t=>Ko[t])}function Go(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cr(e){return typeof e!="number"?Go(e):{top:e,right:e,bottom:e,left:e}}function gn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vr(e,t,n){let{reference:r,floating:o}=e;const s=Nt(t),i=Xn(t),a=Yn(i),c=Ut(t),d=s==="y",h=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let v;switch(c){case"top":v={x:h,y:r.y-o.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:g};break;case"left":v={x:r.x-o.width,y:g};break;default:v={x:r.x,y:r.y}}switch(Ae(t)){case"start":v[i]-=f*(n&&d?-1:1);break;case"end":v[i]+=f*(n&&d?-1:1);break}return v}async function $o(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:f=!1,padding:v=0}=Kt(t,e),m=Cr(v),w=a[f?g==="floating"?"reference":"floating":g],x=gn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:c})),O=g==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},k=gn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:C,strategy:c}):O);return{top:(x.top-k.top+m.top)/b.y,bottom:(k.bottom-x.bottom+m.bottom)/b.y,left:(x.left-k.left+m.left)/b.x,right:(k.right-x.right+m.right)/b.x}}const ti=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:g}=vr(d,r,c),f=r,v={},m=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:d,padding:h=0}=Kt(e,t)||{};if(d==null)return{};const g=Cr(h),f={x:n,y:r},v=Xn(o),m=Yn(v),p=await i.getDimensions(d),w=v==="y",x=w?"top":"left",O=w?"bottom":"right",C=w?"clientHeight":"clientWidth",b=s.reference[m]+s.reference[v]-f[v]-s.floating[m],k=f[v]-s.reference[v],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=M?M[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(M)))&&(E=a.floating[C]||s.floating[m]);const _=b/2-k/2,$=E/2-p[m]/2-1,j=Qt(g[x],$),ut=Qt(g[O],$),it=j,vt=E-p[m]-ut,rt=E/2-p[m]/2+_,nt=Wn(it,rt,vt),H=!c.arrow&&Ae(o)!=null&&rt!==nt&&s.reference[m]/2-(rtrt<=0)){var ut,it;const rt=(((ut=s.flip)==null?void 0:ut.index)||0)+1,nt=E[rt];if(nt&&(!(g==="alignment"?O!==Nt(nt):!1)||j.every(et=>Nt(et.placement)===O?et.overflows[0]>0:!0)))return{data:{index:rt,overflows:j},reset:{placement:nt}};let H=(it=j.filter(tt=>tt.overflows[0]<=0).sort((tt,et)=>tt.overflows[1]-et.overflows[1])[0])==null?void 0:it.placement;if(!H)switch(v){case"bestFit":{var vt;const tt=(vt=j.filter(et=>{if(M){const At=Nt(et.placement);return At===O||At==="y"}return!0}).map(et=>[et.placement,et.overflows.filter(At=>At>0).reduce((At,Fe)=>At+Fe,0)]).sort((et,At)=>et[1]-At[1])[0])==null?void 0:vt[0];tt&&(H=tt);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function mr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wr(e){return Vo.some(t=>e[t]>=0)}const ri=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Kt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=mr(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:wr(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=mr(i,n.floating);return{data:{escapedOffsets:a,escaped:wr(a)}}}default:return{}}}}},Fr=new Set(["left","top"]);async function oi(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ut(n),a=Ae(n),c=Nt(n)==="y",d=Fr.has(i)?-1:1,h=s&&c?-1:1,g=Kt(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:m}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&typeof m=="number"&&(v=a==="end"?m*-1:m),c?{x:v*h,y:f*d}:{x:f*d,y:v*h}}const ii=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await oi(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},si=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:x=>{let{x:O,y:C}=x;return{x:O,y:C}}},...d}=Kt(e,t),h={x:n,y:r},g=await s.detectOverflow(t,d),f=Nt(Ut(o)),v=Un(f);let m=h[v],p=h[f];if(i){const x=v==="y"?"top":"left",O=v==="y"?"bottom":"right",C=m+g[x],b=m-g[O];m=Wn(C,m,b)}if(a){const x=f==="y"?"top":"left",O=f==="y"?"bottom":"right",C=p+g[x],b=p-g[O];p=Wn(C,p,b)}const w=c.fn({...t,[v]:m,[f]:p});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[v]:i,[f]:a}}}}}},ai=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:d=!0}=Kt(e,t),h={x:n,y:r},g=Nt(o),f=Un(g);let v=h[f],m=h[g];const p=Kt(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const C=f==="y"?"height":"width",b=s.reference[f]-s.floating[C]+w.mainAxis,k=s.reference[f]+s.reference[C]-w.mainAxis;vk&&(v=k)}if(d){var x,O;const C=f==="y"?"width":"height",b=Fr.has(Ut(o)),k=s.reference[g]-s.floating[C]+(b&&((x=i.offset)==null?void 0:x[g])||0)+(b?0:w.crossAxis),M=s.reference[g]+s.reference[C]+(b?0:((O=i.offset)==null?void 0:O[g])||0)-(b?w.crossAxis:0);mM&&(m=M)}return{[f]:v,[g]:m}}}},li=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...d}=Kt(e,t),h=await i.detectOverflow(t,d),g=Ut(o),f=Ae(o),v=Nt(o)==="y",{width:m,height:p}=s.floating;let w,x;g==="top"||g==="bottom"?(w=g,x=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(x=g,w=f==="end"?"top":"bottom");const O=p-h.top-h.bottom,C=m-h.left-h.right,b=Qt(p-h[w],O),k=Qt(m-h[x],C),M=!t.middlewareData.shift;let E=b,_=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=O),M&&!f){const j=Rt(h.left,0),ut=Rt(h.right,0),it=Rt(h.top,0),vt=Rt(h.bottom,0);v?_=m-2*(j!==0||ut!==0?j+ut:Rt(h.left,h.right)):E=p-2*(it!==0||vt!==0?it+vt:Rt(h.top,h.bottom))}await c({...t,availableWidth:_,availableHeight:E});const $=await i.getDimensions(a.floating);return m!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function On(){return typeof window<"u"}function Ce(e){return Er(e)?(e.nodeName||"").toLowerCase():"#document"}function Bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vt(e){var t;return(t=(Er(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Er(e){return On()?e instanceof Node||e instanceof Bt(e).Node:!1}function kt(e){return On()?e instanceof Element||e instanceof Bt(e).Element:!1}function Ht(e){return On()?e instanceof HTMLElement||e instanceof Bt(e).HTMLElement:!1}function pr(e){return!On()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bt(e).ShadowRoot}const ci=new Set(["inline","contents"]);function cn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ci.has(o)}const di=new Set(["table","td","th"]);function ui(e){return di.has(Ce(e))}const fi=[":popover-open",":modal"];function Sn(e){return fi.some(t=>{try{return e.matches(t)}catch{return!1}})}const hi=["transform","translate","scale","rotate","perspective"],gi=["transform","translate","scale","rotate","perspective","filter"],vi=["paint","layout","strict","content"];function jn(e){const t=qn(),n=kt(e)?Wt(e):e;return hi.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||gi.some(r=>(n.willChange||"").includes(r))||vi.some(r=>(n.contain||"").includes(r))}function mi(e){let t=Gt(e);for(;Ht(t)&&!Oe(t);){if(jn(t))return t;if(Sn(t))return null;t=Gt(t)}return null}function qn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wi=new Set(["html","body","#document"]);function Oe(e){return wi.has(Ce(e))}function Wt(e){return Bt(e).getComputedStyle(e)}function An(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if(Ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pr(e)&&e.host||Vt(e);return pr(t)?t.host:t}function Dr(e){const t=Gt(e);return Oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ht(t)&&cn(t)?t:Dr(t)}function ze(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Dr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Bt(o);if(s){const a=Nn(i);return t.concat(i,i.visualViewport||[],cn(o)?o:[],a&&n?ze(a):[])}return t.concat(o,ze(o,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rr(e){const t=Wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ht(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=fn(n)!==s||fn(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Zn(e){return kt(e)?e:e.contextElement}function ye(e){const t=Zn(e);if(!Ht(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Rr(t);let i=(s?fn(n.width):n.width)/r,a=(s?fn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const pi=zt(0);function Br(e){const t=Bt(e);return!qn()||!t.visualViewport?pi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bt(e)?!1:t}function ue(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Zn(e);let i=zt(1);t&&(r?kt(r)&&(i=ye(r)):i=ye(e));const a=yi(s,n,r)?Br(s):zt(0);let c=(o.left+a.x)/i.x,d=(o.top+a.y)/i.y,h=o.width/i.x,g=o.height/i.y;if(s){const f=Bt(s),v=r&&kt(r)?Bt(r):r;let m=f,p=Nn(m);for(;p&&r&&v!==m;){const w=ye(p),x=p.getBoundingClientRect(),O=Wt(p),C=x.left+(p.clientLeft+parseFloat(O.paddingLeft))*w.x,b=x.top+(p.clientTop+parseFloat(O.paddingTop))*w.y;c*=w.x,d*=w.y,h*=w.x,g*=w.y,c+=C,d+=b,m=Bt(p),p=Nn(m)}}return gn({width:h,height:g,x:c,y:d})}function Cn(e,t){const n=An(e).scrollLeft;return t?t.left+n:ue(Vt(e)).left+n}function Mr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Cn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xi(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Vt(r),a=t?Sn(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},d=zt(1);const h=zt(0),g=Ht(r);if((g||!g&&!s)&&((Ce(r)!=="body"||cn(i))&&(c=An(r)),Ht(r))){const v=ue(r);d=ye(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const f=i&&!g&&!s?Mr(i,c):zt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+h.x+f.x,y:n.y*d.y-c.scrollTop*d.y+h.y+f.y}}function bi(e){return Array.from(e.getClientRects())}function Pi(e){const t=Vt(e),n=An(e),r=e.ownerDocument.body,o=Rt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Rt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Cn(e);const a=-n.scrollTop;return Wt(r).direction==="rtl"&&(i+=Rt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const yr=25;function _i(e,t){const n=Bt(e),r=Vt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const h=qn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const d=Cn(r);if(d<=0){const h=r.ownerDocument,g=h.body,f=getComputedStyle(g),v=h.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-g.clientWidth-v);m<=yr&&(s-=m)}else d<=yr&&(s+=d);return{width:s,height:i,x:a,y:c}}const Oi=new Set(["absolute","fixed"]);function Si(e,t){const n=ue(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ht(e)?ye(e):zt(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:i,height:a,x:c,y:d}}function xr(e,t,n){let r;if(t==="viewport")r=_i(e,n);else if(t==="document")r=Pi(Vt(e));else if(kt(t))r=Si(t,n);else{const o=Br(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gn(r)}function Tr(e,t){const n=Gt(e);return n===t||!kt(n)||Oe(n)?!1:Wt(n).position==="fixed"||Tr(n,t)}function Ai(e,t){const n=t.get(e);if(n)return n;let r=ze(e,[],!1).filter(a=>kt(a)&&Ce(a)!=="body"),o=null;const s=Wt(e).position==="fixed";let i=s?Gt(e):e;for(;kt(i)&&!Oe(i);){const a=Wt(i),c=jn(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Oi.has(o.position)||cn(i)&&!c&&Tr(e,i))?r=r.filter(h=>h!==i):o=a,i=Gt(i)}return t.set(e,r),r}function Ci(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Sn(t)?[]:Ai(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((d,h)=>{const g=xr(t,h,o);return d.top=Rt(g.top,d.top),d.right=Qt(g.right,d.right),d.bottom=Qt(g.bottom,d.bottom),d.left=Rt(g.left,d.left),d},xr(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Fi(e){const{width:t,height:n}=Rr(e);return{width:t,height:n}}function Ei(e,t,n){const r=Ht(t),o=Vt(t),s=n==="fixed",i=ue(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=zt(0);function d(){c.x=Cn(o)}if(r||!r&&!s)if((Ce(t)!=="body"||cn(o))&&(a=An(t)),r){const v=ue(t,!0,s,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&d();s&&!r&&o&&d();const h=o&&!r&&!s?Mr(o,a):zt(0),g=i.left+a.scrollLeft-c.x-h.x,f=i.top+a.scrollTop-c.y-h.y;return{x:g,y:f,width:i.width,height:i.height}}function kn(e){return Wt(e).position==="static"}function br(e,t){if(!Ht(e)||Wt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Vt(e)===n&&(n=n.ownerDocument.body),n}function Ir(e,t){const n=Bt(e);if(Sn(e))return n;if(!Ht(e)){let o=Gt(e);for(;o&&!Oe(o);){if(kt(o)&&!kn(o))return o;o=Gt(o)}return n}let r=br(e,t);for(;r&&ui(r)&&kn(r);)r=br(r,t);return r&&Oe(r)&&kn(r)&&!jn(r)?n:r||mi(e)||n}const Di=async function(e){const t=this.getOffsetParent||Ir,n=this.getDimensions,r=await n(e.floating);return{reference:Ei(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ri(e){return Wt(e).direction==="rtl"}const Bi={convertOffsetParentRelativeRectToViewportRelativeRect:xi,getDocumentElement:Vt,getClippingRect:Ci,getOffsetParent:Ir,getElementRects:Di,getClientRects:bi,getDimensions:Fi,getScale:ye,isElement:kt,isRTL:Ri};function kr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mi(e,t){let n=null,r;const o=Vt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:h,top:g,width:f,height:v}=d;if(a||t(),!f||!v)return;const m=un(g),p=un(o.clientWidth-(h+f)),w=un(o.clientHeight-(g+v)),x=un(h),C={rootMargin:-m+"px "+-p+"px "+-w+"px "+-x+"px",threshold:Rt(0,Qt(1,c))||1};let b=!0;function k(M){const E=M[0].intersectionRatio;if(E!==c){if(!b)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!kr(d,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,C)}n.observe(e)}return i(!0),s}function Ti(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Zn(e),h=o||s?[...d?ze(d):[],...ze(t)]:[];h.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const g=d&&a?Mi(d,n):null;let f=-1,v=null;i&&(v=new ResizeObserver(x=>{let[O]=x;O&&O.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),n()}),d&&!c&&v.observe(d),v.observe(t));let m,p=c?ue(e):null;c&&w();function w(){const x=ue(e);p&&!kr(p,x)&&n(),p=x,m=requestAnimationFrame(w)}return n(),()=>{var x;h.forEach(O=>{o&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),g==null||g(),(x=v)==null||x.disconnect(),v=null,c&&cancelAnimationFrame(m)}}const Ii=ii,ki=si,Wi=ni,Li=li,Ni=ri,zi=ei,Hi=ai,Vi=(e,t,n)=>{const r=new Map,o={platform:Bi,...n},s={...o.platform,_c:r};return ti(e,t,{...o,platform:s})};function ce(e){return typeof e=="function"?e():e}function Wr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pr(e,t){const n=Wr(e);return Math.round(t*n)/n}function _r(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Ki(e){const t=e.whileElementsMounted,n=F(()=>ce(e.open)??!0),r=F(()=>ce(e.middleware)),o=F(()=>ce(e.transform)??!0),s=F(()=>ce(e.placement)??"bottom"),i=F(()=>ce(e.strategy)??"absolute"),a=F(()=>ce(e.sideOffset)??0),c=F(()=>ce(e.alignOffset)??0),d=e.reference;let h=Et(0),g=Et(0);const f=Jt(null);let v=Et(Rn(l(i))),m=Et(Rn(l(s))),p=Et(Rn({})),w=Et(!1);const x=F(()=>{const E=f.current?Pr(f.current,l(h)):l(h),_=f.current?Pr(f.current,l(g)):l(g);return l(o)?{position:l(v),left:"0",top:"0",transform:`translate(${E}px, ${_}px)`,...f.current&&Wr(f.current)>=1.5&&{willChange:"transform"}}:{position:l(v),left:`${E}px`,top:`${_}px`}});let O;function C(){d.current===null||f.current===null||Vi(d.current,f.current,{middleware:l(r),placement:l(s),strategy:l(i)}).then(E=>{if(!l(n)&&l(h)!==0&&l(g)!==0){const _=Math.max(Math.abs(l(a)),Math.abs(l(c)),15);if(E.x<=_&&E.y<=_)return}L(h,E.x,!0),L(g,E.y,!0),L(v,E.strategy,!0),L(m,E.placement,!0),L(p,E.middlewareData,!0),L(w,!0)})}function b(){typeof O=="function"&&(O(),O=void 0)}function k(){if(b(),t===void 0){C();return}d.current===null||f.current===null||(O=t(d.current,f.current,C))}function M(){l(n)||L(w,!1)}return Zt(C),Zt(k),Zt(M),Zt(()=>b),{floating:f,reference:d,get strategy(){return l(v)},get placement(){return l(m)},get middlewareData(){return l(p)},get isPositioned(){return l(w)},get floatingStyles(){return l(x)},get update(){return C}}}const Ui={top:"bottom",right:"left",bottom:"top",left:"right"},Jn=new Vn("Floating.Root"),Or=new Vn("Floating.Content"),Qn=new Vn("Floating.Root");class vn{constructor(){yt(this,"anchorNode",Jt(null));yt(this,"customAnchorNode",Jt(null));yt(this,"triggerNode",Jt(null));Zt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Qn.set(new vn):Jn.set(new vn)}}var He,yn,Ve,xn,Ke,bn,Ue,Ye,Xe,je,qe,Ze,Je,Qe,Ge,$e,tn,en,nn,rn,on,sn,an,ln;const Pn=class Pn{constructor(t,n){yt(this,"opts");yt(this,"root");yt(this,"contentRef",Jt(null));yt(this,"wrapperRef",Jt(null));yt(this,"arrowRef",Jt(null));yt(this,"contentAttachment",Mn(this.contentRef));yt(this,"wrapperAttachment",Mn(this.wrapperRef));yt(this,"arrowAttachment",Mn(this.arrowRef));yt(this,"arrowId",Jt(Ar()));N(this,He,F(()=>{if(typeof this.opts.style=="string")return Po(this.opts.style);if(!this.opts.style)return{}}));N(this,yn);N(this,Ve,new Ho(()=>this.arrowRef.current??void 0));N(this,xn,F(()=>{var t;return((t=P(this,Ve))==null?void 0:t.width)??0}));N(this,Ke,F(()=>{var t;return((t=P(this,Ve))==null?void 0:t.height)??0}));N(this,bn,F(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));N(this,Ue,F(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));N(this,Ye,F(()=>l(P(this,Ue)).length>0));N(this,Xe,F(()=>({padding:this.opts.collisionPadding.current,boundary:l(P(this,Ue)).filter(eo),altBoundary:this.hasExplicitBoundaries})));N(this,je,Et(void 0));N(this,qe,Et(void 0));N(this,Ze,Et(void 0));N(this,Je,Et(void 0));N(this,Qe,F(()=>[Ii({mainAxis:this.opts.sideOffset.current+l(P(this,Ke)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&ki({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Hi():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Wi({...this.detectOverflowOptions}),Li({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;L(P(this,je),n,!0),L(P(this,qe),r,!0),L(P(this,Ze),o,!0),L(P(this,Je),s,!0)}}),this.arrowRef.current&&zi({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Yi({arrowWidth:l(P(this,xn)),arrowHeight:l(P(this,Ke))}),this.opts.hideWhenDetached.current&&Ni({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));yt(this,"floating");N(this,Ge,F(()=>Xi(this.floating.placement)));N(this,$e,F(()=>ji(this.floating.placement)));N(this,tn,F(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));N(this,en,F(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));N(this,nn,F(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));N(this,rn,Et());N(this,on,F(()=>Ui[this.placedSide]));N(this,sn,F(()=>{var t,n,r;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${l(P(this,je))}px`,"--bits-floating-available-height":`${l(P(this,qe))}px`,"--bits-floating-anchor-width":`${l(P(this,Ze))}px`,"--bits-floating-anchor-height":`${l(P(this,Je))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...l(P(this,He))},dir:this.opts.dir.current,...this.wrapperAttachment}}));N(this,an,F(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:_o({...l(P(this,He))}),...this.contentAttachment})));N(this,ln,F(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),cr(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Ki({strategy:()=>this.opts.strategy.current,placement:()=>l(P(this,bn)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ti(...r,{animationFrame:((s=P(this,yn))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Zt(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),cr(()=>this.contentRef.current,r=>{if(!r)return;const o=no(r);this.contentZIndex=o.getComputedStyle(r).zIndex}),Zt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?Or.set(new Pn(t,Qn.get())):Or.set(new Pn(t,Jn.get()))}get hasExplicitBoundaries(){return l(P(this,Ye))}set hasExplicitBoundaries(t){L(P(this,Ye),t)}get detectOverflowOptions(){return l(P(this,Xe))}set detectOverflowOptions(t){L(P(this,Xe),t)}get middleware(){return l(P(this,Qe))}set middleware(t){L(P(this,Qe),t)}get placedSide(){return l(P(this,Ge))}set placedSide(t){L(P(this,Ge),t)}get placedAlign(){return l(P(this,$e))}set placedAlign(t){L(P(this,$e),t)}get arrowX(){return l(P(this,tn))}set arrowX(t){L(P(this,tn),t)}get arrowY(){return l(P(this,en))}set arrowY(t){L(P(this,en),t)}get cannotCenterArrow(){return l(P(this,nn))}set cannotCenterArrow(t){L(P(this,nn),t)}get contentZIndex(){return l(P(this,rn))}set contentZIndex(t){L(P(this,rn),t,!0)}get arrowBaseSide(){return l(P(this,on))}set arrowBaseSide(t){L(P(this,on),t)}get wrapperProps(){return l(P(this,sn))}set wrapperProps(t){L(P(this,sn),t)}get props(){return l(P(this,an))}set props(t){L(P(this,an),t)}get arrowStyle(){return l(P(this,ln))}set arrowStyle(t){L(P(this,ln),t)}};He=new WeakMap,yn=new WeakMap,Ve=new WeakMap,xn=new WeakMap,Ke=new WeakMap,bn=new WeakMap,Ue=new WeakMap,Ye=new WeakMap,Xe=new WeakMap,je=new WeakMap,qe=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,Ge=new WeakMap,$e=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,rn=new WeakMap,on=new WeakMap,sn=new WeakMap,an=new WeakMap,ln=new WeakMap;let zn=Pn;class mn{constructor(t,n){yt(this,"opts");yt(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=bo(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new mn(t,Qn.get()):new mn(t,Jn.get())}}function Yi(e){return{name:"transformOrigin",options:e,fn(t){var w,x,O;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,h]=Gn(n),g={start:"0%",center:"50%",end:"100%"}[h],f=(((x=o.arrow)==null?void 0:x.x)??0)+a/2,v=(((O=o.arrow)==null?void 0:O.y)??0)+c/2;let m="",p="";return d==="bottom"?(m=i?g:`${f}px`,p=`${-c}px`):d==="top"?(m=i?g:`${f}px`,p=`${r.floating.height+c}px`):d==="right"?(m=`${-c}px`,p=i?g:`${v}px`):d==="left"&&(m=`${r.floating.width+c}px`,p=i?g:`${v}px`),{data:{x:m,y:p}}}}}function Gn(e){const[t,n="center"]=e.split("-");return[t,n]}function Xi(e){return Gn(e)[0]}function ji(e){return Gn(e)[1]}function qi(e,t){at(t,!0);let n=y(t,"tooltip",3,!1);vn.create(n());var r=B(),o=A(r);st(o,()=>t.children??gt),u(e,r),lt()}function Zi(e,t){at(t,!0);let n=y(t,"tooltip",3,!1);mn.create({id:I(()=>t.id),virtualEl:I(()=>t.virtualEl),ref:t.ref},n());var r=B(),o=A(r);st(o,()=>t.children??gt),u(e,r),lt()}function Ji(e,t){at(t,!0);let n=y(t,"side",3,"bottom"),r=y(t,"sideOffset",3,0),o=y(t,"align",3,"center"),s=y(t,"alignOffset",3,0),i=y(t,"arrowPadding",3,0),a=y(t,"avoidCollisions",3,!0),c=y(t,"collisionBoundary",19,()=>[]),d=y(t,"collisionPadding",3,0),h=y(t,"hideWhenDetached",3,!1),g=y(t,"onPlaced",3,()=>{}),f=y(t,"sticky",3,"partial"),v=y(t,"updatePositionStrategy",3,"optimized"),m=y(t,"strategy",3,"fixed"),p=y(t,"dir",3,"ltr"),w=y(t,"style",19,()=>({})),x=y(t,"wrapperId",19,Ar),O=y(t,"customAnchor",3,null),C=y(t,"tooltip",3,!1);const b=zn.create({side:I(()=>n()),sideOffset:I(()=>r()),align:I(()=>o()),alignOffset:I(()=>s()),id:I(()=>t.id),arrowPadding:I(()=>i()),avoidCollisions:I(()=>a()),collisionBoundary:I(()=>c()),collisionPadding:I(()=>d()),hideWhenDetached:I(()=>h()),onPlaced:I(()=>g()),sticky:I(()=>f()),updatePositionStrategy:I(()=>v()),strategy:I(()=>m()),dir:I(()=>p()),style:I(()=>w()),enabled:I(()=>t.enabled),wrapperId:I(()=>x()),customAnchor:I(()=>O())},C()),k=F(()=>de(b.wrapperProps,{style:{pointerEvents:"auto"}}));var M=B(),E=A(M);st(E,()=>t.content??gt,()=>({props:b.props,wrapperProps:l(k)})),u(e,M),lt()}function Qi(e,t){at(t,!0),$r(()=>{var o;(o=t.onPlaced)==null||o.call(t)});var n=B(),r=A(n);st(r,()=>t.content??gt,()=>({props:{},wrapperProps:{}})),u(e,n),lt()}function Gi(e,t){let n=y(t,"isStatic",3,!1),r=dt(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=B(),s=A(o);{var i=c=>{Qi(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{Ji(c,St({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};Ot(s,c=>{n()?c(i):c(a,!1)})}u(e,o)}var $i=Z(" ",1);function Lr(e,t){at(t,!0);let n=y(t,"interactOutsideBehavior",3,"close"),r=y(t,"trapFocus",3,!0),o=y(t,"isValidEvent",3,()=>!1),s=y(t,"customAnchor",3,null),i=y(t,"isStatic",3,!1),a=y(t,"tooltip",3,!1),c=y(t,"contentPointerEvents",3,"auto"),d=dt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);Gi(e,{get isStatic(){return i()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(g,f)=>{let v=()=>f==null?void 0:f().props,m=()=>f==null?void 0:f().wrapperProps;var p=$i(),w=A(p);{var x=b=>{dr(b,{get preventScroll(){return t.preventScroll}})},O=b=>{dr(b,{get preventScroll(){return t.preventScroll}})};Ot(w,b=>{t.forceMount&&t.enabled?b(x):t.forceMount||b(O,1)})}var C=R(w,2);ro(C,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(k,M)=>{let E=()=>M==null?void 0:M().props;oo(k,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(_,$)=>{io(_,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(ut,it)=>{let vt=()=>it==null?void 0:it().props;so(ut,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(rt,nt)=>{var H=B(),tt=A(H);{let et=F(()=>({props:de(d,v(),vt(),E(),{style:{pointerEvents:c()}}),wrapperProps:m()}));st(tt,()=>t.popper??gt,()=>l(et))}u(rt,H)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),u(g,p)},$$slots:{content:!0}}),lt()}function ts(e,t){let n=y(t,"interactOutsideBehavior",3,"close"),r=y(t,"trapFocus",3,!0),o=y(t,"isValidEvent",3,()=>!1),s=y(t,"customAnchor",3,null),i=y(t,"isStatic",3,!1),a=dt(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=B(),d=A(c);{var h=g=>{Lr(g,St({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};Ot(d,g=>{t.shouldRender&&g(h)})}u(e,c)}function es(e,t){let n=y(t,"interactOutsideBehavior",3,"close"),r=y(t,"trapFocus",3,!0),o=y(t,"isValidEvent",3,()=>!1),s=y(t,"customAnchor",3,null),i=y(t,"isStatic",3,!1),a=dt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Lr(e,St({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}var ns=Z("
");function rs(e,t){const n=Hn();at(t,!0);let r=y(t,"ref",15,null),o=y(t,"id",19,()=>Kn(n)),s=y(t,"disabled",3,!1),i=y(t,"onSelect",3,pe),a=y(t,"closeOnSelect",3,!0),c=dt(t,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const d=ao.create({id:I(()=>o()),disabled:I(()=>s()),onSelect:I(()=>i()),ref:I(()=>r(),p=>r(p)),closeOnSelect:I(()=>a())}),h=F(()=>de(c,d.props));var g=B(),f=A(g);{var v=p=>{var w=B(),x=A(w);st(x,()=>t.child,()=>({props:l(h)})),u(p,w)},m=p=>{var w=ns();Tt(w,()=>({...l(h)}));var x=ft(w);st(x,()=>t.children??gt),ht(w),u(p,w)};Ot(f,p=>{t.child?p(v):p(m,!1)})}u(e,g),lt()}function os(e,t){at(t,!0);let n=y(t,"open",15,!1),r=y(t,"dir",3,"ltr"),o=y(t,"onOpenChange",3,pe),s=y(t,"onOpenChangeComplete",3,pe),i=y(t,"_internal_variant",3,"dropdown-menu");const a=lo.create({variant:I(()=>i()),dir:I(()=>r()),onClose:()=>{n(!1),o()(!1)}});co.create({open:I(()=>n(),c=>{n(c),o()(c)}),onOpenChangeComplete:I(()=>s())},a),qi(e,{children:(c,d)=>{var h=B(),g=A(h);st(g,()=>t.children??gt),u(c,h)},$$slots:{default:!0}}),lt()}var is=Z("
"),ss=Z("
");function as(e,t){const n=Hn();at(t,!0);let r=y(t,"id",19,()=>Kn(n)),o=y(t,"ref",15,null),s=y(t,"loop",3,!0),i=y(t,"onInteractOutside",3,pe),a=y(t,"onEscapeKeydown",3,pe),c=y(t,"onCloseAutoFocus",3,pe),d=y(t,"forceMount",3,!1),h=y(t,"trapFocus",3,!1),g=dt(t,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const f=uo.create({id:I(()=>r()),loop:I(()=>s()),ref:I(()=>o(),b=>o(b)),onCloseAutoFocus:I(()=>c())}),v=F(()=>de(g,f.props));function m(b){if(f.handleInteractOutside(b),!b.defaultPrevented&&(i()(b),!b.defaultPrevented)){if(b.target&&b.target instanceof Element){const k=`[${f.parentMenu.root.getBitsAttr("sub-content")}]`;if(b.target.closest(k))return}f.parentMenu.onClose()}}function p(b){a()(b),!b.defaultPrevented&&f.parentMenu.onClose()}var w=B(),x=A(w);{var O=b=>{es(b,St(()=>l(v),()=>f.popperProps,{get ref(){return f.opts.ref},get enabled(){return f.parentMenu.opts.open.current},onInteractOutside:m,onEscapeKeydown:p,get trapFocus(){return h()},get loop(){return s()},forceMount:!0,get id(){return r()},get shouldRender(){return f.shouldRender},popper:(M,E)=>{let _=()=>E==null?void 0:E().props,$=()=>E==null?void 0:E().wrapperProps;const j=F(()=>de(_(),{style:_r("dropdown-menu")},{style:t.style}));var ut=B(),it=A(ut);{var vt=nt=>{var H=B(),tt=A(H);{let et=F(()=>({props:l(j),wrapperProps:$(),...f.snippetProps}));st(tt,()=>t.child,()=>l(et))}u(nt,H)},rt=nt=>{var H=is();Tt(H,()=>({...$()}));var tt=ft(H);Tt(tt,()=>({...l(j)}));var et=ft(tt);st(et,()=>t.children??gt),ht(tt),ht(H),u(nt,H)};Ot(it,nt=>{t.child?nt(vt):nt(rt,!1)})}u(M,ut)},$$slots:{popper:!0}}))},C=b=>{ts(b,St(()=>l(v),()=>f.popperProps,{get ref(){return f.opts.ref},get open(){return f.parentMenu.opts.open.current},onInteractOutside:m,onEscapeKeydown:p,get trapFocus(){return h()},get loop(){return s()},forceMount:!1,get id(){return r()},get shouldRender(){return f.shouldRender},popper:(M,E)=>{let _=()=>E==null?void 0:E().props,$=()=>E==null?void 0:E().wrapperProps;const j=F(()=>de(_(),{style:_r("dropdown-menu")},{style:t.style}));var ut=B(),it=A(ut);{var vt=nt=>{var H=B(),tt=A(H);{let et=F(()=>({props:l(j),wrapperProps:$(),...f.snippetProps}));st(tt,()=>t.child,()=>l(et))}u(nt,H)},rt=nt=>{var H=ss();Tt(H,()=>({...$()}));var tt=ft(H);Tt(tt,()=>({...l(j)}));var et=ft(tt);st(et,()=>t.children??gt),ht(tt),ht(H),u(nt,H)};Ot(it,nt=>{t.child?nt(vt):nt(rt,!1)})}u(M,ut)},$$slots:{popper:!0}}))};Ot(x,b=>{d()?b(O):d()||b(C,1)})}u(e,w),lt()}var ls=Z("");function cs(e,t){const n=Hn();at(t,!0);let r=y(t,"id",19,()=>Kn(n)),o=y(t,"ref",15,null),s=y(t,"disabled",3,!1),i=y(t,"type",3,"button"),a=dt(t,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const c=fo.create({id:I(()=>r()),disabled:I(()=>s()??!1),ref:I(()=>o(),h=>o(h))}),d=F(()=>de(a,c.props,{type:i()}));Zi(e,{get id(){return r()},get ref(){return c.opts.ref},children:(h,g)=>{var f=B(),v=A(f);{var m=w=>{var x=B(),O=A(x);st(O,()=>t.child,()=>({props:l(d)})),u(w,x)},p=w=>{var x=ls();Tt(x,()=>({...l(d)}));var O=ft(x);st(O,()=>t.children??gt),ht(x),u(w,x)};Ot(v,w=>{t.child?w(m):w(p,!1)})}u(h,f)},$$slots:{default:!0}}),lt()}function ds(e,t){at(t,!0);/** + * @license @lucide/svelte v0.561.0 - ISC + * + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The MIT License (MIT) (for portions derived from Feather) + * + * Copyright (c) 2013-2023 Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */let n=dt(t,["$$slots","$$events","$$legacy"]);const r=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];_n(e,St({name:"ellipsis"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=B(),a=A(i);st(a,()=>t.children??gt),u(o,i)},$$slots:{default:!0}})),lt()}function us(e,t){at(t,!0);/** + * @license @lucide/svelte v0.561.0 - ISC + * + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The MIT License (MIT) (for portions derived from Feather) + * + * Copyright (c) 2013-2023 Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */let n=dt(t,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];_n(e,St({name:"pencil"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=B(),a=A(i);st(a,()=>t.children??gt),u(o,i)},$$slots:{default:!0}})),lt()}function fs(e,t){at(t,!0);/** + * @license @lucide/svelte v0.561.0 - ISC + * + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The MIT License (MIT) (for portions derived from Feather) + * + * Copyright (c) 2013-2023 Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */let n=dt(t,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];_n(e,St({name:"plus"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=B(),a=A(i);st(a,()=>t.children??gt),u(o,i)},$$slots:{default:!0}})),lt()}function hs(e,t){at(t,!0);/** + * @license @lucide/svelte v0.561.0 - ISC + * + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The MIT License (MIT) (for portions derived from Feather) + * + * Copyright (c) 2013-2023 Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */let n=dt(t,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];_n(e,St({name:"trash-2"},()=>n,{get iconNode(){return r},children:(o,s)=>{var i=B(),a=A(i);st(a,()=>t.children??gt),u(o,i)},$$slots:{default:!0}})),lt()}function gs(e,t){at(t,!0);let n=y(t,"open",15,!1),r=dt(t,["$$slots","$$events","$$legacy","open"]);var o=B(),s=A(o);S(s,()=>os,(i,a)=>{a(i,St(()=>r,{get open(){return n()},set open(c){n(c)}}))}),u(e,o),lt()}function Nr(e,t){let n=dt(t,["$$slots","$$events","$$legacy"]);var r=B(),o=A(r);S(o,()=>ho,(s,i)=>{i(s,St(()=>n))}),u(e,r)}function vs(e,t){at(t,!0);let n=y(t,"ref",15,null),r=y(t,"sideOffset",3,4),o=dt(t,["$$slots","$$events","$$legacy","ref","sideOffset","portalProps","class"]);Nr(e,St(()=>t.portalProps,{children:(s,i)=>{var a=B(),c=A(a);{let d=F(()=>$t("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none",t.class));S(c,()=>as,(h,g)=>{g(h,St({"data-slot":"dropdown-menu-content",get sideOffset(){return r()},get class(){return l(d)}},()=>o,{get ref(){return n()},set ref(f){n(f)}}))})}u(s,a)},$$slots:{default:!0}})),lt()}function Sr(e,t){at(t,!0);let n=y(t,"ref",15,null),r=y(t,"variant",3,"default"),o=dt(t,["$$slots","$$events","$$legacy","ref","class","inset","variant"]);var s=B(),i=A(s);{let a=F(()=>$t("data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class));S(i,()=>rs,(c,d)=>{d(c,St({"data-slot":"dropdown-menu-item",get"data-inset"(){return t.inset},get"data-variant"(){return r()},get class(){return l(a)}},()=>o,{get ref(){return n()},set ref(h){n(h)}}))})}u(e,s),lt()}function ms(e,t){at(t,!0);let n=y(t,"ref",15,null),r=dt(t,["$$slots","$$events","$$legacy","ref"]);var o=B(),s=A(o);S(s,()=>cs,(i,a)=>{a(i,St({"data-slot":"dropdown-menu-trigger"},()=>r,{get ref(){return n()},set ref(c){n(c)}}))}),u(e,o),lt()}var ws=Z(" New item",1),ps=Z(" ",1),ys=Z(''),xs=Z('—'),bs=Z('—'),Ps=Z(" ",1),_s=Z('—'),Os=Z(" ",1),Ss=Z('No'),As=Z(' '),Cs=Z('—'),Fs=Z(" Edit",1),Es=Z(" Delete",1),Ds=Z(' ',1),Rs=Z(" ",1),Bs=Z(" ",1),Ms=Z(" ",1),Ts=Z(" ",1),Is=Z(" ",1),ks=Z('

Stackq Items

');function Qs(e,t){at(t,!0);let n=Et(!1),r=Et(null),o=Et("create");const s=F(()=>{var _;return((_=t.data)==null?void 0:_.items)??[]}),i=F(()=>{var _;return((_=t.data)==null?void 0:_.itemsForParent)??[]}),a="https://pocketbase.ccllc.pro",c="Stackq_Items";function d(_){return _.Image?`${a}/api/files/${c}/${_.id}/${_.Image}`:null}function h(_){return _==null?[]:Array.isArray(_)?_:[_]}function g(_){if(!_)return"—";try{return new Date(_).toLocaleDateString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return _}}function f(){L(r,null),L(o,"create"),L(n,!0)}function v(_){L(r,_,!0),L(o,"update"),L(n,!0)}function m(){L(n,!1),L(r,null)}const p=F(()=>{var _,$,j;return((_=t.data)==null?void 0:_.form)==="create"||(($=t.data)==null?void 0:$.form)==="update"?((j=t.data)==null?void 0:j.error)??null:null});Zt(()=>{var _,$;l(p)&&(((_=t.data)==null?void 0:_.form)==="create"||(($=t.data)==null?void 0:$.form)==="update")&&L(n,!0)});var w=ks();xo("1kn3tit",_=>{Jr(()=>{Qr.title="Items – Stackq"})});var x=ft(w),O=R(ft(x),2),C=ft(O),b=ft(C);ht(C);var k=R(C,2);Fo(k,{onclick:f,children:(_,$)=>{var j=ws(),ut=A(j);fs(ut,{class:"mr-2 size-4"}),z(),u(_,j)},$$slots:{default:!0}}),ht(O),ht(x);var M=R(x,2);Eo(M,{children:(_,$)=>{Do(_,{class:"p-0",children:(j,ut)=>{var it=B(),vt=A(it);S(vt,()=>Bo,(rt,nt)=>{nt(rt,{children:(H,tt)=>{var et=Ms(),At=A(et);S(At,()=>Lo,(te,ee)=>{ee(te,{children:(ne,$n)=>{var Yt=B(),fe=A(Yt);S(fe,()=>In,(Ee,re)=>{re(Ee,{children:(Mt,Lt)=>{var Xt=ps(),Ct=A(Xt);S(Ct,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Image");u(U,Y)},$$slots:{default:!0}})});var W=R(Ct,2);S(W,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Item");u(U,Y)},$$slots:{default:!0}})});var oe=R(W,2);S(oe,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("SKU");u(U,Y)},$$slots:{default:!0}})});var De=R(oe,2);S(De,()=>_t,(V,K)=>{K(V,{class:"max-w-[200px]",children:(U,mt)=>{z();var Y=X("Description");u(U,Y)},$$slots:{default:!0}})});var ie=R(De,2);S(ie,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("UOM");u(U,Y)},$$slots:{default:!0}})});var he=R(ie,2);S(he,()=>_t,(V,K)=>{K(V,{class:"text-right",children:(U,mt)=>{z();var Y=X("Cost");u(U,Y)},$$slots:{default:!0}})});var ge=R(he,2);S(ge,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Vendor");u(U,Y)},$$slots:{default:!0}})});var Re=R(ge,2);S(Re,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Catagory");u(U,Y)},$$slots:{default:!0}})});var se=R(Re,2);S(se,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Sub_Catagory");u(U,Y)},$$slots:{default:!0}})});var ve=R(se,2);S(ve,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Has Parent");u(U,Y)},$$slots:{default:!0}})});var ae=R(ve,2);S(ae,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Parent");u(U,Y)},$$slots:{default:!0}})});var Be=R(ae,2);S(Be,()=>_t,(V,K)=>{K(V,{children:(U,mt)=>{z();var Y=X("Stock");u(U,Y)},$$slots:{default:!0}})});var Me=R(Be,2);S(Me,()=>_t,(V,K)=>{K(V,{class:"text-muted-foreground",children:(U,mt)=>{z();var Y=X("created");u(U,Y)},$$slots:{default:!0}})});var Te=R(Me,2);S(Te,()=>_t,(V,K)=>{K(V,{class:"text-muted-foreground",children:(U,mt)=>{z();var Y=X("updated");u(U,Y)},$$slots:{default:!0}})});var dn=R(Te,2);S(dn,()=>_t,(V,K)=>{K(V,{class:"w-[70px]",children:(U,mt)=>{z();var Y=X("Actions");u(U,Y)},$$slots:{default:!0}})}),u(Mt,Xt)},$$slots:{default:!0}})}),u(ne,Yt)},$$slots:{default:!0}})});var Fe=R(At,2);S(Fe,()=>To,(te,ee)=>{ee(te,{children:(ne,$n)=>{var Yt=B(),fe=A(Yt);{var Ee=Mt=>{var Lt=B(),Xt=A(Lt);S(Xt,()=>In,(Ct,W)=>{W(Ct,{children:(oe,De)=>{var ie=B(),he=A(ie);S(he,()=>xt,(ge,Re)=>{Re(ge,{colspan:"15",class:"h-24 text-center text-muted-foreground",children:(se,ve)=>{z();var ae=X("No items. Create one or check PocketBase collection name and auth.");u(se,ae)},$$slots:{default:!0}})}),u(oe,ie)},$$slots:{default:!0}})}),u(Mt,Lt)},re=Mt=>{var Lt=B(),Xt=A(Lt);Bn(Xt,17,()=>l(s),Ct=>Ct.id,(Ct,W)=>{var oe=B(),De=A(oe);S(De,()=>In,(ie,he)=>{he(ie,{children:(ge,Re)=>{var se=Bs(),ve=A(se);S(ve,()=>xt,(J,Q)=>{Q(J,{class:"w-16",children:(G,bt)=>{var D=B(),ot=A(D);{var pt=T=>{var q=ys(),Ft=ft(q);ht(q),wt((Ie,It)=>{Tn(q,"href",Ie),Tn(Ft,"src",It)},[()=>d(l(W)),()=>d(l(W))]),u(T,q)},Dt=F(()=>d(l(W))),ct=T=>{var q=xs();u(T,q)};Ot(ot,T=>{l(Dt)?T(pt):T(ct,!1)})}u(G,D)},$$slots:{default:!0}})});var ae=R(ve,2);S(ae,()=>xt,(J,Q)=>{Q(J,{class:"font-medium",children:(G,bt)=>{z();var D=X();wt(()=>Pt(D,l(W).Item??"—")),u(G,D)},$$slots:{default:!0}})});var Be=R(ae,2);S(Be,()=>xt,(J,Q)=>{Q(J,{class:"font-mono text-xs",children:(G,bt)=>{z();var D=X();wt(()=>Pt(D,l(W).SKU??"—")),u(G,D)},$$slots:{default:!0}})});var Me=R(Be,2);{let J=F(()=>l(W).Description??"");S(Me,()=>xt,(Q,G)=>{G(Q,{class:"max-w-[200px] truncate",get title(){return l(J)},children:(bt,D)=>{z();var ot=X();wt(()=>Pt(ot,l(W).Description??"—")),u(bt,ot)},$$slots:{default:!0}})})}var Te=R(Me,2);S(Te,()=>xt,(J,Q)=>{Q(J,{children:(G,bt)=>{Ne(G,{variant:"outline",children:(D,ot)=>{z();var pt=X();wt(()=>Pt(pt,l(W).UOM??"—")),u(D,pt)},$$slots:{default:!0}})},$$slots:{default:!0}})});var dn=R(Te,2);S(dn,()=>xt,(J,Q)=>{Q(J,{class:"text-right tabular-nums",children:(G,bt)=>{z();var D=X();wt(ot=>Pt(D,ot),[()=>l(W).Cost!=null?Number(l(W).Cost).toLocaleString():"—"]),u(G,D)},$$slots:{default:!0}})});var V=R(dn,2);S(V,()=>xt,(J,Q)=>{Q(J,{class:"text-muted-foreground",children:(G,bt)=>{z();var D=X();wt(()=>Pt(D,l(W).Vendor??"—")),u(G,D)},$$slots:{default:!0}})});var K=R(V,2);S(K,()=>xt,(J,Q)=>{Q(J,{children:(G,bt)=>{var D=Ps(),ot=A(D);Bn(ot,17,()=>h(l(W).Catagory),ur,(T,q)=>{Ne(T,{variant:"secondary",class:"mr-1 text-xs",children:(Ft,Ie)=>{z();var It=X();wt(()=>Pt(It,l(q))),u(Ft,It)},$$slots:{default:!0}})});var pt=R(ot,2);{var Dt=T=>{var q=bs();u(T,q)},ct=F(()=>h(l(W).Catagory).length===0);Ot(pt,T=>{l(ct)&&T(Dt)})}u(G,D)},$$slots:{default:!0}})});var U=R(K,2);S(U,()=>xt,(J,Q)=>{Q(J,{children:(G,bt)=>{var D=Os(),ot=A(D);Bn(ot,17,()=>h(l(W).Sub_Catagory),ur,(T,q)=>{Ne(T,{variant:"outline",class:"mr-1 text-xs",children:(Ft,Ie)=>{z();var It=X();wt(()=>Pt(It,l(q))),u(Ft,It)},$$slots:{default:!0}})});var pt=R(ot,2);{var Dt=T=>{var q=_s();u(T,q)},ct=F(()=>h(l(W).Sub_Catagory).length===0);Ot(pt,T=>{l(ct)&&T(Dt)})}u(G,D)},$$slots:{default:!0}})});var mt=R(U,2);S(mt,()=>xt,(J,Q)=>{Q(J,{children:(G,bt)=>{var D=B(),ot=A(D);{var pt=ct=>{Ne(ct,{children:(T,q)=>{z();var Ft=X("Yes");u(T,Ft)},$$slots:{default:!0}})},Dt=ct=>{var T=Ss();u(ct,T)};Ot(ot,ct=>{l(W).Has_Parent?ct(pt):ct(Dt,!1)})}u(G,D)},$$slots:{default:!0}})});var Y=R(mt,2);S(Y,()=>xt,(J,Q)=>{Q(J,{class:"text-muted-foreground",children:(G,bt)=>{var D=B(),ot=A(D);{var pt=T=>{var q=X();wt(()=>Pt(q,l(W).expand.Parent.Item??l(W).expand.Parent.SKU??l(W).Parent)),u(T,q)},Dt=T=>{var q=As(),Ft=ft(q,!0);ht(q),wt(()=>Pt(Ft,l(W).Parent)),u(T,q)},ct=T=>{var q=X("—");u(T,q)};Ot(ot,T=>{var q;(q=l(W).expand)!=null&&q.Parent?T(pt):l(W).Parent?T(Dt,1):T(ct,!1)})}u(G,D)},$$slots:{default:!0}})});var tr=R(Y,2);S(tr,()=>xt,(J,Q)=>{Q(J,{children:(G,bt)=>{var D=B(),ot=A(D);{var pt=ct=>{Ne(ct,{variant:"default",children:(T,q)=>{z();var Ft=X("Stock");u(T,Ft)},$$slots:{default:!0}})},Dt=ct=>{var T=Cs();u(ct,T)};Ot(ot,ct=>{l(W).Stock?ct(pt):ct(Dt,!1)})}u(G,D)},$$slots:{default:!0}})});var er=R(tr,2);S(er,()=>xt,(J,Q)=>{Q(J,{class:"text-muted-foreground text-xs",children:(G,bt)=>{z();var D=X();wt(ot=>Pt(D,ot),[()=>g(l(W).created)]),u(G,D)},$$slots:{default:!0}})});var nr=R(er,2);S(nr,()=>xt,(J,Q)=>{Q(J,{class:"text-muted-foreground text-xs",children:(G,bt)=>{z();var D=X();wt(ot=>Pt(D,ot),[()=>g(l(W).updated)]),u(G,D)},$$slots:{default:!0}})});var zr=R(nr,2);S(zr,()=>xt,(J,Q)=>{Q(J,{children:(G,bt)=>{var D=B(),ot=A(D);S(ot,()=>gs,(pt,Dt)=>{Dt(pt,{children:(ct,T)=>{var q=Rs(),Ft=A(q);S(Ft,()=>ms,(It,Fn)=>{Fn(It,{class:"border-0 bg-transparent hover:bg-muted inline-flex size-8 items-center justify-center rounded-md",children:(En,Hr)=>{ds(En,{class:"size-4"})},$$slots:{default:!0}})});var Ie=R(Ft,2);S(Ie,()=>Nr,(It,Fn)=>{Fn(It,{children:(En,Hr)=>{var rr=B(),Vr=A(rr);S(Vr,()=>vs,(Kr,Ur)=>{Ur(Kr,{align:"end",children:(Yr,Ws)=>{var or=Ds(),ir=A(or);S(ir,()=>Sr,(We,me)=>{me(We,{onclick:()=>v(l(W)),children:(we,jr)=>{var Le=Fs(),Dn=A(Le);us(Dn,{class:"mr-2 size-4"}),z(),u(we,Le)},$$slots:{default:!0}})});var ke=R(ir,2),sr=ft(ke);Ao(sr),ht(ke),Oo(ke,We=>{var me;return(me=So)==null?void 0:me(We)});var Xr=R(ke,2);S(Xr,()=>Sr,(We,me)=>{me(We,{class:"text-destructive focus:text-destructive cursor-pointer",onclick:()=>{var we;confirm("Delete this item? This cannot be undone.")&&((we=document.getElementById("delete-form-"+l(W).id))==null||we.requestSubmit())},children:(we,jr)=>{var Le=Es(),Dn=A(Le);hs(Dn,{class:"mr-2 size-4"}),z(),u(we,Le)},$$slots:{default:!0}})}),wt(()=>{Tn(ke,"id",`delete-form-${l(W).id??""}`),Co(sr,l(W).id)}),u(Yr,or)},$$slots:{default:!0}})}),u(En,rr)},$$slots:{default:!0}})}),u(ct,q)},$$slots:{default:!0}})}),u(G,D)},$$slots:{default:!0}})}),u(ge,se)},$$slots:{default:!0}})}),u(Ct,oe)}),u(Mt,Lt)};Ot(fe,Mt=>{l(s).length===0?Mt(Ee):Mt(re,!1)})}u(ne,Yt)},$$slots:{default:!0}})}),u(H,et)},$$slots:{default:!0}})}),u(j,it)},$$slots:{default:!0}})},$$slots:{default:!0}});var E=R(M,2);S(E,()=>yo,(_,$)=>{$(_,{get open(){return l(n)},set open(j){L(n,j,!0)},children:(j,ut)=>{var it=B(),vt=A(it);S(vt,()=>go,(rt,nt)=>{nt(rt,{class:"max-h-[90vh] overflow-y-auto sm:max-w-[500px]",children:(H,tt)=>{var et=Is(),At=A(et);S(At,()=>vo,(te,ee)=>{ee(te,{children:(ne,$n)=>{var Yt=Ts(),fe=A(Yt);S(fe,()=>mo,(re,Mt)=>{Mt(re,{children:(Lt,Xt)=>{z();var Ct=X();wt(()=>Pt(Ct,l(r)?"Edit item":"New item")),u(Lt,Ct)},$$slots:{default:!0}})});var Ee=R(fe,2);S(Ee,()=>wo,(re,Mt)=>{Mt(re,{children:(Lt,Xt)=>{z();var Ct=X();wt(()=>Pt(Ct,l(r)?"Update the item below.":"Add a new Stackq item.")),u(Lt,Ct)},$$slots:{default:!0}})}),u(ne,Yt)},$$slots:{default:!0}})});var Fe=R(At,2);{let te=F(()=>l(r)?"?/update":"?/create"),ee=F(()=>l(r)?"Update":"Create"),ne=F(()=>l(p)??null);po(Fe,{get item(){return l(r)},get itemsForParent(){return l(i)},get action(){return l(te)},get submitLabel(){return l(ee)},get error(){return l(ne)},onSuccess:m})}u(H,et)},$$slots:{default:!0}})}),u(j,it)},$$slots:{default:!0}})}),ht(w),wt(()=>Pt(b,`${l(s).length??""} items`)),u(e,w),lt()}export{Qs as default}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/DXZbZvqb.js b/.svelte-kit/output/client/_app/immutable/chunks/DXZbZvqb.js new file mode 100644 index 00000000..480f7d37 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/DXZbZvqb.js @@ -0,0 +1 @@ +import"./Bzak7iHL.js";import{A as T,f as c,C as s,h as d,D as r,E as o,a,r as m,F as g,c as U,g as y,G as V,I as X,u as Y,b as x}from"./Dexp9pM5.js";import{c as l}from"./25AjRaeI.js";import{B as h}from"./B12dZE2q.js";import{D as Z,a as tt,b as et,c as at,I as st,d as rt}from"./iABcLwh6.js";import{g as ot}from"./BapE3c1q.js";var lt=x(" ",1),nt=x(" ",1),it=x('

Stackq

Svelte 5 + shadcn-svelte + PocketBase

',1);function gt(A,P){T(P,!0);let n=X(!1);const C=Y(()=>{var t;return((t=P.data)==null?void 0:t.itemsForParent)??[]});function L(){g(n,!1),ot("/items")}var w=it(),u=c(w),b=s(d(u),4),f=d(b),N=d(f);h(N,{class:"w-full",children:(t,i)=>{r();var e=o("Items table");a(t,e)},$$slots:{default:!0}}),m(f);var D=s(f,2);h(D,{class:"w-full",variant:"outline",onclick:()=>g(n,!0),children:(t,i)=>{r();var e=o("New item");a(t,e)},$$slots:{default:!0}});var k=s(D,2),j=d(k);h(j,{class:"w-full",variant:"outline",children:(t,i)=>{r();var e=o("Log out");a(t,e)},$$slots:{default:!0}}),m(k),m(b),m(u);var E=s(u,2);l(E,()=>rt,(t,i)=>{i(t,{get open(){return y(n)},set open(e){g(n,e,!0)},children:(e,ct)=>{var F=U(),G=c(F);l(G,()=>Z,(H,O)=>{O(H,{class:"max-h-[90vh] overflow-y-auto sm:max-w-[500px]",children:(W,dt)=>{var I=nt(),S=c(I);l(S,()=>tt,(J,K)=>{K(J,{children:(M,mt)=>{var B=lt(),q=c(B);l(q,()=>et,(v,$)=>{$(v,{children:(p,R)=>{r();var _=o("New item");a(p,_)},$$slots:{default:!0}})});var Q=s(q,2);l(Q,()=>at,(v,$)=>{$(v,{children:(p,R)=>{r();var _=o("Add a new Stackq item.");a(p,_)},$$slots:{default:!0}})}),a(M,B)},$$slots:{default:!0}})});var z=s(S,2);st(z,{get itemsForParent(){return y(C)},action:"/items?/create",submitLabel:"Create",onSuccess:L}),a(W,I)},$$slots:{default:!0}})}),a(e,F)},$$slots:{default:!0}})}),a(A,w),V()}export{gt as default}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/DZmckTjd.js b/.svelte-kit/output/client/_app/immutable/chunks/DZmckTjd.js new file mode 100644 index 00000000..185095b6 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/DZmckTjd.js @@ -0,0 +1,2 @@ +var Ae=Object.defineProperty;var re=i=>{throw TypeError(i)};var Se=(i,e,s)=>e in i?Ae(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var J=(i,e,s)=>Se(i,typeof e!="symbol"?e+"":e,s),Q=(i,e,s)=>e.has(i)||re("Cannot "+s);var t=(i,e,s)=>(Q(i,e,"read from private field"),s?s.call(i):e.get(i)),f=(i,e,s)=>e.has(i)?re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),n=(i,e,s,a)=>(Q(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s),y=(i,e,s)=>(Q(i,e,"access private method"),s);import{aA as Ne,g as ve,ac as Oe,x as ye,ad as ae,aB as fe,q as j,J as A,i as S,R as x,aC as he,l as Ce,j as Fe,H as Ye,a7 as C,Q as me,B as U,a6 as X,a8 as ke,aD as xe,X as oe,W as le,aE as _e,aF as Me,Y as Ie,at as M,aG as de,aH as Be,aI as ce,aJ as He,p as Pe,a5 as K,s as W,D as Le,n as je,aK as ue,aL as Ve,L as We,aM as $e,aN as qe,aO as Z,P as ze,$ as be,ab as Ge,a0 as Je,aP as ee,o as P,aQ as Qe,aR as Ue,aS as Xe,aT as Ke,A as Ze,O as et,aU as tt,aV as st,G as it,aW as at,av as nt,am as rt,aX as ft,w as ht,aY as ot,aZ as lt,a_ as _t,a$ as dt,b0 as ct}from"./Dexp9pM5.js";import{a as ut,r as pe,h as ge,b as pt}from"./agKGoZF1.js";function gt(i){let e=0,s=ye(0),a;return()=>{Ne()&&(ve(s),Oe(()=>(e===0&&(a=ae(()=>i(()=>fe(s)))),e+=1,()=>{j(()=>{e-=1,e===0&&(a==null||a(),a=void 0,fe(s))})})))}}var vt=We|$e;function yt(i,e,s){new mt(i,e,s)}var d,I,T,N,m,b,l,E,R,O,D,F,Y,k,w,$,h,Ee,Te,te,V,se;class mt{constructor(e,s,a){f(this,h);J(this,"parent");J(this,"is_pending",!1);f(this,d);f(this,I,S?A:null);f(this,T);f(this,N);f(this,m);f(this,b,null);f(this,l,null);f(this,E,null);f(this,R,null);f(this,O,0);f(this,D,0);f(this,F,!1);f(this,Y,new Set);f(this,k,new Set);f(this,w,null);f(this,$,gt(()=>(n(this,w,ye(t(this,O))),()=>{n(this,w,null)})));n(this,d,e),n(this,T,s),n(this,N,o=>{var r=x;r.b=this,r.f|=he,a(o)}),this.parent=x.b,n(this,m,Ce(()=>{if(S){const o=t(this,I);Fe(),o.data===Ye?y(this,h,Te).call(this):y(this,h,Ee).call(this)}else y(this,h,te).call(this)},vt)),S&&n(this,d,A)}defer_effect(e){xe(e,t(this,Y),t(this,k))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!t(this,T).pending}update_pending_count(e){y(this,h,se).call(this,e),n(this,O,t(this,O)+e),!(!t(this,w)||t(this,F))&&(n(this,F,!0),j(()=>{n(this,F,!1),t(this,w)&&Pe(t(this,w),t(this,O))}))}get_effect_pending(){return t(this,$).call(this),ve(t(this,w))}error(e){var s=t(this,T).onerror;let a=t(this,T).failed;if(!s&&!a)throw e;t(this,b)&&(K(t(this,b)),n(this,b,null)),t(this,l)&&(K(t(this,l)),n(this,l,null)),t(this,E)&&(K(t(this,E)),n(this,E,null)),S&&(W(t(this,I)),Le(),W(je()));var o=!1,r=!1;const c=()=>{if(o){qe();return}o=!0,r&&Ve(),t(this,E)!==null&&X(t(this,E),()=>{n(this,E,null)}),y(this,h,V).call(this,()=>{U.ensure(),y(this,h,te).call(this)})};j(()=>{try{r=!0,s==null||s(e,c),r=!1}catch(_){ue(_,t(this,m)&&t(this,m).parent)}a&&n(this,E,y(this,h,V).call(this,()=>{U.ensure();try{return C(()=>{var _=x;_.b=this,_.f|=he,a(t(this,d),()=>e,()=>c)})}catch(_){return ue(_,t(this,m).parent),null}}))})}}d=new WeakMap,I=new WeakMap,T=new WeakMap,N=new WeakMap,m=new WeakMap,b=new WeakMap,l=new WeakMap,E=new WeakMap,R=new WeakMap,O=new WeakMap,D=new WeakMap,F=new WeakMap,Y=new WeakMap,k=new WeakMap,w=new WeakMap,$=new WeakMap,h=new WeakSet,Ee=function(){try{n(this,b,C(()=>t(this,N).call(this,t(this,d))))}catch(e){this.error(e)}},Te=function(){const e=t(this,T).pending;e&&(this.is_pending=!0,n(this,l,C(()=>e(t(this,d)))),j(()=>{var s=n(this,R,document.createDocumentFragment()),a=me();s.append(a),n(this,b,y(this,h,V).call(this,()=>(U.ensure(),C(()=>t(this,N).call(this,a))))),t(this,D)===0&&(t(this,d).before(s),n(this,R,null),X(t(this,l),()=>{n(this,l,null)}),this.is_pending=!1)}))},te=function(){try{if(this.is_pending=this.has_pending_snippet(),n(this,D,0),n(this,O,0),n(this,b,C(()=>{t(this,N).call(this,t(this,d))})),t(this,D)>0){var e=n(this,R,document.createDocumentFragment());ke(t(this,b),e);const s=t(this,T).pending;n(this,l,C(()=>s(t(this,d))))}else this.is_pending=!1}catch(s){this.error(s)}},V=function(e){var s=x,a=Ie,o=M;oe(t(this,m)),le(t(this,m)),_e(t(this,m).ctx);try{return e()}catch(r){return Me(r),null}finally{oe(s),le(a),_e(o)}},se=function(e){var s;if(!this.has_pending_snippet()){this.parent&&y(s=this.parent,h,se).call(s,e);return}if(n(this,D,t(this,D)+e),t(this,D)===0){this.is_pending=!1;for(const a of t(this,Y))de(a,Be),ce(a);for(const a of t(this,k))de(a,He),ce(a);t(this,Y).clear(),t(this,k).clear(),t(this,l)&&X(t(this,l),()=>{n(this,l,null)}),t(this,R)&&(t(this,d).before(t(this,R)),n(this,R,null))}};function St(i,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(i.__t??(i.__t=i.nodeValue))&&(i.__t=s,i.nodeValue=s+"")}function Re(i,e){return we(i,e)}function bt(i,e){Z(),e.intro=e.intro??!1;const s=e.target,a=S,o=A;try{for(var r=ze(s);r&&(r.nodeType!==be||r.data!==Ge);)r=Je(r);if(!r)throw ee;P(!0),W(r);const c=we(i,{...e,anchor:r});return P(!1),c}catch(c){if(c instanceof Error&&c.message.split(` +`).some(_=>_.startsWith("https://svelte.dev/e/")))throw c;return c!==ee&&console.warn("Failed to hydrate: ",c),e.recover===!1&&Qe(),Z(),Ue(s),P(!1),Re(i,e)}finally{P(a),W(o)}}const L=new Map;function we(i,{target:e,anchor:s,props:a={},events:o,context:r,intro:c=!0}){Z();var _=void 0,De=Xe(()=>{var B=s??e.appendChild(me());yt(B,{pending:()=>{}},u=>{Ze({});var p=M;if(r&&(p.c=r),o&&(a.$$events=o),S&&et(u,null),_=i(u,a)||{},S&&(x.nodes.end=A,A===null||A.nodeType!==be||A.data!==tt))throw st(),ee;it()});var q=new Set,z=u=>{for(var p=0;p{var H;for(var u of q)for(const v of[e,document]){var p=L.get(v),g=p.get(u);--g==0?(v.removeEventListener(u,ge),p.delete(u),p.size===0&&L.delete(v)):p.set(u,g)}pe.delete(z),B!==s&&((H=B.parentNode)==null||H.removeChild(B))}});return ie.set(_,De),_}let ie=new WeakMap;function Et(i,e){const s=ie.get(i);return s?(ie.delete(i),s(e)):Promise.resolve()}function Tt(i){M===null&&at(),rt&&M.l!==null?Rt(M).m.push(i):nt(()=>{const e=ae(i);if(typeof e=="function")return e})}function Rt(i){var e=i.l;return e.u??(e.u={a:[],b:[],m:[]})}const Nt=Object.freeze(Object.defineProperty({__proto__:null,flushSync:ht,getAllContexts:ot,getContext:lt,hasContext:_t,hydrate:bt,mount:Re,onMount:Tt,setContext:dt,settled:ct,tick:ft,unmount:Et,untrack:ae},Symbol.toStringTag,{value:"Module"}));export{Nt as a,gt as c,bt as h,Re as m,Tt as o,St as s,Et as u}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/DcVg5zjO.js b/.svelte-kit/output/client/_app/immutable/chunks/DcVg5zjO.js new file mode 100644 index 00000000..c82f38ef --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/DcVg5zjO.js @@ -0,0 +1 @@ +import{i as n,j as x,k as B,l as g,m as N,H as A,s as D,n as H,o as c,q as S,p as v,B as q,t as L,v as R,w as U,x as k,U as j,y as E,z}from"./Dexp9pM5.js";import{B as G}from"./CRDN6Mh7.js";const T=0,_=1;function P(m,b,y,r,l){n&&x();var h=B(),t=j,i=h?k(t):E(t,!1,!1),o=h?k(t):E(t,!1,!1),s=new G(m);g(()=>{var u=b(),p=!1;let d=n&&N(u)===(m.data===A);if(d&&(D(H()),c(!1)),N(u)){var w=z(),I=!1;const a=e=>{if(!p){I=!0,w(!1),q.ensure(),n&&c(!1);try{e()}finally{L(),R||U()}}};u.then(e=>{a(()=>{v(i,e),s.ensure(_,r&&(f=>r(f,i)))})},e=>{a(()=>{if(v(o,e),s.ensure(_,l&&(f=>l(f,o))),!l)throw o.v})}),n?s.ensure(T,y):S(()=>{I||a(()=>{s.ensure(T,y)})})}else v(i,u),s.ensure(_,r&&(a=>r(a,i)));return d&&c(!0),()=>{p=!0}})}export{P as a}; diff --git a/build/client/_app/immutable/chunks/MIlO0V30.js b/.svelte-kit/output/client/_app/immutable/chunks/Dexp9pM5.js similarity index 95% rename from build/client/_app/immutable/chunks/MIlO0V30.js rename to .svelte-kit/output/client/_app/immutable/chunks/Dexp9pM5.js index aa5b89bd..b1519b4e 100644 --- a/build/client/_app/immutable/chunks/MIlO0V30.js +++ b/.svelte-kit/output/client/_app/immutable/chunks/Dexp9pM5.js @@ -1 +1 @@ -var wn=Object.defineProperty;var bt=e=>{throw TypeError(e)};var mn=(e,t,n)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var re=(e,t,n)=>mn(e,typeof t!="symbol"?t+"":t,n),Ze=(e,t,n)=>t.has(e)||bt("Cannot "+n);var p=(e,t,n)=>(Ze(e,t,"read from private field"),n?n.call(e):t.get(e)),F=(e,t,n)=>t.has(e)?bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),z=(e,t,n,r)=>(Ze(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),me=(e,t,n)=>(Ze(e,t,"access private method"),n);var yn=Array.isArray,gn=Array.prototype.indexOf,Te=Array.prototype.includes,mr=Array.from,yr=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,En=Object.getOwnPropertyDescriptors,bn=Object.prototype,Tn=Array.prototype,It=Object.getPrototypeOf,Tt=Object.isExtensible;function gr(e){return typeof e=="function"}const An=()=>{};function Er(e){return typeof(e==null?void 0:e.then)=="function"}function br(e){return e()}function xn(e){for(var t=0;t{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Tr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const x=2,De=4,Fe=8,ot=1<<24,K=16,U=32,te=64,Sn=128,P=512,b=1024,R=2048,q=4096,H=8192,X=16384,Se=32768,Ue=65536,At=1<<17,Ft=1<<18,Re=1<<19,Lt=1<<20,Ar=1<<25,_e=65536,et=1<<21,ut=1<<22,Z=1<<23,ue=Symbol("$state"),xr=Symbol("legacy props"),Sr=Symbol(""),fe=new class extends Error{constructor(){super(...arguments);re(this,"name","StaleReactionError");re(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Dt;const Nr=!!((Dt=globalThis.document)!=null&&Dt.contentType)&&globalThis.document.contentType.includes("xml"),Or=1,Le=3,ct=8;function Rn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function On(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function kn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Cr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function In(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Pr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ir=1,Mr=2,Fr=16,Lr=1,jr=2,Yr=4,Hr=8,qr=16,Fn=1,Ln=2,jn="[",Yn="[!",Hn="]",_t={},T=Symbol(),qn="http://www.w3.org/1999/xhtml",Vr="http://www.w3.org/2000/svg",Ur="@attach";function vt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Br(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function $r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let C=!1;function Gr(e){C=e}let d;function ve(e){if(e===null)throw vt(),_t;return d=e}function jt(){return ve(ne(d))}function Kr(e){if(C){if(ne(d)!==null)throw vt(),_t;d=e}}function zr(e=1){if(C){for(var t=e,n=d;t--;)n=ne(n);d=n}}function Wr(e=!0){for(var t=0,n=d;;){if(n.nodeType===ct){var r=n.data;if(r===Hn){if(t===0)return n;t-=1}else(r===jn||r===Yn||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=ne(n);e&&n.remove(),n=s}}function Xr(e){if(!e||e.nodeType!==ct)throw vt(),_t;return e.data}function Yt(e){return e===this.v}function Vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ht(e){return!Vn(e,this.v)}let Ge=!1;function Zr(){Ge=!0}let y=null;function Be(e){y=e}function Jr(e){return Ke().get(e)}function Qr(e,t){return Ke().set(e,t),t}function es(e){return Ke().has(e)}function ts(){return Ke()}function ns(e,t=!1,n){y={p:y,i:!1,c:null,e:null,s:e,x:null,l:Ge&&!t?{s:null,u:null,$:[]}:null}}function rs(e){var t=y,n=t.e;if(n!==null){t.e=null;for(var r of n)rn(r)}return t.i=!0,y=t.p,{}}function je(){return!Ge||y!==null&&y.l===null}function Ke(e){return y===null&&Rn(),y.c??(y.c=new Map(Un(y)||void 0))}function Un(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let ie=[];function qt(){var e=ie;ie=[],xn(e)}function tt(e){if(ie.length===0&&!Ce){var t=ie;queueMicrotask(()=>{t===ie&&qt()})}ie.push(e)}function Bn(){for(;ie.length>0;)qt()}function $n(e){var t=m;if(t===null)return v.f|=Z,e;if((t.f&Se)===0&&(t.f&De)===0)throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if((t.f&Sn)!==0){if((t.f&Se)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Gn=-7169;function g(e,t){e.f=e.f&Gn|t}function dt(e){(e.f&P)!==0||e.deps===null?g(e,b):g(e,q)}function Vt(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&_e)===0||(t.f^=_e,Vt(t.deps))}function Kn(e,t,n){(e.f&R)!==0?t.add(e):(e.f&q)!==0&&n.add(e),Vt(e.deps),g(e,b)}const qe=new Set;let h=null,xt=null,A=null,N=[],ze=null,nt=!1,Ce=!1;var ye,ge,le,Ee,Ie,Me,oe,B,be,V,rt,st,Ut;const gt=class gt{constructor(){F(this,V);re(this,"committed",!1);re(this,"current",new Map);re(this,"previous",new Map);F(this,ye,new Set);F(this,ge,new Set);F(this,le,0);F(this,Ee,0);F(this,Ie,null);F(this,Me,new Set);F(this,oe,new Set);F(this,B,new Map);re(this,"is_fork",!1);F(this,be,!1)}is_deferred(){return this.is_fork||p(this,Ee)>0}skip_effect(t){p(this,B).has(t)||p(this,B).set(t,{d:[],m:[]})}unskip_effect(t){var n=p(this,B).get(t);if(n){p(this,B).delete(t);for(var r of n.d)g(r,R),$(r);for(r of n.m)g(r,q),$(r)}}process(t){var s;N=[],this.apply();var n=[],r=[];for(const f of t)me(this,V,rt).call(this,f,n,r);if(this.is_deferred()){me(this,V,st).call(this,r),me(this,V,st).call(this,n);for(const[f,i]of p(this,B))Kt(f,i)}else{for(const f of p(this,ye))f();p(this,ye).clear(),p(this,le)===0&&me(this,V,Ut).call(this),xt=this,h=null,St(r),St(n),xt=null,(s=p(this,Ie))==null||s.resolve()}A=null}capture(t,n){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Z)===0&&(this.current.set(t,t.v),A==null||A.set(t,t.v))}activate(){h=this,this.apply()}deactivate(){h===this&&(h=null,A=null)}flush(){if(this.activate(),N.length>0){if(Bt(),h!==null&&h!==this)return}else p(this,le)===0&&this.process([]);this.deactivate()}discard(){for(const t of p(this,ge))t(this);p(this,ge).clear()}increment(t){z(this,le,p(this,le)+1),t&&z(this,Ee,p(this,Ee)+1)}decrement(t){z(this,le,p(this,le)-1),t&&z(this,Ee,p(this,Ee)-1),!p(this,be)&&(z(this,be,!0),tt(()=>{z(this,be,!1),this.is_deferred()?N.length>0&&this.flush():this.revive()}))}revive(){for(const t of p(this,Me))p(this,oe).delete(t),g(t,R),$(t);for(const t of p(this,oe))g(t,q),$(t);this.flush()}oncommit(t){p(this,ye).add(t)}ondiscard(t){p(this,ge).add(t)}settled(){return(p(this,Ie)??z(this,Ie,Mt())).promise}static ensure(){if(h===null){const t=h=new gt;qe.add(h),Ce||tt(()=>{h===t&&t.flush()})}return h}apply(){}};ye=new WeakMap,ge=new WeakMap,le=new WeakMap,Ee=new WeakMap,Ie=new WeakMap,Me=new WeakMap,oe=new WeakMap,B=new WeakMap,be=new WeakMap,V=new WeakSet,rt=function(t,n,r){t.f^=b;for(var s=t.first,f=null;s!==null;){var i=s.f,l=(i&(U|te))!==0,a=l&&(i&b)!==0,o=a||(i&H)!==0||p(this,B).has(s);if(!o&&s.fn!==null){l?s.f^=b:f!==null&&(i&(De|Fe|ot))!==0?f.b.defer_effect(s):(i&De)!==0?n.push(s):Ye(s)&&((i&K)!==0&&p(this,oe).add(s),xe(s));var u=s.first;if(u!==null){s=u;continue}}for(;s!==null;){s===f&&(f=null);var _=s.next;if(_!==null){s=_;break}s=s.parent}}},st=function(t){for(var n=0;n1){this.previous.clear();var t=A,n=!0;for(const f of qe){if(f===this){n=!1;continue}const i=[];for(const[a,o]of this.current){if(f.current.has(a))if(n&&o!==f.current.get(a))f.current.set(a,o);else continue;i.push(a)}if(i.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var r=N;N=[];const a=new Set,o=new Map;for(const u of i)$t(u,l,a,o);if(N.length>0){h=f,f.apply();for(const u of N)me(s=f,V,rt).call(s,u,[],[]);f.deactivate()}N=r}}h=null,A=t}this.committed=!0,qe.delete(this)};let de=gt;function zn(e){var t=Ce;Ce=!0;try{for(var n;;){if(Bn(),N.length===0&&(h==null||h.flush(),N.length===0))return ze=null,n;Bt()}}finally{Ce=t}}function Bt(){nt=!0;var e=null;try{for(var t=0;N.length>0;){var n=de.ensure();if(t++>1e3){var r,s;Wn()}n.process(N),J.clear()}}finally{N=[],nt=!1,ze=null}}function Wn(){try{Dn()}catch(e){$e(e,ze)}}let L=null;function St(e){var t=e.length;if(t!==0){for(var n=0;n0)){J.clear();for(const s of L){if((s.f&(X|H))!==0)continue;const f=[s];let i=s.parent;for(;i!==null;)L.has(i)&&(L.delete(i),f.push(i)),i=i.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(X|H))===0&&xe(a)}}L.clear()}}L=null}}function $t(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&x)!==0?$t(s,t,n,r):(f&(ut|K))!==0&&(f&R)===0&&Gt(s,t,r)&&(g(s,R),$(s))}}function Gt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Te.call(t,s))return!0;if((s.f&x)!==0&&Gt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function $(e){for(var t=ze=e;t.parent!==null;){t=t.parent;var n=t.f;if(nt&&t===m&&(n&K)!==0&&(n&Ft)===0)return;if((n&(te|U))!==0){if((n&b)===0)return;t.f^=b}}N.push(t)}function Kt(e,t){if(!((e.f&U)!==0&&(e.f&b)!==0)){(e.f&R)!==0?t.d.push(e):(e.f&q)!==0&&t.m.push(e),g(e,b);for(var n=e.first;n!==null;)Kt(n,t),n=n.next}}function Xn(e,t,n,r){const s=je()?pt:Qn;var f=e.filter(c=>!c.settled);if(n.length===0&&f.length===0){r(t.map(s));return}var i=h,l=m,a=Zn(),o=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function u(c){a();try{r(c)}catch(E){(l.f&X)===0&&$e(E,l)}i==null||i.deactivate(),ft()}if(n.length===0){o.then(()=>u(t.map(s)));return}function _(){a(),Promise.all(n.map(c=>Jn(c))).then(c=>u([...t.map(s),...c])).catch(c=>$e(c,l))}o?o.then(_):_()}function Zn(){var e=m,t=v,n=y,r=h;return function(f=!0){Ae(e),ee(t),Be(n),f&&(r==null||r.activate())}}function ft(){Ae(null),ee(null),Be(null)}function pt(e){var t=x|R,n=v!==null&&(v.f&x)!==0?v:null;return m!==null&&(m.f|=Re),{ctx:y,deps:null,effects:null,equals:Yt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??m,ac:null}}function Jn(e,t,n){let r=m;r===null&&Nn();var s=r.b,f=void 0,i=wt(T),l=!v,a=new Map;return or(()=>{var E;var o=Mt();f=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{u===h&&u.committed&&u.deactivate(),ft()})}catch(w){o.reject(w),ft()}var u=h;if(l){var _=s.is_rendered();s.update_pending_count(1),u.increment(_),(E=a.get(u))==null||E.reject(fe),a.delete(u),a.set(u,o)}const c=(w,Y=void 0)=>{if(u.activate(),Y)Y!==fe&&(i.f|=Z,at(i,Y));else{(i.f&Z)!==0&&(i.f^=Z),at(i,w);for(const[S,He]of a){if(a.delete(S),S===u)break;He.reject(fe)}}l&&(s.update_pending_count(-1),u.decrement(_))};o.promise.then(c,w=>c(null,w||"unknown"))}),lr(()=>{for(const o of a.values())o.reject(fe)}),new Promise(o=>{function u(_){function c(){_===f?o(i):u(f)}_.then(c,c)}u(f)})}function ss(e){const t=pt(e);return on(t),t}function Qn(e){const t=pt(e);return t.equals=Ht,t}function er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n0&&!Xt&&rr()}return t}function rr(){Xt=!1;for(const e of it)(e.f&b)!==0&&g(e,q),Ye(e)&&xe(e);it.clear()}function Je(e){se(e,e.v+1)}function Zt(e,t){var n=e.reactions;if(n!==null)for(var r=je(),s=n.length,f=0;f{if(ce===f)return l();var a=v,o=ce;ee(null),Ct(f);var u=l();return ee(a),Ct(o),u};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(l,a,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&Pn();var u=n.get(a);return u===void 0?i(()=>{var _=W(o.value);return n.set(a,_),_}):se(u,o.value,!0),!0},deleteProperty(l,a){var o=n.get(a);if(o===void 0){if(a in l){const u=i(()=>W(T));n.set(a,u),Je(s)}}else se(o,T),Je(s);return!0},get(l,a,o){var E;if(a===ue)return e;var u=n.get(a),_=a in l;if(u===void 0&&(!_||(E=ke(l,a))!=null&&E.writable)&&(u=i(()=>{var w=Ne(_?l[a]:T),Y=W(w);return Y}),n.set(a,u)),u!==void 0){var c=Oe(u);return c===T?void 0:c}return Reflect.get(l,a,o)},getOwnPropertyDescriptor(l,a){var o=Reflect.getOwnPropertyDescriptor(l,a);if(o&&"value"in o){var u=n.get(a);u&&(o.value=Oe(u))}else if(o===void 0){var _=n.get(a),c=_==null?void 0:_.v;if(_!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return o},has(l,a){var c;if(a===ue)return!0;var o=n.get(a),u=o!==void 0&&o.v!==T||Reflect.has(l,a);if(o!==void 0||m!==null&&(!u||(c=ke(l,a))!=null&&c.writable)){o===void 0&&(o=i(()=>{var E=u?Ne(l[a]):T,w=W(E);return w}),n.set(a,o));var _=Oe(o);if(_===T)return!1}return u},set(l,a,o,u){var Et;var _=n.get(a),c=a in l;if(r&&a==="length")for(var E=o;E<_.v;E+=1){var w=n.get(E+"");w!==void 0?se(w,T):E in l&&(w=i(()=>W(T)),n.set(E+"",w))}if(_===void 0)(!c||(Et=ke(l,a))!=null&&Et.writable)&&(_=i(()=>W(void 0)),se(_,Ne(o)),n.set(a,_));else{c=_.v!==T;var Y=i(()=>Ne(o));se(_,Y)}var S=Reflect.getOwnPropertyDescriptor(l,a);if(S!=null&&S.set&&S.set.call(u,o),!c){if(r&&typeof a=="string"){var He=n.get("length"),Xe=Number(a);Number.isInteger(Xe)&&Xe>=He.v&&se(He,Xe+1)}Je(s)}return!0},ownKeys(l){Oe(s);var a=Reflect.ownKeys(l).filter(_=>{var c=n.get(_);return c===void 0||c.v!==T});for(var[o,u]of n)u.v!==T&&!(o in l)&&a.push(o);return a},setPrototypeOf(){In()}})}function Rt(e){try{if(e!==null&&typeof e=="object"&&ue in e)return e[ue]}catch{}return e}function is(e,t){return Object.is(Rt(e),Rt(t))}var Nt,sr,Jt,Qt,en;function as(){if(Nt===void 0){Nt=window,sr=document,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=ke(t,"firstChild").get,en=ke(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(n)&&(n.__t=void 0)}}function pe(e=""){return document.createTextNode(e)}function he(e){return Qt.call(e)}function ne(e){return en.call(e)}function ls(e,t){if(!C)return he(e);var n=he(d);if(n===null)n=d.appendChild(pe());else if(t&&n.nodeType!==Le){var r=pe();return n==null||n.before(r),ve(r),r}return t&&We(n),ve(n),n}function os(e,t=!1){if(!C){var n=he(e);return n instanceof Comment&&n.data===""?ne(n):n}if(t){if((d==null?void 0:d.nodeType)!==Le){var r=pe();return d==null||d.before(r),ve(r),r}We(d)}return d}function us(e,t=1,n=!1){let r=C?d:e;for(var s;t--;)s=r,r=ne(r);if(!C)return r;if(n){if((r==null?void 0:r.nodeType)!==Le){var f=pe();return r===null?s==null||s.after(f):r.before(f),ve(f),f}We(r)}return ve(r),r}function cs(e){e.textContent=""}function _s(){return!1}function fr(e,t,n){return document.createElementNS(t??qn,e,void 0)}function We(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Le;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function vs(e,t){if(t){const n=document.body;e.autofocus=!0,tt(()=>{document.activeElement===n&&e.focus()})}}let Ot=!1;function ir(){Ot||(Ot=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function mt(e){var t=v,n=m;ee(null),Ae(null);try{return e()}finally{ee(t),Ae(n)}}function ds(e,t,n,r=n){e.addEventListener(t,()=>mt(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),ir()}function tn(e){m===null&&(v===null&&Cn(),kn()),we&&On()}function ar(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function M(e,t,n){var r=m;r!==null&&(r.f&H)!==0&&(e|=H);var s={ctx:y,deps:null,nodes:null,f:e|R|P,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{xe(s)}catch(l){throw Q(s),l}else t!==null&&$(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&Re)===0&&(f=f.first,(e&K)!==0&&(e&Ue)!==0&&f!==null&&(f.f|=Ue)),f!==null&&(f.parent=r,r!==null&&ar(f,r),v!==null&&(v.f&x)!==0&&(e&te)===0)){var i=v;(i.effects??(i.effects=[])).push(f)}return s}function nn(){return v!==null&&!j}function lr(e){const t=M(Fe,null,!1);return g(t,b),t.teardown=e,t}function ps(e){tn();var t=m.f,n=!v&&(t&U)!==0&&(t&Se)===0;if(n){var r=y;(r.e??(r.e=[])).push(e)}else return rn(e)}function rn(e){return M(De|Lt,e,!1)}function hs(e){return tn(),M(Fe|Lt,e,!0)}function ws(e){de.ensure();const t=M(te|Re,e,!0);return()=>{Q(t)}}function ms(e){de.ensure();const t=M(te|Re,e,!0);return(n={})=>new Promise(r=>{n.outro?_r(t,()=>{Q(t),r(void 0)}):(Q(t),r(void 0))})}function ys(e){return M(De,e,!1)}function or(e){return M(ut|Re,e,!0)}function gs(e,t=0){return M(Fe|t,e,!0)}function Es(e,t=[],n=[],r=[]){Xn(r,t,n,s=>{M(Fe,()=>e(...s.map(Oe)),!0)})}function bs(e,t=0){var n=M(K|t,e,!0);return n}function Ts(e,t=0){var n=M(ot|t,e,!0);return n}function As(e){return M(U|Re,e,!0)}function sn(e){var t=e.teardown;if(t!==null){const n=we,r=v;kt(!0),ee(null);try{t.call(null)}finally{kt(n),ee(r)}}}function yt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&mt(()=>{s.abort(fe)});var r=n.next;(n.f&te)!==0?n.parent=null:Q(n,t),n=r}}function ur(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&Q(t),t=n}}function Q(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(cr(e.nodes.start,e.nodes.end),n=!0),yt(e,t&&!n),Pe(e,0),g(e,X);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();sn(e);var s=e.parent;s!==null&&s.first!==null&&fn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function cr(e,t){for(;e!==null;){var n=e===t?null:ne(e);e.remove(),e=n}}function fn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function _r(e,t,n=!0){var r=[];an(e,r,!0);var s=()=>{n&&Q(e),t&&t()},f=r.length;if(f>0){var i=()=>--f||s();for(var l of r)l.out(i)}else s()}function an(e,t,n){if((e.f&H)===0){e.f^=H;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,i=(s.f&Ue)!==0||(s.f&U)!==0&&(e.f&K)!==0;an(s,t,i?n:!1),s=f}}}function xs(e){ln(e,!0)}function ln(e,t){if((e.f&H)!==0){e.f^=H,(e.f&b)===0&&(g(e,R),$(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ue)!==0||(n.f&U)!==0;ln(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const i of f)(i.is_global||t)&&i.in()}}function Ss(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:ne(n);t.append(n),n=s}}let Ve=!1,we=!1;function kt(e){we=e}let v=null,j=!1;function ee(e){v=e}let m=null;function Ae(e){m=e}let I=null;function on(e){v!==null&&(I===null?I=[e]:I.push(e))}let O=null,k=0,D=null;function vr(e){D=e}let un=1,ae=0,ce=ae;function Ct(e){ce=e}function cn(){return++un}function Ye(e){var t=e.f;if((t&R)!==0)return!0;if(t&x&&(e.f&=~_e),(t&q)!==0){for(var n=e.deps,r=n.length,s=0;se.wv)return!0}(t&P)!==0&&A===null&&g(e,b)}return!1}function _n(e,t,n=!0){var r=e.reactions;if(r!==null&&!(I!==null&&Te.call(I,e)))for(var s=0;s{e.ac.abort(fe)}),e.ac=null);try{e.f|=et;var u=e.fn,_=u();e.f|=Se;var c=e.deps,E=h==null?void 0:h.is_fork;if(O!==null){var w;if(E||Pe(e,k),c!==null&&k>0)for(c.length=k+O.length,w=0;we});function pr(e){return(Qe==null?void 0:Qe.createHTML(e))??e}function hn(e,t=!1){var n=fr("template");return e=e.replaceAll("",""),n.innerHTML=t?pr(e):e,n.content}function G(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Cs(e,t){var n=(t&Fn)!==0,r=(t&Ln)!==0,s,f=!e.startsWith("");return()=>{if(C)return G(d,null),d;s===void 0&&(s=hn(f?e:""+e,!0),n||(s=he(s)));var i=r||Jt?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=he(i),a=i.lastChild;G(l,a)}else G(i,i);return i}}function hr(e,t,n="svg"){var r=!e.startsWith(""),s=`<${n}>${r?e:""+e}`,f;return()=>{if(C)return G(d,null),d;if(!f){var i=hn(s,!0),l=he(i);f=he(l)}var a=f.cloneNode(!0);return G(a,a),a}}function Ds(e,t){return hr(e,t,"svg")}function Ps(e=""){if(!C){var t=pe(e+"");return G(t,t),t}var n=d;return n.nodeType!==Le?(n.before(n=pe()),ve(n)):We(n),G(n,n),n}function Is(){if(C)return G(d,null),d;var e=document.createDocumentFragment(),t=document.createComment(""),n=pe();return e.append(t,n),G(t,n),e}function Ms(e,t){if(C){var n=m;((n.f&Se)===0||n.nodes.end===null)&&(n.nodes.end=d),jt();return}e!==null&&e.before(t)}function Fs(){var e,t;if(C&&d&&d.nodeType===ct&&((e=d.textContent)!=null&&e.startsWith("$"))){const n=d.textContent.substring(1);return jt(),n}return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),`c${window.__svelte.uid++}`}export{gs as $,fs as A,de as B,Zn as C,ns as D,rs as E,An as F,h as G,Yn as H,xs as I,Q as J,_r as K,pe as L,As as M,d as N,Ss as O,_s as P,Ue as Q,Xr as R,jn as S,yr as T,T as U,ee as V,Ae as W,v as X,m as Y,mt as Z,ys as _,Ms as a,Ns as a$,Os as a0,ue as a1,ke as a2,Dr as a3,Yr as a4,Ne as a5,se as a6,X as a7,Hr as a8,Ge as a9,Je as aA,Sn as aB,Kn as aC,Be as aD,$n as aE,g as aF,R as aG,$ as aH,q as aI,$e as aJ,Pr as aK,Re as aL,$r as aM,as as aN,_t as aO,Cr as aP,cs as aQ,ms as aR,mr as aS,Hn as aT,vt as aU,Rn as aV,Rs as aW,ts as aX,Jr as aY,es as aZ,Qr as a_,jr as aa,Lr as ab,pt as ac,Qn as ad,qr as ae,we as af,xr as ag,gr as ah,y as ai,hs as aj,ps as ak,xn as al,br as am,ks as an,Es as ao,Or as ap,fr as aq,Vr as ar,G as as,he as at,lr as au,Ft as av,ct as aw,ne as ax,sr as ay,nn as az,Is as b,W as b0,Ts as b1,yn as b2,Br as b3,is as b4,Xn as b5,Ur as b6,Nr as b7,vs as b8,ir as b9,qn as ba,It as bb,Sr as bc,En as bd,Vn as be,ds as bf,xt as bg,Fs as bh,kr as bi,Mr as bj,Ir as bk,Fr as bl,Ar as bm,H as bn,U as bo,ce as bp,ws as bq,Ds as br,Tr as bs,ls as c,os as d,Zr as e,Cs as f,Oe as g,C as h,jt as i,je as j,bs as k,Er as l,ve as m,zr as n,Wr as o,Gr as p,tt as q,Kr as r,us as s,Ps as t,ss as u,at as v,ft as w,Ce as x,zn as y,wt as z}; +var wn=Object.defineProperty;var bt=e=>{throw TypeError(e)};var mn=(e,t,n)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var re=(e,t,n)=>mn(e,typeof t!="symbol"?t+"":t,n),Ze=(e,t,n)=>t.has(e)||bt("Cannot "+n);var p=(e,t,n)=>(Ze(e,t,"read from private field"),n?n.call(e):t.get(e)),F=(e,t,n)=>t.has(e)?bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),z=(e,t,n,r)=>(Ze(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),me=(e,t,n)=>(Ze(e,t,"access private method"),n);var yn=Array.isArray,gn=Array.prototype.indexOf,Te=Array.prototype.includes,mr=Array.from,yr=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,En=Object.getOwnPropertyDescriptors,bn=Object.prototype,Tn=Array.prototype,It=Object.getPrototypeOf,Tt=Object.isExtensible;function gr(e){return typeof e=="function"}const An=()=>{};function Er(e){return typeof(e==null?void 0:e.then)=="function"}function br(e){return e()}function xn(e){for(var t=0;t{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Tr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const x=2,De=4,Fe=8,ot=1<<24,K=16,U=32,te=64,Sn=128,P=512,b=1024,R=2048,q=4096,H=8192,X=16384,Se=32768,Ue=65536,At=1<<17,Ft=1<<18,Re=1<<19,Lt=1<<20,Ar=1<<25,_e=65536,et=1<<21,ut=1<<22,Z=1<<23,ue=Symbol("$state"),xr=Symbol("legacy props"),Sr=Symbol(""),fe=new class extends Error{constructor(){super(...arguments);re(this,"name","StaleReactionError");re(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Dt;const Nr=!!((Dt=globalThis.document)!=null&&Dt.contentType)&&globalThis.document.contentType.includes("xml"),Or=1,Le=3,ct=8;function Rn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function On(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function kn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Cr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function In(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Pr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Ir=1,Mr=2,Fr=16,Lr=1,jr=2,Yr=4,Hr=8,qr=16,Fn=1,Ln=2,jn="[",Yn="[!",Hn="]",_t={},T=Symbol(),qn="http://www.w3.org/1999/xhtml",Vr="http://www.w3.org/2000/svg",Ur="@attach";function vt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Br(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function $r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let C=!1;function Gr(e){C=e}let d;function ve(e){if(e===null)throw vt(),_t;return d=e}function jt(){return ve(ne(d))}function Kr(e){if(C){if(ne(d)!==null)throw vt(),_t;d=e}}function zr(e=1){if(C){for(var t=e,n=d;t--;)n=ne(n);d=n}}function Wr(e=!0){for(var t=0,n=d;;){if(n.nodeType===ct){var r=n.data;if(r===Hn){if(t===0)return n;t-=1}else(r===jn||r===Yn||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=ne(n);e&&n.remove(),n=s}}function Xr(e){if(!e||e.nodeType!==ct)throw vt(),_t;return e.data}function Yt(e){return e===this.v}function Vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ht(e){return!Vn(e,this.v)}let Ge=!1;function Zr(){Ge=!0}let y=null;function Be(e){y=e}function Jr(e){return Ke().get(e)}function Qr(e,t){return Ke().set(e,t),t}function es(e){return Ke().has(e)}function ts(){return Ke()}function ns(e,t=!1,n){y={p:y,i:!1,c:null,e:null,s:e,x:null,l:Ge&&!t?{s:null,u:null,$:[]}:null}}function rs(e){var t=y,n=t.e;if(n!==null){t.e=null;for(var r of n)rn(r)}return t.i=!0,y=t.p,{}}function je(){return!Ge||y!==null&&y.l===null}function Ke(e){return y===null&&Rn(),y.c??(y.c=new Map(Un(y)||void 0))}function Un(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let ie=[];function qt(){var e=ie;ie=[],xn(e)}function tt(e){if(ie.length===0&&!Ce){var t=ie;queueMicrotask(()=>{t===ie&&qt()})}ie.push(e)}function Bn(){for(;ie.length>0;)qt()}function $n(e){var t=m;if(t===null)return v.f|=Z,e;if((t.f&Se)===0&&(t.f&De)===0)throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if((t.f&Sn)!==0){if((t.f&Se)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Gn=-7169;function g(e,t){e.f=e.f&Gn|t}function dt(e){(e.f&P)!==0||e.deps===null?g(e,b):g(e,q)}function Vt(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&_e)===0||(t.f^=_e,Vt(t.deps))}function Kn(e,t,n){(e.f&R)!==0?t.add(e):(e.f&q)!==0&&n.add(e),Vt(e.deps),g(e,b)}const qe=new Set;let h=null,xt=null,A=null,N=[],ze=null,nt=!1,Ce=!1;var ye,ge,le,Ee,Ie,Me,oe,B,be,V,rt,st,Ut;const gt=class gt{constructor(){F(this,V);re(this,"committed",!1);re(this,"current",new Map);re(this,"previous",new Map);F(this,ye,new Set);F(this,ge,new Set);F(this,le,0);F(this,Ee,0);F(this,Ie,null);F(this,Me,new Set);F(this,oe,new Set);F(this,B,new Map);re(this,"is_fork",!1);F(this,be,!1)}is_deferred(){return this.is_fork||p(this,Ee)>0}skip_effect(t){p(this,B).has(t)||p(this,B).set(t,{d:[],m:[]})}unskip_effect(t){var n=p(this,B).get(t);if(n){p(this,B).delete(t);for(var r of n.d)g(r,R),$(r);for(r of n.m)g(r,q),$(r)}}process(t){var s;N=[],this.apply();var n=[],r=[];for(const f of t)me(this,V,rt).call(this,f,n,r);if(this.is_deferred()){me(this,V,st).call(this,r),me(this,V,st).call(this,n);for(const[f,i]of p(this,B))Kt(f,i)}else{for(const f of p(this,ye))f();p(this,ye).clear(),p(this,le)===0&&me(this,V,Ut).call(this),xt=this,h=null,St(r),St(n),xt=null,(s=p(this,Ie))==null||s.resolve()}A=null}capture(t,n){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Z)===0&&(this.current.set(t,t.v),A==null||A.set(t,t.v))}activate(){h=this,this.apply()}deactivate(){h===this&&(h=null,A=null)}flush(){if(this.activate(),N.length>0){if(Bt(),h!==null&&h!==this)return}else p(this,le)===0&&this.process([]);this.deactivate()}discard(){for(const t of p(this,ge))t(this);p(this,ge).clear()}increment(t){z(this,le,p(this,le)+1),t&&z(this,Ee,p(this,Ee)+1)}decrement(t){z(this,le,p(this,le)-1),t&&z(this,Ee,p(this,Ee)-1),!p(this,be)&&(z(this,be,!0),tt(()=>{z(this,be,!1),this.is_deferred()?N.length>0&&this.flush():this.revive()}))}revive(){for(const t of p(this,Me))p(this,oe).delete(t),g(t,R),$(t);for(const t of p(this,oe))g(t,q),$(t);this.flush()}oncommit(t){p(this,ye).add(t)}ondiscard(t){p(this,ge).add(t)}settled(){return(p(this,Ie)??z(this,Ie,Mt())).promise}static ensure(){if(h===null){const t=h=new gt;qe.add(h),Ce||tt(()=>{h===t&&t.flush()})}return h}apply(){}};ye=new WeakMap,ge=new WeakMap,le=new WeakMap,Ee=new WeakMap,Ie=new WeakMap,Me=new WeakMap,oe=new WeakMap,B=new WeakMap,be=new WeakMap,V=new WeakSet,rt=function(t,n,r){t.f^=b;for(var s=t.first,f=null;s!==null;){var i=s.f,l=(i&(U|te))!==0,a=l&&(i&b)!==0,o=a||(i&H)!==0||p(this,B).has(s);if(!o&&s.fn!==null){l?s.f^=b:f!==null&&(i&(De|Fe|ot))!==0?f.b.defer_effect(s):(i&De)!==0?n.push(s):Ye(s)&&((i&K)!==0&&p(this,oe).add(s),xe(s));var u=s.first;if(u!==null){s=u;continue}}for(;s!==null;){s===f&&(f=null);var _=s.next;if(_!==null){s=_;break}s=s.parent}}},st=function(t){for(var n=0;n1){this.previous.clear();var t=A,n=!0;for(const f of qe){if(f===this){n=!1;continue}const i=[];for(const[a,o]of this.current){if(f.current.has(a))if(n&&o!==f.current.get(a))f.current.set(a,o);else continue;i.push(a)}if(i.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var r=N;N=[];const a=new Set,o=new Map;for(const u of i)$t(u,l,a,o);if(N.length>0){h=f,f.apply();for(const u of N)me(s=f,V,rt).call(s,u,[],[]);f.deactivate()}N=r}}h=null,A=t}this.committed=!0,qe.delete(this)};let de=gt;function zn(e){var t=Ce;Ce=!0;try{for(var n;;){if(Bn(),N.length===0&&(h==null||h.flush(),N.length===0))return ze=null,n;Bt()}}finally{Ce=t}}function Bt(){nt=!0;var e=null;try{for(var t=0;N.length>0;){var n=de.ensure();if(t++>1e3){var r,s;Wn()}n.process(N),J.clear()}}finally{N=[],nt=!1,ze=null}}function Wn(){try{Dn()}catch(e){$e(e,ze)}}let L=null;function St(e){var t=e.length;if(t!==0){for(var n=0;n0)){J.clear();for(const s of L){if((s.f&(X|H))!==0)continue;const f=[s];let i=s.parent;for(;i!==null;)L.has(i)&&(L.delete(i),f.push(i)),i=i.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(X|H))===0&&xe(a)}}L.clear()}}L=null}}function $t(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&x)!==0?$t(s,t,n,r):(f&(ut|K))!==0&&(f&R)===0&&Gt(s,t,r)&&(g(s,R),$(s))}}function Gt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Te.call(t,s))return!0;if((s.f&x)!==0&&Gt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function $(e){for(var t=ze=e;t.parent!==null;){t=t.parent;var n=t.f;if(nt&&t===m&&(n&K)!==0&&(n&Ft)===0)return;if((n&(te|U))!==0){if((n&b)===0)return;t.f^=b}}N.push(t)}function Kt(e,t){if(!((e.f&U)!==0&&(e.f&b)!==0)){(e.f&R)!==0?t.d.push(e):(e.f&q)!==0&&t.m.push(e),g(e,b);for(var n=e.first;n!==null;)Kt(n,t),n=n.next}}function Xn(e,t,n,r){const s=je()?pt:Qn;var f=e.filter(c=>!c.settled);if(n.length===0&&f.length===0){r(t.map(s));return}var i=h,l=m,a=Zn(),o=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function u(c){a();try{r(c)}catch(E){(l.f&X)===0&&$e(E,l)}i==null||i.deactivate(),ft()}if(n.length===0){o.then(()=>u(t.map(s)));return}function _(){a(),Promise.all(n.map(c=>Jn(c))).then(c=>u([...t.map(s),...c])).catch(c=>$e(c,l))}o?o.then(_):_()}function Zn(){var e=m,t=v,n=y,r=h;return function(f=!0){Ae(e),ee(t),Be(n),f&&(r==null||r.activate())}}function ft(){Ae(null),ee(null),Be(null)}function pt(e){var t=x|R,n=v!==null&&(v.f&x)!==0?v:null;return m!==null&&(m.f|=Re),{ctx:y,deps:null,effects:null,equals:Yt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??m,ac:null}}function Jn(e,t,n){let r=m;r===null&&Nn();var s=r.b,f=void 0,i=wt(T),l=!v,a=new Map;return or(()=>{var E;var o=Mt();f=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{u===h&&u.committed&&u.deactivate(),ft()})}catch(w){o.reject(w),ft()}var u=h;if(l){var _=s.is_rendered();s.update_pending_count(1),u.increment(_),(E=a.get(u))==null||E.reject(fe),a.delete(u),a.set(u,o)}const c=(w,Y=void 0)=>{if(u.activate(),Y)Y!==fe&&(i.f|=Z,at(i,Y));else{(i.f&Z)!==0&&(i.f^=Z),at(i,w);for(const[S,He]of a){if(a.delete(S),S===u)break;He.reject(fe)}}l&&(s.update_pending_count(-1),u.decrement(_))};o.promise.then(c,w=>c(null,w||"unknown"))}),lr(()=>{for(const o of a.values())o.reject(fe)}),new Promise(o=>{function u(_){function c(){_===f?o(i):u(f)}_.then(c,c)}u(f)})}function ss(e){const t=pt(e);return on(t),t}function Qn(e){const t=pt(e);return t.equals=Ht,t}function er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n0&&!Xt&&rr()}return t}function rr(){Xt=!1;for(const e of it)(e.f&b)!==0&&g(e,q),Ye(e)&&xe(e);it.clear()}function Je(e){se(e,e.v+1)}function Zt(e,t){var n=e.reactions;if(n!==null)for(var r=je(),s=n.length,f=0;f{if(ce===f)return l();var a=v,o=ce;ee(null),Ct(f);var u=l();return ee(a),Ct(o),u};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(l,a,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&Pn();var u=n.get(a);return u===void 0?i(()=>{var _=W(o.value);return n.set(a,_),_}):se(u,o.value,!0),!0},deleteProperty(l,a){var o=n.get(a);if(o===void 0){if(a in l){const u=i(()=>W(T));n.set(a,u),Je(s)}}else se(o,T),Je(s);return!0},get(l,a,o){var E;if(a===ue)return e;var u=n.get(a),_=a in l;if(u===void 0&&(!_||(E=ke(l,a))!=null&&E.writable)&&(u=i(()=>{var w=Ne(_?l[a]:T),Y=W(w);return Y}),n.set(a,u)),u!==void 0){var c=Oe(u);return c===T?void 0:c}return Reflect.get(l,a,o)},getOwnPropertyDescriptor(l,a){var o=Reflect.getOwnPropertyDescriptor(l,a);if(o&&"value"in o){var u=n.get(a);u&&(o.value=Oe(u))}else if(o===void 0){var _=n.get(a),c=_==null?void 0:_.v;if(_!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return o},has(l,a){var c;if(a===ue)return!0;var o=n.get(a),u=o!==void 0&&o.v!==T||Reflect.has(l,a);if(o!==void 0||m!==null&&(!u||(c=ke(l,a))!=null&&c.writable)){o===void 0&&(o=i(()=>{var E=u?Ne(l[a]):T,w=W(E);return w}),n.set(a,o));var _=Oe(o);if(_===T)return!1}return u},set(l,a,o,u){var Et;var _=n.get(a),c=a in l;if(r&&a==="length")for(var E=o;E<_.v;E+=1){var w=n.get(E+"");w!==void 0?se(w,T):E in l&&(w=i(()=>W(T)),n.set(E+"",w))}if(_===void 0)(!c||(Et=ke(l,a))!=null&&Et.writable)&&(_=i(()=>W(void 0)),se(_,Ne(o)),n.set(a,_));else{c=_.v!==T;var Y=i(()=>Ne(o));se(_,Y)}var S=Reflect.getOwnPropertyDescriptor(l,a);if(S!=null&&S.set&&S.set.call(u,o),!c){if(r&&typeof a=="string"){var He=n.get("length"),Xe=Number(a);Number.isInteger(Xe)&&Xe>=He.v&&se(He,Xe+1)}Je(s)}return!0},ownKeys(l){Oe(s);var a=Reflect.ownKeys(l).filter(_=>{var c=n.get(_);return c===void 0||c.v!==T});for(var[o,u]of n)u.v!==T&&!(o in l)&&a.push(o);return a},setPrototypeOf(){In()}})}function Rt(e){try{if(e!==null&&typeof e=="object"&&ue in e)return e[ue]}catch{}return e}function is(e,t){return Object.is(Rt(e),Rt(t))}var Nt,sr,Jt,Qt,en;function as(){if(Nt===void 0){Nt=window,sr=document,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=ke(t,"firstChild").get,en=ke(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(n)&&(n.__t=void 0)}}function pe(e=""){return document.createTextNode(e)}function he(e){return Qt.call(e)}function ne(e){return en.call(e)}function ls(e,t){if(!C)return he(e);var n=he(d);if(n===null)n=d.appendChild(pe());else if(t&&n.nodeType!==Le){var r=pe();return n==null||n.before(r),ve(r),r}return t&&We(n),ve(n),n}function os(e,t=!1){if(!C){var n=he(e);return n instanceof Comment&&n.data===""?ne(n):n}if(t){if((d==null?void 0:d.nodeType)!==Le){var r=pe();return d==null||d.before(r),ve(r),r}We(d)}return d}function us(e,t=1,n=!1){let r=C?d:e;for(var s;t--;)s=r,r=ne(r);if(!C)return r;if(n){if((r==null?void 0:r.nodeType)!==Le){var f=pe();return r===null?s==null||s.after(f):r.before(f),ve(f),f}We(r)}return ve(r),r}function cs(e){e.textContent=""}function _s(){return!1}function fr(e,t,n){return document.createElementNS(t??qn,e,void 0)}function We(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Le;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function vs(e,t){if(t){const n=document.body;e.autofocus=!0,tt(()=>{document.activeElement===n&&e.focus()})}}let Ot=!1;function ir(){Ot||(Ot=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function mt(e){var t=v,n=m;ee(null),Ae(null);try{return e()}finally{ee(t),Ae(n)}}function ds(e,t,n,r=n){e.addEventListener(t,()=>mt(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),ir()}function tn(e){m===null&&(v===null&&Cn(),kn()),we&&On()}function ar(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function M(e,t,n){var r=m;r!==null&&(r.f&H)!==0&&(e|=H);var s={ctx:y,deps:null,nodes:null,f:e|R|P,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{xe(s)}catch(l){throw Q(s),l}else t!==null&&$(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&Re)===0&&(f=f.first,(e&K)!==0&&(e&Ue)!==0&&f!==null&&(f.f|=Ue)),f!==null&&(f.parent=r,r!==null&&ar(f,r),v!==null&&(v.f&x)!==0&&(e&te)===0)){var i=v;(i.effects??(i.effects=[])).push(f)}return s}function nn(){return v!==null&&!j}function lr(e){const t=M(Fe,null,!1);return g(t,b),t.teardown=e,t}function ps(e){tn();var t=m.f,n=!v&&(t&U)!==0&&(t&Se)===0;if(n){var r=y;(r.e??(r.e=[])).push(e)}else return rn(e)}function rn(e){return M(De|Lt,e,!1)}function hs(e){return tn(),M(Fe|Lt,e,!0)}function ws(e){de.ensure();const t=M(te|Re,e,!0);return()=>{Q(t)}}function ms(e){de.ensure();const t=M(te|Re,e,!0);return(n={})=>new Promise(r=>{n.outro?_r(t,()=>{Q(t),r(void 0)}):(Q(t),r(void 0))})}function ys(e){return M(De,e,!1)}function or(e){return M(ut|Re,e,!0)}function gs(e,t=0){return M(Fe|t,e,!0)}function Es(e,t=[],n=[],r=[]){Xn(r,t,n,s=>{M(Fe,()=>e(...s.map(Oe)),!0)})}function bs(e,t=0){var n=M(K|t,e,!0);return n}function Ts(e,t=0){var n=M(ot|t,e,!0);return n}function As(e){return M(U|Re,e,!0)}function sn(e){var t=e.teardown;if(t!==null){const n=we,r=v;kt(!0),ee(null);try{t.call(null)}finally{kt(n),ee(r)}}}function yt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&mt(()=>{s.abort(fe)});var r=n.next;(n.f&te)!==0?n.parent=null:Q(n,t),n=r}}function ur(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&Q(t),t=n}}function Q(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(cr(e.nodes.start,e.nodes.end),n=!0),yt(e,t&&!n),Pe(e,0),g(e,X);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();sn(e);var s=e.parent;s!==null&&s.first!==null&&fn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function cr(e,t){for(;e!==null;){var n=e===t?null:ne(e);e.remove(),e=n}}function fn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function _r(e,t,n=!0){var r=[];an(e,r,!0);var s=()=>{n&&Q(e),t&&t()},f=r.length;if(f>0){var i=()=>--f||s();for(var l of r)l.out(i)}else s()}function an(e,t,n){if((e.f&H)===0){e.f^=H;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,i=(s.f&Ue)!==0||(s.f&U)!==0&&(e.f&K)!==0;an(s,t,i?n:!1),s=f}}}function xs(e){ln(e,!0)}function ln(e,t){if((e.f&H)!==0){e.f^=H,(e.f&b)===0&&(g(e,R),$(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ue)!==0||(n.f&U)!==0;ln(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const i of f)(i.is_global||t)&&i.in()}}function Ss(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:ne(n);t.append(n),n=s}}let Ve=!1,we=!1;function kt(e){we=e}let v=null,j=!1;function ee(e){v=e}let m=null;function Ae(e){m=e}let I=null;function on(e){v!==null&&(I===null?I=[e]:I.push(e))}let O=null,k=0,D=null;function vr(e){D=e}let un=1,ae=0,ce=ae;function Ct(e){ce=e}function cn(){return++un}function Ye(e){var t=e.f;if((t&R)!==0)return!0;if(t&x&&(e.f&=~_e),(t&q)!==0){for(var n=e.deps,r=n.length,s=0;se.wv)return!0}(t&P)!==0&&A===null&&g(e,b)}return!1}function _n(e,t,n=!0){var r=e.reactions;if(r!==null&&!(I!==null&&Te.call(I,e)))for(var s=0;s{e.ac.abort(fe)}),e.ac=null);try{e.f|=et;var u=e.fn,_=u();e.f|=Se;var c=e.deps,E=h==null?void 0:h.is_fork;if(O!==null){var w;if(E||Pe(e,k),c!==null&&k>0)for(c.length=k+O.length,w=0;we});function pr(e){return(Qe==null?void 0:Qe.createHTML(e))??e}function hn(e,t=!1){var n=fr("template");return e=e.replaceAll("",""),n.innerHTML=t?pr(e):e,n.content}function G(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Cs(e,t){var n=(t&Fn)!==0,r=(t&Ln)!==0,s,f=!e.startsWith("");return()=>{if(C)return G(d,null),d;s===void 0&&(s=hn(f?e:""+e,!0),n||(s=he(s)));var i=r||Jt?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=he(i),a=i.lastChild;G(l,a)}else G(i,i);return i}}function hr(e,t,n="svg"){var r=!e.startsWith(""),s=`<${n}>${r?e:""+e}`,f;return()=>{if(C)return G(d,null),d;if(!f){var i=hn(s,!0),l=he(i);f=he(l)}var a=f.cloneNode(!0);return G(a,a),a}}function Ds(e,t){return hr(e,t,"svg")}function Ps(e=""){if(!C){var t=pe(e+"");return G(t,t),t}var n=d;return n.nodeType!==Le?(n.before(n=pe()),ve(n)):We(n),G(n,n),n}function Is(){if(C)return G(d,null),d;var e=document.createDocumentFragment(),t=document.createComment(""),n=pe();return e.append(t,n),G(t,n),e}function Ms(e,t){if(C){var n=m;((n.f&Se)===0||n.nodes.end===null)&&(n.nodes.end=d),jt();return}e!==null&&e.before(t)}function Fs(){var e,t;if(C&&d&&d.nodeType===ct&&((e=d.textContent)!=null&&e.startsWith("$"))){const n=d.textContent.substring(1);return jt(),n}return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),`c${window.__svelte.uid++}`}export{ct as $,ns as A,de as B,us as C,zr as D,Ps as E,se as F,rs as G,Yn as H,W as I,d as J,Or as K,Ue as L,fr as M,Vr as N,G as O,he as P,pe as Q,m as R,lr as S,An as T,T as U,yr as V,ee as W,Ae as X,v as Y,mt as Z,Ft as _,Ms as a,Qr as a$,ne as a0,ys as a1,sr as a2,h as a3,xs as a4,Q as a5,_r as a6,As as a7,Ss as a8,_s as a9,nn as aA,Je as aB,Sn as aC,Kn as aD,Be as aE,$n as aF,g as aG,R as aH,$ as aI,q as aJ,$e as aK,Pr as aL,Re as aM,$r as aN,as as aO,_t as aP,Cr as aQ,cs as aR,ms as aS,mr as aT,Hn as aU,vt as aV,Rn as aW,Rs as aX,ts as aY,Jr as aZ,es as a_,Xr as aa,jn as ab,gs as ac,Os as ad,ue as ae,ke as af,Dr as ag,Yr as ah,Ne as ai,we as aj,X as ak,Hr as al,Ge as am,jr as an,Lr as ao,pt as ap,qr as aq,xr as ar,gr as as,y as at,hs as au,ps as av,xn as aw,br as ax,ks as ay,Es as az,Cs as b,Ns as b0,Ts as b1,yn as b2,Br as b3,is as b4,Xn as b5,Ur as b6,ir as b7,Sr as b8,Nr as b9,vs as ba,qn as bb,It as bc,En as bd,Vn as be,ds as bf,xt as bg,Fs as bh,kr as bi,Mr as bj,Ir as bk,Fr as bl,Ar as bm,H as bn,U as bo,ce as bp,ws as bq,Ds as br,Tr as bs,Is as c,Qn as d,Zr as e,os as f,Oe as g,ls as h,C as i,jt as j,je as k,bs as l,Er as m,Wr as n,Gr as o,at as p,tt as q,Kr as r,ve as s,ft as t,ss as u,Ce as v,zn as w,wt as x,fs as y,Zn as z}; diff --git a/build/client/_app/immutable/chunks/Dt2zEVER.js b/.svelte-kit/output/client/_app/immutable/chunks/agKGoZF1.js similarity index 78% rename from build/client/_app/immutable/chunks/Dt2zEVER.js rename to .svelte-kit/output/client/_app/immutable/chunks/agKGoZF1.js index d6078c73..a8f5ce05 100644 --- a/build/client/_app/immutable/chunks/Dt2zEVER.js +++ b/.svelte-kit/output/client/_app/immutable/chunks/agKGoZF1.js @@ -1 +1 @@ -import{T as k,V as b,W as E,X as S,Y as m,q as L,Z as V}from"./MIlO0V30.js";function B(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const A=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function D(t){return A.includes(t)}const x={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function R(t){return t=t.toLowerCase(),x[t]??t}const I=["touchstart","touchmove"];function j(t){return I.includes(t)}const N=["textarea","script","style","title"];function C(t){return N.includes(t)}const i=Symbol("events"),P=new Set,W=new Set;function M(t,e,r,u={}){function o(a){if(u.capture||O.call(e,a),!a.cancelBubble)return V(()=>r==null?void 0:r.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?L(()=>{e.addEventListener(t,o,u)}):e.addEventListener(t,o,u),o}function X(t,e,r,u={}){var o=M(e,t,r,u);return()=>{t.removeEventListener(e,o,u)}}function z(t,e,r){(e[i]??(e[i]={}))[t]=r}function F(t){for(var e=0;e{throw n});throw c}}finally{t[i]=e,delete t.currentTarget,b(y),E(T)}}}export{P as a,j as b,B as c,z as d,F as e,M as f,D as g,O as h,C as i,R as n,X as o,W as r}; +import{V as S,W as b,X as E,Y as T,R as m,q as L,Z as V}from"./Dexp9pM5.js";function q(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const A=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function B(t){return A.includes(t)}const x={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function D(t){return t=t.toLowerCase(),x[t]??t}const I=["touchstart","touchmove"];function j(t){return I.includes(t)}const N=["textarea","script","style","title"];function C(t){return N.includes(t)}const i=Symbol("events"),P=new Set,W=new Set;function M(t,e,r,u={}){function o(a){if(u.capture||O.call(e,a),!a.cancelBubble)return V(()=>r==null?void 0:r.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?L(()=>{e.addEventListener(t,o,u)}):e.addEventListener(t,o,u),o}function X(t,e,r,u={}){var o=M(e,t,r,u);return()=>{t.removeEventListener(e,o,u)}}function z(t,e,r){(e[i]??(e[i]={}))[t]=r}function F(t){for(var e=0;e{throw n});throw c}}finally{t[i]=e,delete t.currentTarget,b(y),E(k)}}}export{P as a,j as b,q as c,z as d,F as e,M as f,B as g,O as h,C as i,D as n,X as o,W as r}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/hqfhVoHF.js b/.svelte-kit/output/client/_app/immutable/chunks/hqfhVoHF.js new file mode 100644 index 00000000..813530af --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/hqfhVoHF.js @@ -0,0 +1 @@ +import{e}from"./Dexp9pM5.js";e(); diff --git a/.svelte-kit/output/client/_app/immutable/chunks/iABcLwh6.js b/.svelte-kit/output/client/_app/immutable/chunks/iABcLwh6.js new file mode 100644 index 00000000..be21a59d --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/iABcLwh6.js @@ -0,0 +1,133 @@ +var ha=Object.defineProperty;var fa=Object.getPrototypeOf;var pa=Reflect.get;var Ci=r=>{throw TypeError(r)};var ga=(r,e,t)=>e in r?ha(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var y=(r,e,t)=>ga(r,typeof e!="symbol"?e+"":e,t),Gr=(r,e,t)=>e.has(r)||Ci("Cannot "+t);var a=(r,e,t)=>(Gr(r,e,"read from private field"),t?t.call(r):e.get(r)),h=(r,e,t)=>e.has(r)?Ci("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),E=(r,e,t,n)=>(Gr(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),N=(r,e,t)=>(Gr(r,e,"access private method"),t);var Ti=(r,e,t)=>pa(fa(r),t,e);import"./Bzak7iHL.js";import{i as mt,j as Zi,k as ba,l as $i,g as u,aa as va,H as ma,n as Oi,s as _i,o as Hr,J as Gn,$ as ya,aU as wa,p as xi,a3 as Sa,a7 as $r,bi as Ca,a9 as Ta,d as Oa,b2 as _a,aT as xs,bj as xa,x as es,bk as Ea,bl as Aa,y as Ia,Q as Ei,bm as Je,a4 as eo,a6 as to,bn as Jr,bo as Pa,aR as ka,a5 as Ra,a0 as Na,I as U,ai as no,F as T,bp as Ai,aB as Mt,a_ as Fa,aZ as Ii,a$ as Ma,au as La,av as Ne,ad as Da,aX as Ua,u as A,bh as jn,A as G,c as q,f as L,a as O,G as H,h as I,T as $,r as P,b as J,aY as ja,bq as ro,C as F,br as qa,bs as Ba,D as te,E as pe,az as me}from"./Dexp9pM5.js";import{c as Ye}from"./25AjRaeI.js";import{p as _,r as ae,s as he,b as so}from"./jOLfEXYH.js";import{s as V,a as Qe,c as qn,r as Yr,d as Pi,f as ki,e as Ka,g as Hn}from"./BKSreT2u.js";import{i as Wa,B as za,b as Va,g as x,j as Ga,t as Ha,k as Ja,l as Ya,n as Er,c as $e,o as Es,p as kt,q as io,h as Bn,m as Te,r as yt,u as oo,s as Xa,v as Qa,L as ye,I as vt,a as Za,e as $a}from"./61AlszRR.js";import{B as ec,i as se,_ as tc}from"./CRDN6Mh7.js";import{c as nc,m as rc,u as sc,s as tt}from"./DZmckTjd.js";import{o as Q}from"./agKGoZF1.js";import{B as Xr}from"./B12dZE2q.js";import{e as ic}from"./BC20z61P.js";const oc=Symbol("NaN");function ac(r,e,t){mt&&Zi();var n=new ec(r),s=!ba();$i(()=>{var i=e();i!==i&&(i=oc),s&&i!==null&&typeof i=="object"&&(i={}),n.ensure(i,t)})}function qt(r,e){return e}function cc(r,e,t){for(var n=[],s=e.length,i,o=e.length,c=0;c{if(i){if(i.pending.delete(f),i.done.add(f),i.pending.size===0){var v=r.outrogroups;ts(xs(i.done)),v.delete(i),v.size===0&&(r.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=n.length===0&&t!==null;if(l){var d=t,b=d.parentNode;ka(b),b.append(d),r.items.clear()}ts(e,!l)}else i={pending:new Set(e),done:new Set},(r.outrogroups??(r.outrogroups=new Set)).add(i)}function ts(r,e=!0){for(var t=0;t{var S=t();return _a(S)?S:S==null?[]:xs(S)}),b,f=!0;function v(){p.fallback=l,lc(p,b,o,e,n),l!==null&&(b.length===0?(l.f&Je)===0?eo(l):(l.f^=Je,Kt(l,null,o)):to(l,()=>{l=null}))}var m=$i(()=>{b=u(d);var S=b.length;let B=!1;if(mt){var M=va(o)===ma;M!==(S===0)&&(o=Oi(),_i(o),Hr(!1),B=!0)}for(var R=new Set,D=Sa,k=Ta(),z=0;zi(o)):(l=$r(()=>i(Ri??(Ri=Ei()))),l.f|=Je)),S>R.size&&Ca(),mt&&S>0&&_i(Oi()),!f)if(k){for(const[ue,fe]of c)R.has(ue)||D.skip_effect(fe.e);D.oncommit(v),D.ondiscard(()=>{})}else v();B&&Hr(!0),u(d)}),p={effect:m,items:c,outrogroups:null,fallback:l};f=!1,mt&&(o=Gn)}function Lt(r){for(;r!==null&&(r.f&Pa)===0;)r=r.next;return r}function lc(r,e,t,n,s){var K;var i=e.length,o=r.items,c=Lt(r.effect.first),l,d=null,b=[],f=[],v,m,p,S;for(S=0;S0){var W=null;cc(r,z,W)}}}function uc(r,e,t,n,s,i,o,c){var l=(o&Ea)!==0?(o&Aa)===0?Ia(t,!1,!1):es(t):null,d=(o&xa)!==0?es(s):null;return{v:l,i:d,e:$r(()=>(i(e,l??t,d??s,c),()=>{r.delete(n)}))}}function Kt(r,e,t){if(r.nodes)for(var n=r.nodes.start,s=r.nodes.end,i=e&&(e.f&Je)===0?e.nodes.start:t;n!==null;){var o=Na(n);if(i.before(n),n===s)return;n=o}}function Be(r,e,t){e===null?r.effect.first=t:e.next=t,t===null?r.effect.last=e:t.prev=e}function pt(r){let e=U(no(r));return{[za]:!0,[Wa]:!0,get current(){return u(e)},set current(t){T(e,t,!0)}}}pt.from=Va;pt.with=x;pt.flatten=Ga;pt.readonly=Ha;pt.isBox=Ja;pt.isWritableBox=Ya;const dc=typeof window<"u"?window:void 0;function hc(r){let e=r.activeElement;for(;e!=null&&e.shadowRoot;){const t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}var we,Se,Oe,cr,ge,Wt,Qn;const Ds=class Ds extends Map{constructor(t){super();h(this,ge);h(this,we,new Map);h(this,Se,U(0));h(this,Oe,U(0));h(this,cr,Ai||-1);if(t){for(var[n,s]of t)super.set(n,s);a(this,Oe).v=super.size}}has(t){var n=a(this,we),s=n.get(t);if(s===void 0){var i=super.get(t);if(i!==void 0)s=N(this,ge,Wt).call(this,0),n.set(t,s);else return u(a(this,Se)),!1}return u(s),!0}forEach(t,n){N(this,ge,Qn).call(this),super.forEach(t,n)}get(t){var n=a(this,we),s=n.get(t);if(s===void 0){var i=super.get(t);if(i!==void 0)s=N(this,ge,Wt).call(this,0),n.set(t,s);else{u(a(this,Se));return}}return u(s),super.get(t)}set(t,n){var f;var s=a(this,we),i=s.get(t),o=super.get(t),c=super.set(t,n),l=a(this,Se);if(i===void 0)i=N(this,ge,Wt).call(this,0),s.set(t,i),T(a(this,Oe),super.size),Mt(l);else if(o!==n){Mt(i);var d=l.reactions===null?null:new Set(l.reactions),b=d===null||!((f=i.reactions)!=null&&f.every(v=>d.has(v)));b&&Mt(l)}return c}delete(t){var n=a(this,we),s=n.get(t),i=super.delete(t);return s!==void 0&&(n.delete(t),T(a(this,Oe),super.size),T(s,-1),Mt(a(this,Se))),i}clear(){if(super.size!==0){super.clear();var t=a(this,we);T(a(this,Oe),0);for(var n of t.values())T(n,-1);Mt(a(this,Se)),t.clear()}}keys(){return u(a(this,Se)),super.keys()}values(){return N(this,ge,Qn).call(this),super.values()}entries(){return N(this,ge,Qn).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return u(a(this,Oe)),super.size}};we=new WeakMap,Se=new WeakMap,Oe=new WeakMap,cr=new WeakMap,ge=new WeakSet,Wt=function(t){return Ai===a(this,cr)?U(t):es(t)},Qn=function(){u(a(this,Se));var t=a(this,we);if(a(this,Oe).v!==t.size){for(var n of Ti(Ds.prototype,this,"keys").call(this))if(!t.has(n)){var s=N(this,ge,Wt).call(this,0);t.set(n,s)}}for([,s]of a(this,we))u(s)};let ns=Ds;var St,Gt;class fc{constructor(e={}){h(this,St);h(this,Gt);const{window:t=dc,document:n=t==null?void 0:t.document}=e;t!==void 0&&(E(this,St,n),E(this,Gt,nc(s=>{const i=Q(t,"focusin",s),o=Q(t,"focusout",s);return()=>{i(),o()}})))}get current(){var e;return(e=a(this,Gt))==null||e.call(this),a(this,St)?hc(a(this,St)):null}}St=new WeakMap,Gt=new WeakMap;new fc;var Ht,_e;class Kn{constructor(e){h(this,Ht);h(this,_e);E(this,Ht,e),E(this,_e,Symbol(e))}get key(){return a(this,_e)}exists(){return Fa(a(this,_e))}get(){const e=Ii(a(this,_e));if(e===void 0)throw new Error(`Context "${a(this,Ht)}" not found`);return e}getOr(e){const t=Ii(a(this,_e));return t===void 0?e:t}set(e){return Ma(a(this,_e),e)}}Ht=new WeakMap,_e=new WeakMap;function pc(r,e){switch(r){case"post":Ne(e);break;case"pre":La(e);break}}function ao(r,e,t,n={}){const{lazy:s=!1}=n;let i=!s,o=Array.isArray(r)?[]:void 0;pc(e,()=>{const c=Array.isArray(r)?r.map(d=>d()):r();if(!i){i=!0,o=c;return}const l=Da(()=>t(c,o));return o=c,l})}function oe(r,e,t){ao(r,"post",e,t)}function gc(r,e,t){ao(r,"pre",e,t)}oe.pre=gc;function Nt(r){Ne(()=>()=>{r()})}function bc(r,e){return setTimeout(e,r)}function ke(r){Ua().then(r)}const vc=1,mc=9,yc=11;function rs(r){return Er(r)&&r.nodeType===vc&&typeof r.nodeName=="string"}function co(r){return Er(r)&&r.nodeType===mc}function wc(r){var e;return Er(r)&&((e=r.constructor)==null?void 0:e.name)==="VisualViewport"}function Sc(r){return Er(r)&&r.nodeType!==void 0}function lo(r){return Sc(r)&&r.nodeType===yc&&"host"in r}function Cc(r,e){var n;if(!r||!e||!rs(r)||!rs(e))return!1;const t=(n=e.getRootNode)==null?void 0:n.call(e);if(r===e||r.contains(e))return!0;if(t&&lo(t)){let s=e;for(;s;){if(r===s)return!0;s=s.parentNode||s.host}}return!1}function Wn(r){return co(r)?r:wc(r)?r.document:(r==null?void 0:r.ownerDocument)??document}function uo(r){var e;return lo(r)?uo(r.host):co(r)?r.defaultView??window:rs(r)?((e=r.ownerDocument)==null?void 0:e.defaultView)??window:window}function Tc(r){let e=r.activeElement;for(;e!=null&&e.shadowRoot;){const t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}var Jt;class As{constructor(e){y(this,"element");h(this,Jt,A(()=>this.element.current?this.element.current.getRootNode()??document:document));y(this,"getDocument",()=>Wn(this.root));y(this,"getWindow",()=>this.getDocument().defaultView??window);y(this,"getActiveElement",()=>Tc(this.root));y(this,"isActiveElement",e=>e===this.getActiveElement());y(this,"querySelector",e=>this.root?this.root.querySelector(e):null);y(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);y(this,"setTimeout",(e,t)=>this.getWindow().setTimeout(e,t));y(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=x(e):this.element=e}get root(){return u(a(this,Jt))}set root(e){T(a(this,Jt),e)}getElementById(e){return this.root.getElementById(e)}}Jt=new WeakMap;const Vt="ArrowDown",Is="ArrowLeft",Ps="ArrowRight",nr="ArrowUp",ho="End",ks="Enter",Oc="Escape",fo="Home",_c="PageDown",xc="PageUp",Ar=" ",Ec="Tab";function Ac(r){return window.getComputedStyle(r).getPropertyValue("direction")}function Ic(r="ltr",e="horizontal"){return{horizontal:r==="rtl"?Is:Ps,vertical:Vt}[e]}function Pc(r="ltr",e="horizontal"){return{horizontal:r==="rtl"?Ps:Is,vertical:nr}[e]}function kc(r="ltr",e="horizontal"){return["ltr","rtl"].includes(r)||(r="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:Ic(r,e),prevKey:Pc(r,e)}}const po=typeof document<"u",Ni=Rc();function Rc(){var r,e;return po&&((r=window==null?void 0:window.navigator)==null?void 0:r.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Fe(r){return r instanceof HTMLElement}function ss(r){return r instanceof Element}function go(r){return r instanceof Element||r instanceof SVGElement}function rd(r){return r!==null}function Nc(r){return r instanceof HTMLInputElement&&"select"in r}var ne,xe;class Fc{constructor(e){h(this,ne);h(this,xe,pt(null));E(this,ne,e)}getCandidateNodes(){return a(this,ne).rootNode.current?a(this,ne).candidateSelector?Array.from(a(this,ne).rootNode.current.querySelectorAll(a(this,ne).candidateSelector)):a(this,ne).candidateAttr?Array.from(a(this,ne).rootNode.current.querySelectorAll(`[${a(this,ne).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var t;const e=this.getCandidateNodes();e.length&&((t=e[0])==null||t.focus())}handleKeydown(e,t,n=!1){var p,S;const s=a(this,ne).rootNode.current;if(!s||!e)return;const i=this.getCandidateNodes();if(!i.length)return;const o=i.indexOf(e),c=Ac(s),{nextKey:l,prevKey:d}=kc(c,a(this,ne).orientation.current),b=a(this,ne).loop.current,f={[l]:o+1,[d]:o-1,[fo]:0,[ho]:i.length-1};if(n){const B=l===Vt?Ps:Vt,M=d===nr?Is:nr;f[B]=o+1,f[M]=o-1}let v=f[t.key];if(v===void 0)return;t.preventDefault(),v<0&&b?v=i.length-1:v===i.length&&b&&(v=0);const m=i[v];if(m)return m.focus(),a(this,xe).current=m.id,(S=(p=a(this,ne)).onCandidateFocus)==null||S.call(p,m),m}getTabIndex(e){const t=this.getCandidateNodes(),n=a(this,xe).current!==null;return e&&!n&&t[0]===e?(a(this,xe).current=e.id,0):(e==null?void 0:e.id)===a(this,xe).current?0:-1}setCurrentTabStopId(e){a(this,xe).current=e}focusCurrentTabStop(){var n;const e=a(this,xe).current;if(!e)return;const t=(n=a(this,ne).rootNode.current)==null?void 0:n.querySelector(`#${e}`);!t||!Fe(t)||t.focus()}}ne=new WeakMap,xe=new WeakMap;var Ct,rt,Re,is,Zn;class Mc{constructor(e){h(this,Re);h(this,Ct);h(this,rt,null);E(this,Ct,e),Nt(()=>N(this,Re,is).call(this))}run(e){N(this,Re,is).call(this);const t=a(this,Ct).ref.current;if(t){if(typeof t.getAnimations!="function"){N(this,Re,Zn).call(this,e);return}E(this,rt,window.requestAnimationFrame(()=>{const n=t.getAnimations();if(n.length===0){N(this,Re,Zn).call(this,e);return}Promise.allSettled(n.map(s=>s.finished)).then(()=>{N(this,Re,Zn).call(this,e)})}))}}}Ct=new WeakMap,rt=new WeakMap,Re=new WeakSet,is=function(){a(this,rt)&&(window.cancelAnimationFrame(a(this,rt)),E(this,rt,null))},Zn=function(e){const t=()=>{e()};a(this,Ct).afterTick?ke(t):t()};var Ce,Yt,Xt,st;class os{constructor(e){h(this,Ce);h(this,Yt);h(this,Xt);h(this,st,U(!1));E(this,Ce,e),T(a(this,st),e.open.current,!0),E(this,Yt,e.enabled??!0),E(this,Xt,new Mc({ref:a(this,Ce).ref,afterTick:a(this,Ce).open})),oe(()=>a(this,Ce).open.current,t=>{t&&T(a(this,st),!0),a(this,Yt)&&a(this,Xt).run(()=>{var n,s;t===a(this,Ce).open.current&&(a(this,Ce).open.current||T(a(this,st),!1),(s=(n=a(this,Ce)).onComplete)==null||s.call(n))})})}get shouldRender(){return u(a(this,st))}}Ce=new WeakMap,Yt=new WeakMap,Xt=new WeakMap,st=new WeakMap;function Y(){}const Lc=io({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),ht=new Kn("Dialog.Root | AlertDialog.Root");var Qt,Zt,$t,en,tn,nn,rn,sn,on,an,cn;const Us=class Us{constructor(e,t){y(this,"opts");h(this,Qt,U(null));h(this,Zt,U(null));h(this,$t,U(null));h(this,en,U(null));h(this,tn,U(void 0));h(this,nn,U(void 0));h(this,rn,U(void 0));h(this,sn,U(void 0));h(this,on,U(null));h(this,an,U(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>Lc.getAttr(e,this.opts.variant.current));h(this,cn,A(()=>({"data-state":Es(this.opts.open.current)})));this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new os({ref:x(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new os({ref:x(()=>this.overlayNode),open:this.opts.open,enabled:!0}),oe(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Nt(()=>{var n;this.opts.open.current&&((n=this.parent)==null||n.decrementNested())})}static create(e){const t=ht.getOr(null);return ht.set(new Us(e,t))}get triggerNode(){return u(a(this,Qt))}set triggerNode(e){T(a(this,Qt),e,!0)}get contentNode(){return u(a(this,Zt))}set contentNode(e){T(a(this,Zt),e,!0)}get overlayNode(){return u(a(this,$t))}set overlayNode(e){T(a(this,$t),e,!0)}get descriptionNode(){return u(a(this,en))}set descriptionNode(e){T(a(this,en),e,!0)}get contentId(){return u(a(this,tn))}set contentId(e){T(a(this,tn),e,!0)}get titleId(){return u(a(this,nn))}set titleId(e){T(a(this,nn),e,!0)}get triggerId(){return u(a(this,rn))}set triggerId(e){T(a(this,rn),e,!0)}get descriptionId(){return u(a(this,sn))}set descriptionId(e){T(a(this,sn),e,!0)}get cancelNode(){return u(a(this,on))}set cancelNode(e){T(a(this,on),e,!0)}get nestedOpenCount(){return u(a(this,an))}set nestedOpenCount(e){T(a(this,an),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var e;this.nestedOpenCount++,(e=this.parent)==null||e.incrementNested()}decrementNested(){var e;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(e=this.parent)==null||e.decrementNested())}get sharedProps(){return u(a(this,cn))}set sharedProps(e){T(a(this,cn),e)}};Qt=new WeakMap,Zt=new WeakMap,$t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,sn=new WeakMap,on=new WeakMap,an=new WeakMap,cn=new WeakMap;let as=Us;var ln;const js=class js{constructor(e,t){y(this,"opts");y(this,"root");y(this,"attachment");h(this,ln,A(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=t,this.attachment=$e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new js(e,ht.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Ar||e.key===ks)&&(e.preventDefault(),this.root.handleClose())}get props(){return u(a(this,ln))}set props(e){T(a(this,ln),e)}};ln=new WeakMap;let cs=js;var un;const qs=class qs{constructor(e,t){y(this,"opts");y(this,"root");y(this,"attachment");h(this,un,A(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=$e(this.opts.ref),oe.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}static create(e){return new qs(e,ht.get())}get props(){return u(a(this,un))}set props(e){T(a(this,un),e)}};un=new WeakMap;let ls=qs;var dn;const Bs=class Bs{constructor(e,t){y(this,"opts");y(this,"root");y(this,"attachment");h(this,dn,A(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=$e(this.opts.ref,n=>{this.root.descriptionNode=n}),oe.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}static create(e){return new Bs(e,ht.get())}get props(){return u(a(this,dn))}set props(e){T(a(this,dn),e)}};dn=new WeakMap;let us=Bs;var hn,fn;const Ks=class Ks{constructor(e,t){y(this,"opts");y(this,"root");y(this,"attachment");h(this,hn,A(()=>({open:this.root.opts.open.current})));h(this,fn,A(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":kt(this.root.nestedOpenCount>0),"data-nested":kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=t,this.attachment=$e(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n==null?void 0:n.id})}static create(e){return new Ks(e,ht.get())}get snippetProps(){return u(a(this,hn))}set snippetProps(e){T(a(this,hn),e)}get props(){return u(a(this,fn))}set props(e){T(a(this,fn),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};hn=new WeakMap,fn=new WeakMap;let ds=Ks;var pn,gn;const Ws=class Ws{constructor(e,t){y(this,"opts");y(this,"root");y(this,"attachment");h(this,pn,A(()=>({open:this.root.opts.open.current})));h(this,gn,A(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":kt(this.root.nestedOpenCount>0),"data-nested":kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=t,this.attachment=$e(this.opts.ref,n=>this.root.overlayNode=n)}static create(e){return new Ws(e,ht.get())}get snippetProps(){return u(a(this,pn))}set snippetProps(e){T(a(this,pn),e)}get props(){return u(a(this,gn))}set props(e){T(a(this,gn),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};pn=new WeakMap,gn=new WeakMap;let hs=Ws;var Dc=J("
");function Uc(r,e){const t=jn();G(e,!0);let n=_(e,"id",19,()=>Bn(t)),s=_(e,"ref",15,null),i=_(e,"level",3,2),o=ae(e,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const c=ls.create({id:x(()=>n()),level:x(()=>i()),ref:x(()=>s(),m=>s(m))}),l=A(()=>Te(o,c.props));var d=q(),b=L(d);{var f=m=>{var p=q(),S=L(p);V(S,()=>e.child,()=>({props:u(l)})),O(m,p)},v=m=>{var p=Dc();Qe(p,()=>({...u(l)}));var S=I(p);V(S,()=>e.children??$),P(p),O(m,p)};se(b,m=>{e.child?m(f):m(v,!1)})}O(r,d),H()}function jc(r,e){var t=q(),n=L(t);ac(n,()=>e.children,s=>{var i=q(),o=L(i);V(o,()=>e.children??$),O(s,i)}),O(r,t)}const qc=new Kn("BitsConfig");function Bc(){const r=new Kc(null,{});return qc.getOr(r).opts}class Kc{constructor(e,t){y(this,"opts");const n=Wc(e,t);this.opts={defaultPortalTo:n(s=>s.defaultPortalTo),defaultLocale:n(s=>s.defaultLocale)}}}function Wc(r,e){return t=>x(()=>{var i,o;const s=(i=t(e))==null?void 0:i.current;if(s!==void 0)return s;if(r!==null)return(o=t(r.opts))==null?void 0:o.current})}function zc(r,e){return t=>{const n=Bc();return x(()=>{const s=t();if(s!==void 0)return s;const i=r(n).current;return i!==void 0?i:e})}}const Vc=zc(r=>r.defaultPortalTo,"body");function Gc(r,e){G(e,!0);const t=Vc(()=>e.to),n=ja();let s=A(i);function i(){if(!po||e.disabled)return null;let f=null;return typeof t.current=="string"?f=document.querySelector(t.current):f=t.current,f}let o;function c(){o&&(sc(o),o=null)}oe([()=>u(s),()=>e.disabled],([f,v])=>{if(!f||v){c();return}return o=rc(jc,{target:f,props:{children:e.children},context:n}),()=>{c()}});var l=q(),d=L(l);{var b=f=>{var v=q(),m=L(v);V(m,()=>e.children??$),O(f,v)};se(d,f=>{e.disabled&&f(b)})}O(r,l),H()}class Hc{constructor(e,t={bubbles:!0,cancelable:!0}){y(this,"eventName");y(this,"options");this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){const n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){const s=i=>{t(i)};return Q(e,this.eventName,s,n)}}function Fi(r,e=500){let t=null;const n=(...s)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{r(...s)},e)};return n.destroy=()=>{t!==null&&(clearTimeout(t),t=null)},n}function bo(r,e){return r===e||r.contains(e)}function vo(r){return(r==null?void 0:r.ownerDocument)??document}function Jc(r,e){const{clientX:t,clientY:n}=r,s=e.getBoundingClientRect();return ts.right||ns.bottom}const Yc=[ks,Ar],Xc=[Vt,xc,fo],mo=[nr,_c,ho],Qc=[...Xc,...mo];function Mi(r){return r.pointerType==="mouse"}function Zc(r,{select:e=!1}={}){if(!r||!r.focus)return;const t=Wn(r);if(t.activeElement===r)return;const n=t.activeElement;r.focus({preventScroll:!0}),r!==n&&Nc(r)&&e&&r.select()}function $c(r,{select:e=!1}={},t){const n=t();for(const s of r)if(Zc(s,{select:e}),t()!==n)return!0}let Dt=U(!1);const de=class de{constructor(){Ne(()=>(de._refs===0&&(de._cleanup=ro(()=>{const e=[],t=s=>{T(Dt,!1)},n=s=>{T(Dt,!0)};return e.push(Q(document,"pointerdown",t,{capture:!0}),Q(document,"pointermove",t,{capture:!0}),Q(document,"keydown",n,{capture:!0})),yt(...e)})),de._refs++,()=>{var e;de._refs--,de._refs===0&&(T(Dt,!1),(e=de._cleanup)==null||e.call(de))}))}get current(){return u(Dt)}set current(e){T(Dt,e,!0)}};y(de,"_refs",0),y(de,"_cleanup");let fs=de;/*! +* tabbable 6.4.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var yo=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],rr=yo.join(","),wo=typeof Element>"u",ft=wo?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sr=!wo&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},ir=function(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=s===""||s==="true",o=i||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ir(e.parentNode));return o},el=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},So=function(e,t,n){if(ir(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(rr));return t&&ft.call(e,rr)&&s.unshift(e),s=s.filter(n),s},or=function(e,t,n){for(var s=[],i=Array.from(e);i.length;){var o=i.shift();if(!ir(o,!1))if(o.tagName==="SLOT"){var c=o.assignedElements(),l=c.length?c:o.children,d=or(l,!0,n);n.flatten?s.push.apply(s,d):s.push({scopeParent:o,candidates:d})}else{var b=ft.call(o,rr);b&&n.filter(o)&&(t||!e.includes(o))&&s.push(o);var f=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),v=!ir(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(f&&v){var m=or(f===!0?o.children:f.children,!0,n);n.flatten?s.push.apply(s,m):s.push({scopeParent:o,candidates:m})}else i.unshift.apply(i,o.children)}}return s},Co=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},To=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||el(e))&&!Co(e)?0:e.tabIndex},tl=function(e,t){var n=To(e);return n<0&&t&&!Co(e)?0:n},nl=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Oo=function(e){return e.tagName==="INPUT"},rl=function(e){return Oo(e)&&e.type==="hidden"},sl=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},il=function(e,t){for(var n=0;nsummary:first-of-type"),c=o?e.parentElement:e;if(ft.call(c,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof s=="function"){for(var l=e;e;){var d=e.parentElement,b=sr(e);if(d&&!d.shadowRoot&&s(d)===!0)return Li(e);e.assignedSlot?e=e.assignedSlot:!d&&b!==e.ownerDocument?e=b.host:e=d}e=l}if(ll(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Li(e);return!1},dl=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},_o=function(e){var t=[],n=[];return e.forEach(function(s,i){var o=!!s.scopeParent,c=o?s.scopeParent:s,l=tl(c,o),d=o?_o(s.candidates):c;l===0?o?t.push.apply(t,d):t.push(c):n.push({documentOrder:i,tabIndex:l,item:s,isScope:o,content:d})}),n.sort(nl).reduce(function(s,i){return i.isScope?s.push.apply(s,i.content):s.push(i.content),s},[]).concat(t)},xo=function(e,t){t=t||{};var n;return t.getShadowRoot?n=or([e],t.includeContainer,{filter:ps.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:hl}):n=So(e,t.includeContainer,ps.bind(null,t)),_o(n)},Eo=function(e,t){t=t||{};var n;return t.getShadowRoot?n=or([e],t.includeContainer,{filter:ar.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=So(e,t.includeContainer,ar.bind(null,t)),n},Rs=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ft.call(e,rr)===!1?!1:ps(t,e)},fl=yo.concat("iframe:not([inert]):not([inert] *)").join(","),Ao=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ft.call(e,fl)===!1?!1:ar(t,e)};function zt(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function pl(r,e){if(!Rs(r,zt()))return gl(r,e);const t=Wn(r),n=xo(t.body,zt());e==="prev"&&n.reverse();const s=n.indexOf(r);return s===-1?t.body:n.slice(s+1)[0]}function gl(r,e){const t=Wn(r);if(!Ao(r,zt()))return t.body;const n=Eo(t.body,zt());e==="prev"&&n.reverse();const s=n.indexOf(r);return s===-1?t.body:n.slice(s+1).find(o=>Rs(o,zt()))??t.body}function Io(r,e,t){const n=e.toLowerCase();if(n.endsWith(" ")){const f=n.slice(0,-1);if(r.filter(S=>S.toLowerCase().startsWith(f)).length<=1)return Io(r,f,t);const m=t==null?void 0:t.toLowerCase();if(m&&m.startsWith(f)&&m.charAt(f.length)===" "&&e.trim()===f)return t;const p=r.filter(S=>S.toLowerCase().startsWith(n));if(p.length>0){const S=t?r.indexOf(t):-1;return Di(p,Math.max(S,0)).find(R=>R!==t)||t}}const i=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,o=i.toLowerCase(),c=t?r.indexOf(t):-1;let l=Di(r,Math.max(c,0));i.length===1&&(l=l.filter(f=>f!==t));const b=l.find(f=>f==null?void 0:f.toLowerCase().startsWith(o));return b!==t?b:void 0}function Di(r,e){return r.map((t,n)=>r[(e+n)%r.length])}const bl={afterMs:1e4,onChange:Y};function Po(r,e){const{afterMs:t,onChange:n,getWindow:s}={...bl,...e};let i=null,o=U(no(r));function c(){return s().setTimeout(()=>{T(o,r,!0),n==null||n(r)},t)}return Ne(()=>()=>{i&&s().clearTimeout(i)}),x(()=>u(o),l=>{T(o,l,!0),n==null||n(l),i&&s().clearTimeout(i),i=c()})}var Ee,Ae,lr,ur;class vl{constructor(e){h(this,Ee);h(this,Ae);h(this,lr,A(()=>a(this,Ee).onMatch?a(this,Ee).onMatch:e=>e.focus()));h(this,ur,A(()=>a(this,Ee).getCurrentItem?a(this,Ee).getCurrentItem:a(this,Ee).getActiveElement));E(this,Ee,e),E(this,Ae,Po("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,t){var l,d;if(!t.length)return;a(this,Ae).current=a(this,Ae).current+e;const n=u(a(this,ur))(),s=((d=(l=t.find(b=>b===n))==null?void 0:l.textContent)==null?void 0:d.trim())??"",i=t.map(b=>{var f;return((f=b.textContent)==null?void 0:f.trim())??""}),o=Io(i,a(this,Ae).current,s),c=t.find(b=>{var f;return((f=b.textContent)==null?void 0:f.trim())===o});return c&&u(a(this,lr))(c),c}resetTypeahead(){a(this,Ae).current=""}get search(){return a(this,Ae).current}}Ee=new WeakMap,Ae=new WeakMap,lr=new WeakMap,ur=new WeakMap;var it,bn,Tt,We,Ze,gs,bs;class ml{constructor(e){h(this,Ze);h(this,it);h(this,bn);h(this,Tt);h(this,We,U(null));E(this,it,e),E(this,bn,A(()=>a(this,it).enabled())),E(this,Tt,Po(!1,{afterMs:e.transitTimeout??300,onChange:t=>{var n,s;u(a(this,bn))&&((s=(n=a(this,it)).setIsPointerInTransit)==null||s.call(n,t))},getWindow:()=>uo(a(this,it).triggerNode())})),oe([e.triggerNode,e.contentNode,e.enabled],([t,n,s])=>{if(!t||!n||!s)return;const i=c=>{N(this,Ze,bs).call(this,c,n)},o=c=>{N(this,Ze,bs).call(this,c,t)};return yt(Q(t,"pointerleave",i),Q(n,"pointerleave",o))}),oe(()=>u(a(this,We)),()=>{const t=s=>{var d,b;if(!u(a(this,We)))return;const i=s.target;if(!ss(i))return;const o={x:s.clientX,y:s.clientY},c=((d=e.triggerNode())==null?void 0:d.contains(i))||((b=e.contentNode())==null?void 0:b.contains(i)),l=!Cl(o,u(a(this,We)));c?N(this,Ze,gs).call(this):l&&(N(this,Ze,gs).call(this),e.onPointerExit())},n=Wn(e.triggerNode()??e.contentNode());if(n)return Q(n,"pointermove",t)})}}it=new WeakMap,bn=new WeakMap,Tt=new WeakMap,We=new WeakMap,Ze=new WeakSet,gs=function(){T(a(this,We),null),a(this,Tt).current=!1},bs=function(e,t){const n=e.currentTarget;if(!Fe(n))return;const s={x:e.clientX,y:e.clientY},i=yl(s,n.getBoundingClientRect()),o=wl(s,i),c=Sl(t.getBoundingClientRect()),l=Tl([...o,...c]);T(a(this,We),l,!0),a(this,Tt).current=!0};function yl(r,e){const t=Math.abs(e.top-r.y),n=Math.abs(e.bottom-r.y),s=Math.abs(e.right-r.x),i=Math.abs(e.left-r.x);switch(Math.min(t,n,s,i)){case i:return"left";case s:return"right";case t:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function wl(r,e,t=5){const n=t*1.5;switch(e){case"top":return[{x:r.x-t,y:r.y+t},{x:r.x,y:r.y-n},{x:r.x+t,y:r.y+t}];case"bottom":return[{x:r.x-t,y:r.y-t},{x:r.x,y:r.y+n},{x:r.x+t,y:r.y-t}];case"left":return[{x:r.x+t,y:r.y-t},{x:r.x-n,y:r.y},{x:r.x+t,y:r.y+t}];case"right":return[{x:r.x-t,y:r.y-t},{x:r.x+n,y:r.y},{x:r.x-t,y:r.y+t}]}}function Sl(r){const{top:e,right:t,bottom:n,left:s}=r;return[{x:s,y:e},{x:t,y:e},{x:t,y:n},{x:s,y:n}]}function Cl(r,e){const{x:t,y:n}=r;let s=!1;for(let i=0,o=e.length-1;in!=b>n&&t<(d-c)*(n-l)/(b-l)+c&&(s=!s)}return s}function Tl(r){const e=r.slice();return e.sort((t,n)=>t.xn.x?1:t.yn.y?1:0),Ol(e)}function Ol(r){if(r.length<=1)return r.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const t=[];for(let n=r.length-1;n>=0;n--){const s=r[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}const _l="data-context-menu-trigger",xl="data-context-menu-content",El=new Kn("Menu.Root"),Ns=new Kn("Menu.Root | Menu.Sub"),ko=new Kn("Menu.Content"),Al=new Hc("bitsmenuopen",{bubbles:!1,cancelable:!0}),Il=io({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var vn,mn;const zs=class zs{constructor(e){y(this,"opts");y(this,"isUsingKeyboard",new fs);h(this,vn,U(!1));h(this,mn,U(!1));y(this,"getBitsAttr",e=>Il.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const t=new zs(e);return El.set(t)}get ignoreCloseAutoFocus(){return u(a(this,vn))}set ignoreCloseAutoFocus(e){T(a(this,vn),e,!0)}get isPointerInTransit(){return u(a(this,mn))}set isPointerInTransit(e){T(a(this,mn),e,!0)}};vn=new WeakMap,mn=new WeakMap;let Ui=zs;var yn,wn;const Vs=class Vs{constructor(e,t,n){y(this,"opts");y(this,"root");y(this,"parentMenu");y(this,"contentId",x(()=>""));h(this,yn,U(null));y(this,"contentPresence");h(this,wn,U(null));this.opts=e,this.root=t,this.parentMenu=n,this.contentPresence=new os({ref:x(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),n&&oe(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}static create(e,t){return Ns.set(new Vs(e,t,null))}get contentNode(){return u(a(this,yn))}set contentNode(e){T(a(this,yn),e,!0)}get triggerNode(){return u(a(this,wn))}set triggerNode(e){T(a(this,wn),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};yn=new WeakMap,wn=new WeakMap;let ji=Vs;var Sn,Cn,Tn,On,_n,Xe,Ro,$n,xn,En;const Gs=class Gs{constructor(e,t){h(this,Xe);y(this,"opts");y(this,"parentMenu");y(this,"rovingFocusGroup");y(this,"domContext");y(this,"attachment");h(this,Sn,U(""));h(this,Cn,0);h(this,Tn);h(this,On,U(!1));h(this,_n);y(this,"onCloseAutoFocus",e=>{var t,n;(n=(t=this.opts.onCloseAutoFocus).current)==null||n.call(t,e),!(e.defaultPrevented||a(this,_n))&&this.parentMenu.triggerNode&&Rs(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())});h(this,xn,A(()=>({open:this.parentMenu.opts.open.current})));h(this,En,A(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Es(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));y(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=t,this.domContext=new As(e.ref),this.attachment=$e(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),t.contentId=e.id,E(this,_n,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ml({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>{var n;return this.parentMenu.opts.open.current&&!!((n=this.parentMenu.triggerNode)!=null&&n.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))},onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),E(this,Tn,new vl({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new Fc({rootNode:x(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:x(()=>"vertical")}),oe(()=>this.parentMenu.contentNode,n=>{if(!n)return;const s=()=>{ke(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Al.listen(n,s)}),Ne(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(a(this,Cn))})}static create(e){return ko.set(new Gs(e,Ns.get()))}get search(){return u(a(this,Sn))}set search(e){T(a(this,Sn),e,!0)}get mounted(){return u(a(this,On))}set mounted(e){T(a(this,On),e,!0)}handleTabKeyDown(e){let t=this.parentMenu;for(;t.parentMenu!==null;)t=t.parentMenu;if(!t.triggerNode)return;e.preventDefault();const n=pl(t.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,t.onClose(),ke(()=>{n.focus(),ke(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){var d,b;if(e.defaultPrevented)return;if(e.key===Ec){this.handleTabKeyDown(e);return}const t=e.target,n=e.currentTarget;if(!Fe(t)||!Fe(n))return;const s=((d=t.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`))==null?void 0:d.id)===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,o=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(t,e)||e.code==="Space")return;const l=N(this,Xe,Ro).call(this);s&&!i&&o&&a(this,Tn).call(this,e.key,l),((b=e.target)==null?void 0:b.id)===this.parentMenu.contentId.current&&Qc.includes(e.key)&&(e.preventDefault(),mo.includes(e.key)&&l.reverse(),$c(l,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){var t,n;ss(e.currentTarget)&&ss(e.target)&&((n=(t=e.currentTarget).contains)!=null&&n.call(t,e.target)||(this.domContext.getWindow().clearTimeout(a(this,Cn)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&ke(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return N(this,Xe,$n).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||N(this,Xe,$n).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const t=this.parentMenu.contentNode;t==null||t.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!N(this,Xe,$n).call(this)}handleInteractOutside(e){var n;if(!go(e.target))return;const t=(n=this.parentMenu.triggerNode)==null?void 0:n.id;if(e.target.id===t){e.preventDefault();return}e.target.closest(`#${t}`)&&e.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return u(a(this,xn))}set snippetProps(e){T(a(this,xn),e)}get props(){return u(a(this,En))}set props(e){T(a(this,En),e)}};Sn=new WeakMap,Cn=new WeakMap,Tn=new WeakMap,On=new WeakMap,_n=new WeakMap,Xe=new WeakSet,Ro=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},$n=function(){return this.parentMenu.root.isPointerInTransit},xn=new WeakMap,En=new WeakMap;let qi=Gs;var Ot,An;class Pl{constructor(e,t){y(this,"opts");y(this,"content");y(this,"attachment");h(this,Ot,U(!1));h(this,An,A(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":oo(this.opts.disabled.current),"data-disabled":kt(this.opts.disabled.current),"data-highlighted":u(a(this,Ot))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=t,this.attachment=$e(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&Mi(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!Fe(n))return;n.focus()}}onpointerleave(e){e.defaultPrevented||Mi(e)&&this.content.onItemLeave(e)}onfocus(e){ke(()=>{e.defaultPrevented||this.opts.disabled.current||T(a(this,Ot),!0)})}onblur(e){ke(()=>{e.defaultPrevented||T(a(this,Ot),!1)})}get props(){return u(a(this,An))}set props(e){T(a(this,An),e)}}Ot=new WeakMap,An=new WeakMap;var In,dr,No,Pn;const Hs=class Hs{constructor(e,t){h(this,dr);y(this,"opts");y(this,"item");y(this,"root");h(this,In,!1);h(this,Pn,A(()=>Te(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=t,this.root=t.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const t=new Pl(e,ko.get());return new Hs(e,t)}onkeydown(e){const t=this.item.content.search!=="";if(!(this.item.opts.disabled.current||t&&e.key===Ar)&&Yc.includes(e.key)){if(!Fe(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||N(this,dr,No).call(this)}onpointerup(e){var t;if(!e.defaultPrevented&&!a(this,In)){if(!Fe(e.currentTarget))return;(t=e.currentTarget)==null||t.click()}}onpointerdown(e){E(this,In,!0)}get props(){return u(a(this,Pn))}set props(e){T(a(this,Pn),e)}};In=new WeakMap,dr=new WeakSet,No=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},Pn=new WeakMap;let Bi=Hs;var hr,kn;const Js=class Js{constructor(e,t){y(this,"opts");y(this,"parentMenu");y(this,"attachment");y(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});y(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});y(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});y(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Ar||e.key===ks){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Vt&&(this.parentMenu.onOpen(),e.preventDefault())}});h(this,hr,A(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));h(this,kn,A(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":oo(this.parentMenu.opts.open.current),"aria-controls":u(a(this,hr)),"data-disabled":kt(this.opts.disabled.current),"data-state":Es(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=t,this.attachment=$e(this.opts.ref,n=>this.parentMenu.triggerNode=n)}static create(e){return new Js(e,Ns.get())}get props(){return u(a(this,kn))}set props(e){T(a(this,kn),e)}};hr=new WeakMap,kn=new WeakMap;let Ki=Js;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var _t,ot,ze,xt,Et,Ve,Rn,Ie,fr,Rt,Fo,pr,At,gr,br,vr,mr,Nn,Mo,yr,wr;const Ys=class Ys{constructor(e){h(this,Rt);y(this,"opts");h(this,_t);h(this,ot);h(this,ze,{pointerdown:!1});h(this,xt,!1);h(this,Et,!1);h(this,Ve);h(this,Rn);h(this,Ie,Y);h(this,fr,e=>{e.defaultPrevented||this.opts.ref.current&&ke(()=>{var t,n;!this.opts.ref.current||a(this,mr).call(this,e.target)||e.target&&!a(this,Et)&&((n=(t=a(this,Rn)).current)==null||n.call(t,e))})});h(this,pr,e=>{let t=e;t.defaultPrevented&&(t=Wi(e)),a(this,_t).current(e)});h(this,At,Fi(e=>{if(!this.opts.ref.current){a(this,Ie).call(this);return}const t=this.opts.isValidEvent.current(e,this.opts.ref.current)||Nl(e,this.opts.ref.current);if(!a(this,xt)||N(this,Rt,Mo).call(this)||!t){a(this,Ie).call(this);return}let n=e;if(n.defaultPrevented&&(n=Wi(n)),a(this,ot).current!=="close"&&a(this,ot).current!=="defer-otherwise-close"){a(this,Ie).call(this);return}e.pointerType==="touch"?(a(this,Ie).call(this),E(this,Ie,Q(a(this,Ve),"click",a(this,pr),{once:!0}))):a(this,_t).current(n)},10));h(this,gr,e=>{a(this,ze)[e.type]=!0});h(this,br,e=>{a(this,ze)[e.type]=!1});h(this,vr,()=>{this.opts.ref.current&&E(this,xt,Rl(this.opts.ref.current))});h(this,mr,e=>this.opts.ref.current?bo(this.opts.ref.current,e):!1);h(this,Nn,Fi(()=>{for(const e in a(this,ze))a(this,ze)[e]=!1;E(this,xt,!1)},20));h(this,yr,()=>{E(this,Et,!0)});h(this,wr,()=>{E(this,Et,!1)});y(this,"props",{onfocuscapture:a(this,yr),onblurcapture:a(this,wr)});this.opts=e,E(this,ot,e.interactOutsideBehavior),E(this,_t,e.onInteractOutside),E(this,Rn,e.onFocusOutside),Ne(()=>{E(this,Ve,vo(this.opts.ref.current))});let t=Y;const n=()=>{a(this,Nn).call(this),globalThis.bitsDismissableLayers.delete(this),a(this,At).destroy(),t()};oe([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return bc(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,a(this,ot)),t(),t=N(this,Rt,Fo).call(this))}),n}),Nt(()=>{a(this,Nn).destroy(),globalThis.bitsDismissableLayers.delete(this),a(this,At).destroy(),a(this,Ie).call(this),t()})}static create(e){return new Ys(e)}};_t=new WeakMap,ot=new WeakMap,ze=new WeakMap,xt=new WeakMap,Et=new WeakMap,Ve=new WeakMap,Rn=new WeakMap,Ie=new WeakMap,fr=new WeakMap,Rt=new WeakSet,Fo=function(){return yt(Q(a(this,Ve),"pointerdown",yt(a(this,gr),a(this,vr)),{capture:!0}),Q(a(this,Ve),"pointerdown",yt(a(this,br),a(this,At))),Q(a(this,Ve),"focusin",a(this,fr)))},pr=new WeakMap,At=new WeakMap,gr=new WeakMap,br=new WeakMap,vr=new WeakMap,mr=new WeakMap,Nn=new WeakMap,Mo=function(){return Object.values(a(this,ze)).some(Boolean)},yr=new WeakMap,wr=new WeakMap;let vs=Ys;function kl(r=[...globalThis.bitsDismissableLayers]){return r.findLast(([e,{current:t}])=>t==="close"||t==="ignore")}function Rl(r){const e=[...globalThis.bitsDismissableLayers],t=kl(e);if(t)return t[0].opts.ref.current===r;const[n]=e[0];return n.opts.ref.current===r}function Nl(r,e){const t=r.target;if(!go(t))return!1;const n=!!t.closest(`[${_l}]`);if("button"in r&&r.button>0&&!n)return!1;if("button"in r&&r.button===0&&n)return!0;const s=!!e.closest(`[${xl}]`);return n&&s?!1:vo(t).documentElement.contains(t)&&!bo(e,t)&&Jc(r,e)}function Wi(r){const e=r.currentTarget,t=r.target;let n;r instanceof PointerEvent?n=new PointerEvent(r.type,r):n=new PointerEvent("pointerdown",r);let s=!1;return new Proxy(n,{get:(o,c)=>c==="currentTarget"?e:c==="target"?t:c==="preventDefault"?()=>{s=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:c==="defaultPrevented"?s:c in o?o[c]:r[c]})}function Fl(r,e){G(e,!0);let t=_(e,"interactOutsideBehavior",3,"close"),n=_(e,"onInteractOutside",3,Y),s=_(e,"onFocusOutside",3,Y),i=_(e,"isValidEvent",3,()=>!1);const o=vs.create({id:x(()=>e.id),interactOutsideBehavior:x(()=>t()),onInteractOutside:x(()=>n()),enabled:x(()=>e.enabled),onFocusOutside:x(()=>s()),isValidEvent:x(()=>i()),ref:e.ref});var c=q(),l=L(c);V(l,()=>e.children??$,()=>({props:o.props})),O(r,c),H()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var Sr,Cr;const Xs=class Xs{constructor(e){y(this,"opts");y(this,"domContext");h(this,Sr,()=>Q(this.domContext.getDocument(),"keydown",a(this,Cr),{passive:!1}));h(this,Cr,e=>{if(e.key!==Oc||!Ml(this))return;const t=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(t)});this.opts=e,this.domContext=new As(this.opts.ref);let t=Y;oe(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=a(this,Sr).call(this)),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new Xs(e)}};Sr=new WeakMap,Cr=new WeakMap;let ms=Xs;function Ml(r){const e=[...globalThis.bitsEscapeLayers],t=e.findLast(([s,{current:i}])=>i==="close"||i==="ignore");if(t)return t[0]===r;const[n]=e[0];return n===r}function Ll(r,e){G(e,!0);let t=_(e,"escapeKeydownBehavior",3,"close"),n=_(e,"onEscapeKeydown",3,Y);ms.create({escapeKeydownBehavior:x(()=>t()),onEscapeKeydown:x(()=>n()),enabled:x(()=>e.enabled),ref:e.ref});var s=q(),i=L(s);V(i,()=>e.children??$),O(r,s),H()}var Pe,Fn,at;const Tr=class Tr{constructor(){h(this,Pe,Xa([]));h(this,Fn,new WeakMap);h(this,at,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Tr),this.instance}register(e){const t=this.getActive();t&&t!==e&&t.pause();const n=document.activeElement;n&&n!==document.body&&a(this,at).set(e,n),a(this,Pe).current=a(this,Pe).current.filter(s=>s!==e),a(this,Pe).current.unshift(e)}unregister(e){a(this,Pe).current=a(this,Pe).current.filter(n=>n!==e);const t=this.getActive();t&&t.resume()}getActive(){return a(this,Pe).current[0]}setFocusMemory(e,t){a(this,Fn).set(e,t)}getFocusMemory(e){return a(this,Fn).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){a(this,at).set(e,t)}getPreFocusMemory(e){return a(this,at).get(e)}clearPreFocusMemory(e){a(this,at).delete(e)}};Pe=new WeakMap,Fn=new WeakMap,at=new WeakMap,y(Tr,"instance");let ys=Tr;var Ge,re,ce,ct,He,X,Lo,Do,Uo,jo,Ss,er,Cs;const Qs=class Qs{constructor(e){h(this,X);h(this,Ge,!1);h(this,re,null);h(this,ce,ys.getInstance());h(this,ct,[]);h(this,He);E(this,He,e)}get paused(){return a(this,Ge)}pause(){E(this,Ge,!0)}resume(){E(this,Ge,!1)}mount(e){a(this,re)&&this.unmount(),E(this,re,e),a(this,ce).register(this),N(this,X,jo).call(this),N(this,X,Do).call(this)}unmount(){a(this,re)&&(N(this,X,Lo).call(this),N(this,X,Uo).call(this),a(this,ce).unregister(this),a(this,ce).clearPreFocusMemory(this),E(this,re,null))}static use(e){let t=null;return oe([()=>e.ref.current,()=>e.enabled.current],([n,s])=>{n&&s?(t||(t=new Qs(e)),t.mount(n)):t&&(t.unmount(),t=null)}),Nt(()=>{t==null||t.unmount()}),{get props(){return{tabindex:-1}}}}};Ge=new WeakMap,re=new WeakMap,ce=new WeakMap,ct=new WeakMap,He=new WeakMap,X=new WeakSet,Lo=function(){for(const e of a(this,ct))e();E(this,ct,[])},Do=function(){if(!a(this,re))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});a(this,He).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!a(this,re))return;const t=N(this,X,er).call(this);t?(t.focus(),a(this,ce).setFocusMemory(this,t)):a(this,re).focus()})},Uo=function(){var t,n;const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((n=(t=a(this,He).onCloseAutoFocus).current)==null||n.call(t,e),!e.defaultPrevented){const s=a(this,ce).getPreFocusMemory(this);if(s&&document.contains(s))try{s.focus()}catch{document.body.focus()}}},jo=function(){if(!a(this,re)||!a(this,He).trap.current)return;const e=a(this,re),t=e.ownerDocument,n=o=>{if(a(this,Ge)||!a(this,ce).isActiveScope(this))return;const c=o.target;if(!c)return;if(e.contains(c))a(this,ce).setFocusMemory(this,c);else{const d=a(this,ce).getFocusMemory(this);if(d&&e.contains(d)&&Ao(d))o.preventDefault(),d.focus();else{const b=N(this,X,er).call(this),f=N(this,X,Cs).call(this)[0];(b||f||e).focus()}}},s=o=>{if(!a(this,He).loop||a(this,Ge)||o.key!=="Tab"||!a(this,ce).isActiveScope(this))return;const c=N(this,X,Ss).call(this);if(c.length===0)return;const l=c[0],d=c[c.length-1];!o.shiftKey&&t.activeElement===d?(o.preventDefault(),l.focus()):o.shiftKey&&t.activeElement===l&&(o.preventDefault(),d.focus())};a(this,ct).push(Q(t,"focusin",n,{capture:!0}),Q(e,"keydown",s));const i=new MutationObserver(()=>{const o=a(this,ce).getFocusMemory(this);if(o&&!e.contains(o)){const c=N(this,X,er).call(this),l=N(this,X,Cs).call(this)[0],d=c||l;d?(d.focus(),a(this,ce).setFocusMemory(this,d)):e.focus()}});i.observe(e,{childList:!0,subtree:!0}),a(this,ct).push(()=>i.disconnect())},Ss=function(){return a(this,re)?xo(a(this,re),{includeContainer:!1,getShadowRoot:!0}):[]},er=function(){return N(this,X,Ss).call(this)[0]||null},Cs=function(){return a(this,re)?Eo(a(this,re),{includeContainer:!1,getShadowRoot:!0}):[]};let ws=Qs;function Dl(r,e){G(e,!0);let t=_(e,"enabled",3,!1),n=_(e,"trapFocus",3,!1),s=_(e,"loop",3,!1),i=_(e,"onCloseAutoFocus",3,Y),o=_(e,"onOpenAutoFocus",3,Y);const c=ws.use({enabled:x(()=>t()),trap:x(()=>n()),loop:s(),onCloseAutoFocus:x(()=>i()),onOpenAutoFocus:x(()=>o()),ref:e.ref});var l=q(),d=L(l);V(d,()=>e.focusScope??$,()=>({props:c.props})),O(r,l),H()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var It,Or,qo,_r,Mn;const Zs=class Zs{constructor(e){h(this,Or);y(this,"opts");y(this,"domContext");h(this,It,Y);h(this,_r,e=>{const t=this.opts.ref.current,n=e.target;!Fe(t)||!Fe(n)||!this.opts.enabled.current||!jl(this)||!Cc(t,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&E(this,It,Ul(t,this.domContext.getDocument().body)))});h(this,Mn,()=>{a(this,It).call(this),E(this,It,Y)});this.opts=e,this.domContext=new As(e.ref);let t=Y;oe(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=N(this,Or,qo).call(this)),()=>{t(),a(this,Mn).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new Zs(e)}};It=new WeakMap,Or=new WeakSet,qo=function(){return yt(Q(this.domContext.getDocument(),"pointerdown",a(this,_r)),Q(this.domContext.getDocument(),"pointerup",Qa(a(this,Mn),this.opts.onPointerUp.current)))},_r=new WeakMap,Mn=new WeakMap;let Ts=Zs;const zi=r=>r.style.userSelect||r.style.webkitUserSelect;function Ul(r,e){const t=zi(e),n=zi(r);return Jn(e,"none"),Jn(r,"text"),()=>{Jn(e,t),Jn(r,n)}}function Jn(r,e){r.style.userSelect=e,r.style.webkitUserSelect=e}function jl(r){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const t=e.at(-1);return t?t[0]===r:!1}function ql(r,e){G(e,!0);let t=_(e,"preventOverflowTextSelection",3,!0),n=_(e,"onPointerDown",3,Y),s=_(e,"onPointerUp",3,Y);Ts.create({id:x(()=>e.id),onPointerDown:x(()=>n()),onPointerUp:x(()=>s()),enabled:x(()=>e.enabled&&t()),ref:e.ref});var i=q(),o=L(i);V(o,()=>e.children??$),O(r,i),H()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Bl(r="bits"){return globalThis.bitsIdCounter.current++,`${r}-${globalThis.bitsIdCounter.current}`}var Ln,Pt,lt,ut,xr,Bo;class Kl{constructor(e){h(this,xr);h(this,Ln);h(this,Pt,0);h(this,lt,U());h(this,ut);E(this,Ln,e)}get(...e){return E(this,Pt,a(this,Pt)+1),u(a(this,lt))===void 0&&E(this,ut,ro(()=>{T(a(this,lt),a(this,Ln).call(this,...e),!0)})),Ne(()=>()=>{N(this,xr,Bo).call(this)}),u(a(this,lt))}}Ln=new WeakMap,Pt=new WeakMap,lt=new WeakMap,ut=new WeakMap,xr=new WeakSet,Bo=function(){E(this,Pt,a(this,Pt)-1),a(this,ut)&&a(this,Pt)<=0&&(a(this,ut).call(this),T(a(this,lt),void 0),E(this,ut,void 0))};const tr=new ns;let Yn=U(null),nt=null,Ut=null,jt=!1;const Vi=x(()=>{for(const r of tr.values())if(r)return!0;return!1});let Qr=null;const Wl=new Kl(()=>{function r(){document.body.setAttribute("style",u(Yn)??""),document.body.style.removeProperty("--scrollbar-width"),Ni&&(nt==null||nt()),T(Yn,null)}function e(){Ut!==null&&(window.clearTimeout(Ut),Ut=null)}function t(s,i){e(),jt=!0,Qr=Date.now();const o=Qr,c=()=>{Ut=null,Qr===o&&(Ko(tr)?jt=!1:(jt=!1,i()))},l=s===null?24:s;Ut=window.setTimeout(c,l)}function n(){u(Yn)===null&&tr.size===0&&!jt&&T(Yn,document.body.getAttribute("style"),!0)}return oe(()=>Vi.current,()=>{var b,f;if(!Vi.current)return;n(),jt=!1;const s=getComputedStyle(document.documentElement),i=getComputedStyle(document.body),o=((b=s.scrollbarGutter)==null?void 0:b.includes("stable"))||((f=i.scrollbarGutter)==null?void 0:f.includes("stable")),c=window.innerWidth-document.documentElement.clientWidth,d={padding:Number.parseInt(i.paddingRight??"0",10)+c,margin:Number.parseInt(i.marginRight??"0",10)};c>0&&!o&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${c}px`)),document.body.style.overflow="hidden",Ni&&(nt=Q(document,"touchmove",v=>{v.target===document.documentElement&&(v.touches.length>1||v.preventDefault())},{passive:!1})),ke(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Nt(()=>()=>{nt==null||nt()}),{get lockMap(){return tr},resetBodyStyle:r,scheduleCleanupIfNoNewLocks:t,cancelPendingCleanup:e,ensureInitialStyleCaptured:n}});var dt,Dn,Un,le;class zl{constructor(e,t=()=>null){h(this,dt,Bl());h(this,Dn);h(this,Un,()=>null);h(this,le);y(this,"locked");E(this,Dn,e),E(this,Un,t),E(this,le,Wl.get()),a(this,le)&&(a(this,le).cancelPendingCleanup(),a(this,le).ensureInitialStyleCaptured(),a(this,le).lockMap.set(a(this,dt),a(this,Dn)??!1),this.locked=x(()=>a(this,le).lockMap.get(a(this,dt))??!1,n=>a(this,le).lockMap.set(a(this,dt),n)),Nt(()=>{if(a(this,le).lockMap.delete(a(this,dt)),Ko(a(this,le).lockMap))return;const n=a(this,Un).call(this);a(this,le).scheduleCleanupIfNoNewLocks(n,()=>{a(this,le).resetBodyStyle()})}))}}dt=new WeakMap,Dn=new WeakMap,Un=new WeakMap,le=new WeakMap;function Ko(r){for(const[e,t]of r)if(t)return!0;return!1}function Gi(r,e){G(e,!0);let t=_(e,"preventScroll",3,!0),n=_(e,"restoreScrollDelay",3,null);t()&&new zl(t(),()=>n()),H()}var Vl=J("
");function Gl(r,e){const t=jn();G(e,!0);let n=_(e,"id",19,()=>Bn(t)),s=_(e,"forceMount",3,!1),i=_(e,"ref",15,null),o=ae(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const c=hs.create({id:x(()=>n()),ref:x(()=>i(),v=>i(v))}),l=A(()=>Te(o,c.props));var d=q(),b=L(d);{var f=v=>{var m=q(),p=L(m);{var S=M=>{var R=q(),D=L(R);{let k=A(()=>({props:Te(u(l)),...c.snippetProps}));V(D,()=>e.child,()=>u(k))}O(M,R)},B=M=>{var R=Vl();Qe(R,k=>({...k}),[()=>Te(u(l))]);var D=I(R);V(D,()=>e.children??$,()=>c.snippetProps),P(R),O(M,R)};se(p,M=>{e.child?M(S):M(B,!1)})}O(v,m)};se(b,v=>{(c.shouldRender||s())&&v(f)})}O(r,d),H()}var Hl=J("
");function Jl(r,e){const t=jn();G(e,!0);let n=_(e,"id",19,()=>Bn(t)),s=_(e,"ref",15,null),i=ae(e,["$$slots","$$events","$$legacy","id","children","child","ref"]);const o=us.create({id:x(()=>n()),ref:x(()=>s(),v=>s(v))}),c=A(()=>Te(i,o.props));var l=q(),d=L(l);{var b=v=>{var m=q(),p=L(m);V(p,()=>e.child,()=>({props:u(c)})),O(v,m)},f=v=>{var m=Hl();Qe(m,()=>({...u(c)}));var p=I(m);V(p,()=>e.children??$),P(m),O(v,m)};se(d,v=>{e.child?v(b):v(f,!1)})}O(r,l),H()}function Yl(r,e){G(e,!0);let t=_(e,"open",15,!1),n=_(e,"onOpenChange",3,Y),s=_(e,"onOpenChangeComplete",3,Y);as.create({variant:x(()=>"dialog"),open:x(()=>t(),c=>{t(c),n()(c)}),onOpenChangeComplete:x(()=>s())});var i=q(),o=L(i);V(o,()=>e.children??$),O(r,i),H()}var Xl=J("");function Ql(r,e){const t=jn();G(e,!0);let n=_(e,"id",19,()=>Bn(t)),s=_(e,"ref",15,null),i=_(e,"disabled",3,!1),o=ae(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const c=cs.create({variant:x(()=>"close"),id:x(()=>n()),ref:x(()=>s(),m=>s(m)),disabled:x(()=>!!i())}),l=A(()=>Te(o,c.props));var d=q(),b=L(d);{var f=m=>{var p=q(),S=L(p);V(S,()=>e.child,()=>({props:u(l)})),O(m,p)},v=m=>{var p=Xl();Qe(p,()=>({...u(l)}));var S=I(p);V(S,()=>e.children??$),P(p),O(m,p)};se(b,m=>{e.child?m(f):m(v,!1)})}O(r,d),H()}var Zl=J(" ",1),$l=J("
",1);function eu(r,e){const t=jn();G(e,!0);let n=_(e,"id",19,()=>Bn(t)),s=_(e,"ref",15,null),i=_(e,"forceMount",3,!1),o=_(e,"onCloseAutoFocus",3,Y),c=_(e,"onOpenAutoFocus",3,Y),l=_(e,"onEscapeKeydown",3,Y),d=_(e,"onInteractOutside",3,Y),b=_(e,"trapFocus",3,!0),f=_(e,"preventScroll",3,!0),v=_(e,"restoreScrollDelay",3,null),m=ae(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const p=ds.create({id:x(()=>n()),ref:x(()=>s(),D=>s(D))}),S=A(()=>Te(m,p.props));var B=q(),M=L(B);{var R=D=>{Dl(D,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return b()},get enabled(){return p.root.opts.open.current},get onOpenAutoFocus(){return c()},get onCloseAutoFocus(){return o()},focusScope:(z,j)=>{let W=()=>j==null?void 0:j().props;Ll(z,he(()=>u(S),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:K=>{l()(K),!K.defaultPrevented&&p.root.handleClose()},children:(K,ue)=>{Fl(K,he(()=>u(S),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},onInteractOutside:fe=>{d()(fe),!fe.defaultPrevented&&p.root.handleClose()},children:(fe,zn)=>{ql(fe,he(()=>u(S),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(Ir,Pr)=>{var Le=q(),Vn=L(Le);{var kr=be=>{var De=Zl(),et=L(De);{var Ue=ve=>{Gi(ve,{get preventScroll(){return f()},get restoreScrollDelay(){return v()}})};se(et,ve=>{p.root.opts.open.current&&ve(Ue)})}var gt=F(et,2);{let ve=A(()=>({props:Te(u(S),W()),...p.snippetProps}));V(gt,()=>e.child,()=>u(ve))}O(be,De)},Ft=be=>{var De=$l(),et=L(De);Gi(et,{get preventScroll(){return f()}});var Ue=F(et,2);Qe(Ue,ve=>({...ve}),[()=>Te(u(S),W())]);var gt=I(Ue);V(gt,()=>e.children??$),P(Ue),O(be,De)};se(Vn,be=>{e.child?be(kr):be(Ft,!1)})}O(Ir,Le)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};se(M,D=>{(p.shouldRender||i())&&D(R)})}O(r,B),H()}function sd(r,e){G(e,!0);let t=_(e,"open",15,!1),n=ae(e,["$$slots","$$events","$$legacy","open"]);var s=q(),i=L(s);Ye(i,()=>Yl,(o,c)=>{c(o,he(()=>n,{get open(){return t()},set open(l){t(l)}}))}),O(r,s),H()}function tu(r,e){let t=ae(e,["$$slots","$$events","$$legacy"]);var n=q(),s=L(n);Ye(s,()=>Gc,(i,o)=>{o(i,he(()=>t))}),O(r,n)}function id(r,e){G(e,!0);let t=_(e,"ref",15,null),n=ae(e,["$$slots","$$events","$$legacy","ref","class"]);var s=q(),i=L(s);{let o=A(()=>qn("text-lg leading-none font-semibold",e.class));Ye(i,()=>Uc,(c,l)=>{l(c,he({"data-slot":"dialog-title",get class(){return u(o)}},()=>n,{get ref(){return t()},set ref(d){t(d)}}))})}O(r,s),H()}var nu=J("
");function od(r,e){G(e,!0);let t=_(e,"ref",15,null),n=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var s=nu();Qe(s,o=>({"data-slot":"dialog-header",class:o,...n}),[()=>qn("flex flex-col gap-2 text-center sm:text-start",e.class)]);var i=I(s);V(i,()=>e.children??$),P(s),so(s,o=>t(o),()=>t()),O(r,s),H()}function ru(r,e){G(e,!0);let t=_(e,"ref",15,null),n=ae(e,["$$slots","$$events","$$legacy","ref","class"]);var s=q(),i=L(s);{let o=A(()=>qn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e.class));Ye(i,()=>Gl,(c,l)=>{l(c,he({"data-slot":"dialog-overlay",get class(){return u(o)}},()=>n,{get ref(){return t()},set ref(d){t(d)}}))})}O(r,s),H()}/** + * @license @lucide/svelte v0.561.0 - ISC + * + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The MIT License (MIT) (for portions derived from Feather) + * + * Copyright (c) 2013-2023 Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const su={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var iu=qa("");function Wo(r,e){G(e,!0);const t=_(e,"color",3,"currentColor"),n=_(e,"size",3,24),s=_(e,"strokeWidth",3,2),i=_(e,"absoluteStrokeWidth",3,!1),o=_(e,"iconNode",19,()=>[]),c=ae(e,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var l=iu();Qe(l,f=>({...su,...c,width:n(),height:n(),stroke:t(),"stroke-width":f,class:["lucide-icon lucide",e.name&&`lucide-${e.name}`,e.class]}),[()=>i()?Number(s())*24/Number(n()):s()]);var d=I(l);Bt(d,17,o,qt,(f,v)=>{var m=A(()=>Ba(u(v),2));let p=()=>u(m)[0],S=()=>u(m)[1];var B=q(),M=L(B);ic(M,p,!0,(R,D)=>{Qe(R,()=>({...S()}))}),O(f,B)});var b=F(d);V(b,()=>e.children??$),P(l),O(r,l),H()}function zo(r,e){G(e,!0);/** + * @license @lucide/svelte v0.561.0 - ISC + * + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The MIT License (MIT) (for portions derived from Feather) + * + * Copyright (c) 2013-2023 Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */let t=ae(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Wo(r,he({name:"x"},()=>t,{get iconNode(){return n},children:(s,i)=>{var o=q(),c=L(o);V(c,()=>e.children??$),O(s,o)},$$slots:{default:!0}})),H()}var ou=J(' Close',1),au=J(" ",1),cu=J(" ",1);function ad(r,e){G(e,!0);let t=_(e,"ref",15,null),n=_(e,"showCloseButton",3,!0),s=ae(e,["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]);tu(r,he(()=>e.portalProps,{children:(i,o)=>{var c=cu(),l=L(c);Ye(l,()=>ru,(b,f)=>{f(b,{})});var d=F(l,2);{let b=A(()=>qn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e.class));Ye(d,()=>eu,(f,v)=>{v(f,he({"data-slot":"dialog-content",get class(){return u(b)}},()=>s,{get ref(){return t()},set ref(m){t(m)},children:(m,p)=>{var S=au(),B=L(S);V(B,()=>e.children??$);var M=F(B,2);{var R=D=>{var k=q(),z=L(k);Ye(z,()=>Ql,(j,W)=>{W(j,{class:"ring-offset-background focus:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:(K,ue)=>{var fe=ou(),zn=L(fe);zo(zn,{}),te(2),O(K,fe)},$$slots:{default:!0}})}),O(D,k)};se(M,D=>{n()&&D(R)})}O(m,S)},$$slots:{default:!0}}))})}O(i,c)},$$slots:{default:!0}})),H()}function cd(r,e){G(e,!0);let t=_(e,"ref",15,null),n=ae(e,["$$slots","$$events","$$legacy","ref","class"]);var s=q(),i=L(s);{let o=A(()=>qn("text-muted-foreground text-sm",e.class));Ye(i,()=>Jl,(c,l)=>{l(c,he({"data-slot":"dialog-description",get class(){return u(o)}},()=>n,{get ref(){return t()},set ref(d){t(d)}}))})}O(r,s),H()}function lu(r,e){G(e,!0);/** + * @license @lucide/svelte v0.561.0 - ISC + * + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The MIT License (MIT) (for portions derived from Feather) + * + * Copyright (c) 2013-2023 Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */let t=ae(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{cx:"12",cy:"13",r:"3"}]];Wo(r,he({name:"camera"},()=>t,{get iconNode(){return n},children:(s,i)=>{var o=q(),c=L(o);V(c,()=>e.children??$),O(s,o)},$$slots:{default:!0}})),H()}class ie extends Error{constructor(e){var t,n,s,i;super("ClientResponseError"),this.url="",this.status=0,this.response={},this.isAbort=!1,this.originalError=null,Object.setPrototypeOf(this,ie.prototype),e!==null&&typeof e=="object"&&(this.originalError=e.originalError,this.url=typeof e.url=="string"?e.url:"",this.status=typeof e.status=="number"?e.status:0,this.isAbort=!!e.isAbort||e.name==="AbortError"||e.message==="Aborted",e.response!==null&&typeof e.response=="object"?this.response=e.response:e.data!==null&&typeof e.data=="object"?this.response=e.data:this.response={}),this.originalError||e instanceof ie||(this.originalError=e),this.name="ClientResponseError "+this.status,this.message=(t=this.response)==null?void 0:t.message,this.message||(this.isAbort?this.message="The request was aborted (most likely autocancelled; you can find more info in https://github.com/pocketbase/js-sdk#auto-cancellation).":(i=(s=(n=this.originalError)==null?void 0:n.cause)==null?void 0:s.message)!=null&&i.includes("ECONNREFUSED ::1")?this.message="Failed to connect to the PocketBase server. Try changing the SDK URL from localhost to 127.0.0.1 (https://github.com/pocketbase/js-sdk/issues/21).":this.message="Something went wrong."),this.cause=this.originalError}get data(){return this.response}toJSON(){return{...this}}}const Xn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function uu(r,e){const t={};if(typeof r!="string")return t;const n=Object.assign({},{}).decode||du;let s=0;for(;s0&&(!t.exp||t.exp-e>Date.now()/1e3))}Vo=typeof atob!="function"||fu?r=>{let e=String(r).replace(/=+$/,"");if(e.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,n,s=0,i=0,o="";n=e.charAt(i++);~n&&(t=s%4?64*t+n:n,s++%4)?o+=String.fromCharCode(255&t>>(-2*s&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return o}:atob;const Ji="pb_auth";class Fs{constructor(){this.baseToken="",this.baseModel=null,this._onChangeCallbacks=[]}get token(){return this.baseToken}get record(){return this.baseModel}get model(){return this.baseModel}get isValid(){return!Go(this.token)}get isSuperuser(){var t,n;let e=wt(this.token);return e.type=="auth"&&(((t=this.record)==null?void 0:t.collectionName)=="_superusers"||!((n=this.record)!=null&&n.collectionName)&&e.collectionId=="pbc_3142635823")}get isAdmin(){return console.warn("Please replace pb.authStore.isAdmin with pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),this.isSuperuser}get isAuthRecord(){return console.warn("Please replace pb.authStore.isAuthRecord with !pb.authStore.isSuperuser OR simply check the value of pb.authStore.record?.collectionName"),wt(this.token).type=="auth"&&!this.isSuperuser}save(e,t){this.baseToken=e||"",this.baseModel=t||null,this.triggerChange()}clear(){this.baseToken="",this.baseModel=null,this.triggerChange()}loadFromCookie(e,t=Ji){const n=uu(e||"")[t]||"";let s={};try{s=JSON.parse(n),(typeof s===null||typeof s!="object"||Array.isArray(s))&&(s={})}catch{}this.save(s.token||"",s.record||s.model||null)}exportToCookie(e,t=Ji){var l,d;const n={secure:!0,sameSite:!0,httpOnly:!0,path:"/"},s=wt(this.token);n.expires=s!=null&&s.exp?new Date(1e3*s.exp):new Date("1970-01-01"),e=Object.assign({},n,e);const i={token:this.token,record:this.record?JSON.parse(JSON.stringify(this.record)):null};let o=Hi(t,JSON.stringify(i),e);const c=typeof Blob<"u"?new Blob([o]).size:o.length;if(i.record&&c>4096){i.record={id:(l=i.record)==null?void 0:l.id,email:(d=i.record)==null?void 0:d.email};const b=["collectionId","collectionName","verified"];for(const f in this.record)b.includes(f)&&(i.record[f]=this.record[f]);o=Hi(t,JSON.stringify(i),e)}return o}onChange(e,t=!1){return this._onChangeCallbacks.push(e),t&&e(this.token,this.record),()=>{for(let n=this._onChangeCallbacks.length-1;n>=0;n--)if(this._onChangeCallbacks[n]==e)return delete this._onChangeCallbacks[n],void this._onChangeCallbacks.splice(n,1)}}triggerChange(){for(const e of this._onChangeCallbacks)e&&e(this.token,this.record)}}class pu extends Fs{constructor(e="pocketbase_auth"){super(),this.storageFallback={},this.storageKey=e,this._bindStorageEvent()}get token(){return(this._storageGet(this.storageKey)||{}).token||""}get record(){const e=this._storageGet(this.storageKey)||{};return e.record||e.model||null}get model(){return this.record}save(e,t){this._storageSet(this.storageKey,{token:e,record:t}),super.save(e,t)}clear(){this._storageRemove(this.storageKey),super.clear()}_storageGet(e){if(typeof window<"u"&&(window!=null&&window.localStorage)){const t=window.localStorage.getItem(e)||"";try{return JSON.parse(t)}catch{return t}}return this.storageFallback[e]}_storageSet(e,t){if(typeof window<"u"&&(window!=null&&window.localStorage)){let n=t;typeof t!="string"&&(n=JSON.stringify(t)),window.localStorage.setItem(e,n)}else this.storageFallback[e]=t}_storageRemove(e){var t;typeof window<"u"&&(window!=null&&window.localStorage)&&((t=window.localStorage)==null||t.removeItem(e)),delete this.storageFallback[e]}_bindStorageEvent(){typeof window<"u"&&(window!=null&&window.localStorage)&&window.addEventListener&&window.addEventListener("storage",(e=>{if(e.key!=this.storageKey)return;const t=this._storageGet(this.storageKey)||{};super.save(t.token||"",t.record||t.model||null)}))}}class Me{constructor(e){this.client=e}}class gu extends Me{async getAll(e){return e=Object.assign({method:"GET"},e),this.client.send("/api/settings",e)}async update(e,t){return t=Object.assign({method:"PATCH",body:e},t),this.client.send("/api/settings",t)}async testS3(e="storage",t){return t=Object.assign({method:"POST",body:{filesystem:e}},t),this.client.send("/api/settings/test/s3",t).then((()=>!0))}async testEmail(e,t,n,s){return s=Object.assign({method:"POST",body:{email:t,template:n,collection:e}},s),this.client.send("/api/settings/test/email",s).then((()=>!0))}async generateAppleClientSecret(e,t,n,s,i,o){return o=Object.assign({method:"POST",body:{clientId:e,teamId:t,keyId:n,privateKey:s,duration:i}},o),this.client.send("/api/settings/apple/generate-client-secret",o)}}const bu=["requestKey","$cancelKey","$autoCancel","fetch","headers","body","query","params","cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","signal","window"];function Ms(r){if(r){r.query=r.query||{};for(let e in r)bu.includes(e)||(r.query[e]=r[e],delete r[e])}}function Ls(r){const e=[];for(const t in r){const n=encodeURIComponent(t),s=Array.isArray(r[t])?r[t]:[r[t]];for(let i of s)i=vu(i),i!==null&&e.push(n+"="+i)}return e.join("&")}function vu(r){return r==null?null:r instanceof Date?encodeURIComponent(r.toISOString().replace("T"," ")):encodeURIComponent(typeof r=="object"?JSON.stringify(r):r)}class Ho extends Me{constructor(){super(...arguments),this.clientId="",this.eventSource=null,this.subscriptions={},this.lastSentSubscriptions=[],this.maxConnectTimeout=15e3,this.reconnectAttempts=0,this.maxReconnectAttempts=1/0,this.predefinedReconnectIntervals=[200,300,500,1e3,1200,1500,2e3],this.pendingConnects=[]}get isConnected(){return!!this.eventSource&&!!this.clientId&&!this.pendingConnects.length}async subscribe(e,t,n){var o;if(!e)throw new Error("topic must be set.");let s=e;if(n){Ms(n=Object.assign({},n));const c="options="+encodeURIComponent(JSON.stringify({query:n.query,headers:n.headers}));s+=(s.includes("?")?"&":"?")+c}const i=function(c){const l=c;let d;try{d=JSON.parse(l==null?void 0:l.data)}catch{}t(d||{})};return this.subscriptions[s]||(this.subscriptions[s]=[]),this.subscriptions[s].push(i),this.isConnected?this.subscriptions[s].length===1?await this.submitSubscriptions():(o=this.eventSource)==null||o.addEventListener(s,i):await this.connect(),async()=>this.unsubscribeByTopicAndListener(e,i)}async unsubscribe(e){var n;let t=!1;if(e){const s=this.getSubscriptionsByTopic(e);for(let i in s)if(this.hasSubscriptionListeners(i)){for(let o of this.subscriptions[i])(n=this.eventSource)==null||n.removeEventListener(i,o);delete this.subscriptions[i],t||(t=!0)}}else this.subscriptions={};this.hasSubscriptionListeners()?t&&await this.submitSubscriptions():this.disconnect()}async unsubscribeByPrefix(e){var n;let t=!1;for(let s in this.subscriptions)if((s+"?").startsWith(e)){t=!0;for(let i of this.subscriptions[s])(n=this.eventSource)==null||n.removeEventListener(s,i);delete this.subscriptions[s]}t&&(this.hasSubscriptionListeners()?await this.submitSubscriptions():this.disconnect())}async unsubscribeByTopicAndListener(e,t){var i;let n=!1;const s=this.getSubscriptionsByTopic(e);for(let o in s){if(!Array.isArray(this.subscriptions[o])||!this.subscriptions[o].length)continue;let c=!1;for(let l=this.subscriptions[o].length-1;l>=0;l--)this.subscriptions[o][l]===t&&(c=!0,delete this.subscriptions[o][l],this.subscriptions[o].splice(l,1),(i=this.eventSource)==null||i.removeEventListener(o,t));c&&(this.subscriptions[o].length||delete this.subscriptions[o],n||this.hasSubscriptionListeners(o)||(n=!0))}this.hasSubscriptionListeners()?n&&await this.submitSubscriptions():this.disconnect()}hasSubscriptionListeners(e){var t,n;if(this.subscriptions=this.subscriptions||{},e)return!!((t=this.subscriptions[e])!=null&&t.length);for(let s in this.subscriptions)if((n=this.subscriptions[s])!=null&&n.length)return!0;return!1}async submitSubscriptions(){if(this.clientId)return this.addAllSubscriptionListeners(),this.lastSentSubscriptions=this.getNonEmptySubscriptionKeys(),this.client.send("/api/realtime",{method:"POST",body:{clientId:this.clientId,subscriptions:this.lastSentSubscriptions},requestKey:this.getSubscriptionsCancelKey()}).catch((e=>{if(!(e!=null&&e.isAbort))throw e}))}getSubscriptionsCancelKey(){return"realtime_"+this.clientId}getSubscriptionsByTopic(e){const t={};e=e.includes("?")?e:e+"?";for(let n in this.subscriptions)(n+"?").startsWith(e)&&(t[n]=this.subscriptions[n]);return t}getNonEmptySubscriptionKeys(){const e=[];for(let t in this.subscriptions)this.subscriptions[t].length&&e.push(t);return e}addAllSubscriptionListeners(){if(this.eventSource){this.removeAllSubscriptionListeners();for(let e in this.subscriptions)for(let t of this.subscriptions[e])this.eventSource.addEventListener(e,t)}}removeAllSubscriptionListeners(){if(this.eventSource)for(let e in this.subscriptions)for(let t of this.subscriptions[e])this.eventSource.removeEventListener(e,t)}async connect(){if(!(this.reconnectAttempts>0))return new Promise(((e,t)=>{this.pendingConnects.push({resolve:e,reject:t}),this.pendingConnects.length>1||this.initConnect()}))}initConnect(){this.disconnect(!0),clearTimeout(this.connectTimeoutId),this.connectTimeoutId=setTimeout((()=>{this.connectErrorHandler(new Error("EventSource connect took too long."))}),this.maxConnectTimeout),this.eventSource=new EventSource(this.client.buildURL("/api/realtime")),this.eventSource.onerror=e=>{this.connectErrorHandler(new Error("Failed to establish realtime connection."))},this.eventSource.addEventListener("PB_CONNECT",(e=>{const t=e;this.clientId=t==null?void 0:t.lastEventId,this.submitSubscriptions().then((async()=>{let n=3;for(;this.hasUnsentSubscriptions()&&n>0;)n--,await this.submitSubscriptions()})).then((()=>{for(let s of this.pendingConnects)s.resolve();this.pendingConnects=[],this.reconnectAttempts=0,clearTimeout(this.reconnectTimeoutId),clearTimeout(this.connectTimeoutId);const n=this.getSubscriptionsByTopic("PB_CONNECT");for(let s in n)for(let i of n[s])i(e)})).catch((n=>{this.clientId="",this.connectErrorHandler(n)}))}))}hasUnsentSubscriptions(){const e=this.getNonEmptySubscriptionKeys();if(e.length!=this.lastSentSubscriptions.length)return!0;for(const t of e)if(!this.lastSentSubscriptions.includes(t))return!0;return!1}connectErrorHandler(e){if(clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),!this.clientId&&!this.reconnectAttempts||this.reconnectAttempts>this.maxReconnectAttempts){for(let n of this.pendingConnects)n.reject(new ie(e));return this.pendingConnects=[],void this.disconnect()}this.disconnect(!0);const t=this.predefinedReconnectIntervals[this.reconnectAttempts]||this.predefinedReconnectIntervals[this.predefinedReconnectIntervals.length-1];this.reconnectAttempts++,this.reconnectTimeoutId=setTimeout((()=>{this.initConnect()}),t)}disconnect(e=!1){var t;if(this.clientId&&this.onDisconnect&&this.onDisconnect(Object.keys(this.subscriptions)),clearTimeout(this.connectTimeoutId),clearTimeout(this.reconnectTimeoutId),this.removeAllSubscriptionListeners(),this.client.cancelRequest(this.getSubscriptionsCancelKey()),(t=this.eventSource)==null||t.close(),this.eventSource=null,this.clientId="",!e){this.reconnectAttempts=0;for(let n of this.pendingConnects)n.resolve();this.pendingConnects=[]}}}class Jo extends Me{decode(e){return e}async getFullList(e,t){if(typeof e=="number")return this._getFullList(e,t);let n=1e3;return(t=Object.assign({},e,t)).batch&&(n=t.batch,delete t.batch),this._getFullList(n,t)}async getList(e=1,t=30,n){return(n=Object.assign({method:"GET"},n)).query=Object.assign({page:e,perPage:t},n.query),this.client.send(this.baseCrudPath,n).then((s=>{var i;return s.items=((i=s.items)==null?void 0:i.map((o=>this.decode(o))))||[],s}))}async getFirstListItem(e,t){return(t=Object.assign({requestKey:"one_by_filter_"+this.baseCrudPath+"_"+e},t)).query=Object.assign({filter:e,skipTotal:1},t.query),this.getList(1,1,t).then((n=>{var s;if(!((s=n==null?void 0:n.items)!=null&&s.length))throw new ie({status:404,response:{code:404,message:"The requested resource wasn't found.",data:{}}});return n.items[0]}))}async getOne(e,t){if(!e)throw new ie({url:this.client.buildURL(this.baseCrudPath+"/"),status:404,response:{code:404,message:"Missing required record id.",data:{}}});return t=Object.assign({method:"GET"},t),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(e),t).then((n=>this.decode(n)))}async create(e,t){return t=Object.assign({method:"POST",body:e},t),this.client.send(this.baseCrudPath,t).then((n=>this.decode(n)))}async update(e,t,n){return n=Object.assign({method:"PATCH",body:t},n),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(e),n).then((s=>this.decode(s)))}async delete(e,t){return t=Object.assign({method:"DELETE"},t),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(e),t).then((()=>!0))}_getFullList(e=1e3,t){(t=t||{}).query=Object.assign({skipTotal:1},t.query);let n=[],s=async i=>this.getList(i,e||1e3,t).then((o=>{const c=o.items;return n=n.concat(c),c.length==o.perPage?s(i+1):n}));return s(1)}}function Ke(r,e,t,n){const s=n!==void 0;return s||t!==void 0?s?(console.warn(r),e.body=Object.assign({},e.body,t),e.query=Object.assign({},e.query,n),e):Object.assign(e,t):e}function Zr(r){var e;(e=r._resetAutoRefresh)==null||e.call(r)}class mu extends Jo{constructor(e,t){super(e),this.collectionIdOrName=t}get baseCrudPath(){return this.baseCollectionPath+"/records"}get baseCollectionPath(){return"/api/collections/"+encodeURIComponent(this.collectionIdOrName)}get isSuperusers(){return this.collectionIdOrName=="_superusers"||this.collectionIdOrName=="_pbc_2773867675"}async subscribe(e,t,n){if(!e)throw new Error("Missing topic.");if(!t)throw new Error("Missing subscription callback.");return this.client.realtime.subscribe(this.collectionIdOrName+"/"+e,t,n)}async unsubscribe(e){return e?this.client.realtime.unsubscribe(this.collectionIdOrName+"/"+e):this.client.realtime.unsubscribeByPrefix(this.collectionIdOrName)}async getFullList(e,t){if(typeof e=="number")return super.getFullList(e,t);const n=Object.assign({},e,t);return super.getFullList(n)}async getList(e=1,t=30,n){return super.getList(e,t,n)}async getFirstListItem(e,t){return super.getFirstListItem(e,t)}async getOne(e,t){return super.getOne(e,t)}async create(e,t){return super.create(e,t)}async update(e,t,n){return super.update(e,t,n).then((s=>{var i,o,c;if(((i=this.client.authStore.record)==null?void 0:i.id)===(s==null?void 0:s.id)&&(((o=this.client.authStore.record)==null?void 0:o.collectionId)===this.collectionIdOrName||((c=this.client.authStore.record)==null?void 0:c.collectionName)===this.collectionIdOrName)){let l=Object.assign({},this.client.authStore.record.expand),d=Object.assign({},this.client.authStore.record,s);l&&(d.expand=Object.assign(l,s.expand)),this.client.authStore.save(this.client.authStore.token,d)}return s}))}async delete(e,t){return super.delete(e,t).then((n=>{var s,i,o;return!n||((s=this.client.authStore.record)==null?void 0:s.id)!==e||((i=this.client.authStore.record)==null?void 0:i.collectionId)!==this.collectionIdOrName&&((o=this.client.authStore.record)==null?void 0:o.collectionName)!==this.collectionIdOrName||this.client.authStore.clear(),n}))}authResponse(e){const t=this.decode((e==null?void 0:e.record)||{});return this.client.authStore.save(e==null?void 0:e.token,t),Object.assign({},e,{token:(e==null?void 0:e.token)||"",record:t})}async listAuthMethods(e){return e=Object.assign({method:"GET",fields:"mfa,otp,password,oauth2"},e),this.client.send(this.baseCollectionPath+"/auth-methods",e)}async authWithPassword(e,t,n){let s;n=Object.assign({method:"POST",body:{identity:e,password:t}},n),this.isSuperusers&&(s=n.autoRefreshThreshold,delete n.autoRefreshThreshold,n.autoRefresh||Zr(this.client));let i=await this.client.send(this.baseCollectionPath+"/auth-with-password",n);return i=this.authResponse(i),s&&this.isSuperusers&&(function(c,l,d,b){Zr(c);const f=c.beforeSend,v=c.authStore.record,m=c.authStore.onChange(((p,S)=>{(!p||(S==null?void 0:S.id)!=(v==null?void 0:v.id)||(S!=null&&S.collectionId||v!=null&&v.collectionId)&&(S==null?void 0:S.collectionId)!=(v==null?void 0:v.collectionId))&&Zr(c)}));c._resetAutoRefresh=function(){m(),c.beforeSend=f,delete c._resetAutoRefresh},c.beforeSend=async(p,S)=>{var D;const B=c.authStore.token;if((D=S.query)!=null&&D.autoRefresh)return f?f(p,S):{url:p,sendOptions:S};let M=c.authStore.isValid;if(M&&Go(c.authStore.token,l))try{await d()}catch{M=!1}M||await b();const R=S.headers||{};for(let k in R)if(k.toLowerCase()=="authorization"&&B==R[k]&&c.authStore.token){R[k]=c.authStore.token;break}return S.headers=R,f?f(p,S):{url:p,sendOptions:S}}})(this.client,s,(()=>this.authRefresh({autoRefresh:!0})),(()=>this.authWithPassword(e,t,Object.assign({autoRefresh:!0},n)))),i}async authWithOAuth2Code(e,t,n,s,i,o,c){let l={method:"POST",body:{provider:e,code:t,codeVerifier:n,redirectURL:s,createData:i}};return l=Ke("This form of authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, body?, query?) is deprecated. Consider replacing it with authWithOAuth2Code(provider, code, codeVerifier, redirectURL, createData?, options?).",l,o,c),this.client.send(this.baseCollectionPath+"/auth-with-oauth2",l).then((d=>this.authResponse(d)))}authWithOAuth2(...e){if(e.length>1||typeof(e==null?void 0:e[0])=="string")return console.warn("PocketBase: This form of authWithOAuth2() is deprecated and may get removed in the future. Please replace with authWithOAuth2Code() OR use the authWithOAuth2() realtime form as shown in https://pocketbase.io/docs/authentication/#oauth2-integration."),this.authWithOAuth2Code((e==null?void 0:e[0])||"",(e==null?void 0:e[1])||"",(e==null?void 0:e[2])||"",(e==null?void 0:e[3])||"",(e==null?void 0:e[4])||{},(e==null?void 0:e[5])||{},(e==null?void 0:e[6])||{});const t=(e==null?void 0:e[0])||{};let n=null;t.urlCallback||(n=Yi(void 0));const s=new Ho(this.client);function i(){n==null||n.close(),s.unsubscribe()}const o={},c=t.requestKey;return c&&(o.requestKey=c),this.listAuthMethods(o).then((l=>{const d=l.oauth2.providers.find((f=>f.name===t.provider));if(!d)throw new ie(new Error(`Missing or invalid provider "${t.provider}".`));const b=this.client.buildURL("/api/oauth2-redirect");return new Promise((async(f,v)=>{var p,S,B;const m=c?(p=this.client.cancelControllers)==null?void 0:p[c]:void 0;m&&(m.signal.onabort=()=>{i(),v(new ie({isAbort:!0,message:"manually cancelled"}))}),s.onDisconnect=M=>{M.length&&v&&(i(),v(new ie(new Error("realtime connection interrupted"))))};try{await s.subscribe("@oauth2",(async k=>{var j;const z=s.clientId;try{if(!k.state||z!==k.state)throw new Error("State parameters don't match.");if(k.error||!k.code)throw new Error("OAuth2 redirect error or missing code: "+k.error);const W=Object.assign({},t);delete W.provider,delete W.scopes,delete W.createData,delete W.urlCallback,(j=m==null?void 0:m.signal)!=null&&j.onabort&&(m.signal.onabort=null);const K=await this.authWithOAuth2Code(d.name,k.code,d.codeVerifier,b,t.createData,W);f(K)}catch(W){v(new ie(W))}i()}));const M={state:s.clientId};(S=t.scopes)!=null&&S.length&&(M.scope=t.scopes.join(" "));const R=this._replaceQueryParams(d.authURL+b,M);await(t.urlCallback||function(k){n?n.location.href=k:n=Yi(k)})(R)}catch(M){(B=m==null?void 0:m.signal)!=null&&B.onabort&&(m.signal.onabort=null),i(),v(new ie(M))}}))})).catch((l=>{throw i(),l}))}async authRefresh(e,t){let n={method:"POST"};return n=Ke("This form of authRefresh(body?, query?) is deprecated. Consider replacing it with authRefresh(options?).",n,e,t),this.client.send(this.baseCollectionPath+"/auth-refresh",n).then((s=>this.authResponse(s)))}async requestPasswordReset(e,t,n){let s={method:"POST",body:{email:e}};return s=Ke("This form of requestPasswordReset(email, body?, query?) is deprecated. Consider replacing it with requestPasswordReset(email, options?).",s,t,n),this.client.send(this.baseCollectionPath+"/request-password-reset",s).then((()=>!0))}async confirmPasswordReset(e,t,n,s,i){let o={method:"POST",body:{token:e,password:t,passwordConfirm:n}};return o=Ke("This form of confirmPasswordReset(token, password, passwordConfirm, body?, query?) is deprecated. Consider replacing it with confirmPasswordReset(token, password, passwordConfirm, options?).",o,s,i),this.client.send(this.baseCollectionPath+"/confirm-password-reset",o).then((()=>!0))}async requestVerification(e,t,n){let s={method:"POST",body:{email:e}};return s=Ke("This form of requestVerification(email, body?, query?) is deprecated. Consider replacing it with requestVerification(email, options?).",s,t,n),this.client.send(this.baseCollectionPath+"/request-verification",s).then((()=>!0))}async confirmVerification(e,t,n){let s={method:"POST",body:{token:e}};return s=Ke("This form of confirmVerification(token, body?, query?) is deprecated. Consider replacing it with confirmVerification(token, options?).",s,t,n),this.client.send(this.baseCollectionPath+"/confirm-verification",s).then((()=>{const i=wt(e),o=this.client.authStore.record;return o&&!o.verified&&o.id===i.id&&o.collectionId===i.collectionId&&(o.verified=!0,this.client.authStore.save(this.client.authStore.token,o)),!0}))}async requestEmailChange(e,t,n){let s={method:"POST",body:{newEmail:e}};return s=Ke("This form of requestEmailChange(newEmail, body?, query?) is deprecated. Consider replacing it with requestEmailChange(newEmail, options?).",s,t,n),this.client.send(this.baseCollectionPath+"/request-email-change",s).then((()=>!0))}async confirmEmailChange(e,t,n,s){let i={method:"POST",body:{token:e,password:t}};return i=Ke("This form of confirmEmailChange(token, password, body?, query?) is deprecated. Consider replacing it with confirmEmailChange(token, password, options?).",i,n,s),this.client.send(this.baseCollectionPath+"/confirm-email-change",i).then((()=>{const o=wt(e),c=this.client.authStore.record;return c&&c.id===o.id&&c.collectionId===o.collectionId&&this.client.authStore.clear(),!0}))}async listExternalAuths(e,t){return this.client.collection("_externalAuths").getFullList(Object.assign({},t,{filter:this.client.filter("recordRef = {:id}",{id:e})}))}async unlinkExternalAuth(e,t,n){const s=await this.client.collection("_externalAuths").getFirstListItem(this.client.filter("recordRef = {:recordId} && provider = {:provider}",{recordId:e,provider:t}));return this.client.collection("_externalAuths").delete(s.id,n).then((()=>!0))}async requestOTP(e,t){return t=Object.assign({method:"POST",body:{email:e}},t),this.client.send(this.baseCollectionPath+"/request-otp",t)}async authWithOTP(e,t,n){return n=Object.assign({method:"POST",body:{otpId:e,password:t}},n),this.client.send(this.baseCollectionPath+"/auth-with-otp",n).then((s=>this.authResponse(s)))}async impersonate(e,t,n){(n=Object.assign({method:"POST",body:{duration:t}},n)).headers=n.headers||{},n.headers.Authorization||(n.headers.Authorization=this.client.authStore.token);const s=new Yo(this.client.baseURL,new Fs,this.client.lang),i=await s.send(this.baseCollectionPath+"/impersonate/"+encodeURIComponent(e),n);return s.authStore.save(i==null?void 0:i.token,this.decode((i==null?void 0:i.record)||{})),s}_replaceQueryParams(e,t={}){let n=e,s="";e.indexOf("?")>=0&&(n=e.substring(0,e.indexOf("?")),s=e.substring(e.indexOf("?")+1));const i={},o=s.split("&");for(const c of o){if(c=="")continue;const l=c.split("=");i[decodeURIComponent(l[0].replace(/\+/g," "))]=decodeURIComponent((l[1]||"").replace(/\+/g," "))}for(let c in t)t.hasOwnProperty(c)&&(t[c]==null?delete i[c]:i[c]=t[c]);s="";for(let c in i)i.hasOwnProperty(c)&&(s!=""&&(s+="&"),s+=encodeURIComponent(c.replace(/%20/g,"+"))+"="+encodeURIComponent(i[c].replace(/%20/g,"+")));return s!=""?n+"?"+s:n}}function Yi(r){if(typeof window>"u"||!(window!=null&&window.open))throw new ie(new Error("Not in a browser context - please pass a custom urlCallback function."));let e=1024,t=768,n=window.innerWidth,s=window.innerHeight;e=e>n?n:e,t=t>s?s:t;let i=n/2-e/2,o=s/2-t/2;return window.open(r,"popup_window","width="+e+",height="+t+",top="+o+",left="+i+",resizable,menubar=no")}class yu extends Jo{get baseCrudPath(){return"/api/collections"}async import(e,t=!1,n){return n=Object.assign({method:"PUT",body:{collections:e,deleteMissing:t}},n),this.client.send(this.baseCrudPath+"/import",n).then((()=>!0))}async getScaffolds(e){return e=Object.assign({method:"GET"},e),this.client.send(this.baseCrudPath+"/meta/scaffolds",e)}async truncate(e,t){return t=Object.assign({method:"DELETE"},t),this.client.send(this.baseCrudPath+"/"+encodeURIComponent(e)+"/truncate",t).then((()=>!0))}}class wu extends Me{async getList(e=1,t=30,n){return(n=Object.assign({method:"GET"},n)).query=Object.assign({page:e,perPage:t},n.query),this.client.send("/api/logs",n)}async getOne(e,t){if(!e)throw new ie({url:this.client.buildURL("/api/logs/"),status:404,response:{code:404,message:"Missing required log id.",data:{}}});return t=Object.assign({method:"GET"},t),this.client.send("/api/logs/"+encodeURIComponent(e),t)}async getStats(e){return e=Object.assign({method:"GET"},e),this.client.send("/api/logs/stats",e)}}class Su extends Me{async check(e){return e=Object.assign({method:"GET"},e),this.client.send("/api/health",e)}}class Cu extends Me{getUrl(e,t,n={}){return console.warn("Please replace pb.files.getUrl() with pb.files.getURL()"),this.getURL(e,t,n)}getURL(e,t,n={}){if(!t||!(e!=null&&e.id)||!(e!=null&&e.collectionId)&&!(e!=null&&e.collectionName))return"";const s=[];s.push("api"),s.push("files"),s.push(encodeURIComponent(e.collectionId||e.collectionName)),s.push(encodeURIComponent(e.id)),s.push(encodeURIComponent(t));let i=this.client.buildURL(s.join("/"));n.download===!1&&delete n.download;const o=Ls(n);return o&&(i+=(i.includes("?")?"&":"?")+o),i}async getToken(e){return e=Object.assign({method:"POST"},e),this.client.send("/api/files/token",e).then((t=>(t==null?void 0:t.token)||""))}}class Tu extends Me{async getFullList(e){return e=Object.assign({method:"GET"},e),this.client.send("/api/backups",e)}async create(e,t){return t=Object.assign({method:"POST",body:{name:e}},t),this.client.send("/api/backups",t).then((()=>!0))}async upload(e,t){return t=Object.assign({method:"POST",body:e},t),this.client.send("/api/backups/upload",t).then((()=>!0))}async delete(e,t){return t=Object.assign({method:"DELETE"},t),this.client.send(`/api/backups/${encodeURIComponent(e)}`,t).then((()=>!0))}async restore(e,t){return t=Object.assign({method:"POST"},t),this.client.send(`/api/backups/${encodeURIComponent(e)}/restore`,t).then((()=>!0))}getDownloadUrl(e,t){return console.warn("Please replace pb.backups.getDownloadUrl() with pb.backups.getDownloadURL()"),this.getDownloadURL(e,t)}getDownloadURL(e,t){return this.client.buildURL(`/api/backups/${encodeURIComponent(t)}?token=${encodeURIComponent(e)}`)}}class Ou extends Me{async getFullList(e){return e=Object.assign({method:"GET"},e),this.client.send("/api/crons",e)}async run(e,t){return t=Object.assign({method:"POST"},t),this.client.send(`/api/crons/${encodeURIComponent(e)}`,t).then((()=>!0))}}function Os(r){return typeof Blob<"u"&&r instanceof Blob||typeof File<"u"&&r instanceof File||r!==null&&typeof r=="object"&&r.uri&&(typeof navigator<"u"&&navigator.product==="ReactNative"||typeof global<"u"&&global.HermesInternal)}function _s(r){var e;return r&&(((e=r.constructor)==null?void 0:e.name)==="FormData"||typeof FormData<"u"&&r instanceof FormData)}function Xi(r){for(const e in r){const t=Array.isArray(r[e])?r[e]:[r[e]];for(const n of t)if(Os(n))return!0}return!1}const _u=/^[\-\.\d]+$/;function Qi(r){if(typeof r!="string")return r;if(r=="true")return!0;if(r=="false")return!1;if((r[0]==="-"||r[0]>="0"&&r[0]<="9")&&_u.test(r)){let e=+r;if(""+e===r)return e}return r}class xu extends Me{constructor(){super(...arguments),this.requests=[],this.subs={}}collection(e){return this.subs[e]||(this.subs[e]=new Eu(this.requests,e)),this.subs[e]}async send(e){const t=new FormData,n=[];for(let s=0;s{if(l==="@jsonPayload"&&typeof c=="string")try{let d=JSON.parse(c);Object.assign(o,d)}catch(d){console.warn("@jsonPayload error:",d)}else o[l]!==void 0?(Array.isArray(o[l])||(o[l]=[o[l]]),o[l].push(Qi(c))):o[l]=Qi(c)})),o})(n));for(const s in n){const i=n[s];if(Os(i))e.files[s]=e.files[s]||[],e.files[s].push(i);else if(Array.isArray(i)){const o=[],c=[];for(const l of i)Os(l)?o.push(l):c.push(l);if(o.length>0&&o.length==i.length){e.files[s]=e.files[s]||[];for(let l of o)e.files[s].push(l)}else if(e.json[s]=c,o.length>0){let l=s;s.startsWith("+")||s.endsWith("+")||(l+="+"),e.files[l]=e.files[l]||[];for(let d of o)e.files[l].push(d)}}else e.json[s]=i}}}class Yo{get baseUrl(){return this.baseURL}set baseUrl(e){this.baseURL=e}constructor(e="/",t,n="en-US"){this.cancelControllers={},this.recordServices={},this.enableAutoCancellation=!0,this.baseURL=e,this.lang=n,t?this.authStore=t:typeof window<"u"&&window.Deno?this.authStore=new Fs:this.authStore=new pu,this.collections=new yu(this),this.files=new Cu(this),this.logs=new wu(this),this.settings=new gu(this),this.realtime=new Ho(this),this.health=new Su(this),this.backups=new Tu(this),this.crons=new Ou(this)}get admins(){return this.collection("_superusers")}createBatch(){return new xu(this)}collection(e){return this.recordServices[e]||(this.recordServices[e]=new mu(this,e)),this.recordServices[e]}autoCancellation(e){return this.enableAutoCancellation=!!e,this}cancelRequest(e){return this.cancelControllers[e]&&(this.cancelControllers[e].abort(),delete this.cancelControllers[e]),this}cancelAllRequests(){for(let e in this.cancelControllers)this.cancelControllers[e].abort();return this.cancelControllers={},this}filter(e,t){if(!t)return e;for(let n in t){let s=t[n];switch(typeof s){case"boolean":case"number":s=""+s;break;case"string":s="'"+s.replace(/'/g,"\\'")+"'";break;default:s=s===null?"null":s instanceof Date?"'"+s.toISOString().replace("T"," ")+"'":"'"+JSON.stringify(s).replace(/'/g,"\\'")+"'"}e=e.replaceAll("{:"+n+"}",s)}return e}getFileUrl(e,t,n={}){return console.warn("Please replace pb.getFileUrl() with pb.files.getURL()"),this.files.getURL(e,t,n)}buildUrl(e){return console.warn("Please replace pb.buildUrl() with pb.buildURL()"),this.buildURL(e)}buildURL(e){var n;let t=this.baseURL;return typeof window>"u"||!window.location||t.startsWith("https://")||t.startsWith("http://")||(t=(n=window.location.origin)!=null&&n.endsWith("/")?window.location.origin.substring(0,window.location.origin.length-1):window.location.origin||"",this.baseURL.startsWith("/")||(t+=window.location.pathname||"/",t+=t.endsWith("/")?"":"/"),t+=this.baseURL),e&&(t+=t.endsWith("/")?"":"/",t+=e.startsWith("/")?e.substring(1):e),t}async send(e,t){t=this.initSendOptions(e,t);let n=this.buildURL(e);if(this.beforeSend){const s=Object.assign({},await this.beforeSend(n,t));s.url!==void 0||s.options!==void 0?(n=s.url||n,t=s.options||t):Object.keys(s).length&&(t=s,console!=null&&console.warn&&console.warn("Deprecated format of beforeSend return: please use `return { url, options }`, instead of `return options`."))}if(t.query!==void 0){const s=Ls(t.query);s&&(n+=(n.includes("?")?"&":"?")+s),delete t.query}return this.getHeader(t.headers,"Content-Type")=="application/json"&&t.body&&typeof t.body!="string"&&(t.body=JSON.stringify(t.body)),(t.fetch||fetch)(n,t).then((async s=>{var o;let i={};try{i=await s.json()}catch(c){if((o=t.signal)!=null&&o.aborted||(c==null?void 0:c.name)=="AbortError"||(c==null?void 0:c.message)=="Aborted")throw c}if(this.afterSend&&(i=await this.afterSend(s,i,t)),s.status>=400)throw new ie({url:s.url,status:s.status,data:i});return i})).catch((s=>{throw new ie(s)}))}initSendOptions(e,t){if((t=Object.assign({method:"GET"},t)).body=(function(s){if(typeof FormData>"u"||s===void 0||typeof s!="object"||s===null||_s(s)||!Xi(s))return s;const i=new FormData;for(const o in s){const c=s[o];if(c!==void 0)if(typeof c!="object"||Xi({data:c})){const l=Array.isArray(c)?c:[c];for(let d of l)i.append(o,d)}else{let l={};l[o]=c,i.append("@jsonPayload",JSON.stringify(l))}}return i})(t.body),Ms(t),t.query=Object.assign({},t.params,t.query),t.requestKey===void 0&&(t.$autoCancel===!1||t.query.$autoCancel===!1?t.requestKey=null:(t.$cancelKey||t.query.$cancelKey)&&(t.requestKey=t.$cancelKey||t.query.$cancelKey)),delete t.$autoCancel,delete t.query.$autoCancel,delete t.$cancelKey,delete t.query.$cancelKey,this.getHeader(t.headers,"Content-Type")!==null||_s(t.body)||(t.headers=Object.assign({},t.headers,{"Content-Type":"application/json"})),this.getHeader(t.headers,"Accept-Language")===null&&(t.headers=Object.assign({},t.headers,{"Accept-Language":this.lang})),this.authStore.token&&this.getHeader(t.headers,"Authorization")===null&&(t.headers=Object.assign({},t.headers,{Authorization:this.authStore.token})),this.enableAutoCancellation&&t.requestKey!==null){const n=t.requestKey||(t.method||"GET")+e;delete t.requestKey,this.cancelRequest(n);const s=new AbortController;this.cancelControllers[n]=s,t.signal=s.signal}return t}getHeader(e,t){e=e||{},t=t.toLowerCase();for(let n in e)if(n.toLowerCase()==t)return e[n];return null}}const Au="https://pocketbase.ccllc.pro",Iu=new Yo(Au),Pu=["EA","BX","CA","PK","PLT","LF"],ku=["Framing","Insulation","Drywall","T-Bar","Painting","Masking","Misc"],Ru=["ACT","Channel","Fasteners","Finishing Materials","Adhesives","Mud","Corner Bead","Sanding","Tape","Metal Studs","Metal Tracks","FRP","Gyp","Insulation","Paint","Weatherproofing","Misc"];var Nu=J(''),Fu=J('

'),Mu=J('',2),Lu=J(" Cancel",1),Du=J(''),Uu=J('
Replace:
'),ju=J(""),qu=J(""),Bu=J(""),Ku=J(""),Wu=J('

'),zu=J('
');function ld(r,e){G(e,!0);const t="Stackq_Items";function n(g,w){return`${Iu.baseUrl}/api/files/${t}/${g}/${w}`}let s=_(e,"item",3,null),i=_(e,"itemsForParent",19,()=>[]);const o=A(()=>!!s()),c=A(()=>s()?i().filter(g=>g.id!==s().id):i()),l=A(()=>{var g;return((g=s())==null?void 0:g.Item)??""}),d=A(()=>{var g;return((g=s())==null?void 0:g.SKU)??""}),b=A(()=>{var g;return((g=s())==null?void 0:g.Description)??""}),f=A(()=>{var g;return((g=s())==null?void 0:g.UOM)??""}),v=A(()=>{var g;return((g=s())==null?void 0:g.Cost)!=null?String(s().Cost):""}),m=A(()=>{var g;return((g=s())==null?void 0:g.Vendor)??""}),p=A(()=>{var g,w;return Array.isArray((g=s())==null?void 0:g.Catagory)?s().Catagory[0]:((w=s())==null?void 0:w.Catagory)??""}),S=A(()=>{var g,w;return Array.isArray((g=s())==null?void 0:g.Sub_Catagory)?s().Sub_Catagory[0]:((w=s())==null?void 0:w.Sub_Catagory)??""}),B=A(()=>{var g;return((g=s())==null?void 0:g.Parent)??""}),M=A(()=>{var g;return!!((g=s())!=null&&g.Has_Parent)}),R=A(()=>{var g;return!!((g=s())!=null&&g.Stock)});let D=U(""),k=U(!1),z=U(null),j=U(void 0),W=null,K=0;Ne(()=>{T(D,u(d),!0)});async function ue(){if(typeof globalThis>"u"||"BarcodeDetector"in globalThis)return!0;try{const g=await tc(()=>import("./Bd99md_0.js"),[],import.meta.url);return globalThis.BarcodeDetector=g.BarcodeDetector,!0}catch{return!1}}async function fe(){if(T(z,null),!await ue()){T(z,"Failed to load barcode scanner. Try again or use Chrome/Edge."),T(k,!0);return}try{W=await navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:{ideal:1280},height:{ideal:720}}}),T(k,!0)}catch(w){T(z,w instanceof Error?w.message:"Could not access camera.",!0),T(k,!0)}}Ne(()=>{if(!(!u(k)||!W||!u(j)))return u(j).srcObject=W,u(j).play().then(()=>Ir()).catch(()=>{}),()=>{u(j).srcObject&&(u(j).srcObject=null)}});const zn=300;function Ir(){if(!u(k)||!u(j)||!("BarcodeDetector"in globalThis))return;const g=new globalThis.BarcodeDetector;let w=0;async function C(){if(!u(k)||!u(j))return;if(u(j).readyState<2){K=requestAnimationFrame(C);return}const Z=Date.now();if(Z-w>=zn){w=Z;try{const ee=await g.detect(u(j));if(ee.length>0){T(D,ee[0].rawValue,!0),Pr();return}}catch{}}K=requestAnimationFrame(C)}C()}function Pr(){T(k,!1),T(z,null),K&&(cancelAnimationFrame(K),K=0),W&&(W.getTracks().forEach(g=>g.stop()),W=null),u(j)&&u(j).srcObject&&(u(j).srcObject=null)}var Le=zu(),Vn=I(Le);{var kr=g=>{var w=Nu();Yr(w),me(()=>Ka(w,s().id)),O(g,w)};se(Vn,g=>{u(o)&&g(kr)})}var Ft=F(Vn,2),be=I(Ft),De=I(be);ye(De,{for:"Item",children:(g,w)=>{te();var C=pe("Item");O(g,C)},$$slots:{default:!0}});var et=F(De,2);vt(et,{id:"Item",name:"Item",get value(){return u(l)},required:!0}),P(be);var Ue=F(be,2),gt=I(Ue);ye(gt,{for:"SKU",children:(g,w)=>{te();var C=pe("SKU");O(g,C)},$$slots:{default:!0}});var ve=F(gt,2),$s=I(ve);vt($s,{id:"SKU",name:"SKU",class:"flex-1",get value(){return u(D)},set value(g){T(D,g,!0)}});var Xo=F($s,2);Xr(Xo,{type:"button",variant:"outline",size:"icon",onclick:fe,title:"Scan barcode",children:(g,w)=>{lu(g,{class:"size-4"})},$$slots:{default:!0}}),P(ve),P(Ue),P(Ft);var ei=F(Ft,2);{var Qo=g=>{var w=Du(),C=I(w),Z=I(C);{var ee=je=>{var qe=Fu(),bt=I(qe,!0);P(qe),me(()=>tt(bt,u(z))),O(je,qe)},la=je=>{var qe=Mu();qe.muted=!0,so(qe,bt=>T(j,bt),()=>u(j)),O(je,qe)};se(Z,je=>{u(z)?je(ee):je(la,!1)})}var Si=F(Z,2),ua=I(Si);Xr(ua,{type:"button",variant:"outline",class:"flex-1",onclick:Pr,children:(je,qe)=>{var bt=Lu(),da=L(bt);zo(da,{class:"mr-2 size-4"}),te(),O(je,bt)},$$slots:{default:!0}}),P(Si),P(C),P(w),O(g,w)};se(ei,g=>{u(k)&&g(Qo)})}var Rr=F(ei,2),ti=I(Rr);ye(ti,{for:"Description",children:(g,w)=>{te();var C=pe("Description");O(g,C)},$$slots:{default:!0}});var Zo=F(ti,2);vt(Zo,{id:"Description",name:"Description",get value(){return u(b)}}),P(Rr);var Nr=F(Rr,2),ni=I(Nr);ye(ni,{for:"Image",children:(g,w)=>{te();var C=pe("Image");O(g,C)},$$slots:{default:!0}});var ri=F(ni,2);{var $o=g=>{var w=Uu(),C=I(w);te(2),P(w),me(Z=>Pi(C,"src",Z),[()=>n(s().id,s().Image)]),O(g,w)};se(ri,g=>{var w;u(o)&&((w=s())!=null&&w.Image)&&g($o)})}var ea=F(ri,2);vt(ea,{id:"Image",name:"Image",type:"file",accept:"image/*"}),P(Nr);var Fr=F(Nr,2),Mr=I(Fr),si=I(Mr);ye(si,{for:"UOM",children:(g,w)=>{te();var C=pe("UOM");O(g,C)},$$slots:{default:!0}});var ii=F(si,2),Lr=I(ii);Lr.value=Lr.__value="";var ta=F(Lr);Bt(ta,17,()=>Pu,qt,(g,w)=>{var C=ju(),Z=I(C,!0);P(C);var ee={};me(()=>{Hn(C,u(f)===u(w)),tt(Z,u(w)),ee!==(ee=u(w))&&(C.value=(C.__value=u(w))??"")}),O(g,C)}),P(ii),P(Mr);var oi=F(Mr,2),ai=I(oi);ye(ai,{for:"Cost",children:(g,w)=>{te();var C=pe("Cost");O(g,C)},$$slots:{default:!0}});var na=F(ai,2);vt(na,{id:"Cost",name:"Cost",type:"number",step:"any",get value(){return u(v)}}),P(oi),P(Fr);var Dr=F(Fr,2),ci=I(Dr);ye(ci,{for:"Vendor",children:(g,w)=>{te();var C=pe("Vendor");O(g,C)},$$slots:{default:!0}});var ra=F(ci,2);vt(ra,{id:"Vendor",name:"Vendor",get value(){return u(m)}}),P(Dr);var Ur=F(Dr,2),jr=I(Ur),li=I(jr);ye(li,{for:"Catagory",children:(g,w)=>{te();var C=pe("Catagory");O(g,C)},$$slots:{default:!0}});var ui=F(li,2),qr=I(ui);qr.value=qr.__value="";var sa=F(qr);Bt(sa,17,()=>ku,qt,(g,w)=>{var C=qu(),Z=I(C,!0);P(C);var ee={};me(()=>{Hn(C,u(p)===u(w)),tt(Z,u(w)),ee!==(ee=u(w))&&(C.value=(C.__value=u(w))??"")}),O(g,C)}),P(ui),P(jr);var di=F(jr,2),hi=I(di);ye(hi,{for:"Sub_Catagory",children:(g,w)=>{te();var C=pe("Sub_Catagory");O(g,C)},$$slots:{default:!0}});var fi=F(hi,2),Br=I(fi);Br.value=Br.__value="";var ia=F(Br);Bt(ia,17,()=>Ru,qt,(g,w)=>{var C=Bu(),Z=I(C,!0);P(C);var ee={};me(()=>{Hn(C,u(S)===u(w)),tt(Z,u(w)),ee!==(ee=u(w))&&(C.value=(C.__value=u(w))??"")}),O(g,C)}),P(fi),P(di),P(Ur);var Kr=F(Ur,2),pi=I(Kr);ye(pi,{for:"Parent",children:(g,w)=>{te();var C=pe("Parent");O(g,C)},$$slots:{default:!0}});var gi=F(pi,2),Wr=I(gi);Wr.value=Wr.__value="";var oa=F(Wr);Bt(oa,17,()=>u(c),qt,(g,w)=>{var C=Ku(),Z=I(C,!0);P(C);var ee={};me(()=>{Hn(C,u(B)===u(w).id),tt(Z,u(w).Item||u(w).SKU||u(w).id),ee!==(ee=u(w).id)&&(C.value=(C.__value=u(w).id)??"")}),O(g,C)}),P(gi),P(Kr);var zr=F(Kr,2),Vr=I(zr),bi=I(Vr);Yr(bi),te(),P(Vr);var vi=F(Vr,2),mi=I(vi);Yr(mi),te(),P(vi),P(zr);var yi=F(zr,2);{var aa=g=>{var w=Wu(),C=I(w,!0);P(w),me(()=>tt(C,e.error)),O(g,w)};se(yi,g=>{e.error&&g(aa)})}var wi=F(yi,2),ca=I(wi);Xr(ca,{type:"submit",children:(g,w)=>{te();var C=pe();me(()=>tt(C,e.submitLabel)),O(g,C)},$$slots:{default:!0}}),P(wi),P(Le),Za(Le,(g,w)=>{var C;return(C=$a)==null?void 0:C(g,w)},()=>()=>async({update:g,result:w})=>{var C,Z;await g(),w.type==="success"&&((C=w.data)!=null&&C.success)&&((Z=e.onSuccess)==null||Z.call(e))}),me(()=>{Pi(Le,"action",e.action),ki(bi,u(M)),ki(mi,u(R))}),O(r,Le),H()}export{Kn as C,ad as D,Ll as E,Dl as F,ld as I,Bi as M,Gc as P,Gi as S,ql as T,od as a,id as b,cd as c,sd as d,dc as e,Fl as f,uo as g,Ui as h,rd as i,ji as j,qi as k,Ki as l,Wo as m,Y as n,Bt as o,qt as p,Bl as u,oe as w}; diff --git a/.svelte-kit/output/client/_app/immutable/chunks/jOLfEXYH.js b/.svelte-kit/output/client/_app/immutable/chunks/jOLfEXYH.js new file mode 100644 index 00000000..4621829e --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/chunks/jOLfEXYH.js @@ -0,0 +1 @@ +import{a1 as T,ac as j,ad as y,q,ae as S,af as g,ag as B,ah as Y,g as h,ai as K,F as M,aj as N,R as U,ak as $,al as z,am as C,an as F,ao as G,ap as Z,d as H,aq as J,ar as x,as as d}from"./Dexp9pM5.js";function R(r,e){return r===e||(r==null?void 0:r[S])===e}function m(r={},e,n,i){return T(()=>{var s,t;return j(()=>{s=t,t=[],y(()=>{r!==n(...t)&&(e(r,...t),s&&R(n(...s),r)&&e(null,...s))})}),()=>{q(()=>{t&&R(n(...t),r)&&e(null,...t)})}}),r}let _=!1;function Q(r){var e=_;try{return _=!1,[r(),_]}finally{_=e}}const V={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function k(r,e,n){return new Proxy({props:r,exclude:e},V)}const W={get(r,e){let n=r.props.length;for(;n--;){let i=r.props[n];if(d(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(r,e,n){let i=r.props.length;for(;i--;){let s=r.props[i];d(s)&&(s=s());const t=g(s,e);if(t&&t.set)return t.set(n),!0}return!1},getOwnPropertyDescriptor(r,e){let n=r.props.length;for(;n--;){let i=r.props[n];if(d(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const s=g(i,e);return s&&!s.configurable&&(s.configurable=!0),s}}},has(r,e){if(e===S||e===x)return!1;for(let n of r.props)if(d(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(r){const e=[];for(let n of r.props)if(d(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function rr(...r){return new Proxy({props:r},W)}function er(r,e,n,i){var O;var s=!C||(n&F)!==0,t=(n&z)!==0,E=(n&J)!==0,a=i,v=!0,b=()=>(v&&(v=!1,a=E?y(i):i),a),l;if(t){var A=S in r||x in r;l=((O=g(r,e))==null?void 0:O.set)??(A&&e in r?f=>r[e]=f:void 0)}var o,w=!1;t?[o,w]=Q(()=>r[e]):o=r[e],o===void 0&&i!==void 0&&(o=b(),l&&(s&&B(),l(o)));var u;if(s?u=()=>{var f=r[e];return f===void 0?b():(v=!0,f)}:u=()=>{var f=r[e];return f!==void 0&&(a=void 0),f===void 0?a:f},s&&(n&Y)===0)return u;if(l){var D=r.$$legacy;return(function(f,p){return arguments.length>0?((!s||!p||D||w)&&l(p?u():f),f):u()})}var P=!1,c=((n&G)!==0?Z:H)(()=>(P=!1,u()));t&&h(c);var L=U;return(function(f,p){if(arguments.length>0){const I=p?h(c):s&&t?K(f):f;return M(c,I),P=!0,a!==void 0&&(a=I),f}return N&&P||(L.f&$)!==0?c.v:h(c)})}export{m as b,er as p,k as r,rr as s}; diff --git a/.svelte-kit/output/client/_app/immutable/entry/app.c69iw9ai.js b/.svelte-kit/output/client/_app/immutable/entry/app.c69iw9ai.js new file mode 100644 index 00000000..54a2576c --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/entry/app.c69iw9ai.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BXv9ZfXj.js","../chunks/Bzak7iHL.js","../chunks/hqfhVoHF.js","../chunks/Dexp9pM5.js","../assets/0.DbRKE6YE.css","../nodes/1.BT8sl3NL.js","../chunks/DZmckTjd.js","../chunks/agKGoZF1.js","../chunks/BapE3c1q.js","../nodes/2.OkkHA0lV.js","../chunks/CRDN6Mh7.js","../chunks/DcVg5zjO.js","../chunks/B12dZE2q.js","../chunks/BKSreT2u.js","../chunks/jOLfEXYH.js","../chunks/25AjRaeI.js","../nodes/4.Bn1qLW0B.js","../chunks/BxPgF2w2.js","../chunks/BC20z61P.js","../nodes/5.u4tkKrg-.js"])))=>i.map(i=>d[i]); +var G=e=>{throw TypeError(e)};var M=(e,t,r)=>t.has(e)||G("Cannot "+r);var o=(e,t,r)=>(M(e,t,"read from private field"),r?r.call(e):t.get(e)),A=(e,t,r)=>t.has(e)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),w=(e,t,r,n)=>(M(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{i as I,_ as y}from"../chunks/CRDN6Mh7.js";import{F as x,ar as N,g as _,w as Q,V as U,y as W,A as Z,au as $,av as tt,aX as et,f as R,C as rt,a as E,G as at,I as L,c as V,h as st,r as ot,b as z,E as nt,az as it,u as j}from"../chunks/Dexp9pM5.js";import{h as ct,m as ut,u as mt,o as _t,s as lt}from"../chunks/DZmckTjd.js";import"../chunks/Bzak7iHL.js";import{c as D}from"../chunks/25AjRaeI.js";import{p as T,b as k}from"../chunks/jOLfEXYH.js";function dt(e){return class extends ft{constructor(t){super({component:e,...t})}}}var l,c;class ft{constructor(t){A(this,l);A(this,c);var g;var r=new Map,n=(a,s)=>{var d=W(s,!1,!1);return r.set(a,d),d};const m=new Proxy({...t.props||{},$$events:{}},{get(a,s){return _(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===N?!0:(_(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return x(r.get(s)??n(s,d),d),Reflect.set(a,s,d)}});w(this,c,(t.hydrate?ct:ut)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((g=t==null?void 0:t.props)!=null&&g.$$host)||t.sync===!1)&&Q(),w(this,l,m.$$events);for(const a of Object.keys(o(this,c)))a==="$set"||a==="$destroy"||a==="$on"||U(this,a,{get(){return o(this,c)[a]},set(s){o(this,c)[a]=s},enumerable:!0});o(this,c).$set=a=>{Object.assign(m,a)},o(this,c).$destroy=()=>{mt(o(this,c))}}$set(t){o(this,c).$set(t)}$on(t,r){o(this,l)[t]=o(this,l)[t]||[];const n=(...m)=>r.call(this,...m);return o(this,l)[t].push(n),()=>{o(this,l)[t]=o(this,l)[t].filter(m=>m!==n)}}$destroy(){o(this,c).$destroy()}}l=new WeakMap,c=new WeakMap;const It={};var ht=z('
'),vt=z(" ",1);function gt(e,t){Z(t,!0);let r=T(t,"components",23,()=>[]),n=T(t,"data_0",3,null),m=T(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),m(),t.stores.page.notify()});let g=L(!1),a=L(!1),s=L(null);_t(()=>{const i=t.stores.page.subscribe(()=>{_(g)&&(x(a,!0),et().then(()=>{x(s,document.title||"untitled page",!0)}))});return x(g,!0),i});const d=j(()=>t.constructors[1]);var p=vt(),C=R(p);{var X=i=>{const f=j(()=>t.constructors[0]);var h=V(),P=R(h);D(P,()=>_(f),(v,b)=>{k(b(v,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(u,yt)=>{var S=V(),H=R(S);D(H,()=>_(d),(J,K)=>{k(K(J,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),E(u,S)},$$slots:{default:!0}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)},Y=i=>{const f=j(()=>t.constructors[0]);var h=V(),P=R(h);D(P,()=>_(f),(v,b)=>{k(b(v,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>{var u;return(u=r())==null?void 0:u[0]})}),E(i,h)};I(C,i=>{t.constructors[1]?i(X):i(Y,!1)})}var q=rt(C,2);{var B=i=>{var f=ht(),h=st(f);{var P=v=>{var b=nt();it(()=>lt(b,_(s))),E(v,b)};I(h,v=>{_(a)&&v(P)})}ot(f),E(i,f)};I(q,i=>{_(g)&&i(B)})}E(e,p),at()}const Lt=dt(gt),Vt=[()=>y(()=>import("../nodes/0.BXv9ZfXj.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>y(()=>import("../nodes/1.BT8sl3NL.js"),__vite__mapDeps([5,1,2,3,6,7,8]),import.meta.url),()=>y(()=>import("../nodes/2.OkkHA0lV.js"),__vite__mapDeps([9,10,3,1,2,11,12,13,7,14]),import.meta.url),()=>y(()=>import("../chunks/25AjRaeI.js").then(e=>e._),__vite__mapDeps([15,3,10]),import.meta.url),()=>y(()=>import("../nodes/4.Bn1qLW0B.js"),__vite__mapDeps([16,17,10,3,1,11,15,13,7,18,14]),import.meta.url),()=>y(()=>import("../nodes/5.u4tkKrg-.js"),__vite__mapDeps([19,10,3,1,11,15]),import.meta.url)],jt=[],Dt={"/":[-3],"/items":[-5],"/login":[-6],"/logout":[-4]},F={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},bt=Object.fromEntries(Object.entries(F.transport).map(([e,t])=>[e,t.decode])),Tt=Object.fromEntries(Object.entries(F.transport).map(([e,t])=>[e,t.encode])),kt=!1,pt=(e,t)=>bt[e](t);export{pt as decode,bt as decoders,Dt as dictionary,Tt as encoders,kt as hash,F as hooks,It as matchers,Vt as nodes,Lt as root,jt as server_loads}; diff --git a/.svelte-kit/output/client/_app/immutable/entry/start.BXvCRdku.js b/.svelte-kit/output/client/_app/immutable/entry/start.BXvCRdku.js new file mode 100644 index 00000000..9611de38 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/entry/start.BXvCRdku.js @@ -0,0 +1 @@ +import{l as o,d as r}from"../chunks/BapE3c1q.js";export{o as load_css,r as start}; diff --git a/.svelte-kit/output/client/_app/immutable/nodes/0.BXv9ZfXj.js b/.svelte-kit/output/client/_app/immutable/nodes/0.BXv9ZfXj.js new file mode 100644 index 00000000..8e85d6a1 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/nodes/0.BXv9ZfXj.js @@ -0,0 +1 @@ +import"../chunks/Bzak7iHL.js";import"../chunks/hqfhVoHF.js";import{i as f,j as l,c as s,f as u,a as c}from"../chunks/Dexp9pM5.js";function d(o,e,t,a,_){var i;f&&l();var n=(i=e.$$slots)==null?void 0:i[t],r=!1;n===!0&&(n=e.children,r=!0),n===void 0||n(o,r?()=>a:a)}const y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function b(o,e){var t=s(),a=u(t);d(a,e,"default",{}),c(o,t)}export{b as component,y as universal}; diff --git a/.svelte-kit/output/client/_app/immutable/nodes/1.BT8sl3NL.js b/.svelte-kit/output/client/_app/immutable/nodes/1.BT8sl3NL.js new file mode 100644 index 00000000..27ec72b5 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/nodes/1.BT8sl3NL.js @@ -0,0 +1 @@ +import"../chunks/Bzak7iHL.js";import"../chunks/hqfhVoHF.js";import{at as b,au as x,av as i,ad as k,aw as l,ax as y,g as v,ay as $,ap as w,A as z,f as A,az as C,a as E,G,b as j,h as u,r as m,C as q}from"../chunks/Dexp9pM5.js";import{s as g}from"../chunks/DZmckTjd.js";import{s as B,p as h}from"../chunks/BapE3c1q.js";function D(r=!1){const e=b,t=e.l.u;if(!t)return;let a=()=>$(e.s);if(r){let o=0,s={};const p=w(()=>{let n=!1;const c=e.s;for(const f in c)c[f]!==s[f]&&(s[f]=c[f],n=!0);return n&&o++,o});a=()=>v(p)}t.b.length&&x(()=>{_(e,a),l(t.b)}),i(()=>{const o=k(()=>t.m.map(y));return()=>{for(const s of o)typeof s=="function"&&s()}}),t.a.length&&i(()=>{_(e,a),l(t.a)})}function _(r,e){if(r.l.s)for(const t of r.l.s)v(t);e()}const F={get error(){return h.error},get status(){return h.status}};B.updated.check;const d=F;var H=j("

",1);function N(r,e){z(e,!1),D();var t=H(),a=A(t),o=u(a,!0);m(a);var s=q(a,2),p=u(s,!0);m(s),C(()=>{var n;g(o,d.status),g(p,(n=d.error)==null?void 0:n.message)}),E(r,t),G()}export{N as component}; diff --git a/.svelte-kit/output/client/_app/immutable/nodes/2.OkkHA0lV.js b/.svelte-kit/output/client/_app/immutable/nodes/2.OkkHA0lV.js new file mode 100644 index 00000000..a044ba76 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/nodes/2.OkkHA0lV.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DXZbZvqb.js","../chunks/Bzak7iHL.js","../chunks/Dexp9pM5.js","../chunks/25AjRaeI.js","../chunks/CRDN6Mh7.js","../chunks/B12dZE2q.js","../chunks/BKSreT2u.js","../chunks/agKGoZF1.js","../chunks/jOLfEXYH.js","../chunks/iABcLwh6.js","../chunks/61AlszRR.js","../chunks/BapE3c1q.js","../chunks/DZmckTjd.js","../chunks/BC20z61P.js"])))=>i.map(i=>d[i]); +import{i as u,_ as h}from"../chunks/CRDN6Mh7.js";import"../chunks/Bzak7iHL.js";import"../chunks/hqfhVoHF.js";import{c as n,f as s,a as o,g as t,d as _,b as x}from"../chunks/Dexp9pM5.js";import{a as D}from"../chunks/DcVg5zjO.js";import"../chunks/B12dZE2q.js";var b=x('

Loading…

');function $(l){var i=n(),p=s(i);{var f=a=>{var m=n(),d=s(m);D(d,()=>h(()=>import("../chunks/DXZbZvqb.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),r=>{var e=b();o(r,e)},(r,e)=>{var v=_(()=>{var{default:g}=t(e);return{HomeWithDialog:g}}),c=_(()=>t(v).HomeWithDialog);t(c)(r,{data})}),o(a,m)};u(p,a=>{a(f)})}o(l,i)}export{$ as component}; diff --git a/.svelte-kit/output/client/_app/immutable/nodes/4.Bn1qLW0B.js b/.svelte-kit/output/client/_app/immutable/nodes/4.Bn1qLW0B.js new file mode 100644 index 00000000..bb050774 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/nodes/4.Bn1qLW0B.js @@ -0,0 +1 @@ +import{_ as m}from"../chunks/BxPgF2w2.js";export{m as component}; diff --git a/.svelte-kit/output/client/_app/immutable/nodes/5.u4tkKrg-.js b/.svelte-kit/output/client/_app/immutable/nodes/5.u4tkKrg-.js new file mode 100644 index 00000000..8c0d9727 --- /dev/null +++ b/.svelte-kit/output/client/_app/immutable/nodes/5.u4tkKrg-.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BDMwQRor.js","../chunks/Bzak7iHL.js","../chunks/Dexp9pM5.js","../chunks/DZmckTjd.js","../chunks/agKGoZF1.js","../chunks/CRDN6Mh7.js","../chunks/25AjRaeI.js","../chunks/61AlszRR.js","../chunks/BKSreT2u.js","../chunks/jOLfEXYH.js","../chunks/BapE3c1q.js","../chunks/CsnJU1X_.js","../chunks/B12dZE2q.js"])))=>i.map(i=>d[i]); +import{i as F,_ as k}from"../chunks/CRDN6Mh7.js";import"../chunks/Bzak7iHL.js";import{a as r,b as c,h as E,r as P,c as _,f as p,g as i,u as v}from"../chunks/Dexp9pM5.js";import{a as $}from"../chunks/DcVg5zjO.js";import{c as j}from"../chunks/25AjRaeI.js";var w=c('

Loading…

'),y=c('
');function T(d,f){var a=y(),l=E(a);{var u=o=>{var n=_(),g=p(n);$(g,()=>k(()=>import("../chunks/BDMwQRor.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),e=>{var t=w();r(e,t)},(e,t)=>{var h=v(()=>{var{default:m}=i(t);return{LoginForm:m}}),L=v(()=>i(h).LoginForm),s=_(),x=p(s);j(x,()=>i(L),(m,b)=>{b(m,{get data(){return f.data}})}),r(e,s)}),r(o,n)};F(l,o=>{o(u)})}P(a),r(d,a)}export{T as component}; diff --git a/.svelte-kit/output/client/_app/version.json b/.svelte-kit/output/client/_app/version.json new file mode 100644 index 00000000..80adf241 --- /dev/null +++ b/.svelte-kit/output/client/_app/version.json @@ -0,0 +1 @@ +{"version":"1771363037851"} \ No newline at end of file diff --git a/.svelte-kit/output/server/.vite/manifest.json b/.svelte-kit/output/server/.vite/manifest.json new file mode 100644 index 00000000..18bbafb6 --- /dev/null +++ b/.svelte-kit/output/server/.vite/manifest.json @@ -0,0 +1,179 @@ +{ + ".svelte-kit/generated/server/internal.js": { + "file": "internal.js", + "name": "internal", + "src": ".svelte-kit/generated/server/internal.js", + "isEntry": true, + "imports": [ + "_root.js", + "_environment.js", + "_internal.js" + ] + }, + "_environment.js": { + "file": "chunks/environment.js", + "name": "environment" + }, + "_exports.js": { + "file": "chunks/exports.js", + "name": "exports", + "imports": [ + "_index.js", + "_root.js" + ] + }, + "_false.js": { + "file": "chunks/false.js", + "name": "false" + }, + "_index.js": { + "file": "chunks/index.js", + "name": "index" + }, + "_internal.js": { + "file": "chunks/internal.js", + "name": "internal", + "imports": [ + "_root.js", + "_environment.js" + ], + "dynamicImports": [ + "src/hooks.server.ts" + ] + }, + "_root.js": { + "file": "chunks/root.js", + "name": "root", + "imports": [ + "_index.js", + "_false.js" + ] + }, + "_shared.js": { + "file": "chunks/shared.js", + "name": "shared", + "imports": [ + "_utils.js" + ] + }, + "_utils.js": { + "file": "chunks/utils.js", + "name": "utils" + }, + "_utils2.js": { + "file": "chunks/utils2.js", + "name": "utils" + }, + "node_modules/@sveltejs/kit/src/runtime/app/server/remote/index.js": { + "file": "remote-entry.js", + "name": "remote-entry", + "src": "node_modules/@sveltejs/kit/src/runtime/app/server/remote/index.js", + "isEntry": true, + "imports": [ + "_shared.js", + "_false.js", + "_environment.js" + ] + }, + "node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte": { + "file": "entries/fallbacks/error.svelte.js", + "name": "entries/fallbacks/error.svelte", + "src": "node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte", + "isEntry": true, + "imports": [ + "_index.js", + "_exports.js", + "_root.js", + "_utils.js" + ] + }, + "node_modules/@sveltejs/kit/src/runtime/server/index.js": { + "file": "index.js", + "name": "index", + "src": "node_modules/@sveltejs/kit/src/runtime/server/index.js", + "isEntry": true, + "imports": [ + "_false.js", + "_environment.js", + "_shared.js", + "_exports.js", + "_utils.js", + "_internal.js" + ] + }, + "src/hooks.server.ts": { + "file": "entries/hooks.server.js", + "name": "entries/hooks.server", + "src": "src/hooks.server.ts", + "isEntry": true, + "isDynamicEntry": true + }, + "src/routes/+layout.svelte": { + "file": "entries/pages/_layout.svelte.js", + "name": "entries/pages/_layout.svelte", + "src": "src/routes/+layout.svelte", + "isEntry": true, + "imports": [ + "_index.js" + ], + "css": [ + "_app/immutable/assets/_layout.xzg7NZgL.css" + ] + }, + "src/routes/+layout.ts": { + "file": "entries/pages/_layout.ts.js", + "name": "entries/pages/_layout.ts", + "src": "src/routes/+layout.ts", + "isEntry": true + }, + "src/routes/+page.server.ts": { + "file": "entries/pages/_page.server.ts.js", + "name": "entries/pages/_page.server.ts", + "src": "src/routes/+page.server.ts", + "isEntry": true + }, + "src/routes/+page.svelte": { + "file": "entries/pages/_page.svelte.js", + "name": "entries/pages/_page.svelte", + "src": "src/routes/+page.svelte", + "isEntry": true, + "imports": [ + "_index.js", + "_utils2.js" + ] + }, + "src/routes/items/+page.server.ts": { + "file": "entries/pages/items/_page.server.ts.js", + "name": "entries/pages/items/_page.server.ts", + "src": "src/routes/items/+page.server.ts", + "isEntry": true + }, + "src/routes/items/+page.svelte": { + "file": "entries/pages/items/_page.svelte.js", + "name": "entries/pages/items/_page.svelte", + "src": "src/routes/items/+page.svelte", + "isEntry": true, + "imports": [ + "_index.js", + "_utils2.js" + ] + }, + "src/routes/login/+page.server.ts": { + "file": "entries/pages/login/_page.server.ts.js", + "name": "entries/pages/login/_page.server.ts", + "src": "src/routes/login/+page.server.ts", + "isEntry": true + }, + "src/routes/login/+page.svelte": { + "file": "entries/pages/login/_page.svelte.js", + "name": "entries/pages/login/_page.svelte", + "src": "src/routes/login/+page.svelte", + "isEntry": true + }, + "src/routes/logout/+page.server.ts": { + "file": "entries/pages/logout/_page.server.ts.js", + "name": "entries/pages/logout/_page.server.ts", + "src": "src/routes/logout/+page.server.ts", + "isEntry": true + } +} \ No newline at end of file diff --git a/.svelte-kit/output/server/_app/immutable/assets/_layout.xzg7NZgL.css b/.svelte-kit/output/server/_app/immutable/assets/_layout.xzg7NZgL.css new file mode 100644 index 00000000..7b3a3704 --- /dev/null +++ b/.svelte-kit/output/server/_app/immutable/assets/_layout.xzg7NZgL.css @@ -0,0 +1 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--tracking-widest:.1em;--radius-xs:.125rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border)}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.start-2{inset-inline-start:calc(var(--spacing)*2)}.end-2{inset-inline-end:calc(var(--spacing)*2)}.end-4{inset-inline-end:calc(var(--spacing)*4)}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-14{width:calc(var(--spacing)*14);height:calc(var(--spacing)*14)}.size-20{width:calc(var(--spacing)*20);height:calc(var(--spacing)*20)}.h-\(--bits-select-anchor-height\){height:var(--bits-select-anchor-height)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-24{height:calc(var(--spacing)*24)}.h-px{height:1px}.max-h-\(--bits-dropdown-menu-content-available-height\){max-height:var(--bits-dropdown-menu-content-available-height)}.max-h-\(--bits-select-content-available-height\){max-height:var(--bits-select-content-available-height)}.max-h-\[90vh\]{max-height:90vh}.min-h-screen{min-height:100vh}.w-16{width:calc(var(--spacing)*16)}.w-\[70px\]{width:70px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[200px\]{max-width:200px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-\(--bits-select-anchor-width\){min-width:var(--bits-select-anchor-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[8rem\]{min-width:8rem}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--bits-dropdown-menu-content-transform-origin\){transform-origin:var(--bits-dropdown-menu-content-transform-origin)}.origin-\(--bits-select-content-transform-origin\){transform-origin:var(--bits-select-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-input{border-color:var(--input)}.border-transparent{border-color:#0000}.bg-background,.bg-background\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/95{background-color:color-mix(in oklab,var(--background)95%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.ps-2{padding-inline-start:calc(var(--spacing)*2)}.ps-8{padding-inline-start:calc(var(--spacing)*8)}.pe-2{padding-inline-end:calc(var(--spacing)*2)}.pe-8{padding-inline-end:calc(var(--spacing)*8)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-destructive:focus{color:var(--destructive)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\[highlighted\]\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[inset\]\:ps-8[data-inset]{padding-inline-start:calc(var(--spacing)*8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:min-h-full[data-orientation=vertical]{min-height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:data-highlighted\:text-destructive[data-variant=destructive][data-highlighted]{color:var(--destructive)}@media(min-width:40rem){.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:text-start{text-align:start}}@media(min-width:48rem){.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-destructive\/70:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/70:is(.dark *){background-color:color-mix(in oklab,var(--destructive)70%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media(hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}@media(hover:hover){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper)>th,:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>th\,td\]\:bg-muted\/50:hover>svelte-css-wrapper) td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media(hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:#fff;--foreground:#09090b;--muted:#f4f4f5;--muted-foreground:#71717a;--popover:#fff;--popover-foreground:#09090b;--card:#fff;--card-foreground:#09090b;--border:#e4e4e7;--input:#e4e4e7;--primary:#18181b;--primary-foreground:#fafafa;--secondary:#f4f4f5;--secondary-foreground:#18181b;--accent:#f4f4f5;--accent-foreground:#18181b;--destructive:#dc2626;--destructive-foreground:#fafafa;--ring:#09090b;--sidebar:#fafafa;--sidebar-foreground:#3f3f46;--sidebar-primary:#18181b;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f4f4f5;--sidebar-accent-foreground:#18181b;--sidebar-border:#e5e7eb;--sidebar-ring:#3b82f6;--radius:.5rem}.dark{--background:#09090b;--foreground:#fafafa;--muted:#27272a;--muted-foreground:#a1a1aa;--popover:#09090b;--popover-foreground:#fafafa;--card:#09090b;--card-foreground:#fafafa;--border:#27272a;--input:#27272a;--primary:#fafafa;--primary-foreground:#18181b;--secondary:#27272a;--secondary-foreground:#fafafa;--accent:#27272a;--accent-foreground:#fafafa;--destructive:#7f1d1d;--destructive-foreground:#fafafa;--ring:#d4d4d8;--sidebar:#18181b;--sidebar-foreground:#f4f4f5;--sidebar-primary:#1d4ed8;--sidebar-primary-foreground:#fff;--sidebar-accent:#27272a;--sidebar-accent-foreground:#f4f4f5;--sidebar-border:#27272a;--sidebar-ring:#3b82f6}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}} diff --git a/.svelte-kit/output/server/chunks/environment.js b/.svelte-kit/output/server/chunks/environment.js new file mode 100644 index 00000000..fe987e51 --- /dev/null +++ b/.svelte-kit/output/server/chunks/environment.js @@ -0,0 +1,34 @@ +let base = ""; +let assets = base; +const app_dir = "_app"; +const relative = true; +const initial = { base, assets }; +function override(paths) { + base = paths.base; + assets = paths.assets; +} +function reset() { + base = initial.base; + assets = initial.assets; +} +function set_assets(path) { + assets = initial.assets = path; +} +let prerendering = false; +function set_building() { +} +function set_prerendering() { + prerendering = true; +} +export { + set_building as a, + set_prerendering as b, + base as c, + app_dir as d, + assets as e, + reset as f, + override as o, + prerendering as p, + relative as r, + set_assets as s +}; diff --git a/.svelte-kit/output/server/chunks/exports.js b/.svelte-kit/output/server/chunks/exports.js new file mode 100644 index 00000000..3aab1139 --- /dev/null +++ b/.svelte-kit/output/server/chunks/exports.js @@ -0,0 +1,232 @@ +import { n as noop } from "./index.js"; +import { s as safe_not_equal } from "./root.js"; +import "clsx"; +const SCHEME = /^[a-z][a-z\d+\-.]+:/i; +const internal = new URL("sveltekit-internal://"); +function resolve(base, path) { + if (path[0] === "/" && path[1] === "/") return path; + let url = new URL(base, internal); + url = new URL(path, url); + return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href; +} +function normalize_path(path, trailing_slash) { + if (path === "/" || trailing_slash === "ignore") return path; + if (trailing_slash === "never") { + return path.endsWith("/") ? path.slice(0, -1) : path; + } else if (trailing_slash === "always" && !path.endsWith("/")) { + return path + "/"; + } + return path; +} +function decode_pathname(pathname) { + return pathname.split("%25").map(decodeURI).join("%25"); +} +function decode_params(params) { + for (const key in params) { + params[key] = decodeURIComponent(params[key]); + } + return params; +} +function make_trackable(url, callback, search_params_callback, allow_hash = false) { + const tracked = new URL(url); + Object.defineProperty(tracked, "searchParams", { + value: new Proxy(tracked.searchParams, { + get(obj, key) { + if (key === "get" || key === "getAll" || key === "has") { + return (param, ...rest) => { + search_params_callback(param); + return obj[key](param, ...rest); + }; + } + callback(); + const value = Reflect.get(obj, key); + return typeof value === "function" ? value.bind(obj) : value; + } + }), + enumerable: true, + configurable: true + }); + const tracked_url_properties = ["href", "pathname", "search", "toString", "toJSON"]; + if (allow_hash) tracked_url_properties.push("hash"); + for (const property of tracked_url_properties) { + Object.defineProperty(tracked, property, { + get() { + callback(); + return url[property]; + }, + enumerable: true, + configurable: true + }); + } + { + tracked[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => { + return inspect(url, opts); + }; + tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => { + return inspect(url.searchParams, opts); + }; + } + if (!allow_hash) { + disable_hash(tracked); + } + return tracked; +} +function disable_hash(url) { + allow_nodejs_console_log(url); + Object.defineProperty(url, "hash", { + get() { + throw new Error( + "Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead" + ); + } + }); +} +function disable_search(url) { + allow_nodejs_console_log(url); + for (const property of ["search", "searchParams"]) { + Object.defineProperty(url, property, { + get() { + throw new Error(`Cannot access url.${property} on a page with prerendering enabled`); + } + }); + } +} +function allow_nodejs_console_log(url) { + { + url[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => { + return inspect(new URL(url), opts); + }; + } +} +const subscriber_queue = []; +function readable(value, start) { + return { + subscribe: writable(value, start).subscribe + }; +} +function writable(value, start = noop) { + let stop = null; + const subscribers = /* @__PURE__ */ new Set(); + function set(new_value) { + if (safe_not_equal(value, new_value)) { + value = new_value; + if (stop) { + const run_queue = !subscriber_queue.length; + for (const subscriber of subscribers) { + subscriber[1](); + subscriber_queue.push(subscriber, value); + } + if (run_queue) { + for (let i = 0; i < subscriber_queue.length; i += 2) { + subscriber_queue[i][0](subscriber_queue[i + 1]); + } + subscriber_queue.length = 0; + } + } + } + } + function update(fn) { + set(fn( + /** @type {T} */ + value + )); + } + function subscribe(run, invalidate = noop) { + const subscriber = [run, invalidate]; + subscribers.add(subscriber); + if (subscribers.size === 1) { + stop = start(set, update) || noop; + } + run( + /** @type {T} */ + value + ); + return () => { + subscribers.delete(subscriber); + if (subscribers.size === 0 && stop) { + stop(); + stop = null; + } + }; + } + return { set, update, subscribe }; +} +function validator(expected) { + function validate(module, file) { + if (!module) return; + for (const key in module) { + if (key[0] === "_" || expected.has(key)) continue; + const values = [...expected.values()]; + const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`; + throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`); + } + } + return validate; +} +function hint_for_supported_files(key, ext = ".js") { + const supported_files = []; + if (valid_layout_exports.has(key)) { + supported_files.push(`+layout${ext}`); + } + if (valid_page_exports.has(key)) { + supported_files.push(`+page${ext}`); + } + if (valid_layout_server_exports.has(key)) { + supported_files.push(`+layout.server${ext}`); + } + if (valid_page_server_exports.has(key)) { + supported_files.push(`+page.server${ext}`); + } + if (valid_server_exports.has(key)) { + supported_files.push(`+server${ext}`); + } + if (supported_files.length > 0) { + return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`; + } +} +const valid_layout_exports = /* @__PURE__ */ new Set([ + "load", + "prerender", + "csr", + "ssr", + "trailingSlash", + "config" +]); +const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]); +const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]); +const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]); +const valid_server_exports = /* @__PURE__ */ new Set([ + "GET", + "POST", + "PATCH", + "PUT", + "DELETE", + "OPTIONS", + "HEAD", + "fallback", + "prerender", + "trailingSlash", + "config", + "entries" +]); +const validate_layout_exports = validator(valid_layout_exports); +const validate_page_exports = validator(valid_page_exports); +const validate_layout_server_exports = validator(valid_layout_server_exports); +const validate_page_server_exports = validator(valid_page_server_exports); +const validate_server_exports = validator(valid_server_exports); +export { + SCHEME as S, + decode_params as a, + validate_layout_exports as b, + validate_page_server_exports as c, + disable_search as d, + validate_page_exports as e, + resolve as f, + decode_pathname as g, + validate_server_exports as h, + make_trackable as m, + normalize_path as n, + readable as r, + validate_layout_server_exports as v, + writable as w +}; diff --git a/.svelte-kit/output/server/chunks/false.js b/.svelte-kit/output/server/chunks/false.js new file mode 100644 index 00000000..f3effd69 --- /dev/null +++ b/.svelte-kit/output/server/chunks/false.js @@ -0,0 +1,4 @@ +const DEV = false; +export { + DEV as D +}; diff --git a/.svelte-kit/output/server/chunks/index.js b/.svelte-kit/output/server/chunks/index.js new file mode 100644 index 00000000..b6ed9f23 --- /dev/null +++ b/.svelte-kit/output/server/chunks/index.js @@ -0,0 +1,1168 @@ +import { clsx as clsx$1 } from "clsx"; +import * as devalue from "devalue"; +var is_array = Array.isArray; +var index_of = Array.prototype.indexOf; +var includes = Array.prototype.includes; +var array_from = Array.from; +var define_property = Object.defineProperty; +var get_descriptor = Object.getOwnPropertyDescriptor; +var object_prototype = Object.prototype; +var array_prototype = Array.prototype; +var get_prototype_of = Object.getPrototypeOf; +var is_extensible = Object.isExtensible; +const noop = () => { +}; +function run_all(arr) { + for (var i = 0; i < arr.length; i++) { + arr[i](); + } +} +function deferred() { + var resolve; + var reject; + var promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + return { promise, resolve, reject }; +} +const DERIVED = 1 << 1; +const EFFECT = 1 << 2; +const RENDER_EFFECT = 1 << 3; +const MANAGED_EFFECT = 1 << 24; +const BLOCK_EFFECT = 1 << 4; +const BRANCH_EFFECT = 1 << 5; +const ROOT_EFFECT = 1 << 6; +const BOUNDARY_EFFECT = 1 << 7; +const CONNECTED = 1 << 9; +const CLEAN = 1 << 10; +const DIRTY = 1 << 11; +const MAYBE_DIRTY = 1 << 12; +const INERT = 1 << 13; +const DESTROYED = 1 << 14; +const REACTION_RAN = 1 << 15; +const EFFECT_TRANSPARENT = 1 << 16; +const EAGER_EFFECT = 1 << 17; +const HEAD_EFFECT = 1 << 18; +const EFFECT_PRESERVED = 1 << 19; +const USER_EFFECT = 1 << 20; +const WAS_MARKED = 1 << 16; +const REACTION_IS_UPDATING = 1 << 21; +const ASYNC = 1 << 22; +const ERROR_VALUE = 1 << 23; +const STATE_SYMBOL = Symbol("$state"); +const LEGACY_PROPS = Symbol("legacy props"); +const STALE_REACTION = new class StaleReactionError extends Error { + name = "StaleReactionError"; + message = "The reaction that called `getAbortSignal()` was re-run or destroyed"; +}(); +const COMMENT_NODE = 8; +function lifecycle_outside_component(name) { + { + throw new Error(`https://svelte.dev/e/lifecycle_outside_component`); + } +} +const HYDRATION_START = "["; +const HYDRATION_START_ELSE = "[!"; +const HYDRATION_END = "]"; +const HYDRATION_ERROR = {}; +const ELEMENT_IS_NAMESPACED = 1; +const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1; +const ELEMENT_IS_INPUT = 1 << 2; +const UNINITIALIZED = Symbol(); +const VOID_ELEMENT_NAMES = [ + "area", + "base", + "br", + "col", + "command", + "embed", + "hr", + "img", + "input", + "keygen", + "link", + "meta", + "param", + "source", + "track", + "wbr" +]; +function is_void(name) { + return VOID_ELEMENT_NAMES.includes(name) || name.toLowerCase() === "!doctype"; +} +const DOM_BOOLEAN_ATTRIBUTES = [ + "allowfullscreen", + "async", + "autofocus", + "autoplay", + "checked", + "controls", + "default", + "disabled", + "formnovalidate", + "indeterminate", + "inert", + "ismap", + "loop", + "multiple", + "muted", + "nomodule", + "novalidate", + "open", + "playsinline", + "readonly", + "required", + "reversed", + "seamless", + "selected", + "webkitdirectory", + "defer", + "disablepictureinpicture", + "disableremoteplayback" +]; +function is_boolean_attribute(name) { + return DOM_BOOLEAN_ATTRIBUTES.includes(name); +} +const PASSIVE_EVENTS = ["touchstart", "touchmove"]; +function is_passive_event(name) { + return PASSIVE_EVENTS.includes(name); +} +const RAW_TEXT_ELEMENTS = ( + /** @type {const} */ + ["textarea", "script", "style", "title"] +); +function is_raw_text_element(name) { + return RAW_TEXT_ELEMENTS.includes( + /** @type {typeof RAW_TEXT_ELEMENTS[number]} */ + name + ); +} +const ATTR_REGEX = /[&"<]/g; +const CONTENT_REGEX = /[&<]/g; +function escape_html(value, is_attr) { + const str = String(value ?? ""); + const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX; + pattern.lastIndex = 0; + let escaped = ""; + let last = 0; + while (pattern.test(str)) { + const i = pattern.lastIndex - 1; + const ch = str[i]; + escaped += str.substring(last, i) + (ch === "&" ? "&" : ch === '"' ? """ : "<"); + last = i + 1; + } + return escaped + str.substring(last); +} +const replacements = { + translate: /* @__PURE__ */ new Map([ + [true, "yes"], + [false, "no"] + ]) +}; +function attr(name, value, is_boolean = false) { + if (name === "hidden" && value !== "until-found") { + is_boolean = true; + } + if (value == null || !value && is_boolean) return ""; + const normalized = name in replacements && replacements[name].get(value) || value; + const assignment = is_boolean ? `=""` : `="${escape_html(normalized, true)}"`; + return ` ${name}${assignment}`; +} +function clsx(value) { + if (typeof value === "object") { + return clsx$1(value); + } else { + return value ?? ""; + } +} +const whitespace = [..." \n\r\f \v\uFEFF"]; +function to_class(value, hash, directives) { + var classname = value == null ? "" : "" + value; + if (hash) { + classname = classname ? classname + " " + hash : hash; + } + if (directives) { + for (var key in directives) { + if (directives[key]) { + classname = classname ? classname + " " + key : key; + } else if (classname.length) { + var len = key.length; + var a = 0; + while ((a = classname.indexOf(key, a)) >= 0) { + var b = a + len; + if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) { + classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1); + } else { + a = b; + } + } + } + } + } + return classname === "" ? null : classname; +} +function append_styles(styles, important = false) { + var separator = important ? " !important;" : ";"; + var css = ""; + for (var key in styles) { + var value = styles[key]; + if (value != null && value !== "") { + css += " " + key + ": " + value + separator; + } + } + return css; +} +function to_css_name(name) { + if (name[0] !== "-" || name[1] !== "-") { + return name.toLowerCase(); + } + return name; +} +function to_style(value, styles) { + if (styles) { + var new_style = ""; + var normal_styles; + var important_styles; + if (Array.isArray(styles)) { + normal_styles = styles[0]; + important_styles = styles[1]; + } else { + normal_styles = styles; + } + if (value) { + value = String(value).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim(); + var in_str = false; + var in_apo = 0; + var in_comment = false; + var reserved_names = []; + if (normal_styles) { + reserved_names.push(...Object.keys(normal_styles).map(to_css_name)); + } + if (important_styles) { + reserved_names.push(...Object.keys(important_styles).map(to_css_name)); + } + var start_index = 0; + var name_index = -1; + const len = value.length; + for (var i = 0; i < len; i++) { + var c = value[i]; + if (in_comment) { + if (c === "/" && value[i - 1] === "*") { + in_comment = false; + } + } else if (in_str) { + if (in_str === c) { + in_str = false; + } + } else if (c === "/" && value[i + 1] === "*") { + in_comment = true; + } else if (c === '"' || c === "'") { + in_str = c; + } else if (c === "(") { + in_apo++; + } else if (c === ")") { + in_apo--; + } + if (!in_comment && in_str === false && in_apo === 0) { + if (c === ":" && name_index === -1) { + name_index = i; + } else if (c === ";" || i === len - 1) { + if (name_index !== -1) { + var name = to_css_name(value.substring(start_index, name_index).trim()); + if (!reserved_names.includes(name)) { + if (c !== ";") { + i++; + } + var property = value.substring(start_index, i).trim(); + new_style += " " + property + ";"; + } + } + start_index = i + 1; + name_index = -1; + } + } + } + } + if (normal_styles) { + new_style += append_styles(normal_styles); + } + if (important_styles) { + new_style += append_styles(important_styles, true); + } + new_style = new_style.trim(); + return new_style === "" ? null : new_style; + } + return value == null ? null : String(value); +} +const BLOCK_OPEN = ``; +const BLOCK_CLOSE = ``; +const EMPTY_COMMENT = ``; +let controller = null; +function abort() { + controller?.abort(STALE_REACTION); + controller = null; +} +function await_invalid() { + const error = new Error(`await_invalid +Encountered asynchronous work while rendering synchronously. +https://svelte.dev/e/await_invalid`); + error.name = "Svelte error"; + throw error; +} +function invalid_csp() { + const error = new Error(`invalid_csp +\`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously. +https://svelte.dev/e/invalid_csp`); + error.name = "Svelte error"; + throw error; +} +function server_context_required() { + const error = new Error(`server_context_required +Could not resolve \`render\` context. +https://svelte.dev/e/server_context_required`); + error.name = "Svelte error"; + throw error; +} +var ssr_context = null; +function set_ssr_context(v) { + ssr_context = v; +} +function getContext(key) { + const context_map = get_or_init_context_map(); + const result = ( + /** @type {T} */ + context_map.get(key) + ); + return result; +} +function setContext(key, context) { + get_or_init_context_map().set(key, context); + return context; +} +function get_or_init_context_map(name) { + if (ssr_context === null) { + lifecycle_outside_component(); + } + return ssr_context.c ??= new Map(get_parent_context(ssr_context) || void 0); +} +function push(fn) { + ssr_context = { p: ssr_context, c: null, r: null }; +} +function pop() { + ssr_context = /** @type {SSRContext} */ + ssr_context.p; +} +function get_parent_context(ssr_context2) { + let parent = ssr_context2.p; + while (parent !== null) { + const context_map = parent.c; + if (context_map !== null) { + return context_map; + } + parent = parent.p; + } + return null; +} +function unresolved_hydratable(key, stack) { + { + console.warn(`https://svelte.dev/e/unresolved_hydratable`); + } +} +function get_render_context() { + const store = als?.getStore(); + { + server_context_required(); + } + return store; +} +let als = null; +let text_encoder; +let crypto; +async function sha256(data) { + text_encoder ??= new TextEncoder(); + crypto ??= globalThis.crypto?.subtle?.digest ? globalThis.crypto : ( + // @ts-ignore - we don't install node types in the prod build + // don't use 'node:crypto' because static analysers will think we rely on node when we don't + (await import( + /* @vite-ignore */ + "node:crypto" + )).webcrypto + ); + const hash_buffer = await crypto.subtle.digest("SHA-256", text_encoder.encode(data)); + return base64_encode(hash_buffer); +} +function base64_encode(bytes) { + if (globalThis.Buffer) { + return globalThis.Buffer.from(bytes).toString("base64"); + } + let binary = ""; + for (let i = 0; i < bytes.length; i++) { + binary += String.fromCharCode(bytes[i]); + } + return btoa(binary); +} +class Renderer { + /** + * The contents of the renderer. + * @type {RendererItem[]} + */ + #out = []; + /** + * Any `onDestroy` callbacks registered during execution of this renderer. + * @type {(() => void)[] | undefined} + */ + #on_destroy = void 0; + /** + * Whether this renderer is a component body. + * @type {boolean} + */ + #is_component_body = false; + /** + * The type of string content that this renderer is accumulating. + * @type {RendererType} + */ + type; + /** @type {Renderer | undefined} */ + #parent; + /** + * Asynchronous work associated with this renderer + * @type {Promise | undefined} + */ + promise = void 0; + /** + * State which is associated with the content tree as a whole. + * It will be re-exposed, uncopied, on all children. + * @type {SSRState} + * @readonly + */ + global; + /** + * State that is local to the branch it is declared in. + * It will be shallow-copied to all children. + * + * @type {{ select_value: string | undefined }} + */ + local; + /** + * @param {SSRState} global + * @param {Renderer | undefined} [parent] + */ + constructor(global, parent) { + this.#parent = parent; + this.global = global; + this.local = parent ? { ...parent.local } : { select_value: void 0 }; + this.type = parent ? parent.type : "body"; + } + /** + * @param {(renderer: Renderer) => void} fn + */ + head(fn) { + const head2 = new Renderer(this.global, this); + head2.type = "head"; + this.#out.push(head2); + head2.child(fn); + } + /** + * @param {Array>} blockers + * @param {(renderer: Renderer) => void} fn + */ + async_block(blockers, fn) { + this.#out.push(BLOCK_OPEN); + this.async(blockers, fn); + this.#out.push(BLOCK_CLOSE); + } + /** + * @param {Array>} blockers + * @param {(renderer: Renderer) => void} fn + */ + async(blockers, fn) { + let callback = fn; + if (blockers.length > 0) { + const context = ssr_context; + callback = (renderer) => { + return Promise.all(blockers).then(() => { + const previous_context = ssr_context; + try { + set_ssr_context(context); + return fn(renderer); + } finally { + set_ssr_context(previous_context); + } + }); + }; + } + this.child(callback); + } + /** + * @param {Array<() => void>} thunks + */ + run(thunks) { + const context = ssr_context; + let promise = Promise.resolve(thunks[0]()); + const promises = [promise]; + for (const fn of thunks.slice(1)) { + promise = promise.then(() => { + const previous_context = ssr_context; + set_ssr_context(context); + try { + return fn(); + } finally { + set_ssr_context(previous_context); + } + }); + promises.push(promise); + } + promise.catch(noop); + this.promise = promise; + return promises; + } + /** + * @param {(renderer: Renderer) => MaybePromise} fn + */ + child_block(fn) { + this.#out.push(BLOCK_OPEN); + this.child(fn); + this.#out.push(BLOCK_CLOSE); + } + /** + * Create a child renderer. The child renderer inherits the state from the parent, + * but has its own content. + * @param {(renderer: Renderer) => MaybePromise} fn + */ + child(fn) { + const child = new Renderer(this.global, this); + this.#out.push(child); + const parent = ssr_context; + set_ssr_context({ + ...ssr_context, + p: parent, + c: null, + r: child + }); + const result = fn(child); + set_ssr_context(parent); + if (result instanceof Promise) { + if (child.global.mode === "sync") { + await_invalid(); + } + result.catch(() => { + }); + child.promise = result; + } + return child; + } + /** + * Create a component renderer. The component renderer inherits the state from the parent, + * but has its own content. It is treated as an ordering boundary for ondestroy callbacks. + * @param {(renderer: Renderer) => MaybePromise} fn + * @param {Function} [component_fn] + * @returns {void} + */ + component(fn, component_fn) { + push(); + const child = this.child(fn); + child.#is_component_body = true; + pop(); + } + /** + * @param {Record} attrs + * @param {(renderer: Renderer) => void} fn + * @param {string | undefined} [css_hash] + * @param {Record | undefined} [classes] + * @param {Record | undefined} [styles] + * @param {number | undefined} [flags] + * @param {boolean | undefined} [is_rich] + * @returns {void} + */ + select(attrs, fn, css_hash, classes, styles, flags, is_rich) { + const { value, ...select_attrs } = attrs; + this.push(``); + this.child((renderer) => { + renderer.local.select_value = value; + fn(renderer); + }); + this.push(`${is_rich ? "" : ""}`); + } + /** + * @param {Record} attrs + * @param {string | number | boolean | ((renderer: Renderer) => void)} body + * @param {string | undefined} [css_hash] + * @param {Record | undefined} [classes] + * @param {Record | undefined} [styles] + * @param {number | undefined} [flags] + * @param {boolean | undefined} [is_rich] + */ + option(attrs, body, css_hash, classes, styles, flags, is_rich) { + this.#out.push(` { + if ("value" in attrs) { + value = attrs.value; + } + if (value === this.local.select_value) { + renderer.#out.push(' selected=""'); + } + renderer.#out.push(`>${body2}${is_rich ? "" : ""}`); + if (head2) { + renderer.head((child) => child.push(head2)); + } + }; + if (typeof body === "function") { + this.child((renderer) => { + const r = new Renderer(this.global, this); + body(r); + if (this.global.mode === "async") { + return r.#collect_content_async().then((content) => { + close(renderer, content.body.replaceAll("", ""), content); + }); + } else { + const content = r.#collect_content(); + close(renderer, content.body.replaceAll("", ""), content); + } + }); + } else { + close(this, body, { body }); + } + } + /** + * @param {(renderer: Renderer) => void} fn + */ + title(fn) { + const path = this.get_path(); + const close = (head2) => { + this.global.set_title(head2, path); + }; + this.child((renderer) => { + const r = new Renderer(renderer.global, renderer); + fn(r); + if (renderer.global.mode === "async") { + return r.#collect_content_async().then((content) => { + close(content.head); + }); + } else { + const content = r.#collect_content(); + close(content.head); + } + }); + } + /** + * @param {string | (() => Promise)} content + */ + push(content) { + if (typeof content === "function") { + this.child(async (renderer) => renderer.push(await content())); + } else { + this.#out.push(content); + } + } + /** + * @param {() => void} fn + */ + on_destroy(fn) { + (this.#on_destroy ??= []).push(fn); + } + /** + * @returns {number[]} + */ + get_path() { + return this.#parent ? [...this.#parent.get_path(), this.#parent.#out.indexOf(this)] : []; + } + /** + * @deprecated this is needed for legacy component bindings + */ + copy() { + const copy = new Renderer(this.global, this.#parent); + copy.#out = this.#out.map((item) => item instanceof Renderer ? item.copy() : item); + copy.promise = this.promise; + return copy; + } + /** + * @param {Renderer} other + * @deprecated this is needed for legacy component bindings + */ + subsume(other) { + if (this.global.mode !== other.global.mode) { + throw new Error( + "invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!" + ); + } + this.local = other.local; + this.#out = other.#out.map((item) => { + if (item instanceof Renderer) { + item.subsume(item); + } + return item; + }); + this.promise = other.promise; + this.type = other.type; + } + get length() { + return this.#out.length; + } + /** + * Only available on the server and when compiling with the `server` option. + * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app. + * @template {Record} Props + * @param {Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string; csp?: Csp }} [options] + * @returns {RenderOutput} + */ + static render(component, options = {}) { + let sync; + const result = ( + /** @type {RenderOutput} */ + {} + ); + Object.defineProperties(result, { + html: { + get: () => { + return (sync ??= Renderer.#render(component, options)).body; + } + }, + head: { + get: () => { + return (sync ??= Renderer.#render(component, options)).head; + } + }, + body: { + get: () => { + return (sync ??= Renderer.#render(component, options)).body; + } + }, + hashes: { + value: { + script: "" + } + }, + then: { + value: ( + /** + * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function. + * + * @template TResult1 + * @template [TResult2=never] + * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled + * @param { (reason: unknown) => TResult2 } onrejected + */ + (onfulfilled, onrejected) => { + { + const result2 = sync ??= Renderer.#render(component, options); + const user_result = onfulfilled({ + head: result2.head, + body: result2.body, + html: result2.body, + hashes: { script: [] } + }); + return Promise.resolve(user_result); + } + } + ) + } + }); + return result; + } + /** + * Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call + * after awaiting `collect_async`. + * + * Child renderers are "porous" and don't affect execution order, but component body renderers + * create ordering boundaries. Within a renderer, callbacks run in order until hitting a component boundary. + * @returns {Iterable<() => void>} + */ + *#collect_on_destroy() { + for (const component of this.#traverse_components()) { + yield* component.#collect_ondestroy(); + } + } + /** + * Performs a depth-first search of renderers, yielding the deepest components first, then additional components as we backtrack up the tree. + * @returns {Iterable} + */ + *#traverse_components() { + for (const child of this.#out) { + if (typeof child !== "string") { + yield* child.#traverse_components(); + } + } + if (this.#is_component_body) { + yield this; + } + } + /** + * @returns {Iterable<() => void>} + */ + *#collect_ondestroy() { + if (this.#on_destroy) { + for (const fn of this.#on_destroy) { + yield fn; + } + } + for (const child of this.#out) { + if (child instanceof Renderer && !child.#is_component_body) { + yield* child.#collect_ondestroy(); + } + } + } + /** + * Render a component. Throws if any of the children are performing asynchronous work. + * + * @template {Record} Props + * @param {Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string }} options + * @returns {AccumulatedContent} + */ + static #render(component, options) { + var previous_context = ssr_context; + try { + const renderer = Renderer.#open_render("sync", component, options); + const content = renderer.#collect_content(); + return Renderer.#close_render(content, renderer); + } finally { + abort(); + set_ssr_context(previous_context); + } + } + /** + * Render a component. + * + * @template {Record} Props + * @param {Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string; csp?: Csp }} options + * @returns {Promise} + */ + static async #render_async(component, options) { + const previous_context = ssr_context; + try { + const renderer = Renderer.#open_render("async", component, options); + const content = await renderer.#collect_content_async(); + const hydratables = await renderer.#collect_hydratables(); + if (hydratables !== null) { + content.head = hydratables + content.head; + } + return Renderer.#close_render(content, renderer); + } finally { + set_ssr_context(previous_context); + abort(); + } + } + /** + * Collect all of the code from the `out` array and return it as a string, or a promise resolving to a string. + * @param {AccumulatedContent} content + * @returns {AccumulatedContent} + */ + #collect_content(content = { head: "", body: "" }) { + for (const item of this.#out) { + if (typeof item === "string") { + content[this.type] += item; + } else if (item instanceof Renderer) { + item.#collect_content(content); + } + } + return content; + } + /** + * Collect all of the code from the `out` array and return it as a string. + * @param {AccumulatedContent} content + * @returns {Promise} + */ + async #collect_content_async(content = { head: "", body: "" }) { + await this.promise; + for (const item of this.#out) { + if (typeof item === "string") { + content[this.type] += item; + } else if (item instanceof Renderer) { + await item.#collect_content_async(content); + } + } + return content; + } + async #collect_hydratables() { + const ctx = get_render_context().hydratable; + for (const [_, key] of ctx.unresolved_promises) { + unresolved_hydratable(key, ctx.lookup.get(key)?.stack ?? ""); + } + for (const comparison of ctx.comparisons) { + await comparison; + } + return await this.#hydratable_block(ctx); + } + /** + * @template {Record} Props + * @param {'sync' | 'async'} mode + * @param {import('svelte').Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string; csp?: Csp }} options + * @returns {Renderer} + */ + static #open_render(mode, component, options) { + const renderer = new Renderer( + new SSRState(mode, options.idPrefix ? options.idPrefix + "-" : "", options.csp) + ); + renderer.push(BLOCK_OPEN); + push(); + if (options.context) ssr_context.c = options.context; + ssr_context.r = renderer; + component(renderer, options.props ?? {}); + pop(); + renderer.push(BLOCK_CLOSE); + return renderer; + } + /** + * @param {AccumulatedContent} content + * @param {Renderer} renderer + * @returns {AccumulatedContent & { hashes: { script: Sha256Source[] } }} + */ + static #close_render(content, renderer) { + for (const cleanup of renderer.#collect_on_destroy()) { + cleanup(); + } + let head2 = content.head + renderer.global.get_title(); + let body = content.body; + for (const { hash, code } of renderer.global.css) { + head2 += ``; + } + return { + head: head2, + body, + hashes: { + script: renderer.global.csp.script_hashes + } + }; + } + /** + * @param {HydratableContext} ctx + */ + async #hydratable_block(ctx) { + if (ctx.lookup.size === 0) { + return null; + } + let entries = []; + let has_promises = false; + for (const [k, v] of ctx.lookup) { + if (v.promises) { + has_promises = true; + for (const p of v.promises) await p; + } + entries.push(`[${devalue.uneval(k)},${v.serialized}]`); + } + let prelude = `const h = (window.__svelte ??= {}).h ??= new Map();`; + if (has_promises) { + prelude = `const r = (v) => Promise.resolve(v); + ${prelude}`; + } + const body = ` + { + ${prelude} + + for (const [k, v] of [ + ${entries.join(",\n ")} + ]) { + h.set(k, v); + } + } + `; + let csp_attr = ""; + if (this.global.csp.nonce) { + csp_attr = ` nonce="${this.global.csp.nonce}"`; + } else if (this.global.csp.hash) { + const hash = await sha256(body); + this.global.csp.script_hashes.push(`sha256-${hash}`); + } + return ` + ${body}<\/script>`; + } +} +class SSRState { + /** @readonly @type {Csp & { script_hashes: Sha256Source[] }} */ + csp; + /** @readonly @type {'sync' | 'async'} */ + mode; + /** @readonly @type {() => string} */ + uid; + /** @readonly @type {Set<{ hash: string; code: string }>} */ + css = /* @__PURE__ */ new Set(); + /** @type {{ path: number[], value: string }} */ + #title = { path: [], value: "" }; + /** + * @param {'sync' | 'async'} mode + * @param {string} id_prefix + * @param {Csp} csp + */ + constructor(mode, id_prefix = "", csp = { hash: false }) { + this.mode = mode; + this.csp = { ...csp, script_hashes: [] }; + let uid = 1; + this.uid = () => `${id_prefix}s${uid++}`; + } + get_title() { + return this.#title.value; + } + /** + * Performs a depth-first (lexicographic) comparison using the path. Rejects sets + * from earlier than or equal to the current value. + * @param {string} value + * @param {number[]} path + */ + set_title(value, path) { + const current = this.#title.path; + let i = 0; + let l = Math.min(path.length, current.length); + while (i < l && path[i] === current[i]) i += 1; + if (path[i] === void 0) return; + if (current[i] === void 0 || path[i] > current[i]) { + this.#title.path = path; + this.#title.value = value; + } + } +} +const INVALID_ATTR_NAME_CHAR_REGEX = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u; +function element(renderer, tag, attributes_fn = noop, children_fn = noop) { + renderer.push(""); + if (tag) { + renderer.push(`<${tag}`); + attributes_fn(); + renderer.push(`>`); + if (!is_void(tag)) { + children_fn(); + if (!is_raw_text_element(tag)) { + renderer.push(EMPTY_COMMENT); + } + renderer.push(``); + } + } + renderer.push(""); +} +function render(component, options = {}) { + if (options.csp?.hash && options.csp.nonce) { + invalid_csp(); + } + return Renderer.render( + /** @type {Component} */ + component, + options + ); +} +function head(hash, renderer, fn) { + renderer.head((renderer2) => { + renderer2.push(``); + renderer2.child(fn); + renderer2.push(EMPTY_COMMENT); + }); +} +function attributes(attrs, css_hash, classes, styles, flags = 0) { + if (styles) { + attrs.style = to_style(attrs.style, styles); + } + if (attrs.class) { + attrs.class = clsx(attrs.class); + } + if (css_hash || classes) { + attrs.class = to_class(attrs.class, css_hash, classes); + } + let attr_str = ""; + let name; + const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0; + const lowercase = (flags & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0; + const is_input = (flags & ELEMENT_IS_INPUT) !== 0; + for (name in attrs) { + if (typeof attrs[name] === "function") continue; + if (name[0] === "$" && name[1] === "$") continue; + if (INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue; + var value = attrs[name]; + if (lowercase) { + name = name.toLowerCase(); + } + if (is_input) { + if (name === "defaultvalue" || name === "defaultchecked") { + name = name === "defaultvalue" ? "value" : "checked"; + if (attrs[name]) continue; + } + } + attr_str += attr(name, value, is_html && is_boolean_attribute(name)); + } + return attr_str; +} +function slot(renderer, $$props, name, slot_props, fallback_fn) { + var slot_fn = $$props.$$slots?.[name]; + if (slot_fn === true) { + slot_fn = $$props["children"]; + } + if (slot_fn !== void 0) { + slot_fn(renderer, slot_props); + } +} +function bind_props(props_parent, props_now) { + for (const key in props_now) { + const initial_value = props_parent[key]; + const value = props_now[key]; + if (initial_value === void 0 && value !== void 0 && Object.getOwnPropertyDescriptor(props_parent, key)?.set) { + props_parent[key] = value; + } + } +} +function ensure_array_like(array_like_or_iterator) { + if (array_like_or_iterator) { + return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator); + } + return []; +} +export { + define_property as $, + DESTROYED as A, + BOUNDARY_EFFECT as B, + COMMENT_NODE as C, + DIRTY as D, + ERROR_VALUE as E, + ASYNC as F, + includes as G, + HYDRATION_ERROR as H, + INERT as I, + EFFECT_TRANSPARENT as J, + EFFECT_PRESERVED as K, + EAGER_EFFECT as L, + MAYBE_DIRTY as M, + STATE_SYMBOL as N, + object_prototype as O, + array_prototype as P, + get_descriptor as Q, + REACTION_RAN as R, + STALE_REACTION as S, + get_prototype_of as T, + UNINITIALIZED as U, + is_array as V, + WAS_MARKED as W, + is_extensible as X, + USER_EFFECT as Y, + REACTION_IS_UPDATING as Z, + index_of as _, + attributes as a, + array_from as a0, + is_passive_event as a1, + LEGACY_PROPS as a2, + render as a3, + setContext as a4, + bind_props as b, + clsx as c, + element as d, + escape_html as e, + ensure_array_like as f, + getContext as g, + head as h, + attr as i, + HYDRATION_END as j, + HYDRATION_START as k, + HYDRATION_START_ELSE as l, + EFFECT as m, + noop as n, + CONNECTED as o, + CLEAN as p, + DERIVED as q, + run_all as r, + slot as s, + BLOCK_EFFECT as t, + deferred as u, + BRANCH_EFFECT as v, + ROOT_EFFECT as w, + RENDER_EFFECT as x, + MANAGED_EFFECT as y, + HEAD_EFFECT as z +}; diff --git a/.svelte-kit/output/server/chunks/internal.js b/.svelte-kit/output/server/chunks/internal.js new file mode 100644 index 00000000..d857fcc6 --- /dev/null +++ b/.svelte-kit/output/server/chunks/internal.js @@ -0,0 +1,134 @@ +import { r as root } from "./root.js"; +import "./environment.js"; +let public_env = {}; +function set_private_env(environment) { +} +function set_public_env(environment) { + public_env = environment; +} +let read_implementation = null; +function set_read_implementation(fn) { + read_implementation = fn; +} +function set_manifest(_) { +} +const options = { + app_template_contains_nonce: false, + async: false, + csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } }, + csrf_check_origin: true, + csrf_trusted_origins: [], + embedded: false, + env_public_prefix: "PUBLIC_", + env_private_prefix: "", + hash_routing: false, + hooks: null, + // added lazily, via `get_hooks` + preload_strategy: "modulepreload", + root, + service_worker: false, + service_worker_options: void 0, + templates: { + app: ({ head, body, assets, nonce, env }) => '\n\n \n \n \n \n ' + head + '\n \n \n
' + body + "
\n \n\n", + error: ({ status, message }) => '\n\n \n \n ' + message + ` + + + + +
+ ` + status + '\n
\n

' + message + "

\n
\n
\n \n\n" + }, + version_hash: "1cw4viz" +}; +async function get_hooks() { + let handle; + let handleFetch; + let handleError; + let handleValidationError; + let init; + ({ handle, handleFetch, handleError, handleValidationError, init } = await import("../entries/hooks.server.js")); + let reroute; + let transport; + return { + handle, + handleFetch, + handleError, + handleValidationError, + init, + reroute, + transport + }; +} +export { + set_public_env as a, + set_read_implementation as b, + set_manifest as c, + get_hooks as g, + options as o, + public_env as p, + read_implementation as r, + set_private_env as s +}; diff --git a/.svelte-kit/output/server/chunks/root.js b/.svelte-kit/output/server/chunks/root.js new file mode 100644 index 00000000..f1fbd292 --- /dev/null +++ b/.svelte-kit/output/server/chunks/root.js @@ -0,0 +1,2613 @@ +import { H as HYDRATION_ERROR, C as COMMENT_NODE, j as HYDRATION_END, k as HYDRATION_START, l as HYDRATION_START_ELSE, r as run_all, B as BOUNDARY_EFFECT, R as REACTION_RAN, E as ERROR_VALUE, m as EFFECT, o as CONNECTED, p as CLEAN, M as MAYBE_DIRTY, D as DIRTY, q as DERIVED, W as WAS_MARKED, I as INERT, t as BLOCK_EFFECT, U as UNINITIALIZED, u as deferred, v as BRANCH_EFFECT, w as ROOT_EFFECT, x as RENDER_EFFECT, y as MANAGED_EFFECT, z as HEAD_EFFECT, A as DESTROYED, F as ASYNC, G as includes, J as EFFECT_TRANSPARENT, K as EFFECT_PRESERVED, S as STALE_REACTION, n as noop, L as EAGER_EFFECT, N as STATE_SYMBOL, O as object_prototype, P as array_prototype, Q as get_descriptor, T as get_prototype_of, V as is_array, X as is_extensible, Y as USER_EFFECT, Z as REACTION_IS_UPDATING, _ as index_of, $ as define_property, a0 as array_from, a1 as is_passive_event, a2 as LEGACY_PROPS, a3 as render, a4 as setContext } from "./index.js"; +import { D as DEV } from "./false.js"; +import "clsx"; +function equals(value) { + return value === this.v; +} +function safe_not_equal(a, b) { + return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function"; +} +function safe_equals(value) { + return !safe_not_equal(value, this.v); +} +function effect_update_depth_exceeded() { + { + throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`); + } +} +function hydration_failed() { + { + throw new Error(`https://svelte.dev/e/hydration_failed`); + } +} +function state_descriptors_fixed() { + { + throw new Error(`https://svelte.dev/e/state_descriptors_fixed`); + } +} +function state_prototype_fixed() { + { + throw new Error(`https://svelte.dev/e/state_prototype_fixed`); + } +} +function state_unsafe_mutation() { + { + throw new Error(`https://svelte.dev/e/state_unsafe_mutation`); + } +} +function svelte_boundary_reset_onerror() { + { + throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`); + } +} +function hydration_mismatch(location) { + { + console.warn(`https://svelte.dev/e/hydration_mismatch`); + } +} +function svelte_boundary_reset_noop() { + { + console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`); + } +} +let hydrating = false; +function set_hydrating(value) { + hydrating = value; +} +let hydrate_node; +function set_hydrate_node(node) { + if (node === null) { + hydration_mismatch(); + throw HYDRATION_ERROR; + } + return hydrate_node = node; +} +function hydrate_next() { + return set_hydrate_node(/* @__PURE__ */ get_next_sibling(hydrate_node)); +} +function next(count = 1) { + if (hydrating) { + var i = count; + var node = hydrate_node; + while (i--) { + node = /** @type {TemplateNode} */ + /* @__PURE__ */ get_next_sibling(node); + } + hydrate_node = node; + } +} +function skip_nodes(remove = true) { + var depth = 0; + var node = hydrate_node; + while (true) { + if (node.nodeType === COMMENT_NODE) { + var data = ( + /** @type {Comment} */ + node.data + ); + if (data === HYDRATION_END) { + if (depth === 0) return node; + depth -= 1; + } else if (data === HYDRATION_START || data === HYDRATION_START_ELSE || // "[1", "[2", etc. for if blocks + data[0] === "[" && !isNaN(Number(data.slice(1)))) { + depth += 1; + } + } + var next2 = ( + /** @type {TemplateNode} */ + /* @__PURE__ */ get_next_sibling(node) + ); + if (remove) node.remove(); + node = next2; + } +} +let tracing_mode_flag = false; +let component_context = null; +function set_component_context(context) { + component_context = context; +} +function push(props, runes = false, fn) { + component_context = { + p: component_context, + i: false, + c: null, + e: null, + s: props, + x: null, + l: null + }; +} +function pop(component) { + var context = ( + /** @type {ComponentContext} */ + component_context + ); + var effects = context.e; + if (effects !== null) { + context.e = null; + for (var fn of effects) { + create_user_effect(fn); + } + } + context.i = true; + component_context = context.p; + return ( + /** @type {T} */ + {} + ); +} +function is_runes() { + return true; +} +let micro_tasks = []; +function run_micro_tasks() { + var tasks = micro_tasks; + micro_tasks = []; + run_all(tasks); +} +function queue_micro_task(fn) { + if (micro_tasks.length === 0 && !is_flushing_sync) { + var tasks = micro_tasks; + queueMicrotask(() => { + if (tasks === micro_tasks) run_micro_tasks(); + }); + } + micro_tasks.push(fn); +} +function flush_tasks() { + while (micro_tasks.length > 0) { + run_micro_tasks(); + } +} +function handle_error(error) { + var effect = active_effect; + if (effect === null) { + active_reaction.f |= ERROR_VALUE; + return error; + } + if ((effect.f & REACTION_RAN) === 0 && (effect.f & EFFECT) === 0) { + throw error; + } + invoke_error_boundary(error, effect); +} +function invoke_error_boundary(error, effect) { + while (effect !== null) { + if ((effect.f & BOUNDARY_EFFECT) !== 0) { + if ((effect.f & REACTION_RAN) === 0) { + throw error; + } + try { + effect.b.error(error); + return; + } catch (e) { + error = e; + } + } + effect = effect.parent; + } + throw error; +} +const STATUS_MASK = -7169; +function set_signal_status(signal, status) { + signal.f = signal.f & STATUS_MASK | status; +} +function update_derived_status(derived) { + if ((derived.f & CONNECTED) !== 0 || derived.deps === null) { + set_signal_status(derived, CLEAN); + } else { + set_signal_status(derived, MAYBE_DIRTY); + } +} +function clear_marked(deps) { + if (deps === null) return; + for (const dep of deps) { + if ((dep.f & DERIVED) === 0 || (dep.f & WAS_MARKED) === 0) { + continue; + } + dep.f ^= WAS_MARKED; + clear_marked( + /** @type {Derived} */ + dep.deps + ); + } +} +function defer_effect(effect, dirty_effects, maybe_dirty_effects) { + if ((effect.f & DIRTY) !== 0) { + dirty_effects.add(effect); + } else if ((effect.f & MAYBE_DIRTY) !== 0) { + maybe_dirty_effects.add(effect); + } + clear_marked(effect.deps); + set_signal_status(effect, CLEAN); +} +const batches = /* @__PURE__ */ new Set(); +let current_batch = null; +let batch_values = null; +let queued_root_effects = []; +let last_scheduled_effect = null; +let is_flushing = false; +let is_flushing_sync = false; +class Batch { + committed = false; + /** + * The current values of any sources that are updated in this batch + * They keys of this map are identical to `this.#previous` + * @type {Map} + */ + current = /* @__PURE__ */ new Map(); + /** + * The values of any sources that are updated in this batch _before_ those updates took place. + * They keys of this map are identical to `this.#current` + * @type {Map} + */ + previous = /* @__PURE__ */ new Map(); + /** + * When the batch is committed (and the DOM is updated), we need to remove old branches + * and append new ones by calling the functions added inside (if/each/key/etc) blocks + * @type {Set<() => void>} + */ + #commit_callbacks = /* @__PURE__ */ new Set(); + /** + * If a fork is discarded, we need to destroy any effects that are no longer needed + * @type {Set<(batch: Batch) => void>} + */ + #discard_callbacks = /* @__PURE__ */ new Set(); + /** + * The number of async effects that are currently in flight + */ + #pending = 0; + /** + * The number of async effects that are currently in flight, _not_ inside a pending boundary + */ + #blocking_pending = 0; + /** + * A deferred that resolves when the batch is committed, used with `settled()` + * TODO replace with Promise.withResolvers once supported widely enough + * @type {{ promise: Promise, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null} + */ + #deferred = null; + /** + * Deferred effects (which run after async work has completed) that are DIRTY + * @type {Set} + */ + #dirty_effects = /* @__PURE__ */ new Set(); + /** + * Deferred effects that are MAYBE_DIRTY + * @type {Set} + */ + #maybe_dirty_effects = /* @__PURE__ */ new Set(); + /** + * A map of branches that still exist, but will be destroyed when this batch + * is committed — we skip over these during `process`. + * The value contains child effects that were dirty/maybe_dirty before being reset, + * so they can be rescheduled if the branch survives. + * @type {Map} + */ + #skipped_branches = /* @__PURE__ */ new Map(); + is_fork = false; + #decrement_queued = false; + is_deferred() { + return this.is_fork || this.#blocking_pending > 0; + } + /** + * Add an effect to the #skipped_branches map and reset its children + * @param {Effect} effect + */ + skip_effect(effect) { + if (!this.#skipped_branches.has(effect)) { + this.#skipped_branches.set(effect, { d: [], m: [] }); + } + } + /** + * Remove an effect from the #skipped_branches map and reschedule + * any tracked dirty/maybe_dirty child effects + * @param {Effect} effect + */ + unskip_effect(effect) { + var tracked = this.#skipped_branches.get(effect); + if (tracked) { + this.#skipped_branches.delete(effect); + for (var e of tracked.d) { + set_signal_status(e, DIRTY); + schedule_effect(e); + } + for (e of tracked.m) { + set_signal_status(e, MAYBE_DIRTY); + schedule_effect(e); + } + } + } + /** + * + * @param {Effect[]} root_effects + */ + process(root_effects) { + queued_root_effects = []; + this.apply(); + var effects = []; + var render_effects = []; + for (const root2 of root_effects) { + this.#traverse_effect_tree(root2, effects, render_effects); + } + if (this.is_deferred()) { + this.#defer_effects(render_effects); + this.#defer_effects(effects); + for (const [e, t] of this.#skipped_branches) { + reset_branch(e, t); + } + } else { + for (const fn of this.#commit_callbacks) fn(); + this.#commit_callbacks.clear(); + if (this.#pending === 0) { + this.#commit(); + } + current_batch = null; + flush_queued_effects(render_effects); + flush_queued_effects(effects); + this.#deferred?.resolve(); + } + batch_values = null; + } + /** + * Traverse the effect tree, executing effects or stashing + * them for later execution as appropriate + * @param {Effect} root + * @param {Effect[]} effects + * @param {Effect[]} render_effects + */ + #traverse_effect_tree(root2, effects, render_effects) { + root2.f ^= CLEAN; + var effect = root2.first; + var pending_boundary = null; + while (effect !== null) { + var flags2 = effect.f; + var is_branch = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0; + var is_skippable_branch = is_branch && (flags2 & CLEAN) !== 0; + var skip = is_skippable_branch || (flags2 & INERT) !== 0 || this.#skipped_branches.has(effect); + if (!skip && effect.fn !== null) { + if (is_branch) { + effect.f ^= CLEAN; + } else if (pending_boundary !== null && (flags2 & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0) { + pending_boundary.b.defer_effect(effect); + } else if ((flags2 & EFFECT) !== 0) { + effects.push(effect); + } else if (is_dirty(effect)) { + if ((flags2 & BLOCK_EFFECT) !== 0) this.#maybe_dirty_effects.add(effect); + update_effect(effect); + } + var child = effect.first; + if (child !== null) { + effect = child; + continue; + } + } + while (effect !== null) { + if (effect === pending_boundary) { + pending_boundary = null; + } + var next2 = effect.next; + if (next2 !== null) { + effect = next2; + break; + } + effect = effect.parent; + } + } + } + /** + * @param {Effect[]} effects + */ + #defer_effects(effects) { + for (var i = 0; i < effects.length; i += 1) { + defer_effect(effects[i], this.#dirty_effects, this.#maybe_dirty_effects); + } + } + /** + * Associate a change to a given source with the current + * batch, noting its previous and current values + * @param {Source} source + * @param {any} value + */ + capture(source2, value) { + if (value !== UNINITIALIZED && !this.previous.has(source2)) { + this.previous.set(source2, value); + } + if ((source2.f & ERROR_VALUE) === 0) { + this.current.set(source2, source2.v); + batch_values?.set(source2, source2.v); + } + } + activate() { + current_batch = this; + this.apply(); + } + deactivate() { + if (current_batch !== this) return; + current_batch = null; + batch_values = null; + } + flush() { + this.activate(); + if (queued_root_effects.length > 0) { + flush_effects(); + if (current_batch !== null && current_batch !== this) { + return; + } + } else if (this.#pending === 0) { + this.process([]); + } + this.deactivate(); + } + discard() { + for (const fn of this.#discard_callbacks) fn(this); + this.#discard_callbacks.clear(); + } + #commit() { + if (batches.size > 1) { + this.previous.clear(); + var previous_batch_values = batch_values; + var is_earlier = true; + for (const batch of batches) { + if (batch === this) { + is_earlier = false; + continue; + } + const sources = []; + for (const [source2, value] of this.current) { + if (batch.current.has(source2)) { + if (is_earlier && value !== batch.current.get(source2)) { + batch.current.set(source2, value); + } else { + continue; + } + } + sources.push(source2); + } + if (sources.length === 0) { + continue; + } + const others = [...batch.current.keys()].filter((s) => !this.current.has(s)); + if (others.length > 0) { + var prev_queued_root_effects = queued_root_effects; + queued_root_effects = []; + const marked = /* @__PURE__ */ new Set(); + const checked = /* @__PURE__ */ new Map(); + for (const source2 of sources) { + mark_effects(source2, others, marked, checked); + } + if (queued_root_effects.length > 0) { + current_batch = batch; + batch.apply(); + for (const root2 of queued_root_effects) { + batch.#traverse_effect_tree(root2, [], []); + } + batch.deactivate(); + } + queued_root_effects = prev_queued_root_effects; + } + } + current_batch = null; + batch_values = previous_batch_values; + } + this.committed = true; + batches.delete(this); + } + /** + * + * @param {boolean} blocking + */ + increment(blocking) { + this.#pending += 1; + if (blocking) this.#blocking_pending += 1; + } + /** + * + * @param {boolean} blocking + */ + decrement(blocking) { + this.#pending -= 1; + if (blocking) this.#blocking_pending -= 1; + if (this.#decrement_queued) return; + this.#decrement_queued = true; + queue_micro_task(() => { + this.#decrement_queued = false; + if (!this.is_deferred()) { + this.revive(); + } else if (queued_root_effects.length > 0) { + this.flush(); + } + }); + } + revive() { + for (const e of this.#dirty_effects) { + this.#maybe_dirty_effects.delete(e); + set_signal_status(e, DIRTY); + schedule_effect(e); + } + for (const e of this.#maybe_dirty_effects) { + set_signal_status(e, MAYBE_DIRTY); + schedule_effect(e); + } + this.flush(); + } + /** @param {() => void} fn */ + oncommit(fn) { + this.#commit_callbacks.add(fn); + } + /** @param {(batch: Batch) => void} fn */ + ondiscard(fn) { + this.#discard_callbacks.add(fn); + } + settled() { + return (this.#deferred ??= deferred()).promise; + } + static ensure() { + if (current_batch === null) { + const batch = current_batch = new Batch(); + batches.add(current_batch); + if (!is_flushing_sync) { + queue_micro_task(() => { + if (current_batch !== batch) { + return; + } + batch.flush(); + }); + } + } + return current_batch; + } + apply() { + return; + } +} +function flushSync(fn) { + var was_flushing_sync = is_flushing_sync; + is_flushing_sync = true; + try { + var result; + if (fn) ; + while (true) { + flush_tasks(); + if (queued_root_effects.length === 0) { + current_batch?.flush(); + if (queued_root_effects.length === 0) { + last_scheduled_effect = null; + return ( + /** @type {T} */ + result + ); + } + } + flush_effects(); + } + } finally { + is_flushing_sync = was_flushing_sync; + } +} +function flush_effects() { + is_flushing = true; + var source_stacks = null; + try { + var flush_count = 0; + while (queued_root_effects.length > 0) { + var batch = Batch.ensure(); + if (flush_count++ > 1e3) { + var updates, entry; + if (DEV) ; + infinite_loop_guard(); + } + batch.process(queued_root_effects); + old_values.clear(); + if (DEV) ; + } + } finally { + queued_root_effects = []; + is_flushing = false; + last_scheduled_effect = null; + } +} +function infinite_loop_guard() { + try { + effect_update_depth_exceeded(); + } catch (error) { + invoke_error_boundary(error, last_scheduled_effect); + } +} +let eager_block_effects = null; +function flush_queued_effects(effects) { + var length = effects.length; + if (length === 0) return; + var i = 0; + while (i < length) { + var effect = effects[i++]; + if ((effect.f & (DESTROYED | INERT)) === 0 && is_dirty(effect)) { + eager_block_effects = /* @__PURE__ */ new Set(); + update_effect(effect); + if (effect.deps === null && effect.first === null && effect.nodes === null && effect.teardown === null && effect.ac === null) { + unlink_effect(effect); + } + if (eager_block_effects?.size > 0) { + old_values.clear(); + for (const e of eager_block_effects) { + if ((e.f & (DESTROYED | INERT)) !== 0) continue; + const ordered_effects = [e]; + let ancestor = e.parent; + while (ancestor !== null) { + if (eager_block_effects.has(ancestor)) { + eager_block_effects.delete(ancestor); + ordered_effects.push(ancestor); + } + ancestor = ancestor.parent; + } + for (let j = ordered_effects.length - 1; j >= 0; j--) { + const e2 = ordered_effects[j]; + if ((e2.f & (DESTROYED | INERT)) !== 0) continue; + update_effect(e2); + } + } + eager_block_effects.clear(); + } + } + } + eager_block_effects = null; +} +function mark_effects(value, sources, marked, checked) { + if (marked.has(value)) return; + marked.add(value); + if (value.reactions !== null) { + for (const reaction of value.reactions) { + const flags2 = reaction.f; + if ((flags2 & DERIVED) !== 0) { + mark_effects( + /** @type {Derived} */ + reaction, + sources, + marked, + checked + ); + } else if ((flags2 & (ASYNC | BLOCK_EFFECT)) !== 0 && (flags2 & DIRTY) === 0 && depends_on(reaction, sources, checked)) { + set_signal_status(reaction, DIRTY); + schedule_effect( + /** @type {Effect} */ + reaction + ); + } + } + } +} +function depends_on(reaction, sources, checked) { + const depends = checked.get(reaction); + if (depends !== void 0) return depends; + if (reaction.deps !== null) { + for (const dep of reaction.deps) { + if (includes.call(sources, dep)) { + return true; + } + if ((dep.f & DERIVED) !== 0 && depends_on( + /** @type {Derived} */ + dep, + sources, + checked + )) { + checked.set( + /** @type {Derived} */ + dep, + true + ); + return true; + } + } + } + checked.set(reaction, false); + return false; +} +function schedule_effect(signal) { + var effect = last_scheduled_effect = signal; + while (effect.parent !== null) { + effect = effect.parent; + var flags2 = effect.f; + if (is_flushing && effect === active_effect && (flags2 & BLOCK_EFFECT) !== 0 && (flags2 & HEAD_EFFECT) === 0) { + return; + } + if ((flags2 & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) { + if ((flags2 & CLEAN) === 0) return; + effect.f ^= CLEAN; + } + } + queued_root_effects.push(effect); +} +function reset_branch(effect, tracked) { + if ((effect.f & BRANCH_EFFECT) !== 0 && (effect.f & CLEAN) !== 0) { + return; + } + if ((effect.f & DIRTY) !== 0) { + tracked.d.push(effect); + } else if ((effect.f & MAYBE_DIRTY) !== 0) { + tracked.m.push(effect); + } + set_signal_status(effect, CLEAN); + var e = effect.first; + while (e !== null) { + reset_branch(e, tracked); + e = e.next; + } +} +function createSubscriber(start) { + let subscribers = 0; + let version = source(0); + let stop; + return () => { + if (effect_tracking()) { + get(version); + render_effect(() => { + if (subscribers === 0) { + stop = untrack(() => start(() => increment(version))); + } + subscribers += 1; + return () => { + queue_micro_task(() => { + subscribers -= 1; + if (subscribers === 0) { + stop?.(); + stop = void 0; + increment(version); + } + }); + }; + }); + } + }; +} +var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED; +function boundary(node, props, children) { + new Boundary(node, props, children); +} +class Boundary { + /** @type {Boundary | null} */ + parent; + is_pending = false; + /** @type {TemplateNode} */ + #anchor; + /** @type {TemplateNode | null} */ + #hydrate_open = hydrating ? hydrate_node : null; + /** @type {BoundaryProps} */ + #props; + /** @type {((anchor: Node) => void)} */ + #children; + /** @type {Effect} */ + #effect; + /** @type {Effect | null} */ + #main_effect = null; + /** @type {Effect | null} */ + #pending_effect = null; + /** @type {Effect | null} */ + #failed_effect = null; + /** @type {DocumentFragment | null} */ + #offscreen_fragment = null; + #local_pending_count = 0; + #pending_count = 0; + #pending_count_update_queued = false; + /** @type {Set} */ + #dirty_effects = /* @__PURE__ */ new Set(); + /** @type {Set} */ + #maybe_dirty_effects = /* @__PURE__ */ new Set(); + /** + * A source containing the number of pending async deriveds/expressions. + * Only created if `$effect.pending()` is used inside the boundary, + * otherwise updating the source results in needless `Batch.ensure()` + * calls followed by no-op flushes + * @type {Source | null} + */ + #effect_pending = null; + #effect_pending_subscriber = createSubscriber(() => { + this.#effect_pending = source(this.#local_pending_count); + return () => { + this.#effect_pending = null; + }; + }); + /** + * @param {TemplateNode} node + * @param {BoundaryProps} props + * @param {((anchor: Node) => void)} children + */ + constructor(node, props, children) { + this.#anchor = node; + this.#props = props; + this.#children = (anchor) => { + var effect = ( + /** @type {Effect} */ + active_effect + ); + effect.b = this; + effect.f |= BOUNDARY_EFFECT; + children(anchor); + }; + this.parent = /** @type {Effect} */ + active_effect.b; + this.#effect = block(() => { + if (hydrating) { + const comment = ( + /** @type {Comment} */ + this.#hydrate_open + ); + hydrate_next(); + if (comment.data === HYDRATION_START_ELSE) { + this.#hydrate_pending_content(); + } else { + this.#hydrate_resolved_content(); + } + } else { + this.#render(); + } + }, flags); + if (hydrating) { + this.#anchor = hydrate_node; + } + } + #hydrate_resolved_content() { + try { + this.#main_effect = branch(() => this.#children(this.#anchor)); + } catch (error) { + this.error(error); + } + } + #hydrate_pending_content() { + const pending = this.#props.pending; + if (!pending) return; + this.is_pending = true; + this.#pending_effect = branch(() => pending(this.#anchor)); + queue_micro_task(() => { + var fragment = this.#offscreen_fragment = document.createDocumentFragment(); + var anchor = create_text(); + fragment.append(anchor); + this.#main_effect = this.#run(() => { + Batch.ensure(); + return branch(() => this.#children(anchor)); + }); + if (this.#pending_count === 0) { + this.#anchor.before(fragment); + this.#offscreen_fragment = null; + pause_effect( + /** @type {Effect} */ + this.#pending_effect, + () => { + this.#pending_effect = null; + } + ); + this.is_pending = false; + } + }); + } + #render() { + try { + this.is_pending = this.has_pending_snippet(); + this.#pending_count = 0; + this.#local_pending_count = 0; + this.#main_effect = branch(() => { + this.#children(this.#anchor); + }); + if (this.#pending_count > 0) { + var fragment = this.#offscreen_fragment = document.createDocumentFragment(); + move_effect(this.#main_effect, fragment); + const pending = ( + /** @type {(anchor: Node) => void} */ + this.#props.pending + ); + this.#pending_effect = branch(() => pending(this.#anchor)); + } else { + this.is_pending = false; + } + } catch (error) { + this.error(error); + } + } + /** + * Defer an effect inside a pending boundary until the boundary resolves + * @param {Effect} effect + */ + defer_effect(effect) { + defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects); + } + /** + * Returns `false` if the effect exists inside a boundary whose pending snippet is shown + * @returns {boolean} + */ + is_rendered() { + return !this.is_pending && (!this.parent || this.parent.is_rendered()); + } + has_pending_snippet() { + return !!this.#props.pending; + } + /** + * @template T + * @param {() => T} fn + */ + #run(fn) { + var previous_effect = active_effect; + var previous_reaction = active_reaction; + var previous_ctx = component_context; + set_active_effect(this.#effect); + set_active_reaction(this.#effect); + set_component_context(this.#effect.ctx); + try { + return fn(); + } catch (e) { + handle_error(e); + return null; + } finally { + set_active_effect(previous_effect); + set_active_reaction(previous_reaction); + set_component_context(previous_ctx); + } + } + /** + * Updates the pending count associated with the currently visible pending snippet, + * if any, such that we can replace the snippet with content once work is done + * @param {1 | -1} d + */ + #update_pending_count(d) { + if (!this.has_pending_snippet()) { + if (this.parent) { + this.parent.#update_pending_count(d); + } + return; + } + this.#pending_count += d; + if (this.#pending_count === 0) { + this.is_pending = false; + for (const e of this.#dirty_effects) { + set_signal_status(e, DIRTY); + schedule_effect(e); + } + for (const e of this.#maybe_dirty_effects) { + set_signal_status(e, MAYBE_DIRTY); + schedule_effect(e); + } + this.#dirty_effects.clear(); + this.#maybe_dirty_effects.clear(); + if (this.#pending_effect) { + pause_effect(this.#pending_effect, () => { + this.#pending_effect = null; + }); + } + if (this.#offscreen_fragment) { + this.#anchor.before(this.#offscreen_fragment); + this.#offscreen_fragment = null; + } + } + } + /** + * Update the source that powers `$effect.pending()` inside this boundary, + * and controls when the current `pending` snippet (if any) is removed. + * Do not call from inside the class + * @param {1 | -1} d + */ + update_pending_count(d) { + this.#update_pending_count(d); + this.#local_pending_count += d; + if (!this.#effect_pending || this.#pending_count_update_queued) return; + this.#pending_count_update_queued = true; + queue_micro_task(() => { + this.#pending_count_update_queued = false; + if (this.#effect_pending) { + internal_set(this.#effect_pending, this.#local_pending_count); + } + }); + } + get_effect_pending() { + this.#effect_pending_subscriber(); + return get( + /** @type {Source} */ + this.#effect_pending + ); + } + /** @param {unknown} error */ + error(error) { + var onerror = this.#props.onerror; + let failed = this.#props.failed; + if (!onerror && !failed) { + throw error; + } + if (this.#main_effect) { + destroy_effect(this.#main_effect); + this.#main_effect = null; + } + if (this.#pending_effect) { + destroy_effect(this.#pending_effect); + this.#pending_effect = null; + } + if (this.#failed_effect) { + destroy_effect(this.#failed_effect); + this.#failed_effect = null; + } + if (hydrating) { + set_hydrate_node( + /** @type {TemplateNode} */ + this.#hydrate_open + ); + next(); + set_hydrate_node(skip_nodes()); + } + var did_reset = false; + var calling_on_error = false; + const reset = () => { + if (did_reset) { + svelte_boundary_reset_noop(); + return; + } + did_reset = true; + if (calling_on_error) { + svelte_boundary_reset_onerror(); + } + if (this.#failed_effect !== null) { + pause_effect(this.#failed_effect, () => { + this.#failed_effect = null; + }); + } + this.#run(() => { + Batch.ensure(); + this.#render(); + }); + }; + queue_micro_task(() => { + try { + calling_on_error = true; + onerror?.(error, reset); + calling_on_error = false; + } catch (error2) { + invoke_error_boundary(error2, this.#effect && this.#effect.parent); + } + if (failed) { + this.#failed_effect = this.#run(() => { + Batch.ensure(); + try { + return branch(() => { + var effect = ( + /** @type {Effect} */ + active_effect + ); + effect.b = this; + effect.f |= BOUNDARY_EFFECT; + failed( + this.#anchor, + () => error, + () => reset + ); + }); + } catch (error2) { + invoke_error_boundary( + error2, + /** @type {Effect} */ + this.#effect.parent + ); + return null; + } + }); + } + }); + } +} +function destroy_derived_effects(derived) { + var effects = derived.effects; + if (effects !== null) { + derived.effects = null; + for (var i = 0; i < effects.length; i += 1) { + destroy_effect( + /** @type {Effect} */ + effects[i] + ); + } + } +} +function get_derived_parent_effect(derived) { + var parent = derived.parent; + while (parent !== null) { + if ((parent.f & DERIVED) === 0) { + return (parent.f & DESTROYED) === 0 ? ( + /** @type {Effect} */ + parent + ) : null; + } + parent = parent.parent; + } + return null; +} +function execute_derived(derived) { + var value; + var prev_active_effect = active_effect; + set_active_effect(get_derived_parent_effect(derived)); + { + try { + derived.f &= ~WAS_MARKED; + destroy_derived_effects(derived); + value = update_reaction(derived); + } finally { + set_active_effect(prev_active_effect); + } + } + return value; +} +function update_derived(derived) { + var value = execute_derived(derived); + if (!derived.equals(value)) { + derived.wv = increment_write_version(); + if (!current_batch?.is_fork || derived.deps === null) { + derived.v = value; + if (derived.deps === null) { + set_signal_status(derived, CLEAN); + return; + } + } + } + if (is_destroying_effect) { + return; + } + if (batch_values !== null) { + if (effect_tracking() || current_batch?.is_fork) { + batch_values.set(derived, value); + } + } else { + update_derived_status(derived); + } +} +function freeze_derived_effects(derived) { + if (derived.effects === null) return; + for (const e of derived.effects) { + if (e.teardown || e.ac) { + e.teardown?.(); + e.ac?.abort(STALE_REACTION); + e.teardown = noop; + e.ac = null; + remove_reactions(e, 0); + destroy_effect_children(e); + } + } +} +function unfreeze_derived_effects(derived) { + if (derived.effects === null) return; + for (const e of derived.effects) { + if (e.teardown) { + update_effect(e); + } + } +} +let eager_effects = /* @__PURE__ */ new Set(); +const old_values = /* @__PURE__ */ new Map(); +let eager_effects_deferred = false; +function source(v, stack) { + var signal = { + f: 0, + // TODO ideally we could skip this altogether, but it causes type errors + v, + reactions: null, + equals, + rv: 0, + wv: 0 + }; + return signal; +} +// @__NO_SIDE_EFFECTS__ +function state(v, stack) { + const s = source(v); + push_reaction_value(s); + return s; +} +// @__NO_SIDE_EFFECTS__ +function mutable_source(initial_value, immutable = false, trackable = true) { + const s = source(initial_value); + if (!immutable) { + s.equals = safe_equals; + } + return s; +} +function set(source2, value, should_proxy = false) { + if (active_reaction !== null && // since we are untracking the function inside `$inspect.with` we need to add this check + // to ensure we error if state is set inside an inspect effect + (!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && (current_sources === null || !includes.call(current_sources, source2))) { + state_unsafe_mutation(); + } + let new_value = should_proxy ? proxy(value) : value; + return internal_set(source2, new_value); +} +function internal_set(source2, value) { + if (!source2.equals(value)) { + var old_value = source2.v; + if (is_destroying_effect) { + old_values.set(source2, value); + } else { + old_values.set(source2, old_value); + } + source2.v = value; + var batch = Batch.ensure(); + batch.capture(source2, old_value); + if ((source2.f & DERIVED) !== 0) { + const derived = ( + /** @type {Derived} */ + source2 + ); + if ((source2.f & DIRTY) !== 0) { + execute_derived(derived); + } + update_derived_status(derived); + } + source2.wv = increment_write_version(); + mark_reactions(source2, DIRTY); + if (active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) { + if (untracked_writes === null) { + set_untracked_writes([source2]); + } else { + untracked_writes.push(source2); + } + } + if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) { + flush_eager_effects(); + } + } + return value; +} +function flush_eager_effects() { + eager_effects_deferred = false; + for (const effect of eager_effects) { + if ((effect.f & CLEAN) !== 0) { + set_signal_status(effect, MAYBE_DIRTY); + } + if (is_dirty(effect)) { + update_effect(effect); + } + } + eager_effects.clear(); +} +function increment(source2) { + set(source2, source2.v + 1); +} +function mark_reactions(signal, status) { + var reactions = signal.reactions; + if (reactions === null) return; + var length = reactions.length; + for (var i = 0; i < length; i++) { + var reaction = reactions[i]; + var flags2 = reaction.f; + var not_dirty = (flags2 & DIRTY) === 0; + if (not_dirty) { + set_signal_status(reaction, status); + } + if ((flags2 & DERIVED) !== 0) { + var derived = ( + /** @type {Derived} */ + reaction + ); + batch_values?.delete(derived); + if ((flags2 & WAS_MARKED) === 0) { + if (flags2 & CONNECTED) { + reaction.f |= WAS_MARKED; + } + mark_reactions(derived, MAYBE_DIRTY); + } + } else if (not_dirty) { + if ((flags2 & BLOCK_EFFECT) !== 0 && eager_block_effects !== null) { + eager_block_effects.add( + /** @type {Effect} */ + reaction + ); + } + schedule_effect( + /** @type {Effect} */ + reaction + ); + } + } +} +function proxy(value) { + if (typeof value !== "object" || value === null || STATE_SYMBOL in value) { + return value; + } + const prototype = get_prototype_of(value); + if (prototype !== object_prototype && prototype !== array_prototype) { + return value; + } + var sources = /* @__PURE__ */ new Map(); + var is_proxied_array = is_array(value); + var version = /* @__PURE__ */ state(0); + var parent_version = update_version; + var with_parent = (fn) => { + if (update_version === parent_version) { + return fn(); + } + var reaction = active_reaction; + var version2 = update_version; + set_active_reaction(null); + set_update_version(parent_version); + var result = fn(); + set_active_reaction(reaction); + set_update_version(version2); + return result; + }; + if (is_proxied_array) { + sources.set("length", /* @__PURE__ */ state( + /** @type {any[]} */ + value.length + )); + } + return new Proxy( + /** @type {any} */ + value, + { + defineProperty(_, prop, descriptor) { + if (!("value" in descriptor) || descriptor.configurable === false || descriptor.enumerable === false || descriptor.writable === false) { + state_descriptors_fixed(); + } + var s = sources.get(prop); + if (s === void 0) { + with_parent(() => { + var s2 = /* @__PURE__ */ state(descriptor.value); + sources.set(prop, s2); + return s2; + }); + } else { + set(s, descriptor.value, true); + } + return true; + }, + deleteProperty(target, prop) { + var s = sources.get(prop); + if (s === void 0) { + if (prop in target) { + const s2 = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED)); + sources.set(prop, s2); + increment(version); + } + } else { + set(s, UNINITIALIZED); + increment(version); + } + return true; + }, + get(target, prop, receiver) { + if (prop === STATE_SYMBOL) { + return value; + } + var s = sources.get(prop); + var exists = prop in target; + if (s === void 0 && (!exists || get_descriptor(target, prop)?.writable)) { + s = with_parent(() => { + var p = proxy(exists ? target[prop] : UNINITIALIZED); + var s2 = /* @__PURE__ */ state(p); + return s2; + }); + sources.set(prop, s); + } + if (s !== void 0) { + var v = get(s); + return v === UNINITIALIZED ? void 0 : v; + } + return Reflect.get(target, prop, receiver); + }, + getOwnPropertyDescriptor(target, prop) { + var descriptor = Reflect.getOwnPropertyDescriptor(target, prop); + if (descriptor && "value" in descriptor) { + var s = sources.get(prop); + if (s) descriptor.value = get(s); + } else if (descriptor === void 0) { + var source2 = sources.get(prop); + var value2 = source2?.v; + if (source2 !== void 0 && value2 !== UNINITIALIZED) { + return { + enumerable: true, + configurable: true, + value: value2, + writable: true + }; + } + } + return descriptor; + }, + has(target, prop) { + if (prop === STATE_SYMBOL) { + return true; + } + var s = sources.get(prop); + var has = s !== void 0 && s.v !== UNINITIALIZED || Reflect.has(target, prop); + if (s !== void 0 || active_effect !== null && (!has || get_descriptor(target, prop)?.writable)) { + if (s === void 0) { + s = with_parent(() => { + var p = has ? proxy(target[prop]) : UNINITIALIZED; + var s2 = /* @__PURE__ */ state(p); + return s2; + }); + sources.set(prop, s); + } + var value2 = get(s); + if (value2 === UNINITIALIZED) { + return false; + } + } + return has; + }, + set(target, prop, value2, receiver) { + var s = sources.get(prop); + var has = prop in target; + if (is_proxied_array && prop === "length") { + for (var i = value2; i < /** @type {Source} */ + s.v; i += 1) { + var other_s = sources.get(i + ""); + if (other_s !== void 0) { + set(other_s, UNINITIALIZED); + } else if (i in target) { + other_s = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED)); + sources.set(i + "", other_s); + } + } + } + if (s === void 0) { + if (!has || get_descriptor(target, prop)?.writable) { + s = with_parent(() => /* @__PURE__ */ state(void 0)); + set(s, proxy(value2)); + sources.set(prop, s); + } + } else { + has = s.v !== UNINITIALIZED; + var p = with_parent(() => proxy(value2)); + set(s, p); + } + var descriptor = Reflect.getOwnPropertyDescriptor(target, prop); + if (descriptor?.set) { + descriptor.set.call(receiver, value2); + } + if (!has) { + if (is_proxied_array && typeof prop === "string") { + var ls = ( + /** @type {Source} */ + sources.get("length") + ); + var n = Number(prop); + if (Number.isInteger(n) && n >= ls.v) { + set(ls, n + 1); + } + } + increment(version); + } + return true; + }, + ownKeys(target) { + get(version); + var own_keys = Reflect.ownKeys(target).filter((key2) => { + var source3 = sources.get(key2); + return source3 === void 0 || source3.v !== UNINITIALIZED; + }); + for (var [key, source2] of sources) { + if (source2.v !== UNINITIALIZED && !(key in target)) { + own_keys.push(key); + } + } + return own_keys; + }, + setPrototypeOf() { + state_prototype_fixed(); + } + } + ); +} +var $window; +var first_child_getter; +var next_sibling_getter; +function init_operations() { + if ($window !== void 0) { + return; + } + $window = window; + var element_prototype = Element.prototype; + var node_prototype = Node.prototype; + var text_prototype = Text.prototype; + first_child_getter = get_descriptor(node_prototype, "firstChild").get; + next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get; + if (is_extensible(element_prototype)) { + element_prototype.__click = void 0; + element_prototype.__className = void 0; + element_prototype.__attributes = null; + element_prototype.__style = void 0; + element_prototype.__e = void 0; + } + if (is_extensible(text_prototype)) { + text_prototype.__t = void 0; + } +} +function create_text(value = "") { + return document.createTextNode(value); +} +// @__NO_SIDE_EFFECTS__ +function get_first_child(node) { + return ( + /** @type {TemplateNode | null} */ + first_child_getter.call(node) + ); +} +// @__NO_SIDE_EFFECTS__ +function get_next_sibling(node) { + return ( + /** @type {TemplateNode | null} */ + next_sibling_getter.call(node) + ); +} +function clear_text_content(node) { + node.textContent = ""; +} +function without_reactive_context(fn) { + var previous_reaction = active_reaction; + var previous_effect = active_effect; + set_active_reaction(null); + set_active_effect(null); + try { + return fn(); + } finally { + set_active_reaction(previous_reaction); + set_active_effect(previous_effect); + } +} +function push_effect(effect, parent_effect) { + var parent_last = parent_effect.last; + if (parent_last === null) { + parent_effect.last = parent_effect.first = effect; + } else { + parent_last.next = effect; + effect.prev = parent_last; + parent_effect.last = effect; + } +} +function create_effect(type, fn, sync) { + var parent = active_effect; + if (parent !== null && (parent.f & INERT) !== 0) { + type |= INERT; + } + var effect = { + ctx: component_context, + deps: null, + nodes: null, + f: type | DIRTY | CONNECTED, + first: null, + fn, + last: null, + next: null, + parent, + b: parent && parent.b, + prev: null, + teardown: null, + wv: 0, + ac: null + }; + if (sync) { + try { + update_effect(effect); + } catch (e2) { + destroy_effect(effect); + throw e2; + } + } else if (fn !== null) { + schedule_effect(effect); + } + var e = effect; + if (sync && e.deps === null && e.teardown === null && e.nodes === null && e.first === e.last && // either `null`, or a singular child + (e.f & EFFECT_PRESERVED) === 0) { + e = e.first; + if ((type & BLOCK_EFFECT) !== 0 && (type & EFFECT_TRANSPARENT) !== 0 && e !== null) { + e.f |= EFFECT_TRANSPARENT; + } + } + if (e !== null) { + e.parent = parent; + if (parent !== null) { + push_effect(e, parent); + } + if (active_reaction !== null && (active_reaction.f & DERIVED) !== 0 && (type & ROOT_EFFECT) === 0) { + var derived = ( + /** @type {Derived} */ + active_reaction + ); + (derived.effects ??= []).push(e); + } + } + return effect; +} +function effect_tracking() { + return active_reaction !== null && !untracking; +} +function create_user_effect(fn) { + return create_effect(EFFECT | USER_EFFECT, fn, false); +} +function component_root(fn) { + Batch.ensure(); + const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn, true); + return (options = {}) => { + return new Promise((fulfil) => { + if (options.outro) { + pause_effect(effect, () => { + destroy_effect(effect); + fulfil(void 0); + }); + } else { + destroy_effect(effect); + fulfil(void 0); + } + }); + }; +} +function render_effect(fn, flags2 = 0) { + return create_effect(RENDER_EFFECT | flags2, fn, true); +} +function block(fn, flags2 = 0) { + var effect = create_effect(BLOCK_EFFECT | flags2, fn, true); + return effect; +} +function branch(fn) { + return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn, true); +} +function execute_effect_teardown(effect) { + var teardown = effect.teardown; + if (teardown !== null) { + const previously_destroying_effect = is_destroying_effect; + const previous_reaction = active_reaction; + set_is_destroying_effect(true); + set_active_reaction(null); + try { + teardown.call(null); + } finally { + set_is_destroying_effect(previously_destroying_effect); + set_active_reaction(previous_reaction); + } + } +} +function destroy_effect_children(signal, remove_dom = false) { + var effect = signal.first; + signal.first = signal.last = null; + while (effect !== null) { + const controller = effect.ac; + if (controller !== null) { + without_reactive_context(() => { + controller.abort(STALE_REACTION); + }); + } + var next2 = effect.next; + if ((effect.f & ROOT_EFFECT) !== 0) { + effect.parent = null; + } else { + destroy_effect(effect, remove_dom); + } + effect = next2; + } +} +function destroy_block_effect_children(signal) { + var effect = signal.first; + while (effect !== null) { + var next2 = effect.next; + if ((effect.f & BRANCH_EFFECT) === 0) { + destroy_effect(effect); + } + effect = next2; + } +} +function destroy_effect(effect, remove_dom = true) { + var removed = false; + if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) { + remove_effect_dom( + effect.nodes.start, + /** @type {TemplateNode} */ + effect.nodes.end + ); + removed = true; + } + destroy_effect_children(effect, remove_dom && !removed); + remove_reactions(effect, 0); + set_signal_status(effect, DESTROYED); + var transitions = effect.nodes && effect.nodes.t; + if (transitions !== null) { + for (const transition of transitions) { + transition.stop(); + } + } + execute_effect_teardown(effect); + var parent = effect.parent; + if (parent !== null && parent.first !== null) { + unlink_effect(effect); + } + effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null; +} +function remove_effect_dom(node, end) { + while (node !== null) { + var next2 = node === end ? null : /* @__PURE__ */ get_next_sibling(node); + node.remove(); + node = next2; + } +} +function unlink_effect(effect) { + var parent = effect.parent; + var prev = effect.prev; + var next2 = effect.next; + if (prev !== null) prev.next = next2; + if (next2 !== null) next2.prev = prev; + if (parent !== null) { + if (parent.first === effect) parent.first = next2; + if (parent.last === effect) parent.last = prev; + } +} +function pause_effect(effect, callback, destroy = true) { + var transitions = []; + pause_children(effect, transitions, true); + var fn = () => { + if (destroy) destroy_effect(effect); + if (callback) callback(); + }; + var remaining = transitions.length; + if (remaining > 0) { + var check = () => --remaining || fn(); + for (var transition of transitions) { + transition.out(check); + } + } else { + fn(); + } +} +function pause_children(effect, transitions, local) { + if ((effect.f & INERT) !== 0) return; + effect.f ^= INERT; + var t = effect.nodes && effect.nodes.t; + if (t !== null) { + for (const transition of t) { + if (transition.is_global || local) { + transitions.push(transition); + } + } + } + var child = effect.first; + while (child !== null) { + var sibling = child.next; + var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || // If this is a branch effect without a block effect parent, + // it means the parent block effect was pruned. In that case, + // transparency information was transferred to the branch effect. + (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0; + pause_children(child, transitions, transparent ? local : false); + child = sibling; + } +} +function move_effect(effect, fragment) { + if (!effect.nodes) return; + var node = effect.nodes.start; + var end = effect.nodes.end; + while (node !== null) { + var next2 = node === end ? null : /* @__PURE__ */ get_next_sibling(node); + fragment.append(node); + node = next2; + } +} +let is_updating_effect = false; +let is_destroying_effect = false; +function set_is_destroying_effect(value) { + is_destroying_effect = value; +} +let active_reaction = null; +let untracking = false; +function set_active_reaction(reaction) { + active_reaction = reaction; +} +let active_effect = null; +function set_active_effect(effect) { + active_effect = effect; +} +let current_sources = null; +function push_reaction_value(value) { + if (active_reaction !== null && true) { + if (current_sources === null) { + current_sources = [value]; + } else { + current_sources.push(value); + } + } +} +let new_deps = null; +let skipped_deps = 0; +let untracked_writes = null; +function set_untracked_writes(value) { + untracked_writes = value; +} +let write_version = 1; +let read_version = 0; +let update_version = read_version; +function set_update_version(value) { + update_version = value; +} +function increment_write_version() { + return ++write_version; +} +function is_dirty(reaction) { + var flags2 = reaction.f; + if ((flags2 & DIRTY) !== 0) { + return true; + } + if (flags2 & DERIVED) { + reaction.f &= ~WAS_MARKED; + } + if ((flags2 & MAYBE_DIRTY) !== 0) { + var dependencies = ( + /** @type {Value[]} */ + reaction.deps + ); + var length = dependencies.length; + for (var i = 0; i < length; i++) { + var dependency = dependencies[i]; + if (is_dirty( + /** @type {Derived} */ + dependency + )) { + update_derived( + /** @type {Derived} */ + dependency + ); + } + if (dependency.wv > reaction.wv) { + return true; + } + } + if ((flags2 & CONNECTED) !== 0 && // During time traveling we don't want to reset the status so that + // traversal of the graph in the other batches still happens + batch_values === null) { + set_signal_status(reaction, CLEAN); + } + } + return false; +} +function schedule_possible_effect_self_invalidation(signal, effect, root2 = true) { + var reactions = signal.reactions; + if (reactions === null) return; + if (current_sources !== null && includes.call(current_sources, signal)) { + return; + } + for (var i = 0; i < reactions.length; i++) { + var reaction = reactions[i]; + if ((reaction.f & DERIVED) !== 0) { + schedule_possible_effect_self_invalidation( + /** @type {Derived} */ + reaction, + effect, + false + ); + } else if (effect === reaction) { + if (root2) { + set_signal_status(reaction, DIRTY); + } else if ((reaction.f & CLEAN) !== 0) { + set_signal_status(reaction, MAYBE_DIRTY); + } + schedule_effect( + /** @type {Effect} */ + reaction + ); + } + } +} +function update_reaction(reaction) { + var previous_deps = new_deps; + var previous_skipped_deps = skipped_deps; + var previous_untracked_writes = untracked_writes; + var previous_reaction = active_reaction; + var previous_sources = current_sources; + var previous_component_context = component_context; + var previous_untracking = untracking; + var previous_update_version = update_version; + var flags2 = reaction.f; + new_deps = /** @type {null | Value[]} */ + null; + skipped_deps = 0; + untracked_writes = null; + active_reaction = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null; + current_sources = null; + set_component_context(reaction.ctx); + untracking = false; + update_version = ++read_version; + if (reaction.ac !== null) { + without_reactive_context(() => { + reaction.ac.abort(STALE_REACTION); + }); + reaction.ac = null; + } + try { + reaction.f |= REACTION_IS_UPDATING; + var fn = ( + /** @type {Function} */ + reaction.fn + ); + var result = fn(); + reaction.f |= REACTION_RAN; + var deps = reaction.deps; + var is_fork = current_batch?.is_fork; + if (new_deps !== null) { + var i; + if (!is_fork) { + remove_reactions(reaction, skipped_deps); + } + if (deps !== null && skipped_deps > 0) { + deps.length = skipped_deps + new_deps.length; + for (i = 0; i < new_deps.length; i++) { + deps[skipped_deps + i] = new_deps[i]; + } + } else { + reaction.deps = deps = new_deps; + } + if (effect_tracking() && (reaction.f & CONNECTED) !== 0) { + for (i = skipped_deps; i < deps.length; i++) { + (deps[i].reactions ??= []).push(reaction); + } + } + } else if (!is_fork && deps !== null && skipped_deps < deps.length) { + remove_reactions(reaction, skipped_deps); + deps.length = skipped_deps; + } + if (is_runes() && untracked_writes !== null && !untracking && deps !== null && (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0) { + for (i = 0; i < /** @type {Source[]} */ + untracked_writes.length; i++) { + schedule_possible_effect_self_invalidation( + untracked_writes[i], + /** @type {Effect} */ + reaction + ); + } + } + if (previous_reaction !== null && previous_reaction !== reaction) { + read_version++; + if (previous_reaction.deps !== null) { + for (let i2 = 0; i2 < previous_skipped_deps; i2 += 1) { + previous_reaction.deps[i2].rv = read_version; + } + } + if (previous_deps !== null) { + for (const dep of previous_deps) { + dep.rv = read_version; + } + } + if (untracked_writes !== null) { + if (previous_untracked_writes === null) { + previous_untracked_writes = untracked_writes; + } else { + previous_untracked_writes.push(.../** @type {Source[]} */ + untracked_writes); + } + } + } + if ((reaction.f & ERROR_VALUE) !== 0) { + reaction.f ^= ERROR_VALUE; + } + return result; + } catch (error) { + return handle_error(error); + } finally { + reaction.f ^= REACTION_IS_UPDATING; + new_deps = previous_deps; + skipped_deps = previous_skipped_deps; + untracked_writes = previous_untracked_writes; + active_reaction = previous_reaction; + current_sources = previous_sources; + set_component_context(previous_component_context); + untracking = previous_untracking; + update_version = previous_update_version; + } +} +function remove_reaction(signal, dependency) { + let reactions = dependency.reactions; + if (reactions !== null) { + var index = index_of.call(reactions, signal); + if (index !== -1) { + var new_length = reactions.length - 1; + if (new_length === 0) { + reactions = dependency.reactions = null; + } else { + reactions[index] = reactions[new_length]; + reactions.pop(); + } + } + } + if (reactions === null && (dependency.f & DERIVED) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear + // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps` + // allows us to skip the expensive work of disconnecting and immediately reconnecting it + (new_deps === null || !includes.call(new_deps, dependency))) { + var derived = ( + /** @type {Derived} */ + dependency + ); + if ((derived.f & CONNECTED) !== 0) { + derived.f ^= CONNECTED; + derived.f &= ~WAS_MARKED; + } + update_derived_status(derived); + freeze_derived_effects(derived); + remove_reactions(derived, 0); + } +} +function remove_reactions(signal, start_index) { + var dependencies = signal.deps; + if (dependencies === null) return; + for (var i = start_index; i < dependencies.length; i++) { + remove_reaction(signal, dependencies[i]); + } +} +function update_effect(effect) { + var flags2 = effect.f; + if ((flags2 & DESTROYED) !== 0) { + return; + } + set_signal_status(effect, CLEAN); + var previous_effect = active_effect; + var was_updating_effect = is_updating_effect; + active_effect = effect; + is_updating_effect = true; + try { + if ((flags2 & (BLOCK_EFFECT | MANAGED_EFFECT)) !== 0) { + destroy_block_effect_children(effect); + } else { + destroy_effect_children(effect); + } + execute_effect_teardown(effect); + var teardown = update_reaction(effect); + effect.teardown = typeof teardown === "function" ? teardown : null; + effect.wv = write_version; + var dep; + if (DEV && tracing_mode_flag && (effect.f & DIRTY) !== 0 && effect.deps !== null) ; + } finally { + is_updating_effect = was_updating_effect; + active_effect = previous_effect; + } +} +function get(signal) { + var flags2 = signal.f; + var is_derived = (flags2 & DERIVED) !== 0; + if (active_reaction !== null && !untracking) { + var destroyed = active_effect !== null && (active_effect.f & DESTROYED) !== 0; + if (!destroyed && (current_sources === null || !includes.call(current_sources, signal))) { + var deps = active_reaction.deps; + if ((active_reaction.f & REACTION_IS_UPDATING) !== 0) { + if (signal.rv < read_version) { + signal.rv = read_version; + if (new_deps === null && deps !== null && deps[skipped_deps] === signal) { + skipped_deps++; + } else if (new_deps === null) { + new_deps = [signal]; + } else { + new_deps.push(signal); + } + } + } else { + (active_reaction.deps ??= []).push(signal); + var reactions = signal.reactions; + if (reactions === null) { + signal.reactions = [active_reaction]; + } else if (!includes.call(reactions, active_reaction)) { + reactions.push(active_reaction); + } + } + } + } + if (is_destroying_effect && old_values.has(signal)) { + return old_values.get(signal); + } + if (is_derived) { + var derived = ( + /** @type {Derived} */ + signal + ); + if (is_destroying_effect) { + var value = derived.v; + if ((derived.f & CLEAN) === 0 && derived.reactions !== null || depends_on_old_values(derived)) { + value = execute_derived(derived); + } + old_values.set(derived, value); + return value; + } + var should_connect = (derived.f & CONNECTED) === 0 && !untracking && active_reaction !== null && (is_updating_effect || (active_reaction.f & CONNECTED) !== 0); + var is_new = (derived.f & REACTION_RAN) === 0; + if (is_dirty(derived)) { + if (should_connect) { + derived.f |= CONNECTED; + } + update_derived(derived); + } + if (should_connect && !is_new) { + unfreeze_derived_effects(derived); + reconnect(derived); + } + } + if (batch_values?.has(signal)) { + return batch_values.get(signal); + } + if ((signal.f & ERROR_VALUE) !== 0) { + throw signal.v; + } + return signal.v; +} +function reconnect(derived) { + derived.f |= CONNECTED; + if (derived.deps === null) return; + for (const dep of derived.deps) { + (dep.reactions ??= []).push(derived); + if ((dep.f & DERIVED) !== 0 && (dep.f & CONNECTED) === 0) { + unfreeze_derived_effects( + /** @type {Derived} */ + dep + ); + reconnect( + /** @type {Derived} */ + dep + ); + } + } +} +function depends_on_old_values(derived) { + if (derived.v === UNINITIALIZED) return true; + if (derived.deps === null) return false; + for (const dep of derived.deps) { + if (old_values.has(dep)) { + return true; + } + if ((dep.f & DERIVED) !== 0 && depends_on_old_values( + /** @type {Derived} */ + dep + )) { + return true; + } + } + return false; +} +function untrack(fn) { + var previous_untracking = untracking; + try { + untracking = true; + return fn(); + } finally { + untracking = previous_untracking; + } +} +const event_symbol = Symbol("events"); +const all_registered_events = /* @__PURE__ */ new Set(); +const root_event_handles = /* @__PURE__ */ new Set(); +let last_propagated_event = null; +function handle_event_propagation(event) { + var handler_element = this; + var owner_document = ( + /** @type {Node} */ + handler_element.ownerDocument + ); + var event_name = event.type; + var path = event.composedPath?.() || []; + var current_target = ( + /** @type {null | Element} */ + path[0] || event.target + ); + last_propagated_event = event; + var path_idx = 0; + var handled_at = last_propagated_event === event && event[event_symbol]; + if (handled_at) { + var at_idx = path.indexOf(handled_at); + if (at_idx !== -1 && (handler_element === document || handler_element === /** @type {any} */ + window)) { + event[event_symbol] = handler_element; + return; + } + var handler_idx = path.indexOf(handler_element); + if (handler_idx === -1) { + return; + } + if (at_idx <= handler_idx) { + path_idx = at_idx; + } + } + current_target = /** @type {Element} */ + path[path_idx] || event.target; + if (current_target === handler_element) return; + define_property(event, "currentTarget", { + configurable: true, + get() { + return current_target || owner_document; + } + }); + var previous_reaction = active_reaction; + var previous_effect = active_effect; + set_active_reaction(null); + set_active_effect(null); + try { + var throw_error; + var other_errors = []; + while (current_target !== null) { + var parent_element = current_target.assignedSlot || current_target.parentNode || /** @type {any} */ + current_target.host || null; + try { + var delegated = current_target[event_symbol]?.[event_name]; + if (delegated != null && (!/** @type {any} */ + current_target.disabled || // DOM could've been updated already by the time this is reached, so we check this as well + // -> the target could not have been disabled because it emits the event in the first place + event.target === current_target)) { + delegated.call(current_target, event); + } + } catch (error) { + if (throw_error) { + other_errors.push(error); + } else { + throw_error = error; + } + } + if (event.cancelBubble || parent_element === handler_element || parent_element === null) { + break; + } + current_target = parent_element; + } + if (throw_error) { + for (let error of other_errors) { + queueMicrotask(() => { + throw error; + }); + } + throw throw_error; + } + } finally { + event[event_symbol] = handler_element; + delete event.currentTarget; + set_active_reaction(previous_reaction); + set_active_effect(previous_effect); + } +} +function assign_nodes(start, end) { + var effect = ( + /** @type {Effect} */ + active_effect + ); + if (effect.nodes === null) { + effect.nodes = { start, end, a: null, t: null }; + } +} +function mount(component, options) { + return _mount(component, options); +} +function hydrate(component, options) { + init_operations(); + options.intro = options.intro ?? false; + const target = options.target; + const was_hydrating = hydrating; + const previous_hydrate_node = hydrate_node; + try { + var anchor = /* @__PURE__ */ get_first_child(target); + while (anchor && (anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */ + anchor.data !== HYDRATION_START)) { + anchor = /* @__PURE__ */ get_next_sibling(anchor); + } + if (!anchor) { + throw HYDRATION_ERROR; + } + set_hydrating(true); + set_hydrate_node( + /** @type {Comment} */ + anchor + ); + const instance = _mount(component, { ...options, anchor }); + set_hydrating(false); + return ( + /** @type {Exports} */ + instance + ); + } catch (error) { + if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) { + throw error; + } + if (error !== HYDRATION_ERROR) { + console.warn("Failed to hydrate: ", error); + } + if (options.recover === false) { + hydration_failed(); + } + init_operations(); + clear_text_content(target); + set_hydrating(false); + return mount(component, options); + } finally { + set_hydrating(was_hydrating); + set_hydrate_node(previous_hydrate_node); + } +} +const listeners = /* @__PURE__ */ new Map(); +function _mount(Component, { target, anchor, props = {}, events, context, intro = true }) { + init_operations(); + var component = void 0; + var unmount2 = component_root(() => { + var anchor_node = anchor ?? target.appendChild(create_text()); + boundary( + /** @type {TemplateNode} */ + anchor_node, + { + pending: () => { + } + }, + (anchor_node2) => { + push({}); + var ctx = ( + /** @type {ComponentContext} */ + component_context + ); + if (context) ctx.c = context; + if (events) { + props.$$events = events; + } + if (hydrating) { + assign_nodes( + /** @type {TemplateNode} */ + anchor_node2, + null + ); + } + component = Component(anchor_node2, props) || {}; + if (hydrating) { + active_effect.nodes.end = hydrate_node; + if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || /** @type {Comment} */ + hydrate_node.data !== HYDRATION_END) { + hydration_mismatch(); + throw HYDRATION_ERROR; + } + } + pop(); + } + ); + var registered_events = /* @__PURE__ */ new Set(); + var event_handle = (events2) => { + for (var i = 0; i < events2.length; i++) { + var event_name = events2[i]; + if (registered_events.has(event_name)) continue; + registered_events.add(event_name); + var passive = is_passive_event(event_name); + for (const node of [target, document]) { + var counts = listeners.get(node); + if (counts === void 0) { + counts = /* @__PURE__ */ new Map(); + listeners.set(node, counts); + } + var count = counts.get(event_name); + if (count === void 0) { + node.addEventListener(event_name, handle_event_propagation, { passive }); + counts.set(event_name, 1); + } else { + counts.set(event_name, count + 1); + } + } + } + }; + event_handle(array_from(all_registered_events)); + root_event_handles.add(event_handle); + return () => { + for (var event_name of registered_events) { + for (const node of [target, document]) { + var counts = ( + /** @type {Map} */ + listeners.get(node) + ); + var count = ( + /** @type {number} */ + counts.get(event_name) + ); + if (--count == 0) { + node.removeEventListener(event_name, handle_event_propagation); + counts.delete(event_name); + if (counts.size === 0) { + listeners.delete(node); + } + } else { + counts.set(event_name, count); + } + } + } + root_event_handles.delete(event_handle); + if (anchor_node !== anchor) { + anchor_node.parentNode?.removeChild(anchor_node); + } + }; + }); + mounted_components.set(component, unmount2); + return component; +} +let mounted_components = /* @__PURE__ */ new WeakMap(); +function unmount(component, options) { + const fn = mounted_components.get(component); + if (fn) { + mounted_components.delete(component); + return fn(options); + } + return Promise.resolve(); +} +function asClassComponent$1(component) { + return class extends Svelte4Component { + /** @param {any} options */ + constructor(options) { + super({ + component, + ...options + }); + } + }; +} +class Svelte4Component { + /** @type {any} */ + #events; + /** @type {Record} */ + #instance; + /** + * @param {ComponentConstructorOptions & { + * component: any; + * }} options + */ + constructor(options) { + var sources = /* @__PURE__ */ new Map(); + var add_source = (key, value) => { + var s = /* @__PURE__ */ mutable_source(value, false, false); + sources.set(key, s); + return s; + }; + const props = new Proxy( + { ...options.props || {}, $$events: {} }, + { + get(target, prop) { + return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop))); + }, + has(target, prop) { + if (prop === LEGACY_PROPS) return true; + get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop))); + return Reflect.has(target, prop); + }, + set(target, prop, value) { + set(sources.get(prop) ?? add_source(prop, value), value); + return Reflect.set(target, prop, value); + } + } + ); + this.#instance = (options.hydrate ? hydrate : mount)(options.component, { + target: options.target, + anchor: options.anchor, + props, + context: options.context, + intro: options.intro ?? false, + recover: options.recover + }); + if (!options?.props?.$$host || options.sync === false) { + flushSync(); + } + this.#events = props.$$events; + for (const key of Object.keys(this.#instance)) { + if (key === "$set" || key === "$destroy" || key === "$on") continue; + define_property(this, key, { + get() { + return this.#instance[key]; + }, + /** @param {any} value */ + set(value) { + this.#instance[key] = value; + }, + enumerable: true + }); + } + this.#instance.$set = /** @param {Record} next */ + (next2) => { + Object.assign(props, next2); + }; + this.#instance.$destroy = () => { + unmount(this.#instance); + }; + } + /** @param {Record} props */ + $set(props) { + this.#instance.$set(props); + } + /** + * @param {string} event + * @param {(...args: any[]) => any} callback + * @returns {any} + */ + $on(event, callback) { + this.#events[event] = this.#events[event] || []; + const cb = (...args) => callback.call(this, ...args); + this.#events[event].push(cb); + return () => { + this.#events[event] = this.#events[event].filter( + /** @param {any} fn */ + (fn) => fn !== cb + ); + }; + } + $destroy() { + this.#instance.$destroy(); + } +} +function asClassComponent(component) { + const component_constructor = asClassComponent$1(component); + const _render = (props, { context, csp } = {}) => { + const result = render(component, { props, context, csp }); + const munged = Object.defineProperties( + /** @type {LegacyRenderResult & PromiseLike} */ + {}, + { + css: { + value: { code: "", map: null } + }, + head: { + get: () => result.head + }, + html: { + get: () => result.body + }, + then: { + /** + * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function. + * + * @template TResult1 + * @template [TResult2=never] + * @param { (value: LegacyRenderResult) => TResult1 } onfulfilled + * @param { (reason: unknown) => TResult2 } onrejected + */ + value: (onfulfilled, onrejected) => { + { + const user_result = onfulfilled({ + css: munged.css, + head: munged.head, + html: munged.html + }); + return Promise.resolve(user_result); + } + } + } + } + ); + return munged; + }; + component_constructor.render = _render; + return component_constructor; +} +function Root($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + stores, + page, + constructors, + components = [], + form, + data_0 = null, + data_1 = null + } = $$props; + { + setContext("__svelte__", stores); + } + { + stores.page.set(page); + } + const Pyramid_1 = constructors[1]; + if (constructors[1]) { + $$renderer2.push(""); + const Pyramid_0 = constructors[0]; + $$renderer2.push(""); + Pyramid_0?.($$renderer2, { + data: data_0, + form, + params: page.params, + children: ($$renderer3) => { + $$renderer3.push(""); + Pyramid_1?.($$renderer3, { data: data_1, form, params: page.params }); + $$renderer3.push(``); + }, + $$slots: { default: true } + }); + $$renderer2.push(``); + } else { + $$renderer2.push(""); + const Pyramid_0 = constructors[0]; + $$renderer2.push(""); + Pyramid_0?.($$renderer2, { data: data_0, form, params: page.params }); + $$renderer2.push(``); + } + $$renderer2.push(` `); + { + $$renderer2.push(""); + } + $$renderer2.push(``); + }); +} +const root = asClassComponent(Root); +export { + root as r, + safe_not_equal as s +}; diff --git a/.svelte-kit/output/server/chunks/shared.js b/.svelte-kit/output/server/chunks/shared.js new file mode 100644 index 00000000..39633519 --- /dev/null +++ b/.svelte-kit/output/server/chunks/shared.js @@ -0,0 +1,770 @@ +import { json, text } from "@sveltejs/kit"; +import { SvelteKitError, HttpError } from "@sveltejs/kit/internal"; +import { with_request_store } from "@sveltejs/kit/internal/server"; +import * as devalue from "devalue"; +import { t as text_decoder, b as base64_encode, a as base64_decode } from "./utils.js"; +const SVELTE_KIT_ASSETS = "/_svelte_kit_assets"; +const ENDPOINT_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"]; +const PAGE_METHODS = ["GET", "POST", "HEAD"]; +function set_nested_value(object, path_string, value) { + if (path_string.startsWith("n:")) { + path_string = path_string.slice(2); + value = value === "" ? void 0 : parseFloat(value); + } else if (path_string.startsWith("b:")) { + path_string = path_string.slice(2); + value = value === "on"; + } + deep_set(object, split_path(path_string), value); +} +function convert_formdata(data) { + const result = {}; + for (let key of data.keys()) { + const is_array = key.endsWith("[]"); + let values = data.getAll(key); + if (is_array) key = key.slice(0, -2); + if (values.length > 1 && !is_array) { + throw new Error(`Form cannot contain duplicated keys — "${key}" has ${values.length} values`); + } + values = values.filter( + (entry) => typeof entry === "string" || entry.name !== "" || entry.size > 0 + ); + if (key.startsWith("n:")) { + key = key.slice(2); + values = values.map((v) => v === "" ? void 0 : parseFloat( + /** @type {string} */ + v + )); + } else if (key.startsWith("b:")) { + key = key.slice(2); + values = values.map((v) => v === "on"); + } + set_nested_value(result, key, is_array ? values : values[0]); + } + return result; +} +const BINARY_FORM_CONTENT_TYPE = "application/x-sveltekit-formdata"; +const BINARY_FORM_VERSION = 0; +const HEADER_BYTES = 1 + 4 + 2; +async function deserialize_binary_form(request) { + if (request.headers.get("content-type") !== BINARY_FORM_CONTENT_TYPE) { + const form_data = await request.formData(); + return { data: convert_formdata(form_data), meta: {}, form_data }; + } + if (!request.body) { + throw deserialize_error("no body"); + } + const content_length = parseInt(request.headers.get("content-length") ?? ""); + if (Number.isNaN(content_length)) { + throw deserialize_error("invalid Content-Length header"); + } + const reader = request.body.getReader(); + const chunks = []; + function get_chunk(index) { + if (index in chunks) return chunks[index]; + let i = chunks.length; + while (i <= index) { + chunks[i] = reader.read().then((chunk) => chunk.value); + i++; + } + return chunks[index]; + } + async function get_buffer(offset, length) { + let start_chunk; + let chunk_start = 0; + let chunk_index; + for (chunk_index = 0; ; chunk_index++) { + const chunk = await get_chunk(chunk_index); + if (!chunk) return null; + const chunk_end = chunk_start + chunk.byteLength; + if (offset >= chunk_start && offset < chunk_end) { + start_chunk = chunk; + break; + } + chunk_start = chunk_end; + } + if (offset + length <= chunk_start + start_chunk.byteLength) { + return start_chunk.subarray(offset - chunk_start, offset + length - chunk_start); + } + const chunks2 = [start_chunk.subarray(offset - chunk_start)]; + let cursor = start_chunk.byteLength - offset + chunk_start; + while (cursor < length) { + chunk_index++; + let chunk = await get_chunk(chunk_index); + if (!chunk) return null; + if (chunk.byteLength > length - cursor) { + chunk = chunk.subarray(0, length - cursor); + } + chunks2.push(chunk); + cursor += chunk.byteLength; + } + const buffer = new Uint8Array(length); + cursor = 0; + for (const chunk of chunks2) { + buffer.set(chunk, cursor); + cursor += chunk.byteLength; + } + return buffer; + } + const header = await get_buffer(0, HEADER_BYTES); + if (!header) throw deserialize_error("too short"); + if (header[0] !== BINARY_FORM_VERSION) { + throw deserialize_error(`got version ${header[0]}, expected version ${BINARY_FORM_VERSION}`); + } + const header_view = new DataView(header.buffer, header.byteOffset, header.byteLength); + const data_length = header_view.getUint32(1, true); + if (HEADER_BYTES + data_length > content_length) { + throw deserialize_error("data overflow"); + } + const file_offsets_length = header_view.getUint16(5, true); + if (HEADER_BYTES + data_length + file_offsets_length > content_length) { + throw deserialize_error("file offset table overflow"); + } + const data_buffer = await get_buffer(HEADER_BYTES, data_length); + if (!data_buffer) throw deserialize_error("data too short"); + let file_offsets; + let files_start_offset; + if (file_offsets_length > 0) { + const file_offsets_buffer = await get_buffer(HEADER_BYTES + data_length, file_offsets_length); + if (!file_offsets_buffer) throw deserialize_error("file offset table too short"); + file_offsets = /** @type {Array} */ + JSON.parse(text_decoder.decode(file_offsets_buffer)); + files_start_offset = HEADER_BYTES + data_length + file_offsets_length; + } + const [data, meta] = devalue.parse(text_decoder.decode(data_buffer), { + File: ([name, type, size, last_modified, index]) => { + if (files_start_offset + file_offsets[index] + size > content_length) { + throw deserialize_error("file data overflow"); + } + return new Proxy( + new LazyFile( + name, + type, + size, + last_modified, + get_chunk, + files_start_offset + file_offsets[index] + ), + { + getPrototypeOf() { + return File.prototype; + } + } + ); + } + }); + void (async () => { + let has_more = true; + while (has_more) { + const chunk = await get_chunk(chunks.length); + has_more = !!chunk; + } + })(); + return { data, meta, form_data: null }; +} +function deserialize_error(message) { + return new SvelteKitError(400, "Bad Request", `Could not deserialize binary form: ${message}`); +} +class LazyFile { + /** @type {(index: number) => Promise | undefined>} */ + #get_chunk; + /** @type {number} */ + #offset; + /** + * @param {string} name + * @param {string} type + * @param {number} size + * @param {number} last_modified + * @param {(index: number) => Promise | undefined>} get_chunk + * @param {number} offset + */ + constructor(name, type, size, last_modified, get_chunk, offset) { + this.name = name; + this.type = type; + this.size = size; + this.lastModified = last_modified; + this.webkitRelativePath = ""; + this.#get_chunk = get_chunk; + this.#offset = offset; + this.arrayBuffer = this.arrayBuffer.bind(this); + this.bytes = this.bytes.bind(this); + this.slice = this.slice.bind(this); + this.stream = this.stream.bind(this); + this.text = this.text.bind(this); + } + /** @type {ArrayBuffer | undefined} */ + #buffer; + async arrayBuffer() { + this.#buffer ??= await new Response(this.stream()).arrayBuffer(); + return this.#buffer; + } + async bytes() { + return new Uint8Array(await this.arrayBuffer()); + } + /** + * @param {number=} start + * @param {number=} end + * @param {string=} contentType + */ + slice(start = 0, end = this.size, contentType = this.type) { + if (start < 0) { + start = Math.max(this.size + start, 0); + } else { + start = Math.min(start, this.size); + } + if (end < 0) { + end = Math.max(this.size + end, 0); + } else { + end = Math.min(end, this.size); + } + const size = Math.max(end - start, 0); + const file = new LazyFile( + this.name, + contentType, + size, + this.lastModified, + this.#get_chunk, + this.#offset + start + ); + return file; + } + stream() { + let cursor = 0; + let chunk_index = 0; + return new ReadableStream({ + start: async (controller) => { + let chunk_start = 0; + let start_chunk = null; + for (chunk_index = 0; ; chunk_index++) { + const chunk = await this.#get_chunk(chunk_index); + if (!chunk) return null; + const chunk_end = chunk_start + chunk.byteLength; + if (this.#offset >= chunk_start && this.#offset < chunk_end) { + start_chunk = chunk; + break; + } + chunk_start = chunk_end; + } + if (this.#offset + this.size <= chunk_start + start_chunk.byteLength) { + controller.enqueue( + start_chunk.subarray(this.#offset - chunk_start, this.#offset + this.size - chunk_start) + ); + controller.close(); + } else { + controller.enqueue(start_chunk.subarray(this.#offset - chunk_start)); + cursor = start_chunk.byteLength - this.#offset + chunk_start; + } + }, + pull: async (controller) => { + chunk_index++; + let chunk = await this.#get_chunk(chunk_index); + if (!chunk) { + controller.error("incomplete file data"); + controller.close(); + return; + } + if (chunk.byteLength > this.size - cursor) { + chunk = chunk.subarray(0, this.size - cursor); + } + controller.enqueue(chunk); + cursor += chunk.byteLength; + if (cursor >= this.size) { + controller.close(); + } + } + }); + } + async text() { + return text_decoder.decode(await this.arrayBuffer()); + } +} +const path_regex = /^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/; +function split_path(path) { + if (!path_regex.test(path)) { + throw new Error(`Invalid path ${path}`); + } + return path.split(/\.|\[|\]/).filter(Boolean); +} +function check_prototype_pollution(key) { + if (key === "__proto__" || key === "constructor" || key === "prototype") { + throw new Error( + `Invalid key "${key}"` + ); + } +} +function deep_set(object, keys, value) { + let current = object; + for (let i = 0; i < keys.length - 1; i += 1) { + const key = keys[i]; + check_prototype_pollution(key); + const is_array = /^\d+$/.test(keys[i + 1]); + const exists = Object.hasOwn(current, key); + const inner = current[key]; + if (exists && is_array !== Array.isArray(inner)) { + throw new Error(`Invalid array key ${keys[i + 1]}`); + } + if (!exists) { + current[key] = is_array ? [] : {}; + } + current = current[key]; + } + const final_key = keys[keys.length - 1]; + check_prototype_pollution(final_key); + current[final_key] = value; +} +function normalize_issue(issue, server = false) { + const normalized = { name: "", path: [], message: issue.message, server }; + if (issue.path !== void 0) { + let name = ""; + for (const segment of issue.path) { + const key = ( + /** @type {string | number} */ + typeof segment === "object" ? segment.key : segment + ); + normalized.path.push(key); + if (typeof key === "number") { + name += `[${key}]`; + } else if (typeof key === "string") { + name += name === "" ? key : "." + key; + } + } + normalized.name = name; + } + return normalized; +} +function flatten_issues(issues) { + const result = {}; + for (const issue of issues) { + (result.$ ??= []).push(issue); + let name = ""; + if (issue.path !== void 0) { + for (const key of issue.path) { + if (typeof key === "number") { + name += `[${key}]`; + } else if (typeof key === "string") { + name += name === "" ? key : "." + key; + } + (result[name] ??= []).push(issue); + } + } + } + return result; +} +function deep_get(object, path) { + let current = object; + for (const key of path) { + if (current == null || typeof current !== "object") { + return current; + } + current = current[key]; + } + return current; +} +function create_field_proxy(target, get_input, set_input, get_issues, path = []) { + const get_value = () => { + return deep_get(get_input(), path); + }; + return new Proxy(target, { + get(target2, prop) { + if (typeof prop === "symbol") return target2[prop]; + if (/^\d+$/.test(prop)) { + return create_field_proxy({}, get_input, set_input, get_issues, [ + ...path, + parseInt(prop, 10) + ]); + } + const key = build_path_string(path); + if (prop === "set") { + const set_func = function(newValue) { + set_input(path, newValue); + return newValue; + }; + return create_field_proxy(set_func, get_input, set_input, get_issues, [...path, prop]); + } + if (prop === "value") { + return create_field_proxy(get_value, get_input, set_input, get_issues, [...path, prop]); + } + if (prop === "issues" || prop === "allIssues") { + const issues_func = () => { + const all_issues = get_issues()[key === "" ? "$" : key]; + if (prop === "allIssues") { + return all_issues?.map((issue) => ({ + path: issue.path, + message: issue.message + })); + } + return all_issues?.filter((issue) => issue.name === key)?.map((issue) => ({ + path: issue.path, + message: issue.message + })); + }; + return create_field_proxy(issues_func, get_input, set_input, get_issues, [...path, prop]); + } + if (prop === "as") { + const as_func = (type, input_value) => { + const is_array = type === "file multiple" || type === "select multiple" || type === "checkbox" && typeof input_value === "string"; + const prefix = type === "number" || type === "range" ? "n:" : type === "checkbox" && !is_array ? "b:" : ""; + const base_props = { + name: prefix + key + (is_array ? "[]" : ""), + get "aria-invalid"() { + const issues = get_issues(); + return key in issues ? "true" : void 0; + } + }; + if (type !== "text" && type !== "select" && type !== "select multiple") { + base_props.type = type === "file multiple" ? "file" : type; + } + if (type === "submit" || type === "hidden") { + return Object.defineProperties(base_props, { + value: { value: input_value, enumerable: true } + }); + } + if (type === "select" || type === "select multiple") { + return Object.defineProperties(base_props, { + multiple: { value: is_array, enumerable: true }, + value: { + enumerable: true, + get() { + return get_value(); + } + } + }); + } + if (type === "checkbox" || type === "radio") { + return Object.defineProperties(base_props, { + value: { value: input_value ?? "on", enumerable: true }, + checked: { + enumerable: true, + get() { + const value = get_value(); + if (type === "radio") { + return value === input_value; + } + if (is_array) { + return (value ?? []).includes(input_value); + } + return value; + } + } + }); + } + if (type === "file" || type === "file multiple") { + return Object.defineProperties(base_props, { + multiple: { value: is_array, enumerable: true }, + files: { + enumerable: true, + get() { + const value = get_value(); + if (value instanceof File) { + if (typeof DataTransfer !== "undefined") { + const fileList = new DataTransfer(); + fileList.items.add(value); + return fileList.files; + } + return { 0: value, length: 1 }; + } + if (Array.isArray(value) && value.every((f) => f instanceof File)) { + if (typeof DataTransfer !== "undefined") { + const fileList = new DataTransfer(); + value.forEach((file) => fileList.items.add(file)); + return fileList.files; + } + const fileListLike = { length: value.length }; + value.forEach((file, index) => { + fileListLike[index] = file; + }); + return fileListLike; + } + return null; + } + } + }); + } + return Object.defineProperties(base_props, { + value: { + enumerable: true, + get() { + const value = get_value(); + return value != null ? String(value) : ""; + } + } + }); + }; + return create_field_proxy(as_func, get_input, set_input, get_issues, [...path, "as"]); + } + return create_field_proxy({}, get_input, set_input, get_issues, [...path, prop]); + } + }); +} +function build_path_string(path) { + let result = ""; + for (const segment of path) { + if (typeof segment === "number") { + result += `[${segment}]`; + } else { + result += result === "" ? segment : "." + segment; + } + } + return result; +} +function negotiate(accept, types) { + const parts = []; + accept.split(",").forEach((str, i) => { + const match = /([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(str); + if (match) { + const [, type, subtype, q = "1"] = match; + parts.push({ type, subtype, q: +q, i }); + } + }); + parts.sort((a, b) => { + if (a.q !== b.q) { + return b.q - a.q; + } + if (a.subtype === "*" !== (b.subtype === "*")) { + return a.subtype === "*" ? 1 : -1; + } + if (a.type === "*" !== (b.type === "*")) { + return a.type === "*" ? 1 : -1; + } + return a.i - b.i; + }); + let accepted; + let min_priority = Infinity; + for (const mimetype of types) { + const [type, subtype] = mimetype.split("/"); + const priority = parts.findIndex( + (part) => (part.type === type || part.type === "*") && (part.subtype === subtype || part.subtype === "*") + ); + if (priority !== -1 && priority < min_priority) { + accepted = mimetype; + min_priority = priority; + } + } + return accepted; +} +function is_content_type(request, ...types) { + const type = request.headers.get("content-type")?.split(";", 1)[0].trim() ?? ""; + return types.includes(type.toLowerCase()); +} +function is_form_content_type(request) { + return is_content_type( + request, + "application/x-www-form-urlencoded", + "multipart/form-data", + "text/plain", + BINARY_FORM_CONTENT_TYPE + ); +} +function coalesce_to_error(err) { + return err instanceof Error || err && /** @type {any} */ + err.name && /** @type {any} */ + err.message ? ( + /** @type {Error} */ + err + ) : new Error(JSON.stringify(err)); +} +function normalize_error(error) { + return ( + /** @type {import('../exports/internal/index.js').Redirect | HttpError | SvelteKitError | Error} */ + error + ); +} +function get_status(error) { + return error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500; +} +function get_message(error) { + return error instanceof SvelteKitError ? error.text : "Internal Error"; +} +const escape_html_attr_dict = { + "&": "&", + '"': """ + // Svelte also escapes < because the escape function could be called inside a `noscript` there + // https://github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c + // However, that doesn't apply in SvelteKit +}; +const escape_html_dict = { + "&": "&", + "<": "<" +}; +const surrogates = ( + // high surrogate without paired low surrogate + "[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]" +); +const escape_html_attr_regex = new RegExp( + `[${Object.keys(escape_html_attr_dict).join("")}]|` + surrogates, + "g" +); +const escape_html_regex = new RegExp( + `[${Object.keys(escape_html_dict).join("")}]|` + surrogates, + "g" +); +function escape_html(str, is_attr) { + const dict = is_attr ? escape_html_attr_dict : escape_html_dict; + const escaped_str = str.replace(is_attr ? escape_html_attr_regex : escape_html_regex, (match) => { + if (match.length === 2) { + return match; + } + return dict[match] ?? `&#${match.charCodeAt(0)};`; + }); + return escaped_str; +} +function method_not_allowed(mod, method) { + return text(`${method} method not allowed`, { + status: 405, + headers: { + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 + // "The server must generate an Allow header field in a 405 status code response" + allow: allowed_methods(mod).join(", ") + } + }); +} +function allowed_methods(mod) { + const allowed = ENDPOINT_METHODS.filter((method) => method in mod); + if ("GET" in mod && !("HEAD" in mod)) { + allowed.push("HEAD"); + } + return allowed; +} +function get_global_name(options) { + return `__sveltekit_${options.version_hash}`; +} +function static_error_page(options, status, message) { + let page = options.templates.error({ status, message: escape_html(message) }); + return text(page, { + headers: { "content-type": "text/html; charset=utf-8" }, + status + }); +} +async function handle_fatal_error(event, state, options, error) { + error = error instanceof HttpError ? error : coalesce_to_error(error); + const status = get_status(error); + const body = await handle_error_and_jsonify(event, state, options, error); + const type = negotiate(event.request.headers.get("accept") || "text/html", [ + "application/json", + "text/html" + ]); + if (event.isDataRequest || type === "application/json") { + return json(body, { + status + }); + } + return static_error_page(options, status, body.message); +} +async function handle_error_and_jsonify(event, state, options, error) { + if (error instanceof HttpError) { + return { message: "Unknown Error", ...error.body }; + } + const status = get_status(error); + const message = get_message(error); + return await with_request_store( + { event, state }, + () => options.hooks.handleError({ error, event, status, message }) + ) ?? { message }; +} +function redirect_response(status, location) { + const response = new Response(void 0, { + status, + headers: { location } + }); + return response; +} +function clarify_devalue_error(event, error) { + if (error.path) { + return `Data returned from \`load\` while rendering ${event.route.id} is not serializable: ${error.message} (${error.path}). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#Universal-hooks-transport.`; + } + if (error.path === "") { + return `Data returned from \`load\` while rendering ${event.route.id} is not a plain object`; + } + return error.message; +} +function serialize_uses(node) { + const uses = {}; + if (node.uses && node.uses.dependencies.size > 0) { + uses.dependencies = Array.from(node.uses.dependencies); + } + if (node.uses && node.uses.search_params.size > 0) { + uses.search_params = Array.from(node.uses.search_params); + } + if (node.uses && node.uses.params.size > 0) { + uses.params = Array.from(node.uses.params); + } + if (node.uses?.parent) uses.parent = 1; + if (node.uses?.route) uses.route = 1; + if (node.uses?.url) uses.url = 1; + return uses; +} +function has_prerendered_path(manifest, pathname) { + return manifest._.prerendered_routes.has(pathname) || pathname.at(-1) === "/" && manifest._.prerendered_routes.has(pathname.slice(0, -1)); +} +function format_server_error(status, error, event) { + const formatted_text = ` +\x1B[1;31m[${status}] ${event.request.method} ${event.url.pathname}\x1B[0m`; + if (status === 404) { + return formatted_text; + } + return `${formatted_text} +${error.stack}`; +} +function get_node_type(node_id) { + const parts = node_id?.split("/"); + const filename = parts?.at(-1); + if (!filename) return "unknown"; + const dot_parts = filename.split("."); + return dot_parts.slice(0, -1).join("."); +} +const INVALIDATED_PARAM = "x-sveltekit-invalidated"; +const TRAILING_SLASH_PARAM = "x-sveltekit-trailing-slash"; +function stringify(data, transport) { + const encoders = Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode])); + return devalue.stringify(data, encoders); +} +function stringify_remote_arg(value, transport) { + if (value === void 0) return ""; + const json_string = stringify(value, transport); + const bytes = new TextEncoder().encode(json_string); + return base64_encode(bytes).replaceAll("=", "").replaceAll("+", "-").replaceAll("/", "_"); +} +function parse_remote_arg(string, transport) { + if (!string) return void 0; + const json_string = text_decoder.decode( + // no need to add back `=` characters, atob can handle it + base64_decode(string.replaceAll("-", "+").replaceAll("_", "/")) + ); + const decoders = Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.decode])); + return devalue.parse(json_string, decoders); +} +function create_remote_key(id, payload) { + return id + "/" + payload; +} +export { + ENDPOINT_METHODS as E, + INVALIDATED_PARAM as I, + PAGE_METHODS as P, + SVELTE_KIT_ASSETS as S, + TRAILING_SLASH_PARAM as T, + set_nested_value as a, + stringify as b, + create_field_proxy as c, + deep_set as d, + create_remote_key as e, + flatten_issues as f, + negotiate as g, + handle_error_and_jsonify as h, + get_status as i, + is_form_content_type as j, + normalize_error as k, + get_global_name as l, + method_not_allowed as m, + normalize_issue as n, + serialize_uses as o, + clarify_devalue_error as p, + get_node_type as q, + escape_html as r, + stringify_remote_arg as s, + static_error_page as t, + redirect_response as u, + parse_remote_arg as v, + deserialize_binary_form as w, + has_prerendered_path as x, + handle_fatal_error as y, + format_server_error as z +}; diff --git a/.svelte-kit/output/server/chunks/utils.js b/.svelte-kit/output/server/chunks/utils.js new file mode 100644 index 00000000..b4a25f57 --- /dev/null +++ b/.svelte-kit/output/server/chunks/utils.js @@ -0,0 +1,43 @@ +const text_encoder = new TextEncoder(); +const text_decoder = new TextDecoder(); +function get_relative_path(from, to) { + const from_parts = from.split(/[/\\]/); + const to_parts = to.split(/[/\\]/); + from_parts.pop(); + while (from_parts[0] === to_parts[0]) { + from_parts.shift(); + to_parts.shift(); + } + let i = from_parts.length; + while (i--) from_parts[i] = ".."; + return from_parts.concat(to_parts).join("/"); +} +function base64_encode(bytes) { + if (globalThis.Buffer) { + return globalThis.Buffer.from(bytes).toString("base64"); + } + let binary = ""; + for (let i = 0; i < bytes.length; i++) { + binary += String.fromCharCode(bytes[i]); + } + return btoa(binary); +} +function base64_decode(encoded) { + if (globalThis.Buffer) { + const buffer = globalThis.Buffer.from(encoded, "base64"); + return new Uint8Array(buffer); + } + const binary = atob(encoded); + const bytes = new Uint8Array(binary.length); + for (let i = 0; i < binary.length; i++) { + bytes[i] = binary.charCodeAt(i); + } + return bytes; +} +export { + base64_decode as a, + base64_encode as b, + text_encoder as c, + get_relative_path as g, + text_decoder as t +}; diff --git a/.svelte-kit/output/server/chunks/utils2.js b/.svelte-kit/output/server/chunks/utils2.js new file mode 100644 index 00000000..a2ff0f08 --- /dev/null +++ b/.svelte-kit/output/server/chunks/utils2.js @@ -0,0 +1,8 @@ +import { clsx } from "clsx"; +import { twMerge } from "tailwind-merge"; +function cn(...inputs) { + return twMerge(clsx(inputs)); +} +export { + cn as c +}; diff --git a/.svelte-kit/output/server/entries/fallbacks/error.svelte.js b/.svelte-kit/output/server/entries/fallbacks/error.svelte.js new file mode 100644 index 00000000..df4fd4ab --- /dev/null +++ b/.svelte-kit/output/server/entries/fallbacks/error.svelte.js @@ -0,0 +1,56 @@ +import { n as noop, g as getContext, e as escape_html } from "../../chunks/index.js"; +import "clsx"; +import { w as writable } from "../../chunks/exports.js"; +import "@sveltejs/kit/internal/server"; +import "../../chunks/root.js"; +import "@sveltejs/kit/internal"; +import "../../chunks/utils.js"; +function create_updated_store() { + const { set, subscribe } = writable(false); + { + return { + subscribe, + // eslint-disable-next-line @typescript-eslint/require-await + check: async () => false + }; + } +} +const is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString()); +if (is_legacy) { + ({ + data: {}, + form: null, + error: null, + params: {}, + route: { id: null }, + state: {}, + status: -1, + url: new URL("https://example.com") + }); +} +const stores = { + updated: /* @__PURE__ */ create_updated_store() +}; +({ + check: stores.updated.check +}); +function context() { + return getContext("__request__"); +} +const page$1 = { + get error() { + return context().page.error; + }, + get status() { + return context().page.status; + } +}; +const page = page$1; +function Error$1($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + $$renderer2.push(`

${escape_html(page.status)}

${escape_html(page.error?.message)}

`); + }); +} +export { + Error$1 as default +}; diff --git a/.svelte-kit/output/server/entries/hooks.server.js b/.svelte-kit/output/server/entries/hooks.server.js new file mode 100644 index 00000000..860d4a42 --- /dev/null +++ b/.svelte-kit/output/server/entries/hooks.server.js @@ -0,0 +1,34 @@ +import { redirect } from "@sveltejs/kit"; +import PocketBase from "pocketbase"; +const POCKETBASE_URL = "https://pocketbase.ccllc.pro"; +const LOGIN_PATH = "/login"; +const LOGOUT_PATH = "/logout"; +function isPublicRoute(pathname) { + return pathname === LOGIN_PATH || pathname.startsWith(LOGIN_PATH + "/") || pathname === LOGOUT_PATH; +} +const handle = async ({ event, resolve }) => { + event.locals.pb = new PocketBase(POCKETBASE_URL); + event.locals.pb.authStore.loadFromCookie(event.request.headers.get("cookie") || ""); + try { + if (event.locals.pb.authStore.isValid) { + await event.locals.pb.collection("users").authRefresh(); + } + } catch { + event.locals.pb.authStore.clear(); + } + event.locals.user = event.locals.pb.authStore.record ?? null; + if (!event.locals.user && !isPublicRoute(event.url.pathname)) { + const redirectTo = event.url.pathname + event.url.search; + const loginUrl = redirectTo && redirectTo !== "/" ? `${LOGIN_PATH}?redirectTo=${encodeURIComponent(redirectTo)}` : LOGIN_PATH; + throw redirect(303, loginUrl); + } + const response = await resolve(event); + response.headers.append( + "set-cookie", + event.locals.pb.authStore.exportToCookie({ httpOnly: false, sameSite: "Lax" }) + ); + return response; +}; +export { + handle +}; diff --git a/.svelte-kit/output/server/entries/pages/_layout.svelte.js b/.svelte-kit/output/server/entries/pages/_layout.svelte.js new file mode 100644 index 00000000..e3dce426 --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/_layout.svelte.js @@ -0,0 +1,9 @@ +import { s as slot } from "../../chunks/index.js"; +function _layout($$renderer, $$props) { + $$renderer.push(``); + slot($$renderer, $$props, "default", {}); + $$renderer.push(``); +} +export { + _layout as default +}; diff --git a/.svelte-kit/output/server/entries/pages/_layout.ts.js b/.svelte-kit/output/server/entries/pages/_layout.ts.js new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/_layout.ts.js @@ -0,0 +1 @@ + diff --git a/.svelte-kit/output/server/entries/pages/_page.server.ts.js b/.svelte-kit/output/server/entries/pages/_page.server.ts.js new file mode 100644 index 00000000..464da2f8 --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/_page.server.ts.js @@ -0,0 +1,9 @@ +const COLLECTION = "Stackq_Items"; +const load = async ({ locals }) => { + const list = await locals.pb.collection(COLLECTION).getFullList({ sort: "-created", expand: "Parent" }).catch(() => []); + const itemsForParent = list.map((i) => ({ id: i.id, Item: i.Item, SKU: i.SKU })); + return { itemsForParent }; +}; +export { + load +}; diff --git a/.svelte-kit/output/server/entries/pages/_page.svelte.js b/.svelte-kit/output/server/entries/pages/_page.svelte.js new file mode 100644 index 00000000..e3f56846 --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/_page.svelte.js @@ -0,0 +1,106 @@ +import "clsx"; +import { a as attributes, c as clsx, b as bind_props } from "../../chunks/index.js"; +import { c as cn } from "../../chunks/utils2.js"; +import { tv } from "tailwind-variants"; +const buttonVariants = tv({ + base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + variants: { + variant: { + default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs", + destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs", + outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs", + secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs", + ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", + link: "text-primary underline-offset-4 hover:underline" + }, + size: { + default: "h-9 px-4 py-2 has-[>svg]:px-3", + sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5", + lg: "h-10 rounded-md px-6 has-[>svg]:px-4", + icon: "size-9", + "icon-sm": "size-8", + "icon-lg": "size-10" + } + }, + defaultVariants: { variant: "default", size: "default" } +}); +function Button($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + class: className, + variant = "default", + size = "default", + ref = null, + href = void 0, + type = "button", + disabled, + children, + $$slots, + $$events, + ...restProps + } = $$props; + if (href) { + $$renderer2.push(""); + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + } else { + $$renderer2.push(""); + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + } + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +function _page($$renderer) { + { + $$renderer.push(""); + $$renderer.push(`

Stackq

Svelte 5 + shadcn-svelte + PocketBase

`); + } + $$renderer.push(``); +} +export { + _page as default +}; diff --git a/.svelte-kit/output/server/entries/pages/items/_page.server.ts.js b/.svelte-kit/output/server/entries/pages/items/_page.server.ts.js new file mode 100644 index 00000000..02d2666e --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/items/_page.server.ts.js @@ -0,0 +1,117 @@ +import { fail } from "@sveltejs/kit"; +const COLLECTION = "Stackq_Items"; +function parseNum(val) { + if (val === "" || val === null || val === void 0) return void 0; + const n = Number(val); + return Number.isFinite(n) ? n : void 0; +} +function parseBool(val) { + return val === "on" || val === "true" || val === true; +} +const load = async ({ locals }) => { + const list = await locals.pb.collection(COLLECTION).getFullList({ + sort: "-created", + expand: "Parent" + }).catch((err) => { + console.error(COLLECTION, err); + return []; + }); + const itemsForParent = list.map((i) => ({ id: i.id, Item: i.Item, SKU: i.SKU })); + return { items: list, itemsForParent }; +}; +const actions = { + create: async ({ request, locals }) => { + const form = await request.formData(); + const Item = form.get("Item")?.trim() ?? ""; + const SKU = form.get("SKU")?.trim() ?? ""; + const Description = form.get("Description")?.trim() ?? ""; + const UOM = form.get("UOM")?.trim() ?? ""; + const Cost = parseNum(form.get("Cost")); + const Vendor = form.get("Vendor")?.trim() ?? ""; + const Catagory = form.get("Catagory")?.trim() ?? ""; + const Sub_Catagory = form.get("Sub_Catagory")?.trim() ?? ""; + const Has_Parent = parseBool(form.get("Has_Parent")); + const Parent = form.get("Parent")?.trim() ?? ""; + const Stock = parseBool(form.get("Stock")); + const imageFileCreate = form.get("Image"); + const hasImage = imageFileCreate && imageFileCreate.size > 0; + if (!Item) return fail(400, { error: "Item name is required", form: "create" }); + try { + const body = { + Item, + SKU, + Description, + UOM: UOM || void 0, + Cost: Cost ?? 0, + Vendor, + Catagory: Catagory || void 0, + Sub_Catagory: Sub_Catagory || void 0, + Has_Parent: !!Has_Parent, + Parent: Parent || null, + Stock: !!Stock + }; + if (hasImage) body.Image = imageFileCreate; + await locals.pb.collection(COLLECTION).create(body); + } catch (e) { + const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Create failed"; + return fail(500, { error: message, form: "create" }); + } + return { success: true }; + }, + update: async ({ request, locals }) => { + const form = await request.formData(); + const id = form.get("id")?.trim(); + if (!id) return fail(400, { error: "Missing id", form: "update" }); + const Item = form.get("Item")?.trim() ?? ""; + const SKU = form.get("SKU")?.trim() ?? ""; + const Description = form.get("Description")?.trim() ?? ""; + const UOM = form.get("UOM")?.trim() ?? ""; + const Cost = parseNum(form.get("Cost")); + const Vendor = form.get("Vendor")?.trim() ?? ""; + const Catagory = form.get("Catagory")?.trim() ?? ""; + const Sub_Catagory = form.get("Sub_Catagory")?.trim() ?? ""; + const Has_Parent = parseBool(form.get("Has_Parent")); + const Parent = form.get("Parent")?.trim() ?? ""; + const Stock = parseBool(form.get("Stock")); + const Image = form.get("Image"); + const imageFile = Image && Image.size > 0 ? Image : void 0; + if (!Item) return fail(400, { error: "Item name is required", form: "update" }); + try { + const body = { + Item, + SKU, + Description, + UOM: UOM || void 0, + Cost: Cost ?? 0, + Vendor, + Catagory: Catagory || void 0, + Sub_Catagory: Sub_Catagory || void 0, + Has_Parent: !!Has_Parent, + Parent: Parent || null, + Stock: !!Stock + }; + if (imageFile) body.Image = imageFile; + await locals.pb.collection(COLLECTION).update(id, body); + } catch (e) { + const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Update failed"; + return fail(500, { error: message, form: "update" }); + } + return { success: true }; + }, + delete: async ({ request, locals }) => { + const form = await request.formData(); + const id = form.get("id")?.trim(); + if (!id) return fail(400, { error: "Missing id", form: "delete" }); + try { + await locals.pb.collection(COLLECTION).delete(id); + } catch (e) { + const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Delete failed"; + return fail(500, { error: message, form: "delete" }); + } + return { success: true }; + } +}; +export { + actions, + load +}; diff --git a/.svelte-kit/output/server/entries/pages/items/_page.svelte.js b/.svelte-kit/output/server/entries/pages/items/_page.svelte.js new file mode 100644 index 00000000..cfc17a42 --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/items/_page.svelte.js @@ -0,0 +1,646 @@ +import { a as attributes, c as clsx, b as bind_props, d as element, h as head, e as escape_html, f as ensure_array_like, i as attr } from "../../../chunks/index.js"; +import { c as cn } from "../../../chunks/utils2.js"; +import "clsx"; +import { tv } from "tailwind-variants"; +function Table($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(`
`); + children?.($$renderer2); + $$renderer2.push(`
`); + bind_props($$props, { ref }); + }); +} +function Table_body($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +function Table_cell($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +function Table_head($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +function Table_header($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +function Table_row($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(`svelte-css-wrapper]:[&>th,td]:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className)), + ...restProps + })}>`); + children?.($$renderer2); + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +const badgeVariants = tv({ + base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3", + variants: { + variant: { + default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent", + secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent", + destructive: "bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white", + outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground" + } + }, + defaultVariants: { variant: "default" } +}); +function Badge($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + href, + class: className, + variant = "default", + children, + $$slots, + $$events, + ...restProps + } = $$props; + element( + $$renderer2, + href ? "a" : "span", + () => { + $$renderer2.push(`${attributes({ + "data-slot": "badge", + href, + class: clsx(cn(badgeVariants({ variant }), className)), + ...restProps + })}`); + }, + () => { + children?.($$renderer2); + $$renderer2.push(``); + } + ); + bind_props($$props, { ref }); + }); +} +function Card($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +function Card_content($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { + ref = null, + class: className, + children, + $$slots, + $$events, + ...restProps + } = $$props; + $$renderer2.push(``); + children?.($$renderer2); + $$renderer2.push(``); + bind_props($$props, { ref }); + }); +} +function _page($$renderer, $$props) { + $$renderer.component(($$renderer2) => { + let { data } = $$props; + function asList(val) { + if (val == null) return []; + return Array.isArray(val) ? val : [val]; + } + function formatDate(iso) { + if (!iso) return "—"; + try { + return new Date(iso).toLocaleDateString(void 0, { dateStyle: "short", timeStyle: "short" }); + } catch { + return iso; + } + } + const items = data?.items ?? []; + const PB_BASE = "https://pocketbase.ccllc.pro"; + const COLLECTION = "Stackq_Items"; + function imageUrl(item) { + if (!item.Image) return null; + return `${PB_BASE}/api/files/${COLLECTION}/${item.id}/${item.Image}`; + } + head("rk8na7", $$renderer2, ($$renderer3) => { + $$renderer3.title(($$renderer4) => { + $$renderer4.push(`Items – Stackq`); + }); + }); + { + $$renderer2.push(""); + $$renderer2.push(`

Stackq Items

${escape_html(items.length)} items
`); + Card($$renderer2, { + children: ($$renderer3) => { + Card_content($$renderer3, { + class: "p-0", + children: ($$renderer4) => { + $$renderer4.push(""); + Table?.($$renderer4, { + children: ($$renderer5) => { + $$renderer5.push(""); + Table_header?.($$renderer5, { + children: ($$renderer6) => { + $$renderer6.push(""); + Table_row?.($$renderer6, { + children: ($$renderer7) => { + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Image`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Item`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`SKU`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + class: "max-w-[200px]", + children: ($$renderer8) => { + $$renderer8.push(`Description`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`UOM`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + class: "text-right", + children: ($$renderer8) => { + $$renderer8.push(`Cost`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Vendor`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Catagory`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Sub_Catagory`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Has Parent`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Parent`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(`Stock`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + class: "text-muted-foreground", + children: ($$renderer8) => { + $$renderer8.push(`created`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_head?.($$renderer7, { + class: "text-muted-foreground", + children: ($$renderer8) => { + $$renderer8.push(`updated`); + }, + $$slots: { default: true } + }); + $$renderer7.push(``); + }, + $$slots: { default: true } + }); + $$renderer6.push(``); + }, + $$slots: { default: true } + }); + $$renderer5.push(` `); + $$renderer5.push(""); + Table_body?.($$renderer5, { + children: ($$renderer6) => { + if (items.length === 0) { + $$renderer6.push(""); + $$renderer6.push(""); + Table_row?.($$renderer6, { + children: ($$renderer7) => { + $$renderer7.push(""); + Table_cell?.($$renderer7, { + colspan: "14", + class: "h-24 text-center text-muted-foreground", + children: ($$renderer8) => { + $$renderer8.push(`No items.`); + }, + $$slots: { default: true } + }); + $$renderer7.push(``); + }, + $$slots: { default: true } + }); + $$renderer6.push(``); + } else { + $$renderer6.push(""); + $$renderer6.push(``); + const each_array = ensure_array_like(items); + for (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) { + let item = each_array[$$index_2]; + $$renderer6.push(""); + Table_row?.($$renderer6, { + children: ($$renderer7) => { + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "w-16", + children: ($$renderer8) => { + if (imageUrl(item)) { + $$renderer8.push(""); + $$renderer8.push(``); + } else { + $$renderer8.push(""); + $$renderer8.push(`—`); + } + $$renderer8.push(``); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "font-medium", + children: ($$renderer8) => { + $$renderer8.push(`${escape_html(item.Item ?? "—")}`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "font-mono text-xs", + children: ($$renderer8) => { + $$renderer8.push(`${escape_html(item.SKU ?? "—")}`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "max-w-[200px] truncate", + title: item.Description ?? "", + children: ($$renderer8) => { + $$renderer8.push(`${escape_html(item.Description ?? "—")}`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + children: ($$renderer8) => { + Badge($$renderer8, { + variant: "outline", + children: ($$renderer9) => { + $$renderer9.push(`${escape_html(item.UOM ?? "—")}`); + }, + $$slots: { default: true } + }); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "text-right tabular-nums", + children: ($$renderer8) => { + $$renderer8.push(`${escape_html(item.Cost != null ? Number(item.Cost).toLocaleString() : "—")}`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "text-muted-foreground", + children: ($$renderer8) => { + $$renderer8.push(`${escape_html(item.Vendor ?? "—")}`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(``); + const each_array_1 = ensure_array_like(asList(item.Catagory)); + for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) { + let cat = each_array_1[$$index]; + Badge($$renderer8, { + variant: "secondary", + class: "mr-1 text-xs", + children: ($$renderer9) => { + $$renderer9.push(`${escape_html(cat)}`); + }, + $$slots: { default: true } + }); + } + $$renderer8.push(` `); + if (asList(item.Catagory).length === 0) { + $$renderer8.push(""); + $$renderer8.push(`—`); + } else { + $$renderer8.push(""); + } + $$renderer8.push(``); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + children: ($$renderer8) => { + $$renderer8.push(``); + const each_array_2 = ensure_array_like(asList(item.Sub_Catagory)); + for (let $$index_1 = 0, $$length2 = each_array_2.length; $$index_1 < $$length2; $$index_1++) { + let sub = each_array_2[$$index_1]; + Badge($$renderer8, { + variant: "outline", + class: "mr-1 text-xs", + children: ($$renderer9) => { + $$renderer9.push(`${escape_html(sub)}`); + }, + $$slots: { default: true } + }); + } + $$renderer8.push(` `); + if (asList(item.Sub_Catagory).length === 0) { + $$renderer8.push(""); + $$renderer8.push(`—`); + } else { + $$renderer8.push(""); + } + $$renderer8.push(``); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + children: ($$renderer8) => { + if (item.Has_Parent) { + $$renderer8.push(""); + Badge($$renderer8, { + children: ($$renderer9) => { + $$renderer9.push(`Yes`); + }, + $$slots: { default: true } + }); + } else { + $$renderer8.push(""); + $$renderer8.push(`No`); + } + $$renderer8.push(``); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "text-muted-foreground", + children: ($$renderer8) => { + if (item.expand?.Parent) { + $$renderer8.push(""); + $$renderer8.push(`${escape_html(item.expand.Parent.Item ?? item.expand.Parent.SKU ?? item.Parent)}`); + } else if (item.Parent) { + $$renderer8.push(""); + $$renderer8.push(`${escape_html(item.Parent)}`); + } else { + $$renderer8.push(""); + $$renderer8.push(`—`); + } + $$renderer8.push(``); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + children: ($$renderer8) => { + if (item.Stock) { + $$renderer8.push(""); + Badge($$renderer8, { + variant: "default", + children: ($$renderer9) => { + $$renderer9.push(`Stock`); + }, + $$slots: { default: true } + }); + } else { + $$renderer8.push(""); + $$renderer8.push(`—`); + } + $$renderer8.push(``); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "text-muted-foreground text-xs", + children: ($$renderer8) => { + $$renderer8.push(`${escape_html(formatDate(item.created))}`); + }, + $$slots: { default: true } + }); + $$renderer7.push(` `); + $$renderer7.push(""); + Table_cell?.($$renderer7, { + class: "text-muted-foreground text-xs", + children: ($$renderer8) => { + $$renderer8.push(`${escape_html(formatDate(item.updated))}`); + }, + $$slots: { default: true } + }); + $$renderer7.push(``); + }, + $$slots: { default: true } + }); + $$renderer6.push(``); + } + $$renderer6.push(``); + } + $$renderer6.push(``); + }, + $$slots: { default: true } + }); + $$renderer5.push(``); + }, + $$slots: { default: true } + }); + $$renderer4.push(``); + }, + $$slots: { default: true } + }); + }, + $$slots: { default: true } + }); + $$renderer2.push(`
`); + } + $$renderer2.push(``); + }); +} +export { + _page as default +}; diff --git a/.svelte-kit/output/server/entries/pages/login/_page.server.ts.js b/.svelte-kit/output/server/entries/pages/login/_page.server.ts.js new file mode 100644 index 00000000..c97760ec --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/login/_page.server.ts.js @@ -0,0 +1,34 @@ +import { fail, redirect } from "@sveltejs/kit"; +function safeRedirectTo(searchParams) { + const to = searchParams.get("redirectTo"); + if (!to || typeof to !== "string") return "/items"; + if (!to.startsWith("/") || to.startsWith("//")) return "/items"; + return to; +} +const load = ({ url, locals }) => { + if (locals.user) { + throw redirect(303, safeRedirectTo(url.searchParams)); + } +}; +const actions = { + login: async ({ request, locals, url }) => { + const data = await request.formData(); + const email = data.get("email")?.trim() ?? ""; + const password = data.get("password") ?? ""; + if (!email || !password) { + return fail(400, { error: "Email and password are required.", email }); + } + try { + await locals.pb.collection("users").authWithPassword(email, password); + } catch (err) { + const message = err && typeof err === "object" && "message" in err ? String(err.message) : "Invalid email or password."; + return fail(401, { error: message, email }); + } + const redirectTo = safeRedirectTo(url.searchParams); + throw redirect(303, redirectTo); + } +}; +export { + actions, + load +}; diff --git a/.svelte-kit/output/server/entries/pages/login/_page.svelte.js b/.svelte-kit/output/server/entries/pages/login/_page.svelte.js new file mode 100644 index 00000000..70a42484 --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/login/_page.svelte.js @@ -0,0 +1,13 @@ +import "clsx"; +function _page($$renderer, $$props) { + let { data } = $$props; + $$renderer.push(`
`); + { + $$renderer.push(""); + $$renderer.push(`

Login

Enter your email and password to sign in.

Loading form…

`); + } + $$renderer.push(`
`); +} +export { + _page as default +}; diff --git a/.svelte-kit/output/server/entries/pages/logout/_page.server.ts.js b/.svelte-kit/output/server/entries/pages/logout/_page.server.ts.js new file mode 100644 index 00000000..df74d58c --- /dev/null +++ b/.svelte-kit/output/server/entries/pages/logout/_page.server.ts.js @@ -0,0 +1,8 @@ +import { redirect } from "@sveltejs/kit"; +const load = ({ locals }) => { + locals.pb.authStore.clear(); + throw redirect(303, "/login"); +}; +export { + load +}; diff --git a/.svelte-kit/output/server/index.js b/.svelte-kit/output/server/index.js new file mode 100644 index 00000000..47f56e83 --- /dev/null +++ b/.svelte-kit/output/server/index.js @@ -0,0 +1,3744 @@ +import { D as DEV } from "./chunks/false.js"; +import { json, text, error } from "@sveltejs/kit"; +import { Redirect, SvelteKitError, ActionFailure, HttpError } from "@sveltejs/kit/internal"; +import { with_request_store, merge_tracing, try_get_request_store } from "@sveltejs/kit/internal/server"; +import { e as assets, c as base, d as app_dir, r as relative, o as override, f as reset } from "./chunks/environment.js"; +import { E as ENDPOINT_METHODS, P as PAGE_METHODS, g as negotiate, m as method_not_allowed, h as handle_error_and_jsonify, i as get_status, j as is_form_content_type, k as normalize_error, l as get_global_name, o as serialize_uses, p as clarify_devalue_error, q as get_node_type, r as escape_html, S as SVELTE_KIT_ASSETS, e as create_remote_key, t as static_error_page, u as redirect_response, v as parse_remote_arg, b as stringify, w as deserialize_binary_form, x as has_prerendered_path, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, y as handle_fatal_error, z as format_server_error } from "./chunks/shared.js"; +import * as devalue from "devalue"; +import { m as make_trackable, d as disable_search, a as decode_params, S as SCHEME, w as writable, r as readable, v as validate_layout_server_exports, b as validate_layout_exports, c as validate_page_server_exports, e as validate_page_exports, n as normalize_path, f as resolve, g as decode_pathname, h as validate_server_exports } from "./chunks/exports.js"; +import { b as base64_encode, t as text_decoder, c as text_encoder, g as get_relative_path } from "./chunks/utils.js"; +import { p as public_env, r as read_implementation, o as options, s as set_private_env, a as set_public_env, g as get_hooks, b as set_read_implementation } from "./chunks/internal.js"; +import { parse, serialize } from "cookie"; +import * as set_cookie_parser from "set-cookie-parser"; +function with_resolvers() { + let resolve2; + let reject; + const promise = new Promise((res, rej) => { + resolve2 = res; + reject = rej; + }); + return { promise, resolve: resolve2, reject }; +} +const NULL_BODY_STATUS = [101, 103, 204, 205, 304]; +const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer; +async function render_endpoint(event, event_state, mod, state) { + const method = ( + /** @type {import('types').HttpMethod} */ + event.request.method + ); + let handler = mod[method] || mod.fallback; + if (method === "HEAD" && !mod.HEAD && mod.GET) { + handler = mod.GET; + } + if (!handler) { + return method_not_allowed(mod, method); + } + const prerender = mod.prerender ?? state.prerender_default; + if (prerender && (mod.POST || mod.PATCH || mod.PUT || mod.DELETE)) { + throw new Error("Cannot prerender endpoints that have mutative methods"); + } + if (state.prerendering && !state.prerendering.inside_reroute && !prerender) { + if (state.depth > 0) { + throw new Error(`${event.route.id} is not prerenderable`); + } else { + return new Response(void 0, { status: 204 }); + } + } + event_state.is_endpoint_request = true; + try { + const response = await with_request_store( + { event, state: event_state }, + () => handler( + /** @type {import('@sveltejs/kit').RequestEvent>} */ + event + ) + ); + if (!(response instanceof Response)) { + throw new Error( + `Invalid response from route ${event.url.pathname}: handler should return a Response object` + ); + } + if (state.prerendering && (!state.prerendering.inside_reroute || prerender)) { + const cloned = new Response(response.clone().body, { + status: response.status, + statusText: response.statusText, + headers: new Headers(response.headers) + }); + cloned.headers.set("x-sveltekit-prerender", String(prerender)); + if (state.prerendering.inside_reroute && prerender) { + cloned.headers.set( + "x-sveltekit-routeid", + encodeURI( + /** @type {string} */ + event.route.id + ) + ); + state.prerendering.dependencies.set(event.url.pathname, { response: cloned, body: null }); + } else { + return cloned; + } + } + return response; + } catch (e) { + if (e instanceof Redirect) { + return new Response(void 0, { + status: e.status, + headers: { location: e.location } + }); + } + throw e; + } +} +function is_endpoint_request(event) { + const { method, headers: headers2 } = event.request; + if (ENDPOINT_METHODS.includes(method) && !PAGE_METHODS.includes(method)) { + return true; + } + if (method === "POST" && headers2.get("x-sveltekit-action") === "true") return false; + const accept = event.request.headers.get("accept") ?? "*/*"; + return negotiate(accept, ["*", "text/html"]) !== "text/html"; +} +function compact(arr) { + return arr.filter( + /** @returns {val is NonNullable} */ + (val) => val != null + ); +} +const DATA_SUFFIX = "/__data.json"; +const HTML_DATA_SUFFIX = ".html__data.json"; +function has_data_suffix(pathname) { + return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX); +} +function add_data_suffix(pathname) { + if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX); + return pathname.replace(/\/$/, "") + DATA_SUFFIX; +} +function strip_data_suffix(pathname) { + if (pathname.endsWith(HTML_DATA_SUFFIX)) { + return pathname.slice(0, -HTML_DATA_SUFFIX.length) + ".html"; + } + return pathname.slice(0, -DATA_SUFFIX.length); +} +const ROUTE_SUFFIX = "/__route.js"; +function has_resolution_suffix(pathname) { + return pathname.endsWith(ROUTE_SUFFIX); +} +function add_resolution_suffix(pathname) { + return pathname.replace(/\/$/, "") + ROUTE_SUFFIX; +} +function strip_resolution_suffix(pathname) { + return pathname.slice(0, -ROUTE_SUFFIX.length); +} +const noop_span = { + spanContext() { + return noop_span_context; + }, + setAttribute() { + return this; + }, + setAttributes() { + return this; + }, + addEvent() { + return this; + }, + setStatus() { + return this; + }, + updateName() { + return this; + }, + end() { + return this; + }, + isRecording() { + return false; + }, + recordException() { + return this; + }, + addLink() { + return this; + }, + addLinks() { + return this; + } +}; +const noop_span_context = { + traceId: "", + spanId: "", + traceFlags: 0 +}; +async function record_span({ name, attributes, fn }) { + { + return fn(noop_span); + } +} +function is_action_json_request(event) { + const accept = negotiate(event.request.headers.get("accept") ?? "*/*", [ + "application/json", + "text/html" + ]); + return accept === "application/json" && event.request.method === "POST"; +} +async function handle_action_json_request(event, event_state, options2, server) { + const actions = server?.actions; + if (!actions) { + const no_actions_error = new SvelteKitError( + 405, + "Method Not Allowed", + `POST method not allowed. No form actions exist for ${"this page"}` + ); + return action_json( + { + type: "error", + error: await handle_error_and_jsonify(event, event_state, options2, no_actions_error) + }, + { + status: no_actions_error.status, + headers: { + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 + // "The server must generate an Allow header field in a 405 status code response" + allow: "GET" + } + } + ); + } + check_named_default_separate(actions); + try { + const data = await call_action(event, event_state, actions); + if (DEV) ; + if (data instanceof ActionFailure) { + return action_json({ + type: "failure", + status: data.status, + // @ts-expect-error we assign a string to what is supposed to be an object. That's ok + // because we don't use the object outside, and this way we have better code navigation + // through knowing where the related interface is used. + data: stringify_action_response( + data.data, + /** @type {string} */ + event.route.id, + options2.hooks.transport + ) + }); + } else { + return action_json({ + type: "success", + status: data ? 200 : 204, + // @ts-expect-error see comment above + data: stringify_action_response( + data, + /** @type {string} */ + event.route.id, + options2.hooks.transport + ) + }); + } + } catch (e) { + const err = normalize_error(e); + if (err instanceof Redirect) { + return action_json_redirect(err); + } + return action_json( + { + type: "error", + error: await handle_error_and_jsonify( + event, + event_state, + options2, + check_incorrect_fail_use(err) + ) + }, + { + status: get_status(err) + } + ); + } +} +function check_incorrect_fail_use(error2) { + return error2 instanceof ActionFailure ? new Error('Cannot "throw fail()". Use "return fail()"') : error2; +} +function action_json_redirect(redirect) { + return action_json({ + type: "redirect", + status: redirect.status, + location: redirect.location + }); +} +function action_json(data, init2) { + return json(data, init2); +} +function is_action_request(event) { + return event.request.method === "POST"; +} +async function handle_action_request(event, event_state, server) { + const actions = server?.actions; + if (!actions) { + event.setHeaders({ + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 + // "The server must generate an Allow header field in a 405 status code response" + allow: "GET" + }); + return { + type: "error", + error: new SvelteKitError( + 405, + "Method Not Allowed", + `POST method not allowed. No form actions exist for ${"this page"}` + ) + }; + } + check_named_default_separate(actions); + try { + const data = await call_action(event, event_state, actions); + if (DEV) ; + if (data instanceof ActionFailure) { + return { + type: "failure", + status: data.status, + data: data.data + }; + } else { + return { + type: "success", + status: 200, + // @ts-expect-error this will be removed upon serialization, so `undefined` is the same as omission + data + }; + } + } catch (e) { + const err = normalize_error(e); + if (err instanceof Redirect) { + return { + type: "redirect", + status: err.status, + location: err.location + }; + } + return { + type: "error", + error: check_incorrect_fail_use(err) + }; + } +} +function check_named_default_separate(actions) { + if (actions.default && Object.keys(actions).length > 1) { + throw new Error( + "When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#named-actions" + ); + } +} +async function call_action(event, event_state, actions) { + const url = new URL(event.request.url); + let name = "default"; + for (const param of url.searchParams) { + if (param[0].startsWith("/")) { + name = param[0].slice(1); + if (name === "default") { + throw new Error('Cannot use reserved action name "default"'); + } + break; + } + } + const action = actions[name]; + if (!action) { + throw new SvelteKitError(404, "Not Found", `No action with name '${name}' found`); + } + if (!is_form_content_type(event.request)) { + throw new SvelteKitError( + 415, + "Unsupported Media Type", + `Form actions expect form-encoded data — received ${event.request.headers.get( + "content-type" + )}` + ); + } + return record_span({ + name: "sveltekit.form_action", + attributes: { + "http.route": event.route.id || "unknown" + }, + fn: async (current2) => { + const traced_event = merge_tracing(event, current2); + const result = await with_request_store( + { event: traced_event, state: event_state }, + () => action(traced_event) + ); + if (result instanceof ActionFailure) { + current2.setAttributes({ + "sveltekit.form_action.result.type": "failure", + "sveltekit.form_action.result.status": result.status + }); + } + return result; + } + }); +} +function validate_action_return(data) { + if (data instanceof Redirect) { + throw new Error("Cannot `return redirect(...)` — use `redirect(...)` instead"); + } + if (data instanceof HttpError) { + throw new Error("Cannot `return error(...)` — use `error(...)` or `return fail(...)` instead"); + } +} +function uneval_action_response(data, route_id, transport) { + const replacer = (thing) => { + for (const key2 in transport) { + const encoded = transport[key2].encode(thing); + if (encoded) { + return `app.decode('${key2}', ${devalue.uneval(encoded, replacer)})`; + } + } + }; + return try_serialize(data, (value) => devalue.uneval(value, replacer), route_id); +} +function stringify_action_response(data, route_id, transport) { + const encoders = Object.fromEntries( + Object.entries(transport).map(([key2, value]) => [key2, value.encode]) + ); + return try_serialize(data, (value) => devalue.stringify(value, encoders), route_id); +} +function try_serialize(data, fn, route_id) { + try { + return fn(data); + } catch (e) { + const error2 = ( + /** @type {any} */ + e + ); + if (data instanceof Response) { + throw new Error( + `Data returned from action inside ${route_id} is not serializable. Form actions need to return plain objects or fail(). E.g. return { success: true } or return fail(400, { message: "invalid" });` + ); + } + if ("path" in error2) { + let message = `Data returned from action inside ${route_id} is not serializable: ${error2.message}`; + if (error2.path !== "") message += ` (data.${error2.path})`; + throw new Error(message); + } + throw error2; + } +} +function create_async_iterator() { + let resolved = -1; + let returned = -1; + const deferred = []; + return { + iterate: (transform = (x) => x) => { + return { + [Symbol.asyncIterator]() { + return { + next: async () => { + const next = deferred[++returned]; + if (!next) return { value: null, done: true }; + const value = await next.promise; + return { value: transform(value), done: false }; + } + }; + } + }; + }, + add: (promise) => { + deferred.push(with_resolvers()); + void promise.then((value) => { + deferred[++resolved].resolve(value); + }); + } + }; +} +function server_data_serializer(event, event_state, options2) { + let promise_id = 1; + let max_nodes = -1; + const iterator = create_async_iterator(); + const global = get_global_name(options2); + function get_replacer(index) { + return function replacer(thing) { + if (typeof thing?.then === "function") { + const id = promise_id++; + const promise = thing.then( + /** @param {any} data */ + (data) => ({ data }) + ).catch( + /** @param {any} error */ + async (error2) => ({ + error: await handle_error_and_jsonify(event, event_state, options2, error2) + }) + ).then( + /** + * @param {{data: any; error: any}} result + */ + async ({ data, error: error2 }) => { + let str; + try { + str = devalue.uneval(error2 ? [, error2] : [data], replacer); + } catch { + error2 = await handle_error_and_jsonify( + event, + event_state, + options2, + new Error(`Failed to serialize promise while rendering ${event.route.id}`) + ); + data = void 0; + str = devalue.uneval([, error2], replacer); + } + return { + index, + str: `${global}.resolve(${id}, ${str.includes("app.decode") ? `(app) => ${str}` : `() => ${str}`})` + }; + } + ); + iterator.add(promise); + return `${global}.defer(${id})`; + } else { + for (const key2 in options2.hooks.transport) { + const encoded = options2.hooks.transport[key2].encode(thing); + if (encoded) { + return `app.decode('${key2}', ${devalue.uneval(encoded, replacer)})`; + } + } + } + }; + } + const strings = ( + /** @type {string[]} */ + [] + ); + return { + set_max_nodes(i) { + max_nodes = i; + }, + add_node(i, node) { + try { + if (!node) { + strings[i] = "null"; + return; + } + const payload = { type: "data", data: node.data, uses: serialize_uses(node) }; + if (node.slash) payload.slash = node.slash; + strings[i] = devalue.uneval(payload, get_replacer(i)); + } catch (e) { + e.path = e.path.slice(1); + throw new Error(clarify_devalue_error( + event, + /** @type {any} */ + e + )); + } + }, + get_data(csp) { + const open = ``; + const close = `<\/script> +`; + return { + data: `[${compact(max_nodes > -1 ? strings.slice(0, max_nodes) : strings).join(",")}]`, + chunks: promise_id > 1 ? iterator.iterate(({ index, str }) => { + if (max_nodes > -1 && index >= max_nodes) { + return ""; + } + return open + str + close; + }) : null + }; + } + }; +} +function server_data_serializer_json(event, event_state, options2) { + let promise_id = 1; + const iterator = create_async_iterator(); + const reducers = { + ...Object.fromEntries( + Object.entries(options2.hooks.transport).map(([key2, value]) => [key2, value.encode]) + ), + /** @param {any} thing */ + Promise: (thing) => { + if (typeof thing?.then !== "function") { + return; + } + const id = promise_id++; + let key2 = "data"; + const promise = thing.catch( + /** @param {any} e */ + async (e) => { + key2 = "error"; + return handle_error_and_jsonify( + event, + event_state, + options2, + /** @type {any} */ + e + ); + } + ).then( + /** @param {any} value */ + async (value) => { + let str; + try { + str = devalue.stringify(value, reducers); + } catch { + const error2 = await handle_error_and_jsonify( + event, + event_state, + options2, + new Error(`Failed to serialize promise while rendering ${event.route.id}`) + ); + key2 = "error"; + str = devalue.stringify(error2, reducers); + } + return `{"type":"chunk","id":${id},"${key2}":${str}} +`; + } + ); + iterator.add(promise); + return id; + } + }; + const strings = ( + /** @type {string[]} */ + [] + ); + return { + add_node(i, node) { + try { + if (!node) { + strings[i] = "null"; + return; + } + if (node.type === "error" || node.type === "skip") { + strings[i] = JSON.stringify(node); + return; + } + strings[i] = `{"type":"data","data":${devalue.stringify(node.data, reducers)},"uses":${JSON.stringify( + serialize_uses(node) + )}${node.slash ? `,"slash":${JSON.stringify(node.slash)}` : ""}}`; + } catch (e) { + e.path = "data" + e.path; + throw new Error(clarify_devalue_error( + event, + /** @type {any} */ + e + )); + } + }, + get_data() { + return { + data: `{"type":"data","nodes":[${strings.join(",")}]} +`, + chunks: promise_id > 1 ? iterator.iterate() : null + }; + } + }; +} +async function load_server_data({ event, event_state, state, node, parent }) { + if (!node?.server) return null; + let is_tracking = true; + const uses = { + dependencies: /* @__PURE__ */ new Set(), + params: /* @__PURE__ */ new Set(), + parent: false, + route: false, + url: false, + search_params: /* @__PURE__ */ new Set() + }; + const load = node.server.load; + const slash = node.server.trailingSlash; + if (!load) { + return { type: "data", data: null, uses, slash }; + } + const url = make_trackable( + event.url, + () => { + if (is_tracking) { + uses.url = true; + } + }, + (param) => { + if (is_tracking) { + uses.search_params.add(param); + } + } + ); + if (state.prerendering) { + disable_search(url); + } + const result = await record_span({ + name: "sveltekit.load", + attributes: { + "sveltekit.load.node_id": node.server_id || "unknown", + "sveltekit.load.node_type": get_node_type(node.server_id), + "http.route": event.route.id || "unknown" + }, + fn: async (current2) => { + const traced_event = merge_tracing(event, current2); + const result2 = await with_request_store( + { event: traced_event, state: event_state }, + () => load.call(null, { + ...traced_event, + fetch: (info, init2) => { + new URL(info instanceof Request ? info.url : info, event.url); + return event.fetch(info, init2); + }, + /** @param {string[]} deps */ + depends: (...deps) => { + for (const dep of deps) { + const { href } = new URL(dep, event.url); + uses.dependencies.add(href); + } + }, + params: new Proxy(event.params, { + get: (target, key2) => { + if (is_tracking) { + uses.params.add(key2); + } + return target[ + /** @type {string} */ + key2 + ]; + } + }), + parent: async () => { + if (is_tracking) { + uses.parent = true; + } + return parent(); + }, + route: new Proxy(event.route, { + get: (target, key2) => { + if (is_tracking) { + uses.route = true; + } + return target[ + /** @type {'id'} */ + key2 + ]; + } + }), + url, + untrack(fn) { + is_tracking = false; + try { + return fn(); + } finally { + is_tracking = true; + } + } + }) + ); + return result2; + } + }); + return { + type: "data", + data: result ?? null, + uses, + slash + }; +} +async function load_data({ + event, + event_state, + fetched, + node, + parent, + server_data_promise, + state, + resolve_opts, + csr +}) { + const server_data_node = await server_data_promise; + const load = node?.universal?.load; + if (!load) { + return server_data_node?.data ?? null; + } + const result = await record_span({ + name: "sveltekit.load", + attributes: { + "sveltekit.load.node_id": node.universal_id || "unknown", + "sveltekit.load.node_type": get_node_type(node.universal_id), + "http.route": event.route.id || "unknown" + }, + fn: async (current2) => { + const traced_event = merge_tracing(event, current2); + return await with_request_store( + { event: traced_event, state: event_state }, + () => load.call(null, { + url: event.url, + params: event.params, + data: server_data_node?.data ?? null, + route: event.route, + fetch: create_universal_fetch(event, state, fetched, csr, resolve_opts), + setHeaders: event.setHeaders, + depends: () => { + }, + parent, + untrack: (fn) => fn(), + tracing: traced_event.tracing + }) + ); + } + }); + return result ?? null; +} +function create_universal_fetch(event, state, fetched, csr, resolve_opts) { + const universal_fetch = async (input, init2) => { + const cloned_body = input instanceof Request && input.body ? input.clone().body : null; + const cloned_headers = input instanceof Request && [...input.headers].length ? new Headers(input.headers) : init2?.headers; + let response = await event.fetch(input, init2); + const url = new URL(input instanceof Request ? input.url : input, event.url); + const same_origin = url.origin === event.url.origin; + let dependency; + if (same_origin) { + if (state.prerendering) { + dependency = { response, body: null }; + state.prerendering.dependencies.set(url.pathname, dependency); + } + } else if (url.protocol === "https:" || url.protocol === "http:") { + const mode = input instanceof Request ? input.mode : init2?.mode ?? "cors"; + if (mode === "no-cors") { + response = new Response("", { + status: response.status, + statusText: response.statusText, + headers: response.headers + }); + } else { + const acao = response.headers.get("access-control-allow-origin"); + if (!acao || acao !== event.url.origin && acao !== "*") { + throw new Error( + `CORS error: ${acao ? "Incorrect" : "No"} 'Access-Control-Allow-Origin' header is present on the requested resource` + ); + } + } + } + let teed_body; + const proxy = new Proxy(response, { + get(response2, key2, receiver) { + async function push_fetched(body2, is_b64) { + const status_number = Number(response2.status); + if (isNaN(status_number)) { + throw new Error( + `response.status is not a number. value: "${response2.status}" type: ${typeof response2.status}` + ); + } + fetched.push({ + url: same_origin ? url.href.slice(event.url.origin.length) : url.href, + method: event.request.method, + request_body: ( + /** @type {string | ArrayBufferView | undefined} */ + input instanceof Request && cloned_body ? await stream_to_string(cloned_body) : init2?.body + ), + request_headers: cloned_headers, + response_body: body2, + response: response2, + is_b64 + }); + } + if (key2 === "body") { + if (response2.body === null) { + return null; + } + if (teed_body) { + return teed_body; + } + const [a, b] = response2.body.tee(); + void (async () => { + let result = new Uint8Array(); + for await (const chunk of a) { + const combined = new Uint8Array(result.length + chunk.length); + combined.set(result, 0); + combined.set(chunk, result.length); + result = combined; + } + if (dependency) { + dependency.body = new Uint8Array(result); + } + void push_fetched(base64_encode(result), true); + })(); + return teed_body = b; + } + if (key2 === "arrayBuffer") { + return async () => { + const buffer = await response2.arrayBuffer(); + const bytes = new Uint8Array(buffer); + if (dependency) { + dependency.body = bytes; + } + if (buffer instanceof ArrayBuffer) { + await push_fetched(base64_encode(bytes), true); + } + return buffer; + }; + } + async function text2() { + const body2 = await response2.text(); + if (body2 === "" && NULL_BODY_STATUS.includes(response2.status)) { + await push_fetched(void 0, false); + return void 0; + } + if (!body2 || typeof body2 === "string") { + await push_fetched(body2, false); + } + if (dependency) { + dependency.body = body2; + } + return body2; + } + if (key2 === "text") { + return text2; + } + if (key2 === "json") { + return async () => { + const body2 = await text2(); + return body2 ? JSON.parse(body2) : void 0; + }; + } + const value = Reflect.get(response2, key2, response2); + if (value instanceof Function) { + return Object.defineProperties( + /** + * @this {any} + */ + function() { + return Reflect.apply(value, this === receiver ? response2 : this, arguments); + }, + { + name: { value: value.name }, + length: { value: value.length } + } + ); + } + return value; + } + }); + if (csr) { + const get = response.headers.get; + response.headers.get = (key2) => { + const lower = key2.toLowerCase(); + const value = get.call(response.headers, lower); + if (value && !lower.startsWith("x-sveltekit-")) { + const included = resolve_opts.filterSerializedResponseHeaders(lower, value); + if (!included) { + throw new Error( + `Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://svelte.dev/docs/kit/hooks#Server-hooks-handle (at ${event.route.id})` + ); + } + } + return value; + }; + } + return proxy; + }; + return (input, init2) => { + const response = universal_fetch(input, init2); + response.catch(() => { + }); + return response; + }; +} +async function stream_to_string(stream) { + let result = ""; + const reader = stream.getReader(); + while (true) { + const { done, value } = await reader.read(); + if (done) { + break; + } + result += text_decoder.decode(value); + } + return result; +} +function hash(...values) { + let hash2 = 5381; + for (const value of values) { + if (typeof value === "string") { + let i = value.length; + while (i) hash2 = hash2 * 33 ^ value.charCodeAt(--i); + } else if (ArrayBuffer.isView(value)) { + const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength); + let i = buffer.length; + while (i) hash2 = hash2 * 33 ^ buffer[--i]; + } else { + throw new TypeError("value must be a string or TypedArray"); + } + } + return (hash2 >>> 0).toString(36); +} +const replacements = { + "<": "\\u003C", + "\u2028": "\\u2028", + "\u2029": "\\u2029" +}; +const pattern = new RegExp(`[${Object.keys(replacements).join("")}]`, "g"); +function serialize_data(fetched, filter, prerendering = false) { + const headers2 = {}; + let cache_control = null; + let age = null; + let varyAny = false; + for (const [key2, value] of fetched.response.headers) { + if (filter(key2, value)) { + headers2[key2] = value; + } + if (key2 === "cache-control") cache_control = value; + else if (key2 === "age") age = value; + else if (key2 === "vary" && value.trim() === "*") varyAny = true; + } + const payload = { + status: fetched.response.status, + statusText: fetched.response.statusText, + headers: headers2, + body: fetched.response_body + }; + const safe_payload = JSON.stringify(payload).replace(pattern, (match) => replacements[match]); + const attrs = [ + 'type="application/json"', + "data-sveltekit-fetched", + `data-url="${escape_html(fetched.url, true)}"` + ]; + if (fetched.is_b64) { + attrs.push("data-b64"); + } + if (fetched.request_headers || fetched.request_body) { + const values = []; + if (fetched.request_headers) { + values.push([...new Headers(fetched.request_headers)].join(",")); + } + if (fetched.request_body) { + values.push(fetched.request_body); + } + attrs.push(`data-hash="${hash(...values)}"`); + } + if (!prerendering && fetched.method === "GET" && cache_control && !varyAny) { + const match = /s-maxage=(\d+)/g.exec(cache_control) ?? /max-age=(\d+)/g.exec(cache_control); + if (match) { + const ttl = +match[1] - +(age ?? "0"); + attrs.push(`data-ttl="${ttl}"`); + } + } + return ` -
-

Stackq

-

Svelte 5 + shadcn-svelte + PocketBase

- -
+{#if browser} + {#await import("./HomeWithDialog.svelte")} +
+

Loading…

+
+ {:then { default: HomeWithDialog }} + + {/await} +{:else} +
+

Stackq

+

Svelte 5 + shadcn-svelte + PocketBase

+ +
+{/if} diff --git a/src/routes/HomeWithDialog.svelte b/src/routes/HomeWithDialog.svelte new file mode 100644 index 00000000..69520fde --- /dev/null +++ b/src/routes/HomeWithDialog.svelte @@ -0,0 +1,51 @@ + + +
+

Stackq

+

Svelte 5 + shadcn-svelte + PocketBase

+
+ + + + + + + +
+
+ + + + + New item + Add a new Stackq item. + + + +