lula2 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/_app/immutable/chunks/AMsv4DTs.js +1 -0
  2. package/dist/_app/immutable/chunks/B8sFn9qB.js +2 -0
  3. package/dist/_app/immutable/chunks/{DFJv6ofC.js → CBRQrpza.js} +1 -1
  4. package/dist/_app/immutable/chunks/CgOk0Ct0.js +3 -0
  5. package/dist/_app/immutable/chunks/{DknPZycG.js → D6AXzSy_.js} +1 -1
  6. package/dist/_app/immutable/chunks/{vNis_B2V.js → DL7cUWpq.js} +1 -1
  7. package/dist/_app/immutable/chunks/{BkFSJLu9.js → DPYPcVpy.js} +1 -1
  8. package/dist/_app/immutable/chunks/{FmbgKjwB.js → DTNJlR4l.js} +34 -34
  9. package/dist/_app/immutable/chunks/{CzIDw1HQ.js → d2wclEM1.js} +2 -2
  10. package/dist/_app/immutable/entry/{app.O-mlZZ4v.js → app.DCeR7c2L.js} +2 -2
  11. package/dist/_app/immutable/entry/start.Ca2qbK08.js +1 -0
  12. package/dist/_app/immutable/nodes/{0.Cyh-M75F.js → 0.B2WQMmWy.js} +1 -1
  13. package/dist/_app/immutable/nodes/{1.DuwFpHMY.js → 1.DZuIkAUv.js} +1 -1
  14. package/dist/_app/immutable/nodes/{2.DVgkkGMI.js → 2.CaMZrOwr.js} +1 -1
  15. package/dist/_app/immutable/nodes/{3.BeLDpIz-.js → 3.BCB0DxLi.js} +1 -1
  16. package/dist/_app/immutable/nodes/{4.De5bLbFo.js → 4.BlOrY_m9.js} +1 -1
  17. package/dist/_app/version.json +1 -1
  18. package/dist/cli/commands/ui.js +12 -7
  19. package/dist/cli/server/index.js +12 -7
  20. package/dist/cli/server/server.js +12 -7
  21. package/dist/cli/server/serverState.js +8 -5
  22. package/dist/cli/server/websocketServer.js +12 -7
  23. package/dist/index.html +10 -10
  24. package/dist/index.js +12 -7
  25. package/package.json +2 -2
  26. package/src/lib/components/controls/DynamicControlEditor.svelte +2 -2
  27. package/src/lib/components/controls/MappingCard.svelte +1 -1
  28. package/src/lib/components/controls/MappingForm.svelte +11 -0
  29. package/src/lib/components/controls/tabs/MappingsTab.svelte +17 -3
  30. package/src/stores/compliance.ts +1 -1
  31. package/dist/_app/immutable/chunks/BhjtS45v.js +0 -2
  32. package/dist/_app/immutable/chunks/BpWAjoEX.js +0 -3
  33. package/dist/_app/immutable/chunks/DwdPeWTx.js +0 -1
  34. package/dist/_app/immutable/entry/start.QE7BJOE3.js +0 -1
@@ -184,7 +184,7 @@ var init_fileStore = __esm({
184
184
  if (!parsed.id) {
185
185
  try {
186
186
  parsed.id = getControlId(parsed, this.baseDir);
187
- } catch (error) {
187
+ } catch {
188
188
  parsed.id = controlId;
189
189
  }
190
190
  }
@@ -211,7 +211,7 @@ var init_fileStore = __esm({
211
211
  if (!parsed.id) {
212
212
  try {
213
213
  parsed.id = getControlId(parsed, this.baseDir);
214
- } catch (error) {
214
+ } catch {
215
215
  parsed.id = controlId;
216
216
  }
217
217
  }
@@ -429,14 +429,16 @@ var init_fileStore = __esm({
429
429
  /**
430
430
  * Delete a single mapping
431
431
  */
432
- async deleteMapping(uuid) {
432
+ async deleteMapping(compositeKey) {
433
433
  const mappingFiles = this.getAllMappingFiles();
434
434
  for (const file of mappingFiles) {
435
435
  try {
436
436
  const content = readFileSync2(file, "utf8");
437
437
  let mappings = yaml2.load(content) || [];
438
438
  const originalLength = mappings.length;
439
- mappings = mappings.filter((m) => m.uuid !== uuid);
439
+ mappings = mappings.filter((m) => {
440
+ return `${m.control_id}:${m.uuid}` !== compositeKey;
441
+ });
440
442
  if (mappings.length < originalLength) {
441
443
  if (mappings.length === 0) {
442
444
  unlinkSync(file);
@@ -1238,7 +1240,8 @@ async function loadAllData() {
1238
1240
  debug(`Loaded ${controls.length} controls from individual files`);
1239
1241
  const mappings = await state.fileStore.loadMappings();
1240
1242
  for (const mapping of mappings) {
1241
- state.mappingsCache.set(mapping.uuid, mapping);
1243
+ const compositeKey = `${mapping.control_id}:${mapping.uuid}`;
1244
+ state.mappingsCache.set(compositeKey, mapping);
1242
1245
  addMappingToIndexes(mapping);
1243
1246
  }
1244
1247
  debug(`Loaded ${mappings.length} mappings`);
@@ -2143,7 +2146,8 @@ var WebSocketManager = class {
2143
2146
  mapping.uuid = crypto2.randomUUID();
2144
2147
  }
2145
2148
  await state.fileStore.saveMapping(mapping);
2146
- state.mappingsCache.set(mapping.uuid, mapping);
2149
+ const compositeKey = `${mapping.control_id}:${mapping.uuid}`;
2150
+ state.mappingsCache.set(compositeKey, mapping);
2147
2151
  const family = mapping.control_id.split("-")[0];
2148
2152
  if (!state.mappingsByFamily.has(family)) {
2149
2153
  state.mappingsByFamily.set(family, /* @__PURE__ */ new Set());
@@ -2168,7 +2172,8 @@ var WebSocketManager = class {
2168
2172
  if (payload && payload.uuid) {
2169
2173
  const mapping = payload;
2170
2174
  await state.fileStore.saveMapping(mapping);
2171
- state.mappingsCache.set(mapping.uuid, mapping);
2175
+ const compositeKey = `${mapping.control_id}:${mapping.uuid}`;
2176
+ state.mappingsCache.set(compositeKey, mapping);
2172
2177
  ws.send(
2173
2178
  JSON.stringify({
2174
2179
  type: "mapping-updated",
package/dist/index.html CHANGED
@@ -6,28 +6,28 @@
6
6
  <link rel="icon" href="/lula.png" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1" />
8
8
 
9
- <link rel="modulepreload" href="/_app/immutable/entry/start.QE7BJOE3.js">
10
- <link rel="modulepreload" href="/_app/immutable/chunks/BpWAjoEX.js">
11
- <link rel="modulepreload" href="/_app/immutable/chunks/BhjtS45v.js">
12
- <link rel="modulepreload" href="/_app/immutable/entry/app.O-mlZZ4v.js">
9
+ <link rel="modulepreload" href="/_app/immutable/entry/start.Ca2qbK08.js">
10
+ <link rel="modulepreload" href="/_app/immutable/chunks/CgOk0Ct0.js">
11
+ <link rel="modulepreload" href="/_app/immutable/chunks/B8sFn9qB.js">
12
+ <link rel="modulepreload" href="/_app/immutable/entry/app.DCeR7c2L.js">
13
13
  <link rel="modulepreload" href="/_app/immutable/chunks/DsnmJJEf.js">
14
- <link rel="modulepreload" href="/_app/immutable/chunks/DwdPeWTx.js">
15
- <link rel="modulepreload" href="/_app/immutable/chunks/vNis_B2V.js">
16
- <link rel="modulepreload" href="/_app/immutable/chunks/BkFSJLu9.js">
14
+ <link rel="modulepreload" href="/_app/immutable/chunks/AMsv4DTs.js">
15
+ <link rel="modulepreload" href="/_app/immutable/chunks/DL7cUWpq.js">
16
+ <link rel="modulepreload" href="/_app/immutable/chunks/DPYPcVpy.js">
17
17
  </head>
18
18
  <body data-sveltekit-preload-data="hover">
19
19
  <div style="display: contents">
20
20
  <script>
21
21
  {
22
- __sveltekit_17eycqg = {
22
+ __sveltekit_1tcob8e = {
23
23
  base: ""
24
24
  };
25
25
 
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("/_app/immutable/entry/start.QE7BJOE3.js"),
30
- import("/_app/immutable/entry/app.O-mlZZ4v.js")
29
+ import("/_app/immutable/entry/start.Ca2qbK08.js"),
30
+ import("/_app/immutable/entry/app.DCeR7c2L.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
package/dist/index.js CHANGED
@@ -1756,7 +1756,7 @@ var init_fileStore = __esm({
1756
1756
  if (!parsed.id) {
1757
1757
  try {
1758
1758
  parsed.id = getControlId(parsed, this.baseDir);
1759
- } catch (error) {
1759
+ } catch {
1760
1760
  parsed.id = controlId;
1761
1761
  }
1762
1762
  }
@@ -1783,7 +1783,7 @@ var init_fileStore = __esm({
1783
1783
  if (!parsed.id) {
1784
1784
  try {
1785
1785
  parsed.id = getControlId(parsed, this.baseDir);
1786
- } catch (error) {
1786
+ } catch {
1787
1787
  parsed.id = controlId;
1788
1788
  }
1789
1789
  }
@@ -2001,14 +2001,16 @@ var init_fileStore = __esm({
2001
2001
  /**
2002
2002
  * Delete a single mapping
2003
2003
  */
2004
- async deleteMapping(uuid) {
2004
+ async deleteMapping(compositeKey) {
2005
2005
  const mappingFiles = this.getAllMappingFiles();
2006
2006
  for (const file of mappingFiles) {
2007
2007
  try {
2008
2008
  const content = readFileSync2(file, "utf8");
2009
2009
  let mappings = yaml2.load(content) || [];
2010
2010
  const originalLength = mappings.length;
2011
- mappings = mappings.filter((m) => m.uuid !== uuid);
2011
+ mappings = mappings.filter((m) => {
2012
+ return `${m.control_id}:${m.uuid}` !== compositeKey;
2013
+ });
2012
2014
  if (mappings.length < originalLength) {
2013
2015
  if (mappings.length === 0) {
2014
2016
  unlinkSync(file);
@@ -2810,7 +2812,8 @@ async function loadAllData() {
2810
2812
  debug(`Loaded ${controls.length} controls from individual files`);
2811
2813
  const mappings = await state.fileStore.loadMappings();
2812
2814
  for (const mapping of mappings) {
2813
- state.mappingsCache.set(mapping.uuid, mapping);
2815
+ const compositeKey = `${mapping.control_id}:${mapping.uuid}`;
2816
+ state.mappingsCache.set(compositeKey, mapping);
2814
2817
  addMappingToIndexes(mapping);
2815
2818
  }
2816
2819
  debug(`Loaded ${mappings.length} mappings`);
@@ -4590,7 +4593,8 @@ var WebSocketManager = class {
4590
4593
  mapping.uuid = crypto2.randomUUID();
4591
4594
  }
4592
4595
  await state.fileStore.saveMapping(mapping);
4593
- state.mappingsCache.set(mapping.uuid, mapping);
4596
+ const compositeKey = `${mapping.control_id}:${mapping.uuid}`;
4597
+ state.mappingsCache.set(compositeKey, mapping);
4594
4598
  const family = mapping.control_id.split("-")[0];
4595
4599
  if (!state.mappingsByFamily.has(family)) {
4596
4600
  state.mappingsByFamily.set(family, /* @__PURE__ */ new Set());
@@ -4615,7 +4619,8 @@ var WebSocketManager = class {
4615
4619
  if (payload && payload.uuid) {
4616
4620
  const mapping = payload;
4617
4621
  await state.fileStore.saveMapping(mapping);
4618
- state.mappingsCache.set(mapping.uuid, mapping);
4622
+ const compositeKey = `${mapping.control_id}:${mapping.uuid}`;
4623
+ state.mappingsCache.set(compositeKey, mapping);
4619
4624
  ws.send(
4620
4625
  JSON.stringify({
4621
4626
  type: "mapping-updated",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lula2",
3
- "version": "0.3.5",
3
+ "version": "0.4.0",
4
4
  "description": "A tool for managing compliance as code in your GitHub repositories.",
5
5
  "bin": {
6
6
  "lula2": "./dist/lula2"
@@ -98,7 +98,7 @@
98
98
  "esbuild": "^0.25.9",
99
99
  "eslint": "^9.35.0",
100
100
  "eslint-config-prettier": "^10.1.8",
101
- "eslint-plugin-jsdoc": "^59.0.2",
101
+ "eslint-plugin-jsdoc": "^60.1.0",
102
102
  "eslint-plugin-svelte": "^3.12.2",
103
103
  "globals": "^16.3.0",
104
104
  "husky": "^9.1.7",
@@ -221,10 +221,10 @@
221
221
  >
222
222
  <div class="flex justify-between items-start mb-2">
223
223
  <span class="text-sm font-medium text-gray-900 dark:text-white"
224
- >@lula {mapping.uuid}</span
224
+ >{mapping.uuid}</span
225
225
  >
226
226
  <button
227
- onclick={() => navigator.clipboard.writeText(`@lula ${mapping.uuid}`)}
227
+ onclick={() => navigator.clipboard.writeText(`${mapping.uuid}`)}
228
228
  class="text-xs text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300"
229
229
  >
230
230
  Copy UUID
@@ -15,7 +15,7 @@
15
15
  let { mapping, onEdit, onDelete, showActions = false }: Props = $props();
16
16
 
17
17
  function handleCopyUuid() {
18
- navigator.clipboard.writeText(`@lula ${mapping.uuid}`);
18
+ navigator.clipboard.writeText(`${mapping.uuid}`);
19
19
  }
20
20
 
21
21
  function handleEdit() {
@@ -7,6 +7,7 @@
7
7
  import FormField from '../forms/FormField.svelte';
8
8
 
9
9
  interface MappingFormData {
10
+ uuid: string;
10
11
  justification: string;
11
12
  status: 'planned' | 'implemented' | 'verified';
12
13
  source_entries: SourceEntry[];
@@ -29,6 +30,7 @@
29
30
  }: Props = $props();
30
31
 
31
32
  let formData = $state<MappingFormData>({
33
+ uuid: initialData.uuid || '',
32
34
  justification: initialData.justification || '',
33
35
  status: initialData.status || 'planned',
34
36
  source_entries: initialData.source_entries || []
@@ -49,6 +51,7 @@
49
51
  function handleCancel() {
50
52
  // Reset form
51
53
  formData = {
54
+ uuid: initialData.uuid || '',
52
55
  justification: initialData.justification || '',
53
56
  status: initialData.status || 'planned',
54
57
  source_entries: initialData.source_entries || []
@@ -81,6 +84,14 @@
81
84
  <div class="space-y-8">
82
85
  <!-- Main form fields -->
83
86
  <div class="grid grid-cols-1 gap-8">
87
+ <FormField
88
+ id="mapping-uuid"
89
+ label="UUID"
90
+ type="text"
91
+ bind:value={formData.uuid}
92
+ placeholder="Enter mapping UUID (leave empty to auto-generate)"
93
+ />
94
+
84
95
  <FormField
85
96
  id="mapping-justification"
86
97
  label="Justification"
@@ -21,6 +21,7 @@
21
21
 
22
22
  // Form state
23
23
  let newMappingData = $state({
24
+ uuid: '',
24
25
  justification: '',
25
26
  status: 'planned' as 'planned' | 'implemented' | 'verified',
26
27
  source_entries: [] as { location: string; shasum?: string }[]
@@ -34,7 +35,7 @@
34
35
  justification: data.justification,
35
36
  status: data.status,
36
37
  source_entries: data.source_entries,
37
- uuid: '' // Will be generated by backend
38
+ uuid: data.uuid || '' // Use the UUID from form or empty for auto-generation
38
39
  };
39
40
 
40
41
  await wsClient.createMapping(mappingData);
@@ -50,6 +51,7 @@
50
51
 
51
52
  function resetMappingForm() {
52
53
  newMappingData = {
54
+ uuid: '',
53
55
  justification: '',
54
56
  status: 'planned',
55
57
  source_entries: []
@@ -62,6 +64,7 @@
62
64
  editingMapping = { ...mapping };
63
65
  showNewMappingForm = true;
64
66
  newMappingData = {
67
+ uuid: mapping.uuid,
65
68
  justification: mapping.justification,
66
69
  status: mapping.status,
67
70
  source_entries: mapping.source_entries || []
@@ -74,12 +77,22 @@
74
77
  try {
75
78
  const updatedMapping = {
76
79
  ...editingMapping,
80
+ uuid: data.uuid || editingMapping.uuid, // Use form UUID or fallback to original
77
81
  justification: data.justification,
78
82
  status: data.status,
79
83
  source_entries: data.source_entries
80
84
  };
81
85
 
82
- await wsClient.updateMapping(updatedMapping);
86
+ const uuidChanged = updatedMapping.uuid !== editingMapping.uuid;
87
+
88
+ if (uuidChanged) {
89
+ const compositeId = `${control.id}:${editingMapping.uuid}`;
90
+ await wsClient.deleteMapping(compositeId);
91
+ await wsClient.createMapping(updatedMapping);
92
+ } else {
93
+ await wsClient.updateMapping(updatedMapping);
94
+ }
95
+
83
96
  resetMappingForm();
84
97
  } catch (error) {
85
98
  console.error('Failed to update mapping:', error);
@@ -88,7 +101,8 @@
88
101
 
89
102
  async function handleDeleteMapping(uuid: string) {
90
103
  try {
91
- await wsClient.deleteMapping(uuid);
104
+ const compositeId = `${control.id}:${uuid}`;
105
+ await wsClient.deleteMapping(compositeId);
92
106
  } catch (error) {
93
107
  console.error('Failed to delete mapping:', error);
94
108
  }
@@ -61,7 +61,7 @@ export const activeFilters = writable<FilterCondition[]>([]);
61
61
  // All server operations now go through WebSocket
62
62
  export const complianceStore = {
63
63
  setSearchTerm(term: string) {
64
- searchTerm.set(term);
64
+ searchTerm.set(term || '');
65
65
  },
66
66
 
67
67
  setSelectedControl(control: Control | null) {
@@ -1,2 +0,0 @@
1
- var lt=Array.isArray,bn=Array.prototype.indexOf,wn=Array.from,Je=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,En=Object.prototype,Tn=Array.prototype,Nt=Object.getPrototypeOf,bt=Object.isExtensible;function Br(e){return typeof e=="function"}const ne=()=>{};function Hr(e){return e()}function ut(e){for(var t=0;t<e.length;t++)e[t]()}function An(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Ur(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const O=2,ft=4,Be=8,be=16,H=32,ue=64,ot=128,N=256,Ve=512,m=1024,D=2048,U=4096,J=8192,we=16384,ct=32768,He=65536,wt=1<<17,xn=1<<18,me=1<<19,Ct=1<<20,Qe=1<<21,_t=1<<22,re=1<<23,se=Symbol("$state"),$r=Symbol("legacy props"),Wr=Symbol(""),dt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ue=3,Re=8;function Ee(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Sn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function On(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Nn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Cn(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function In(){throw new Error("https://svelte.dev/e/hydration_failed")}function It(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Kr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Dn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ln(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const zr=1,Xr=2,Zr=4,Jr=8,Qr=16,es=1,ts=2,ns=4,rs=8,ss=16,is=4,Fn=1,jn=2,Pt="[",Dt="[!",Mt="]",de={},E=Symbol(),as="http://www.w3.org/1999/xhtml",ls="@attach";function $e(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function us(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function qn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let b=!1;function je(e){b=e}let y;function M(e){if(e===null)throw $e(),de;return y=e}function We(){return M($(y))}function fs(e){if(b){if($(y)!==null)throw $e(),de;y=e}}function Vn(e=1){if(b){for(var t=e,n=y;t--;)n=$(n);y=n}}function Yn(){for(var e=0,t=y;;){if(t.nodeType===Re){var n=t.data;if(n===Mt){if(e===0)return t;e-=1}else(n===Pt||n===Dt)&&(e+=1)}var r=$(t);t.remove(),t=r}}function os(e){if(!e||e.nodeType!==Re)throw $e(),de;return e.data}function Lt(e){return e===this.v}function Ft(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jt(e){return!Ft(e,this.v)}let Ie=!1;function cs(){Ie=!0}let g=null;function ve(e){g=e}function Bn(e){return Ge().get(e)}function Hn(e,t){return Ge().set(e,t),t}function Un(e){return Ge().has(e)}function $n(){return Ge()}function Wn(e,t=!1,n){g={p:g,c:null,e:null,s:e,x:null,l:Ie&&!t?{s:null,u:null,$:[]}:null}}function Gn(e){var t=g,n=t.e;if(n!==null){t.e=null;for(var r of n)en(r)}return g=t.p,{}}function Pe(){return!Ie||g!==null&&g.l===null}function Ge(e){return g===null&&Ee(),g.c??=new Map(Kn(g)||void 0)}function Kn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}const zn=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let z=[],pe=[];function qt(){var e=z;z=[],ut(e)}function Vt(){var e=pe;pe=[],ut(e)}function Xn(){return z.length>0||pe.length>0}function De(e){if(z.length===0&&!ke){var t=z;queueMicrotask(()=>{t===z&&qt()})}z.push(e)}function _s(e){pe.length===0&&zn(Vt),pe.push(e)}function Zn(){z.length>0&&qt(),pe.length>0&&Vt()}const Jn=new WeakMap;function Yt(e){var t=p;if(t===null)return v.f|=re,e;if((t.f&ct)===0){if((t.f&ot)===0)throw!t.parent&&e instanceof Error&&Bt(e),e;t.b.error(e)}else ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&ot)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Bt(e),e}function Bt(e){const t=Jn.get(e);t&&(Je(e,"message",{value:t.message}),Je(e,"stack",{value:t.stack}))}const Xe=new Set;let w=null,Ze=null,et=new Set,le=[],Ke=null,tt=!1,ke=!1;class L{current=new Map;#i=new Map;#t=new Set;#f=0;#a=null;#c=!1;#s=[];#n=[];#e=[];#r=[];#l=[];#_=[];#o=[];skipped_effects=new Set;process(t){le=[],Ze=null;for(const s of t)this.#d(s);if(this.#s.length===0&&this.#f===0){this.#h();var n=this.#e,r=this.#r;this.#e=[],this.#r=[],this.#l=[],Ze=w,w=null,mt(n),mt(r),w===null?w=this:Xe.delete(this),this.#a?.resolve()}else this.#u(this.#e),this.#u(this.#r),this.#u(this.#l);for(const s of this.#s)ae(s);for(const s of this.#n)ae(s);this.#s=[],this.#n=[]}#d(t){t.f^=m;for(var n=t.first;n!==null;){var r=n.f,s=(r&(H|ue))!==0,i=s&&(r&m)!==0,a=i||(r&J)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(s)n.f^=m;else if((r&ft)!==0)this.#r.push(n);else if((r&m)===0)if((r&_t)!==0){var u=n.b?.is_pending()?this.#n:this.#s;u.push(n)}else Le(n)&&((n.f&be)!==0&&this.#l.push(n),ae(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}}#u(t){for(const n of t)((n.f&D)!==0?this.#_:this.#o).push(n),x(n,m);t.length=0}capture(t,n){this.#i.has(t)||this.#i.set(t,n),this.current.set(t,t.v)}activate(){w=this}deactivate(){w=null,Ze=null;for(const t of et)if(et.delete(t),t(),w!==null)break}neuter(){this.#c=!0}flush(){le.length>0?nt():this.#h(),w===this&&(this.#f===0&&Xe.delete(this),this.deactivate())}#h(){if(!this.#c)for(const t of this.#t)t();this.#t.clear()}increment(){this.#f+=1}decrement(){if(this.#f-=1,this.#f===0){for(const t of this.#_)x(t,D),ye(t);for(const t of this.#o)x(t,U),ye(t);this.#e=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#t.add(t)}settled(){return(this.#a??=An()).promise}static ensure(){if(w===null){const t=w=new L;Xe.add(w),ke||L.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){De(t)}}function Ht(e){var t=ke;ke=!0;try{var n;for(e&&(nt(),n=e());;){if(Zn(),le.length===0&&!Xn()&&(w?.flush(),le.length===0))return Ke=null,n;nt()}}finally{ke=t}}function nt(){var e=he;tt=!0;try{var t=0;for(xt(!0);le.length>0;){var n=L.ensure();if(t++>1e3){var r,s;Qn()}n.process(le),Z.clear()}}finally{tt=!1,xt(e),Ke=null}}function Qn(){try{Nn()}catch(e){ge(e,Ke)}}let te=null;function mt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(we|J))===0&&Le(r)&&(te=[],ae(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?sn(r):r.fn=null),te?.length>0)){Z.clear();for(const s of te)ae(s);te=[]}}te=null}}function ye(e){for(var t=Ke=e;t.parent!==null;){t=t.parent;var n=t.f;if(tt&&t===p&&(n&be)!==0)return;if((n&(ue|H))!==0){if((n&m)===0)return;t.f^=m}}le.push(t)}function er(e){let t=0,n=Me(0),r;return()=>{_r()&&(Y(n),pt(()=>(t===0&&(r=ee(()=>e(()=>Oe(n)))),t+=1,()=>{De(()=>{t-=1,t===0&&(r?.(),r=void 0,Oe(n))})})))}}var tr=He|me|ot;function nr(e,t,n){new rr(e,t,n)}class rr{parent;#i=!1;#t;#f=b?y:null;#a;#c;#s;#n=null;#e=null;#r=null;#l=null;#_=0;#o=0;#d=!1;#u=null;#h=()=>{this.#u&&Ne(this.#u,this.#_)};#y=er(()=>(this.#u=Me(this.#_),()=>{this.#u=null}));constructor(t,n,r){this.#t=t,this.#a=n,this.#c=r,this.parent=p.b,this.#i=!!this.#a.pending,this.#s=tn(()=>{if(p.b=this,b){const s=this.#f;We(),s.nodeType===Re&&s.data===Dt?this.#w():this.#b()}else{try{this.#n=K(()=>r(this.#t))}catch(s){this.error(s)}this.#o>0?this.#p():this.#i=!1}},tr),b&&(this.#t=y)}#b(){try{this.#n=K(()=>this.#c(this.#t))}catch(t){this.error(t)}this.#i=!1}#w(){const t=this.#a.pending;t&&(this.#e=K(()=>t(this.#t)),L.enqueue(()=>{this.#n=this.#v(()=>(L.ensure(),K(()=>this.#c(this.#t)))),this.#o>0?this.#p():(qe(this.#e,()=>{this.#e=null}),this.#i=!1)}))}is_pending(){return this.#i||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#a.pending}#v(t){var n=p,r=v,s=g;j(this.#s),S(this.#s),ve(this.#s.ctx);try{return t()}catch(i){return Yt(i),null}finally{j(n),S(r),ve(s)}}#p(){const t=this.#a.pending;this.#n!==null&&(this.#l=document.createDocumentFragment(),sr(this.#n,this.#l)),this.#e===null&&(this.#e=K(()=>t(this.#t)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#o+=t,this.#o===0&&(this.#i=!1,this.#e&&qe(this.#e,()=>{this.#e=null}),this.#l&&(this.#t.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#_+=t,et.add(this.#h)}get_effect_pending(){return this.#y(),Y(this.#u)}error(t){var n=this.#a.onerror;let r=this.#a.failed;if(this.#d||!n&&!r)throw t;this.#n&&(I(this.#n),this.#n=null),this.#e&&(I(this.#e),this.#e=null),this.#r&&(I(this.#r),this.#r=null),b&&(M(this.#f),Vn(),M(Yn()));var s=!1,i=!1;const a=()=>{if(s){qn();return}s=!0,i&&Ln(),L.ensure(),this.#_=0,this.#r!==null&&qe(this.#r,()=>{this.#r=null}),this.#i=this.has_pending_snippet(),this.#n=this.#v(()=>(this.#d=!1,K(()=>this.#c(this.#t)))),this.#o>0?this.#p():this.#i=!1};var u=v;try{S(null),i=!0,n?.(t,a),i=!1}catch(l){ge(l,this.#s&&this.#s.parent)}finally{S(u)}r&&De(()=>{this.#r=this.#v(()=>{this.#d=!0;try{return K(()=>{r(this.#t,()=>t,()=>a)})}catch(l){return ge(l,this.#s.parent),null}finally{this.#d=!1}})})}}function sr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:$(n);t.append(n),n=s}}function ir(e,t,n){const r=Pe()?ht:ur;if(t.length===0){n(e.map(r));return}var s=w,i=p,a=ar();Promise.all(t.map(u=>lr(u))).then(u=>{s?.activate(),a();try{n([...e.map(r),...u])}catch(l){(i.f&we)===0&&ge(l,i)}s?.deactivate(),Ut()}).catch(u=>{ge(u,i)})}function ar(){var e=p,t=v,n=g,r=w;return function(){j(e),S(t),ve(n),r?.activate()}}function Ut(){j(null),S(null),ve(null)}function ht(e){var t=O|D,n=v!==null&&(v.f&O)!==0?v:null;return p===null||n!==null&&(n.f&N)!==0?t|=N:p.f|=me,{ctx:g,deps:null,effects:null,equals:Lt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??p,ac:null}}function lr(e,t){let n=p;n===null&&Sn();var r=n.b,s=void 0,i=Me(E),a=null,u=!v;return vr(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(c){l=Promise.reject(c)}var f=()=>l;s=a?.then(f,f)??Promise.resolve(l),a=s;var o=w,_=r.is_pending();u&&(r.update_pending_count(1),_||o.increment());const d=(c,h=void 0)=>{a=null,_||o.activate(),h?h!==dt&&(i.f|=re,Ne(i,h)):((i.f&re)!==0&&(i.f^=re),Ne(i,c)),u&&(r.update_pending_count(-1),_||o.decrement()),Ut()};if(s.then(d,c=>d(null,c||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(l=>{function f(o){function _(){o===s?l(i):f(s)}o.then(_,_)}f(s)})}function ds(e){const t=ht(e);return un(t),t}function ur(e){const t=ht(e);return t.equals=jt,t}function $t(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)I(t[n])}}function fr(e){for(var t=e.parent;t!==null;){if((t.f&O)===0)return t;t=t.parent}return null}function vt(e){var t,n=p;j(fr(e));try{$t(e),t=_n(e)}finally{j(n)}return t}function Wt(e){var t=vt(e);if(e.equals(t)||(e.v=t,e.wv=on()),!Te){var n=(X||(e.f&N)!==0)&&e.deps!==null?U:m;x(e,n)}}const Z=new Map;function Me(e,t){var n={f:0,v:e,reactions:null,equals:Lt,rv:0,wv:0};return n}function G(e,t){const n=Me(e);return un(n),n}function hs(e,t=!1,n=!0){const r=Me(e);return t||(r.equals=jt),Ie&&n&&g!==null&&g.l!==null&&(g.l.s??=[]).push(r),r}function vs(e,t){return V(e,ee(()=>Y(e))),t}function V(e,t,n=!1){v!==null&&(!C||(v.f&wt)!==0)&&Pe()&&(v.f&(O|be|_t|wt))!==0&&!B?.includes(e)&&Mn();let r=n?Ae(t):t;return Ne(e,r)}function Ne(e,t){if(!e.equals(t)){var n=e.v;Te?Z.set(e,t):Z.set(e,n),e.v=t;var r=L.ensure();r.capture(e,n),(e.f&O)!==0&&((e.f&D)!==0&&vt(e),x(e,(e.f&N)===0?m:U)),e.wv=on(),Gt(e,D),Pe()&&p!==null&&(p.f&m)!==0&&(p.f&(H|ue))===0&&(R===null?wr([e]):R.push(e))}return t}function ps(e,t=1){var n=Y(e),r=t===1?n++:n--;return V(e,n),r}function Oe(e){V(e,e.v+1)}function Gt(e,t){var n=e.reactions;if(n!==null)for(var r=Pe(),s=n.length,i=0;i<s;i++){var a=n[i],u=a.f;if(!(!r&&a===p)){var l=(u&D)===0;l&&x(a,t),(u&O)!==0?Gt(a,U):l&&((u&be)!==0&&te!==null&&te.push(a),ye(a))}}}function Ae(e){if(typeof e!="object"||e===null||se in e)return e;const t=Nt(e);if(t!==En&&t!==Tn)return e;var n=new Map,r=lt(e),s=G(0),i=ie,a=u=>{if(ie===i)return u();var l=v,f=ie;S(null),kt(i);var o=u();return S(l),kt(f),o};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(u,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Pn();var o=n.get(l);return o===void 0?o=a(()=>{var _=G(f.value);return n.set(l,_),_}):V(o,f.value,!0),!0},deleteProperty(u,l){var f=n.get(l);if(f===void 0){if(l in u){const o=a(()=>G(E));n.set(l,o),Oe(s)}}else V(f,E),Oe(s);return!0},get(u,l,f){if(l===se)return e;var o=n.get(l),_=l in u;if(o===void 0&&(!_||Se(u,l)?.writable)&&(o=a(()=>{var c=Ae(_?u[l]:E),h=G(c);return h}),n.set(l,o)),o!==void 0){var d=Y(o);return d===E?void 0:d}return Reflect.get(u,l,f)},getOwnPropertyDescriptor(u,l){var f=Reflect.getOwnPropertyDescriptor(u,l);if(f&&"value"in f){var o=n.get(l);o&&(f.value=Y(o))}else if(f===void 0){var _=n.get(l),d=_?.v;if(_!==void 0&&d!==E)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(u,l){if(l===se)return!0;var f=n.get(l),o=f!==void 0&&f.v!==E||Reflect.has(u,l);if(f!==void 0||p!==null&&(!o||Se(u,l)?.writable)){f===void 0&&(f=a(()=>{var d=o?Ae(u[l]):E,c=G(d);return c}),n.set(l,f));var _=Y(f);if(_===E)return!1}return o},set(u,l,f,o){var _=n.get(l),d=l in u;if(r&&l==="length")for(var c=f;c<_.v;c+=1){var h=n.get(c+"");h!==void 0?V(h,E):c in u&&(h=a(()=>G(E)),n.set(c+"",h))}if(_===void 0)(!d||Se(u,l)?.writable)&&(_=a(()=>G(void 0)),V(_,Ae(f)),n.set(l,_));else{d=_.v!==E;var T=a(()=>Ae(f));V(_,T)}var fe=Reflect.getOwnPropertyDescriptor(u,l);if(fe?.set&&fe.set.call(o,f),!d){if(r&&typeof l=="string"){var Fe=n.get("length"),W=Number(l);Number.isInteger(W)&&W>=Fe.v&&V(Fe,W+1)}Oe(s)}return!0},ownKeys(u){Y(s);var l=Reflect.ownKeys(u).filter(_=>{var d=n.get(_);return d===void 0||d.v!==E});for(var[f,o]of n)o.v!==E&&!(f in u)&&l.push(f);return l},setPrototypeOf(){Dn()}})}function Et(e){try{if(e!==null&&typeof e=="object"&&se in e)return e[se]}catch{}return e}function gs(e,t){return Object.is(Et(e),Et(t))}var Tt,Kt,zt,Xt;function rt(){if(Tt===void 0){Tt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;zt=Se(t,"firstChild").get,Xt=Se(t,"nextSibling").get,bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),bt(n)&&(n.__t=void 0)}}function Q(e=""){return document.createTextNode(e)}function F(e){return zt.call(e)}function $(e){return Xt.call(e)}function ys(e,t){if(!b)return F(e);var n=F(y);if(n===null)n=y.appendChild(Q());else if(t&&n.nodeType!==Ue){var r=Q();return n?.before(r),M(r),r}return M(n),n}function bs(e,t=!1){if(!b){var n=F(e);return n instanceof Comment&&n.data===""?$(n):n}if(t&&y?.nodeType!==Ue){var r=Q();return y?.before(r),M(r),r}return y}function ws(e,t=1,n=!1){let r=b?y:e;for(var s;t--;)s=r,r=$(r);if(!b)return r;if(n&&r?.nodeType!==Ue){var i=Q();return r===null?s?.after(i):r.before(i),M(i),i}return M(r),r}function Zt(e){e.textContent=""}function ms(){return!1}function Es(e,t){if(t){const n=document.body;e.autofocus=!0,De(()=>{document.activeElement===n&&e.focus()})}}function Ts(e){b&&F(e)!==null&&Zt(e)}let At=!1;function or(){At||(At=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function ze(e){var t=v,n=p;S(null),j(null);try{return e()}finally{S(t),j(n)}}function As(e,t,n,r=n){e.addEventListener(t,()=>ze(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),or()}function Jt(e){p===null&&v===null&&Rn(),v!==null&&(v.f&N)!==0&&p===null&&On(),Te&&kn()}function cr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function q(e,t,n,r=!0){var s=p;s!==null&&(s.f&J)!==0&&(e|=J);var i={ctx:g,deps:null,nodes_start:null,nodes_end:null,f:e|D,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ae(i),i.f|=ct}catch(l){throw I(i),l}else t!==null&&ye(i);if(r){var a=i;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&me)===0&&(a=a.first),a!==null&&(a.parent=s,s!==null&&cr(a,s),v!==null&&(v.f&O)!==0&&(e&ue)===0)){var u=v;(u.effects??=[]).push(a)}}return i}function _r(){return v!==null&&!C}function Qt(e){const t=q(Be,null,!1);return x(t,m),t.teardown=e,t}function dr(e){Jt();var t=p.f,n=!v&&(t&H)!==0&&(t&ct)===0;if(n){var r=g;(r.e??=[]).push(e)}else return en(e)}function en(e){return q(ft|Ct,e,!1)}function xs(e){return Jt(),q(Be|Ct,e,!0)}function hr(e){L.ensure();const t=q(ue|me,e,!0);return(n={})=>new Promise(r=>{n.outro?qe(t,()=>{I(t),r(void 0)}):(I(t),r(void 0))})}function Ss(e){return q(ft,e,!1)}function ks(e,t){var n=g,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=pt(()=>{e(),!r.ran&&(r.ran=!0,ee(t))})}function Os(){var e=g;pt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&m)!==0&&x(n,U),Le(n)&&ae(n),t.ran=!1}})}function vr(e){return q(_t|me,e,!0)}function pt(e,t=0){return q(Be|t,e,!0)}function Rs(e,t=[],n=[]){ir(t,n,r=>{q(Be,()=>e(...r.map(Y)),!0)})}function tn(e,t=0){var n=q(be|t,e,!0);return n}function K(e,t=!0){return q(H|me,e,!0,t)}function nn(e){var t=e.teardown;if(t!==null){const n=Te,r=v;St(!0),S(null);try{t.call(null)}finally{St(n),S(r)}}}function rn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&ze(()=>{s.abort(dt)});var r=n.next;(n.f&ue)!==0?n.parent=null:I(n,t),n=r}}function pr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&H)===0&&I(t),t=n}}function I(e,t=!0){var n=!1;(t||(e.f&xn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(gr(e.nodes_start,e.nodes_end),n=!0),rn(e,t&&!n),Ye(e,0),x(e,we);var r=e.transitions;if(r!==null)for(const i of r)i.stop();nn(e);var s=e.parent;s!==null&&s.first!==null&&sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function gr(e,t){for(;e!==null;){var n=e===t?null:$(e);e.remove(),e=n}}function sn(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 qe(e,t){var n=[];an(e,n,!0),yr(n,()=>{I(e),t&&t()})}function yr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function an(e,t,n){if((e.f&J)===0){if(e.f^=J,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&He)!==0||(r.f&H)!==0;an(r,t,i?n:!1),r=s}}}function Ns(e){ln(e,!0)}function ln(e,t){if((e.f&J)!==0){e.f^=J,(e.f&m)===0&&(x(e,D),ye(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&He)!==0||(n.f&H)!==0;ln(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let _e=null;function br(e){var t=_e;try{if(_e=new Set,ee(e),t!==null)for(var n of _e)t.add(n);return _e}finally{_e=t}}function Cs(e){for(var t of br(e))Ne(t,t.v)}let he=!1;function xt(e){he=e}let Te=!1;function St(e){Te=e}let v=null,C=!1;function S(e){v=e}let p=null;function j(e){p=e}let B=null;function un(e){v!==null&&(B===null?B=[e]:B.push(e))}let A=null,k=0,R=null;function wr(e){R=e}let fn=1,Ce=0,ie=Ce;function kt(e){ie=e}let X=!1;function on(){return++fn}function Le(e){var t=e.f;if((t&D)!==0)return!0;if((t&U)!==0){var n=e.deps,r=(t&N)!==0;if(n!==null){var s,i,a=(t&Ve)!==0,u=r&&p!==null&&!X,l=n.length;if((a||u)&&(p===null||(p.f&we)===0)){var f=e,o=f.parent;for(s=0;s<l;s++)i=n[s],(a||!i?.reactions?.includes(f))&&(i.reactions??=[]).push(f);a&&(f.f^=Ve),u&&o!==null&&(o.f&N)===0&&(f.f^=N)}for(s=0;s<l;s++)if(i=n[s],Le(i)&&Wt(i),i.wv>e.wv)return!0}(!r||p!==null&&!X)&&x(e,m)}return!1}function cn(e,t,n=!0){var r=e.reactions;if(r!==null&&!B?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&O)!==0?cn(i,t,!1):t===i&&(n?x(i,D):(i.f&m)!==0&&x(i,U),ye(i))}}function _n(e){var t=A,n=k,r=R,s=v,i=X,a=B,u=g,l=C,f=ie,o=e.f;A=null,k=0,R=null,X=(o&N)!==0&&(C||!he||v===null),v=(o&(H|ue))===0?e:null,B=null,ve(e.ctx),C=!1,ie=++Ce,e.ac!==null&&(ze(()=>{e.ac.abort(dt)}),e.ac=null);try{e.f|=Qe;var _=e.fn,d=_(),c=e.deps;if(A!==null){var h;if(Ye(e,k),c!==null&&k>0)for(c.length=k+A.length,h=0;h<A.length;h++)c[k+h]=A[h];else e.deps=c=A;if(!X||(o&O)!==0&&e.reactions!==null)for(h=k;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&k<c.length&&(Ye(e,k),c.length=k);if(Pe()&&R!==null&&!C&&c!==null&&(e.f&(O|U|D))===0)for(h=0;h<R.length;h++)cn(R[h],e);return s!==null&&s!==e&&(Ce++,R!==null&&(r===null?r=R:r.push(...R))),(e.f&re)!==0&&(e.f^=re),d}catch(T){return Yt(T)}finally{e.f^=Qe,A=t,k=n,R=r,v=s,X=i,B=a,ve(u),C=l,ie=f}}function mr(e,t){let n=t.reactions;if(n!==null){var r=bn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&O)!==0&&(A===null||!A.includes(t))&&(x(t,U),(t.f&(N|Ve))===0&&(t.f^=Ve),$t(t),Ye(t,0))}function Ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)mr(e,n[r])}function ae(e){var t=e.f;if((t&we)===0){x(e,m);var n=p,r=he;p=e,he=!0;try{(t&be)!==0?pr(e):rn(e),nn(e);var s=_n(e);e.teardown=typeof s=="function"?s:null,e.wv=fn;var i}finally{he=r,p=n}}}async function Er(){await Promise.resolve(),Ht()}function Tr(){return L.ensure().settled()}function Y(e){var t=e.f,n=(t&O)!==0;if(_e?.add(e),v!==null&&!C){var r=p!==null&&(p.f&we)!==0;if(!r&&!B?.includes(e)){var s=v.deps;if((v.f&Qe)!==0)e.rv<Ce&&(e.rv=Ce,A===null&&s!==null&&s[k]===e?k++:A===null?A=[e]:(!X||!A.includes(e))&&A.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:i.includes(v)||i.push(v)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,u=a.parent;u!==null&&(u.f&N)===0&&(a.f^=N)}if(Te){if(Z.has(e))return Z.get(e);if(n){a=e;var l=a.v;return((a.f&m)===0&&a.reactions!==null||dn(a))&&(l=vt(a)),Z.set(a,l),l}}else n&&(a=e,Le(a)&&Wt(a));if((e.f&re)!==0)throw e.v;return e.v}function dn(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&O)!==0&&dn(t))return!0;return!1}function ee(e){var t=C;try{return C=!0,e()}finally{C=t}}const Ar=-7169;function x(e,t){e.f=e.f&Ar|t}function Is(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(se in e)st(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&se in n&&st(n)}}}function st(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{st(e[r],t)}catch{}const n=Nt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=mn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}function Ps(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const xr=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ds(e){return xr.includes(e)}const Sr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ms(e){return e=e.toLowerCase(),Sr[e]??e}const kr=["touchstart","touchmove"];function Or(e){return kr.includes(e)}const hn=new Set,it=new Set;function Rr(e,t,n,r={}){function s(i){if(r.capture||xe.call(t,i),!i.cancelBubble)return ze(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?De(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Ls(e,t,n,r,s){var i={capture:r,passive:s},a=Rr(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qt(()=>{t.removeEventListener(e,a,i)})}function Fs(e){for(var t=0;t<e.length;t++)hn.add(e[t]);for(var n of it)n(e)}let Ot=null;function xe(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Ot=e;var a=0,u=Ot===e&&e.__root;if(u){var l=s.indexOf(u);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(a=l)}if(i=s[a]||e.target,i!==t){Je(e,"currentTarget",{configurable:!0,get(){return i||n}});var o=v,_=p;S(null),j(null);try{for(var d,c=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var T=i["__"+r];if(T!=null&&(!i.disabled||e.target===i))if(lt(T)){var[fe,...Fe]=T;fe.apply(i,[e,...Fe])}else T.call(i,e)}catch(W){d?c.push(W):d=W}if(e.cancelBubble||h===t||h===null)break;i=h}if(d){for(let W of c)queueMicrotask(()=>{throw W});throw d}}finally{e.__root=t,delete e.currentTarget,S(o),j(_)}}}function gt(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function P(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function js(e,t){var n=(t&Fn)!==0,r=(t&jn)!==0,s,i=!e.startsWith("<!>");return()=>{if(b)return P(y,null),y;s===void 0&&(s=gt(i?e:"<!>"+e),n||(s=F(s)));var a=r||Kt?document.importNode(s,!0):s.cloneNode(!0);if(n){var u=F(a),l=a.lastChild;P(u,l)}else P(a,a);return a}}function Nr(e,t,n="svg"){var r=!e.startsWith("<!>"),s=`<${n}>${r?e:"<!>"+e}</${n}>`,i;return()=>{if(b)return P(y,null),y;if(!i){var a=gt(s),u=F(a);i=F(u)}var l=i.cloneNode(!0);return P(l,l),l}}function qs(e,t){return Nr(e,t,"svg")}function Vs(e=""){if(!b){var t=Q(e+"");return P(t,t),t}var n=y;return n.nodeType!==Ue&&(n.before(n=Q()),M(n)),P(n,n),n}function Ys(){if(b)return P(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),n=Q();return e.append(t,n),P(t,n),e}function Bs(e,t){if(b){p.nodes_end=y,We();return}e!==null&&e.before(t)}let Rt=!0;function Hs(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function vn(e,t){return pn(e,t)}function Cr(e,t){rt(),t.intro=t.intro??!1;const n=t.target,r=b,s=y;try{for(var i=F(n);i&&(i.nodeType!==Re||i.data!==Pt);)i=$(i);if(!i)throw de;je(!0),M(i),We();const a=pn(e,{...t,anchor:i});if(y===null||y.nodeType!==Re||y.data!==Mt)throw $e(),de;return je(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw a;return a!==de&&console.warn("Failed to hydrate: ",a),t.recover===!1&&In(),rt(),Zt(n),je(!1),vn(e,t)}finally{je(r),M(s)}}const oe=new Map;function pn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0}){rt();var u=new Set,l=_=>{for(var d=0;d<_.length;d++){var c=_[d];if(!u.has(c)){u.add(c);var h=Or(c);t.addEventListener(c,xe,{passive:h});var T=oe.get(c);T===void 0?(document.addEventListener(c,xe,{passive:h}),oe.set(c,1)):oe.set(c,T+1)}}};l(wn(hn)),it.add(l);var f=void 0,o=hr(()=>{var _=n??t.appendChild(Q());return nr(_,{pending:()=>{}},d=>{if(i){Wn({});var c=g;c.c=i}s&&(r.$$events=s),b&&P(d,null),Rt=a,f=e(d,r)||{},Rt=!0,b&&(p.nodes_end=y),i&&Gn()}),()=>{for(var d of u){t.removeEventListener(d,xe);var c=oe.get(d);--c===0?(document.removeEventListener(d,xe),oe.delete(d)):oe.set(d,c)}it.delete(l),_!==n&&_.parentNode?.removeChild(_)}});return at.set(f,o),f}let at=new WeakMap;function Ir(e,t){const n=at.get(e);return n?(at.delete(e),n(t)):Promise.resolve()}function Us(e,t,...n){var r=e,s=ne,i;tn(()=>{s!==(s=t())&&(i&&(I(i),i=null),i=K(()=>s(r,...n)))},He),b&&(r=y)}function Pr(e){return(t,...n)=>{var r=e(...n),s;if(b)s=y,We();else{var i=r.render().trim(),a=gt(i);s=F(a),t.before(s)}const u=r.setup?.(s);P(s,s),typeof u=="function"&&Qt(u)}}function gn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),ne;const r=ee(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ce=[];function Dr(e,t){return{subscribe:Mr(e,t).subscribe}}function Mr(e,t=ne){let n=null;const r=new Set;function s(u){if(Ft(e,u)&&(e=u,n)){const l=!ce.length;for(const f of r)f[1](),ce.push(f,e);if(l){for(let f=0;f<ce.length;f+=2)ce[f][0](ce[f+1]);ce.length=0}}}function i(u){s(u(e))}function a(u,l=ne){const f=[u,l];return r.add(f),r.size===1&&(n=t(s,i)||ne),u(e),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}function $s(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Dr(n,(a,u)=>{let l=!1;const f=[];let o=0,_=ne;const d=()=>{if(o)return;_();const h=t(r?f[0]:f,a,u);i?a(h):_=typeof h=="function"?h:ne},c=s.map((h,T)=>gn(h,fe=>{f[T]=fe,o&=~(1<<T),l&&d()},()=>{o|=1<<T}));return l=!0,d(),function(){ut(c),_(),l=!1}})}function Ws(e){let t;return gn(e,n=>t=n)(),t}function Lr(){return v===null&&Cn(),(v.ac??=new AbortController).signal}function yn(e){g===null&&Ee(),Ie&&g.l!==null?yt(g).m.push(e):dr(()=>{const t=ee(e);if(typeof t=="function")return t})}function Fr(e){g===null&&Ee(),yn(()=>()=>ee(e))}function jr(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function qr(){const e=g;return e===null&&Ee(),(t,n,r)=>{const s=e.s.$$events?.[t];if(s){const i=lt(s)?s.slice():[s],a=jr(t,n,r);for(const u of i)u.call(e.x,a);return!a.defaultPrevented}return!0}}function Vr(e){g===null&&Ee(),g.l===null&&It(),yt(g).b.push(e)}function Yr(e){g===null&&Ee(),g.l===null&&It(),yt(g).a.push(e)}function yt(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Gs=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:Yr,beforeUpdate:Vr,createEventDispatcher:qr,createRawSnippet:Pr,flushSync:Ht,getAbortSignal:Lr,getAllContexts:$n,getContext:Bn,hasContext:Un,hydrate:Cr,mount:vn,onDestroy:Fr,onMount:yn,setContext:Hn,settled:Tr,tick:Er,unmount:Ir,untrack:ee},Symbol.toStringTag,{value:"Module"}));export{ns as $,qe as A,g as B,xs as C,ut as D,He as E,Hr as F,Is as G,ht as H,cs as I,Rs as J,Hs as K,os as L,Dt as M,Yn as N,M as O,je as P,Ns as Q,ne as R,se as S,hs as T,E as U,gn as V,Ws as W,Qt as X,Je as Y,Se as Z,Kr as _,bs as a,Ds as a$,ur as a0,Ae as a1,Te as a2,p as a3,we as a4,rs as a5,Ie as a6,ts as a7,es as a8,ss as a9,lt as aA,Ne as aB,Xr as aC,J as aD,I as aE,zr as aF,Qr as aG,$ as aH,an as aI,Zt as aJ,yr as aK,Zr as aL,Jr as aM,us as aN,gs as aO,As as aP,ir as aQ,ls as aR,Ps as aS,Rr as aT,Es as aU,Ms as aV,_s as aW,or as aX,as as aY,Nt as aZ,Wr as a_,$r as aa,Me as ab,ps as ac,j as ad,Cr as ae,vn as af,Ht as ag,Ir as ah,Er as ai,Ys as aj,ds as ak,Vs as al,ks as am,Os as an,qs as ao,qr as ap,Ls as aq,Cs as ar,Ur as as,Fs as at,Fr as au,Us as av,F as aw,Re as ax,Mt as ay,wn as az,Bs as b,mn as b0,Ze as b1,Mr as b2,Rt as b3,be as b4,ct as b5,is as b6,ze as b7,Br as b8,gr as b9,$e as ba,de as bb,P as bc,gt as bd,Ft as be,Ts as bf,$s as bg,vs as bh,Gs as bi,ys as c,V as d,Gn as e,js as f,G as g,Y as h,Ss as i,pt as j,ee as k,b as l,We as m,Vn as n,yn as o,Wn as p,De as q,fs as r,ws as s,tn as t,dr as u,Q as v,K as w,w as x,ms as y,y as z};
@@ -1,3 +0,0 @@
1
- import{b2 as Ee,o as $e,g as U,h as L,d as P,bi as yt,ai as De}from"./BhjtS45v.js";class le{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function vt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function me({href:e}){return e.split("#")[0]}function kt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function At(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const Et=new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Te(e)),Rt(e,t));const H=new Map;function Tt(e,t){const n=Te(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&H.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function It(e,t,n){if(H.size>0){const r=Te(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Te(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${At(...a)}"]`}return r}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Lt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${xt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return _e(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return _e(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=Ut.exec(c),[,p,u,l,h]=d;return t.push({name:l,matcher:h,optional:!!p,rest:!!u,chained:u?f===1&&i[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return _e(c)}).join("")}).join("")}/?$`),params:t}}function Pt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function xt(e){return e.slice(1).split("/").filter(Pt)}function Ct(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let f=a[o-i];if(c.chained&&c.rest&&i&&(f=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&c.chained&&(i=0),!d&&!p&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Nt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,f,d]])=>{const{pattern:p,params:u}=Lt(o),l={id:o,exec:h=>{const w=p.exec(h);if(w)return Ct(w,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...f||[]].map(i),leaf:s(c)};return l.errors.length=l.layouts.length=Math.max(l.errors.length,l.layouts.length),l});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function qe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const I=globalThis.__sveltekit_17eycqg?.base??"",Ot=globalThis.__sveltekit_17eycqg?.assets??I,jt="1758291726780",ze="sveltekit:snapshot",Xe="sveltekit:scroll",Ze="sveltekit:states",$t="sveltekit:pageurl",F="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Z=location.origin;function Ie(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function fe(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Fe={...j,"":j.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===Z&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function te(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=q(o,"preload-code")),a===null&&(a=q(o,"preload-data")),t===null&&(t=q(o,"keepfocus")),n===null&&(n=q(o,"noscroll")),s===null&&(s=q(o,"reload")),i===null&&(i=q(o,"replacestate")),o=Qe(o);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Fe[r??"off"],preload_data:Fe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Be(e){const t=Ee(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const tt={v:()=>{}};function Dt(){const{set:e,subscribe:t}=Ee(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==jt;return i&&(e(!0),tt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==Z||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function En(e){}function qt(e){const t=Bt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Bt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=Ft.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Vt=-1,Mt=-2,Gt=-3,Ht=-4,Kt=-5,Yt=-6;function Wt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Vt)return;if(s===Gt)return NaN;if(s===Ht)return 1/0;if(s===Kt)return-1/0;if(s===Yt)return-0;if(i||typeof s!="number")throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],f=t?.[c];if(f)return r[s]=f(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let l=1;l<o.length;l+=1)d.add(a(o[l]));break;case"Map":const p=new Map;r[s]=p;for(let l=1;l<o.length;l+=2)p.set(a(o[l]),a(o[l+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let l=1;l<o.length;l+=2)u[o[l]]=a(o[l+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const l=globalThis[c],h=new l(a(o[1]));r[s]=o[2]!==void 0?h.subarray(o[2],o[3]):h;break}case"ArrayBuffer":{const l=o[1],h=qt(l);r[s]=h;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":{const l=c.slice(9);r[s]=Temporal[l].from(o[1]);break}case"URL":{const l=new URL(o[1]);r[s]=l;break}case"URLSearchParams":{const l=new URLSearchParams(o[1]);r[s]=l;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let f=0;f<o.length;f+=1){const d=o[f];d!==Mt&&(c[f]=a(d))}}else{const c={};r[s]=c;for(const f in o){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=o[f];c[f]=a(d)}}return r[s]}return a(0)}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const Jt=new Set([...nt]);[...Jt];function zt(e){return e.filter(t=>t!=null)}const Xt="x-sveltekit-invalidated",Zt="x-sveltekit-trailing-slash";function ne(e){return e instanceof le||e instanceof Re?e.status:500}function Qt(e){return e instanceof Re?e.text:"Internal Error"}let S,J,ye;const en=$e.toString().includes("$$")||/function \w+\(\) \{\}/.test($e.toString());en?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ye={current:!1}):(S=new class{#e=U({});get data(){return L(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return L(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return L(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return L(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return L(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return L(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return L(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return L(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=U(null);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},ye=new class{#e=U(!1);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},tt.v=()=>ye.current=!0);function tn(e){Object.assign(S,e)}const nn="/__data.json",rn=".html__data.json";function an(e){return e.endsWith(".html")?e.replace(/\.html$/,rn):e.replace(/\/$/,"")+nn}const Ve={spanContext(){return on},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},on={traceId:"",spanId:"",traceFlags:0},{tick:sn}=yt,cn=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Xe)??{},z=Je(ze)??{},O={url:Be({}),page:Be({}),navigating:Ee(null),updated:Dt()};function Ue(e){D[e]=fe()}function ln(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function M(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}function Me(){}let Le,be,re,x,ke,v;const ae=[],oe=[];let C=null;const ee=new Map,at=new Set,fn=new Set,K=new Set;let y={branch:[],error:null,url:null},Pe=!1,se=!1,Ge=!0,X=!1,G=!1,ot=!1,xe=!1,st,E,T,$;const Y=new Set,He=new Map;async function In(e,t,n){globalThis.__sveltekit_17eycqg.data&&globalThis.__sveltekit_17eycqg?.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Le=Nt(e),x=document.documentElement,ke=t,be=e.nodes[0],re=e.nodes[1],be(),re(),E=history.state?.[F],T=history.state?.[W],E||(E=T=Date.now(),history.replaceState({...history.state,[F]:E,[W]:T},""));const r=D[E];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await vn(ke,n)):(await B({type:"enter",url:Ie(v.hash?kn(new URL(location.href)):location.href),replace_state:!0}),a()),wn()}function un(){ae.length=0,xe=!1}function it(e){oe.some(t=>t?.snapshot)&&(z[e]=oe.map(t=>t?.snapshot?.capture()))}function ct(e){z[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function Ke(){Ue(E),qe(Xe,D),it(T),qe(ze,z)}async function lt(e,t,n,r){let a;t.invalidateAll&&(C=null),await B({type:"goto",url:Ie(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(xe=!0,a=[...He.keys()]),t.invalidate&&t.invalidate.forEach(yn)}}),t.invalidateAll&&De().then(De).then(()=>{He.forEach(({resource:s},i)=>{a?.includes(i)&&s.refresh?.()})})}async function dn(e){if(e.id!==C?.id){const t={};Y.add(t),C={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(Y.delete(t),n.type==="loaded"&&n.state.error&&(C=null),n))}}return C.promise}async function we(e){const t=(await he(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ft(e,t,n){y=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,e.props.page),st=new v.root({target:t,props:{...e.props,stores:O,components:oe},hydrate:n,sync:!1}),ct(T),n){const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(s=>s(a))}se=!0}function ie({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(I&&(e.pathname===I||e.pathname===I+"/"))o="always";else for(const l of n)l?.slash!==void 0&&(o=l.slash);e.pathname=wt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:zt(n).map(l=>l.node.component),page:je(S)}};i!==void 0&&(c.props.form=i);let f={},d=!S,p=0;for(let l=0;l<Math.max(n.length,y.branch.length);l+=1){const h=n[l],w=y.branch[l];h?.data!==w?.data&&(d=!0),h&&(f={...f,...h.data},d&&(c.props[`data_${p}`]=f),p+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==S.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?f:S.data}),c}async function Ce({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let d=function(...u){for(const l of u){const{href:h}=new URL(l,n);c.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ve,current:Ve},route:new Proxy(a,{get:(u,l)=>(o&&(c.route=!0),u[l])}),params:new Proxy(r,{get:(u,l)=>(o&&c.params.add(l),u[l])}),data:s?.data??null,url:kt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,l){u instanceof Request&&(l={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...l});const{resolved:h,promise:w}=ut(u,l,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await f.universal.load.call(null,p)??null}return{node:f,loader:e,server:s,universal:f.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:f.universal?.trailingSlash??s?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=se?It(r,a.href,t):Tt(r,t);return{resolved:a,promise:s}}function Ye(e,t,n,r,a,s){if(xe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(ae.some(o=>o(new URL(i))))return!0;return!1}function Ne(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function hn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function We({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:je(S),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(C?.id===e)return Y.delete(C.token),C.promise;const{errors:i,layouts:o,leaf:c}=a,f=[...o,c];i.forEach(_=>_?.().catch(()=>{})),f.forEach(_=>_?.[1]().catch(()=>{}));let d=null;const p=y.url?e!==ce(y.url):!1,u=y.route?a.id!==y.route.id:!1,l=hn(y.url,n);let h=!1;const w=f.map((_,g)=>{const b=y.branch[g],k=!!_?.[0]&&(b?.loader!==_[1]||Ye(h,u,p,l,b.server?.uses,r));return k&&(h=!0),k});if(w.some(Boolean)){try{d=await gt(n,w)}catch(_){const g=await V(_,{url:n,params:r,route:{id:e}});return Y.has(s)?We({error:g,url:n,params:r,route:a}):de({status:ne(_),error:g,url:n,route:a})}if(d.type==="redirect")return d}const A=d?.nodes;let m=!1;const N=f.map(async(_,g)=>{if(!_)return;const b=y.branch[g],k=A?.[g];if((!k||k.type==="skip")&&_[1]===b?.loader&&!Ye(m,u,p,l,b.universal?.uses,r))return b;if(m=!0,k?.type==="error")throw k;return Ce({loader:_[1],url:n,params:r,route:a,parent:async()=>{const pe={};for(let ge=0;ge<g;ge+=1)Object.assign(pe,(await N[ge])?.data);return pe},server_data_node:Ne(k===void 0&&_[0]?{type:"skip"}:k??null,_[0]?b?.server:void 0)})});for(const _ of N)_.catch(()=>{});const R=[];for(let _=0;_<f.length;_+=1)if(f[_])try{R.push(await N[_])}catch(g){if(g instanceof Se)return{type:"redirect",location:g.location};if(Y.has(s))return We({error:await V(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=ne(g),k;if(A?.includes(g))b=g.status??b,k=g.error;else if(g instanceof le)k=g.body;else{if(await O.updated.check())return await rt(),await M(n);k=await V(g,{params:r,url:n,route:{id:a.id}})}const Q=await pn(_,R,i);return Q?ie({url:n,params:r,branch:R.slice(0,Q.idx).concat(Q.node),status:b,error:k,route:a}):await pt(n,{id:a.id},k,b)}else R.push(void 0);return ie({url:n,params:r,branch:R,status:200,error:null,route:a,form:t?void 0:null})}async function pn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function de({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await gt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==Z||n.pathname!==location.pathname||Pe)&&await M(n)}try{const o=await Ce({loader:be,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ne(s)}),c={node:await re(),loader:re,universal:null,server:null,data:null};return ie({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return lt(new URL(o.location,location.href),{},0);throw o}}async function gn(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ut(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function he(e,t){if(e&&!ue(e,I,v.hash)){const n=await gn(e);if(!n)return;const r=mn(n);for(const a of Le){const s=a.exec(r);if(s)return{id:ce(e),invalidating:t,route:a,params:bt(s),url:e}}}}function mn(e){return vt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r,event:a}){let s=!1;const i=Oe(y,n,e,t);r!==void 0&&(i.navigation.delta=r),a!==void 0&&(i.navigation.event=a);const o={...i.navigation,cancel:()=>{s=!0,i.reject(new Error("navigation cancelled"))}};return X||at.forEach(c=>c(o)),s?null:i}async function B({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:f=Me,block:d=Me,event:p}){const u=$;$=c;const l=await he(t,!1),h=e==="enter"?Oe(y,l,t,e):ht({url:t,type:e,delta:n?.delta,intent:l,event:p});if(!h){d(),$===c&&($=u);return}const w=E,A=T;f(),X=!0,se&&h.navigation.type!=="enter"&&O.navigating.set(J.current=h.navigation);let m=l&&await dt(l);if(!m){if(ue(t,I,v.hash))return await M(t,s);m=await pt(t,{id:null},await V(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=l?.url||t,$!==c)return h.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await B({type:e,url:new URL(m.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:c}),h.fulfil(void 0);return}m=await de({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else m.props.page.status>=400&&await O.updated.check()&&(await rt(),await M(t,s));if(un(),Ue(w),it(A),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,b={[F]:E+=g,[W]:T+=g,[Ze]:i};(s?history.replaceState:history.pushState).call(history,b,"",t),s||ln(E,T)}if(C=null,m.props.page.state=i,se){const g=(await Promise.all(Array.from(fn,b=>b(h.navigation)))).filter(b=>typeof b=="function");if(g.length>0){let b=function(){g.forEach(k=>{K.delete(k)})};g.push(b),g.forEach(k=>{K.add(k)})}y=m.state,m.props.page&&(m.props.page.url=t),st.$set(m.props),tn(m.props.page),ot=!0}else ft(m,ke,!1);const{activeElement:N}=document;await sn();const R=n?n.scroll:a?fe():null;if(Ge){const g=t.hash&&document.getElementById(_t(t));R?scrollTo(R.x,R.y):g?g.scrollIntoView():scrollTo(0,0)}const _=document.activeElement!==N&&document.activeElement!==document.body;!r&&!_&&bn(t),Ge=!0,m.props.page&&Object.assign(S,m.props.page),X=!1,e==="popstate"&&ct(T),h.fulfil(void 0),K.forEach(g=>g(h.navigation)),O.navigating.set(J.current=null)}async function pt(e,t,n,r,a){return e.origin===Z&&e.pathname===location.pathname&&!Pe?await de({status:r,error:n,url:e,route:t}):await M(e,a)}function _n(){let e,t,n;x.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}x.addEventListener("mousedown",r),x.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(we(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const f=et(o,x),d=f===t&&c>=n;if(!f||d)return;const{url:p,external:u,download:l}=ve(f,I,v.hash);if(u||l)return;const h=te(f),w=p&&ce(y.url)===ce(p);if(!(h.reload||w))if(c<=h.preload_data){t=f,n=j.tap;const A=await he(p,!1);if(!A)return;dn(A)}else c<=h.preload_code&&(t=f,n=c,we(p))}function i(){a.disconnect();for(const o of x.querySelectorAll("a")){const{url:c,external:f,download:d}=ve(o,I,v.hash);if(f||d)continue;const p=te(o);p.reload||(p.preload_code===j.viewport&&a.observe(o),p.preload_code===j.eager&&we(c))}}K.add(i),i()}function V(e,t){if(e instanceof le)return e.body;const n=ne(e),r=Qt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Un(e,t={}){return e=new URL(Ie(e)),e.origin!==Z?Promise.reject(new Error("goto: invalid URL")):lt(e,t,0)}function yn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function wn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ke(),!X){const r=Oe(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};at.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ke()}),navigator.connection?.saveData||_n(),x.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],x);if(!n)return;const{url:r,external:a,target:s,download:i}=ve(n,I,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=te(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[f,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=f===me(location);if(a||o.reload&&(!p||!d)){ht({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=y.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const l=n.ownerDocument.getElementById(decodeURIComponent(d));l&&(l.scrollIntoView(),l.focus())}return}if(G=!0,Ue(E),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await B({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),x.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(i,I,!1))return;const o=t.target,c=te(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o),d=r?.getAttribute("name");d&&f.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(f).toString(),B({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ae){if(t.state?.[F]){const n=t.state[F];if($={},n===E)return;const r=D[n],a=t.state[Ze]??{},s=new URL(t.state[$t]??location.href),i=t.state[W],o=y.url?me(location)===me(y.url):!1;if(i===T&&(ot||o)){a!==S.state&&(S.state=a),e(s),D[E]=fe(),r&&scrollTo(r.x,r.y),E=n;return}const f=n-E;await B({type:"popstate",url:s,popped:{state:a,scroll:r,delta:f},accept:()=>{E=n,T=i},block:()=>{history.go(-f)},nav_token:$,event:t})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[F]:++E,[W]:T},"",location.href))});for(const t of document.querySelectorAll("link"))cn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&O.navigating.set(J.current=null)});function e(t){y.url=S.url=t,O.page.set(je(S)),O.page.notify()}}async function vn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Pe=!0;const f=new URL(location.href);let d;({params:a={},route:s={id:null}}=await he(f,!1)||{}),d=Le.find(({id:l})=>l===s.id);let p,u=!0;try{const l=r.map(async(w,A)=>{const m=o[A];return m?.uses&&(m.uses=mt(m.uses)),Ce({loader:v.nodes[w],url:f,params:a,route:s,parent:async()=>{const N={};for(let R=0;R<A;R+=1)Object.assign(N,(await l[R]).data);return N},server_data_node:Ne(m)})}),h=await Promise.all(l);if(d){const w=d.layouts;for(let A=0;A<w.length;A++)w[A]||h.splice(A,0,void 0)}p=ie({url:f,params:a,branch:h,status:t,error:n,form:c,route:d??null})}catch(l){if(l instanceof Se){await M(new URL(l.location,location.href));return}p=await de({status:ne(l),error:await V(l,{url:f,params:a,route:s}),url:f,route:s}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),ft(p,e,u)}async function gt(e,t){const n=new URL(e);n.pathname=an(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Zt,"1"),n.searchParams.append(Xt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new le(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader();function c(d){return Wt(d,{...v.decoders,Promise:p=>new Promise((u,l)=>{i.set(p,{fulfil:u,reject:l})})})}let f="";for(;;){const{done:d,value:p}=await o.read();if(d&&!f)break;for(f+=!p&&f?`
2
- `:Et.decode(p,{stream:!0});;){const u=f.indexOf(`
3
- `);if(u===-1)break;const l=JSON.parse(f.slice(0,u));if(f=f.slice(u+1),l.type==="redirect")return s(l);if(l.type==="data")l.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=mt(h.uses),h.data=c(h.data))}),s(l);else if(l.type==="chunk"){const{id:h,data:w,error:A}=l,m=i.get(h);i.delete(h),A?m.reject(c(A)):m.fulfil(c(w))}}}})}function mt(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??[])}}let Ae=!1;function bn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=_t(e);if(n&&document.getElementById(n)){const{x:a,y:s}=fe();setTimeout(()=>{const i=history.state;Ae=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ae=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function Oe(e,t,n,r){let a,s;const i=new Promise((c,f)=>{a=c,s=f});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function je(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 kn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function _t(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{In as a,Un as g,En as l,S as p,O as s};
@@ -1 +0,0 @@
1
- import{t as U,l as R,m as Y,E as M,L as B,M as K,N as $,O as C,P as O,v as F,w,x as Z,U as q,y as z,Q as H,A as G,z as Q,R as D,T as V,V as W,W as X,h,X as j,d as y,Y as J,Z as k,_ as ee,$ as L,H as re,a0 as ne,a1 as se,a2 as ae,a3 as A,a4 as ue,a5 as ie,k as te,a6 as fe,a7 as le,a8 as ce,a9 as de,S as oe,aa as _e,ab as ve,ac as N,ad as g}from"./BhjtS45v.js";function Pe(e,r,a=!1){R&&Y();var n=e,i=null,t=null,l=q,o=a?M:0,v=!1;const S=(c,u=!0)=>{v=!0,_(u,c)};var f=null;function P(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var c=l?i:t,u=l?t:i;c&&H(c),u&&G(u,()=>{l?t=null:i=null})}const _=(c,u)=>{if(l===(l=c))return;let x=!1;if(R){const E=B(n)===K;!!l===E&&(n=$(),C(n),O(!1),x=!0)}var b=z(),d=n;if(b&&(f=document.createDocumentFragment(),f.append(d=F())),l?i??=u&&w(()=>u(d)):t??=u&&w(()=>u(d)),b){var m=Z,s=l?i:t,p=l?t:i;s&&m.skipped_effects.delete(s),p&&m.skipped_effects.add(p),m.add_callback(P)}else P();x&&O(!0)};U(()=>{v=!1,r(S),v||_(null,null)},o),R&&(n=Q)}let I=!1,T=Symbol();function xe(e,r,a){const n=a[r]??={store:null,source:V(void 0),unsubscribe:D};if(n.store!==e&&!(T in a))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=D;else{var i=!0;n.unsubscribe=W(e,t=>{i?n.source.v=t:y(n.source,t)}),i=!1}return e&&T in a?X(e):h(n.source)}function Ee(){const e={};function r(){j(()=>{for(var a in e)e[a].unsubscribe();J(e,T,{enumerable:!1,value:!0})})}return[e,r]}function pe(e){var r=I;try{return I=!1,[e(),I]}finally{I=r}}const be={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function Ie(e,r,a){return new Proxy({props:e,exclude:r},be)}const me={get(e,r){if(!e.exclude.includes(r))return h(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,a){if(!(r in e.special)){var n=A;try{g(e.parent_effect),e.special[r]=he({get[r](){return e.props[r]}},r,L)}finally{g(n)}}return e.special[r](a),N(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),N(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function Re(e,r){return new Proxy({props:e,exclude:r,special:{},version:ve(0),parent_effect:A},me)}function he(e,r,a,n){var i=!fe||(a&le)!==0,t=(a&ie)!==0,l=(a&de)!==0,o=n,v=!0,S=()=>(v&&(v=!1,o=l?te(n):n),o),f;if(t){var P=oe in e||_e in e;f=k(e,r)?.set??(P&&r in e?s=>e[r]=s:void 0)}var _,c=!1;t?[_,c]=pe(()=>e[r]):_=e[r],_===void 0&&n!==void 0&&(_=S(),f&&(i&&ee(),f(_)));var u;if(i?u=()=>{var s=e[r];return s===void 0?S():(v=!0,s)}:u=()=>{var s=e[r];return s!==void 0&&(o=void 0),s===void 0?o:s},i&&(a&L)===0)return u;if(f){var x=e.$$legacy;return(function(s,p){return arguments.length>0?((!i||!p||x||c)&&f(p?u():s),s):u()})}var b=!1,d=((a&ce)!==0?re:ne)(()=>(b=!1,u()));t&&h(d);var m=A;return(function(s,p){if(arguments.length>0){const E=p?h(d):i&&t?se(s):s;return y(d,E),b=!0,o!==void 0&&(o=E),s}return ae&&b||(m.f&ue)!==0?d.v:h(d)})}export{xe as a,Pe as i,Re as l,he as p,Ie as r,Ee as s};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/BpWAjoEX.js";export{o as load_css,r as start};