@kozou/svelte-ui 0.0.1 → 0.1.1
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/LICENSE +202 -0
- package/README.md +107 -1
- package/build/client/_app/immutable/assets/0.CZsFVllx.css +2 -0
- package/build/client/_app/immutable/assets/0.CZsFVllx.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CZsFVllx.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BpIM_fT8.js +2 -0
- package/build/client/_app/immutable/chunks/BpIM_fT8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BpIM_fT8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4vVozd5.js +4 -0
- package/build/client/_app/immutable/chunks/C4vVozd5.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4vVozd5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cu9GwMht.js +214 -0
- package/build/client/_app/immutable/chunks/Cu9GwMht.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cu9GwMht.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQLVkJ9E.js +1 -0
- package/build/client/_app/immutable/chunks/DQLVkJ9E.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQLVkJ9E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kNaey6uv.js +1 -0
- package/build/client/_app/immutable/chunks/kNaey6uv.js.br +0 -0
- package/build/client/_app/immutable/chunks/kNaey6uv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D4C-SzYE.js +2 -0
- package/build/client/_app/immutable/entry/app.D4C-SzYE.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D4C-SzYE.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BgPykZWX.js +1 -0
- package/build/client/_app/immutable/entry/start.BgPykZWX.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BgPykZWX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Ct90k1ZK.js +1 -0
- package/build/client/_app/immutable/nodes/0.Ct90k1ZK.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Ct90k1ZK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.ByzpIkVa.js +1 -0
- package/build/client/_app/immutable/nodes/1.ByzpIkVa.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.ByzpIkVa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DKSRkbg2.js +1 -0
- package/build/client/_app/immutable/nodes/2.DKSRkbg2.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DKSRkbg2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BRseKH3J.js +1 -0
- package/build/client/_app/immutable/nodes/3.BRseKH3J.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BRseKH3J.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.hHssvcSO.js +1 -0
- package/build/client/_app/immutable/nodes/4.hHssvcSO.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.hHssvcSO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CfrPDIy5.js +1 -0
- package/build/client/_app/immutable/nodes/5.CfrPDIy5.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CfrPDIy5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.nxvsG8yx.js +1 -0
- package/build/client/_app/immutable/nodes/6.nxvsG8yx.js.br +3 -0
- package/build/client/_app/immutable/nodes/6.nxvsG8yx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Bfhyc_gZ.js +1 -0
- package/build/client/_app/immutable/nodes/7.Bfhyc_gZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Bfhyc_gZ.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/env.js +94 -0
- package/build/handler.js +1494 -0
- package/build/index.js +345 -0
- package/build/server/chunks/0-BFDPzvW-.js +24 -0
- package/build/server/chunks/0-BFDPzvW-.js.map +1 -0
- package/build/server/chunks/1-Dmzzx_Xf.js +9 -0
- package/build/server/chunks/1-Dmzzx_Xf.js.map +1 -0
- package/build/server/chunks/2-B1IcZygX.js +35 -0
- package/build/server/chunks/2-B1IcZygX.js.map +1 -0
- package/build/server/chunks/3-BVIqnkRy.js +70 -0
- package/build/server/chunks/3-BVIqnkRy.js.map +1 -0
- package/build/server/chunks/4-BeHrsGek.js +103 -0
- package/build/server/chunks/4-BeHrsGek.js.map +1 -0
- package/build/server/chunks/5-Cw01QEjm.js +69 -0
- package/build/server/chunks/5-Cw01QEjm.js.map +1 -0
- package/build/server/chunks/6-DdCU04G4.js +70 -0
- package/build/server/chunks/6-DdCU04G4.js.map +1 -0
- package/build/server/chunks/7-BJeosbkA.js +66 -0
- package/build/server/chunks/7-BJeosbkA.js.map +1 -0
- package/build/server/chunks/_layout.svelte-ClzaQTuQ.js +15 -0
- package/build/server/chunks/_layout.svelte-ClzaQTuQ.js.map +1 -0
- package/build/server/chunks/_page.svelte-B8Bnkzob.js +78 -0
- package/build/server/chunks/_page.svelte-B8Bnkzob.js.map +1 -0
- package/build/server/chunks/_page.svelte-BN1au56r.js +51 -0
- package/build/server/chunks/_page.svelte-BN1au56r.js.map +1 -0
- package/build/server/chunks/_page.svelte-Bu4SlGir.js +86 -0
- package/build/server/chunks/_page.svelte-Bu4SlGir.js.map +1 -0
- package/build/server/chunks/_page.svelte-DHhstcmi.js +70 -0
- package/build/server/chunks/_page.svelte-DHhstcmi.js.map +1 -0
- package/build/server/chunks/_page.svelte-DKhYDtNl.js +86 -0
- package/build/server/chunks/_page.svelte-DKhYDtNl.js.map +1 -0
- package/build/server/chunks/_page.svelte-DYlwwhHn.js +70 -0
- package/build/server/chunks/_page.svelte-DYlwwhHn.js.map +1 -0
- package/build/server/chunks/adapter-DSZ-_PM_.js +273 -0
- package/build/server/chunks/adapter-DSZ-_PM_.js.map +1 -0
- package/build/server/chunks/app-DST8OmzT.js +12 -0
- package/build/server/chunks/app-DST8OmzT.js.map +1 -0
- package/build/server/chunks/client-Bcpj9QFB.js +69 -0
- package/build/server/chunks/client-Bcpj9QFB.js.map +1 -0
- package/build/server/chunks/dev-yFiAtg5l.js +4498 -0
- package/build/server/chunks/dev-yFiAtg5l.js.map +1 -0
- package/build/server/chunks/error.svelte-1lnafu4q.js +68 -0
- package/build/server/chunks/error.svelte-1lnafu4q.js.map +1 -0
- package/build/server/chunks/hooks.server-BBW_dqIs.js +14060 -0
- package/build/server/chunks/hooks.server-BBW_dqIs.js.map +1 -0
- package/build/server/chunks/index-5kYmxIr9.js +191 -0
- package/build/server/chunks/index-5kYmxIr9.js.map +1 -0
- package/build/server/chunks/index-DBqjc0Yf.js +77 -0
- package/build/server/chunks/index-DBqjc0Yf.js.map +1 -0
- package/build/server/chunks/internal-BrzrGF6g.js +1757 -0
- package/build/server/chunks/internal-BrzrGF6g.js.map +1 -0
- package/build/server/chunks/list-params-DjWk7B1o.js +44 -0
- package/build/server/chunks/list-params-DjWk7B1o.js.map +1 -0
- package/build/server/chunks/widget-registry-CYJ6dCZP.js +242 -0
- package/build/server/chunks/widget-registry-CYJ6dCZP.js.map +1 -0
- package/build/server/chunks/zod-from-table-Cqu9YCfY.js +6923 -0
- package/build/server/chunks/zod-from-table-Cqu9YCfY.js.map +1 -0
- package/build/server/index.js +4447 -0
- package/build/server/index.js.map +1 -0
- package/build/server/manifest.js +86 -0
- package/build/server/manifest.js.map +1 -0
- package/build/shims.js +32 -0
- package/package.json +71 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,109 @@
|
|
|
1
1
|
# @kozou/svelte-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SvelteKit + Svelte 5 Admin UI for [Kozou](https://kozou.org). Reads
|
|
4
|
+
a `SchemaContext` from [`@kozou/core`](../core) and talks to a
|
|
5
|
+
backend through the `DataAdapter` interface defined there. The
|
|
6
|
+
default adapter speaks PostgREST.
|
|
7
|
+
|
|
8
|
+
> **Status:** published to npm as `@kozou/svelte-ui`. The package
|
|
9
|
+
> ships only the adapter-node `build/` artifact; host integration
|
|
10
|
+
> via `kozou dev` shipped in v0.1.1.
|
|
11
|
+
|
|
12
|
+
## Stack
|
|
13
|
+
|
|
14
|
+
| Layer | Pick |
|
|
15
|
+
|-------|------|
|
|
16
|
+
| Framework | SvelteKit 2.6+ / Svelte 5.55+ |
|
|
17
|
+
| Adapter | `@sveltejs/adapter-node` |
|
|
18
|
+
| Styling | Tailwind v4 + shadcn-svelte design tokens |
|
|
19
|
+
| Forms | `sveltekit-superforms` + `formsnap` + `zod` (4.4) |
|
|
20
|
+
| Tables | `@tanstack/table-core` (Svelte 5 wrapper internalised) |
|
|
21
|
+
| HTTP | `fetch` via the `DataAdapter` interface from `@kozou/core` |
|
|
22
|
+
|
|
23
|
+
The full feature catalogue lives in the *Kozou v0.1 design spec*
|
|
24
|
+
§8.
|
|
25
|
+
|
|
26
|
+
## Routes
|
|
27
|
+
|
|
28
|
+
| Path | Purpose |
|
|
29
|
+
|------|---------|
|
|
30
|
+
| `/` | Dashboard — list every table + view in the introspected schema |
|
|
31
|
+
| `/tables/[table]` | Table listing with URL-driven search / sort / pagination |
|
|
32
|
+
| `/tables/[table]/new` | Create record — zod-validated form, superforms-backed |
|
|
33
|
+
| `/tables/[table]/[id]` | Detail view + `?/delete` form action |
|
|
34
|
+
| `/tables/[table]/[id]/edit` | Edit record |
|
|
35
|
+
| `/views/[view]` | Read-only view listing |
|
|
36
|
+
|
|
37
|
+
Query parameters on the list / view routes:
|
|
38
|
+
|
|
39
|
+
- `?q=<text>` — case-insensitive search across the resolved
|
|
40
|
+
text-like columns.
|
|
41
|
+
- `?sort=col:asc,col2:desc` — one or more sort segments.
|
|
42
|
+
- `?page=<n>` — 1-based; defaults to 1.
|
|
43
|
+
- `?pageSize=<m>` — defaults to 50.
|
|
44
|
+
|
|
45
|
+
## Local development
|
|
46
|
+
|
|
47
|
+
Required environment variables (Node 20+, pnpm 9+):
|
|
48
|
+
|
|
49
|
+
- `DATABASE_URL` — PostgreSQL connection string. Used by
|
|
50
|
+
`hooks.server.ts` to introspect the schema on first request.
|
|
51
|
+
- `KOZOU_ADAPTER_URL` — base URL of the backend the `DataAdapter`
|
|
52
|
+
talks to (default `http://localhost:3000`).
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# from the monorepo root
|
|
56
|
+
pnpm install
|
|
57
|
+
|
|
58
|
+
# build the SvelteKit production bundle (Node + client artifacts)
|
|
59
|
+
pnpm --filter @kozou/svelte-ui run build
|
|
60
|
+
|
|
61
|
+
# unit + integration tests
|
|
62
|
+
pnpm --filter @kozou/svelte-ui run test
|
|
63
|
+
|
|
64
|
+
# start the dev server
|
|
65
|
+
DATABASE_URL=postgres://kozou:kozou@localhost:5432/kozou \
|
|
66
|
+
KOZOU_ADAPTER_URL=http://localhost:3000 \
|
|
67
|
+
pnpm --filter @kozou/svelte-ui run dev
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Building before running `pnpm test` exercises the smoke case in
|
|
71
|
+
`test/smoke/build.test.ts`; the case is skipped (not failed) when
|
|
72
|
+
the build artifacts are absent so a fresh checkout still gets a
|
|
73
|
+
green `pnpm test` run.
|
|
74
|
+
|
|
75
|
+
## Manual smoke checklist (Step 6 Definition of Done)
|
|
76
|
+
|
|
77
|
+
Run end-to-end against a real PostgreSQL + PostgREST stack
|
|
78
|
+
(`docker compose up -d` from a `create-kozou` scaffold works):
|
|
79
|
+
|
|
80
|
+
1. `pnpm --filter @kozou/svelte-ui run dev` — open
|
|
81
|
+
`http://localhost:5173/`.
|
|
82
|
+
2. Dashboard lists every table + view with description excerpts.
|
|
83
|
+
3. Click into a table. The listing renders with search, sortable
|
|
84
|
+
column anchors, and Prev / Next pagination.
|
|
85
|
+
4. Use the search box (`?q=…`) — the URL updates and rows narrow.
|
|
86
|
+
5. Click a sortable column twice — sort toggles `asc` → `desc`,
|
|
87
|
+
`?sort=` updates in the URL.
|
|
88
|
+
6. Click **+ New** — fill the form, submit. The browser lands on
|
|
89
|
+
the detail page of the new row.
|
|
90
|
+
7. From the detail page, click **Edit**, change a field, save.
|
|
91
|
+
The detail page reflects the change.
|
|
92
|
+
8. Click **Delete** — the row vanishes and the URL returns to
|
|
93
|
+
`/tables/[table]`.
|
|
94
|
+
9. Visit `/views/[view]` — listing renders with no
|
|
95
|
+
New / Edit / Delete controls (read-only).
|
|
96
|
+
|
|
97
|
+
## Adapter boundary
|
|
98
|
+
|
|
99
|
+
Route code (`src/routes/**`) never imports `PostgrestDataAdapter`
|
|
100
|
+
directly. The eslint config in the repository root
|
|
101
|
+
(`.eslintrc.cjs`) enforces this: routes that try to hardcode a
|
|
102
|
+
PostgREST URL, dereference a `PGRST_*` env var, or reference
|
|
103
|
+
PostgREST by name fail lint. Routes go through `getAdapter()` in
|
|
104
|
+
`src/lib/server/adapter.ts`, which constructs the configured
|
|
105
|
+
adapter from `KOZOU_ADAPTER_URL` (default `http://localhost:3000`).
|
|
106
|
+
|
|
107
|
+
## License
|
|
108
|
+
|
|
109
|
+
Apache 2.0. See [LICENSE](../../LICENSE) at the repository root.
|
|
@@ -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}.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,b=16384,x=32768,S=1<<25,ee=65536,C=1<<19,te=1<<20,ne=1<<25,re=65536,ie=1<<21,ae=1<<22,oe=1<<23,se=Symbol(`$state`),ce=Symbol(`legacy props`),le=Symbol(``),ue=Symbol(`attributes`),de=Symbol(`class`),fe=Symbol(`style`),pe=Symbol(`text`),me=Symbol(`form reset`),he=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function ve(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ye(){throw Error(`https://svelte.dev/e/missing_context`)}function be(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function xe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Se(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ce(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function we(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Te(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ee(){throw Error(`https://svelte.dev/e/fork_discarded`)}function De(){throw Error(`https://svelte.dev/e/fork_timing`)}function Oe(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function ke(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ae(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function je(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Me(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ne(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Pe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Fe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ie(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Le={},w=Symbol(`uninitialized`),Re=`http://www.w3.org/1999/xhtml`;function ze(){console.warn(`https://svelte.dev/e/derived_inert`)}function Be(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function Ve(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function He(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ue(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function E(e){T=e}var D;function O(e){if(e===null)throw Ve(),Le;return D=e}function We(){return O(R(D))}function Ge(e){if(T){if(R(D)!==null)throw Ve(),Le;D=e}}function Ke(e=1){if(T){for(var t=e,n=D;t--;)n=R(n);D=n}}function qe(e=!0){for(var t=0,n=D;;){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 Je(e){if(!e||e.nodeType!==8)throw Ve(),Le;return e.data}function Ye(e){return e===this.v}function Xe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ze(e){return!Xe(e,this.v)}var k=!1,Qe=!1;function $e(){Qe=!0}var A=null;function et(e){A=e}function tt(){let e={};return[()=>(it(e)||ye(),nt(e)),t=>rt(e,t)]}function nt(e){return lt(`getContext`).get(e)}function rt(e,t){let n=lt(`setContext`);if(k){var r=G.f;!H&&r&32&&!A.i||Me()}return n.set(e,t),t}function it(e){return lt(`hasContext`).has(e)}function at(){return lt(`getAllContexts`)}function ot(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:G,l:Qe&&!t?{s:null,u:null,$:[]}:null}}function st(e){var t=A,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,A=t.p,e??{}}function ct(){return!Qe||A!==null&&A.l===null}function lt(e){return A===null&&ve(e),A.c??=new Map(ut(A)||void 0)}function ut(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var dt=[];function ft(){var e=dt;dt=[],m(e)}function pt(e){if(dt.length===0&&!Bt){var t=dt;queueMicrotask(()=>{t===dt&&ft()})}dt.push(e)}function mt(){for(;dt.length>0;)ft()}function ht(e){var t=G;if(t===null)return H.f|=oe,e;if(!(t.f&32768)&&!(t.f&4))throw e;gt(e,t)}function gt(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 _t=~(_|v|g);function j(e,t){e.f=e.f&_t|t}function vt(e){e.f&512||e.deps===null?j(e,g):j(e,v)}function yt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=re,yt(t.deps))}function bt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),yt(e.deps),j(e,g)}function xt(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 St=[];function Ct(e,t){return{subscribe:wt(e,t).subscribe}}function wt(e,t=p){let n=null,r=new Set;function i(t){if(Xe(e,t)&&(e=t,n)){let t=!St.length;for(let t of r)t[1](),St.push(t,e);if(t){for(let e=0;e<St.length;e+=2)St[e][0](St[e+1]);St.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 Tt(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 Ct(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)=>xt(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){m(d),l(),o=!1}})}function Et(e){return{subscribe:e.subscribe.bind(e)}}function Dt(e){let t;return xt(e,e=>t=e)(),t}var Ot=!1,kt=!1,At=Symbol(`unmounted`);function jt(e,t,n){let r=n[t]??={store:null,source:On(void 0),unsubscribe:p};if(r.store!==e&&!(At 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=xt(e,e=>{i?r.source.v=e:F(r.source,e)}),i=!1}return e&&At in n?Dt(e):Z(r.source)}function Mt(){let e={};function t(){nr(()=>{for(var t in e)e[t].unsubscribe();o(e,At,{enumerable:!1,value:!0})})}return[e,t]}function Nt(e,t){Ot=!0;try{e.set(t)}finally{Ot=!1}}function Pt(e,t,n){return Nt(e,n),t}function Ft(e){var t=kt;try{return kt=!1,[e(),kt]}finally{kt=t}}var It=null,Lt=null,M=null,Rt=null,N=null,zt=null,Bt=!1,Vt=!1,Ht=null,Ut=null,Wt=0,Gt=1,Kt=class e{id=Gt++;#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)j(r,_),t(r);for(r of n.m)j(r,v),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,Wt++>1e3&&(this.#w(),Jt()),!this.#g()){for(let e of this.#d)this.#f.delete(e),j(e,_),this.schedule(e);for(let e of this.#f)j(e,v),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=Ht=[],r=[],i=Ut=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw tn(e),t}if(M=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Ht=null,Ut=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)en(e,t);i.length>0&&M.#_();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(),Rt=this,Yt(r),Yt(n),Rt=null,this.#c?.resolve();var s=M;if(this.linked&&this.#o===0&&this.#w(),k&&!this.linked&&(this.#S(),M=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):k&&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),j(i,_),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),M=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)bt(e[t],this.#d,this.#f)}capture(e,t,n=!1){e.v!==w&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),N?.set(e,t)),this.is_fork||(e.v=t)}activate(){M=this}deactivate(){M=null,N=null}flush(){try{Vt=!0,M=this,this.#_()}finally{Wt=0,zt=null,Ht=null,Ut=null,Vt=!1,M=null,N=null,Cn.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=It;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)Xt(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)&&Qt(e,s,a)&&(e.f&4194320?(j(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,pt(()=>{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(M===null){let t=M=new e;t.#C(),!Vt&&!Bt&&pt(()=>{t.#e||t.flush()})}return M}apply(){if(!k||!this.is_fork&&this.#t===null&&this.#n===null){N=null;return}N=new Map;for(let[e,[t]]of this.current)N.set(e,t);for(let t=It;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)N.has(e)||N.set(e,n)}}schedule(e){if(zt=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(Ht!==null&&t===G&&(k||(H===null||!(H.f&2))&&!Ot))return;if(n&96){if(!(n&1024))return;t.f^=g}}this.#l.push(t)}#C(){Lt===null?It=Lt=this:(Lt.#n=this,this.#t=Lt),Lt=this}#w(){var e=this.#t,t=this.#n;e===null?It=t:e.#n=t,t===null?Lt=e:t.#t=e,this.linked=!1}};function qt(e){var t=Bt;Bt=!0;try{var n;for(e&&(M!==null&&!M.is_fork&&M.flush(),n=e());;){if(mt(),M===null)return n;M.flush()}}finally{Bt=t}}function Jt(){try{Te()}catch(e){gt(e,zt)}}var P=null;function Yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Nr(r)&&(P=new Set,Rr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&gr(r),P?.size>0)){Cn.clear();for(let e of P){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)P.has(n)&&(P.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)}}P.clear()}}P=null}}function Xt(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?Xt(i,t,n,r):e&4194320&&!(e&2048)&&Qt(i,t,r)&&(j(i,_),$t(i))}}function Zt(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?Zt(n,t):e&131072&&(j(n,_),t.add(n))}}function Qt(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&&Qt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function $t(e){M.schedule(e)}function en(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,g);for(var n=e.first;n!==null;)en(n,t),n=n.next}}function tn(e){j(e,g);for(var t=e.first;t!==null;)tn(t),t=t.next}function nn(e){k||_e(`fork`),M!==null&&De();var t=Kt.ensure();t.is_fork=!0,N=new Map;var n=!1,r=t.settled();return qt(e),{commit:async()=>{if(n){await r;return}t.linked||Ee(),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(),qt(()=>{var e=new Set;for(var n of t.current.keys())Zt(n,e);wn(e),An()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Mr();!n&&t.linked&&t.discard()}}}function rn(e){let t=0,n=En(0),r;return()=>{tr()&&(Z(n),lr(()=>(t===0&&(r=Q(()=>e(()=>jn(n)))),t+=1,()=>{pt(()=>{--t,t===0&&(r?.(),r=void 0,jn(n))})})))}}var an=ee|C;function on(e,t,n,r){new sn(e,t,n,r)}var sn=class{parent;is_pending=!1;transform_error;#e;#t=T?D: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=rn(()=>(this.#m=En(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(T){let e=this.#t;We();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()},an),T&&(this.#e=D)}#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)),pt(()=>{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(M))}))}#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(M)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){bt(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=A;K(this.#i),W(this.#i),et(this.#i.ctx);try{return Kt.ensure(),e()}catch(e){return ht(e),null}finally{K(t),W(n),et(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,pt(()=>{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;M?.is_fork?(this.#a&&M.skip_effect(this.#a),this.#o&&M.skip_effect(this.#o),this.#s&&M.skip_effect(this.#s),M.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),T&&(O(this.#t),Ke(),O(qe()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){Ue();return}r=!0,i&&Ie(),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){gt(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 gt(e,this.#i.parent),null}}))};pt(()=>{var t;try{t=this.transform_error(e)}catch(e){gt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>gt(e,this.#i&&this.#i.parent)):o(t)})}};function cn(e,t,n,r){let i=ct()?fn:gn;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=ln(),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){gt(e,o)}un()}}var u=dn();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>mn(e))).then(e=>l([...t.map(i),...e])).catch(e=>gt(e,o)).finally(u)}c?c.then(()=>{s(),d(),un()}):d()}function ln(){var e=G,t=H,n=A,r=M;return function(i=!0){K(e),W(t),et(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function un(e=!0){K(null),W(null),et(null),e&&M?.deactivate()}function dn(){var e=G,t=e.b,n=M,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 fn(e){var t=2|_;return G!==null&&(G.f|=C),{ctx:A,deps:null,effects:null,equals:Ye,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:G,ac:null}}var pn=Symbol(`obsolete`);function mn(e,t,n){let r=G;r===null&&be();var i=void 0,a=En(w),o=!H,s=new Set;return cr(()=>{var t=G,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==he&&n.reject(e)}).finally(un)}catch(e){n.reject(e),un()}var c=M;if(o){if(t.f&32768)var l=dn();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(pn);else for(let e of s.values())e.reject(pn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==pn&&(c.activate(),t?(a.f|=oe,kn(a,t)):(a.f&8388608&&(a.f^=oe),kn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),nr(()=>{for(let e of s)e.reject(pn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function hn(e){let t=fn(e);return k||Er(t),t}function gn(e){let t=fn(e);return t.equals=Ze,t}function _n(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function vn(e){var t,n=G,r=e.parent;if(!wr&&r!==null&&e.v!==w&&r.f&24576)return ze(),e.v;K(r);try{e.f&=~re,_n(e),t=Fr(e)}finally{K(n)}return t}function yn(e){var t=vn(e);if(!e.equals(t)&&(e.wv=Mr(),(!M?.is_fork||e.deps===null)&&(M===null?e.v=t:(M.capture(e,t,!0),Rt?.capture(e,t,!0)),e.deps===null))){j(e,g);return}wr||(N===null?vt(e):(tr()||M?.is_fork)&&N.set(e,t))}function bn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.fn!==null&&(t.teardown=p),t.ac=null,Lr(t,0),pr(t))}function xn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Rr(t)}var Sn=new Set,Cn=new Map;function wn(e){Sn=e}var Tn=!1;function En(e,t){return{f:0,v:e,reactions:null,equals:Ye,rv:0,wv:0}}function Dn(e,t){let n=En(e,t);return Er(n),n}function On(e,t=!1,n=!0){let r=En(e);return t||(r.equals=Ze),Qe&&n&&A!==null&&A.l!==null&&(A.l.s??=[]).push(r),r}function F(e,t,n=!1){return H!==null&&(!U||H.f&131072)&&ct()&&H.f&4325394&&(q===null||!i.call(q,e))&&Fe(),kn(e,n?Nn(t):t,Ut)}function kn(e,t,n=null){if(!e.equals(t)){Cn.set(e,wr?t:e.v);var r=Kt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&vn(t),N===null&&vt(t)}e.wv=Mr(),Mn(e,_,n),ct()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?Dr([e]):X.push(e)),!r.is_fork&&Sn.size>0&&!Tn&&An()}return t}function An(){Tn=!1;for(let e of Sn){e.f&1024&&j(e,v);let t;try{t=Nr(e)}catch{t=!0}t&&Rr(e)}Sn.clear()}function jn(e){F(e,e.v+1)}function Mn(e,t,n){var r=e.reactions;if(r!==null)for(var i=ct(),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&&j(s,t),c&131072)Sn.add(s);else if(c&2){var u=s;N?.delete(u),c&65536||(c&512&&(G===null||!(G.f&2097152))&&(s.f|=re),Mn(u,v,n))}else if(l){var d=s;c&16&&P!==null&&P.add(d),n===null?$t(d):n.push(d)}}}}function Nn(e){if(typeof e!=`object`||!e||se in e)return e;let t=d(e);if(t!==l&&t!==u)return e;var r=new Map,i=n(e),a=Dn(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`,Dn(e.length,o)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ne();var i=r.get(t);return i===void 0?f(()=>{var e=Dn(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(()=>Dn(w,o));r.set(t,e),jn(a)}}else F(n,w),jn(a);return!0},get(t,n,i){if(n===se)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||s(t,n)?.writable)&&(a=f(()=>Dn(Nn(c?t[n]:w),o)),r.set(n,a)),a!==void 0){var l=Z(a);return l===w?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!==w)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===se)return!0;var n=r.get(t),i=n!==void 0&&n.v!==w||Reflect.has(e,t);return(n!==void 0||G!==null&&(!i||s(e,t)?.writable))&&(n===void 0&&(n=f(()=>Dn(i?Nn(e[t]):w,o)),r.set(t,n)),Z(n)===w)?!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(()=>Dn(w,o)),r.set(d+``,p)):F(p,w)}if(l===void 0)(!u||s(e,t)?.writable)&&(l=f(()=>Dn(void 0,o)),F(l,Nn(n)),r.set(t,l));else{u=l.v!==w;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!==w});for(var[n,i]of r)i.v!==w&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Pe()}})}function Pn(e){try{if(typeof e==`object`&&e&&se in e)return e[se]}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[de]=void 0,e[ue]=null,e[fe]=void 0,e.__e=void 0),f(n)&&(n[pe]=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(!T)return L(e);var n=L(D);if(n===null)n=D.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),O(r),r}return t&&qn(n),O(n),n}function Hn(e,t=!1){if(!T){var n=L(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(D?.nodeType!==3){var r=I();return D?.before(r),O(r),r}qn(D)}return D}function Un(e,t=1,n=!1){let r=T?D:e;for(var i;t--;)i=r,r=R(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),O(a),a}qn(r)}return O(r),r}function Wn(e){e.textContent=``}function Gn(){return!k||P!==null?!1:(G.f&x)!==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){T&&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[me]?.()})},{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[me];i?e[me]=()=>{i(),r(!0)}:e[me]=()=>r(!0),Xn()}function $n(e){G===null&&(H===null&&we(e),Ce()),wr&&Se(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:A,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};M?.register_created_effect(r);var i=r;if(e&4)Ht===null?Kt.ensure().schedule(r):Ht.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|=ee))}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 j(t,g),t.teardown=e,t}function rr(e){$n(`$effect`);var t=G.f;if(!H&&t&32&&!(t&32768)){var n=A;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return z(4|te,e)}function ar(e){return $n(`$effect.pre`),z(8|te,e)}function or(e){Kt.ensure();let t=z(64|C,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(ae|C,e)}function lr(e,t=0){return z(8|t,e)}function ur(e,t=[],n=[],r=[]){cn(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|C,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(he)});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),j(e,S),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^=S,e.f|=b;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||(j(e,_),Kt.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&&(!k||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&=~re),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Nr(a)&&yn(a),a.wv>e.wv)return!0}t&512&&N===null&&j(e,g)}return!1}function Pr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!k&&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?j(o,_):o.f&1024&&j(o,v),$t(o))}}function Fr(e){var t=J,n=Y,r=X,i=H,a=q,o=A,s=U,c=Ar,l=e.f;J=null,Y=0,X=null,H=l&96?null:e,q=null,et(e.ctx),U=!1,Ar=++kr,e.ac!==null&&(Zn(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=ie;var u=e.fn,d=u();e.f|=x;var f=e.deps,p=M?.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(ct()&&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^=oe),d}catch(e){return ht(e)}finally{e.f^=ie,J=t,Y=n,X=r,H=i,q=a,et(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&=~re),s.v!==w&&vt(s),bn(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)){j(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(k)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),qt()}function Br(){return Kt.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&&Cn.has(e))return Cn.get(e);if(t){var a=e;if(wr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Hr(a))&&(o=vn(a)),Cn.set(a,o),o}var s=(a.f&512)==0&&!U&&H!==null&&(Cr||(H.f&512)!=0),c=(a.f&x)===0;Nr(a)&&(s&&(a.f|=512),yn(a)),s&&!c&&(xn(a),Vr(a))}if(N?.has(e))return N.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)&&(xn(t),Vr(t))}function Hr(e){if(e.v===w)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Cn.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(se in e)Wr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&se 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(T)return $(D,null),D;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(T)return $(D,null),D;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(!T){var t=I(e+``);return $(t,t),t}var n=D;return n.nodeType===3?qn(n):(n.before(n=I()),O(n)),$(n,n),n}function si(){if(T)return $(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=I();return e.append(t,n),$(t,n),e}function ci(e,t){if(T){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),We();return}e!==null&&e.before(t)}function li(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[pe]??=e.nodeValue)&&(e[pe]=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=T,i=D;try{for(var a=L(n);a&&(a.nodeType!==8||a.data!==`[`);)a=R(a);if(!a)throw Le;E(!0),O(a);let r=pi(e,{...t,anchor:a});return E(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Le&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&ke(),Bn(),Wn(n),E(!1),ui(e,t)}finally{E(r),O(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());on(s,{pending:()=>{}},t=>{ot({});var n=A;if(o&&(n.c=o),i&&(r.$$events=i),T&&$(t,null),l=e(t,r)||{},T&&(G.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Ve(),Le;st()},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=M,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 T&&(this.anchor=D),this.#a(n)}};function _i(e,t,n=!1){var r;T&&(r=D,We());var i=new gi(e),a=n?ee:0;function o(e,t){if(T){var n=Je(r);if(e!==parseInt(n.substring(1))){var a=qe();O(a),i.anchor=a,E(!1),i.ensure(e,t),E(!0);return}}i.ensure(e,t)}dr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function vi(e,t){return t}function yi(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;bi(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()}bi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function bi(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|=ne,xr(a,document.createDocumentFragment())):V(t[i],n)}}var xi;function Si(e,t,r,i,o,s=null){var c=e,l=new Map;if(t&4){var u=e;c=T?O(L(u)):u.appendChild(I())}T&&We();var d=null,f=gn(()=>{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,wi(v,p,c,t,i),d!==null&&(p.length===0?d.f&33554432?(d.f^=ne,Ei(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;T&&Je(c)===`[!`!=(e===0)&&(c=qe(),O(c),E(!1),n=!0);for(var a=new Set,u=M,v=Gn(),y=0;y<e;y+=1){T&&D.nodeType===8&&D.data===`]`&&(c=D,n=!0,E(!1));var b=p[y],x=i(b,y),S=h?null:l.get(x);S?(S.v&&kn(S.v,b),S.i&&kn(S.i,y),v&&u.unskip_effect(S.e)):(S=Ti(l,h?c:xi??=I(),b,x,y,o,t,r),h||(S.e.f|=ne),l.set(x,S)),a.add(x)}if(e===0&&s&&!d&&(h?d=B(()=>s(c)):(d=B(()=>s(xi??=I())),d.f|=ne)),e>a.size&&xe(``,``,``),T&&e>0&&O(qe()),!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&&E(!0),Z(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=D)}function Ci(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function wi(e,t,n,r,i){var o=(r&8)!=0,s=t.length,c=e.items,l=Ci(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^=ne,_===l)Ei(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Di(e,d,_),Di(e,_,y),Ei(_,y,n),d=_,p=[],m=[],l=Ci(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Ei(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Di(e,S.prev,ee.next),Di(e,d,S),Di(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Ei(_,l,n),Di(e,_.prev,_.next),Di(e,_,d===null?e.effect.first:d.next),Di(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Ci(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Ci(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(bi(e,a(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=Ci(l.next);var te=C.length;if(te>0){var re=r&4&&s===0?n:null;if(o){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}yi(e,C,re)}}o&&pt(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ti(e,t,n,r,i,a,o,s){var c=o&1?o&16?En(n):On(n,!1,!1):null,l=o&2?En(i):null;return{v:c,i:l,e:B(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ei(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 Di(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Oi(e,t,...n){var r=new gi(e);dr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ee)}function ki(e){return(t,...n)=>{var r=e(...n),i;T?(i=D,We()):(i=L(ni(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&nr(a)}}function Ai(e,t,n){var r;T&&(r=D,We());var i=new gi(e);dr(()=>{var e=t()??null;if(T&&Je(r)===`[`!=(e!==null)){var a=qe();O(a),i.anchor=a,E(!1),i.ensure(e,e&&(t=>n(t,e))),E(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ee)}function ji(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&&Xe(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Mi(e,t,r=!1){if(e.multiple){if(t==null)return;if(!n(t))return He();for(var i of e.options)i.selected=t.includes(Fi(i));return}for(i of e.options)if(Fn(Fi(i),t)){i.selected=!0;return}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Ni(e){var t=new MutationObserver(()=>{Mi(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),nr(()=>{t.disconnect()})}function Pi(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),Fi);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Fi(o)}n(a),e.__value=a,M!==null&&r.add(M)}),sr(()=>{var a=t();if(e===document.activeElement){var o=k?Rt:M;if(r.has(o))return}if(Mi(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Fi(s),n(a))}e.__value=a,i=!1}),Ni(e)}function Fi(e){return`__value`in e?e.__value:e.value}var Ii=Symbol(`is custom element`),Li=Symbol(`is html`),Ri=ge?`link`:`LINK`,zi=ge?`progress`:`PROGRESS`;function Bi(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Hi(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Hi(e,`checked`,null),e.checked=r}}};e[me]=n,pt(n),Xn()}}function Vi(e,t){var n=Ui(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==zi)||(e.value=t??``)}function Hi(e,t,n,r){var i=Ui(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ri)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[le]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Gi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ui(e){return e[ue]??={[Ii]:e.nodeName.includes(`-`),[Li]:e.namespaceURI===Re}}var Wi=new Map;function Gi(e){var t=e.getAttribute(`is`)||e.nodeName,n=Wi.get(t);if(n)return n;Wi.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 Ki(e,t,n=t){var r=new WeakSet;Qn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Ji(e)?Yi(a):a,n(a),M!==null&&r.add(M),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))}}}),(T&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(n(Ji(e)?Yi(e.value):e.value),M!==null&&r.add(M)),lr(()=>{var n=t();if(e===document.activeElement){var i=k?Rt:M;if(r.has(i))return}Ji(e)&&n===Yi(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function qi(e,t,n=t){Qn(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(T&&e.defaultChecked!==e.checked||Q(t)==null)&&n(e.checked),lr(()=>{e.checked=!!t()})}function Ji(e){var t=e.type;return t===`number`||t===`range`}function Yi(e){return e===``?null:+e}function Xi(e,t){return e===t||e?.[se]===t}function Zi(e={},t,n,r){var i=A.r,a=G;return sr(()=>{var o,s;return lr(()=>{o=s,s=r?.()||[],Q(()=>{Xi(n(...s),e)||(t(e,...s),o&&Xi(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&&Xi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Qi(e,t,n,r){var i=!Qe||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>o&&i?(u??=fn(r),Z(u)):(l&&(l=!1,c=o?Q(r):r),c);let f;if(a){var p=se in e||ce in e;f=s(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=Ft(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&je(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?fn:gn)(()=>(v=!1,g()));a&&Z(y);var b=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||b.f&16384?y.v:Z(y)})}function $i(e){return class extends ea{constructor(t){super({component:e,...t})}}}var ea=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===ce?!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}),!k&&(!e?.props?.$$host||e.sync===!1)&&qt(),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 ta(e,t){if(k||_e(`hydratable`),T){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Be(e)}return t()}var na=t({afterUpdate:()=>la,beforeUpdate:()=>ca,createContext:()=>tt,createEventDispatcher:()=>sa,createRawSnippet:()=>ki,flushSync:()=>qt,fork:()=>nn,getAbortSignal:()=>ra,getAllContexts:()=>at,getContext:()=>nt,hasContext:()=>it,hydratable:()=>ta,hydrate:()=>di,mount:()=>ui,onDestroy:()=>aa,onMount:()=>ia,setContext:()=>rt,settled:()=>Br,tick:()=>zr,unmount:()=>hi,untrack:()=>Q});function ra(){return H===null&&Oe(),(H.ac??=new AbortController).signal}function ia(e){A===null&&ve(`onMount`),Qe&&A.l!==null?ua(A).m.push(e):rr(()=>{let t=Q(e);if(typeof t==`function`)return t})}function aa(e){A===null&&ve(`onDestroy`),ia(()=>()=>Q(e))}function oa(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function sa(){let e=A;return e===null&&ve(`createEventDispatcher`),(t,r,i)=>{let a=e.s.$$events?.[t];if(a){let o=n(a)?a.slice():[a],s=oa(t,r,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function ca(e){A===null&&ve(`beforeUpdate`),A.l===null&&Ae(`beforeUpdate`),ua(A).b.push(e)}function la(e){A===null&&ve(`afterUpdate`),A.l===null&&Ae(`afterUpdate`),ua(A).a.push(e)}function ua(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{$e as $,Q as A,Dn as B,ai as C,Z as D,Xr as E,Vn as F,Tt as G,Mt as H,Hn as I,wt as J,Dt as K,Un as L,rr as M,ar as N,Br as O,Jn as P,rt as Q,Nn as R,ri as S,Zr as T,jt as U,hn as V,Pt as W,st as X,nt as Y,ot as Z,vi as _,Qi as a,ci as b,Ki as c,Vi as d,Ke as et,Pi as f,Si as g,Oi as h,$i as i,ur as j,zr as k,Bi as l,Ai as m,aa as n,Zi as o,ji as p,Et as q,ia as r,qi as s,na as t,Ge as tt,Hi as u,_i as v,oi as w,si as x,li as y,F as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{B as e,D as t,J as n,O as r,k as i,r as a,t as o,z as s}from"./BpIM_fT8.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(){}function ee(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function g(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var _=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(x(e)),_(e,t));var v=new Map;function y(e,t){let n=x(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=g(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function b(e,t,n){if(v.size>0){let t=x(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function x(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${ee(...e)}"]`}return n}var te=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ne=/^\/\((?:[^)]+)\)$/;function re(e){let t=[];return{pattern:e===`/`||ne.test(e)?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=te.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ce({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function le(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ue(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var S=globalThis.__sveltekit_16i0po3?.base??``,de=globalThis.__sveltekit_16i0po3?.assets??S??``,fe=`1780158289623`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,C=`sveltekit:history`,w=`sveltekit:navigation`,T={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function ge(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function O(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var _e={...T,"":T.hover};function ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ye(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ve(e)}}function be(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||Te(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===E&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function xe(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=O(s,`preload-code`)),i===null&&(i=O(s,`preload-data`)),t===null&&(t=O(s,`keepfocus`)),n===null&&(n=O(s,`noscroll`)),a===null&&(a=O(s,`reload`)),o===null&&(o=O(s,`replacestate`)),s=ve(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:_e[r??`off`],preload_data:_e[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let t=n(e),r=!0;function i(){r=!0,t.update(e=>e)}function a(e){r=!1,t.set(e)}function o(e){let n;return t.subscribe(t=>{(n===void 0||r&&t!==n)&&e(n=t)})}return{notify:i,set:a,subscribe:o}}var Ce={v:h};function we(){let{set:e,subscribe:t}=n(!1);async function r(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:r}}function Te(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Ee(e){}var De=2**32-1,Oe=De-1,ke=class extends Error{constructor(e,t,n,r){super(e),this.name=`DevalueError`,this.path=t.join(``),this.value=n,this.root=r}};function Ae(e){return e===null||typeof e!=`object`&&typeof e!=`function`}var je=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Me(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===je}function Ne(e){return Object.prototype.toString.call(e).slice(8,-1)}function Pe(e){switch(e){case`"`:return`\\"`;case`<`:return`\\u003C`;case`\\`:return`\\\\`;case`
|
|
2
|
+
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function Fe(e){let t=``,n=0,r=e.length;for(let i=0;i<r;i+=1){let r=e[i],a=Pe(r);a&&(t+=e.slice(n,i)+a,n=i+1)}return`"${n===0?e:t+e.slice(n)}"`}function Ie(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}var Le=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Re(e){return Le.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function ze(e){return!(!Number.isInteger(e)||e<0||e>Oe)}function Be(e){return!(!Number.isInteger(e)||e<0||e>De)}function Ve(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return ze(+e)}function He(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!Ve(t[n]);n--);return t.length=n+1,t}function Ue(e){return new Uint8Array(e).toBase64()}function We(e){return Uint8Array.fromBase64(e).buffer}function Ge(e){return Buffer.from(e).toString(`base64`)}function Ke(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function qe(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e<t.length;e+=r){let i=t.subarray(e,e+r);n+=String.fromCharCode.apply(null,i)}return btoa(n)}function Je(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var Ye=typeof Uint8Array.fromBase64==`function`,Xe=typeof process==`object`&&process.versions?.node!==void 0,Ze=Ye?Ue:Xe?Ge:qe,Qe=Ye?We:Xe?Ke:Je;function $e(e,t){return et(JSON.parse(e),t)}function et(e,t){if(typeof e==`number`)return a(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let n=e,r=Array(n.length),i=null;function a(e,o=!1){if(e===-1)return;if(e===-3)return NaN;if(e===-4)return 1/0;if(e===-5)return-1/0;if(e===-6)return-0;if(o||typeof e!=`number`)throw Error(`Invalid input`);if(e in r)return r[e];let s=n[e];if(!s||typeof s!=`object`)r[e]=s;else if(Array.isArray(s))if(typeof s[0]==`string`){let o=s[0],c=t&&Object.hasOwn(t,o)?t[o]:void 0;if(c){let t=s[1];if(typeof t!=`number`&&(t=n.push(s[1])-1),i??=new Set,i.has(t))throw Error(`Invalid circular reference`);return i.add(t),r[e]=c(a(t)),i.delete(t),r[e]}switch(o){case`Date`:r[e]=new Date(s[1]);break;case`Set`:let t=new Set;r[e]=t;for(let e=1;e<s.length;e+=1)t.add(a(s[e]));break;case`Map`:let i=new Map;r[e]=i;for(let e=1;e<s.length;e+=2)i.set(a(s[e]),a(s[e+1]));break;case`RegExp`:r[e]=new RegExp(s[1],s[2]);break;case`Object`:{let t=s[1];if(typeof n[t]==`object`&&n[t][0]!==`BigInt`)throw Error(`Invalid input`);r[e]=Object(a(t));break}case`BigInt`:r[e]=BigInt(s[1]);break;case`null`:let c=Object.create(null);r[e]=c;for(let e=1;e<s.length;e+=2){if(s[e]===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");c[s[e]]=a(s[e+1])}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`:{if(n[s[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=globalThis[o],i=a(s[1]);r[e]=s[2]===void 0?new t(i):new t(i,s[2],s[3]);break}case`ArrayBuffer`:{let t=s[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);r[e]=Qe(t);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`:{let t=o.slice(9);r[e]=Temporal[t].from(s[1]);break}case`URL`:r[e]=new URL(s[1]);break;case`URLSearchParams`:r[e]=new URLSearchParams(s[1]);break;default:throw Error(`Unknown type ${o}`)}}else if(s[0]===-7){let t=s[1];if(!Be(t))throw Error(`Invalid input`);let n=[];r[e]=n,n[Oe]=void 0,delete n[Oe];for(let e=2;e<s.length;e+=2){let r=s[e];if(!ze(r)||r>=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}n.length=t}else{let t=Array(s.length);r[e]=t;for(let e=0;e<s.length;e+=1){let n=s[e];n!==-2&&(t[e]=a(n))}}else{let t={};r[e]=t;for(let e of Object.keys(s)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");let n=s[e];t[e]=a(n)}}return r[e]}return a(0)}var tt=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...tt,`entries`]);var nt=new Set([...tt]);new Set([...nt,`actions`,`entries`]),new Set([`GET`,`POST`,`PATCH`,`PUT`,`DELETE`,`OPTIONS`,`HEAD`,`fallback`,`prerender`,`trailingSlash`,`config`,`entries`]);function rt(e){return e.filter(e=>e!=null)}var it=`x-sveltekit-invalidated`,at=`x-sveltekit-trailing-slash`;function k(e,t){return e+`/`+t}function ot(e){return e instanceof c||e instanceof u?e.status:500}function st(e){return e instanceof u?e.text:`Internal Error`}var A,j,ct,lt=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),ut=`a:`;lt?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ut)},j={current:null},ct={current:!1}):(A=new class{#e=e({});get data(){return t(this.#e)}set data(e){s(this.#e,e)}#t=e(null);get form(){return t(this.#t)}set form(e){s(this.#t,e)}#n=e(null);get error(){return t(this.#n)}set error(e){s(this.#n,e)}#r=e({});get params(){return t(this.#r)}set params(e){s(this.#r,e)}#i=e({id:null});get route(){return t(this.#i)}set route(e){s(this.#i,e)}#a=e({});get state(){return t(this.#a)}set state(e){s(this.#a,e)}#o=e(-1);get status(){return t(this.#o)}set status(e){s(this.#o,e)}#s=e(new URL(ut));get url(){return t(this.#s)}set url(e){s(this.#s,e)}},j=new class{#e=e(null);get current(){return t(this.#e)}set current(e){s(this.#e,e)}},ct=new class{#e=e(!1);get current(){return t(this.#e)}set current(e){s(this.#e,e)}},Ce.v=()=>ct.current=!0);function dt(e){Object.assign(A,e)}var ft=`/__data.json`,pt=`.html__data.json`;function mt(e){return e.endsWith(`.html`)?e.replace(/\.html$/,pt):e.replace(/\/$/,``)+ft}async function*ht(e){let t=!1,n=``,r=new TextDecoder;for(;;){let i=n.indexOf(`
|
|
3
|
+
`);for(;i!==-1;){let e=n.slice(0,i).trim();n=n.slice(i+1),e&&(yield JSON.parse(e)),i=n.indexOf(`
|
|
4
|
+
`)}if(t){let e=n.trim();e&&(yield JSON.parse(e));return}let a=await e.read();t=a.done,a.value&&(n+=r.decode(a.value,{stream:!0})),t&&(n+=r.decode())}}var{onMount:gt,tick:_t}=o,vt=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:n(null),updated:we()};function yt(e){N[e]=D()}function bt(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function xt(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(S||`/`);e&&await e.update()}}var St,Ct,wt,L,Tt,R,Et=[],Dt=[],z=null;function B(){z?.fork?.then(e=>e?.discard()),z=null}var Ot=new Map,kt=new Set,At=new Set,V=new Set,H={branch:[],error:null,url:null,nav:null},jt=!1,Mt=!1,Nt=!0,U=!1,W=!1,Pt=!1,G=!1,K,q,J,Y,X=new Set,Ft,It=new Map,Lt=new Map;async function Rt(e,t,n){globalThis.__sveltekit_16i0po3&&(globalThis.__sveltekit_16i0po3.query,globalThis.__sveltekit_16i0po3.prerender),document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),St=ce(e),L=document.documentElement,Tt=t,Ct=e.nodes[0],wt=e.nodes[1],Ct(),wt(),q=history.state?.[C],J=history.state?.[w],q||(q=J=Date.now(),history.replaceState({...history.state,[C]:q,[w]:J},``));let r=N[q];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await bn(Tt,n)):(await Q({type:`enter`,url:ge(R.hash?Dn(new URL(location.href)):location.href),replace_state:!0}),i()),yn()}async function zt(e=!0,t=!0){if(await(Ft||=Promise.resolve()),!Ft)return;Ft=null;let n=Y={},r=await an(H.url,!0);B();let i=new Map;if(G){for(let e of It.values())for(let{resource:t}of e.values())t.refresh();for(let[e,t]of Lt)for(let[n,{resource:r}]of t){let t=k(e,n),a=r.reconnect();a.catch(h),i.set(t,a)}}if(e){let e=A.state,i=r&&await en(r);if(!i||n!==Y)return;if(i.type===`redirect`)return Wt(new URL(i.location,H.url).href,{replaceState:!0},1,n);t||(i.props.page.state=e),dt(i.props.page),H={...i.state,nav:H.nav},Bt(),K.$set(i.props)}else Bt();let a=[];for(let e of It.values())for(let{resource:t}of e.values())a.push(t);for(let[e,t]of Lt)for(let n of t.keys()){let t=k(e,n),r=i.get(t);r&&a.push(r)}await Promise.all(a).catch(h)}function Bt(){Et.length=0,G=!1}function Vt(e){Dt.some(e=>e?.snapshot)&&(P[e]=Dt.map(e=>e?.snapshot?.capture()))}function Ht(e){P[e]?.forEach((e,t)=>{Dt[t]?.snapshot?.restore(e)})}function Ut(){yt(q),ue(me,N),Vt(J),ue(pe,P)}async function Wt(e,t,n,r){let a,o;t.invalidateAll&&B(),await Q({type:`goto`,url:ge(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){G=!0,a=new Set;for(let[e,t]of It)for(let n of t.keys())a.add(k(e,n));o=new Set;for(let[e,t]of Lt)for(let n of t.keys())o.add(k(e,n))}t.invalidate&&t.invalidate.forEach(hn)}}),t.invalidateAll&&i().then(i).then(()=>{for(let[e,t]of It)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.refresh();for(let[e,t]of Lt)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function Gt(e){if(e.id!==z?.id){B();let t={};X.add(t),z={id:e.id,token:t,promise:en({...e,preload:t}).then(e=>(X.delete(t),e.type===`loaded`&&e.state.error&&B(),e)),fork:null}}return z.promise}async function Kt(e){let t=(await an(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function qt(e,t,n){let r={params:H.params,route:{id:H.route?.id??null},url:new URL(location.href)};if(H={...e.state,nav:r},dt(e.props.page),K=new R.root({target:t,props:{...e.props,stores:F,components:Dt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ht(J),n){let e={from:null,to:{...r,scroll:N[q]??D()},willUnload:!1,type:`enter`,complete:Promise.resolve()};V.forEach(t=>t(e))}Mt=!0}async function Z({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(S&&(e.pathname===S||e.pathname===S+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:rt(n).map(e=>e.node.component),page:En(A)}};s!==void 0&&(l.props.form=s);let u={},f=!A,p=0;for(let e=0;e<Math.max(n.length,H.branch.length);e+=1){let t=n[e],r=H.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!H.url||e.href!==H.url.href||H.error!==a||s!==void 0&&s!==A.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:A.data}),l}async function Jt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function Yt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:Mt?b(r,i.href,t):y(r,t)}}function Xt(e,t,n,r,i,a){if(G)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==H.params[e])return!0;for(let e of i.dependencies)if(Et.some(t=>t(new URL(e))))return!0;return!1}function Zt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Qt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function $t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:En(A),constructors:[]}}}async function en({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(z?.id===e)return X.delete(z.token),z.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=null,p=H.url?e!==sn(H.url):!1,m=H.route?i.id!==H.route.id:!1,ee=Qt(H.url,n),g=!1;{let t=d.map((e,t)=>{let n=H.branch[t],i=!!e?.[0]&&(n?.loader!==e[1]||Xt(g,m,p,ee,n.server?.uses,r));return i&&(g=!0),i});if(t.some(Boolean)){try{f=await xn(n,t)}catch(t){let o=await $(t,{url:n,params:r,route:{id:e}});return X.has(a)?$t({error:o,url:n,params:r,route:i}):nn({status:ot(t),error:o,url:n,route:i})}if(f.type===`redirect`)return f}}let _=f?.nodes,v=!1,y=d.map(async(e,t)=>{if(!e)return;let a=H.branch[t],o=_?.[t];if((!o||o.type===`skip`)&&e[1]===a?.loader&&!Xt(v,m,p,ee,a.universal?.uses,r))return a;if(v=!0,o?.type===`error`)throw o;return Jt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await y[n])?.data);return e},server_data_node:Zt(o===void 0&&e[0]?{type:`skip`}:o??null,e[0]?a?.server:void 0)})});for(let e of y)e.catch(h);let b=[];for(let e=0;e<d.length;e+=1)if(d[e])try{b.push(await y[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(X.has(a))return $t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ot(t),u;if(_?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await xt(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await tn(e,b,o);return d?Z({url:n,params:r,branch:b.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await ln(n,{id:i.id},u,s)}else b.push(void 0);return Z({url:n,params:r,branch:b,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function tn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function nn({status:e,error:t,url:n,route:r}){let i={},a=null;if(R.server_loads[0]===0)try{let e=await xn(n,[!0]);if(e.type!==`data`||e.nodes[0]&&e.nodes[0].type!==`data`)throw 0;a=e.nodes[0]??null}catch{(n.origin!==E||n.pathname!==location.pathname||jt)&&await I(n)}try{return Z({url:n,params:i,branch:[await Jt({loader:Ct,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Zt(a)}),{node:await wt(),loader:wt,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return Wt(new URL(e.location,location.href),{},0);throw e}}async function rn(e){let t=e.href;if(Ot.has(t))return Ot.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Yt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();Ot.set(t,r),n=await r}catch{Ot.delete(t);return}return n}async function an(e,t){if(e&&!Te(e,S,R.hash)){let n=await rn(e);if(!n)return;let r=on(n);for(let n of St){let i=n.exec(r);if(i)return{id:sn(e),invalidating:t,route:n,params:p(i),url:e}}}}function on(e){return f(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(S.length))||`/`}function sn(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function cn({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Tn(H,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return U||kt.forEach(e=>e(c)),o?null:s}async function Q({type:e,url:t,popped:n,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=h,block:p=h,event:m}){let ee=Y;Y=d;let g=await an(t,!1),_=e===`enter`?Tn(H,g,t,e):cn({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Y===d&&(Y=ee);return}let v=q,y=J;f(),U=!0,Mt&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let b=g&&await en(g);if(!b){if(Te(t,S,R.hash))return await I(t,s);b=await ln(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=g?.url||t,Y!==d)return _.reject(Error(`navigation aborted`)),!1;if(b.type===`redirect`){if(l<20){await Q({type:e,url:new URL(b.location,t),popped:n,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}b=await nn({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else b.props.page.status>=400&&await F.updated.check()&&(await xt(),await I(t,s));if(Bt(),yt(v),Vt(y),b.props.page.url.pathname!==t.pathname&&(t.pathname=b.props.page.url.pathname),c=n?n.state:c,!n){let e=+!s,n={[C]:q+=e,[w]:J+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||bt(q,J)}let x=g&&z?.id===g.id?z.fork:null;z?.fork&&!x&&B(),z=null,b.props.page.state=c;let te;if(Mt){let e=(await Promise.all(Array.from(At,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{V.delete(e)})}e.push(t),e.forEach(e=>{V.add(e)})}let n=_.navigation.to;H={...b.state,nav:{params:n.params,route:n.route,url:n.url}},b.props.page&&(b.props.page.url=t);let i=x&&await x;i?te=i.commit():(M=null,K.$set(b.props),M&&Object.assign(b.props.page,M),dt(b.props.page),te=r?.()),Pt=!0}else await qt(b,Tt,!1);let{activeElement:ne}=document;if(await te,await i(),await i(),Y!==d)return _.reject(Error(`navigation aborted`)),!1;b.props.page&&M&&Object.assign(b.props.page,M);let re=null;if(Nt){let e=n?n.scroll:o?D():null;e?scrollTo(e.x,e.y):(re=t.hash&&document.getElementById(On(t)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!a&&!ie&&wn(t,!re),Nt=!0,U=!1,e===`popstate`&&Ht(J),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=D()),V.forEach(e=>e(_.navigation)),F.navigating.set(j.current=null)}async function ln(e,t,n,r,i){return e.origin===E&&e.pathname===location.pathname&&!jt?await nn({status:r,error:n,url:e,route:t}):await I(e,i)}function un(){let e,t={element:void 0,href:void 0},n;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,T.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],T.tap)}L.addEventListener(`mousedown`,r),L.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Kt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=ye(e,L),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=be(i,S,R.hash);if(s||c)return;let l=xe(i),u=o&&sn(H.url)===sn(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=T.tap;let e=await an(o,!1);if(!e)return;Gt(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,Kt(o))}function o(){i.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:r}=be(e,S,R.hash);if(n||r)continue;let a=xe(e);a.reload||(a.preload_code===T.viewport&&i.observe(e),a.preload_code===T.eager&&Kt(t))}}V.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ot(e),r=st(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function dn(e,t){gt(()=>(e.add(t),()=>{e.delete(t)}))}function fn(e){dn(V,e)}function pn(e){dn(kt,e)}function mn(e,t={}){return e=new URL(ge(e)),e.origin===E?Wt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function hn(e){if(typeof e==`function`)Et.push(e);else{let{href:t}=new URL(e,location.href);Et.push(e=>e.href===t)}}function gn(){return G=!0,zt()}async function _n(e){e.type===`error`?await vn(e.error,e.status):e.type===`redirect`?await Wt(e.location,{invalidateAll:!0},0):(A.form=e.data,A.status=e.status,K.$set({form:null,page:En(A)}),await _t(),K.$set({form:e.data}),e.type===`success`&&wn(A.url))}async function vn(e,t=500){let n=new URL(location.href),{branch:r,route:i}=H;if(!i)return;let a=await tn(H.branch.length,r,i.errors);if(a){let o=await Z({url:n,params:H.params,branch:r.slice(0,a.idx).concat(a.node),status:t,error:e,route:i});H={...o.state,nav:H.nav},K.$set(o.props),dt(o.props.page),_t().then(()=>wn(H.url))}}function yn(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(Ut(),!U){let e=Tn(H,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};kt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&Ut()}),!navigator.connection?.saveData&&!/2g/.test(navigator.connection?.effectiveType)&&un(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=ye(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=be(n,S,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=xe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){cn({url:r,type:`link`,event:t})?U=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=H.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(W=!0,yt(q),e(r),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Te(r,S,!1))return;let i=e.target,a=xe(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Cn)if(t.state?.[`sveltekit:history`]){let n=t.state[C];if(Y={},n===q)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[w],s=H.url?m(location)===m(H.url):!1;if(o===J&&(Pt||s)){i!==A.state&&(A.state=i),e(a),N[q]=D(),r&&scrollTo(r.x,r.y),q=n;return}let c=n-q;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{q=n,J=o},block:()=>{history.go(-c)},nav_token:Y,event:t})}else W||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{W&&(W=!1,history.replaceState({...history.state,[C]:++q,[w]:J},``,location.href))});for(let e of document.querySelectorAll(`link`))vt.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){H.url=A.url=e,F.page.set(En(A)),F.page.notify()}}async function bn(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){jt=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await an(u,!1)||{}),d=St.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Sn(r.uses)),Jt({loader:R.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Zt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await Z({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await nn({status:ot(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await qt(f,e,p)}async function xn(e,t){let n=new URL(e);n.pathname=mt(e.pathname),e.pathname.endsWith(`/`)&&n.searchParams.append(at,`1`),n.searchParams.append(it,t.map(e=>e?`1`:`0`).join(``));let r=await(0,window.fetch)(n.href,{});if(!r.ok){let e;throw r.headers.get(`content-type`)?.includes(`application/json`)?e=await r.json():r.status===404?e=`Not Found`:r.status===500&&(e=`Internal Error`),new c(r.status,e)}return new Promise(async e=>{let t=new Map,n=r.body.getReader();function i(e){return et(e,{...R.decoders,Promise:e=>new Promise((n,r)=>{t.set(e,{fulfil:n,reject:r})})})}for await(let r of ht(n)){if(r.type===`redirect`)return e(r);if(r.type===`data`)r.nodes?.forEach(e=>{e?.type===`data`&&(e.uses=Sn(e.uses),e.data=i(e.data))}),e(r);else if(r.type===`chunk`){let{id:e,data:n,error:a}=r,o=t.get(e);t.delete(e),a?o.reject(i(a)):o.fulfil(i(n))}}})}function Sn(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Cn=!1;function wn(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=On(e);if(n&&document.getElementById(n)){let{x:r,y:i}=D();setTimeout(()=>{let a=history.state;Cn=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Cn=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Tn(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function En(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Dn(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function On(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{h as C,Ee as S,Me as _,mn as a,Fe as b,F as c,ct as d,$e as f,Ne as g,Ie as h,pn as i,j as l,ke as m,R as n,gn as o,Ze as p,_n as r,Rt as s,fn as t,A as u,Ae as v,He as x,Re as y};
|
|
Binary file
|
|
Binary file
|