@kozou/svelte-ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -3
- package/build/client/_app/immutable/assets/0._vgqT-Ja.css +2 -0
- package/build/client/_app/immutable/assets/0._vgqT-Ja.css.br +0 -0
- package/build/client/_app/immutable/assets/{0.B45CfnXC.css.gz → 0._vgqT-Ja.css.gz} +0 -0
- package/build/client/_app/immutable/chunks/BgT5WiOF.js +2 -0
- package/build/client/_app/immutable/chunks/BgT5WiOF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgT5WiOF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCUVvlTa.js +214 -0
- package/build/client/_app/immutable/chunks/CCUVvlTa.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCUVvlTa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5sfkRNZ.js +1 -0
- package/build/client/_app/immutable/chunks/D5sfkRNZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5sfkRNZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdJtfEcD.js +4 -0
- package/build/client/_app/immutable/chunks/DdJtfEcD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DdJtfEcD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Ds-FbTMg.js → De8foa1z.js} +1 -1
- package/build/client/_app/immutable/chunks/De8foa1z.js.br +0 -0
- package/build/client/_app/immutable/chunks/De8foa1z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DxikiVqj.js +1 -0
- package/build/client/_app/immutable/chunks/DxikiVqj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DxikiVqj.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BkKlOvdn.js +2 -0
- package/build/client/_app/immutable/entry/app.BkKlOvdn.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BkKlOvdn.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Cjh4JaF7.js +1 -0
- package/build/client/_app/immutable/entry/start.Cjh4JaF7.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Cjh4JaF7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BTi1ueXu.js +1 -0
- package/build/client/_app/immutable/nodes/0.BTi1ueXu.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BTi1ueXu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CrygsmaA.js +1 -0
- package/build/client/_app/immutable/nodes/1.CrygsmaA.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CrygsmaA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CWOXCYvQ.js +1 -0
- package/build/client/_app/immutable/nodes/2.CWOXCYvQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CWOXCYvQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BfuWEZdX.js +1 -0
- package/build/client/_app/immutable/nodes/3.BfuWEZdX.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BfuWEZdX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.TqsoTNiI.js +1 -0
- package/build/client/_app/immutable/nodes/4.TqsoTNiI.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.TqsoTNiI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.6savDm4D.js +1 -0
- package/build/client/_app/immutable/nodes/5.6savDm4D.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.6savDm4D.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.B6xlqPuj.js +1 -0
- package/build/client/_app/immutable/nodes/6.B6xlqPuj.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.B6xlqPuj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.mp1zOZZv.js → 7.CjEmXoAF.js} +1 -1
- package/build/client/_app/immutable/nodes/7.CjEmXoAF.js.br +1 -0
- package/build/client/_app/immutable/nodes/7.CjEmXoAF.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-D3i8OEah.js → 0-C4CgvBlc.js} +3 -3
- package/build/server/chunks/{0-D3i8OEah.js.map → 0-C4CgvBlc.js.map} +1 -1
- package/build/server/chunks/{1-HR1yd0wU.js → 1-B5tolhxt.js} +3 -3
- package/build/server/chunks/{1-HR1yd0wU.js.map → 1-B5tolhxt.js.map} +1 -1
- package/build/server/chunks/{2-CE6m9qid.js → 2-D9il_3ty.js} +2 -2
- package/build/server/chunks/{2-CE6m9qid.js.map → 2-D9il_3ty.js.map} +1 -1
- package/build/server/chunks/{3-BfIWDc-d.js → 3-DfrqlU53.js} +3 -3
- package/build/server/chunks/3-DfrqlU53.js.map +1 -0
- package/build/server/chunks/{4-Dqn3l8BI.js → 4-D6Y076hP.js} +46 -4
- package/build/server/chunks/4-D6Y076hP.js.map +1 -0
- package/build/server/chunks/{5-DA-bCkUw.js → 5-DOvvx6kj.js} +25 -12
- package/build/server/chunks/5-DOvvx6kj.js.map +1 -0
- package/build/server/chunks/{6-DEjxcpBy.js → 6-BJn_aKxy.js} +22 -12
- package/build/server/chunks/6-BJn_aKxy.js.map +1 -0
- package/build/server/chunks/{7-BFDTBBBE.js → 7-CKkRKfs8.js} +3 -3
- package/build/server/chunks/7-CKkRKfs8.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CyAlYQ7a.js → _page.svelte-BWAo_bI_.js} +3 -3
- package/build/server/chunks/{_page.svelte-CyAlYQ7a.js.map → _page.svelte-BWAo_bI_.js.map} +1 -1
- package/build/server/chunks/_page.svelte-D_706hfC.js +167 -0
- package/build/server/chunks/_page.svelte-D_706hfC.js.map +1 -0
- package/build/server/chunks/_page.svelte-DpoimUgp.js +167 -0
- package/build/server/chunks/_page.svelte-DpoimUgp.js.map +1 -0
- package/build/server/chunks/_server.ts-C-Wy675T.js +19 -0
- package/build/server/chunks/_server.ts-C-Wy675T.js.map +1 -0
- package/build/server/chunks/{adapter-1jZYeJkL.js → adapter-CXNsjV1V.js} +22 -10
- package/build/server/chunks/adapter-CXNsjV1V.js.map +1 -0
- package/build/server/chunks/{client-B9o82f8t.js → client-_87vxA9R.js} +2 -2
- package/build/server/chunks/{client-B9o82f8t.js.map → client-_87vxA9R.js.map} +1 -1
- package/build/server/chunks/{zod-from-table-D-zpiAdX.js → composite-form-C6ci57iZ.js} +248 -6
- package/build/server/chunks/composite-form-C6ci57iZ.js.map +1 -0
- package/build/server/chunks/{error.svelte-CCf63hYR.js → error.svelte-CsN316oS.js} +3 -3
- package/build/server/chunks/{error.svelte-CCf63hYR.js.map → error.svelte-CsN316oS.js.map} +1 -1
- package/build/server/chunks/{hooks.server-gNQ4wkwm.js → hooks.server-O5zJccZI.js} +35 -22
- package/build/server/chunks/hooks.server-O5zJccZI.js.map +1 -0
- package/build/server/chunks/{internal-CCj4Us-1.js → internal-Cuea68jL.js} +3 -3
- package/build/server/chunks/{internal-CCj4Us-1.js.map → internal-Cuea68jL.js.map} +1 -1
- package/build/server/chunks/relation-options-Dzy9DaQG.js +87 -0
- package/build/server/chunks/relation-options-Dzy9DaQG.js.map +1 -0
- package/build/server/chunks/{widget-registry-CYJ6dCZP.js → widget-registry-CohQ23di.js} +282 -42
- package/build/server/chunks/widget-registry-CohQ23di.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/manifest.js +16 -9
- package/build/server/manifest.js.map +1 -1
- package/package.json +4 -4
- package/build/client/_app/immutable/assets/0.B45CfnXC.css +0 -2
- package/build/client/_app/immutable/assets/0.B45CfnXC.css.br +0 -0
- package/build/client/_app/immutable/chunks/1PNfJiP5.js +0 -2
- package/build/client/_app/immutable/chunks/1PNfJiP5.js.br +0 -0
- package/build/client/_app/immutable/chunks/1PNfJiP5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BatBMP3E.js +0 -4
- package/build/client/_app/immutable/chunks/BatBMP3E.js.br +0 -0
- package/build/client/_app/immutable/chunks/BatBMP3E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhQvJhgX.js +0 -214
- package/build/client/_app/immutable/chunks/DhQvJhgX.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhQvJhgX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ds-FbTMg.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ds-FbTMg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/y9cSQmno.js +0 -1
- package/build/client/_app/immutable/chunks/y9cSQmno.js.br +0 -0
- package/build/client/_app/immutable/chunks/y9cSQmno.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CZ136DH2.js +0 -2
- package/build/client/_app/immutable/entry/app.CZ136DH2.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CZ136DH2.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B2SCrcq3.js +0 -1
- package/build/client/_app/immutable/entry/start.B2SCrcq3.js.br +0 -0
- package/build/client/_app/immutable/entry/start.B2SCrcq3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DAriStmJ.js +0 -1
- package/build/client/_app/immutable/nodes/0.DAriStmJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DAriStmJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.C6AP-LKV.js +0 -1
- package/build/client/_app/immutable/nodes/1.C6AP-LKV.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.C6AP-LKV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.C3ChRVrO.js +0 -1
- package/build/client/_app/immutable/nodes/2.C3ChRVrO.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.C3ChRVrO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C2gCkFBC.js +0 -1
- package/build/client/_app/immutable/nodes/3.C2gCkFBC.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C2gCkFBC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BT4cE3lU.js +0 -1
- package/build/client/_app/immutable/nodes/4.BT4cE3lU.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BT4cE3lU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.q_Qsfmij.js +0 -1
- package/build/client/_app/immutable/nodes/5.q_Qsfmij.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.q_Qsfmij.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.Ca5RA2Y5.js +0 -1
- package/build/client/_app/immutable/nodes/6.Ca5RA2Y5.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.Ca5RA2Y5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.mp1zOZZv.js.br +0 -1
- package/build/client/_app/immutable/nodes/7.mp1zOZZv.js.gz +0 -0
- package/build/server/chunks/3-BfIWDc-d.js.map +0 -1
- package/build/server/chunks/4-Dqn3l8BI.js.map +0 -1
- package/build/server/chunks/5-DA-bCkUw.js.map +0 -1
- package/build/server/chunks/6-DEjxcpBy.js.map +0 -1
- package/build/server/chunks/7-BFDTBBBE.js.map +0 -1
- package/build/server/chunks/_page.svelte-CYEmRGgG.js +0 -70
- package/build/server/chunks/_page.svelte-CYEmRGgG.js.map +0 -1
- package/build/server/chunks/_page.svelte-NvCEA5JB.js +0 -70
- package/build/server/chunks/_page.svelte-NvCEA5JB.js.map +0 -1
- package/build/server/chunks/adapter-1jZYeJkL.js.map +0 -1
- package/build/server/chunks/hooks.server-gNQ4wkwm.js.map +0 -1
- package/build/server/chunks/widget-registry-CYJ6dCZP.js.map +0 -1
- package/build/server/chunks/zod-from-table-D-zpiAdX.js.map +0 -1
package/README.md
CHANGED
|
@@ -32,6 +32,26 @@ the default is Kozou's bundled in-house REST backend (`@kozou/api`).
|
|
|
32
32
|
| `/tables/[table]/[id]/edit` | Edit record |
|
|
33
33
|
| `/views/[view]` | Read-only view listing |
|
|
34
34
|
|
|
35
|
+
## Relation pickers
|
|
36
|
+
|
|
37
|
+
The create / edit forms render a searchable picker for foreign-key columns:
|
|
38
|
+
|
|
39
|
+
- a **single-column FK** gets a picker when it references the target's
|
|
40
|
+
single-column primary key and the target's label column is
|
|
41
|
+
text-searchable; otherwise the column stays a plain scalar input the
|
|
42
|
+
operator types.
|
|
43
|
+
- a **composite (multi-column) FK** becomes ONE picker that fills every key
|
|
44
|
+
column at once, when it references the target's primary key (any column
|
|
45
|
+
order), the target's label is text-searchable, and none of its columns is
|
|
46
|
+
shared with another foreign key. Ineligible relations keep scalar inputs.
|
|
47
|
+
- the forms also work without JavaScript: the picker submits natively and an
|
|
48
|
+
untouched save keeps the current values.
|
|
49
|
+
|
|
50
|
+
Known limitation: a key containing an **empty-string component** cannot be
|
|
51
|
+
picked or round-tripped through the form — `''` is the picker contract's
|
|
52
|
+
unselected sentinel (shared with the single-column picker). Such rows remain
|
|
53
|
+
manageable through the API.
|
|
54
|
+
|
|
35
55
|
Query parameters on the list / view routes:
|
|
36
56
|
|
|
37
57
|
- `?q=<text>` — case-insensitive search across the resolved
|
|
@@ -70,10 +90,12 @@ Building before running `pnpm test` exercises the smoke case in
|
|
|
70
90
|
the build artifacts are absent so a fresh checkout still gets a
|
|
71
91
|
green `pnpm test` run.
|
|
72
92
|
|
|
73
|
-
## Manual smoke checklist
|
|
93
|
+
## Manual smoke checklist
|
|
74
94
|
|
|
75
|
-
Run end-to-end against a real PostgreSQL
|
|
76
|
-
|
|
95
|
+
Run the standalone dev server end-to-end against a real PostgreSQL and a
|
|
96
|
+
REST backend at `KOZOU_ADAPTER_URL` (default `http://localhost:3000`).
|
|
97
|
+
Standalone, this package's default adapter speaks PostgREST, so bring up
|
|
98
|
+
a PostgreSQL and a PostgREST pointed at it:
|
|
77
99
|
|
|
78
100
|
1. `pnpm --filter @kozou/svelte-ui run dev` — open
|
|
79
101
|
`http://localhost:5173/`.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@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-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--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-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;--spacing:.25rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--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;--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;-webkit-text-decoration:inherit;-webkit-text-decoration: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);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.ml-1{margin-left:calc(var(--spacing) * 1)}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-48{max-height:calc(var(--spacing) * 48)}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-full{width:100%}.max-w-5xl{max-width:var(--container-5xl)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}: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)))}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.bg-background{background-color:var(--background)}.bg-muted{background-color:var(--muted)}.bg-primary{background-color:var(--primary)}.object-contain{object-fit:contain}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.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-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.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-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))}.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)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.underline{text-decoration-line:underline}.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,)}.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))}.running{animation-play-state:running}@media (hover:hover){.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:underline:hover{text-decoration-line:underline}}.disabled\:opacity-50:disabled{opacity:.5}}@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:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(43.9% 0 0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@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:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=Array.isArray,r=Array.prototype.indexOf,i=Array.prototype.includes,a=Array.from,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,l=Object.prototype,u=Array.prototype,d=Object.getPrototypeOf,f=Object.isExtensible,p=()=>{};function m(e){for(var t=0;t<e.length;t++)e[t]()}function h(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var g=1024,_=2048,v=4096,y=8192,ee=16384,b=32768,x=1<<25,te=65536,S=1<<19,ne=1<<20,re=1<<25,ie=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),de=Symbol(`attributes`),fe=Symbol(`class`),pe=Symbol(`style`),me=Symbol(`text`),he=Symbol(`form reset`),ge=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_e=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ve(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function ye(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function be(){throw Error(`https://svelte.dev/e/missing_context`)}function xe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Se(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ce(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function we(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Te(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ee(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function De(){throw Error(`https://svelte.dev/e/fork_discarded`)}function Oe(){throw Error(`https://svelte.dev/e/fork_timing`)}function ke(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Ae(){throw Error(`https://svelte.dev/e/hydration_failed`)}function je(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function Me(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ne(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Pe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Fe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ie(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Le(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Re={},C=Symbol(`uninitialized`),ze=`http://www.w3.org/1999/xhtml`;function Be(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ve(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function He(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ue(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function We(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var w=!1;function T(e){w=e}var E;function D(e){if(e===null)throw He(),Re;return E=e}function Ge(){return D(R(E))}function Ke(e){if(w){if(R(E)!==null)throw He(),Re;E=e}}function qe(e=1){if(w){for(var t=e,n=E;t--;)n=R(n);E=n}}function Je(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Ye(e){if(!e||e.nodeType!==8)throw He(),Re;return e.data}function Xe(e){return e===this.v}function Ze(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Qe(e){return!Ze(e,this.v)}var O=!1,$e=!1;function et(){$e=!0}var k=null;function tt(e){k=e}function nt(){let e={};return[()=>(at(e)||be(),rt(e)),t=>it(e,t)]}function rt(e){return ut(`getContext`).get(e)}function it(e,t){let n=ut(`setContext`);if(O){var r=G.f;!H&&r&32&&!k.i||Ne()}return n.set(e,t),t}function at(e){return ut(`hasContext`).has(e)}function ot(){return ut(`getAllContexts`)}function st(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:G,l:$e&&!t?{s:null,u:null,$:[]}:null}}function ct(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)ir(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function lt(){return!$e||k!==null&&k.l===null}function ut(e){return k===null&&ye(e),k.c??=new Map(dt(k)||void 0)}function dt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var ft=[];function pt(){var e=ft;ft=[],m(e)}function mt(e){if(ft.length===0&&!Vt){var t=ft;queueMicrotask(()=>{t===ft&&pt()})}ft.push(e)}function ht(){for(;ft.length>0;)pt()}function gt(e){var t=G;if(t===null)return H.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;_t(e,t)}function _t(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var vt=~(_|v|g);function A(e,t){e.f=e.f&vt|t}function yt(e){e.f&512||e.deps===null?A(e,g):A(e,v)}function bt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ie,bt(t.deps))}function xt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),bt(e.deps),A(e,g)}function St(e,t,n){if(e==null)return t(void 0),n&&n(void 0),p;let r=Q(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var Ct=[];function wt(e,t){return{subscribe:Tt(e,t).subscribe}}function Tt(e,t=p){let n=null,r=new Set;function i(t){if(Ze(e,t)&&(e=t,n)){let t=!Ct.length;for(let t of r)t[1](),Ct.push(t,e);if(t){for(let e=0;e<Ct.length;e+=2)Ct[e][0](Ct[e+1]);Ct.length=0}}}function a(t){i(t(e))}function o(o,s=p){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||p),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Et(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return wt(n,(e,n)=>{let o=!1,s=[],c=0,l=p,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:p},d=i.map((e,t)=>St(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){m(d),l(),o=!1}})}function Dt(e){return{subscribe:e.subscribe.bind(e)}}function Ot(e){let t;return St(e,e=>t=e)(),t}var kt=!1,At=!1,jt=Symbol(`unmounted`);function Mt(e,t,n){let r=n[t]??={store:null,source:On(void 0),unsubscribe:p};if(r.store!==e&&!(jt in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=p;else{var i=!0;r.unsubscribe=St(e,e=>{i?r.source.v=e:F(r.source,e)}),i=!1}return e&&jt in n?Ot(e):Z(r.source)}function Nt(){let e={};function t(){nr(()=>{for(var t in e)e[t].unsubscribe();o(e,jt,{enumerable:!1,value:!0})})}return[e,t]}function Pt(e,t){kt=!0;try{e.set(t)}finally{kt=!1}}function Ft(e,t,n){return Pt(e,n),t}function It(e){var t=At;try{return At=!1,[e(),At]}finally{At=t}}var Lt=null,Rt=null,j=null,zt=null,M=null,Bt=null,Vt=!1,Ht=!1,Ut=null,Wt=null,Gt=0,Kt=1,qt=class e{id=Kt++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)A(r,_),t(r);for(r of n.m)A(r,v),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,Gt++>1e3&&(this.#w(),Yt()),!this.#g()){for(let e of this.#d)this.#f.delete(e),A(e,_),this.schedule(e);for(let e of this.#f)A(e,v),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=Ut=[],r=[],i=Wt=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw nn(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Ut=null,Wt=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)tn(e,t);i.length>0&&j.#_();return}let o=this.#y();if(o){o.#b(this);return}this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),zt=this,Xt(r),Xt(n),zt=null,this.#c?.resolve();var s=j;if(this.linked&&this.#o===0&&this.#w(),O&&!this.linked&&(this.#S(),j=s),this.#l.length>0){s===null&&(s=this,this.#C());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}#v(e,t,n){e.f^=g;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=g:i&4?t.push(r):O&&i&16777224?n.push(r):Nr(r)&&(i&16&&this.#f.add(r),Rr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#f.delete(i),A(i,_),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),j=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)xt(e[t],this.#d,this.#f)}capture(e,t,n=!1){e.v!==C&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),M?.set(e,t)),this.is_fork||(e.v=t)}activate(){j=this}deactivate(){j=null,M=null}flush(){try{Ht=!0,j=this,this.#_()}finally{Gt=0,Bt=null,Ut=null,Wt=null,Ht=!1,j=null,M=null,wn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#w()}register_created_effect(e){this.#u.push(e)}#S(){this.#w();for(let l=Lt;l!==null;l=l.#n){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=l.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(l.#e){var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#m)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#x([e])});l.activate();var i=new Set,a=new Map;for(var o of t)Zt(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e.v:!0);if(s.length>0)for(let e of this.#u)!(e.f&155648)&&$t(e,s,a)&&(e.f&4194320?(A(e,_),l.schedule(e)):l.#d.add(e));if(l.#l.length>0&&!l.#h){l.apply();for(var c of l.#l)l.#v(c,[],[]);l.#l=[]}l.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,mt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=h()).promise}static ensure(){if(j===null){let t=j=new e;t.#C(),!Ht&&!Vt&&mt(()=>{t.#e||t.flush()})}return j}apply(){if(!O||!this.is_fork&&this.#t===null&&this.#n===null){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let t=Lt;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)M.has(e)||M.set(e,n)}}schedule(e){if(Bt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ut!==null&&t===G&&(O||(H===null||!(H.f&2))&&!kt))return;if(n&96){if(!(n&1024))return;t.f^=g}}this.#l.push(t)}#C(){Rt===null?Lt=Rt=this:(Rt.#n=this,this.#t=Rt),Rt=this}#w(){var e=this.#t,t=this.#n;e===null?Lt=t:e.#n=t,t===null?Rt=e:t.#t=e,this.linked=!1}};function Jt(e){var t=Vt;Vt=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(ht(),j===null)return n;j.flush()}}finally{Vt=t}}function Yt(){try{Ee()}catch(e){_t(e,Bt)}}var N=null;function Xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Nr(r)&&(N=new Set,Rr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&gr(r),N?.size>0)){wn.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Rr(n)}}N.clear()}}N=null}}function Zt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Zt(i,t,n,r):e&4194320&&!(e&2048)&&$t(i,t,r)&&(A(i,_),en(i))}}function Qt(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?Qt(n,t):e&131072&&(A(n,_),t.add(n))}}function $t(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(i.call(t,r))return!0;if(r.f&2&&$t(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function en(e){j.schedule(e)}function tn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),A(e,g);for(var n=e.first;n!==null;)tn(n,t),n=n.next}}function nn(e){A(e,g);for(var t=e.first;t!==null;)nn(t),t=t.next}function rn(e){O||ve(`fork`),j!==null&&Oe();var t=qt.ensure();t.is_fork=!0,M=new Map;var n=!1,r=t.settled();return Jt(e),{commit:async()=>{if(n){await r;return}t.linked||De(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Mr();t.activate(),t.run_fork_commit_callbacks(),t.deactivate(),Jt(()=>{var e=new Set;for(var n of t.current.keys())Qt(n,e);Tn(e),An()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Mr();!n&&t.linked&&t.discard()}}}function an(e){let t=0,n=Dn(0),r;return()=>{tr()&&(Z(n),lr(()=>(t===0&&(r=Q(()=>e(()=>jn(n)))),t+=1,()=>{mt(()=>{--t,t===0&&(r?.(),r=void 0,jn(n))})})))}}var on=te|S;function sn(e,t,n,r){new cn(e,t,n,r)}var cn=class{parent;is_pending=!1;transform_error;#e;#t=w?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=an(()=>(this.#m=Dn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=dr(()=>{if(w){let e=this.#t;Ge();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},on),w&&(this.#e=E)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),mt(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,_r(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();xr(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){xt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=G,n=H,r=k;K(this.#i),W(this.#i),tt(this.#i.ctx);try{return qt.ensure(),e()}catch(e){return gt(e),null}finally{K(t),W(n),tt(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&_r(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,mt(()=>{this.#d=!1,this.#m&&kn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;j?.is_fork?(this.#a&&j.skip_effect(this.#a),this.#o&&j.skip_effect(this.#o),this.#s&&j.skip_effect(this.#s),j.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),w&&(D(this.#t),qe(),D(Je()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){We();return}r=!0,i&&Le(),this.#s!==null&&_r(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){_t(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return _t(e,this.#i.parent),null}}))};mt(()=>{var t;try{t=this.transform_error(e)}catch(e){_t(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>_t(e,this.#i&&this.#i.parent)):o(t)})}};function ln(e,t,n,r){let i=lt()?pn:_n;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=un(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){_t(e,o)}dn()}}var u=fn();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>hn(e))).then(e=>l([...t.map(i),...e])).catch(e=>_t(e,o)).finally(u)}c?c.then(()=>{s(),d(),dn()}):d()}function un(){var e=G,t=H,n=k,r=j;return function(i=!0){K(e),W(t),tt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function dn(e=!0){K(null),W(null),tt(null),e&&j?.deactivate()}function fn(){var e=G,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}function pn(e){var t=2|_;return G!==null&&(G.f|=S),{ctx:k,deps:null,effects:null,equals:Xe,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:G,ac:null}}var mn=Symbol(`obsolete`);function hn(e,t,n){let r=G;r===null&&xe();var i=void 0,a=Dn(C),o=!H,s=new Set;return cr(()=>{var t=G,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ge&&n.reject(e)}).finally(dn)}catch(e){n.reject(e),dn()}var c=j;if(o){if(t.f&32768)var l=fn();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(mn);else for(let e of s.values())e.reject(mn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==mn&&(c.activate(),t?(a.f|=se,kn(a,t)):(a.f&8388608&&(a.f^=se),kn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),nr(()=>{for(let e of s)e.reject(mn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function gn(e){let t=pn(e);return O||Er(t),t}function _n(e){let t=pn(e);return t.equals=Qe,t}function vn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function yn(e){var t,n=G,r=e.parent;if(!wr&&r!==null&&e.v!==C&&r.f&24576)return Be(),e.v;K(r);try{e.f&=~ie,vn(e),t=Fr(e)}finally{K(n)}return t}function bn(e){var t=yn(e);if(!e.equals(t)&&(e.wv=Mr(),(!j?.is_fork||e.deps===null)&&(j===null?e.v=t:(j.capture(e,t,!0),zt?.capture(e,t,!0)),e.deps===null))){A(e,g);return}wr||(M===null?yt(e):(tr()||j?.is_fork)&&M.set(e,t))}function xn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ge),t.fn!==null&&(t.teardown=p),t.ac=null,Lr(t,0),pr(t))}function Sn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Rr(t)}var Cn=new Set,wn=new Map;function Tn(e){Cn=e}var En=!1;function Dn(e,t){return{f:0,v:e,reactions:null,equals:Xe,rv:0,wv:0}}function P(e,t){let n=Dn(e,t);return Er(n),n}function On(e,t=!1,n=!0){let r=Dn(e);return t||(r.equals=Qe),$e&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function F(e,t,n=!1){return H!==null&&(!U||H.f&131072)&<()&&H.f&4325394&&(q===null||!i.call(q,e))&&Ie(),kn(e,n?Nn(t):t,Wt)}function kn(e,t,n=null){if(!e.equals(t)){wn.set(e,wr?t:e.v);var r=qt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&yn(t),M===null&&yt(t)}e.wv=Mr(),Mn(e,_,n),lt()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?Dr([e]):X.push(e)),!r.is_fork&&Cn.size>0&&!En&&An()}return t}function An(){En=!1;for(let e of Cn){e.f&1024&&A(e,v);let t;try{t=Nr(e)}catch{t=!0}t&&Rr(e)}Cn.clear()}function jn(e){F(e,e.v+1)}function Mn(e,t,n){var r=e.reactions;if(r!==null)for(var i=lt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&_)===0;if(l&&A(s,t),c&131072)Cn.add(s);else if(c&2){var u=s;M?.delete(u),c&65536||(c&512&&(G===null||!(G.f&2097152))&&(s.f|=ie),Mn(u,v,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?en(d):n.push(d)}}}}function Nn(e){if(typeof e!=`object`||!e||ce in e)return e;let t=d(e);if(t!==l&&t!==u)return e;var r=new Map,i=n(e),a=P(0),o=null,c=Ar,f=e=>{if(Ar===c)return e();var t=H,n=Ar;W(null),jr(c);var r=e();return W(t),jr(n),r};return i&&r.set(`length`,P(e.length,o)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Pe();var i=r.get(t);return i===void 0?f(()=>{var e=P(n.value,o);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>P(C,o));r.set(t,e),jn(a)}}else F(n,C),jn(a);return!0},get(t,n,i){if(n===ce)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||s(t,n)?.writable)&&(a=f(()=>P(Nn(c?t[n]:C),o)),r.set(n,a)),a!==void 0){var l=Z(a);return l===C?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=Z(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==C)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==C||Reflect.has(e,t);return(n!==void 0||G!==null&&(!i||s(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?Nn(e[t]):C,o)),r.set(t,n)),Z(n)===C)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>P(C,o)),r.set(d+``,p)):F(p,C)}if(l===void 0)(!u||s(e,t)?.writable)&&(l=f(()=>P(void 0,o)),F(l,Nn(n)),r.set(t,l));else{u=l.v!==C;var m=f(()=>Nn(n));F(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}jn(a)}return!0},ownKeys(e){Z(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==C});for(var[n,i]of r)i.v!==C&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Fe()}})}function Pn(e){try{if(typeof e==`object`&&e&&ce in e)return e[ce]}catch{}return e}function Fn(e,t){return Object.is(Pn(e),Pn(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var In,Ln,Rn,zn;function Bn(){if(In===void 0){In=window,Ln=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rn=s(t,`firstChild`).get,zn=s(t,`nextSibling`).get,f(e)&&(e[fe]=void 0,e[de]=null,e[pe]=void 0,e.__e=void 0),f(n)&&(n[me]=void 0)}}function I(e=``){return document.createTextNode(e)}function L(e){return Rn.call(e)}function R(e){return zn.call(e)}function Vn(e,t){if(!w)return L(e);var n=L(E);if(n===null)n=E.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),D(r),r}return t&&qn(n),D(n),n}function Hn(e,t=!1){if(!w){var n=L(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(E?.nodeType!==3){var r=I();return E?.before(r),D(r),r}qn(E)}return E}function Un(e,t=1,n=!1){let r=w?E:e;for(var i;t--;)i=r,r=R(r);if(!w)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),D(a),a}qn(r)}return D(r),r}function Wn(e){e.textContent=``}function Gn(){return!O||N!==null?!1:(G.f&b)!==0}function Kn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function qn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Jn(e){w&&L(e)!==null&&Wn(e)}var Yn=!1;function Xn(){Yn||(Yn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[he]?.()})},{capture:!0}))}function Zn(e){var t=H,n=G;W(null),K(null);try{return e()}finally{W(t),K(n)}}function Qn(e,t,n,r=n){e.addEventListener(t,()=>Zn(n));let i=e[he];i?e[he]=()=>{i(),r(!0)}:e[he]=()=>r(!0),Xn()}function $n(e){G===null&&(H===null&&Te(e),we()),wr&&Ce(e)}function er(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=G;n!==null&&n.f&8192&&(e|=y);var r={ctx:k,deps:null,nodes:null,f:e|_|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};j?.register_created_effect(r);var i=r;if(e&4)Ut===null?qt.ensure().schedule(r):Ut.push(r);else if(t!==null){try{Rr(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&er(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function tr(){return H!==null&&!U}function nr(e){let t=z(8,null);return A(t,g),t.teardown=e,t}function rr(e){$n(`$effect`);var t=G.f;if(!H&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return z(4|ne,e)}function ar(e){return $n(`$effect.pre`),z(8|ne,e)}function or(e){qt.ensure();let t=z(64|S,e);return(e={})=>new Promise(n=>{e.outro?_r(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function sr(e){return z(4,e)}function cr(e){return z(oe|S,e)}function lr(e,t=0){return z(8|t,e)}function ur(e,t=[],n=[],r=[]){ln(r,t,n,t=>{z(8,()=>e(...t.map(Z)))})}function dr(e,t=0){return z(16|t,e)}function B(e){return z(32|S,e)}function fr(e){var t=e.teardown;if(t!==null){let e=wr,n=H;Tr(!0),W(null);try{t.call(null)}finally{Tr(e),W(n)}}}function pr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Zn(()=>{e.abort(ge)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function mr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(hr(e.nodes.start,e.nodes.end),n=!0),A(e,x),pr(e,t&&!n),Lr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();fr(e),e.f^=x,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&gr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function hr(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function gr(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=[];vr(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function vr(e,t,n){if(!(e.f&8192)){e.f^=y;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;vr(i,t,o?n:!1)}i=a}}}function yr(e){br(e,!0)}function br(e,t){if(e.f&8192){e.f^=y,e.f&1024||(A(e,_),qt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;br(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function xr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var Sr=null,Cr=!1,wr=!1;function Tr(e){wr=e}var H=null,U=!1;function W(e){H=e}var G=null;function K(e){G=e}var q=null;function Er(e){H!==null&&(!O||H.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function Dr(e){X=e}var Or=1,kr=0,Ar=kr;function jr(e){Ar=e}function Mr(){return++Or}function Nr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ie),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Nr(a)&&bn(a),a.wv>e.wv)return!0}t&512&&M===null&&A(e,g)}return!1}function Pr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!O&&q!==null&&i.call(q,e)))for(var a=0;a<r.length;a++){var o=r[a];o.f&2?Pr(o,t,!1):t===o&&(n?A(o,_):o.f&1024&&A(o,v),en(o))}}function Fr(e){var t=J,n=Y,r=X,i=H,a=q,o=k,s=U,c=Ar,l=e.f;J=null,Y=0,X=null,H=l&96?null:e,q=null,tt(e.ctx),U=!1,Ar=++kr,e.ac!==null&&(Zn(()=>{e.ac.abort(ge)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=b;var f=e.deps,p=j?.is_fork;if(J!==null){var m;if(p||Lr(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(tr()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(Lr(e,Y),f.length=Y);if(lt()&&X!==null&&!U&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)Pr(X[m],e);if(i!==null&&i!==e){if(kr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=kr;if(t!==null)for(let e of t)e.rv=kr;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=se),d}catch(e){return gt(e)}finally{e.f^=ae,J=t,Y=n,X=r,H=i,q=a,tt(o),U=s,Ar=c}}function Ir(e,t){let n=t.reactions;if(n!==null){var a=r.call(n,e);if(a!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[a]=n[o],n.pop())}}if(n===null&&t.f&2&&(J===null||!i.call(J,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ie),s.v!==C&&yt(s),xn(s),Lr(s,0)}}function Lr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ir(e,n[r])}function Rr(e){var t=e.f;if(!(t&16384)){A(e,g);var n=G,r=Cr;G=e,Cr=!0;try{t&16777232?mr(e):pr(e),fr(e);var i=Fr(e);e.teardown=typeof i==`function`?i:null,e.wv=Or}finally{Cr=r,G=n}}}async function zr(){if(O)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Jt()}function Br(){return qt.ensure().settled()}function Z(e){var t=(e.f&2)!=0;if(Sr?.add(e),H!==null&&!U&&!(G!==null&&G.f&16384)&&(q===null||!i.call(q,e))){var n=H.deps;if(H.f&2097152)e.rv<kr&&(e.rv=kr,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{H.deps??=[],i.call(H.deps,e)||H.deps.push(e);var r=e.reactions;r===null?e.reactions=[H]:i.call(r,H)||r.push(H)}}if(wr&&wn.has(e))return wn.get(e);if(t){var a=e;if(wr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Hr(a))&&(o=yn(a)),wn.set(a,o),o}var s=(a.f&512)==0&&!U&&H!==null&&(Cr||(H.f&512)!=0),c=(a.f&b)===0;Nr(a)&&(s&&(a.f|=512),bn(a)),s&&!c&&(Sn(a),Vr(a))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Vr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Sn(t),Vr(t))}function Hr(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(wn.has(t)||t.f&2&&Hr(t))return!0;return!1}function Q(e){var t=U;try{return U=!0,e()}finally{U=t}}function Ur(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ce in e)Wr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ce in n&&Wr(n)}}}function Wr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Wr(e[n],t)}catch{}let n=d(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=c(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}[...`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`.split(`.`)];var Gr=[`touchstart`,`touchmove`];function Kr(e){return Gr.includes(e)}var qr=Symbol(`events`),Jr=new Set,Yr=new Set;function Xr(e,t,n){(t[qr]??={})[e]=n}function Zr(e){for(var t=0;t<e.length;t++)Jr.add(e[t]);for(var n of Yr)n(e)}var Qr=null;function $r(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Qr=e;var s=0,c=Qr===e&&e[qr];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[qr]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||e.target,a!==t){o(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=G;W(null),K(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[qr]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[qr]=t,delete e.currentTarget,W(d),K(f)}}}var ei=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ti(e){return ei?.createHTML(e)??e}function ni(e){var t=Kn(`template`);return t.innerHTML=ti(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ri(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(w)return $(E,null),E;i===void 0&&(i=ni(a?e:`<!>`+e),n||(i=L(i)));var t=r||Ln?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function ii(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(w)return $(E,null),E;if(!o){var e=L(ni(a));if(i)for(o=document.createDocumentFragment();L(e);)o.appendChild(L(e));else o=L(e)}var t=o.cloneNode(!0);if(i){var n=L(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function ai(e,t){return ii(e,t,`svg`)}function oi(e=``){if(!w){var t=I(e+``);return $(t,t),t}var n=E;return n.nodeType===3?qn(n):(n.before(n=I()),D(n)),$(n,n),n}function si(){if(w)return $(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=I();return e.append(t,n),$(t,n),e}function ci(e,t){if(w){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ge();return}e!==null&&e.before(t)}function li(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[me]??=e.nodeValue)&&(e[me]=n,e.nodeValue=`${n}`)}function ui(e,t){return pi(e,t)}function di(e,t){Bn(),t.intro=t.intro??!1;let n=t.target,r=w,i=E;try{for(var a=L(n);a&&(a.nodeType!==8||a.data!==`[`);)a=R(a);if(!a)throw Re;T(!0),D(a);let r=pi(e,{...t,anchor:a});return T(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Re&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ae(),Bn(),Wn(n),T(!1),ui(e,t)}finally{T(r),D(i)}}var fi=new Map;function pi(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0,transformError:c}){Bn();var l=void 0,u=or(()=>{var s=n??t.appendChild(I());sn(s,{pending:()=>{}},t=>{st({});var n=k;if(o&&(n.c=o),i&&(r.$$events=i),w&&$(t,null),l=e(t,r)||{},w&&(G.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw He(),Re;ct()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=Kr(r);for(let e of[t,document]){var a=fi.get(e);a===void 0&&(a=new Map,fi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,$r,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(a(Jr)),Yr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=fi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,$r),r.delete(e),r.size===0&&fi.delete(n)):r.set(e,i)}Yr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return mi.set(l,u),l}var mi=new WeakMap;function hi(e,t){let n=mi.get(e);return n?(mi.delete(e),n(t)):Promise.resolve()}var gi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)yr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();xr(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),_r(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=Gn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else w&&(this.anchor=E),this.#a(n)}};function _i(e,t,n=!1){var r;w&&(r=E,Ge());var i=new gi(e),a=n?te:0;function o(e,t){if(w){var n=Ye(r);if(e!==parseInt(n.substring(1))){var a=Je();D(a),i.anchor=a,T(!1),i.ensure(e,t),T(!0);return}}i.ensure(e,t)}dr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var vi=Symbol(`NaN`);function yi(e,t,n){w&&Ge();var r=new gi(e),i=!lt();dr(()=>{var e=t();e!==e&&(e=vi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function bi(e,t,n){for(var r=[],i=t.length,o,s=t.length,c=0;c<i;c++){let n=t[c];_r(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;xi(e,a(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;Wn(d),d.append(u),e.items.clear()}xi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function xi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=re,xr(a,document.createDocumentFragment())):V(t[i],n)}}var Si;function Ci(e,t,r,i,o,s=null){var c=e,l=new Map;if(t&4){var u=e;c=w?D(L(u)):u.appendChild(I())}w&&Ge();var d=null,f=_n(()=>{var e=r();return n(e)?e:e==null?[]:a(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Ti(v,p,c,t,i),d!==null&&(p.length===0?d.f&33554432?(d.f^=re,Di(d,null,c)):yr(d):_r(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:dr(()=>{p=Z(f);var e=p.length;let n=!1;w&&Ye(c)===`[!`!=(e===0)&&(c=Je(),D(c),T(!1),n=!0);for(var a=new Set,u=j,v=Gn(),y=0;y<e;y+=1){w&&E.nodeType===8&&E.data===`]`&&(c=E,n=!0,T(!1));var ee=p[y],b=i(ee,y),x=h?null:l.get(b);x?(x.v&&kn(x.v,ee),x.i&&kn(x.i,y),v&&u.unskip_effect(x.e)):(x=Ei(l,h?c:Si??=I(),ee,b,y,o,t,r),h||(x.e.f|=re),l.set(b,x)),a.add(b)}if(e===0&&s&&!d&&(h?d=B(()=>s(c)):(d=B(()=>s(Si??=I())),d.f|=re)),e>a.size&&Se(``,``,``),w&&e>0&&D(Je()),!h)if(m.set(u,a),v){for(let[e,t]of l)a.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);n&&T(!0),Z(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,w&&(c=E)}function wi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ti(e,t,n,r,i){var o=(r&8)!=0,s=t.length,c=e.items,l=wi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(yr(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=re,_===l)Di(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Oi(e,d,_),Oi(e,_,y),Di(_,y,n),d=_,p=[],m=[],l=wi(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var ee=m[0],b;d=ee.prev;var x=p[0],te=p[p.length-1];for(b=0;b<p.length;b+=1)Di(p[b],ee,n);for(b=0;b<m.length;b+=1)u.delete(m[b]);Oi(e,x.prev,te.next),Oi(e,d,x),Oi(e,te,ee),l=ee,d=te,--v,p=[],m=[]}else u.delete(_),Di(_,l,n),Oi(e,_.prev,_.next),Oi(e,_,d===null?e.effect.first:d.next),Oi(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=wi(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=wi(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(xi(e,a(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var S=[];if(u!==void 0)for(_ of u)_.f&8192||S.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&S.push(l),l=wi(l.next);var ne=S.length;if(ne>0){var ie=r&4&&s===0?n:null;if(o){for(v=0;v<ne;v+=1)S[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)S[v].nodes?.a?.fix()}bi(e,S,ie)}}o&&mt(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ei(e,t,n,r,i,a,o,s){var c=o&1?o&16?Dn(n):On(n,!1,!1):null,l=o&2?Dn(i):null;return{v:c,i:l,e:B(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Di(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=R(r);if(a.before(r),r===i)return;r=o}}function Oi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ki(e,t,...n){var r=new gi(e);dr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},te)}function Ai(e){return(t,...n)=>{var r=e(...n),i;w?(i=E,Ge()):(i=L(ni(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&nr(a)}}function ji(e,t,n){var r;w&&(r=E,Ge());var i=new gi(e);dr(()=>{var e=t()??null;if(w&&Ye(r)===`[`!=(e!==null)){var a=Je();D(a),i.anchor=a,T(!1),i.ensure(e,e&&(t=>n(t,e))),T(!0);return}i.ensure(e,e&&(t=>n(t,e)))},te)}function Mi(e,t,n){sr(()=>{var r=Q(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};lr(()=>{var e=n();Ur(e),i&&Ze(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Ni(e,t,r=!1){if(e.multiple){if(t==null)return;if(!n(t))return Ue();for(var i of e.options)i.selected=t.includes(Ii(i));return}for(i of e.options)if(Fn(Ii(i),t)){i.selected=!0;return}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Pi(e){var t=new MutationObserver(()=>{Ni(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),nr(()=>{t.disconnect()})}function Fi(e,t,n=t){var r=new WeakSet,i=!0;Qn(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Ii);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Ii(o)}n(a),e.__value=a,j!==null&&r.add(j)}),sr(()=>{var a=t();if(e===document.activeElement){var o=O?zt:j;if(r.has(o))return}if(Ni(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Ii(s),n(a))}e.__value=a,i=!1}),Pi(e)}function Ii(e){return`__value`in e?e.__value:e.value}var Li=Symbol(`is custom element`),Ri=Symbol(`is html`),zi=_e?`link`:`LINK`,Bi=_e?`progress`:`PROGRESS`;function Vi(e){if(w){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Ui(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Ui(e,`checked`,null),e.checked=r}}};e[he]=n,mt(n),Xn()}}function Hi(e,t){var n=Wi(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Bi)||(e.value=t??``)}function Ui(e,t,n,r){var i=Wi(e);w&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===zi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ki(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Wi(e){return e[de]??={[Li]:e.nodeName.includes(`-`),[Ri]:e.namespaceURI===ze}}var Gi=new Map;function Ki(e){var t=e.getAttribute(`is`)||e.nodeName,n=Gi.get(t);if(n)return n;Gi.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=c(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=d(i)}return n}function qi(e,t,n=t){var r=new WeakSet;Qn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Yi(e)?Xi(a):a,n(a),j!==null&&r.add(j),await zr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(w&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(n(Yi(e)?Xi(e.value):e.value),j!==null&&r.add(j)),lr(()=>{var n=t();if(e===document.activeElement){var i=O?zt:j;if(r.has(i))return}Yi(e)&&n===Xi(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ji(e,t,n=t){Qn(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(w&&e.defaultChecked!==e.checked||Q(t)==null)&&n(e.checked),lr(()=>{e.checked=!!t()})}function Yi(e){var t=e.type;return t===`number`||t===`range`}function Xi(e){return e===``?null:+e}function Zi(e,t){return e===t||e?.[ce]===t}function Qi(e={},t,n,r){var i=k.r,a=G;return sr(()=>{var o,s;return lr(()=>{o=s,s=r?.()||[],Q(()=>{Zi(n(...s),e)||(t(e,...s),o&&Zi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Zi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function $i(e,t,n,r){var i=!$e||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>o&&i?(u??=pn(r),Z(u)):(l&&(l=!1,c=o?Q(r):r),c);let f;if(a){var p=ce in e||le in e;f=s(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=It(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Me(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?pn:_n)(()=>(v=!1,g()));a&&Z(y);var ee=G;return(function(e,t){if(arguments.length>0){let n=t?Z(y):i&&a?Nn(e):e;return F(y,n),v=!0,c!==void 0&&(c=n),e}return wr&&v||ee.f&16384?y.v:Z(y)})}function ea(e){return class extends ta{constructor(t){super({component:e,...t})}}}var ta=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=On(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===le?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?di:ui)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!O&&(!e?.props?.$$host||e.sync===!1)&&Jt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||o(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{hi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function na(e,t){if(O||ve(`hydratable`),w){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ve(e)}return t()}var ra=t({afterUpdate:()=>ua,beforeUpdate:()=>la,createContext:()=>nt,createEventDispatcher:()=>ca,createRawSnippet:()=>Ai,flushSync:()=>Jt,fork:()=>rn,getAbortSignal:()=>ia,getAllContexts:()=>ot,getContext:()=>rt,hasContext:()=>at,hydratable:()=>na,hydrate:()=>di,mount:()=>ui,onDestroy:()=>oa,onMount:()=>aa,setContext:()=>it,settled:()=>Br,tick:()=>zr,unmount:()=>hi,untrack:()=>Q});function ia(){return H===null&&ke(),(H.ac??=new AbortController).signal}function aa(e){k===null&&ye(`onMount`),$e&&k.l!==null?da(k).m.push(e):rr(()=>{let t=Q(e);if(typeof t==`function`)return t})}function oa(e){k===null&&ye(`onDestroy`),aa(()=>()=>Q(e))}function sa(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ca(){let e=k;return e===null&&ye(`createEventDispatcher`),(t,r,i)=>{let a=e.s.$$events?.[t];if(a){let o=n(a)?a.slice():[a],s=sa(t,r,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function la(e){k===null&&ye(`beforeUpdate`),k.l===null&&je(`beforeUpdate`),da(k).b.push(e)}function ua(e){k===null&&ye(`afterUpdate`),k.l===null&&je(`afterUpdate`),da(k).a.push(e)}function da(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{st as $,Br as A,Nn as B,si as C,Zr as D,oi as E,ar as F,Mt as G,P as H,Jn as I,Ot as J,Ft as K,Vn as L,Q as M,ur as N,Xr as O,rr as P,ct as Q,Hn as R,ci as S,ai as T,gn as U,F as V,Nt as W,Tt as X,Dt as Y,rt as Z,ki as _,$i as a,_i as b,qi as c,Hi as d,it as et,Fi as f,ji as g,Mi as h,ea as i,zr as j,Z as k,Vi as l,Ni as m,oa as n,Ke as nt,Qi as o,Pi as p,Et as q,aa as r,Ji as s,ra as t,et as tt,Ui as u,Ci as v,ri as w,li as x,yi as y,Un as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import{$ as e,B as t,D as n,H as r,I as i,J as a,L as o,N as s,O as c,Q as l,S as u,T as d,U as f,V as p,X as m,Y as h,a as g,b as _,c as v,d as y,f as b,j as x,k as S,l as C,m as w,n as T,nt as E,p as ee,q as D,s as O,tt as te,u as k,v as ne,w as A,x as j,z as M}from"./BgT5WiOF.js";import{_ as N,a as re,b as P,c as ie,g as ae,h as oe,i as F,m as I,o as se,p as L,r as ce,t as le,v as ue,x as de,y as fe}from"./DdJtfEcD.js";import"./xihTtKlq.js";import{t as R}from"./D5sfkRNZ.js";import{n as pe,t as me}from"./De8foa1z.js";function he(e,t){let n=ge(!1,e,t);return typeof n==`string`?n:`[${n.join(`,`)}]`}function ge(e,t,n){let r=[],i=new Map,a=[];if(n)for(let e of Object.getOwnPropertyNames(n))a.push({key:e,fn:n[e]});let o=[],s=0;function c(n,l){if(n===void 0)return-1;if(Number.isNaN(n))return-3;if(n===1/0)return-4;if(n===-1/0)return-5;if(n===0&&1/n<0)return-6;if(i.has(n))return i.get(n);l??=s++,i.set(n,l);for(let{key:e,fn:t}of a){let i=t(n);if(i)return r[l]=`["${e}",${c(i)}]`,l}if(typeof n==`function`)throw new I(`Cannot stringify a function`,o,n,t);if(typeof n==`symbol`)throw new I(`Cannot stringify a Symbol primitive`,o,n,t);let u=``;if(ue(n))u=_e(n);else if(typeof n.then==`function`){if(!e)throw new I(`Cannot stringify a Promise or thenable — use stringifyAsync instead`,o,n,t);u=Promise.resolve(n).then(e=>{let t=c(e,l);t<0&&(r[l]=t)})}else{let e=ae(n);switch(e){case`Number`:case`String`:case`Boolean`:case`BigInt`:u=`["Object",${c(n.valueOf())}]`;break;case`Date`:u=`["Date","${isNaN(n.getDate())?``:n.toISOString()}"]`;break;case`URL`:u=`["URL",${P(n.toString())}]`;break;case`URLSearchParams`:u=`["URLSearchParams",${P(n.toString())}]`;break;case`RegExp`:let{source:r,flags:i}=n;u=i?`["RegExp",${P(r)},"${i}"]`:`["RegExp",${P(r)}]`;break;case`Array`:{let e=!1;u=`[`;for(let t=0;t<n.length;t+=1)if(t>0&&(u+=`,`),Object.hasOwn(n,t))o.push(`[${t}]`),u+=c(n[t]),o.pop();else if(e)u+=-2;else{let t=de(n),r=t.length,i=String(n.length).length;if((n.length-r)*3>4+i+r*(i+1)){u=`[-7,`+n.length;for(let e=0;e<t.length;e++){let r=t[e];o.push(`[${r}]`),u+=`,`+r+`,`+c(n[r]),o.pop()}break}else e=!0,u+=-2}u+=`]`;break}case`Set`:u=`["Set"`;for(let e of n)u+=`,${c(e)}`;u+=`]`;break;case`Map`:u=`["Map"`;for(let[e,t]of n)o.push(`.get(${ue(e)?_e(e):`...`})`),u+=`,${c(e)},${c(t)}`,o.pop();u+=`]`;break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{let t=n;u=`["`+e+`",`+c(t.buffer),t.byteLength!==t.buffer.byteLength&&(u+=`,${t.byteOffset},${t.length}`),u+=`]`;break}case`ArrayBuffer`:u=`["ArrayBuffer","${L(n)}"]`;break;case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:u=`["${e}",${P(n.toString())}]`;break;default:if(!N(n))throw new I(`Cannot stringify arbitrary non-POJOs`,o,n,t);if(oe(n).length>0)throw new I(`Cannot stringify POJOs with symbolic keys`,o,n,t);if(Object.getPrototypeOf(n)===null){u=`["null"`;for(let e of Object.keys(n)){if(e===`__proto__`)throw new I(`Cannot stringify objects with __proto__ keys`,o,n,t);o.push(fe(e)),u+=`,${P(e)},${c(n[e])}`,o.pop()}u+=`]`}else{u=`{`;let e=!1;for(let r of Object.keys(n)){if(r===`__proto__`)throw new I(`Cannot stringify objects with __proto__ keys`,o,n,t);e&&(u+=`,`),e=!0,o.push(fe(r)),u+=`${P(r)}:${c(n[r])}`,o.pop()}u+=`}`}}}return r[l]=u,l}let l=c(t);return l<0?`${l}`:r}function _e(e){let t=typeof e;return t===`string`?P(e):e===void 0?`-1`:e===0&&1/e<0?`-6`:t===`bigint`?`["BigInt","${e}"]`:String(e)}te();var z=()=>{let e=ie;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},ve={subscribe(e){return z().page.subscribe(e)}},ye={subscribe(e){return z().navigating.subscribe(e)}};A(`<style>.super-debug--absolute {
|
|
2
|
+
position: absolute;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.super-debug--top-0 {
|
|
6
|
+
top: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.super-debug--inset-x-0 {
|
|
10
|
+
left: 0px;
|
|
11
|
+
right: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.super-debug--hidden {
|
|
15
|
+
height: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.super-debug--hidden:not(.super-debug--with-label) {
|
|
20
|
+
height: 1.5em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.super-debug--rotated {
|
|
24
|
+
transform: rotate(180deg);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.super-debug {
|
|
28
|
+
--_sd-bg-color: var(--sd-bg-color, var(--sd-vscode-bg-color, rgb(30, 41, 59)));
|
|
29
|
+
position: relative;
|
|
30
|
+
background-color: var(--_sd-bg-color);
|
|
31
|
+
border-radius: 0.5rem;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.super-debug--pre {
|
|
36
|
+
overflow-x: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.super-debug--collapse {
|
|
40
|
+
display: block;
|
|
41
|
+
width: 100%;
|
|
42
|
+
color: rgba(255, 255, 255, 0.25);
|
|
43
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
44
|
+
padding: 5px 0;
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
border-color: transparent;
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 3px 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.super-debug--collapse:focus {
|
|
53
|
+
color: #fafafa;
|
|
54
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.super-debug--collapse:is(:hover) {
|
|
58
|
+
color: rgba(255, 255, 255, 0.35);
|
|
59
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.super-debug--status {
|
|
63
|
+
display: flex;
|
|
64
|
+
padding: 1em;
|
|
65
|
+
padding-bottom: 0;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
font-family:
|
|
68
|
+
Inconsolata, Monaco, Consolas, 'Lucida Console', 'Courier New', Courier, monospace;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.super-debug--right-status {
|
|
72
|
+
display: flex;
|
|
73
|
+
gap: 0.55em;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.super-debug--copy {
|
|
77
|
+
margin: 0;
|
|
78
|
+
padding: 0;
|
|
79
|
+
padding-top: 2px;
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
border: 0;
|
|
82
|
+
color: #666;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.super-debug--copy:hover {
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
color: #666;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.super-debug--copy:focus {
|
|
92
|
+
background-color: transparent;
|
|
93
|
+
color: #666;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.super-debug--label {
|
|
97
|
+
color: var(--sd-label-color, var(--sd-vscode-label-color, white));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.super-debug--promise-loading {
|
|
101
|
+
color: var(--sd-promise-loading-color, var(--sd-vscode-promise-loading-color, #999));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.super-debug--promise-rejected {
|
|
105
|
+
color: var(--sd-promise-rejected-color, var(--sd-vscode-promise-rejected-color, #ff475d));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.super-debug pre {
|
|
109
|
+
color: var(--sd-code-default, var(--sd-vscode-code-default, #999));
|
|
110
|
+
background-color: var(--_sd-bg-color);
|
|
111
|
+
font-size: 1em;
|
|
112
|
+
margin-bottom: 0;
|
|
113
|
+
padding: 1em 0 1em 1em;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.super-debug--info {
|
|
117
|
+
color: var(--sd-info, var(--sd-vscode-info, rgb(85, 85, 255)));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.super-debug--success {
|
|
121
|
+
color: var(--sd-success, var(--sd-vscode-success, #2cd212));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.super-debug--redirect {
|
|
125
|
+
color: var(--sd-redirect, var(--sd-vscode-redirect, #03cae5));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.super-debug--error {
|
|
129
|
+
color: var(--sd-error, var(--sd-vscode-error, #ff475d));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.super-debug--code .key {
|
|
133
|
+
color: var(--sd-code-key, var(--sd-vscode-code-key, #eab308));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.super-debug--code .string {
|
|
137
|
+
color: var(--sd-code-string, var(--sd-vscode-code-string, #6ec687));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.super-debug--code .date {
|
|
141
|
+
color: var(--sd-code-date, var(--sd-vscode-code-date, #f06962));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.super-debug--code .boolean {
|
|
145
|
+
color: var(--sd-code-boolean, var(--sd-vscode-code-boolean, #79b8ff));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.super-debug--code .number {
|
|
149
|
+
color: var(--sd-code-number, var(--sd-vscode-code-number, #af77e9));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.super-debug--code .bigint {
|
|
153
|
+
color: var(--sd-code-bigint, var(--sd-vscode-code-bigint, #af77e9));
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.super-debug--code .null {
|
|
157
|
+
color: var(--sd-code-null, var(--sd-vscode-code-null, #238afe));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.super-debug--code .nan {
|
|
161
|
+
color: var(--sd-code-nan, var(--sd-vscode-code-nan, #af77e9));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.super-debug--code .undefined {
|
|
165
|
+
color: var(--sd-code-undefined, var(--sd-vscode-code-undefined, #238afe));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.super-debug--code .function {
|
|
169
|
+
color: var(--sd-code-function, var(--sd-vscode-code-function, #f06962));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.super-debug--code .symbol {
|
|
173
|
+
color: var(--sd-code-symbol, var(--sd-vscode-code-symbol, #4de0c5));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.super-debug--code .error {
|
|
177
|
+
color: var(--sd-code-error, var(--sd-vscode-code-error, #ff475d));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.super-debug pre::-webkit-scrollbar {
|
|
181
|
+
width: var(--sd-sb-width, var(--sd-vscode-sb-width, 1rem));
|
|
182
|
+
height: var(--sd-sb-height, var(--sd-vscode-sb-height, 1rem));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.super-debug pre::-webkit-scrollbar-track {
|
|
186
|
+
border-radius: 12px;
|
|
187
|
+
background-color: var(
|
|
188
|
+
--sd-sb-track-color,
|
|
189
|
+
var(--sd-vscode-sb-track-color, hsl(0, 0%, 40%, 0.2))
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
.super-debug:is(:focus-within, :hover) pre::-webkit-scrollbar-track {
|
|
193
|
+
border-radius: 12px;
|
|
194
|
+
background-color: var(
|
|
195
|
+
--sd-sb-track-color-focus,
|
|
196
|
+
var(--sd-vscode-sb-track-color-focus, hsl(0, 0%, 50%, 0.2))
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.super-debug pre::-webkit-scrollbar-thumb {
|
|
201
|
+
border-radius: 12px;
|
|
202
|
+
background-color: var(
|
|
203
|
+
--sd-sb-thumb-color,
|
|
204
|
+
var(--sd-vscode-sb-thumb-color, hsl(217, 50%, 50%, 0.5))
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
.super-debug:is(:focus-within, :hover) pre::-webkit-scrollbar-thumb {
|
|
208
|
+
border-radius: 12px;
|
|
209
|
+
background-color: var(
|
|
210
|
+
--sd-sb-thumb-color-focus,
|
|
211
|
+
var(--sd-vscode-sb-thumb-color-focus, hsl(217, 50%, 50%))
|
|
212
|
+
);
|
|
213
|
+
}</style>`),d(`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z"></path><path d="M4.012 16.737A2.005 2.005 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1"></path></g></svg>`),d(`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M15 12v6m-3-3h6"></path><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></g></svg>`),A(`<div> </div>`),A(`<span class="super-debug--promise-rejected">Rejected:</span> <!>`,1),A(`<div class="super-debug--promise-loading">Loading data...</div>`),A(`<button type="button" class="super-debug--collapse" aria-label="Collapse"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="currentColor" d="M4.08 11.92L12 4l7.92 7.92l-1.42 1.41l-5.5-5.5V22h-2V7.83l-5.5 5.5l-1.42-1.41M12 4h10V2H2v2h10Z"></path></svg></button>`),A(`<div dir="ltr"><div><div class="super-debug--label"> </div> <div class="super-debug--right-status"><button type="button" class="super-debug--copy"><!></button> <!></div></div> <pre><code class="super-debug--code"><!></code></pre> <!></div>`),A(`<!> <!>`,1);function be(e,t,n){if(t===`__proto__`||t===`prototype`)throw Error("Cannot set an object's `__proto__` or `prototype` property");return e[t]=n,`skip`}function xe(e,t){return t.value!==void 0&&typeof t.value!=`object`&&t.path.length<e.length}function B(e,t,n={}){n.modifier||=e=>xe(t,e)?void 0:e.value;let r=V(e,t,n.modifier);if(r)return n.value===void 0||n.value(r.value)?r:void 0}function V(e,t,n){if(!t.length)return;if(t.includes(`__proto__`)||t.includes(`prototype`))throw Error("Cannot set an object's `__proto__` or `prototype` property");let r=[t[0]],i=e;for(;i&&r.length<t.length;){let e=r[r.length-1],a=n?n({parent:i,key:String(e),value:i[e],path:r.map(e=>String(e)),isLeaf:!1,set:t=>be(i,e,t)}):i[e];if(a===void 0)return;i=a,r.push(t[r.length])}if(!i)return;let a=t[t.length-1];return{parent:i,key:String(a),value:i[a],path:t.map(e=>String(e)),isLeaf:!0,set:e=>be(i,a,e)}}function H(e,t,n=[]){for(let r in e){let i=e[r],a=typeof i!=`object`||!i,o={parent:e,key:r,value:i,path:n.concat([r]),isLeaf:a,set:t=>be(e,r,t)},s=t(o);if(s===`abort`)return s;if(s!==`skip`&&!a){let e=H(i,t,o.path);if(e===`abort`)return e}}}function Se(e,t){return e===t||e.size===t.size&&[...e].every(e=>t.has(e))}function Ce(e,t){let n=new Map;function r(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e instanceof Set&&t instanceof Set&&!Se(e,t)||e instanceof File&&t instanceof File&&e!==t}function i(e){return e instanceof Date||e instanceof Set||e instanceof File}function a(e,t){let a=t?V(t,e.path):void 0;function o(){return n.set(e.path.join(` `),e.path),`skip`}if(i(e.value)&&(!i(a?.value)||r(e.value,a.value)))return o();e.isLeaf&&(!a||e.value!==a.value)&&o()}H(e,e=>a(e,t)),H(t,t=>a(t,e));let o=Array.from(n.values());return o.sort((e,t)=>e.length-t.length),o}function U(e,t,n){let r=typeof n==`function`;for(let i of t){let t=V(e,i,({parent:e,key:t,value:n})=>((n===void 0||typeof n!=`object`)&&(e[t]={}),e[t]));if(t){if(t.key===`__proto__`||t.key===`prototype`)throw Error("Cannot set an object's `__proto__` or `prototype` property");t.parent[t.key]=r?n(i,t):n}}}function W(e){return e.toString().split(/[[\].]+/).filter(e=>e)}function we(e){return e.reduce((e,t)=>{let n=String(t);return typeof t==`number`||/^\d+$/.test(n)?e+=`[${n}]`:e?e+=`.${n}`:e+=n,e},``)}function G(e){let t={}.toString.call(e).slice(8,-1);if(t==`Set`)return new Set([...e].map(e=>G(e)));if(t==`Map`)return new Map([...e].map(e=>[G(e[0]),G(e[1])]));if(t==`Date`)return new Date(e.getTime());if(t==`RegExp`)return RegExp(e.source,e.flags);if(t==`Array`||t==`Object`){let n=t==`Object`?Object.create(Object.getPrototypeOf(e)):[];for(let t in e)n[t]=G(e[t]);return n}return e}function K(e){return e&&typeof e==`object`?G(e):e}var q=e=>{if(typeof e==`object`&&e){if(typeof Object.getPrototypeOf==`function`){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)===`[object Object]`}return!1},J=(...e)=>e.reduce((e,t)=>{if(t===void 0)return e;if(Array.isArray(t))throw TypeError(`Arguments provided to ts-deepmerge must be objects, not arrays.`);return Object.keys(t).forEach(n=>{[`__proto__`,`constructor`,`prototype`].includes(n)||(Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=J.options.mergeArrays?J.options.uniqueArrayItems?Array.from(new Set(e[n].concat(t[n]))):[...e[n],...t[n]]:t[n]:q(e[n])&&q(t[n])?e[n]=J(e[n],t[n]):!q(e[n])&&q(t[n])?e[n]=J(t[n],void 0):e[n]=t[n]===void 0?J.options.allowUndefinedOverrides?t[n]:e[n]:t[n])}),e},{}),Te={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};J.options=Te,J.withOptions=(e,...t)=>{J.options=Object.assign(Object.assign({},Te),e);let n=J(...t);return J.options=Te,n};var Y=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};function Ee(e,t){let n={};function r(e){if(`_errors`in n||(n._errors=[]),!Array.isArray(n._errors))if(typeof n._errors==`string`)n._errors=[n._errors];else throw new Y(`Form-level error was not an array.`);n._errors.push(e.message)}for(let i of e){if(!i.path||i.path.length==1&&!i.path[0]){r(i);continue}let e=!/^\d$/.test(String(i.path[i.path.length-1]))&&B(t,i.path.filter(e=>/\D/.test(String(e))))?.value,a=V(n,i.path,({value:e,parent:t,key:n})=>(e===void 0&&(t[n]={}),t[n]));if(!a){r(i);continue}let{parent:o,key:s}=a;e?(s in o||(o[s]={}),`_errors`in o[s]?o[s]._errors.push(i.message):o[s]._errors=[i.message]):s in o?o[s].push(i.message):o[s]=[i.message]}return n}function De(e,t,n){return n?e:(H(t,e=>{Array.isArray(e.value)&&e.set(void 0)}),H(e,e=>{!Array.isArray(e.value)&&e.value!==void 0||U(t,[e.path],e.value)}),t)}function Oe(e){return ke(e,[])}function ke(e,t){return Object.entries(e).filter(([,e])=>e!==void 0).flatMap(([n,r])=>Array.isArray(r)&&r.length>0?{path:we(t.concat([n])),messages:r}:ke(e[n],t.concat([n])))}function Ae(e){e.flashMessage&&je(e)&&(document.cookie=`flash=; Max-Age=0; Path=${e.flashMessage.cookiePath??`/`};`)}function je(e){return e.flashMessage?e.syncFlashMessage:!1}var X=`noCustomValidity`;async function Me(e,t){`setCustomValidity`in e&&e.setCustomValidity(``),!(X in e.dataset)&&Z(e,t)}function Ne(e,t){for(let n of e.querySelectorAll(`input,select,textarea,button`)){if(`dataset`in n&&X in n.dataset||!n.name)continue;let e=V(t,W(n.name)),r=e&&typeof e.value==`object`&&`_errors`in e.value?e.value._errors:e?.value;if(Z(n,r),r)return}}function Z(e,t){if(!(`setCustomValidity`in e))return;let n=t&&t.length?t.join(`
|
|
214
|
+
`):``;e.setCustomValidity(n),n&&e.reportValidity()}var Pe=(e,t=0)=>{let n=e.getBoundingClientRect();return n.top>=t&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},Fe=(e,t=1.125,n=`smooth`)=>{let r=e.getBoundingClientRect().top+window.pageYOffset-window.innerHeight/(2*t);window.scrollTo({left:0,top:r,behavior:n})},Ie=[`checkbox`,`radio`,`range`,`file`];function Le(e){return{immediate:!!e&&(e instanceof HTMLSelectElement||e instanceof HTMLInputElement&&Ie.includes(e.type)),multiple:!!e&&e instanceof HTMLSelectElement&&e.multiple,file:!!e&&e instanceof HTMLInputElement&&e.type==`file`}}var Q;(function(e){e[e.Idle=0]=`Idle`,e[e.Submitting=1]=`Submitting`,e[e.Delayed=2]=`Delayed`,e[e.Timeout=3]=`Timeout`})(Q||={});var Re=new Set;function ze(e,t,n){let r=Q.Idle,i,a,o=Re;function s(){c(),u(r==Q.Delayed?Q.Delayed:Q.Submitting),i=window.setTimeout(()=>{i&&r==Q.Submitting&&u(Q.Delayed)},n.delayMs),a=window.setTimeout(()=>{a&&r==Q.Delayed&&u(Q.Timeout)},n.timeoutMs),o.add(c)}function c(){clearTimeout(i),clearTimeout(a),i=a=0,o.delete(c),u(Q.Idle)}function l(){o.forEach(e=>e()),o.clear()}function u(e){r=e,t.submitting.set(r>=Q.Submitting),t.delayed.set(r>=Q.Delayed),t.timeout.set(r>=Q.Timeout)}let d=e;function f(e){let t=e.target;n.selectErrorText&&t.select()}function p(){n.selectErrorText&&d.querySelectorAll(`input`).forEach(e=>{e.addEventListener(`invalid`,f)})}function m(){n.selectErrorText&&d.querySelectorAll(`input`).forEach(e=>e.removeEventListener(`invalid`,f))}let h=e;{p();let e=!1,t=e=>{e.clearAll?l():c(),e.cancelled||setTimeout(()=>Be(h,n),1)};return T(()=>{m(),t({cancelled:!0})}),le(()=>{m(),e||t({cancelled:!1})}),{submitting(){s()},completed:t,scrollToFirstError(){setTimeout(()=>Be(h,n),1)},isSubmitting:()=>r===Q.Submitting||r===Q.Delayed,setProcessingEvents(t){e=t}}}}var Be=async(e,t)=>{if(t.scrollToError==`off`)return;let n=t.errorSelector;if(!n)return;await x();let r;if(r=e.querySelector(n),!r)return;r=r.querySelector(n)??r;let i=t.stickyNavbar?document.querySelector(t.stickyNavbar):null;typeof t.scrollToError==`string`?Pe(r,i?.offsetHeight??0)||Fe(r,void 0,t.scrollToError):r.scrollIntoView(t.scrollToError);function a(e){return typeof t.autoFocusOnError==`boolean`?t.autoFocusOnError:!/iPhone|iPad|iPod|Android/i.test(e)}if(!a(navigator.userAgent))return;let o;if(o=r,[`INPUT`,`SELECT`,`BUTTON`,`TEXTAREA`].includes(o.tagName)||(o=o.querySelector(`input:not([type="hidden"]):not(.flatpickr-input), select, textarea`)),o)try{o.focus({preventScroll:!0}),t.selectErrorText&&o.tagName==`INPUT`&&o.select()}catch{}};function $(e,t,n){let r=V(e,t,({parent:e,key:t,value:n})=>(n===void 0&&(e[t]=/\D/.test(t)?{}:[]),e[t]));if(r){let e=n(r.value);r.parent[r.key]=e}return e}function Ve(e,t,n){let r=e.form,i=W(t),a=D(r,e=>V(e,i)?.value);return{subscribe(...e){let t=a.subscribe(...e);return()=>t()},update(e,t){r.update(t=>$(t,i,e),t??n)},set(e,t){r.update(t=>$(t,i,()=>e),t??n)}}}function He(e,t){let n=`form`in e;if(!n&&t?.taint!==void 0)throw new Y(`If options.taint is set, the whole superForm object must be used as a proxy.`);return n}function Ue(e,t,n){let r=W(t);if(He(e,n))return Ve(e,t,n);let i=D(e,e=>V(e,r)?.value);return{subscribe(...e){let t=i.subscribe(...e);return()=>t()},update(t){e.update(e=>$(e,r,t))},set(t){e.update(e=>$(e,r,()=>t))}}}function We(e){let t={},n=Array.isArray(e);for(let[r,i]of Object.entries(e))!i||typeof i!=`object`||(n?t={...t,...We(i)}:t[r]=We(i));return t}var Ge=new WeakMap,Ke=new WeakMap,qe=e=>{throw e.result.error},Je={applyAction:!0,invalidateAll:!0,resetForm:!0,autoFocusOnError:`detect`,scrollToError:`smooth`,errorSelector:`[aria-invalid="true"],[data-invalid]`,selectErrorText:!1,stickyNavbar:void 0,taintedMessage:!1,onSubmit:void 0,onResult:void 0,onUpdate:void 0,onUpdated:void 0,onError:qe,dataType:`form`,validators:void 0,customValidity:!1,clearOnSubmit:`message`,delayMs:500,timeoutMs:8e3,multipleSubmits:`prevent`,SPA:void 0,validationMethod:`auto`};function Ye(e){return`Duplicate form id's found: "${e}". Multiple forms will receive the same data. Use the id option to differentiate between them, or if this is intended, set the warnings.duplicateId option to false in superForm to disable this warning. More information: https://superforms.rocks/concepts/multiple-forms`}var Xe=!1;try{SUPERFORMS_LEGACY&&(Xe=!0)}catch{}var Ze=!1;try{globalThis.STORIES&&(Ze=!0)}catch{}function Qe(e,t){let n,r=t??{},i;{if((r.legacy??Xe)&&(r.resetForm===void 0&&(r.resetForm=!1),r.taintedMessage===void 0&&(r.taintedMessage=!0)),Ze&&r.applyAction===void 0&&(r.applyAction=!1),typeof r.SPA==`string`&&(r.invalidateAll===void 0&&(r.invalidateAll=!1),r.applyAction===void 0&&(r.applyAction=!1)),i=r.validators,r={...Je,...r},(r.SPA===!0||typeof r.SPA==`object`)&&r.validators===void 0&&console.warn(`No validators set for superForm in SPA mode. Add a validation adapter to the validators option, or set it to false to disable this warning.`),!e)throw new Y(`No form data sent to superForm. Make sure the output from superValidate is used (usually data.form) and that it's not null or undefined. Alternatively, an object with default values for the form can also be used, but then constraints won't be available.`);u(e)===!1&&(e={id:r.id??Math.random().toString(36).slice(2,10),valid:!1,posted:!1,errors:{},data:e,shape:We(e)}),e=e;let t=e.id=r.id??e.id,o=a(ve)??(Ze?{}:void 0);if(r.warnings?.duplicateId!==!1)if(!Ge.has(o))Ge.set(o,new Set([t]));else{let e=Ge.get(o);e?.has(t)?console.warn(Ye(t)):e?.add(t)}if(Ke.has(e)||Ke.set(e,e),n=Ke.get(e),e=K(n),T(()=>{ke(),I(),Ie();for(let e of Object.values($))e.length=0;Ge.get(o)?.delete(t)}),r.dataType!==`json`){let t=(e,n)=>{if(!(!n||typeof n!=`object`)){if(Array.isArray(n))n.length>0&&t(e,n[0]);else if(!(n instanceof Date)&&!(n instanceof File)&&!(n instanceof FileList))throw new Y(`Object found in form field "${e}". Set the dataType option to "json" and add use:enhance to use nested data structures. More information: https://superforms.rocks/concepts/nested-data`)}};for(let[n,r]of Object.entries(e.data))t(n,r)}}let o={formId:e.id,form:K(e.data),constraints:e.constraints??{},posted:e.posted,errors:K(e.errors),message:K(e.message),tainted:void 0,valid:e.valid,submitting:!1,shape:e.shape},s=o,c=m(r.id??e.id);function l(e){return Object.values(e).filter(e=>u(e)!==!1)}function u(e){return!e||typeof e!=`object`||!(`valid`in e&&`errors`in e&&typeof e.valid==`boolean`)?!1:`id`in e&&typeof e.id==`string`?e.id:!1}let d=m(e.data),f={subscribe:d.subscribe,set:(e,t={})=>{let n=K(e);return be(n,t.taint??!0),d.set(n)},update:(e,t={})=>d.update(n=>{let r=e(n);return be(r,t.taint??!0),r})};function p(){return r.SPA===!0||typeof r.SPA==`object`}function g(e){return e>400?e:(typeof r.SPA==`boolean`||typeof r.SPA==`string`?void 0:r.SPA?.failStatus)||e}async function _(e={}){let t=e.formData??s.form,n={},a,o=e.adapter??r.validators;if(typeof o==`object`){if(o!=i&&!(`jsonSchema`in o))throw new Y(`Client validation adapter found in options.validators. A full adapter must be used when changing validators dynamically, for example "zod" instead of "zodClient".`);if(a=await o.validate(t),!a.success)n=Ee(a.issues,o.shape??s.shape??{});else if(e.recheckValidData!==!1)return _({...e,recheckValidData:!1})}else a={success:!0,data:{}};let c={...s.form,...t,...a.success?a.data:{}};return{valid:a.success,posted:!1,errors:n,data:c,constraints:s.constraints,message:void 0,id:s.formId,shape:s.shape}}function v(e){if(!r.onChange||!e.paths.length||e.type==`blur`)return;let t,n=e.paths.map(we);t=e.type&&e.paths.length==1&&e.formElement&&e.target instanceof Element?{path:n[0],paths:n,formElement:e.formElement,target:e.target,set(e,t,n){Ue({form:f},e,n).set(t)},get(e){return a(Ue(f,e))}}:{paths:n,target:void 0,set(e,t,n){Ue({form:f},e,n).set(t)},get(e){return a(Ue(f,e))}},r.onChange(t)}async function y(e,t=!1,n){e&&(r.validators==`clear`&&N.update(t=>(U(t,e.paths,void 0),t)),setTimeout(()=>v(e)));let i=!1;if(t||(r.validationMethod==`onsubmit`||r.validationMethod==`submit-only`||r.validationMethod==`onblur`&&e?.type==`input`||r.validationMethod==`oninput`&&e?.type==`blur`)&&(i=!0),i||!e||!r.validators||r.validators==`clear`){if(e?.paths){let t=e?.formElement??Z();t&&b(t)}return}let a=await _({adapter:n});return a.valid&&(e.immediate||e.type!=`input`)&&f.set(a.data,{taint:`ignore`}),await x(),S(a.errors,e,t),a}function b(e){let t=new Map;if(r.customValidity&&e)for(let n of e.querySelectorAll(`[name]`)){if(typeof n.name!=`string`||!n.name.length)continue;let e=`validationMessage`in n?String(n.validationMessage):``;t.set(n.name,{el:n,message:e}),Me(n,void 0)}return t}async function S(e,t,n){let{type:i,immediate:o,multiple:c,paths:l}=t,u=s.errors,d={},f=new Map,p=t.formElement??Z();p&&(f=b(p)),H(e,e=>{if(!Array.isArray(e.value))return;let t=[...e.path];t[t.length-1]==`_errors`&&t.pop();let s=t.join(`.`),p=e.path[e.path.length-1]==`_errors`,m=e.value&&l.some(e=>p?t&&e&&t.length>0&&t[0]==e[0]:s==e.join(`.`));function h(){if(U(d,[e.path],e.value),r.customValidity&&m&&f.has(s)){let{el:t,message:n}=f.get(s);n!=e.value&&(setTimeout(()=>Me(t,e.value)),f.clear())}}if(n||m&&r.validationMethod==`oninput`||o&&!c&&m)return h();if(c){let t=B(a(N),e.path.slice(0,-1));if(t?.value&&typeof t?.value==`object`){for(let e of Object.values(t.value))if(Array.isArray(e))return h()}}let g=B(u,e.path);if(g&&g.key in g.parent)return h();if(p){if(r.validationMethod==`oninput`||i==`blur`&&ge(we(e.path.slice(0,-1))))return h()}else if(i==`blur`&&m)return h()}),N.set(d)}function C(e,t={}){return t.keepFiles&&H(s.form,t=>{if(!(t.parent instanceof FileList)&&(t.value instanceof File||t.value instanceof FileList)){let n=B(e,t.path);(!n||!(n.key in n.parent))&&U(e,[t.path],t.value)}}),f.set(e,t)}function w(e,t){return e&&t&&r.resetForm&&(r.resetForm===!0||r.resetForm())}function E(e=!0){let t=s.form,n=s.tainted;if(e){let e=He(s.form);t=e.data;let r=e.paths;r.length&&(n=K(n)??{},U(n,r,!1))}return{valid:s.valid,posted:s.posted,errors:s.errors,data:t,constraints:s.constraints,message:s.message,id:s.formId,tainted:n,shape:s.shape}}async function ee(e,t){e.valid&&t&&w(e.valid,t)?O({message:e.message,posted:!0}):Re({form:e,untaint:t,keepFiles:!0,pessimisticUpdate:r.invalidateAll==`force`||r.invalidateAll==`pessimistic`}),$.onUpdated.length&&await x();for(let t of $.onUpdated)t({form:e})}function O(e={}){e.newState&&(n.data={...n.data,...e.newState});let t=K(n);t.data={...t.data,...e.data},e.id!==void 0&&(t.id=e.id);let r=K(o.tainted),i={};if(r&&e.data)for(let t in r)t in e.data&&(i[t]=r[t]);Re({form:t,untaint:Object.keys(i).length>0?i:!0,message:e.message,keepFiles:!1,posted:e.posted,resetted:!0})}async function te(e){if(e.type==`error`)throw new Y(`ActionResult of type "${e.type}" cannot be passed to update function.`);if(e.type==`redirect`){w(!0,!0)&&O({posted:!0});return}if(typeof e.data!=`object`)throw new Y(`Non-object validation data returned from ActionResult.`);let t=l(e.data);if(!t.length)throw new Y(`No form data returned from ActionResult. Make sure you return { form } in the form actions.`);for(let n of t)n.id===s.formId&&await ee(n,e.status>=200&&e.status<300)}let k=m(o.message),ne=m(o.constraints),A=m(o.posted),j=m(o.shape),M=m(e.errors),N={subscribe:M.subscribe,set(e,t){return M.set(De(e,s.errors,t?.force))},update(e,t){return M.update(n=>De(e(n),s.errors,t?.force))},clear:()=>N.set({})},P=null;function ie(e){P&&e&&Object.keys(e).length==1&&e.paths?.length&&P.target&&P.target instanceof HTMLInputElement&&P.target.type.toLowerCase()==`file`?P.paths=e.paths:P=e,setTimeout(()=>{y(P)},0)}function ae(e,t,n,r,i){P===null&&(P={paths:[]}),P.type=e,P.immediate=t,P.multiple=n,P.formElement=r,P.target=i}function oe(){return P?.paths??[]}function I(){P=null}let L={defaultMessage:`Leave page? Changes that you made may not be saved.`,state:m(),message:r.taintedMessage,clean:K(e.data),forceRedirection:!1};function le(){return r.taintedMessage&&!s.submitting&&!L.forceRedirection&&_e()}function ue(e){if(!le())return;e.preventDefault(),e.returnValue=``;let{taintedMessage:t}=r,n=typeof t==`function`||t===!0?L.defaultMessage:t;return(e||window.event).returnValue=n||L.defaultMessage,n}async function de(e){if(!le())return;let{taintedMessage:t}=r,n=typeof t==`function`;if(n&&e.cancel(),e.type===`leave`)return;let i=n||t===!0?L.defaultMessage:t,a;try{a=n?await t(e):window.confirm(i||L.defaultMessage)}catch{a=!1}if(a&&e.to)try{L.forceRedirection=!0,await re(e.to.url,{...e.to.params});return}finally{L.forceRedirection=!1}else !a&&!n&&e.cancel()}function fe(){r.taintedMessage=L.message}function R(){return L.state}function ge(e){if(!s.tainted)return!1;if(!e)return!!s.tainted;let t=B(s.tainted,W(e));return!!t&&t.key in t.parent}function _e(e){return arguments.length?typeof e==`boolean`?e:typeof e==`object`?z(e):!s.tainted||e===void 0?!1:z(B(s.tainted,W(e))?.value):z(s.tainted)}function z(e){if(!e)return!1;if(typeof e==`object`){for(let t of Object.values(e))if(z(t))return!0}return e===!0}function be(e,t){if(t==`ignore`)return;let n=Ce(e,s.form),r=Ce(e,L.clean).map(e=>e.join());n.length&&(L.state.update(i=>(i||={},U(i,n,(n,i)=>{if(!r.includes(n.join()))return;let a=V(e,n),o=V(L.clean,n);return a&&o&&a.value===o.value?void 0:t===!0?!0:t===`untaint`?void 0:i.value}),i)),ie({paths:n})),(t==`untaint-all`||t==`untaint-form`)&&L.state.set(void 0)}function xe(e,t){L.state.set(e),t&&(L.clean=t)}let Se=m(!1),G=m(!1),q=m(!1),J=[L.state.subscribe(e=>o.tainted=K(e)),f.subscribe(e=>o.form=K(e)),N.subscribe(e=>o.errors=K(e)),c.subscribe(e=>o.formId=e),ne.subscribe(e=>o.constraints=e),A.subscribe(e=>o.posted=e),k.subscribe(e=>o.message=e),Se.subscribe(e=>o.submitting=e),j.subscribe(e=>o.shape=e)];function Te(e){J.push(e)}function ke(){J.forEach(e=>e())}let X;function Z(){return X}function Pe(e){X=document.createElement(`form`),X.method=`POST`,X.action=e,Ve(X),document.body.appendChild(X)}function Fe(e){X&&(X.action=e)}function Ie(){X?.parentElement&&X.remove(),X=void 0}let Q=D(N,e=>e?Oe(e):[]);r.taintedMessage=void 0;function Re(e){let t=e.form,n=e.message??t.message;if((e.untaint||e.resetted)&&xe(typeof e.untaint==`boolean`?void 0:e.untaint,t.data),e.pessimisticUpdate||C(t.data,{taint:`ignore`,keepFiles:e.keepFiles}),k.set(n),e.resetted?N.update(()=>({}),{force:!0}):N.set(t.errors),c.set(t.id),A.set(e.posted??t.posted),t.constraints&&ne.set(t.constraints),t.shape&&j.set(t.shape),o.valid=t.valid,r.flashMessage&&je(r)){let e=r.flashMessage.module.getFlash(ve);n&&a(e)===void 0&&e.set(n)}}let $={onSubmit:r.onSubmit?[r.onSubmit]:[],onResult:r.onResult?[r.onResult]:[],onUpdate:r.onUpdate?[r.onUpdate]:[],onUpdated:r.onUpdated?[r.onUpdated]:[],onError:r.onError?[r.onError]:[]};window.addEventListener(`beforeunload`,ue),T(()=>{window.removeEventListener(`beforeunload`,ue)}),F(de),Te(ve.subscribe(async e=>{Ze&&e===void 0&&(e={status:200});let t=e.status>=200&&e.status<300;if(r.applyAction&&e.form&&typeof e.form==`object`){let n=e.form;if(n.type===`error`)return;for(let e of l(n)){let n=Ke.has(e);e.id!==s.formId||n||(Ke.set(e,e),await ee(e,t))}}else if(r.applyAction!==`never`&&e.data&&typeof e.data==`object`)for(let i of l(e.data)){let e=Ke.has(i);if(i.id!==s.formId||e)continue;(r.invalidateAll===`force`||r.invalidateAll===`pessimistic`)&&(n.data=i.data);let a=w(i.valid,!0);Re({form:i,untaint:t,keepFiles:!a,resetted:a})}})),typeof r.SPA==`string`&&Pe(r.SPA);function Ve(t,n){if(r.SPA!==void 0&&t.method==`get`&&(t.method=`post`),typeof r.SPA==`string`?r.SPA.length&&t.action==document.location.href&&(t.action=r.SPA):X=t,n){if(n.onError){if(r.onError===`apply`)throw new Y(`options.onError is set to "apply", cannot add any onError events.`);if(n.onError===`apply`)throw new Y(`Cannot add "apply" as onError event in use:enhance.`);$.onError.push(n.onError)}n.onResult&&$.onResult.push(n.onResult),n.onSubmit&&$.onSubmit.push(n.onSubmit),n.onUpdate&&$.onUpdate.push(n.onUpdate),n.onUpdated&&$.onUpdated.push(n.onUpdated)}fe();let i;async function a(e){let n=Le(e.target);n.immediate&&!n.file&&await new Promise(e=>setTimeout(e,0)),i=oe(),ae(`input`,n.immediate,n.multiple,t,e.target??void 0)}async function o(e){if(s.submitting||!i||oe()!=i)return;let n=Le(e.target);n.immediate&&!n.file&&await new Promise(e=>setTimeout(e,0)),i!==void 0&&(y({paths:i,immediate:n.multiple,multiple:n.multiple,type:`blur`,formElement:t,target:e.target??void 0}),i=void 0)}t.addEventListener(`focusout`,o),t.addEventListener(`input`,a),T(()=>{t.removeEventListener(`focusout`,o),t.removeEventListener(`input`,a)});let c=ze(t,{submitting:Se,delayed:G,timeout:q},r),u,d,f=pe(t,async n=>{let a,o=r.validators,f={...n,jsonData(e){if(r.dataType!==`json`)throw new Y(`options.dataType must be set to 'json' to use jsonData.`);a=e},validators(e){o=e},customRequest(e){d=e}},m=f.cancel,h=!1;function v(e){let t={...e,posted:!0},n=t.valid?200:g(400),r={form:t},i=t.valid?{type:`success`,status:n,data:r}:{type:`failure`,status:n,data:r};setTimeout(()=>C({result:i}),0)}function y(){switch(r.clearOnSubmit){case`errors-and-message`:N.clear(),k.set(void 0);break;case`errors`:N.clear();break;case`message`:k.set(void 0);break}}async function b(t,n){if(t.status=n,r.onError!==`apply`){let n={result:t,message:k,form:e};for(let e of $.onError)e!==`apply`&&(e!=qe||!r.flashMessage?.onError)&&await e(n)}r.flashMessage&&r.flashMessage.onError&&await r.flashMessage.onError({result:t,flashMessage:r.flashMessage.module.getFlash(ve)}),r.applyAction&&(r.onError==`apply`?await ce(t):await ce({type:`failure`,status:g(t.status),data:t}))}function x(e={resetTimers:!0}){return h=!0,e.resetTimers&&c.isSubmitting()&&c.completed({cancelled:h}),m()}if(f.cancel=x,c.isSubmitting()&&r.multipleSubmits==`prevent`)x({resetTimers:!1});else{c.isSubmitting()&&r.multipleSubmits==`abort`&&u&&u.abort(),c.submitting(),u=f.controller;for(let e of $.onSubmit)try{await e(f)}catch(e){x(),b({type:`error`,error:e},500)}}if(h&&r.flashMessage&&Ae(r),!h){let e=!p()&&(t.noValidate||(f.submitter instanceof HTMLButtonElement||f.submitter instanceof HTMLInputElement)&&f.submitter.formNoValidate),n,c=async()=>await _({adapter:o});if(y(),e||(n=await c(),n.valid||(x({resetTimers:!1}),v(n))),!h){r.flashMessage&&(r.clearOnSubmit==`errors-and-message`||r.clearOnSubmit==`message`)&&je(r)&&r.flashMessage.module.getFlash(ve).set(void 0);let e=`formData`in f?f.formData:f.data;if(i=void 0,p())n||=await c(),x({resetTimers:!1}),v(n);else if(r.dataType===`json`){n||=await c();let t=K(a??n.data);H(t,t=>{if(t.value instanceof File){let n=`__superform_file_`+we(t.path);return e.append(n,t.value),t.set(void 0)}else if(Array.isArray(t.value)&&t.value.length&&t.value.every(e=>e instanceof File)){let n=`__superform_files_`+we(t.path);for(let r of t.value)e.append(n,r);return t.set(void 0)}}),Object.keys(t).forEach(t=>{typeof e.get(t)==`string`&&e.delete(t)});let i=S(he(t,r.transport?Object.fromEntries(Object.entries(r.transport).map(([e,t])=>[e,t.encode])):void 0),r.jsonChunkSize??5e5);for(let t of i)e.append(`__superform_json`,t)}if(!e.has(`__superform_id`)){let t=s.formId;t!==void 0&&e.set(`__superform_id`,t)}typeof r.SPA==`string`&&Fe(r.SPA)}}function S(e,t){let n=Math.ceil(e.length/t),r=Array(n);for(let i=0,a=0;i<n;++i,a+=t)r[i]=e.substring(a,a+t);return r}async function C(e){let n=!1;u=null;let i=`type`in e.result&&`status`in e.result?e.result:{type:`error`,status:g(parseInt(String(e.result.status))||500),error:e.result.error instanceof Error?e.result.error:e.result},a=()=>n=!0,o={result:i,formEl:t,formElement:t,cancel:a},d=Ze||!p()?()=>{}:ye.subscribe(e=>{!e||e.from?.route.id===e.to?.route.id||a()});function f(e,t,n){t.result={type:`error`,error:e,status:g(n)}}c.setProcessingEvents(!0);for(let e of $.onResult)try{await e(o)}catch(e){f(e,o,Math.max(i.status??500,400))}if(i=o.result,!n){if((i.type===`success`||i.type===`failure`)&&i.data){let e=l(i.data);if(!e.length)throw new Y(`No form data returned from ActionResult. Make sure you return { form } in the form actions.`);for(let a of e){if(a.id!==s.formId)continue;let e={form:a,formEl:t,formElement:t,cancel:()=>n=!0,result:i};for(let t of $.onUpdate)try{await t(e)}catch(t){f(t,e,Math.max(i.status??500,400))}i=e.result,n||(r.customValidity&&Ne(t,e.form.errors),w(e.form.valid,i.type==`success`)&&e.formElement.querySelectorAll(`input[type="file"]`).forEach(e=>e.value=``))}}n||(i.type===`error`?await b(i,Math.max(i.status??500,400)):(i.type===`success`&&r.invalidateAll&&await se(),r.applyAction?await ce(i):await te(i)))}if(c.setProcessingEvents(!1),n&&r.flashMessage&&Ae(r),n||i.type!=`redirect`)c.completed({cancelled:n});else if(Ze)c.completed({cancelled:n,clearAll:!0});else{let e=ye.subscribe(t=>{t||(setTimeout(()=>{try{e&&e()}catch{}}),c.isSubmitting()&&c.completed({cancelled:n,clearAll:!0}))})}d()}if(!h&&d){m();let e=await d(n),t;t=e instanceof Response?me(await e.text()):e instanceof XMLHttpRequest?me(e.responseText):e,t.type===`error`&&(t.status=e.status),C({result:t})}return C});return{destroy:()=>{for(let[e,t]of Object.entries($))$[e]=t.filter(t=>t===r[e]);f.destroy()}}}function He(e){let t=[];if(H(e,e=>{if(e.value instanceof File||Array.isArray(e.value)&&e.value.length&&e.value.every(e=>e instanceof File))return t.push(e.path),`skip`}),!t.length)return{data:e,paths:t};let r=K(e);return U(r,t,e=>B(n.data,e)?.value),{data:r,paths:t}}return{form:f,formId:c,errors:N,message:k,constraints:ne,tainted:R(),submitting:h(Se),delayed:h(G),timeout:h(q),options:r,capture:E,restore:(e=>{Re({form:e,untaint:e.tainted??!0})}),async validate(e,t={}){if(!r.validators)throw new Y(`options.validators must be set to use the validate method.`);t.update===void 0&&(t.update=!0),t.taint===void 0&&(t.taint=!1),typeof t.errors==`string`&&(t.errors=[t.errors]);let n,i=W(e);`value`in t?t.update===!0||t.update===`value`?(f.update(e=>(U(e,[i],t.value),e),{taint:t.taint}),n=s.form):(n=K(s.form),U(n,[i],t.value)):n=s.form;let a=B((await _({formData:n})).errors,i);return a&&a.value&&t.errors&&(a.value=t.errors),(t.update===!0||t.update==`errors`)&&N.update(e=>(U(e,[i],a?.value),e)),a?.value},async validateForm(e={}){if(!r.validators&&!e.schema)throw new Y(`options.validators or the schema option must be set to use the validateForm method.`);let t=e.update?await y({paths:[]},!0,e.schema):_({adapter:e.schema}),n=Z();return e.update&&n&&setTimeout(()=>{n&&Be(n,{...r,scrollToError:e.focusOnError===!1?`off`:r.scrollToError})},1),t||_({adapter:e.schema})},allErrors:Q,posted:A,reset(e){return O({message:e?.keepMessage?s.message:void 0,data:e?.data,id:e?.id,newState:e?.newState})},submit(e){let t=Z()?Z():e&&e instanceof HTMLElement?e.closest(`form`):void 0;if(!t)throw new Y(`use:enhance must be added to the form to use submit, or pass a HTMLElement inside the form (or the form itself) as an argument.`);if(!t.requestSubmit)return t.submit();let n=e&&(e instanceof HTMLButtonElement&&e.type==`submit`||e instanceof HTMLInputElement&&[`submit`,`image`].includes(e.type));t.requestSubmit(n?e:void 0)},isTainted:_e,enhance:Ve}}try{SUPERFORMS_LEGACY}catch{}function $e(e){return(Array.isArray(e.id)?e.id:[e.id]).every(e=>e!==``)}var et=`__clear__`;function tt(e){return`__composite__${e}`}var nt=`/relation-options`;function rt(e,t){let n=new URLSearchParams;return n.set(`resource`,e),n.set(`label`,t.labelField),t.searchFields.length>0&&n.set(`fields`,t.searchFields.join(`,`)),t.query.length>0&&n.set(`q`,t.query),t.limit!==void 0&&n.set(`limit`,String(t.limit)),`${nt}?${n.toString()}`}async function it(e,t,n){let r=await e(rt(t,n));if(!r.ok)return[];let i=await r.json();return Array.isArray(i.options)?i.options:[]}var at=200,ot=`relation-search:cancelled`,st=class extends Error{constructor(){super(ot),this.name=`RelationSearchCancelledError`}};function ct(e){let t=e.debounceMs??at,n=e.setTimeoutFn??globalThis.setTimeout,r=e.clearTimeoutFn??globalThis.clearTimeout,i=null,a=null,o=0;function s(){o+=1,i!==null&&(r(i),i=null),a!==null&&(a(new st),a=null)}return{search(r){s();let c=o;return new Promise((s,l)=>{a=l,i=n(()=>{i=null,a=null,e.adapter.searchRelation(e.resource,{query:r,labelField:e.labelField,searchFields:e.searchFields,limit:e.limit}).then(e=>c===o?s(e):l(new st),e=>l(c===o?e:new st))},t)})},cancel(){s()}}}var lt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),ut=A(`<option>--</option>`),dt=A(`<option> </option>`),ft=A(`<div class="block"><label class="mb-1 block text-sm font-medium"> <!></label> <input type="text" placeholder="Search…" class="mb-2 w-full rounded-md border border-input bg-background px-3 py-2 text-sm"/> <select class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"><option disabled="">Select…</option><!><!></select></div>`);function pt(n,i){e(i,!0);let a=g(i,`required`,3,!1),d=g(i,`readonly`,3,!1),m=g(i,`limit`,3,20),h=r(t(i.initialOptions.filter($e))),v=r(``),b=new Map;function x(e){let t=Array.isArray(e.id)?e.id:[e.id];b.set(R(e.id),{label:e.label,components:t})}for(let e of i.initialOptions.filter($e))x(e);let T=f(()=>{if(i.values.length>0&&i.values.every(e=>e===``))return et;let e=[];for(let t of i.values){if(t==null||typeof t!=`string`&&typeof t!=`number`)return``;e.push(t)}return R(e)}),D=ct({adapter:{searchRelation:(e,t)=>it(e=>fetch(e),e,t)},resource:i.resource,labelField:i.labelField,searchFields:i.searchFields,limit:m()});function O(e){if(S(T)===``||S(T)===`__clear__`||e.some(e=>R(e.id)===S(T)))return e;let t=b.get(S(T));return t===void 0?e:[{id:t.components,label:t.label},...e]}async function te(e){p(v,e.target.value,!0);try{let e=(await D.search(S(v))).filter($e);for(let t of e)x(t);p(h,O(e),!0)}catch{}}function A(e){let t=e.target.value;if(t===`__clear__`){i.onpick(null);return}if(t===``)return;let n=b.get(t);n!==void 0&&i.onpick(n.components)}let N=f(()=>`relation-${i.name}`);var re=ft(),P=o(re),ie=o(P,!0),ae=M(ie),oe=e=>{u(e,lt())};_(ae,e=>{a()&&e(oe)}),E(P);var F=M(P,2);C(F);var I=M(F,2),se=o(I);se.value=se.__value=``;var L=M(se),ce=e=>{var t=ut(),n={};s(()=>{n!==(n=`__clear__`)&&(t.value=t.__value=`__clear__`)}),u(e,t)};_(L,e=>{a()||e(ce)}),ne(M(L),17,()=>S(h),e=>R(e.id),(e,t)=>{var n=dt(),r=o(n,!0);E(n);var i={};s(e=>{j(r,S(t).label),i!==(i=e)&&(n.value=(n.__value=e)??``)},[()=>R(S(t).id)]),u(e,n)}),E(I);var le;ee(I),E(re),s(e=>{k(P,`for`,S(N)),j(ie,i.label),k(F,`aria-label`,`Search ${i.label}`),y(F,S(v)),F.disabled=d(),k(I,`id`,S(N)),k(I,`name`,e),I.required=a(),I.disabled=d(),le!==(le=S(T))&&(I.value=(I.__value=S(T))??``,w(I,S(T)))},[()=>tt(i.name)]),c(`input`,F,te),c(`change`,I,A),u(n,re),l()}n([`input`,`change`]);var mt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),ht=A(`<input type="text" placeholder="Search…" class="mb-2 w-full rounded-md border border-input bg-background px-3 py-2 text-sm"/>`),gt=A(`<option>--</option>`),_t=A(`<option> </option>`),vt=A(`<div class="block"><label class="mb-1 block text-sm font-medium"> <!></label> <!> <select class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"><!><!></select></div>`);function yt(t,n){e(n,!0);let i=g(n,`value`,15,``),a=g(n,`required`,3,!1),d=g(n,`readonly`,3,!1),m=r(``),h=f(()=>`relation-${n.name}`);function v(e){let t=e.target;p(m,t.value,!0),n.onsearch?.(S(m))}var x=vt(),w=o(x),T=o(w,!0),ee=M(T),D=e=>{u(e,mt())};_(ee,e=>{a()&&e(D)}),E(w);var O=M(w,2),te=e=>{var t=ht();C(t),s(()=>{k(t,`aria-label`,`Search ${n.label}`),y(t,S(m)),t.disabled=d()}),c(`input`,t,v),u(e,t)};_(O,e=>{n.onsearch&&e(te)});var A=M(O,2),N=o(A),re=e=>{var t=gt();t.value=t.__value=``,u(e,t)};_(N,e=>{a()||e(re)}),ne(M(N),17,()=>n.options,e=>e.id,(e,t)=>{var n=_t(),r=o(n,!0);E(n);var i={};s(()=>{j(r,S(t).label),i!==(i=S(t).id)&&(n.value=(n.__value=S(t).id)??``)}),u(e,n)}),E(A),E(x),s(()=>{k(w,`for`,S(h)),j(T,n.label),k(A,`id`,S(h)),k(A,`name`,n.name),A.required=a(),A.disabled=d()}),b(A,i),u(t,x),l()}n([`input`]);function bt(n,i){e(i,!0);let a=g(i,`value`,15,``),o=g(i,`required`,3,!1),s=g(i,`readonly`,3,!1),c=g(i,`limit`,3,20),u=r(t([...i.initialOptions])),d=new Map;for(let e of i.initialOptions)d.set(R(e.id),e.label);let f=ct({adapter:{searchRelation:(e,t)=>it(e=>fetch(e),e,t)},resource:i.resource,labelField:i.labelField,searchFields:i.searchFields,limit:c()});function m(e){if(a()===``||a()===null||a()===void 0)return e;let t=a(),n=R(t);if(e.some(e=>R(e.id)===n))return e;let r=d.get(n);return r===void 0?e:[{id:t,label:r},...e]}async function h(e){try{let t=await f.search(e);for(let e of t)d.set(R(e.id),e.label);p(u,m(t),!0)}catch{}}yt(n,{get name(){return i.name},get label(){return i.label},get options(){return S(u)},get required(){return o()},get readonly(){return s()},onsearch:h,get value(){return a()},set value(e){a(e)}}),l()}var xt=A(`<label class="flex items-center gap-2"><input type="checkbox" class="h-4 w-4 rounded border border-input bg-background"/> <span class="text-sm font-medium"> </span></label>`);function St(t,n){e(n,!0);let r=g(n,`value`,15,!1),i=g(n,`readonly`,3,!1);var a=xt(),c=o(a);C(c);var d=M(c,2),f=o(d,!0);E(d),E(a),s(()=>{k(c,`name`,n.name),c.disabled=i(),j(f,n.label)}),O(c,r),u(t,a),l()}var Ct=A(`<span class="text-destructive" aria-hidden="true">*</span>`),wt=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <input type="date" class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"/></label>`);function Tt(t,n){e(n,!0);let r=g(n,`value`,15,``),i=g(n,`required`,3,!1),a=g(n,`readonly`,3,!1);var c=wt(),d=o(c),f=o(d,!0),p=M(f),m=e=>{u(e,Ct())};_(p,e=>{i()&&e(m)}),E(d);var h=M(d,2);C(h),E(c),s(()=>{j(f,n.label),k(h,`name`,n.name),h.required=i(),h.readOnly=a()}),v(h,r),u(t,c),l()}var Et=A(`<span class="text-destructive" aria-hidden="true">*</span>`),Dt=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <input type="datetime-local" class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"/></label>`);function Ot(t,n){e(n,!0);let r=g(n,`value`,15,``),i=g(n,`required`,3,!1),a=g(n,`readonly`,3,!1);var c=Dt(),d=o(c),f=o(d,!0),p=M(f),m=e=>{u(e,Et())};_(p,e=>{i()&&e(m)}),E(d);var h=M(d,2);C(h),E(c),s(()=>{j(f,n.label),k(h,`name`,n.name),h.required=i(),h.readOnly=a()}),v(h,r),u(t,c),l()}var kt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),At=A(`<option>--</option>`),jt=A(`<option> </option>`),Mt=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <select class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"><!><!></select></label>`);function Nt(t,n){e(n,!0);let r=g(n,`value`,15,``),i=g(n,`required`,3,!1),a=g(n,`readonly`,3,!1);var c=Mt(),d=o(c),f=o(d,!0),p=M(f),m=e=>{u(e,kt())};_(p,e=>{i()&&e(m)}),E(d);var h=M(d,2),v=o(h),y=e=>{var t=At();t.value=t.__value=``,u(e,t)};_(v,e=>{i()||e(y)}),ne(M(v),16,()=>n.options,e=>e,(e,t)=>{var n=jt(),r=o(n,!0);E(n);var i={};s(()=>{j(r,t),i!==(i=t)&&(n.value=(n.__value=t)??``)}),u(e,n)}),E(h),E(c),s(()=>{j(f,n.label),k(h,`name`,n.name),h.required=i(),h.disabled=a()}),b(h,r),u(t,c),l()}var Pt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),Ft=A(`<img class="mt-2 max-h-32 rounded-md border border-border object-contain" loading="lazy"/>`),It=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <input type="url" class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"/> <!></label>`);function Lt(t,n){e(n,!0);let r=g(n,`value`,15,``),i=g(n,`required`,3,!1),a=g(n,`placeholder`,3,`https://…`),c=g(n,`readonly`,3,!1);var d=It(),f=o(d),p=o(f,!0),m=M(p),h=e=>{u(e,Pt())};_(m,e=>{i()&&e(h)}),E(f);var y=M(f,2);C(y);var b=M(y,2),x=e=>{var t=Ft();s(()=>{k(t,`src`,r()),k(t,`alt`,n.label)}),u(e,t)};_(b,e=>{r()&&e(x)}),E(d),s(()=>{j(p,n.label),k(y,`name`,n.name),y.required=i(),k(y,`placeholder`,a()),y.readOnly=c()}),v(y,r),u(t,d),l()}var Rt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),zt=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <textarea class="w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-xs"></textarea></label>`);function Bt(n,a){e(a,!0);let d=g(a,`value`,15,void 0),f=g(a,`required`,3,!1),m=g(a,`readonly`,3,!1);function h(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return``}}let v=r(t(h(d())));function b(e){let t=e.target;p(v,t.value,!0);try{d(S(v).length===0?void 0:JSON.parse(S(v)))}catch{d(S(v))}}var x=zt(),C=o(x),w=o(C,!0),T=M(w),ee=e=>{u(e,Rt())};_(T,e=>{f()&&e(ee)}),E(C);var D=M(C,2);i(D),k(D,`rows`,6),E(x),s(()=>{j(w,a.label),k(D,`name`,a.name),D.required=f(),D.readOnly=m(),y(D,S(v))}),c(`input`,D,b),u(n,x),l()}n([`input`]);var Vt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),Ht=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <input type="number" class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"/></label>`);function Ut(t,n){e(n,!0);let r=g(n,`value`,15,``),i=g(n,`required`,3,!1),a=g(n,`placeholder`,3,``),c=g(n,`readonly`,3,!1),d=g(n,`step`,3,`any`);var f=Ht(),p=o(f),m=o(p,!0),h=M(m),y=e=>{u(e,Vt())};_(h,e=>{i()&&e(y)}),E(p);var b=M(p,2);C(b),E(f),s(()=>{j(m,n.label),k(b,`name`,n.name),k(b,`step`,d()),b.required=i(),k(b,`placeholder`,a()),b.readOnly=c()}),v(b,r),u(t,f),l()}var Wt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),Gt=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <input type="text" class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"/></label>`);function Kt(t,n){e(n,!0);let r=g(n,`value`,15,``),i=g(n,`required`,3,!1),a=g(n,`placeholder`,3,``),c=g(n,`readonly`,3,!1);var d=Gt(),f=o(d),p=o(f,!0),m=M(p),h=e=>{u(e,Wt())};_(m,e=>{i()&&e(h)}),E(f);var y=M(f,2);C(y),E(d),s(()=>{j(p,n.label),k(y,`name`,n.name),y.required=i(),k(y,`placeholder`,a()),y.readOnly=c()}),v(y,r),u(t,d),l()}var qt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),Jt=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <textarea class="w-full rounded-md border border-input bg-background px-3 py-2 text-sm"></textarea></label>`);function Yt(t,n){e(n,!0);let r=g(n,`value`,15,``),a=g(n,`required`,3,!1),c=g(n,`placeholder`,3,``),d=g(n,`readonly`,3,!1),f=g(n,`rows`,3,4);var p=Jt(),m=o(p),h=o(m,!0),y=M(h),b=e=>{u(e,qt())};_(y,e=>{a()&&e(b)}),E(m);var x=M(m,2);i(x),E(p),s(()=>{j(h,n.label),k(x,`name`,n.name),k(x,`rows`,f()),x.required=a(),k(x,`placeholder`,c()),x.readOnly=d()}),v(x,r),u(t,p),l()}var Xt=A(`<span class="text-destructive" aria-hidden="true">*</span>`),Zt=A(`<label class="block"><span class="mb-1 block text-sm font-medium"> <!></span> <input type="text" class="w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-xs"/></label>`);function Qt(t,n){e(n,!0);let r=g(n,`value`,15,``),i=g(n,`required`,3,!1),a=g(n,`placeholder`,3,`00000000-0000-0000-0000-000000000000`),c=g(n,`readonly`,3,!1);var d=Zt(),f=o(d),p=o(f,!0),m=M(p),h=e=>{u(e,Xt())};_(m,e=>{i()&&e(h)}),E(f);var y=M(f,2);C(y),k(y,`pattern`,`[0-9a-fA-F]8-[0-9a-fA-F]4-[0-9a-fA-F]4-[0-9a-fA-F]4-[0-9a-fA-F]12`),E(d),s(()=>{j(p,n.label),k(y,`name`,n.name),y.required=i(),k(y,`placeholder`,a()),y.readOnly=c()}),v(y,r),u(t,d),l()}var $t={text:Kt,textarea:Yt,number:Ut,currency:Ut,boolean:St,date:Tt,datetime:Ot,"enum-select":Nt,"relation-select":yt,json:Bt,"image-url":Lt,uuid:Qt};function en(e){return $t[e]??Kt}export{Qe as i,bt as n,pt as r,en as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){if(t.length===0)return null;let n=[];for(let r of t){let t=e[r];if(t==null)return null;n.push(encodeURIComponent(String(t)))}return n.join(`,`)}function t(e){return Array.isArray(e)?e.map(e=>encodeURIComponent(String(e))).join(`,`):encodeURIComponent(String(e))}export{e as n,t};
|
|
Binary file
|
|
Binary file
|