@axium/server 0.14.1 → 0.15.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 (114) hide show
  1. package/LICENSE.md +157 -0
  2. package/build/client/_app/immutable/assets/3.D8lAdddR.css +1 -0
  3. package/build/client/_app/immutable/assets/3.D8lAdddR.css.br +0 -0
  4. package/build/client/_app/immutable/assets/3.D8lAdddR.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/_page.CAgJ6UBm.css +1 -0
  6. package/build/client/_app/immutable/assets/_page.CAgJ6UBm.css.br +0 -0
  7. package/build/client/_app/immutable/assets/_page.CAgJ6UBm.css.gz +0 -0
  8. package/build/client/_app/immutable/chunks/{B62ttlwH.js → BL1ic3F2.js} +1 -1
  9. package/build/client/_app/immutable/chunks/BL1ic3F2.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/BL1ic3F2.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/{Cha99dS9.js → CKHi4K7a.js} +1 -1
  12. package/build/client/_app/immutable/chunks/CKHi4K7a.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/CKHi4K7a.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/CMtTo3Tl.js +3 -0
  15. package/build/client/_app/immutable/chunks/CMtTo3Tl.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/CMtTo3Tl.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{CqpV1bZx.js → CTsE1AKv.js} +1 -1
  18. package/build/client/_app/immutable/chunks/CTsE1AKv.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/CTsE1AKv.js.gz +0 -0
  20. package/build/client/_app/immutable/entry/{app.ay3nXm8w.js → app.BjPp8hMt.js} +2 -2
  21. package/build/client/_app/immutable/entry/app.BjPp8hMt.js.br +0 -0
  22. package/build/client/_app/immutable/entry/app.BjPp8hMt.js.gz +0 -0
  23. package/build/client/_app/immutable/entry/start.DNzAkKc4.js +1 -0
  24. package/build/client/_app/immutable/entry/start.DNzAkKc4.js.br +2 -0
  25. package/build/client/_app/immutable/entry/start.DNzAkKc4.js.gz +0 -0
  26. package/build/client/_app/immutable/nodes/{1.B3IalL2A.js → 1.DNoYGHhE.js} +1 -1
  27. package/build/client/_app/immutable/nodes/1.DNoYGHhE.js.br +0 -0
  28. package/build/client/_app/immutable/nodes/1.DNoYGHhE.js.gz +0 -0
  29. package/build/client/_app/immutable/nodes/3.CJzYDG4d.js +1 -0
  30. package/build/client/_app/immutable/nodes/3.CJzYDG4d.js.br +0 -0
  31. package/build/client/_app/immutable/nodes/3.CJzYDG4d.js.gz +0 -0
  32. package/build/client/_app/immutable/nodes/4.hnI9drIb.js +1 -0
  33. package/build/client/_app/immutable/nodes/4.hnI9drIb.js.br +0 -0
  34. package/build/client/_app/immutable/nodes/4.hnI9drIb.js.gz +0 -0
  35. package/build/client/_app/immutable/nodes/5.DO7cx_t4.js +1 -0
  36. package/build/client/_app/immutable/nodes/5.DO7cx_t4.js.br +0 -0
  37. package/build/client/_app/immutable/nodes/5.DO7cx_t4.js.gz +0 -0
  38. package/build/client/_app/immutable/nodes/6.qvht6etA.js +1 -0
  39. package/build/client/_app/immutable/nodes/6.qvht6etA.js.br +1 -0
  40. package/build/client/_app/immutable/nodes/6.qvht6etA.js.gz +0 -0
  41. package/build/client/_app/version.json +1 -1
  42. package/build/client/_app/version.json.br +0 -0
  43. package/build/client/_app/version.json.gz +0 -0
  44. package/build/server/chunks/{1-B9gjFcU2.js → 1-CaXfLMUE.js} +2 -2
  45. package/build/server/chunks/{1-B9gjFcU2.js.map → 1-CaXfLMUE.js.map} +1 -1
  46. package/build/server/chunks/{3-Bsg_isFt.js → 3-t8h7eWMs.js} +4 -4
  47. package/build/server/chunks/3-t8h7eWMs.js.map +1 -0
  48. package/build/server/chunks/{4-CW1zib5S.js → 4-wNOZ1wQJ.js} +4 -4
  49. package/build/server/chunks/4-wNOZ1wQJ.js.map +1 -0
  50. package/build/server/chunks/{5-CndPbes7.js → 5-u1TZQeXb.js} +2 -2
  51. package/build/server/chunks/{5-CndPbes7.js.map → 5-u1TZQeXb.js.map} +1 -1
  52. package/build/server/chunks/{6--fAkdbHJ.js → 6-_OrK-zud.js} +4 -4
  53. package/build/server/chunks/6-_OrK-zud.js.map +1 -0
  54. package/build/server/chunks/{_page.svelte-ChMlhEWy.js → _page.svelte-BbkaV9bg.js} +20 -20
  55. package/build/server/chunks/_page.svelte-BbkaV9bg.js.map +1 -0
  56. package/build/server/chunks/{_page.svelte-WO_alce7.js → _page.svelte-DDKUcB-D.js} +2 -1
  57. package/build/server/chunks/_page.svelte-DDKUcB-D.js.map +1 -0
  58. package/build/server/chunks/{_page.svelte-B7bm-_ky.js → _page.svelte-Dcq4iR71.js} +2 -1
  59. package/build/server/chunks/_page.svelte-Dcq4iR71.js.map +1 -0
  60. package/build/server/index.js +1 -1
  61. package/build/server/index.js.map +1 -1
  62. package/build/server/manifest.js +6 -6
  63. package/build/server/manifest.js.map +1 -1
  64. package/package.json +2 -1
  65. package/routes/account/+page.svelte +22 -7
  66. package/web/lib/MenuToggle.svelte +58 -0
  67. package/web/lib/WithContextMenu.svelte +39 -0
  68. package/web/lib/index.ts +2 -0
  69. package/build/client/_app/immutable/assets/3.KnidqurY.css +0 -1
  70. package/build/client/_app/immutable/assets/3.KnidqurY.css.br +0 -0
  71. package/build/client/_app/immutable/assets/3.KnidqurY.css.gz +0 -0
  72. package/build/client/_app/immutable/assets/_page.C58W2qGZ.css +0 -1
  73. package/build/client/_app/immutable/assets/_page.C58W2qGZ.css.br +0 -0
  74. package/build/client/_app/immutable/assets/_page.C58W2qGZ.css.gz +0 -0
  75. package/build/client/_app/immutable/assets/_page.FMqx8A_G.css +0 -1
  76. package/build/client/_app/immutable/assets/_page.FMqx8A_G.css.br +0 -0
  77. package/build/client/_app/immutable/assets/_page.FMqx8A_G.css.gz +0 -0
  78. package/build/client/_app/immutable/chunks/B62ttlwH.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/B62ttlwH.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/BgOhX3uA.js +0 -3
  81. package/build/client/_app/immutable/chunks/BgOhX3uA.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/BgOhX3uA.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/Cha99dS9.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/Cha99dS9.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/CqpV1bZx.js.br +0 -0
  86. package/build/client/_app/immutable/chunks/CqpV1bZx.js.gz +0 -0
  87. package/build/client/_app/immutable/entry/app.ay3nXm8w.js.br +0 -0
  88. package/build/client/_app/immutable/entry/app.ay3nXm8w.js.gz +0 -0
  89. package/build/client/_app/immutable/entry/start.DcsnagxY.js +0 -1
  90. package/build/client/_app/immutable/entry/start.DcsnagxY.js.br +0 -0
  91. package/build/client/_app/immutable/entry/start.DcsnagxY.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/1.B3IalL2A.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/1.B3IalL2A.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/3.BSYWRTch.js +0 -1
  95. package/build/client/_app/immutable/nodes/3.BSYWRTch.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/3.BSYWRTch.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/4.JiWSeo-Z.js +0 -1
  98. package/build/client/_app/immutable/nodes/4.JiWSeo-Z.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/4.JiWSeo-Z.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/5.Buxv3Nt-.js +0 -1
  101. package/build/client/_app/immutable/nodes/5.Buxv3Nt-.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/5.Buxv3Nt-.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/6.BIL8H9pR.js +0 -1
  104. package/build/client/_app/immutable/nodes/6.BIL8H9pR.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/6.BIL8H9pR.js.gz +0 -0
  106. package/build/server/chunks/3-Bsg_isFt.js.map +0 -1
  107. package/build/server/chunks/4-CW1zib5S.js.map +0 -1
  108. package/build/server/chunks/6--fAkdbHJ.js.map +0 -1
  109. package/build/server/chunks/_page.svelte-B7bm-_ky.js.map +0 -1
  110. package/build/server/chunks/_page.svelte-ChMlhEWy.js.map +0 -1
  111. package/build/server/chunks/_page.svelte-WO_alce7.js.map +0 -1
  112. /package/build/client/_app/immutable/assets/{4.C58W2qGZ.css → Login.C58W2qGZ.css} +0 -0
  113. /package/build/client/_app/immutable/assets/{4.C58W2qGZ.css.br → Login.C58W2qGZ.css.br} +0 -0
  114. /package/build/client/_app/immutable/assets/{4.C58W2qGZ.css.gz → Login.C58W2qGZ.css.gz} +0 -0
package/LICENSE.md ADDED
@@ -0,0 +1,157 @@
1
+ # GNU LESSER GENERAL PUBLIC LICENSE
2
+
3
+ Version 3, 29 June 2007
4
+
5
+ Copyright (C) 2007 Free Software Foundation, Inc.
6
+ <https://fsf.org/>
7
+
8
+ Everyone is permitted to copy and distribute verbatim copies of this
9
+ license document, but changing it is not allowed.
10
+
11
+ This version of the GNU Lesser General Public License incorporates the
12
+ terms and conditions of version 3 of the GNU General Public License,
13
+ supplemented by the additional permissions listed below.
14
+
15
+ ## 0. Additional Definitions.
16
+
17
+ As used herein, "this License" refers to version 3 of the GNU Lesser
18
+ General Public License, and the "GNU GPL" refers to version 3 of the
19
+ GNU General Public License.
20
+
21
+ "The Library" refers to a covered work governed by this License, other
22
+ than an Application or a Combined Work as defined below.
23
+
24
+ An "Application" is any work that makes use of an interface provided
25
+ by the Library, but which is not otherwise based on the Library.
26
+ Defining a subclass of a class defined by the Library is deemed a mode
27
+ of using an interface provided by the Library.
28
+
29
+ A "Combined Work" is a work produced by combining or linking an
30
+ Application with the Library. The particular version of the Library
31
+ with which the Combined Work was made is also called the "Linked
32
+ Version".
33
+
34
+ The "Minimal Corresponding Source" for a Combined Work means the
35
+ Corresponding Source for the Combined Work, excluding any source code
36
+ for portions of the Combined Work that, considered in isolation, are
37
+ based on the Application, and not on the Linked Version.
38
+
39
+ The "Corresponding Application Code" for a Combined Work means the
40
+ object code and/or source code for the Application, including any data
41
+ and utility programs needed for reproducing the Combined Work from the
42
+ Application, but excluding the System Libraries of the Combined Work.
43
+
44
+ ## 1. Exception to Section 3 of the GNU GPL.
45
+
46
+ You may convey a covered work under sections 3 and 4 of this License
47
+ without being bound by section 3 of the GNU GPL.
48
+
49
+ ## 2. Conveying Modified Versions.
50
+
51
+ If you modify a copy of the Library, and, in your modifications, a
52
+ facility refers to a function or data to be supplied by an Application
53
+ that uses the facility (other than as an argument passed when the
54
+ facility is invoked), then you may convey a copy of the modified
55
+ version:
56
+
57
+ - a) under this License, provided that you make a good faith effort
58
+ to ensure that, in the event an Application does not supply the
59
+ function or data, the facility still operates, and performs
60
+ whatever part of its purpose remains meaningful, or
61
+ - b) under the GNU GPL, with none of the additional permissions of
62
+ this License applicable to that copy.
63
+
64
+ ## 3. Object Code Incorporating Material from Library Header Files.
65
+
66
+ The object code form of an Application may incorporate material from a
67
+ header file that is part of the Library. You may convey such object
68
+ code under terms of your choice, provided that, if the incorporated
69
+ material is not limited to numerical parameters, data structure
70
+ layouts and accessors, or small macros, inline functions and templates
71
+ (ten or fewer lines in length), you do both of the following:
72
+
73
+ - a) Give prominent notice with each copy of the object code that
74
+ the Library is used in it and that the Library and its use are
75
+ covered by this License.
76
+ - b) Accompany the object code with a copy of the GNU GPL and this
77
+ license document.
78
+
79
+ ## 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that, taken
82
+ together, effectively do not restrict modification of the portions of
83
+ the Library contained in the Combined Work and reverse engineering for
84
+ debugging such modifications, if you also do each of the following:
85
+
86
+ - a) Give prominent notice with each copy of the Combined Work that
87
+ the Library is used in it and that the Library and its use are
88
+ covered by this License.
89
+ - b) Accompany the Combined Work with a copy of the GNU GPL and this
90
+ license document.
91
+ - c) For a Combined Work that displays copyright notices during
92
+ execution, include the copyright notice for the Library among
93
+ these notices, as well as a reference directing the user to the
94
+ copies of the GNU GPL and this license document.
95
+ - d) Do one of the following:
96
+ - 0) Convey the Minimal Corresponding Source under the terms of
97
+ this License, and the Corresponding Application Code in a form
98
+ suitable for, and under terms that permit, the user to
99
+ recombine or relink the Application with a modified version of
100
+ the Linked Version to produce a modified Combined Work, in the
101
+ manner specified by section 6 of the GNU GPL for conveying
102
+ Corresponding Source.
103
+ - 1) Use a suitable shared library mechanism for linking with
104
+ the Library. A suitable mechanism is one that (a) uses at run
105
+ time a copy of the Library already present on the user's
106
+ computer system, and (b) will operate properly with a modified
107
+ version of the Library that is interface-compatible with the
108
+ Linked Version.
109
+ - e) Provide Installation Information, but only if you would
110
+ otherwise be required to provide such information under section 6
111
+ of the GNU GPL, and only to the extent that such information is
112
+ necessary to install and execute a modified version of the
113
+ Combined Work produced by recombining or relinking the Application
114
+ with a modified version of the Linked Version. (If you use option
115
+ 4d0, the Installation Information must accompany the Minimal
116
+ Corresponding Source and Corresponding Application Code. If you
117
+ use option 4d1, you must provide the Installation Information in
118
+ the manner specified by section 6 of the GNU GPL for conveying
119
+ Corresponding Source.)
120
+
121
+ ## 5. Combined Libraries.
122
+
123
+ You may place library facilities that are a work based on the Library
124
+ side by side in a single library together with other library
125
+ facilities that are not Applications and are not covered by this
126
+ License, and convey such a combined library under terms of your
127
+ choice, if you do both of the following:
128
+
129
+ - a) Accompany the combined library with a copy of the same work
130
+ based on the Library, uncombined with any other library
131
+ facilities, conveyed under the terms of this License.
132
+ - b) Give prominent notice with the combined library that part of it
133
+ is a work based on the Library, and explaining where to find the
134
+ accompanying uncombined form of the same work.
135
+
136
+ ## 6. Revised Versions of the GNU Lesser General Public License.
137
+
138
+ The Free Software Foundation may publish revised and/or new versions
139
+ of the GNU Lesser General Public License from time to time. Such new
140
+ versions will be similar in spirit to the present version, but may
141
+ differ in detail to address new problems or concerns.
142
+
143
+ Each version is given a distinguishing version number. If the Library
144
+ as you received it specifies that a certain numbered version of the
145
+ GNU Lesser General Public License "or any later version" applies to
146
+ it, you have the option of following the terms and conditions either
147
+ of that published version or of any later version published by the
148
+ Free Software Foundation. If the Library as you received it does not
149
+ specify a version number of the GNU Lesser General Public License, you
150
+ may choose any version of the GNU Lesser General Public License ever
151
+ published by the Free Software Foundation.
152
+
153
+ If the Library as you received it specifies that a proxy can decide
154
+ whether future versions of the GNU Lesser General Public License shall
155
+ apply, that proxy's public statement of acceptance of any version is
156
+ permanent authorization for you to choose that version for the
157
+ Library.
@@ -0,0 +1 @@
1
+ svg.svelte-ylmrta{width:var(--size, 1em);height:var(--size, 1em);display:inline-block;fill:var(--fill, #bbb)}button.svelte-g409dh{position:relative;display:inline-block;width:1em;height:1em;border:none;background:transparent}span.svelte-g409dh{position:absolute;top:0;right:0;bottom:0;left:0}#pfp-container.svelte-11mz0yj{width:100px;height:100px;margin-top:3em}#pfp-container.svelte-11mz0yj .MenuToggle{float:right;position:relative;top:-24px}#pfp.svelte-11mz0yj{width:100px;height:100px;border-radius:50%;border:1px solid #8888}.greeting.svelte-11mz0yj{font-size:2em}.signout.svelte-11mz0yj{margin-top:2em}.section.svelte-11mz0yj{width:50%;padding-top:4em}.section.svelte-11mz0yj>div:where(.svelte-11mz0yj):has(+div:where(.svelte-11mz0yj)){border-bottom:1px solid #8888}.section.svelte-11mz0yj .item:where(.svelte-11mz0yj){display:grid;align-items:center;width:100%;gap:1em;text-wrap:nowrap;border-top:1px solid #8888;padding-bottom:1em}.info.svelte-11mz0yj{grid-template-columns:10em 1fr 2em}.info.svelte-11mz0yj>:where(.svelte-11mz0yj):first-child{margin-left:1em}.info.svelte-11mz0yj>:where(.svelte-11mz0yj):nth-child(2){text-overflow:ellipsis;overflow:hidden}.passkey.svelte-11mz0yj{grid-template-columns:1em 1em 1fr 1fr 1em 1em}.passkey.svelte-11mz0yj dfn:where(.svelte-11mz0yj):not(.disabled){cursor:help}.session.svelte-11mz0yj{grid-template-columns:1fr 1fr 1fr 1em}.session.svelte-11mz0yj .current:where(.svelte-11mz0yj){border-radius:2em;padding:0 .5em;background-color:#337}.session.svelte-11mz0yj .elevated:where(.svelte-11mz0yj){border-radius:2em;padding:0 .5em;background-color:#733}
@@ -0,0 +1 @@
1
+ svg.svelte-ylmrta{width:var(--size, 1em);height:var(--size, 1em);display:inline-block;fill:var(--fill, #bbb)}button.svelte-g409dh{position:relative;display:inline-block;width:1em;height:1em;border:none;background:transparent}span.svelte-g409dh{position:absolute;inset:0}#pfp-container.svelte-11mz0yj{width:100px;height:100px;margin-top:3em;.MenuToggle{float:right;position:relative;top:-24px}}#pfp.svelte-11mz0yj{width:100px;height:100px;border-radius:50%;border:1px solid #8888}.greeting.svelte-11mz0yj{font-size:2em}.signout.svelte-11mz0yj{margin-top:2em}.section.svelte-11mz0yj{width:50%;padding-top:4em;>div:where(.svelte-11mz0yj):has(+div:where(.svelte-11mz0yj)){border-bottom:1px solid #8888}}.section.svelte-11mz0yj .item:where(.svelte-11mz0yj){display:grid;align-items:center;width:100%;gap:1em;text-wrap:nowrap;border-top:1px solid #8888;padding-bottom:1em}.info.svelte-11mz0yj{grid-template-columns:10em 1fr 2em;>:where(.svelte-11mz0yj):first-child{margin-left:1em}>:where(.svelte-11mz0yj):nth-child(2){text-overflow:ellipsis;overflow:hidden}}.passkey.svelte-11mz0yj{grid-template-columns:1em 1em 1fr 1fr 1em 1em;dfn:where(.svelte-11mz0yj):not(.disabled){cursor:help}}.session.svelte-11mz0yj{grid-template-columns:1fr 1fr 1fr 1em;.current:where(.svelte-11mz0yj){border-radius:2em;padding:0 .5em;background-color:#337}.elevated:where(.svelte-11mz0yj){border-radius:2em;padding:0 .5em;background-color:#733}}
@@ -1 +1 @@
1
- import{s as e,p as r}from"./BgOhX3uA.js";const t={get error(){return r.error},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
1
+ import{s as e,p as r}from"./CMtTo3Tl.js";const t={get error(){return r.error},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
@@ -1,4 +1,4 @@
1
- import"./CWj6FrbW.js";import{G as bu,g as Ti,o as ht,m as Ai,D as Zi,h as ee,a2 as _u,aL as $u,aM as yu,l as xu,O as wu,L as bt,aN as ku,A as si,aO as zu,aP as Iu,aQ as Su,aR as ju,aS as Ou,p as Ri,b as je,a as be,d as Ci,e as _e,r as $e,ah as Nu,f as Uu,n as pi,s as ge,as as Pu,t as di,N as dt}from"./CeESZvTN.js";import{i as Eu,c as Du,d as Li,n as Tu,e as Au,f as Zu,s as mi}from"./CtXEx3cs.js";import{s as Ze}from"./BmyAb9RG.js";import{p as Y,b as Ru,r as Mi,s as Cu,i as fi}from"./1J1OrtJW.js";import{g as Lu}from"./BgOhX3uA.js";import{p as vi}from"./B62ttlwH.js";function Mu(e,n){if(n){const i=document.body;e.autofocus=!0,bu(()=>{document.activeElement===i&&e.focus()})}}let gi=!1;function Ju(){gi||(gi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var n;if(!e.defaultPrevented)for(const i of e.target.elements)(n=i.__on_r)==null||n.call(i)})},{capture:!0}))}function Fu(e,n){var i=void 0,o;Ti(()=>{i!==(i=n())&&(o&&(ht(o),o=null),i&&(o=Ai(()=>{Zi(()=>i(e))})))})}function Ji(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var t=e.length;for(n=0;n<t;n++)e[n]&&(i=Ji(e[n]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function Ku(){for(var e,n,i=0,o="",t=arguments.length;i<t;i++)(e=arguments[i])&&(n=Ji(e))&&(o&&(o+=" "),o+=n);return o}function Fi(e){return typeof e=="object"?Ku(e):e??""}const hi=[...`
1
+ import"./CWj6FrbW.js";import{G as bu,g as Ti,o as ht,m as Ai,D as Zi,h as ee,a2 as _u,aL as $u,aM as yu,l as xu,O as wu,L as bt,aN as ku,A as si,aO as zu,aP as Iu,aQ as Su,aR as ju,aS as Ou,p as Ri,b as je,a as be,d as Ci,e as _e,r as $e,ah as Nu,f as Uu,n as pi,s as ge,as as Pu,t as di,N as dt}from"./CeESZvTN.js";import{i as Eu,c as Du,d as Li,n as Tu,e as Au,f as Zu,s as mi}from"./CtXEx3cs.js";import{s as Ze}from"./BmyAb9RG.js";import{p as Y,b as Ru,r as Mi,s as Cu,i as fi}from"./1J1OrtJW.js";import{g as Lu}from"./CMtTo3Tl.js";import{p as vi}from"./BL1ic3F2.js";function Mu(e,n){if(n){const i=document.body;e.autofocus=!0,bu(()=>{document.activeElement===i&&e.focus()})}}let gi=!1;function Ju(){gi||(gi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var n;if(!e.defaultPrevented)for(const i of e.target.elements)(n=i.__on_r)==null||n.call(i)})},{capture:!0}))}function Fu(e,n){var i=void 0,o;Ti(()=>{i!==(i=n())&&(o&&(ht(o),o=null),i&&(o=Ai(()=>{Zi(()=>i(e))})))})}function Ji(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var t=e.length;for(n=0;n<t;n++)e[n]&&(i=Ji(e[n]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function Ku(){for(var e,n,i=0,o="",t=arguments.length;i<t;i++)(e=arguments[i])&&(n=Ji(e))&&(o&&(o+=" "),o+=n);return o}function Fi(e){return typeof e=="object"?Ku(e):e??""}const hi=[...`
2
2
  \r\f \v\uFEFF`];function qu(e,n,i){var o=e==null?"":""+e;if(n&&(o=o?o+" "+n:n),i){for(var t in i)if(i[t])o=o?o+" "+t:t;else if(o.length)for(var r=t.length,a=0;(a=o.indexOf(t,a))>=0;){var c=a+r;(a===0||hi.includes(o[a-1]))&&(c===o.length||hi.includes(o[c]))?o=(a===0?"":o.substring(0,a))+o.substring(c+1):a=c}}return o===""?null:o}function bi(e,n=!1){var i=n?" !important;":";",o="";for(var t in e){var r=e[t];r!=null&&r!==""&&(o+=" "+t+": "+r+i)}return o}function mt(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Vu(e,n){if(n){var i="",o,t;if(Array.isArray(n)?(o=n[0],t=n[1]):o=n,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,a=0,c=!1,u=[];o&&u.push(...Object.keys(o).map(mt)),t&&u.push(...Object.keys(t).map(mt));var s=0,$=-1;const x=e.length;for(var v=0;v<x;v++){var _=e[v];if(c?_==="/"&&e[v-1]==="*"&&(c=!1):r?r===_&&(r=!1):_==="/"&&e[v+1]==="*"?c=!0:_==='"'||_==="'"?r=_:_==="("?a++:_===")"&&a--,!c&&r===!1&&a===0){if(_===":"&&$===-1)$=v;else if(_===";"||v===x-1){if($!==-1){var z=mt(e.substring(s,$).trim());if(!u.includes(z)){_!==";"&&v++;var f=e.substring(s,v).trim();i+=" "+f+";"}}s=v+1,$=-1}}}}return o&&(i+=bi(o)),t&&(i+=bi(t,!0)),i=i.trim(),i===""?null:i}return e==null?null:String(e)}function Ki(e,n,i,o,t,r){var a=e.__className;if(ee||a!==i||a===void 0){var c=qu(i,o,r);(!ee||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):n?e.className=c:e.setAttribute("class",c)),e.__className=i}else if(r&&t!==r)for(var u in r){var s=!!r[u];(t==null||s!==!!t[u])&&e.classList.toggle(u,s)}return r}function ft(e,n={},i,o){for(var t in i){var r=i[t];n[t]!==r&&(i[t]==null?e.style.removeProperty(t):e.style.setProperty(t,r,o))}}function Gu(e,n,i,o){var t=e.__style;if(ee||t!==n){var r=Vu(n,o);(!ee||r!==e.getAttribute("style"))&&(r==null?e.removeAttribute("style"):e.style.cssText=r),e.__style=n}else o&&(Array.isArray(o)?(ft(e,i==null?void 0:i[0],o[0]),ft(e,i==null?void 0:i[1],o[1],"important")):ft(e,i,o));return o}function _t(e,n,i=!1){if(e.multiple){if(n==null)return;if(!_u(n))return $u();for(var o of e.options)o.selected=n.includes(_i(o));return}for(o of e.options){var t=_i(o);if(yu(t,n)){o.selected=!0;return}}(!i||n!==void 0)&&(e.selectedIndex=-1)}function Wu(e){var n=new MutationObserver(()=>{_t(e,e.__value)});n.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),xu(()=>{n.disconnect()})}function _i(e){return"__value"in e?e.__value:e.value}const De=Symbol("class"),he=Symbol("style"),qi=Symbol("is custom element"),Vi=Symbol("is html");function im(e){if(ee){var n=!1,i=()=>{if(!n){if(n=!0,e.hasAttribute("value")){var o=e.value;Re(e,"value",null),e.value=o}if(e.hasAttribute("checked")){var t=e.checked;Re(e,"checked",null),e.checked=t}}};e.__on_r=i,ju(i),Ju()}}function rm(e,n){var i=It(e);i.value===(i.value=n??void 0)||e.value===n&&(n!==0||e.nodeName!=="PROGRESS")||(e.value=n??"")}function Bu(e,n){n?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Re(e,n,i,o){var t=It(e);ee&&(t[n]=e.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&e.nodeName==="LINK")||t[n]!==(t[n]=i)&&(n==="loading"&&(e[Su]=i),i==null?e.removeAttribute(n):typeof i!="string"&&Gi(e).includes(n)?e[n]=i:e.setAttribute(n,i))}function Xu(e,n,i,o,t=!1){var r=It(e),a=r[qi],c=!r[Vi];let u=ee&&a;u&&si(!1);var s=n||{},$=e.tagName==="OPTION";for(var v in n)v in i||(i[v]=null);i.class?i.class=Fi(i.class):i.class=null,i[he]&&(i.style??(i.style=null));var _=Gi(e);for(const d in i){let y=i[d];if($&&d==="value"&&y==null){e.value=e.__value="",s[d]=y;continue}if(d==="class"){var z=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ki(e,z,y,o,n==null?void 0:n[De],i[De]),s[d]=y,s[De]=i[De];continue}if(d==="style"){Gu(e,y,n==null?void 0:n[he],i[he]),s[d]=y,s[he]=i[he];continue}var f=s[d];if(!(y===f&&!(y===void 0&&e.hasAttribute(d)))){s[d]=y;var x=d[0]+d[1];if(x!=="$$")if(x==="on"){const k={},O="$$"+d;let N=d.slice(2);var h=Au(N);if(Eu(N)&&(N=N.slice(0,-7),k.capture=!0),!h&&f){if(y!=null)continue;e.removeEventListener(N,s[O],k),s[O]=null}if(y!=null)if(h)e[`__${N}`]=y,Li([N]);else{let L=function(ve){s[d].call(this,ve)};s[O]=Du(N,e,L,k)}else h&&(e[`__${N}`]=void 0)}else if(d==="style")Re(e,d,y);else if(d==="autofocus")Mu(e,!!y);else if(!a&&(d==="__value"||d==="value"&&y!=null))e.value=e.__value=y;else if(d==="selected"&&$)Bu(e,y);else{var p=d;c||(p=Tu(p));var g=p==="defaultValue"||p==="defaultChecked";if(y==null&&!a&&!g)if(r[d]=null,p==="value"||p==="checked"){let k=e;const O=n===void 0;if(p==="value"){let N=k.defaultValue;k.removeAttribute(p),k.defaultValue=N,k.value=k.__value=O?N:null}else{let N=k.defaultChecked;k.removeAttribute(p),k.defaultChecked=N,k.checked=O?N:!1}}else e.removeAttribute(d);else g||_.includes(p)&&(a||typeof y!="string")?e[p]=y:typeof y!="function"&&Re(e,p,y)}}}return u&&si(!0),s}function Yu(e,n,i=[],o,t=!1,r=wu){const a=i.map(r);var c=void 0,u={},s=e.nodeName==="SELECT",$=!1;if(Ti(()=>{var _=n(...a.map(bt)),z=Xu(e,c,_,o,t);$&&s&&"value"in _&&_t(e,_.value);for(let x of Object.getOwnPropertySymbols(u))_[x]||ht(u[x]);for(let x of Object.getOwnPropertySymbols(_)){var f=_[x];x.description===ku&&(!c||f!==c[x])&&(u[x]&&ht(u[x]),u[x]=Ai(()=>Fu(e,()=>f))),z[x]=f}c=z}),s){var v=e;Zi(()=>{_t(v,c.value,!0),Wu(v)})}$=!0}function It(e){return e.__attributes??(e.__attributes={[qi]:e.nodeName.includes("-"),[Vi]:e.namespaceURI===zu})}var $i=new Map;function Gi(e){var n=$i.get(e.nodeName);if(n)return n;$i.set(e.nodeName,n=[]);for(var i,o=e,t=Element.prototype;t!==o;){i=Ou(o);for(var r in i)i[r].set&&n.push(r);o=Iu(o)}return n}var Hu=je("<dialog><!></dialog>");function Qu(e,n){Ri(n,!0);let i=Y(n,"dialog",15),o=Mi(n,["$$slots","$$events","$$legacy","children","dialog"]);var t=Hu();Yu(t,()=>({...o}),void 0,"svelte-1yuzruq");var r=_e(t);Ze(r,()=>n.children),$e(t),Ru(t,a=>i(a),()=>i()),be(e,t),Ci()}var el=je('<button type="submit"> </button>'),tl=je('<div class="error"> </div>'),nl=(e,n)=>n().close(),il=je('<div class="actions svelte-p6pltw"><button type="button">Cancel</button> <!></div>'),rl=je('<!> <form class="main" method="dialog"><!> <!> <!></form> <!>',1);function om(e,n){Ri(n,!0);const i=f=>{var x=el(),h=_e(x,!0);$e(x),di(()=>{Ki(x,1,Fi(["submit",s()&&"danger"])),mi(h,r())}),be(f,x)};function o(){const f=vi.url.searchParams.get("after");if(!f||f==vi.url.pathname)return"/";for(const x of["/api/"])if(f.startsWith(x))return"/";return f||"/"}let t=Y(n,"dialog",15),r=Y(n,"submitText",3,"Submit"),a=Y(n,"cancel",3,()=>{}),c=Y(n,"submit",3,f=>Promise.resolve()),u=Y(n,"pageMode",3,!1),s=Y(n,"submitDanger",3,!1),$=Mi(n,["$$slots","$$events","$$legacy","children","dialog","submitText","cancel","submit","pageMode","submitDanger","header","footer"]),v=Pu(null);Nu(()=>{u()&&t().showModal()});function _(f){f.preventDefault(),a()()}function z(f){f.preventDefault();const x=Object.fromEntries(new FormData(f.currentTarget));c()(x).then(h=>{u()?Lu(o()):t().close()}).catch(h=>{h?typeof h=="object"&&"message"in h?dt(v,h.message,!0):dt(v,h,!0):dt(v,"An unknown error occurred")})}Qu(e,Cu({onclose:_},()=>$,{get dialog(){return t()},set dialog(f){t(f)},children:(f,x)=>{var h=rl(),p=Uu(h);Ze(p,()=>n.header??pi);var g=ge(p,2),d=_e(g);{var y=q=>{var X=tl(),Ee=_e(X,!0);$e(X),di(()=>mi(Ee,bt(v))),be(q,X)};fi(d,q=>{bt(v)&&q(y)})}var k=ge(d,2);Ze(k,()=>n.children);var O=ge(k,2);{var N=q=>{i(q)},L=q=>{var X=il(),Ee=_e(X);Ee.__click=[nl,t];var hu=ge(Ee,2);i(hu),$e(X),be(q,X)};fi(O,q=>{u()?q(N):q(L,!1)})}$e(g);var ve=ge(g,2);Ze(ve,()=>n.footer??pi),Zu("submit",g,z),be(f,h)},$$slots:{default:!0}})),Ci()}Li(["click"]);function V(e){const n=new Uint8Array(e);let i="";for(const t of n)i+=String.fromCharCode(t);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Ce(e){const n=e.replace(/-/g,"+").replace(/_/g,"/"),i=(4-n.length%4)%4,o=n.padEnd(n.length+i,"="),t=atob(o),r=new ArrayBuffer(t.length),a=new Uint8Array(r);for(let c=0;c<t.length;c++)a[c]=t.charCodeAt(c);return r}function St(){return ol.stubThis((globalThis==null?void 0:globalThis.PublicKeyCredential)!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const ol={stubThis:e=>e};function Wi(e){const{id:n}=e;return{...e,id:Ce(n),transports:e.transports}}function Bi(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class Z extends Error{constructor({message:n,code:i,cause:o,name:t}){super(n,{cause:o}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t??o.name,this.code=i}}function al({error:e,options:n}){var o,t,r;const{publicKey:i}=n;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(n.signal instanceof AbortSignal)return new Z({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((o=i.authenticatorSelection)==null?void 0:o.requireResidentKey)===!0)return new Z({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(n.mediation==="conditional"&&((t=i.authenticatorSelection)==null?void 0:t.userVerification)==="required")return new Z({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((r=i.authenticatorSelection)==null?void 0:r.userVerification)==="required")return new Z({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Z({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Z({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(c=>c.type==="public-key").length===0?new Z({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Z({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=globalThis.location.hostname;if(Bi(a)){if(i.rp.id!==a)return new Z({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Z({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Z({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Z({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}class cl{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const n=new AbortController;return this.controller=n,n.signal}cancelCeremony(){if(this.controller){const n=new Error("Manually cancelling existing WebAuthn API call");n.name="AbortError",this.controller.abort(n),this.controller=void 0}}}const Xi=new cl,ul=["cross-platform","platform"];function Yi(e){if(e&&!(ul.indexOf(e)<0))return e}async function Hi(e){var f;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:n,useAutoRegister:i=!1}=e;if(!St())throw new Error("WebAuthn is not supported in this browser");const o={...n,challenge:Ce(n.challenge),user:{...n.user,id:Ce(n.user.id)},excludeCredentials:(f=n.excludeCredentials)==null?void 0:f.map(Wi)},t={};i&&(t.mediation="conditional"),t.publicKey=o,t.signal=Xi.createNewAbortSignal();let r;try{r=await navigator.credentials.create(t)}catch(x){throw al({error:x,options:t})}if(!r)throw new Error("Registration was not completed");const{id:a,rawId:c,response:u,type:s}=r;let $;typeof u.getTransports=="function"&&($=u.getTransports());let v;if(typeof u.getPublicKeyAlgorithm=="function")try{v=u.getPublicKeyAlgorithm()}catch(x){vt("getPublicKeyAlgorithm()",x)}let _;if(typeof u.getPublicKey=="function")try{const x=u.getPublicKey();x!==null&&(_=V(x))}catch(x){vt("getPublicKey()",x)}let z;if(typeof u.getAuthenticatorData=="function")try{z=V(u.getAuthenticatorData())}catch(x){vt("getAuthenticatorData()",x)}return{id:a,rawId:V(c),response:{attestationObject:V(u.attestationObject),clientDataJSON:V(u.clientDataJSON),transports:$,publicKeyAlgorithm:v,publicKey:_,authenticatorData:z},type:s,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:Yi(r.authenticatorAttachment)}}function vt(e,n){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
3
3
  `,n)}function ll(){if(!St())return gt.stubThis(new Promise(n=>n(!1)));const e=globalThis.PublicKeyCredential;return(e==null?void 0:e.isConditionalMediationAvailable)===void 0?gt.stubThis(new Promise(n=>n(!1))):gt.stubThis(e.isConditionalMediationAvailable())}const gt={stubThis:e=>e};function sl({error:e,options:n}){const{publicKey:i}=n;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(n.signal instanceof AbortSignal)return new Z({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Z({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const o=globalThis.location.hostname;if(Bi(o)){if(i.rpId!==o)return new Z({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Z({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Z({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}async function jt(e){var z,f;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:n,useBrowserAutofill:i=!1,verifyBrowserAutofillInput:o=!0}=e;if(!St())throw new Error("WebAuthn is not supported in this browser");let t;((z=n.allowCredentials)==null?void 0:z.length)!==0&&(t=(f=n.allowCredentials)==null?void 0:f.map(Wi));const r={...n,challenge:Ce(n.challenge),allowCredentials:t},a={};if(i){if(!await ll())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&o)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');a.mediation="conditional",r.allowCredentials=[]}a.publicKey=r,a.signal=Xi.createNewAbortSignal();let c;try{c=await navigator.credentials.get(a)}catch(x){throw sl({error:x,options:a})}if(!c)throw new Error("Authentication was not completed");const{id:u,rawId:s,response:$,type:v}=c;let _;return $.userHandle&&(_=V($.userHandle)),{id:u,rawId:V(s),response:{authenticatorData:V($.authenticatorData),clientDataJSON:V($.clientDataJSON),signature:V($.signature),userHandle:_},type:v,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:Yi(c.authenticatorAttachment)}}const Qi=Object.freeze({status:"aborted"});function l(e,n,i){function o(c,u){var s;Object.defineProperty(c,"_zod",{value:c._zod??{},enumerable:!1}),(s=c._zod).traits??(s.traits=new Set),c._zod.traits.add(e),n(c,u);for(const $ in a.prototype)$ in c||Object.defineProperty(c,$,{value:a.prototype[$].bind(c)});c._zod.constr=a,c._zod.def=u}const t=(i==null?void 0:i.Parent)??Object;class r extends t{}Object.defineProperty(r,"name",{value:e});function a(c){var u;const s=i!=null&&i.Parent?new r:this;o(s,c),(u=s._zod).deferred??(u.deferred=[]);for(const $ of s._zod.deferred)$();return s}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:c=>{var u,s;return i!=null&&i.Parent&&c instanceof i.Parent?!0:(s=(u=c==null?void 0:c._zod)==null?void 0:u.traits)==null?void 0:s.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}const er=Symbol("zod_brand");class le extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Le={};function R(e){return e&&Object.assign(Le,e),Le}function pl(e){return e}function dl(e){return e}function ml(e){}function fl(e){throw new Error}function vl(e){}function Ot(e){const n=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>n.indexOf(+o)===-1).map(([o,t])=>t)}function b(e,n="|"){return e.map(i=>S(i)).join(n)}function tr(e,n){return typeof n=="bigint"?n.toString():n}function Xe(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function ie(e){return e==null}function Ye(e){const n=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(n,i)}function nr(e,n){const i=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,t=i>o?i:o,r=Number.parseInt(e.toFixed(t).replace(".","")),a=Number.parseInt(n.toFixed(t).replace(".",""));return r%a/10**t}function U(e,n,i){Object.defineProperty(e,n,{get(){{const o=i();return e[n]=o,o}},set(o){Object.defineProperty(e,n,{value:o})},configurable:!0})}function me(e,n,i){Object.defineProperty(e,n,{value:i,writable:!0,enumerable:!0,configurable:!0})}function gl(e,n){return n?n.reduce((i,o)=>i==null?void 0:i[o],e):e}function hl(e){const n=Object.keys(e),i=n.map(o=>e[o]);return Promise.all(i).then(o=>{const t={};for(let r=0;r<n.length;r++)t[n[r]]=o[r];return t})}function bl(e=10){const n="abcdefghijklmnopqrstuvwxyz";let i="";for(let o=0;o<e;o++)i+=n[Math.floor(Math.random()*n.length)];return i}function ae(e){return JSON.stringify(e)}const Nt=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function we(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ir=Xe(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function ke(e){if(we(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(we(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function _l(e){let n=0;for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&n++;return n}const $l=e=>{const n=typeof e;switch(n){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${n}`)}},Me=new Set(["string","number","symbol"]),rr=new Set(["string","number","bigint","boolean","symbol","undefined"]);function re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G(e,n,i){const o=new e._zod.constr(n??e._zod.def);return(!n||i!=null&&i.parent)&&(o._zod.parent=e),o}function m(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if((n==null?void 0:n.message)!==void 0){if((n==null?void 0:n.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function yl(e){let n;return new Proxy({},{get(i,o,t){return n??(n=e()),Reflect.get(n,o,t)},set(i,o,t,r){return n??(n=e()),Reflect.set(n,o,t,r)},has(i,o){return n??(n=e()),Reflect.has(n,o)},deleteProperty(i,o){return n??(n=e()),Reflect.deleteProperty(n,o)},ownKeys(i){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(i,o){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,o)},defineProperty(i,o,t){return n??(n=e()),Reflect.defineProperty(n,o,t)}})}function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function or(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const ar={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},cr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ur(e,n){const i={},o=e._zod.def;for(const t in n){if(!(t in o.shape))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=o.shape[t])}return G(e,{...e._zod.def,shape:i,checks:[]})}function lr(e,n){const i={...e._zod.def.shape},o=e._zod.def;for(const t in n){if(!(t in o.shape))throw new Error(`Unrecognized key: "${t}"`);n[t]&&delete i[t]}return G(e,{...e._zod.def,shape:i,checks:[]})}function sr(e,n){if(!ke(n))throw new Error("Invalid input to extend: expected a plain object");const i={...e._zod.def,get shape(){const o={...e._zod.def.shape,...n};return me(this,"shape",o),o},checks:[]};return G(e,i)}function pr(e,n){return G(e,{...e._zod.def,get shape(){const i={...e._zod.def.shape,...n._zod.def.shape};return me(this,"shape",i),i},catchall:n._zod.def.catchall,checks:[]})}function dr(e,n,i){const o=n._zod.def.shape,t={...o};if(i)for(const r in i){if(!(r in o))throw new Error(`Unrecognized key: "${r}"`);i[r]&&(t[r]=e?new e({type:"optional",innerType:o[r]}):o[r])}else for(const r in o)t[r]=e?new e({type:"optional",innerType:o[r]}):o[r];return G(n,{...n._zod.def,shape:t,checks:[]})}function mr(e,n,i){const o=n._zod.def.shape,t={...o};if(i)for(const r in i){if(!(r in t))throw new Error(`Unrecognized key: "${r}"`);i[r]&&(t[r]=new e({type:"nonoptional",innerType:o[r]}))}else for(const r in o)t[r]=new e({type:"nonoptional",innerType:o[r]});return G(n,{...n._zod.def,shape:t,checks:[]})}function ue(e,n=0){var i;for(let o=n;o<e.issues.length;o++)if(((i=e.issues[o])==null?void 0:i.continue)!==!0)return!0;return!1}function J(e,n){return n.map(i=>{var o;return(o=i).path??(o.path=[]),i.path.unshift(e),i})}function ye(e){return typeof e=="string"?e:e==null?void 0:e.message}function K(e,n,i){var t,r,a,c,u,s;const o={...e,path:e.path??[]};if(!e.message){const $=ye((a=(r=(t=e.inst)==null?void 0:t._zod.def)==null?void 0:r.error)==null?void 0:a.call(r,e))??ye((c=n==null?void 0:n.error)==null?void 0:c.call(n,e))??ye((u=i.customError)==null?void 0:u.call(i,e))??ye((s=i.localeError)==null?void 0:s.call(i,e))??"Invalid input";o.message=$}return delete o.inst,delete o.continue,n!=null&&n.reportInput||delete o.input,o}function He(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Qe(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function se(...e){const[n,i,o]=e;return typeof n=="string"?{message:n,code:"custom",input:i,inst:o}:{...n}}function xl(e){return Object.entries(e).filter(([n,i])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}class wl{constructor(...n){}}const kl=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:cr,Class:wl,NUMBER_FORMAT_RANGES:ar,aborted:ue,allowsEval:ir,assert:vl,assertEqual:pl,assertIs:ml,assertNever:fl,assertNotEqual:dl,assignProp:me,cached:Xe,captureStackTrace:Nt,cleanEnum:xl,cleanRegex:Ye,clone:G,createTransparentProxy:yl,defineLazy:U,esc:ae,escapeRegex:re,extend:sr,finalizeIssue:K,floatSafeRemainder:nr,getElementAtPath:gl,getEnumValues:Ot,getLengthableOrigin:Qe,getParsedType:$l,getSizableOrigin:He,isObject:we,isPlainObject:ke,issue:se,joinValues:b,jsonStringifyReplacer:tr,merge:pr,normalizeParams:m,nullish:ie,numKeys:_l,omit:lr,optionalKeys:or,partial:dr,pick:ur,prefixIssues:J,primitiveTypes:rr,promiseAllObject:hl,propertyKeyTypes:Me,randomString:bl,required:mr,stringifyPrimitive:S,unwrapMessage:ye},Symbol.toStringTag,{value:"Module"})),fr=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,tr,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ut=l("$ZodError",fr),Oe=l("$ZodError",fr,{Parent:Error});function Pt(e,n=i=>i.message){const i={},o=[];for(const t of e.issues)t.path.length>0?(i[t.path[0]]=i[t.path[0]]||[],i[t.path[0]].push(n(t))):o.push(n(t));return{formErrors:o,fieldErrors:i}}function Et(e,n){const i=n||function(r){return r.message},o={_errors:[]},t=r=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>t({issues:c}));else if(a.code==="invalid_key")t({issues:a.issues});else if(a.code==="invalid_element")t({issues:a.issues});else if(a.path.length===0)o._errors.push(i(a));else{let c=o,u=0;for(;u<a.path.length;){const s=a.path[u];u===a.path.length-1?(c[s]=c[s]||{_errors:[]},c[s]._errors.push(i(a))):c[s]=c[s]||{_errors:[]},c=c[s],u++}}};return t(e),o}function vr(e,n){const i=n||function(r){return r.message},o={errors:[]},t=(r,a=[])=>{var c,u;for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map($=>t({issues:$},s.path));else if(s.code==="invalid_key")t({issues:s.issues},s.path);else if(s.code==="invalid_element")t({issues:s.issues},s.path);else{const $=[...a,...s.path];if($.length===0){o.errors.push(i(s));continue}let v=o,_=0;for(;_<$.length;){const z=$[_],f=_===$.length-1;typeof z=="string"?(v.properties??(v.properties={}),(c=v.properties)[z]??(c[z]={errors:[]}),v=v.properties[z]):(v.items??(v.items=[]),(u=v.items)[z]??(u[z]={errors:[]}),v=v.items[z]),f&&v.errors.push(i(s)),_++}}};return t(e),o}function gr(e){const n=[];for(const i of e)typeof i=="number"?n.push(`[${i}]`):typeof i=="symbol"?n.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?n.push(`[${JSON.stringify(i)}]`):(n.length&&n.push("."),n.push(i));return n.join("")}function hr(e){var o;const n=[],i=[...e.issues].sort((t,r)=>t.path.length-r.path.length);for(const t of i)n.push(`✖ ${t.message}`),(o=t.path)!=null&&o.length&&n.push(` → at ${gr(t.path)}`);return n.join(`
4
4
  `)}const Dt=e=>(n,i,o,t)=>{const r=o?Object.assign(o,{async:!1}):{async:!1},a=n._zod.run({value:i,issues:[]},r);if(a instanceof Promise)throw new le;if(a.issues.length){const c=new((t==null?void 0:t.Err)??e)(a.issues.map(u=>K(u,r,R())));throw Nt(c,t==null?void 0:t.callee),c}return a.value},$t=Dt(Oe),Tt=e=>async(n,i,o,t)=>{const r=o?Object.assign(o,{async:!0}):{async:!0};let a=n._zod.run({value:i,issues:[]},r);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new((t==null?void 0:t.Err)??e)(a.issues.map(u=>K(u,r,R())));throw Nt(c,t==null?void 0:t.callee),c}return a.value},yt=Tt(Oe),At=e=>(n,i,o)=>{const t=o?{...o,async:!1}:{async:!1},r=n._zod.run({value:i,issues:[]},t);if(r instanceof Promise)throw new le;return r.issues.length?{success:!1,error:new(e??Ut)(r.issues.map(a=>K(a,t,R())))}:{success:!0,data:r.value}},br=At(Oe),Zt=e=>async(n,i,o)=>{const t=o?Object.assign(o,{async:!0}):{async:!0};let r=n._zod.run({value:i,issues:[]},t);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(a=>K(a,t,R())))}:{success:!0,data:r.value}},_r=Zt(Oe),$r=/^[cC][^\s-]{8,}$/,yr=/^[0-9a-z]+$/,xr=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wr=/^[0-9a-vA-V]{20}$/,kr=/^[A-Za-z0-9]{27}$/,zr=/^[a-zA-Z0-9_-]{21}$/,Ir=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,zl=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Sr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pe=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Il=pe(4),Sl=pe(6),jl=pe(7),jr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ol=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Nl=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ul=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Pl=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Or="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Nr(){return new RegExp(Or,"u")}const Ur=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Pr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Er=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Dr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Tr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Rt=/^[A-Za-z0-9_-]*$/,Ar=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,El=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Zr=/^\+(?:[0-9]){6,14}[0-9]$/,Rr="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Cr=new RegExp(`^${Rr}$`);function Lr(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Mr(e){return new RegExp(`^${Lr(e)}$`)}function Jr(e){const n=Lr({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-]\\d{2}:\\d{2})");const o=`${n}(?:${i.join("|")})`;return new RegExp(`^${Rr}T(?:${o})$`)}const Fr=e=>{const n=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},Kr=/^\d+n?$/,qr=/^\d+$/,Vr=/^-?\d+(?:\.\d+)?/i,Gr=/true|false/i,Wr=/null/i,Br=/undefined/i,Xr=/^[^A-Z]*$/,Yr=/^[^a-z]*$/,Hr=Object.freeze(Object.defineProperty({__proto__:null,_emoji:Or,base64:Tr,base64url:Rt,bigint:Kr,boolean:Gr,browserEmail:Pl,cidrv4:Er,cidrv6:Dr,cuid:$r,cuid2:yr,date:Cr,datetime:Jr,domain:El,duration:Ir,e164:Zr,email:jr,emoji:Nr,extendedDuration:zl,guid:Sr,hostname:Ar,html5Email:Ol,integer:qr,ipv4:Ur,ipv6:Pr,ksuid:kr,lowercase:Xr,nanoid:zr,null:Wr,number:Vr,rfc5322Email:Nl,string:Fr,time:Mr,ulid:xr,undefined:Br,unicodeEmail:Ul,uppercase:Yr,uuid:pe,uuid4:Il,uuid6:Sl,uuid7:jl,xid:wr},Symbol.toStringTag,{value:"Module"})),T=l("$ZodCheck",(e,n)=>{var i;e._zod??(e._zod={}),e._zod.def=n,(i=e._zod).onattach??(i.onattach=[])}),Qr={number:"number",bigint:"bigint",object:"date"},Ct=l("$ZodCheckLessThan",(e,n)=>{T.init(e,n);const i=Qr[typeof n.value];e._zod.onattach.push(o=>{const t=o._zod.bag,r=(n.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<r&&(n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value)}),e._zod.check=o=>{(n.inclusive?o.value<=n.value:o.value<n.value)||o.issues.push({origin:i,code:"too_big",maximum:n.value,input:o.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Lt=l("$ZodCheckGreaterThan",(e,n)=>{T.init(e,n);const i=Qr[typeof n.value];e._zod.onattach.push(o=>{const t=o._zod.bag,r=(n.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>r&&(n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value)}),e._zod.check=o=>{(n.inclusive?o.value>=n.value:o.value>n.value)||o.issues.push({origin:i,code:"too_small",minimum:n.value,input:o.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),eo=l("$ZodCheckMultipleOf",(e,n)=>{T.init(e,n),e._zod.onattach.push(i=>{var o;(o=i._zod.bag).multipleOf??(o.multipleOf=n.value)}),e._zod.check=i=>{if(typeof i.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%n.value===BigInt(0):nr(i.value,n.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:n.value,input:i.value,inst:e,continue:!n.abort})}}),to=l("$ZodCheckNumberFormat",(e,n)=>{var a;T.init(e,n),n.format=n.format||"float64";const i=(a=n.format)==null?void 0:a.includes("int"),o=i?"int":"number",[t,r]=ar[n.format];e._zod.onattach.push(c=>{const u=c._zod.bag;u.format=n.format,u.minimum=t,u.maximum=r,i&&(u.pattern=qr)}),e._zod.check=c=>{const u=c.value;if(i){if(!Number.isInteger(u)){c.issues.push({expected:o,format:n.format,code:"invalid_type",input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?c.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!n.abort}):c.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!n.abort});return}}u<t&&c.issues.push({origin:"number",input:u,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),u>r&&c.issues.push({origin:"number",input:u,code:"too_big",maximum:r,inst:e})}}),no=l("$ZodCheckBigIntFormat",(e,n)=>{T.init(e,n);const[i,o]=cr[n.format];e._zod.onattach.push(t=>{const r=t._zod.bag;r.format=n.format,r.minimum=i,r.maximum=o}),e._zod.check=t=>{const r=t.value;r<i&&t.issues.push({origin:"bigint",input:r,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),r>o&&t.issues.push({origin:"bigint",input:r,code:"too_big",maximum:o,inst:e})}}),io=l("$ZodCheckMaxSize",(e,n)=>{var i;T.init(e,n),(i=e._zod.def).when??(i.when=o=>{const t=o.value;return!ie(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{const t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<t&&(o._zod.bag.maximum=n.maximum)}),e._zod.check=o=>{const t=o.value;t.size<=n.maximum||o.issues.push({origin:He(t),code:"too_big",maximum:n.maximum,input:t,inst:e,continue:!n.abort})}}),ro=l("$ZodCheckMinSize",(e,n)=>{var i;T.init(e,n),(i=e._zod.def).when??(i.when=o=>{const t=o.value;return!ie(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{const t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(o._zod.bag.minimum=n.minimum)}),e._zod.check=o=>{const t=o.value;t.size>=n.minimum||o.issues.push({origin:He(t),code:"too_small",minimum:n.minimum,input:t,inst:e,continue:!n.abort})}}),oo=l("$ZodCheckSizeEquals",(e,n)=>{var i;T.init(e,n),(i=e._zod.def).when??(i.when=o=>{const t=o.value;return!ie(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{const t=o._zod.bag;t.minimum=n.size,t.maximum=n.size,t.size=n.size}),e._zod.check=o=>{const t=o.value,r=t.size;if(r===n.size)return;const a=r>n.size;o.issues.push({origin:He(t),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!n.abort})}}),ao=l("$ZodCheckMaxLength",(e,n)=>{var i;T.init(e,n),(i=e._zod.def).when??(i.when=o=>{const t=o.value;return!ie(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{const t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<t&&(o._zod.bag.maximum=n.maximum)}),e._zod.check=o=>{const t=o.value;if(t.length<=n.maximum)return;const a=Qe(t);o.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),co=l("$ZodCheckMinLength",(e,n)=>{var i;T.init(e,n),(i=e._zod.def).when??(i.when=o=>{const t=o.value;return!ie(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{const t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(o._zod.bag.minimum=n.minimum)}),e._zod.check=o=>{const t=o.value;if(t.length>=n.minimum)return;const a=Qe(t);o.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),uo=l("$ZodCheckLengthEquals",(e,n)=>{var i;T.init(e,n),(i=e._zod.def).when??(i.when=o=>{const t=o.value;return!ie(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{const t=o._zod.bag;t.minimum=n.length,t.maximum=n.length,t.length=n.length}),e._zod.check=o=>{const t=o.value,r=t.length;if(r===n.length)return;const a=Qe(t),c=r>n.length;o.issues.push({origin:a,...c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!n.abort})}}),Ne=l("$ZodCheckStringFormat",(e,n)=>{var i,o;T.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format=n.format,n.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(n.pattern))}),n.pattern?(i=e._zod).check??(i.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:n.format,input:t.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(o=e._zod).check??(o.check=()=>{})}),lo=l("$ZodCheckRegex",(e,n)=>{Ne.init(e,n),e._zod.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),so=l("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=Xr),Ne.init(e,n)}),po=l("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=Yr),Ne.init(e,n)}),mo=l("$ZodCheckIncludes",(e,n)=>{T.init(e,n);const i=re(n.includes),o=new RegExp(typeof n.position=="number"?`^.{${n.position}}${i}`:i);n.pattern=o,e._zod.onattach.push(t=>{const r=t._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=t=>{t.value.includes(n.includes,n.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:t.value,inst:e,continue:!n.abort})}}),fo=l("$ZodCheckStartsWith",(e,n)=>{T.init(e,n);const i=new RegExp(`^${re(n.prefix)}.*`);n.pattern??(n.pattern=i),e._zod.onattach.push(o=>{const t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=o=>{o.value.startsWith(n.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:o.value,inst:e,continue:!n.abort})}}),vo=l("$ZodCheckEndsWith",(e,n)=>{T.init(e,n);const i=new RegExp(`.*${re(n.suffix)}$`);n.pattern??(n.pattern=i),e._zod.onattach.push(o=>{const t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=o=>{o.value.endsWith(n.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:o.value,inst:e,continue:!n.abort})}});function yi(e,n,i){e.issues.length&&n.issues.push(...J(i,e.issues))}const go=l("$ZodCheckProperty",(e,n)=>{T.init(e,n),e._zod.check=i=>{const o=n.schema._zod.run({value:i.value[n.property],issues:[]},{});if(o instanceof Promise)return o.then(t=>yi(t,i,n.property));yi(o,i,n.property)}}),ho=l("$ZodCheckMimeType",(e,n)=>{T.init(e,n);const i=new Set(n.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=n.mime}),e._zod.check=o=>{i.has(o.value.type)||o.issues.push({code:"invalid_value",values:n.mime,input:o.value.type,inst:e})}}),bo=l("$ZodCheckOverwrite",(e,n)=>{T.init(e,n),e._zod.check=i=>{i.value=n.tx(i.value)}});class _o{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const o=n.split(`
@@ -0,0 +1,3 @@
1
+ var te=t=>{throw TypeError(t)};var De=(t,e,n)=>e.has(t)||te("Cannot "+n);var A=(t,e,n)=>(De(t,e,"read from private field"),n?n.call(t):e.get(t)),P=(t,e,n)=>e.has(t)?te("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{o as ee,g as Be}from"./CtXEx3cs.js";import{n as Lt,aT as Fe,as as C,L as N,N as O}from"./CeESZvTN.js";const q=[];function Dt(t,e=Lt){let n=null;const a=new Set;function r(o){if(Fe(t,o)&&(t=o,n)){const c=!q.length;for(const l of a)l[1](),q.push(l,t);if(c){for(let l=0;l<q.length;l+=2)q[l][0](q[l+1]);q.length=0}}}function s(o){r(o(t))}function i(o,c=Lt){const l=[o,c];return a.add(l),a.size===1&&(n=e(r,s)||Lt),o(t),()=>{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:i}}new URL("sveltekit-internal://");function Ve(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function qe(t){return t.split("%25").map(decodeURI).join("%25")}function Me(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Tt({href:t}){return t.split("#")[0]}function Ge(t,e,n,a=!1){const r=new URL(t);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));e();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"];a&&s.push("hash");for(const i of s)Object.defineProperty(r,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return r}function He(...t){let e=5381;for(const n of t)if(typeof n=="string"){let a=n.length;for(;a;)e=e*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)e=e*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}function Ke(t){const e=atob(t),n=new Uint8Array(e.length);for(let a=0;a<e.length;a++)n[a]=e.charCodeAt(a);return n.buffer}const We=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&Y.delete(Bt(t)),We(t,e));const Y=new Map;function Ye(t,e){const n=Bt(t,e),a=document.querySelector(n);if(a!=null&&a.textContent){let{body:r,...s}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&Y.set(n,{body:r,init:s,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=Ke(r)),Promise.resolve(new Response(r,s))}return window.fetch(t,e)}function ze(t,e,n){if(Y.size>0){const a=Bt(t,n),r=Y.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(r.body,r.init);Y.delete(a)}}return window.fetch(e,n)}function Bt(t,e){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const r=[];e.headers&&r.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&r.push(e.body),a+=`[data-hash="${He(...r)}"]`}return a}const Je=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Xe(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Qe(t).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return e.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return xt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return xt(String.fromCharCode(...c.slice(2).split("-").map(h=>parseInt(h,16))));const p=Je.exec(c),[,u,y,f,m]=p;return e.push({name:f,matcher:m,optional:!!u,rest:!!y,chained:y?l===1&&i[0]==="":!1}),y?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return xt(c)}).join("")}).join("")}/?$`),params:e}}function Ze(t){return!/^\([^)]+\)$/.test(t)}function Qe(t){return t.slice(1).split("/").filter(Ze)}function tn(t,e,n){const a={},r=t.slice(1),s=r.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const c=e[o];let l=r[o-i];if(c.chained&&c.rest&&i&&(l=r.slice(o-i,o+1).filter(p=>p).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const p=e[o+1],u=r[o+1];p&&!p.rest&&p.optional&&u&&c.chained&&(i=0),!p&&!u&&Object.keys(a).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function xt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function en({nodes:t,server_loads:e,dictionary:n,matchers:a}){const r=new Set(e);return Object.entries(n).map(([o,[c,l,p]])=>{const{pattern:u,params:y}=Xe(o),f={id:o,exec:m=>{const h=u.exec(m);if(h)return tn(h,y,a)},errors:[1,...p||[]].map(m=>t[m]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,t[o]]}function i(o){return o===void 0?o:[r.has(o),t[o]]}}function me(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ne(t,e,n=JSON.stringify){const a=n(e);try{sessionStorage[t]=a}catch{}}var ue;const x=((ue=globalThis.__sveltekit_a7p1y5)==null?void 0:ue.base)??"";var he;const nn=((he=globalThis.__sveltekit_a7p1y5)==null?void 0:he.assets)??x,rn="1753053332581",ye="sveltekit:snapshot",_e="sveltekit:scroll",we="sveltekit:states",an="sveltekit:pageurl",G="sveltekit:history",Z="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ht=location.origin;function Ft(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function At(){return{x:pageXOffset,y:pageYOffset}}function M(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const re={...B,"":B.hover};function ve(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function be(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=ve(t)}}function Nt(t,e,n){let a;try{if(a=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";a.hash=`#${o}${a.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,s=!a||!!r||St(a,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(a==null?void 0:a.origin)===ht&&t.hasAttribute("download");return{url:a,external:s,target:r,download:i}}function pt(t){let e=null,n=null,a=null,r=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)a===null&&(a=M(o,"preload-code")),r===null&&(r=M(o,"preload-data")),e===null&&(e=M(o,"keepfocus")),n===null&&(n=M(o,"noscroll")),s===null&&(s=M(o,"reload")),i===null&&(i=M(o,"replacestate")),o=ve(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:re[a??"off"],preload_data:re[r??"off"],keepfocus:c(e),noscroll:c(n),reload:c(s),replace_state:c(i)}}function ae(t){const e=Dt(t);let n=!0;function a(){n=!0,e.update(i=>i)}function r(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:a,set:r,subscribe:s}}const Ae={v:()=>{}};function on(){const{set:t,subscribe:e}=Dt(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${nn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==rn;return i&&(t(!0),Ae.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:a}}function St(t,e,n){return t.origin!==ht||!t.pathname.startsWith(e)?!0:n?!(t.pathname===e+"/"||t.pathname===e+"/index.html"||t.protocol==="file:"&&t.pathname.replace(/\/[^/]+\.html?$/,"")===e):!1}function Hn(t){}function oe(t){const e=cn(t),n=new ArrayBuffer(e.length),a=new DataView(n);for(let r=0;r<n.byteLength;r++)a.setUint8(r,e.charCodeAt(r));return n}const sn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function cn(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,a=0;for(let r=0;r<t.length;r++)n<<=6,n|=sn.indexOf(t[r]),a+=6,a===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=a=0);return a===12?(n>>=4,e+=String.fromCharCode(n)):a===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const ln=-1,fn=-2,un=-3,hn=-4,dn=-5,pn=-6;function gn(t,e){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,a=Array(n.length);function r(s,i=!1){if(s===ln)return;if(s===un)return NaN;if(s===hn)return 1/0;if(s===dn)return-1/0;if(s===pn)return-0;if(i)throw new Error("Invalid input");if(s in a)return a[s];const o=n[s];if(!o||typeof o!="object")a[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=e==null?void 0:e[c];if(l)return a[s]=l(r(o[1]));switch(c){case"Date":a[s]=new Date(o[1]);break;case"Set":const p=new Set;a[s]=p;for(let f=1;f<o.length;f+=1)p.add(r(o[f]));break;case"Map":const u=new Map;a[s]=u;for(let f=1;f<o.length;f+=2)u.set(r(o[f]),r(o[f+1]));break;case"RegExp":a[s]=new RegExp(o[1],o[2]);break;case"Object":a[s]=Object(o[1]);break;case"BigInt":a[s]=BigInt(o[1]);break;case"null":const y=Object.create(null);a[s]=y;for(let f=1;f<o.length;f+=2)y[o[f]]=r(o[f+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 f=globalThis[c],m=o[1],h=oe(m),d=new f(h);a[s]=d;break}case"ArrayBuffer":{const f=o[1],m=oe(f);a[s]=m;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);a[s]=c;for(let l=0;l<o.length;l+=1){const p=o[l];p!==fn&&(c[l]=r(p))}}else{const c={};a[s]=c;for(const l in o){const p=o[l];c[l]=r(p)}}return a[s]}return r(0)}const Se=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Se];const mn=new Set([...Se]);[...mn];function yn(t){return t.filter(e=>e!=null)}class kt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class Vt{constructor(e,n){this.status=e,this.location=n}}class qt extends Error{constructor(e,n,a){super(a),this.status=e,this.text=n}}const _n="x-sveltekit-invalidated",wn="x-sveltekit-trailing-slash";function gt(t){return t instanceof kt||t instanceof qt?t.status:500}function vn(t){return t instanceof qt?t.text:"Internal Error"}let U,Q,Pt;const bn=ee.toString().includes("$$")||/function \w+\(\) \{\}/.test(ee.toString());var nt,rt,at,ot,st,it,ct,lt,de,ft,pe,ut,ge;bn?(U={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Q={current:null},Pt={current:!1}):(U=new(de=class{constructor(){P(this,nt,C({}));P(this,rt,C(null));P(this,at,C(null));P(this,ot,C({}));P(this,st,C({id:null}));P(this,it,C({}));P(this,ct,C(-1));P(this,lt,C(new URL("https://example.com")))}get data(){return N(A(this,nt))}set data(e){O(A(this,nt),e)}get form(){return N(A(this,rt))}set form(e){O(A(this,rt),e)}get error(){return N(A(this,at))}set error(e){O(A(this,at),e)}get params(){return N(A(this,ot))}set params(e){O(A(this,ot),e)}get route(){return N(A(this,st))}set route(e){O(A(this,st),e)}get state(){return N(A(this,it))}set state(e){O(A(this,it),e)}get status(){return N(A(this,ct))}set status(e){O(A(this,ct),e)}get url(){return N(A(this,lt))}set url(e){O(A(this,lt),e)}},nt=new WeakMap,rt=new WeakMap,at=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,ct=new WeakMap,lt=new WeakMap,de),Q=new(pe=class{constructor(){P(this,ft,C(null))}get current(){return N(A(this,ft))}set current(e){O(A(this,ft),e)}},ft=new WeakMap,pe),Pt=new(ge=class{constructor(){P(this,ut,C(!1))}get current(){return N(A(this,ut))}set current(e){O(A(this,ut),e)}},ut=new WeakMap,ge),Ae.v=()=>Pt.current=!0);function An(t){Object.assign(U,t)}const Sn="/__data.json",kn=".html__data.json";function En(t){return t.endsWith(".html")?t.replace(/\.html$/,kn):t.replace(/\/$/,"")+Sn}const{tick:Rn}=Be,In=new Set(["icon","shortcut icon","apple-touch-icon"]),V=me(_e)??{},tt=me(ye)??{},$={url:ae({}),page:ae({}),navigating:Dt(null),updated:on()};function Mt(t){V[t]=At()}function Un(t,e){let n=t+1;for(;V[n];)delete V[n],n+=1;for(n=e+1;tt[n];)delete tt[n],n+=1}function K(t){return location.href=t.href,new Promise(()=>{})}async function ke(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(x||"/");t&&await t.update()}}function se(){}let Gt,Ot,mt,j,jt,S;const yt=[],_t=[];let L=null;const dt=new Map,Ee=new Set,Ln=new Set,z=new Set;let v={branch:[],error:null,url:null},Ht=!1,wt=!1,ie=!0,et=!1,W=!1,Re=!1,Kt=!1,Ie,E,T,F;const J=new Set;async function zn(t,e,n){var s,i,o,c;document.URL!==location.href&&(location.href=location.href),S=t,await((i=(s=t.hooks).init)==null?void 0:i.call(s)),Gt=en(t),j=document.documentElement,jt=e,Ot=t.nodes[0],mt=t.nodes[1],Ot(),mt(),E=(o=history.state)==null?void 0:o[G],T=(c=history.state)==null?void 0:c[Z],E||(E=T=Date.now(),history.replaceState({...history.state,[G]:E,[Z]:T},""));const a=V[E];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Bn(jt,n)):(await X({type:"enter",url:Ft(S.hash?Vn(new URL(location.href)):location.href),replace_state:!0}),r()),Dn()}function Tn(){yt.length=0,Kt=!1}function Ue(t){_t.some(e=>e==null?void 0:e.snapshot)&&(tt[t]=_t.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Le(t){var e;(e=tt[t])==null||e.forEach((n,a)=>{var r,s;(s=(r=_t[a])==null?void 0:r.snapshot)==null||s.restore(n)})}function ce(){Mt(E),ne(_e,V),Ue(T),ne(ye,tt)}async function Wt(t,e,n,a){return X({type:"goto",url:Ft(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:a,accept:()=>{e.invalidateAll&&(Kt=!0),e.invalidate&&e.invalidate.forEach($n)}})}async function xn(t){if(t.id!==(L==null?void 0:L.id)){const e={};J.add(e),L={id:t.id,token:e,promise:Pe({...t,preload:e}).then(n=>(J.delete(e),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Ct(t){var n;const e=(n=await Rt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(a=>a==null?void 0:a[1]()))}function Te(t,e,n){var r;v=t.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(U,t.props.page),Ie=new S.root({target:e,props:{...t.props,stores:$,components:_t},hydrate:n,sync:!1}),Le(T),n){const s={from:null,to:{params:v.params,route:{id:((r=v.route)==null?void 0:r.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};z.forEach(i=>i(s))}wt=!0}function vt({url:t,params:e,branch:n,status:a,error:r,route:s,form:i}){let o="never";if(x&&(t.pathname===x||t.pathname===x+"/"))o="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(o=f.slash);t.pathname=Ve(t.pathname,o),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:r,route:s},props:{constructors:yn(n).map(f=>f.node.component),page:Xt(U)}};i!==void 0&&(c.props.form=i);let l={},p=!U,u=0;for(let f=0;f<Math.max(n.length,v.branch.length);f+=1){const m=n[f],h=v.branch[f];(m==null?void 0:m.data)!==(h==null?void 0:h.data)&&(p=!0),m&&(l={...l,...m.data},p&&(c.props[`data_${u}`]=l),u+=1)}return(!v.url||t.href!==v.url.href||v.error!==r||i!==void 0&&i!==U.form||p)&&(c.props.page={error:r,params:e,route:{id:(s==null?void 0:s.id)??null},state:{},status:a,url:new URL(t),form:i??null,data:p?l:U.data}),c}async function Yt({loader:t,parent:e,url:n,params:a,route:r,server_data_node:s}){var p,u,y;let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await t();if((p=l.universal)!=null&&p.load){let f=function(...h){for(const d of h){const{href:w}=new URL(d,n);c.dependencies.add(w)}};const m={route:new Proxy(r,{get:(h,d)=>(o&&(c.route=!0),h[d])}),params:new Proxy(a,{get:(h,d)=>(o&&c.params.add(d),h[d])}),data:(s==null?void 0:s.data)??null,url:Ge(n,()=>{o&&(c.url=!0)},h=>{o&&c.search_params.add(h)},S.hash),async fetch(h,d){h instanceof Request&&(d={body:h.method==="GET"||h.method==="HEAD"?void 0:await h.blob(),cache:h.cache,credentials:h.credentials,headers:[...h.headers].length>0?h==null?void 0:h.headers:void 0,integrity:h.integrity,keepalive:h.keepalive,method:h.method,mode:h.mode,redirect:h.redirect,referrer:h.referrer,referrerPolicy:h.referrerPolicy,signal:h.signal,...d});const{resolved:w,promise:R}=xe(h,d,n);return o&&f(w.href),R},setHeaders:()=>{},depends:f,parent(){return o&&(c.parent=!0),e()},untrack(h){o=!1;try{return h()}finally{o=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:t,server:s,universal:(u=l.universal)!=null&&u.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((y=l.universal)==null?void 0:y.trailingSlash)??(s==null?void 0:s.slash)}}function xe(t,e,n){let a=t instanceof Request?t.url:t;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=wt?ze(a,r.href,e):Ye(a,e);return{resolved:r,promise:s}}function le(t,e,n,a,r,s){if(Kt)return!0;if(!r)return!1;if(r.parent&&t||r.route&&e||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(s[i]!==v.params[i])return!0;for(const i of r.dependencies)if(yt.some(o=>o(new URL(i))))return!0;return!1}function zt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function Pn(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const a of n){const r=t.searchParams.getAll(a),s=e.searchParams.getAll(a);r.every(i=>s.includes(i))&&s.every(i=>r.includes(i))&&n.delete(a)}return n}function fe({error:t,url:e,route:n,params:a}){return{type:"loaded",state:{error:t,url:e,route:n,params:a,branch:[]},props:{page:Xt(U),constructors:[]}}}async function Pe({id:t,invalidating:e,url:n,params:a,route:r,preload:s}){if((L==null?void 0:L.id)===t)return J.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=r,l=[...o,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let p=null;const u=v.url?t!==bt(v.url):!1,y=v.route?r.id!==v.route.id:!1,f=Pn(v.url,n);let m=!1;const h=l.map((g,_)=>{var D;const b=v.branch[_],k=!!(g!=null&&g[0])&&((b==null?void 0:b.loader)!==g[1]||le(m,y,u,f,(D=b.server)==null?void 0:D.uses,a));return k&&(m=!0),k});if(h.some(Boolean)){try{p=await Oe(n,h)}catch(g){const _=await H(g,{url:n,params:a,route:{id:t}});return J.has(s)?fe({error:_,url:n,params:a,route:r}):Et({status:gt(g),error:_,url:n,route:r})}if(p.type==="redirect")return p}const d=p==null?void 0:p.nodes;let w=!1;const R=l.map(async(g,_)=>{var It;if(!g)return;const b=v.branch[_],k=d==null?void 0:d[_];if((!k||k.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!le(w,y,u,f,(It=b.universal)==null?void 0:It.uses,a))return b;if(w=!0,(k==null?void 0:k.type)==="error")throw k;return Yt({loader:g[1],url:n,params:a,route:r,parent:async()=>{var Qt;const Zt={};for(let Ut=0;Ut<_;Ut+=1)Object.assign(Zt,(Qt=await R[Ut])==null?void 0:Qt.data);return Zt},server_data_node:zt(k===void 0&&g[0]?{type:"skip"}:k??null,g[0]?b==null?void 0:b.server:void 0)})});for(const g of R)g.catch(()=>{});const I=[];for(let g=0;g<l.length;g+=1)if(l[g])try{I.push(await R[g])}catch(_){if(_ instanceof Vt)return{type:"redirect",location:_.location};if(J.has(s))return fe({error:await H(_,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let b=gt(_),k;if(d!=null&&d.includes(_))b=_.status??b,k=_.error;else if(_ instanceof kt)k=_.body;else{if(await $.updated.check())return await ke(),await K(n);k=await H(_,{params:a,url:n,route:{id:r.id}})}const D=await Cn(g,I,i);return D?vt({url:n,params:a,branch:I.slice(0,D.idx).concat(D.node),status:b,error:k,route:r}):await Ne(n,{id:r.id},k,b)}else I.push(void 0);return vt({url:n,params:a,branch:I,status:200,error:null,route:r,form:e?void 0:null})}async function Cn(t,e,n){for(;t--;)if(n[t]){let a=t;for(;!e[a];)a-=1;try{return{idx:a+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Et({status:t,error:e,url:n,route:a}){const r={};let s=null;if(S.server_loads[0]===0)try{const o=await Oe(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==ht||n.pathname!==location.pathname||Ht)&&await K(n)}try{const o=await Yt({loader:Ot,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:zt(s)}),c={node:await mt(),loader:mt,universal:null,server:null,data:null};return vt({url:n,params:r,branch:[o,c],status:t,error:e,route:null})}catch(o){if(o instanceof Vt)return Wt(new URL(o.location,location.href),{},0);throw o}}async function Nn(t){const e=t.href;if(dt.has(e))return dt.get(e);let n;try{const a=(async()=>{let r=await S.hooks.reroute({url:new URL(t),fetch:async(s,i)=>xe(s,i,t).promise})??t;if(typeof r=="string"){const s=new URL(t);S.hash?s.hash=r:s.pathname=r,r=s}return r})();dt.set(e,a),n=await a}catch{dt.delete(e);return}return n}async function Rt(t,e){if(t&&!St(t,x,S.hash)){const n=await Nn(t);if(!n)return;const a=On(n);for(const r of Gt){const s=r.exec(a);if(s)return{id:bt(t),invalidating:e,route:r,params:Me(s),url:t}}}}function On(t){return qe(S.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(x.length))||"/"}function bt(t){return(S.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ce({url:t,type:e,intent:n,delta:a}){let r=!1;const s=Jt(v,n,t,e);a!==void 0&&(s.navigation.delta=a);const i={...s.navigation,cancel:()=>{r=!0,s.reject(new Error("navigation cancelled"))}};return et||Ee.forEach(o=>o(i)),r?null:s}async function X({type:t,url:e,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=se,block:p=se}){const u=F;F=c;const y=await Rt(e,!1),f=t==="enter"?Jt(v,y,e,t):Ce({url:e,type:t,delta:n==null?void 0:n.delta,intent:y});if(!f){p(),F===c&&(F=u);return}const m=E,h=T;l(),et=!0,wt&&f.navigation.type!=="enter"&&$.navigating.set(Q.current=f.navigation);let d=y&&await Pe(y);if(!d){if(St(e,x,S.hash))return await K(e);d=await Ne(e,{id:null},await H(new qt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(y==null?void 0:y.url)||e,F!==c)return f.reject(new Error("navigation aborted")),!1;if(d.type==="redirect")if(o>=20)d=await Et({status:500,error:await H(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return await Wt(new URL(d.location,e).href,{},o+1,c),!1;else d.props.page.status>=400&&await $.updated.check()&&(await ke(),await K(e));if(Tn(),Mt(m),Ue(h),d.props.page.url.pathname!==e.pathname&&(e.pathname=d.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,_={[G]:E+=g,[Z]:T+=g,[we]:i};(s?history.replaceState:history.pushState).call(history,_,"",e),s||Un(E,T)}if(L=null,d.props.page.state=i,wt){v=d.state,d.props.page&&(d.props.page.url=e);const g=(await Promise.all(Array.from(Ln,_=>_(f.navigation)))).filter(_=>typeof _=="function");if(g.length>0){let _=function(){g.forEach(b=>{z.delete(b)})};g.push(_),g.forEach(b=>{z.add(b)})}Ie.$set(d.props),An(d.props.page),Re=!0}else Te(d,jt,!1);const{activeElement:w}=document;await Rn();const R=n?n.scroll:r?At():null;if(ie){const g=e.hash&&document.getElementById($e(e));R?scrollTo(R.x,R.y):g?g.scrollIntoView():scrollTo(0,0)}const I=document.activeElement!==w&&document.activeElement!==document.body;!a&&!I&&Fn(e),ie=!0,d.props.page&&Object.assign(U,d.props.page),et=!1,t==="popstate"&&Le(T),f.fulfil(void 0),z.forEach(g=>g(f.navigation)),$.navigating.set(Q.current=null)}async function Ne(t,e,n,a){return t.origin===ht&&t.pathname===location.pathname&&!Ht?await Et({status:a,error:n,url:t,route:e}):await K(t)}function jn(){let t,e,n;j.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(t),t=setTimeout(()=>{s(c,B.hover)},20)});function a(o){o.defaultPrevented||s(o.composedPath()[0],B.tap)}j.addEventListener("mousedown",a),j.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(Ct(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function s(o,c){const l=be(o,j),p=l===e&&c>=n;if(!l||p)return;const{url:u,external:y,download:f}=Nt(l,x,S.hash);if(y||f)return;const m=pt(l),h=u&&bt(v.url)===bt(u);if(!(m.reload||h))if(c<=m.preload_data){e=l,n=B.tap;const d=await Rt(u,!1);if(!d)return;xn(d)}else c<=m.preload_code&&(e=l,n=c,Ct(u))}function i(){r.disconnect();for(const o of j.querySelectorAll("a")){const{url:c,external:l,download:p}=Nt(o,x,S.hash);if(l||p)continue;const u=pt(o);u.reload||(u.preload_code===B.viewport&&r.observe(o),u.preload_code===B.eager&&Ct(c))}}z.add(i),i()}function H(t,e){if(t instanceof kt)return t.body;const n=gt(t),a=vn(t);return S.hooks.handleError({error:t,event:e,status:n,message:a})??{message:a}}function Jn(t,e={}){return t=new URL(Ft(t)),t.origin!==ht?Promise.reject(new Error("goto: invalid URL")):Wt(t,e,0)}function $n(t){if(typeof t=="function")yt.push(t);else{const{href:e}=new URL(t,location.href);yt.push(n=>n.href===e)}}function Dn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ce(),!et){const r=Jt(v,void 0,null,"leave"),s={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ee.forEach(i=>i(s))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ce()}),(e=navigator.connection)!=null&&e.saveData||jn(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=be(n.composedPath()[0],j);if(!a)return;const{url:r,external:s,target:i,download:o}=Nt(a,x,S.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=pt(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[p,u]=(S.hash?r.hash.replace(/^#/,""):r.href).split("#"),y=p===Tt(location);if(s||c.reload&&(!y||!u)){Ce({url:r,type:"link"})?et=!0:n.preventDefault();return}if(u!==void 0&&y){const[,f]=v.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&a.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=a.ownerDocument.getElementById(decodeURIComponent(u));m&&(m.scrollIntoView(),m.focus())}return}if(W=!0,Mt(E),t(r),!c.replace_state)return;W=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await X({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const o=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(St(o,x,!1))return;const c=n.target,l=pt(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(c),u=r==null?void 0:r.getAttribute("name");u&&p.append(u,(r==null?void 0:r.getAttribute("value"))??""),o.search=new URLSearchParams(p).toString(),X({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var a;if(!$t){if((a=n.state)!=null&&a[G]){const r=n.state[G];if(F={},r===E)return;const s=V[r],i=n.state[we]??{},o=new URL(n.state[an]??location.href),c=n.state[Z],l=v.url?Tt(location)===Tt(v.url):!1;if(c===T&&(Re||l)){i!==U.state&&(U.state=i),t(o),V[E]=At(),s&&scrollTo(s.x,s.y),E=r;return}const u=r-E;await X({type:"popstate",url:o,popped:{state:i,scroll:s,delta:u},accept:()=>{E=r,T=c},block:()=>{history.go(-u)},nav_token:F})}else if(!W){const r=new URL(location.href);t(r),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[G]:++E,[Z]:T},"",location.href))});for(const n of document.querySelectorAll("link"))In.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(Q.current=null)});function t(n){v.url=U.url=n,$.page.set(Xt(U)),$.page.notify()}}async function Bn(t,{status:e=200,error:n,node_ids:a,params:r,route:s,server_route:i,data:o,form:c}){Ht=!0;const l=new URL(location.href);let p;({params:r={},route:s={id:null}}=await Rt(l,!1)||{}),p=Gt.find(({id:f})=>f===s.id);let u,y=!0;try{const f=a.map(async(h,d)=>{const w=o[d];return w!=null&&w.uses&&(w.uses=je(w.uses)),Yt({loader:S.nodes[h],url:l,params:r,route:s,parent:async()=>{const R={};for(let I=0;I<d;I+=1)Object.assign(R,(await f[I]).data);return R},server_data_node:zt(w)})}),m=await Promise.all(f);if(p){const h=p.layouts;for(let d=0;d<h.length;d++)h[d]||m.splice(d,0,void 0)}u=vt({url:l,params:r,branch:m,status:e,error:n,form:c,route:p??null})}catch(f){if(f instanceof Vt){await K(new URL(f.location,location.href));return}u=await Et({status:gt(f),error:await H(f,{url:l,params:r,route:s}),url:l,route:s}),t.textContent="",y=!1}u.props.page&&(u.props.page.state={}),Te(u,t,y)}async function Oe(t,e){var s;const n=new URL(t);n.pathname=En(t.pathname),t.pathname.endsWith("/")&&n.searchParams.append(wn,"1"),n.searchParams.append(_n,e.map(i=>i?"1":"0").join(""));const a=window.fetch,r=await a(n.href,{});if(!r.ok){let i;throw(s=r.headers.get("content-type"))!=null&&s.includes("application/json")?i=await r.json():r.status===404?i="Not Found":r.status===500&&(i="Internal Error"),new kt(r.status,i)}return new Promise(async i=>{var y;const o=new Map,c=r.body.getReader(),l=new TextDecoder;function p(f){return gn(f,{...S.decoders,Promise:m=>new Promise((h,d)=>{o.set(m,{fulfil:h,reject:d})})})}let u="";for(;;){const{done:f,value:m}=await c.read();if(f&&!u)break;for(u+=!m&&u?`
2
+ `:l.decode(m,{stream:!0});;){const h=u.indexOf(`
3
+ `);if(h===-1)break;const d=JSON.parse(u.slice(0,h));if(u=u.slice(h+1),d.type==="redirect")return i(d);if(d.type==="data")(y=d.nodes)==null||y.forEach(w=>{(w==null?void 0:w.type)==="data"&&(w.uses=je(w.uses),w.data=p(w.data))}),i(d);else if(d.type==="chunk"){const{id:w,data:R,error:I}=d,g=o.get(w);o.delete(w),I?g.reject(p(I)):g.fulfil(p(R))}}}})}function je(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let $t=!1;function Fn(t){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=$e(t);if(n&&document.getElementById(n)){const{x:r,y:s}=At();setTimeout(()=>{const i=history.state;$t=!0,location.replace(`#${n}`),S.hash&&location.replace(t.hash),history.replaceState(i,"",t.hash),scrollTo(r,s),$t=!1})}else{const r=document.body,s=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),s!==null?r.setAttribute("tabindex",s):r.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let s=0;s<a.rangeCount;s+=1)r.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===r.length){for(let s=0;s<a.rangeCount;s+=1){const i=r[s],o=a.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}a.removeAllRanges()}})}}}function Jt(t,e,n,a){var c,l;let r,s;const i=new Promise((p,u)=>{r=p,s=u});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((l=e==null?void 0:e.route)==null?void 0:l.id)??null},url:n},willUnload:!e,type:a,complete:i},fulfil:r,reject:s}}function Xt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Vn(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function $e(t){let e;if(S.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{zn as a,Jn as g,Hn as l,U as p,$ as s};
@@ -1 +1 @@
1
- import"./CWj6FrbW.js";import{p,d as c,b as m,s as d,f as b,a as u}from"./CeESZvTN.js";import{d as _}from"./CtXEx3cs.js";import{p as g,i as v}from"./1J1OrtJW.js";import{g as k}from"./BgOhX3uA.js";import{F as h,l as y}from"./Cha99dS9.js";var L=(t,o)=>{t.preventDefault(),o().close(),history.back()},P=m("<button>Take me back</button>"),x=m("<p>Are you sure you want to log out?</p> <!>",1);function O(t,o){p(o,!0);let a=g(o,"dialog",15),l=g(o,"fullPage",3,!1);h(t,{get pageMode(){return l()},submitText:"Log Out",submit:()=>y().then(()=>k("/")),get dialog(){return a()},set dialog(r){a(r)},children:(r,D)=>{var s=x(),n=d(b(s),2);{var f=e=>{var i=P();i.__click=[L,a],u(e,i)};v(n,e=>{l()&&e(f)})}u(r,s)},$$slots:{default:!0}}),c()}_(["click"]);export{O as L};
1
+ import"./CWj6FrbW.js";import{p,d as c,b as m,s as d,f as b,a as u}from"./CeESZvTN.js";import{d as _}from"./CtXEx3cs.js";import{p as g,i as v}from"./1J1OrtJW.js";import{g as k}from"./CMtTo3Tl.js";import{F as h,l as y}from"./CKHi4K7a.js";var L=(t,o)=>{t.preventDefault(),o().close(),history.back()},P=m("<button>Take me back</button>"),x=m("<p>Are you sure you want to log out?</p> <!>",1);function O(t,o){p(o,!0);let a=g(o,"dialog",15),l=g(o,"fullPage",3,!1);h(t,{get pageMode(){return l()},submitText:"Log Out",submit:()=>y().then(()=>k("/")),get dialog(){return a()},set dialog(r){a(r)},children:(r,D)=>{var s=x(),n=d(b(s),2);{var f=e=>{var i=P();i.__click=[L,a],u(e,i)};v(n,e=>{l()&&e(f)})}u(r,s)},$$slots:{default:!0}}),c()}_(["click"]);export{O as L};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C8tUtue5.js","../chunks/CWj6FrbW.js","../chunks/CeESZvTN.js","../chunks/BmyAb9RG.js","../nodes/1.B3IalL2A.js","../chunks/CtXEx3cs.js","../chunks/B62ttlwH.js","../chunks/BgOhX3uA.js","../nodes/2.B9G2lbYt.js","../nodes/3.BSYWRTch.js","../chunks/1J1OrtJW.js","../chunks/Cha99dS9.js","../assets/user.Cbakz6hh.css","../chunks/CqpV1bZx.js","../assets/3.KnidqurY.css","../nodes/4.JiWSeo-Z.js","../assets/4.C58W2qGZ.css","../nodes/5.Buxv3Nt-.js","../nodes/6.BIL8H9pR.js"])))=>i.map(i=>d[i]);
2
- var U=t=>{throw TypeError(t)};var W=(t,e,r)=>e.has(t)||U("Cannot "+r);var d=(t,e,r)=>(W(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>e.has(t)?U("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),C=(t,e,r,n)=>(W(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{h as G,i as Q,g as X,E as Z,m as M,C as $,q as ee,N as T,W as te,L as g,ak as re,a1 as se,aq as ae,p as ne,ar as oe,ah as ie,as as p,ap as ce,b as z,f as A,s as le,a as k,d as ue,c as D,e as fe,r as de,at as I,au as me,t as _e}from"../chunks/CeESZvTN.js";import{a as he,m as ve,u as ge,o as Ee,s as ye}from"../chunks/CtXEx3cs.js";import"../chunks/CWj6FrbW.js";import{p as V,i as j,b as q}from"../chunks/1J1OrtJW.js";function B(t,e,r){G&&Q();var n=t,o,l;X(()=>{o!==(o=e())&&(l&&($(l),l=null),o&&(l=M(()=>r(n,o))))},Z),G&&(n=ee)}function be(t){return class extends Pe{constructor(e){super({component:t,...e})}}}var E,m;class Pe{constructor(e){S(this,E);S(this,m);var l;var r=new Map,n=(a,s)=>{var c=ae(s,!1,!1);return r.set(a,c),c};const o=new Proxy({...e.props||{},$$events:{}},{get(a,s){return g(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===te?!0:(g(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,c){return T(r.get(s)??n(s,c),c),Reflect.set(a,s,c)}});C(this,m,(e.hydrate?he:ve)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&re(),C(this,E,o.$$events);for(const a of Object.keys(d(this,m)))a==="$set"||a==="$destroy"||a==="$on"||se(this,a,{get(){return d(this,m)[a]},set(s){d(this,m)[a]=s},enumerable:!0});d(this,m).$set=a=>{Object.assign(o,a)},d(this,m).$destroy=()=>{ge(d(this,m))}}$set(e){d(this,m).$set(e)}$on(e,r){d(this,E)[e]=d(this,E)[e]||[];const n=(...o)=>r.call(this,...o);return d(this,E)[e].push(n),()=>{d(this,E)[e]=d(this,E)[e].filter(o=>o!==n)}}$destroy(){d(this,m).$destroy()}}E=new WeakMap,m=new WeakMap;const Re="modulepreload",ke=function(t,e){return new URL(t,e).href},Y={},P=function(e,r,n){let o=Promise.resolve();if(r&&r.length>0){let a=function(u){return Promise.all(u.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const s=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),w=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));o=a(r.map(u=>{if(u=ke(u,n),u in Y)return;Y[u]=!0;const v=u.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(!!n)for(let i=s.length-1;i>=0;i--){const f=s[i];if(f.href===u&&(!v||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${y}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":Re,v||(h.as="script"),h.crossOrigin="",h.href=u,w&&h.setAttribute("nonce",w),document.head.appendChild(h),v)return new Promise((i,f)=>{h.addEventListener("load",i),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&l(s.reason);return e().catch(l)})},Ve={};var we=z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Le=z("<!> <!>",1);function Oe(t,e){ne(e,!0);let r=V(e,"components",23,()=>[]),n=V(e,"data_0",3,null),o=V(e,"data_1",3,null);oe(()=>e.stores.page.set(e.page)),ie(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),o(),e.stores.page.notify()});let l=p(!1),a=p(!1),s=p(null);Ee(()=>{const i=e.stores.page.subscribe(()=>{g(l)&&(T(a,!0),ce().then(()=>{T(s,document.title||"untitled page",!0)}))});return T(l,!0),i});const c=I(()=>e.constructors[1]);var w=Le(),u=A(w);{var v=i=>{var f=D();const L=I(()=>e.constructors[0]);var O=A(f);B(O,()=>g(L),(b,R)=>{q(R(b,{get data(){return n()},get form(){return e.form},children:(_,Te)=>{var N=D(),H=A(N);B(H,()=>g(c),(J,K)=>{q(K(J,{get data(){return o()},get form(){return e.form}}),x=>r()[1]=x,()=>{var x;return(x=r())==null?void 0:x[1]})}),k(_,N)},$$slots:{default:!0}}),_=>r()[0]=_,()=>{var _;return(_=r())==null?void 0:_[0]})}),k(i,f)},y=i=>{var f=D();const L=I(()=>e.constructors[0]);var O=A(f);B(O,()=>g(L),(b,R)=>{q(R(b,{get data(){return n()},get form(){return e.form}}),_=>r()[0]=_,()=>{var _;return(_=r())==null?void 0:_[0]})}),k(i,f)};j(u,i=>{e.constructors[1]?i(v):i(y,!1)})}var F=le(u,2);{var h=i=>{var f=we(),L=fe(f);{var O=b=>{var R=me();_e(()=>ye(R,g(s))),k(b,R)};j(L,b=>{g(a)&&b(O)})}de(f),k(i,f)};j(F,i=>{g(l)&&i(h)})}k(t,w),ue()}const je=be(Oe),qe=[()=>P(()=>import("../nodes/0.C8tUtue5.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>P(()=>import("../nodes/1.B3IalL2A.js"),__vite__mapDeps([4,1,2,5,3,6,7]),import.meta.url),()=>P(()=>import("../nodes/2.B9G2lbYt.js"),__vite__mapDeps([8,1,2]),import.meta.url),()=>P(()=>import("../nodes/3.BSYWRTch.js"),__vite__mapDeps([9,1,2,5,3,10,11,7,6,12,13,14]),import.meta.url),()=>P(()=>import("../nodes/4.JiWSeo-Z.js"),__vite__mapDeps([15,1,2,5,3,10,11,7,6,12,16]),import.meta.url),()=>P(()=>import("../nodes/5.Buxv3Nt-.js"),__vite__mapDeps([17,1,13,2,5,3,10,7,11,6,12]),import.meta.url),()=>P(()=>import("../nodes/6.BIL8H9pR.js"),__vite__mapDeps([18,1,2,5,3,10,11,7,6,12,16]),import.meta.url)],Be=[],Fe={"/_axium/default":[2],"/account":[3],"/login":[4],"/logout":[5],"/register":[6]},xe={handleError:({error:t})=>{console.error(t)},reroute:()=>{},transport:{}},Ae=Object.fromEntries(Object.entries(xe.transport).map(([t,e])=>[t,e.decode])),Ne=!1,Ue=(t,e)=>Ae[t](e);export{Ue as decode,Ae as decoders,Fe as dictionary,Ne as hash,xe as hooks,Ve as matchers,qe as nodes,je as root,Be as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C8tUtue5.js","../chunks/CWj6FrbW.js","../chunks/CeESZvTN.js","../chunks/BmyAb9RG.js","../nodes/1.DNoYGHhE.js","../chunks/CtXEx3cs.js","../chunks/BL1ic3F2.js","../chunks/CMtTo3Tl.js","../nodes/2.B9G2lbYt.js","../nodes/3.CJzYDG4d.js","../chunks/1J1OrtJW.js","../chunks/CKHi4K7a.js","../assets/user.Cbakz6hh.css","../chunks/CTsE1AKv.js","../assets/3.D8lAdddR.css","../assets/Login.C58W2qGZ.css","../nodes/4.hnI9drIb.js","../nodes/5.DO7cx_t4.js","../nodes/6.qvht6etA.js"])))=>i.map(i=>d[i]);
2
+ var U=t=>{throw TypeError(t)};var W=(t,e,r)=>e.has(t)||U("Cannot "+r);var d=(t,e,r)=>(W(t,e,"read from private field"),r?r.call(t):e.get(t)),S=(t,e,r)=>e.has(t)?U("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),C=(t,e,r,n)=>(W(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{h as G,i as Q,g as X,E as Z,m as M,C as $,q as ee,N as T,W as te,L as g,ak as re,a1 as se,aq as ae,p as ne,ar as oe,ah as ie,as as p,ap as ce,b as z,f as A,s as le,a as k,d as ue,c as D,e as fe,r as de,at as I,au as me,t as _e}from"../chunks/CeESZvTN.js";import{a as he,m as ve,u as ge,o as Ee,s as ye}from"../chunks/CtXEx3cs.js";import"../chunks/CWj6FrbW.js";import{p as V,i as j,b as q}from"../chunks/1J1OrtJW.js";function B(t,e,r){G&&Q();var n=t,o,l;X(()=>{o!==(o=e())&&(l&&($(l),l=null),o&&(l=M(()=>r(n,o))))},Z),G&&(n=ee)}function be(t){return class extends Pe{constructor(e){super({component:t,...e})}}}var E,m;class Pe{constructor(e){S(this,E);S(this,m);var l;var r=new Map,n=(a,s)=>{var c=ae(s,!1,!1);return r.set(a,c),c};const o=new Proxy({...e.props||{},$$events:{}},{get(a,s){return g(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===te?!0:(g(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,c){return T(r.get(s)??n(s,c),c),Reflect.set(a,s,c)}});C(this,m,(e.hydrate?he:ve)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&re(),C(this,E,o.$$events);for(const a of Object.keys(d(this,m)))a==="$set"||a==="$destroy"||a==="$on"||se(this,a,{get(){return d(this,m)[a]},set(s){d(this,m)[a]=s},enumerable:!0});d(this,m).$set=a=>{Object.assign(o,a)},d(this,m).$destroy=()=>{ge(d(this,m))}}$set(e){d(this,m).$set(e)}$on(e,r){d(this,E)[e]=d(this,E)[e]||[];const n=(...o)=>r.call(this,...o);return d(this,E)[e].push(n),()=>{d(this,E)[e]=d(this,E)[e].filter(o=>o!==n)}}$destroy(){d(this,m).$destroy()}}E=new WeakMap,m=new WeakMap;const Re="modulepreload",ke=function(t,e){return new URL(t,e).href},Y={},P=function(e,r,n){let o=Promise.resolve();if(r&&r.length>0){let a=function(u){return Promise.all(u.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const s=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),w=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));o=a(r.map(u=>{if(u=ke(u,n),u in Y)return;Y[u]=!0;const v=u.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(!!n)for(let i=s.length-1;i>=0;i--){const f=s[i];if(f.href===u&&(!v||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${y}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":Re,v||(h.as="script"),h.crossOrigin="",h.href=u,w&&h.setAttribute("nonce",w),document.head.appendChild(h),v)return new Promise((i,f)=>{h.addEventListener("load",i),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&l(s.reason);return e().catch(l)})},Ve={};var we=z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Le=z("<!> <!>",1);function Oe(t,e){ne(e,!0);let r=V(e,"components",23,()=>[]),n=V(e,"data_0",3,null),o=V(e,"data_1",3,null);oe(()=>e.stores.page.set(e.page)),ie(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),o(),e.stores.page.notify()});let l=p(!1),a=p(!1),s=p(null);Ee(()=>{const i=e.stores.page.subscribe(()=>{g(l)&&(T(a,!0),ce().then(()=>{T(s,document.title||"untitled page",!0)}))});return T(l,!0),i});const c=I(()=>e.constructors[1]);var w=Le(),u=A(w);{var v=i=>{var f=D();const L=I(()=>e.constructors[0]);var O=A(f);B(O,()=>g(L),(b,R)=>{q(R(b,{get data(){return n()},get form(){return e.form},children:(_,Te)=>{var N=D(),H=A(N);B(H,()=>g(c),(J,K)=>{q(K(J,{get data(){return o()},get form(){return e.form}}),x=>r()[1]=x,()=>{var x;return(x=r())==null?void 0:x[1]})}),k(_,N)},$$slots:{default:!0}}),_=>r()[0]=_,()=>{var _;return(_=r())==null?void 0:_[0]})}),k(i,f)},y=i=>{var f=D();const L=I(()=>e.constructors[0]);var O=A(f);B(O,()=>g(L),(b,R)=>{q(R(b,{get data(){return n()},get form(){return e.form}}),_=>r()[0]=_,()=>{var _;return(_=r())==null?void 0:_[0]})}),k(i,f)};j(u,i=>{e.constructors[1]?i(v):i(y,!1)})}var F=le(u,2);{var h=i=>{var f=we(),L=fe(f);{var O=b=>{var R=me();_e(()=>ye(R,g(s))),k(b,R)};j(L,b=>{g(a)&&b(O)})}de(f),k(i,f)};j(F,i=>{g(l)&&i(h)})}k(t,w),ue()}const je=be(Oe),qe=[()=>P(()=>import("../nodes/0.C8tUtue5.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>P(()=>import("../nodes/1.DNoYGHhE.js"),__vite__mapDeps([4,1,2,5,3,6,7]),import.meta.url),()=>P(()=>import("../nodes/2.B9G2lbYt.js"),__vite__mapDeps([8,1,2]),import.meta.url),()=>P(()=>import("../nodes/3.CJzYDG4d.js"),__vite__mapDeps([9,1,2,5,3,10,11,7,6,12,13,14,15]),import.meta.url),()=>P(()=>import("../nodes/4.hnI9drIb.js"),__vite__mapDeps([16,1,2,5,3,10,11,7,6,12,15]),import.meta.url),()=>P(()=>import("../nodes/5.DO7cx_t4.js"),__vite__mapDeps([17,1,13,2,5,3,10,7,11,6,12]),import.meta.url),()=>P(()=>import("../nodes/6.qvht6etA.js"),__vite__mapDeps([18,1,2,5,3,10,11,7,6,12,15]),import.meta.url)],Be=[],Fe={"/_axium/default":[2],"/account":[3],"/login":[4],"/logout":[5],"/register":[6]},xe={handleError:({error:t})=>{console.error(t)},reroute:()=>{},transport:{}},Ae=Object.fromEntries(Object.entries(xe.transport).map(([t,e])=>[t,e.decode])),Ne=!1,Ue=(t,e)=>Ae[t](e);export{Ue as decode,Ae as decoders,Fe as dictionary,Ne as hash,xe as hooks,Ve as matchers,qe as nodes,je as root,Be as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/CMtTo3Tl.js";export{o as load_css,r as start};
@@ -0,0 +1,2 @@
1
+ )�import{l as o,a as r}from"../chunks/CMtTo3Tl.js";export{o as load_css,r as start};
2
+ 
@@ -1 +1 @@
1
- import"../chunks/CWj6FrbW.js";import{p as u,b as v,f as c,t as l,a as _,d,e,r as p,s as g}from"../chunks/CeESZvTN.js";import{s as o}from"../chunks/CtXEx3cs.js";import{p as m}from"../chunks/B62ttlwH.js";var x=v("<h1> </h1> <p> </p>",1);function q(f,i){u(i,!0);var t=x(),r=c(t),h=e(r,!0);p(r);var a=g(r,2),n=e(a,!0);p(a),l(()=>{var s;o(h,m.status),o(n,(s=m.error)==null?void 0:s.message)}),_(f,t),d()}export{q as component};
1
+ import"../chunks/CWj6FrbW.js";import{p as u,b as v,f as c,t as l,a as _,d,e,r as p,s as g}from"../chunks/CeESZvTN.js";import{s as o}from"../chunks/CtXEx3cs.js";import{p as m}from"../chunks/BL1ic3F2.js";var x=v("<h1> </h1> <p> </p>",1);function q(f,i){u(i,!0);var t=x(),r=c(t),h=e(r,!0);p(r);var a=g(r,2),n=e(a,!0);p(a),l(()=>{var s;o(h,m.status),o(n,(s=m.error)==null?void 0:s.message)}),_(f,t),d()}export{q as component};
@@ -0,0 +1 @@
1
+ import"../chunks/CWj6FrbW.js";import{g as xt,h as U,i as Et,av as ut,x as kt,y as We,z as be,A as fe,U as ct,aw as ye,ax as we,G as zt,q as ae,Z as xe,Y as Ee,ay as ft,af as Rt,B as ke,m as ze,C as ge,ak as qt,u as Vt,F as Ht,L as i,Q as Tt,w as Bt,a5 as Gt,a9 as Yt,ad as Ct,a2 as Wt,aq as Kt,az as Fe,a0 as Te,aA as Zt,aB as Jt,ac as Qt,aC as Xt,o as ea,aD as ta,aE as aa,a6 as ra,E as sa,aF as na,aG as ia,D as oa,I as la,aH as va,V as ua,n as re,_ as ca,p as Ze,aI as fa,e as E,r as g,t as M,at as X,a as C,d as Je,aJ as da,b as A,as as J,N as H,M as Re,c as _a,f as qe,$ as pa,s as w,v as ma,aK as ha}from"../chunks/CeESZvTN.js";import{b as ya,w as ga,d as de,h as ba,s as O}from"../chunks/CtXEx3cs.js";import{p as wa,i as Q}from"../chunks/1J1OrtJW.js";import{s as ce,F as Z,b as Ve,c as He,d as dt,e as xa,f as Ea,g as ka,h as za,u as Ta,i as Ca,j as Aa,k as ja,m as $a,n as Ia,o as La,p as Na,q as Pa}from"../chunks/CKHi4K7a.js";import{g as pe}from"../chunks/CMtTo3Tl.js";/* empty css */import{L as Sa}from"../chunks/CTsE1AKv.js";/* empty css */const Be=0,me=1,Ge=2;function Da(o,e,a,n,m){U&&Et();var y=o,c=Rt,_=ct,l,r,t,v=we(void 0),f=we(void 0),h=!1;function u(s,d){h=!0,d&&(xe(p),Ee(p),ft(c));try{s===me&&n&&(r?ke(r):r=ze(()=>n(y,v))),s===Ge&&m&&(t?ke(t):t=ze(()=>m(y,f))),s!==Be&&l&&ge(l,()=>l=null),s!==me&&r&&ge(r,()=>r=null),s!==Ge&&t&&ge(t,()=>t=null)}finally{d&&(ft(null),Ee(null),xe(null),qt())}}var p=xt(()=>{if(_===(_=e()))return;let s=U&&ut(_)===(y.data===kt);if(s&&(y=We(),be(y),fe(!1),s=!0),ut(_)){var d=_;h=!1,d.then(x=>{d===_&&(ye(v,x),u(me,!0))},x=>{if(d===_&&(ye(f,x),u(Ge,!0),!m))throw f.v}),U||zt(()=>{h||u(Be,!0)})}else ye(v,_),u(me,!1);return s&&fe(!0),()=>_=ct});U&&(y=ae)}function ue(o,e){U&&be(Vt(o)),Ht(()=>{var a=e();for(var n in a){var m=a[n];m?o.style.setProperty(n,m):o.style.removeProperty(n)}})}function _t(o,e){return e}function Oa(o,e,a,n){for(var m=[],y=e.length,c=0;c<y;c++)Jt(e[c].e,m,!0);var _=y>0&&m.length===0&&a!==null;if(_){var l=a.parentNode;Qt(l),l.append(a),n.clear(),K(o,e[0].prev,e[y-1].next)}Xt(m,()=>{for(var r=0;r<y;r++){var t=e[r];_||(n.delete(t.k),K(o,t.prev,t.next)),ea(t.e,!_)}})}function pt(o,e,a,n,m,y=null){var c=o,_={flags:e,items:new Map,first:null};U&&Et();var l=null,r=!1,t=Tt(()=>{var v=a();return Wt(v)?v:v==null?[]:Ct(v)});xt(()=>{var v=i(t),f=v.length;if(r&&f===0)return;r=f===0;let h=!1;if(U){var u=Bt(c)===kt;u!==(f===0)&&(c=We(),be(c),fe(!1),h=!0)}if(U){for(var p=null,s,d=0;d<f;d++){if(ae.nodeType===Gt&&ae.data===Yt){c=ae,h=!0,fe(!1);break}var x=v[d],k=n(x,d);s=At(ae,_,p,null,x,k,d,m,e,a),_.items.set(k,s),p=s}f>0&&be(We())}U||Ma(v,_,c,m,e,n,a),y!==null&&(f===0?l?ke(l):l=ze(()=>y(c)):l!==null&&ge(l,()=>{l=null})),h&&fe(!0),i(t)}),U&&(c=ae)}function Ma(o,e,a,n,m,y,c){var _=o.length,l=e.items,r=e.first,t=r,v,f=null,h=[],u=[],p,s,d,x;for(x=0;x<_;x+=1){if(p=o[x],s=y(p,x),d=l.get(s),d===void 0){var k=t?t.e.nodes_start:a;f=At(k,e,f,f===null?e.first:f.next,p,s,x,n,m,c),l.set(s,f),h=[],u=[],t=f.next;continue}if(Ua(d,p,x),(d.e.f&Fe)!==0&&ke(d.e),d!==t){if(v!==void 0&&v.has(d)){if(h.length<u.length){var N=u[0],j;f=N.prev;var F=h[0],G=h[h.length-1];for(j=0;j<h.length;j+=1)mt(h[j],N,a);for(j=0;j<u.length;j+=1)v.delete(u[j]);K(e,F.prev,G.next),K(e,f,F),K(e,G,N),t=N,f=G,x-=1,h=[],u=[]}else v.delete(d),mt(d,t,a),K(e,d.prev,d.next),K(e,d,f===null?e.first:f.next),K(e,f,d),f=d;continue}for(h=[],u=[];t!==null&&t.k!==s;)(t.e.f&Fe)===0&&(v??(v=new Set)).add(t),u.push(t),t=t.next;if(t===null)continue;d=t}h.push(d),f=d,t=d.next}if(t!==null||v!==void 0){for(var Y=v===void 0?[]:Ct(v);t!==null;)(t.e.f&Fe)===0&&Y.push(t),t=t.next;var R=Y.length;if(R>0){var se=null;Oa(e,Y,se,l)}}Te.first=e.first&&e.first.e,Te.last=f&&f.e}function Ua(o,e,a,n){ye(o.v,e),o.i=a}function At(o,e,a,n,m,y,c,_,l,r){var t=(l&ta)!==0,v=(l&aa)===0,f=t?v?Kt(m,!1,!1):we(m):m,h=(l&Zt)===0?c:we(c),u={i:h,v:f,k:y,a:null,e:null,prev:a,next:n};try{return u.e=ze(()=>_(o,f,h,r),U),u.e.prev=a&&a.e,u.e.next=n&&n.e,a===null?e.first=u:(a.next=u,a.e.next=u.e),n!==null&&(n.prev=u,n.e.prev=u.e),u}finally{}}function mt(o,e,a){for(var n=o.next?o.next.e.nodes_start:a,m=e?e.e.nodes_start:a,y=o.e.nodes_start;y!==n;){var c=ra(y);m.before(y),y=c}}function K(o,e,a){e===null?o.first=a:(e.next=a,e.e.next=a&&a.e),a!==null&&(a.prev=e,a.e.prev=e&&e.e)}const Fa=()=>performance.now(),B={tick:o=>requestAnimationFrame(o),now:()=>Fa(),tasks:new Set};function jt(){const o=B.now();B.tasks.forEach(e=>{e.c(o)||(B.tasks.delete(e),e.f())}),B.tasks.size!==0&&B.tick(jt)}function Ra(o){let e;return B.tasks.size===0&&B.tick(jt),{promise:new Promise(a=>{B.tasks.add(e={c:o,f:a})}),abort(){B.tasks.delete(e)}}}function he(o,e){ga(()=>{o.dispatchEvent(new CustomEvent(e))})}function qa(o){if(o==="float")return"cssFloat";if(o==="offset")return"cssOffset";if(o.startsWith("--"))return o;const e=o.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(a=>a[0].toUpperCase()+a.slice(1)).join("")}function ht(o){const e={},a=o.split(";");for(const n of a){const[m,y]=n.split(":");if(!m||y===void 0)break;const c=qa(m.trim());e[c]=y.trim()}return e}const Va=o=>o;function yt(o,e,a,n){var m=(o&va)!==0,y="both",c,_=e.inert,l=e.style.overflow,r,t;function v(){var s=ca,d=Te;Ee(null),xe(null);try{return c??(c=a()(e,(n==null?void 0:n())??{},{direction:y}))}finally{Ee(s),xe(d)}}var f={is_global:m,in(){e.inert=_,he(e,"introstart"),r=Ke(e,v(),t,1,()=>{he(e,"introend"),r==null||r.abort(),r=c=void 0,e.style.overflow=l})},out(s){e.inert=!0,he(e,"outrostart"),t=Ke(e,v(),r,0,()=>{he(e,"outroend"),s==null||s()})},stop:()=>{r==null||r.abort(),t==null||t.abort()}},h=Te;if((h.transitions??(h.transitions=[])).push(f),ya){var u=m;if(!u){for(var p=h.parent;p&&(p.f&sa)!==0;)for(;(p=p.parent)&&(p.f&na)===0;);u=!p||(p.f&ia)!==0}u&&oa(()=>{la(()=>f.in())})}}function Ke(o,e,a,n,m){var y=n===1;if(ua(e)){var c,_=!1;return zt(()=>{if(!_){var s=e({direction:y?"in":"out"});c=Ke(o,s,a,n,m)}}),{abort:()=>{_=!0,c==null||c.abort()},deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:()=>c.t()}}if(a==null||a.deactivate(),!(e!=null&&e.duration))return m(),{abort:re,deactivate:re,reset:re,t:()=>n};const{delay:l=0,css:r,tick:t,easing:v=Va}=e;var f=[];if(y&&a===void 0&&(t&&t(0,1),r)){var h=ht(r(0,1));f.push(h,h)}var u=()=>1-n,p=o.animate(f,{duration:l,fill:"forwards"});return p.onfinish=()=>{p.cancel();var s=(a==null?void 0:a.t())??1-n;a==null||a.abort();var d=n-s,x=e.duration*Math.abs(d),k=[];if(x>0){var N=!1;if(r)for(var j=Math.ceil(x/16.666666666666668),F=0;F<=j;F+=1){var G=s+d*v(F/j),Y=ht(r(G,1-G));k.push(Y),N||(N=Y.overflow==="hidden")}N&&(o.style.overflow="hidden"),u=()=>{var R=p.currentTime;return s+d*v(R/x)},t&&Ra(()=>{if(p.playState!=="running")return!1;var R=u();return t(R,1-R),!0})}p=o.animate(k,{duration:x,fill:"forwards"}),p.onfinish=()=>{u=()=>n,t==null||t(n,1-n),m()}},{abort:()=>{p&&(p.cancel(),p.effect=null,p.onfinish=re)},deactivate:()=>{m=re},reset:()=>{n===0&&(t==null||t(1,0))},t:()=>u()}}const Ha=o=>o;function gt(o,{delay:e=0,duration:a=400,easing:n=Ha}={}){const m=+getComputedStyle(o).opacity;return{delay:e,duration:a,easing:n,css:y=>`opacity: ${y*m}`}}var Ye={exports:{}},bt;function Ba(){return bt||(bt=1,function(o){var e=Object.prototype.hasOwnProperty,a="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(a=!1));function m(l,r,t){this.fn=l,this.context=r,this.once=t||!1}function y(l,r,t,v,f){if(typeof t!="function")throw new TypeError("The listener must be a function");var h=new m(t,v||l,f),u=a?a+r:r;return l._events[u]?l._events[u].fn?l._events[u]=[l._events[u],h]:l._events[u].push(h):(l._events[u]=h,l._eventsCount++),l}function c(l,r){--l._eventsCount===0?l._events=new n:delete l._events[r]}function _(){this._events=new n,this._eventsCount=0}_.prototype.eventNames=function(){var r=[],t,v;if(this._eventsCount===0)return r;for(v in t=this._events)e.call(t,v)&&r.push(a?v.slice(1):v);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},_.prototype.listeners=function(r){var t=a?a+r:r,v=this._events[t];if(!v)return[];if(v.fn)return[v.fn];for(var f=0,h=v.length,u=new Array(h);f<h;f++)u[f]=v[f].fn;return u},_.prototype.listenerCount=function(r){var t=a?a+r:r,v=this._events[t];return v?v.fn?1:v.length:0},_.prototype.emit=function(r,t,v,f,h,u){var p=a?a+r:r;if(!this._events[p])return!1;var s=this._events[p],d=arguments.length,x,k;if(s.fn){switch(s.once&&this.removeListener(r,s.fn,void 0,!0),d){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,v),!0;case 4:return s.fn.call(s.context,t,v,f),!0;case 5:return s.fn.call(s.context,t,v,f,h),!0;case 6:return s.fn.call(s.context,t,v,f,h,u),!0}for(k=1,x=new Array(d-1);k<d;k++)x[k-1]=arguments[k];s.fn.apply(s.context,x)}else{var N=s.length,j;for(k=0;k<N;k++)switch(s[k].once&&this.removeListener(r,s[k].fn,void 0,!0),d){case 1:s[k].fn.call(s[k].context);break;case 2:s[k].fn.call(s[k].context,t);break;case 3:s[k].fn.call(s[k].context,t,v);break;case 4:s[k].fn.call(s[k].context,t,v,f);break;default:if(!x)for(j=1,x=new Array(d-1);j<d;j++)x[j-1]=arguments[j];s[k].fn.apply(s[k].context,x)}}return!0},_.prototype.on=function(r,t,v){return y(this,r,t,v,!1)},_.prototype.once=function(r,t,v){return y(this,r,t,v,!0)},_.prototype.removeListener=function(r,t,v,f){var h=a?a+r:r;if(!this._events[h])return this;if(!t)return c(this,h),this;var u=this._events[h];if(u.fn)u.fn===t&&(!f||u.once)&&(!v||u.context===v)&&c(this,h);else{for(var p=0,s=[],d=u.length;p<d;p++)(u[p].fn!==t||f&&!u[p].once||v&&u[p].context!==v)&&s.push(u[p]);s.length?this._events[h]=s.length===1?s[0]:s:c(this,h)}return this},_.prototype.removeAllListeners=function(r){var t;return r?(t=a?a+r:r,this._events[t]&&c(this,t)):(this._events=new n,this._eventsCount=0),this},_.prototype.off=_.prototype.removeListener,_.prototype.addListener=_.prototype.on,_.prefixed=a,_.EventEmitter=_,o.exports=_}(Ye)),Ye.exports}Ba();function Ga(o){return new Promise(e=>setTimeout(e,o))}const wt=Intl.NumberFormat("en",{notation:"compact"});wt.format.bind(wt);new TextEncoder;new TextDecoder;var Ya=fa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="1em" height="1em" class="svelte-ylmrta"><use></use></svg>');function V(o,e){Ze(e,!0);const a=X(()=>e.i.includes("/")?e.i.split("/"):["solid",e.i]),n=X(()=>da(i(a),2)),m=X(()=>i(n)[0]),y=X(()=>i(n)[1]),c=X(()=>`/icons/${i(m)}.svg#${i(y)}`);var _=Ya(),l=E(_);g(_),M(()=>ce(l,"href",i(c))),C(o,_),Je()}async function Wa(o,e,a,n){const m=new Blob([e.value],{type:a()}),y=new ClipboardItem({[a()]:m});await navigator.clipboard.write([y]),H(n,!0),await Ga(3e3),H(n,!1)}var Ka=A('<span class="svelte-g409dh"><!></span>'),Za=A('<span class="svelte-g409dh"><!></span>'),Ja=A('<button class="svelte-g409dh"><!></button>');function Qa(o,e){Ze(e,!0);const a=wa(e,"type",3,"text/plain");let n=J(!1);var m=Ja();m.__click=[Wa,e,a,n];var y=E(m);{var c=l=>{var r=Ka(),t=E(r);V(t,{i:"check"}),g(r),yt(3,r,()=>gt),C(l,r)},_=l=>{var r=Za(),t=E(r);V(t,{i:"copy"}),g(r),yt(3,r,()=>gt),C(l,r)};Q(y,l=>{i(n)?l(c):l(_,!1)})}g(m),C(o,m),Je()}de(["click"]);de(["click"]);de(["click"]);de(["contextmenu"]);var Xa=(o,e,a)=>e[a()].showModal(),er=A('<button class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></button>'),tr=A('<div class="svelte-11mz0yj"><label for="name">What do you want to be called?</label> <input name="name" type="text" required/></div>'),ar=A("<dfn><!></dfn>"),rr=(o,e,a)=>Ia(i(e).id).then(()=>H(a,!0)),sr=A("<button> </button>"),nr=A('<div class="svelte-11mz0yj"><label for="email">Email Address</label> <input name="email" type="email" required/></div>'),ir=(o,e)=>e.logout.showModal(),or=(o,e)=>e.delete.showModal(),lr=A("<p>Are you sure you want to delete your account?<br/>This action can't be undone.</p>"),vr=A("<p> </p>"),ur=A('<p class="subtle"><i>Unnamed</i></p>'),cr=A('<dfn title="You must have at least one passkey" class="disabled svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn>'),fr=A('<div class="svelte-11mz0yj"><label for="name">Passkey Name</label> <input name="name" type="text"/></div>'),dr=A(`<p class="svelte-11mz0yj">Are you sure you want to delete this passkey?<br/>This action can't be undone.</p>`),_r=A('<div class="item passkey svelte-11mz0yj"><dfn class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <dfn class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <!> <p> </p> <!> <!></div> <!> <!>',1),pr=(o,e,a)=>Ea(i(e).id).then(i(a).push.bind(i(a))),mr=A('<span class="current svelte-11mz0yj">Current</span>'),hr=A('<span class="elevated svelte-11mz0yj">Elevated</span>'),yr=A('<p class="svelte-11mz0yj">Are you sure you want to log out this session?</p>'),gr=A('<div class="item session svelte-11mz0yj"><p> <!> <!></p> <p> </p> <p> </p> <!></div> <!>',1),br=(o,e)=>e.logout_all.showModal(),wr=A("<p>Are you sure you want to log out all sessions?</p>"),xr=A(`<div class="Account flex-content"><div id="pfp-container" class="svelte-11mz0yj"><img id="pfp" alt="User profile" width="100px" height="100px" class="svelte-11mz0yj"/></div> <p class="greeting svelte-11mz0yj"> </p> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Personal Information</h3> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">Name</p> <p class="svelte-11mz0yj"> </p> <!></div> <!> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">Email</p> <p class="svelte-11mz0yj"> <!></p> <!></div> <!> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">User ID <dfn title="This is your UUID. It can't be changed."><!></dfn></p> <p class="svelte-11mz0yj"> </p> <svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></div> <span><button class="signout svelte-11mz0yj">Sign Out</button> <button class="danger">Delete Account</button> <!> <!></span></div> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Passkeys</h3> <!> <span><button><!> Create</button></span></div> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Sessions</h3> <!> <span><button class="danger">Logout All</button></span> <!></div></div>`),Er=A('<div class="error"><h3>Failed to load account</h3> <p> </p></div>');function Nr(o,e){Ze(e,!0);const a=(u,p=re,s)=>{let d=Tt(()=>ha(s==null?void 0:s(),"pen"));var x=er();x.__click=[Xa,n,p],dt(x,"",{},{display:"contents"});var k=E(x);ue(k,()=>({"--size":"16px"})),V(k.lastChild,{get i(){return i(d)}}),g(k),g(x),C(u,x)},n=Re({});let m=J(!1),y=J(void 0),c=J(void 0),_=J(!1),l=J(Re([])),r=J(Re([]));async function t(){H(y,await Ca().catch(()=>(pe("/login?after=/account"),null)),!0),H(c,i(y).user,!0),H(l,await Aa(i(c).id),!0),H(r,await ja(i(c).id),!0),H(_,await $a(i(c).id),!0)}async function v(u){const p=await Ta(i(c).id,u);H(c,p,!0)}var f=_a();ba(u=>{pa.title="Account"});var h=qe(f);Da(h,t,null,u=>{var p=xr(),s=E(p),d=E(s);g(s);var x=w(s,2),k=E(x);g(x);var N=w(x,2),j=w(E(N),2),F=w(E(j),2),G=E(F,!0);g(F);var Y=w(F,2);a(Y,()=>"edit_name"),g(j);var R=w(j,2);Z(R,{submit:v,submitText:"Change",get dialog(){return n.edit_name},set dialog(z){n.edit_name=z},children:(z,b)=>{var $=tr(),I=w(E($),2);Ve(I),g($),M(()=>He(I,i(c).name||"")),C(z,$)},$$slots:{default:!0}});var se=w(R,2),Ce=w(E(se),2),Qe=E(Ce),$t=w(Qe);{var It=z=>{var b=ar(),$=E(b);V($,{i:"regular/circle-check"}),g(b),M(I=>ce(b,"title",`Email verified on ${I??""}`),[()=>i(c).emailVerified.toLocaleDateString()]),C(z,b)},Lt=(z,b)=>{{var $=I=>{var P=sr();P.__click=[rr,c,m];var q=E(P,!0);g(P),M(()=>O(q,i(m)?"Verification email sent":"Verify")),C(I,P)};Q(z,I=>{i(_)&&I($)},b)}};Q($t,z=>{i(c).emailVerified?z(It):z(Lt,!1)})}g(Ce);var Nt=w(Ce,2);a(Nt,()=>"edit_email"),g(se);var Xe=w(se,2);Z(Xe,{submit:v,submitText:"Change",get dialog(){return n.edit_email},set dialog(z){n.edit_email=z},children:(z,b)=>{var $=nr(),I=w(E($),2);Ve(I),g($),M(()=>He(I,i(c).email||"")),C(z,$)},$$slots:{default:!0}});var Ae=w(Xe,2),je=E(Ae),et=w(E(je)),Pt=E(et);V(Pt,{i:"regular/circle-info"}),g(et),g(je);var $e=w(je,2),St=E($e,!0);g($e);var Ie=w($e,2);ue(Ie,()=>({"--size":"16px"})),Qa(Ie.lastChild,{get value(){return i(c).id}}),g(Ie),g(Ae);var tt=w(Ae,2),at=E(tt);at.__click=[ir,n];var Le=w(at,2);Le.__click=[or,n],dt(Le,"",{},{cursor:"pointer"});var rt=w(Le,2);Sa(rt,{get dialog(){return n.logout},set dialog(z){n.logout=z}});var Dt=w(rt,2);Z(Dt,{submit:()=>xa(i(c).id).then(()=>pe("/")),submitText:"Delete Account",submitDanger:!0,get dialog(){return n.delete},set dialog(z){n.delete=z},children:(z,b)=>{var $=lr();C(z,$)},$$slots:{default:!0}}),g(tt),g(N);var Ne=w(N,2),st=w(E(Ne),2);pt(st,17,()=>i(l),_t,(z,b,$)=>{var I=_r(),P=qe(I),q=E(P),ee=E(q);const De=X(()=>i(b).deviceType=="multiDevice"?"laptop-mobile":"mobile");ue(ee,()=>({"--size":"16px"})),V(ee.lastChild,{get i(){return i(De)}}),g(ee),g(q);var te=w(q,2),ne=E(te);const ie=X(()=>i(b).backedUp?"circle-check":"circle-xmark");ue(ne,()=>({"--size":"16px"})),V(ne.lastChild,{get i(){return i(ie)}}),g(ne),g(te);var _e=w(te,2);{var oe=T=>{var S=vr(),D=E(S,!0);g(S),M(()=>O(D,i(b).name)),C(T,S)},Oe=T=>{var S=ur();C(T,S)};Q(_e,T=>{i(b).name?T(oe):T(Oe,!1)})}var le=w(_e,2),Me=E(le);g(le);var L=w(le,2);a(L,()=>"edit_passkey#"+i(b).id);var W=w(L,2);{var ve=T=>{a(T,()=>"delete_passkey#"+i(b).id,()=>"trash")},Ue=T=>{var S=cr(),D=E(S);ue(D,()=>({"--fill":"#888","--size":"16px"})),V(D.lastChild,{i:"trash-slash"}),g(D),g(S),C(T,S)};Q(W,T=>{i(l).length>1?T(ve):T(Ue,!1)})}g(P);var lt=w(P,2);Z(lt,{submit:T=>{if(typeof T.name!="string")throw"Passkey name must be a string";return i(b).name=T.name,La(i(b).id,T)},submitText:"Change",get dialog(){return n["edit_passkey#"+i(b).id]},set dialog(T){n["edit_passkey#"+i(b).id]=T},children:(T,S)=>{var D=fr(),vt=w(E(D),2);Ve(vt),g(D),M(()=>He(vt,i(b).name||"")),C(T,D)},$$slots:{default:!0}});var Ft=w(lt,2);Z(Ft,{submit:()=>Na(i(b).id).then(()=>i(l).splice(i(l).indexOf(i(b)),1)),submitText:"Delete",submitDanger:!0,get dialog(){return n["delete_passkey#"+i(b).id]},set dialog(T){n["delete_passkey#"+i(b).id]=T},children:(T,S)=>{var D=dr();C(T,D)},$$slots:{default:!0}}),M(T=>{ce(q,"title",i(b).deviceType=="multiDevice"?"Multiple devices":"Single device"),ce(te,"title",`This passkey is ${i(b).backedUp?"":"not "}backed up`),O(Me,`Created ${T??""}`)},[()=>i(b).createdAt.toLocaleString()]),C(z,I)});var nt=w(st,2),Pe=E(nt);Pe.__click=[pr,c,l];var Ot=E(Pe);V(Ot,{i:"plus"}),ma(),g(Pe),g(nt),g(Ne);var it=w(Ne,2),ot=w(E(it),2);pt(ot,17,()=>i(r),_t,(z,b)=>{var $=gr(),I=qe($),P=E(I),q=E(P),ee=w(q);{var De=L=>{var W=mr();C(L,W)};Q(ee,L=>{i(b).id==i(y).id&&L(De)})}var te=w(ee,2);{var ne=L=>{var W=hr();C(L,W)};Q(te,L=>{i(b).elevated&&L(ne)})}g(P);var ie=w(P,2),_e=E(ie);g(ie);var oe=w(ie,2),Oe=E(oe);g(oe);var le=w(oe,2);a(le,()=>"logout#"+i(b).id,()=>"right-from-bracket"),g(I);var Me=w(I,2);Z(Me,{submit:async()=>{await Pa(i(c).id,i(b).id),n["logout#"+i(b).id].remove(),i(r).splice(i(r).indexOf(i(b)),1),i(b).id==i(y).id&&pe("/")},submitText:"Logout",get dialog(){return n["logout#"+i(b).id]},set dialog(L){n["logout#"+i(b).id]=L},children:(L,W)=>{var ve=yr();C(L,ve)},$$slots:{default:!0}}),M((L,W,ve,Ue)=>{O(q,`${L??""}...${W??""} `),O(_e,`Created ${ve??""}`),O(Oe,`Expires ${Ue??""}`)},[()=>i(b).id.slice(0,4),()=>i(b).id.slice(-4),()=>i(b).created.toLocaleString(),()=>i(b).expires.toLocaleString()]),C(z,$)});var Se=w(ot,2),Mt=E(Se);Mt.__click=[br,n],g(Se);var Ut=w(Se,2);Z(Ut,{submit:()=>ka(i(c).id).then(()=>pe("/")),submitText:"Logout All Sessions",submitDanger:!0,get dialog(){return n.logout_all},set dialog(z){n.logout_all=z},children:(z,b)=>{var $=wr();C(z,$)},$$slots:{default:!0}}),g(it),g(p),M(z=>{ce(d,"src",z),O(k,`Welcome, ${i(c).name??""}`),O(G,i(c).name),O(Qe,`${i(c).email??""} `),O(St,i(c).id)},[()=>za(i(c))]),C(u,p)},(u,p)=>{var s=Er(),d=w(E(s),2),x=E(d,!0);g(d),g(s),M(()=>O(x,"message"in i(p)?i(p).message:i(p))),C(u,s)}),C(o,f),Je()}de(["click"]);export{Nr as component};
@@ -0,0 +1 @@
1
+ import"../chunks/CWj6FrbW.js";import{p as c,d as v,b as d,a as m,c as h,f as _,$ as b}from"../chunks/CeESZvTN.js";import{h as P}from"../chunks/CtXEx3cs.js";import{p as n,i as $}from"../chunks/1J1OrtJW.js";import{F as y,a as L}from"../chunks/CKHi4K7a.js";/* empty css */var q=d('<div class="footer svelte-16cw95q"><a href="/register">Register instead</a></div>'),w=d('<div><label for="email">Email</label> <input name="email" type="email" required/></div>');function x(a,o){c(o,!0);let s=n(o,"dialog",15),f=n(o,"fullPage",3,!1);function u(r){if(typeof r.email!="string")throw"Tried to upload a file for an email. Huh?!";return L(r.email)}y(a,{submitText:"Login",submit:u,get pageMode(){return f()},get dialog(){return s()},set dialog(e){s(e)},footer:e=>{var t=h(),i=_(t);{var g=l=>{var p=q();m(l,p)};$(i,l=>{f()&&l(g)})}m(e,t)},children:(e,t)=>{var i=w();m(e,i)},$$slots:{footer:!0,default:!0}}),v()}function H(a){P(o=>{b.title="Login"}),x(a,{fullPage:!0})}export{H as component};
@@ -0,0 +1 @@
1
+ import"../chunks/CWj6FrbW.js";import{L as t}from"../chunks/CTsE1AKv.js";function r(o){t(o,{fullPage:!0})}export{r as component};
@@ -0,0 +1 @@
1
+ import"../chunks/CWj6FrbW.js";import{p as g,d as u,b as f,a as l,c as v,f as c,v as b,$ as h}from"../chunks/CeESZvTN.js";import{h as _}from"../chunks/CtXEx3cs.js";import{p as n,i as x}from"../chunks/1J1OrtJW.js";import{F as P,r as $}from"../chunks/CKHi4K7a.js";/* empty css */var q=f('<div class="footer svelte-16cw95q"><a href="/login">Login instead</a></div>'),y=f('<div><label for="name">Display Name</label> <input name="name" type="text" required/></div> <div><label for="email">Email</label> <input name="email" type="email" required/></div>',1);function D(t,a){g(a,!0);let s=n(a,"dialog",15),m=n(a,"fullPage",3,!1);P(t,{submitText:"Register",get submit(){return $},get pageMode(){return m()},get dialog(){return s()},set dialog(e){s(e)},footer:e=>{var r=v(),o=c(r);{var d=i=>{var p=q();l(i,p)};x(o,i=>{m()&&i(d)})}l(e,r)},children:(e,r)=>{var o=y();b(2),l(e,o)},$$slots:{footer:!0,default:!0}}),u()}function N(t){_(a=>{h.title="Sign Up"}),D(t,{fullPage:!0})}export{N as component};
@@ -0,0 +1 @@
1
+ � d����y-�&�]����J��&(}���,X�X�:�M�`�"d�ԁx��%n�����L#_6^��q����$�5,��Oj61L�,���t��:���J��z��d������9�?5��G��.Q�D�ʺ����M������2]^�H�ũۻ������%]J-qjM@\I�U$�!gf����@�����I�.Wx��@T��l��d�pL���&˩C�09G�$Li�ٕr����kY6�n1_� �'�q���a��!��k���B��&E�k�����}��,�J�u��F~ 9�͜�l3�%��v�
@@ -1 +1 @@
1
- {"version":"1752536470574"}
1
+ {"version":"1753053332581"}
Binary file
Binary file