@hiai-gg/docsmint 0.3.6 → 0.3.7

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 (141) hide show
  1. package/dist/backend/index.js +1 -1
  2. package/dist/frontend/CategoryDialog--rIE7FrH.js +580 -0
  3. package/dist/frontend/ConfirmDialog-Cpzyb55f.js +212 -0
  4. package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +216 -0
  5. package/dist/frontend/DatePicker-Byynca7V.js +257 -0
  6. package/dist/frontend/DeleteDialog-ap6nOywZ.js +174 -0
  7. package/dist/frontend/FolderDialog-DmN_trV0.js +247 -0
  8. package/dist/frontend/FolderNode-C4B8a2fd.js +317 -0
  9. package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +100 -0
  10. package/dist/frontend/Icon-DtNo0N1U.js +64 -0
  11. package/dist/frontend/SettingsDialog-2kTaTXAs.js +992 -0
  12. package/dist/frontend/ShareDialog-BBDGNF5n.js +165 -0
  13. package/dist/frontend/TagCreateDialog-DiLZnJo4.js +258 -0
  14. package/dist/frontend/api/attachments.d.ts +6 -0
  15. package/dist/frontend/api/attachments.js +2 -0
  16. package/dist/frontend/api/categories.js +1 -1
  17. package/dist/frontend/api/documents.js +1 -1
  18. package/dist/frontend/api/folders.js +1 -1
  19. package/dist/frontend/api/settings.js +1 -1
  20. package/dist/frontend/api/share.d.ts +5 -0
  21. package/dist/frontend/api/share.js +2 -0
  22. package/dist/frontend/api/tags.js +1 -1
  23. package/dist/frontend/api-keys-CpkrA8rD.js +35 -0
  24. package/dist/frontend/attachments-BuILSs56.js +50 -0
  25. package/dist/frontend/{settings-PCrOtied.js → auth-client-Cygmp1I2.js} +205 -265
  26. package/dist/frontend/awareness-snQ3RD9f.js +3714 -0
  27. package/dist/frontend/bundle-mjs-CP6Owz-8.js +1723 -0
  28. package/dist/frontend/camera-B7dAOd4s.js +28 -0
  29. package/dist/frontend/{categories-BE6ZpZl8.js → categories-izQovv2w.js} +1 -1
  30. package/dist/frontend/check-CDwRlG9T.js +24 -0
  31. package/dist/frontend/chevron-down-B7ZrjUmT.js +24 -0
  32. package/dist/frontend/circle-check-CDqeMB2d.js +28 -0
  33. package/dist/frontend/{client-C6QQGb0e.js → client-Bc5Fzx40.js} +833 -814
  34. package/dist/frontend/{client-B9hzI0W8.js → client-GbtOH90i.js} +1 -1
  35. package/dist/frontend/clipboard-Cgzxc0_R.js +16 -0
  36. package/dist/frontend/clock-Ck5Sn-Zl.js +28 -0
  37. package/dist/frontend/clsx-nmtDPO_P.js +16 -0
  38. package/dist/frontend/collaboration.d.ts +6 -0
  39. package/dist/frontend/collaboration.js +182 -0
  40. package/dist/frontend/components/category-dialog.d.ts +2 -0
  41. package/dist/frontend/components/category-dialog.js +2 -0
  42. package/dist/frontend/components/create-snapshot-dialog.d.ts +2 -0
  43. package/dist/frontend/components/create-snapshot-dialog.js +2 -0
  44. package/dist/frontend/components/delete-dialog.d.ts +2 -0
  45. package/dist/frontend/components/delete-dialog.js +2 -0
  46. package/dist/frontend/components/editor/document-editor.d.ts +3 -0
  47. package/dist/frontend/components/editor/document-editor.js +3021 -0
  48. package/dist/frontend/components/editor/document-title.d.ts +2 -0
  49. package/dist/frontend/components/editor/document-title.js +31 -0
  50. package/dist/frontend/components/editor/docx-serializer.d.ts +2 -0
  51. package/dist/frontend/components/editor/docx-serializer.js +14600 -0
  52. package/dist/frontend/components/editor/extensions.d.ts +2 -0
  53. package/dist/frontend/components/editor/extensions.js +2 -0
  54. package/dist/frontend/components/editor/markdown-toggle.d.ts +2 -0
  55. package/dist/frontend/components/editor/markdown-toggle.js +72 -0
  56. package/dist/frontend/components/editor/markdown.d.ts +1 -0
  57. package/dist/frontend/components/editor/markdown.js +2 -0
  58. package/dist/frontend/components/folder-node.d.ts +3 -0
  59. package/dist/frontend/components/folder-node.js +2 -0
  60. package/dist/frontend/components/folder-tree-selector.d.ts +2 -0
  61. package/dist/frontend/components/folder-tree-selector.js +2 -0
  62. package/dist/frontend/components/save-as-dialog.d.ts +2 -0
  63. package/dist/frontend/components/save-as-dialog.js +254 -0
  64. package/dist/frontend/components/settings.js +1 -1
  65. package/dist/frontend/components/share-dialog.d.ts +2 -0
  66. package/dist/frontend/components/share-dialog.js +2 -0
  67. package/dist/frontend/components/sidebar.js +1206 -3762
  68. package/dist/frontend/components/tag-create-dialog.d.ts +2 -0
  69. package/dist/frontend/components/tag-create-dialog.js +2 -0
  70. package/dist/frontend/components/version-history.d.ts +2 -0
  71. package/dist/frontend/components/version-history.js +293 -0
  72. package/dist/frontend/{context-DbnW5yib.js → context-BMD6XTPe.js} +0 -3
  73. package/dist/frontend/copy-CMAA6GP0.js +31 -0
  74. package/dist/frontend/dashboard.js +1148 -1224
  75. package/dist/frontend/{SettingsDialog-D4pgFD0D.js → db-ByrlYfaI.js} +923 -2002
  76. package/dist/frontend/dialog-BDkiG42a.js +213 -0
  77. package/dist/frontend/disclose-version-5I57E3LD.js +3 -0
  78. package/dist/frontend/dndzone-BzsOINtP.js +1199 -0
  79. package/dist/frontend/doc-tabs.d.ts +7 -0
  80. package/dist/frontend/doc-tabs.js +14 -0
  81. package/dist/frontend/document-drop-coordinator-C4xHMjwC.js +68 -0
  82. package/dist/frontend/document-drop-coordinator.d.ts +2 -0
  83. package/dist/frontend/document-drop-coordinator.js +2 -0
  84. package/dist/frontend/{documents-DFVS9SsL.js → documents-BsDkvzCm.js} +1 -1
  85. package/dist/frontend/editorExtensions-BMHvUbdk.js +27021 -0
  86. package/dist/frontend/ellipsis-vertical-BBuPldbW.js +519 -0
  87. package/dist/frontend/extension.js +6 -5
  88. package/dist/frontend/floating-layer-anchor-C51M4l6v.js +4513 -0
  89. package/dist/frontend/folder-TQjKY4yn.js +44 -0
  90. package/dist/frontend/folder-refresh.d.ts +8 -0
  91. package/dist/frontend/folder-refresh.js +2 -0
  92. package/dist/frontend/{folders-CGe9diAG.js → folders-CTuV_JtU.js} +1 -1
  93. package/dist/frontend/frontend.css +1 -1
  94. package/dist/frontend/i18n.js +1 -1
  95. package/dist/frontend/identity-DyWeNzu_.js +69 -0
  96. package/dist/frontend/index-client-jobkrWVL.js +86 -0
  97. package/dist/frontend/input-CBI6p4Xl.js +23 -0
  98. package/dist/frontend/keyboard.d.ts +14 -0
  99. package/dist/frontend/keyboard.js +2 -0
  100. package/dist/frontend/keyboard.svelte-D7H8DihC.js +133 -0
  101. package/dist/frontend/label-C-GkhEp4.js +30 -0
  102. package/dist/frontend/loader-circle-Bk-WFz9g.js +267 -0
  103. package/dist/frontend/markdown-BwnyjITU.js +11 -0
  104. package/dist/frontend/messages-BpYaLbzE.js +1091 -0
  105. package/dist/frontend/offline/identity.d.ts +6 -0
  106. package/dist/frontend/offline/identity.js +2 -0
  107. package/dist/frontend/resolve-BG4HgzpN.js +19 -0
  108. package/dist/frontend/rolldown-runtime-CWhphoD1.js +23 -0
  109. package/dist/frontend/rotate-ccw-CleZtJ5D.js +24 -0
  110. package/dist/frontend/search.js +637 -628
  111. package/dist/frontend/select-value-CvrWRkXW.js +1436 -0
  112. package/dist/frontend/settings-blyobazp.js +62 -0
  113. package/dist/frontend/share-Cu7SSJuJ.js +28 -0
  114. package/dist/frontend/shared-document.js +41 -40
  115. package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +65 -0
  116. package/dist/frontend/{tag-C5xrg-bb.js → tag-Dx3SmucJ.js} +7 -7
  117. package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +29 -0
  118. package/dist/frontend/{tags-DVXTut0p.js → tags-CtCV0Djo.js} +1 -1
  119. package/dist/frontend/textarea-Dfp78XlL.js +23 -0
  120. package/dist/frontend/theme.js +1 -1
  121. package/dist/frontend/{theme.svelte-ei0QxXa8.js → theme.svelte-CROg1Hi5.js} +7 -7
  122. package/dist/frontend/types.d.ts +6 -0
  123. package/dist/frontend/types.js +0 -0
  124. package/dist/frontend/utils/clipboard.d.ts +1 -0
  125. package/dist/frontend/utils/clipboard.js +2 -0
  126. package/dist/frontend/utils/dndzone.d.ts +4 -0
  127. package/dist/frontend/utils/dndzone.js +2 -0
  128. package/dist/frontend/utils-C0OW2678.js +20 -0
  129. package/dist/frontend/utils-D8kmM3ub.js +8 -0
  130. package/dist/frontend/utils.d.ts +4 -0
  131. package/dist/frontend/utils.js +2 -0
  132. package/dist/frontend/x-DaTdeDXv.js +24 -0
  133. package/package.json +109 -1
  134. package/packages/cli/src/index.ts +1 -1
  135. package/packages/mcp-server/src/index.ts +1 -1
  136. package/dist/frontend/DatePicker-BcMD49PV.js +0 -275
  137. package/dist/frontend/ShareDialog-Dzh7rV7J.js +0 -1317
  138. package/dist/frontend/input-ieWIt8I7.js +0 -257
  139. package/dist/frontend/messages-CTGAsqFu.js +0 -1106
  140. package/dist/frontend/resolve-Bl6xmJl_.js +0 -2068
  141. package/dist/frontend/tag-store.svelte-B3839FYq.js +0 -6152
@@ -0,0 +1,1436 @@
1
+ import "./disclose-version-5I57E3LD.js";
2
+ import { $ as e, A as t, E as n, F as r, J as i, K as a, M as o, O as s, P as c, Q as l, V as u, _t as d, at as f, c as p, ct as m, dt as h, et as g, ft as _, i as v, j as y, k as b, l as x, n as S, q as C, r as w, rt as T, vt as E, w as D, x as O, z as k } from "./client-Bc5Fzx40.js";
3
+ import { t as A } from "./utils-D8kmM3ub.js";
4
+ import { $ as j, A as M, C as N, D as P, E as F, G as I, H as L, J as R, K as z, O as B, P as ee, Q as te, S as ne, T as re, V as ie, W as ae, X as oe, Y as V, Z as H, _ as se, a as ce, b as le, g as ue, h as de, i as U, j as fe, k as pe, n as me, o as he, q as W, r as ge, t as _e, v as G, w as K, x as ve, y as ye, z as be } from "./floating-layer-anchor-C51M4l6v.js";
5
+ import "./index-client-jobkrWVL.js";
6
+ import { untrack as xe } from "svelte";
7
+ //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+68f06e2e1fdd21f8/node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js
8
+ var q = {
9
+ position: "absolute",
10
+ width: "1px",
11
+ height: "1px",
12
+ padding: "0",
13
+ margin: "-1px",
14
+ overflow: "hidden",
15
+ clip: "rect(0, 0, 0, 0)",
16
+ whiteSpace: "nowrap",
17
+ borderWidth: "0",
18
+ transform: "translateX(-100%)"
19
+ };
20
+ te(q);
21
+ //#endregion
22
+ //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+68f06e2e1fdd21f8/node_modules/svelte-toolbelt/dist/utils/on-mount-effect.svelte.js
23
+ function Se(e) {
24
+ C(() => xe(() => e()));
25
+ }
26
+ //#endregion
27
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/internal/data-typeahead.svelte.js
28
+ var Ce = class {
29
+ #e;
30
+ #t = m(() => this.#e.candidateValues());
31
+ #n;
32
+ constructor(e) {
33
+ this.#e = e, this.#n = se("", {
34
+ afterMs: 1e3,
35
+ getWindow: this.#e.getWindow
36
+ }), this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this), this.resetTypeahead = this.resetTypeahead.bind(this);
37
+ }
38
+ handleTypeaheadSearch(e) {
39
+ if (!this.#e.enabled() || !u(this.#t).length) return;
40
+ this.#n.current = this.#n.current + e;
41
+ let t = this.#e.getCurrentItem(), n = u(this.#t).find((e) => e === t) ?? "", r = ve(u(this.#t).map((e) => e ?? ""), this.#n.current, n), i = u(this.#t).find((e) => e === r);
42
+ return i && this.#e.onMatch(i), i;
43
+ }
44
+ resetTypeahead() {
45
+ this.#n.current = "";
46
+ }
47
+ }, we = [
48
+ fe,
49
+ L,
50
+ be
51
+ ], Te = [
52
+ ee,
53
+ ie,
54
+ "End"
55
+ ], Ee = [...we, ...Te], De = P({
56
+ component: "select",
57
+ parts: [
58
+ "trigger",
59
+ "content",
60
+ "item",
61
+ "viewport",
62
+ "scroll-up-button",
63
+ "scroll-down-button",
64
+ "group",
65
+ "group-label",
66
+ "separator",
67
+ "arrow",
68
+ "input",
69
+ "content-wrapper",
70
+ "item-text",
71
+ "value"
72
+ ]
73
+ }), J = new z("Select.Root | Combobox.Root");
74
+ new z("Select.Group | Combobox.Group");
75
+ var Y = new z("Select.Content | Combobox.Content"), X = class {
76
+ opts;
77
+ #e = f(!1);
78
+ get touchedInput() {
79
+ return u(this.#e);
80
+ }
81
+ set touchedInput(e) {
82
+ T(this.#e, e, !0);
83
+ }
84
+ #t = f(null);
85
+ get inputNode() {
86
+ return u(this.#t);
87
+ }
88
+ set inputNode(e) {
89
+ T(this.#t, e, !0);
90
+ }
91
+ #n = f(null);
92
+ get contentNode() {
93
+ return u(this.#n);
94
+ }
95
+ set contentNode(e) {
96
+ T(this.#n, e, !0);
97
+ }
98
+ contentPresence;
99
+ #r = f(null);
100
+ get viewportNode() {
101
+ return u(this.#r);
102
+ }
103
+ set viewportNode(e) {
104
+ T(this.#r, e, !0);
105
+ }
106
+ #i = f(null);
107
+ get triggerNode() {
108
+ return u(this.#i);
109
+ }
110
+ set triggerNode(e) {
111
+ T(this.#i, e, !0);
112
+ }
113
+ #a = f(null);
114
+ get valueNode() {
115
+ return u(this.#a);
116
+ }
117
+ set valueNode(e) {
118
+ T(this.#a, e, !0);
119
+ }
120
+ #o = f("");
121
+ get valueId() {
122
+ return u(this.#o);
123
+ }
124
+ set valueId(e) {
125
+ T(this.#o, e, !0);
126
+ }
127
+ #s = f(null);
128
+ get highlightedNode() {
129
+ return u(this.#s);
130
+ }
131
+ set highlightedNode(e) {
132
+ T(this.#s, e, !0);
133
+ }
134
+ #c = m(() => this.highlightedNode ? this.highlightedNode.getAttribute("data-value") : null);
135
+ get highlightedValue() {
136
+ return u(this.#c);
137
+ }
138
+ set highlightedValue(e) {
139
+ T(this.#c, e);
140
+ }
141
+ #l = m(() => {
142
+ if (this.highlightedNode) return this.highlightedNode.id;
143
+ });
144
+ get highlightedId() {
145
+ return u(this.#l);
146
+ }
147
+ set highlightedId(e) {
148
+ T(this.#l, e);
149
+ }
150
+ #u = m(() => this.highlightedNode ? this.highlightedNode.getAttribute("data-label") : null);
151
+ get highlightedLabel() {
152
+ return u(this.#u);
153
+ }
154
+ set highlightedLabel(e) {
155
+ T(this.#u, e);
156
+ }
157
+ #d = f(!1);
158
+ get contentIsPositioned() {
159
+ return u(this.#d);
160
+ }
161
+ set contentIsPositioned(e) {
162
+ T(this.#d, e, !0);
163
+ }
164
+ isUsingKeyboard = !1;
165
+ isCombobox = !1;
166
+ domContext = new R(() => null);
167
+ constructor(e) {
168
+ this.opts = e, this.isCombobox = e.isCombobox, this.contentPresence = new de({
169
+ ref: j(() => this.contentNode),
170
+ open: this.opts.open,
171
+ onComplete: () => {
172
+ this.opts.onOpenChangeComplete.current(this.opts.open.current);
173
+ }
174
+ }), i(() => {
175
+ this.opts.open.current || this.setHighlightedNode(null);
176
+ });
177
+ }
178
+ setHighlightedNode(e, t = !1) {
179
+ this.highlightedNode = e, e && (this.isUsingKeyboard || t) && this.scrollHighlightedNodeIntoView(e);
180
+ }
181
+ scrollHighlightedNodeIntoView(e) {
182
+ !this.viewportNode || !this.contentIsPositioned || e.scrollIntoView({ block: this.opts.scrollAlignment.current });
183
+ }
184
+ getCandidateNodes() {
185
+ let e = this.contentNode;
186
+ return e ? Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)) : [];
187
+ }
188
+ setHighlightedToFirstCandidate(e = !1) {
189
+ this.setHighlightedNode(null);
190
+ let t = this.getCandidateNodes();
191
+ if (t.length) {
192
+ if (this.viewportNode) {
193
+ let e = this.viewportNode.getBoundingClientRect();
194
+ t = t.filter((t) => {
195
+ if (!this.viewportNode) return !1;
196
+ let n = t.getBoundingClientRect();
197
+ return n.right <= e.right && n.left >= e.left && n.bottom <= e.bottom && n.top >= e.top;
198
+ });
199
+ }
200
+ this.setHighlightedNode(t[0], e);
201
+ }
202
+ }
203
+ getNodeByValue(e) {
204
+ return this.getCandidateNodes().find((t) => t.dataset.value === e) ?? null;
205
+ }
206
+ getLabelForValue(e) {
207
+ if (e === "") return "";
208
+ let t = this.opts.items.current.find((t) => t.value === e)?.label;
209
+ if (t !== void 0) return t;
210
+ let n = this.getNodeByValue(e);
211
+ if (n) {
212
+ let t = n.getAttribute("data-label");
213
+ return t !== null && t !== "" ? t : n.textContent?.trim() ?? e;
214
+ }
215
+ return e;
216
+ }
217
+ setOpen(e) {
218
+ this.opts.open.current = e;
219
+ }
220
+ toggleOpen() {
221
+ this.opts.open.current = !this.opts.open.current;
222
+ }
223
+ handleOpen() {
224
+ this.setOpen(!0);
225
+ }
226
+ handleClose() {
227
+ this.setHighlightedNode(null), this.setOpen(!1);
228
+ }
229
+ toggleMenu() {
230
+ this.toggleOpen();
231
+ }
232
+ getBitsAttr = (e) => De.getAttr(e, this.isCombobox ? "combobox" : void 0);
233
+ }, Oe = class extends X {
234
+ opts;
235
+ isMulti = !1;
236
+ #e = m(() => this.opts.value.current !== "");
237
+ get hasValue() {
238
+ return u(this.#e);
239
+ }
240
+ set hasValue(e) {
241
+ T(this.#e, e);
242
+ }
243
+ #t = m(() => this.opts.items.current.length ? this.opts.items.current.find((e) => e.value === this.opts.value.current)?.label ?? "" : "");
244
+ get currentLabel() {
245
+ return u(this.#t);
246
+ }
247
+ set currentLabel(e) {
248
+ T(this.#t, e);
249
+ }
250
+ #n = m(() => this.opts.items.current.length ? this.opts.items.current.filter((e) => !e.disabled).map((e) => e.label) : []);
251
+ get candidateLabels() {
252
+ return u(this.#n);
253
+ }
254
+ set candidateLabels(e) {
255
+ T(this.#n, e);
256
+ }
257
+ #r = m(() => !(this.isMulti || this.opts.items.current.length === 0));
258
+ get dataTypeaheadEnabled() {
259
+ return u(this.#r);
260
+ }
261
+ set dataTypeaheadEnabled(e) {
262
+ T(this.#r, e);
263
+ }
264
+ constructor(e) {
265
+ super(e), this.opts = e, C(() => {
266
+ !this.opts.open.current && this.highlightedNode && this.setHighlightedNode(null);
267
+ }), I(() => this.opts.open.current, () => {
268
+ this.opts.open.current && this.setInitialHighlightedNode();
269
+ });
270
+ }
271
+ includesItem(e) {
272
+ return this.opts.value.current === e;
273
+ }
274
+ toggleItem(e, t = e) {
275
+ let n = this.includesItem(e) ? "" : e;
276
+ this.opts.value.current = n, n !== "" && (this.opts.inputValue.current = t);
277
+ }
278
+ setInitialHighlightedNode() {
279
+ V(() => {
280
+ if (!(this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode))) {
281
+ if (this.opts.value.current !== "") {
282
+ let e = this.getNodeByValue(this.opts.value.current);
283
+ if (e) {
284
+ this.setHighlightedNode(e, !0);
285
+ return;
286
+ }
287
+ }
288
+ this.setHighlightedToFirstCandidate(!0);
289
+ }
290
+ });
291
+ }
292
+ }, ke = class extends X {
293
+ opts;
294
+ isMulti = !0;
295
+ #e = m(() => this.opts.value.current.length > 0);
296
+ get hasValue() {
297
+ return u(this.#e);
298
+ }
299
+ set hasValue(e) {
300
+ T(this.#e, e);
301
+ }
302
+ constructor(e) {
303
+ super(e), this.opts = e, C(() => {
304
+ !this.opts.open.current && this.highlightedNode && this.setHighlightedNode(null);
305
+ }), I(() => this.opts.open.current, () => {
306
+ this.opts.open.current && this.setInitialHighlightedNode();
307
+ });
308
+ }
309
+ includesItem(e) {
310
+ return this.opts.value.current.includes(e);
311
+ }
312
+ toggleItem(e, t = e) {
313
+ this.includesItem(e) ? this.opts.value.current = this.opts.value.current.filter((t) => t !== e) : this.opts.value.current = [...this.opts.value.current, e], this.opts.inputValue.current = t;
314
+ }
315
+ setInitialHighlightedNode() {
316
+ V(() => {
317
+ if (this.domContext && !(this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode))) {
318
+ if (this.opts.value.current.length && this.opts.value.current[0] !== "") {
319
+ let e = this.getNodeByValue(this.opts.value.current[0]);
320
+ if (e) {
321
+ this.setHighlightedNode(e, !0);
322
+ return;
323
+ }
324
+ }
325
+ this.setHighlightedToFirstCandidate(!0);
326
+ }
327
+ });
328
+ }
329
+ }, Ae = class {
330
+ static create(e) {
331
+ let { type: t, ...n } = e, r = t === "single" ? new Oe(n) : new ke(n);
332
+ return J.set(r);
333
+ }
334
+ }, je = class e {
335
+ static create(t) {
336
+ return new e(t, J.get());
337
+ }
338
+ root;
339
+ opts;
340
+ attachment;
341
+ constructor(e, t) {
342
+ this.root = t, this.opts = e, this.attachment = W(e.ref, (e) => this.root.valueNode = e), this.setValue = this.setValue.bind(this);
343
+ }
344
+ setValue(e) {
345
+ this.root.isMulti && !Array.isArray(e) || !this.root.isMulti && typeof e != "string" || (this.root.opts.value.current = e);
346
+ }
347
+ #e = m(() => {
348
+ if (this.root.isMulti) return {
349
+ selection: {
350
+ type: "multiple",
351
+ selected: this.root.opts.value.current.length > 0 ? this.root.opts.value.current.map((e) => ({
352
+ value: e,
353
+ label: this.root.getLabelForValue(e)
354
+ })) : [],
355
+ setValue: this.setValue
356
+ },
357
+ placeholder: this.opts.placeholder.current ?? null,
358
+ disabled: this.root.opts.disabled.current
359
+ };
360
+ let e = this.root.opts.value.current;
361
+ return {
362
+ selection: {
363
+ type: "single",
364
+ selected: e === "" ? void 0 : {
365
+ value: e,
366
+ label: e === "" ? "" : this.root.getLabelForValue(e)
367
+ },
368
+ setValue: this.setValue
369
+ },
370
+ placeholder: this.opts.placeholder.current ?? null,
371
+ disabled: this.root.opts.disabled.current
372
+ };
373
+ });
374
+ get snippetProps() {
375
+ return u(this.#e);
376
+ }
377
+ set snippetProps(e) {
378
+ T(this.#e, e);
379
+ }
380
+ #t = m(() => ({
381
+ id: this.opts.id.current,
382
+ "data-placeholder": this.root.hasValue ? void 0 : "",
383
+ "data-select-value": "",
384
+ ...this.attachment
385
+ }));
386
+ get props() {
387
+ return u(this.#t);
388
+ }
389
+ set props(e) {
390
+ T(this.#t, e);
391
+ }
392
+ }, Me = class e {
393
+ static create(t) {
394
+ return new e(t, J.get());
395
+ }
396
+ opts;
397
+ root;
398
+ attachment;
399
+ #e;
400
+ #t;
401
+ constructor(e, t) {
402
+ this.opts = e, this.root = t, this.attachment = W(e.ref, (e) => this.root.triggerNode = e), this.root.domContext = new R(e.ref), this.#e = new ue({
403
+ getCurrentItem: () => this.root.highlightedNode,
404
+ onMatch: (e) => {
405
+ this.root.setHighlightedNode(e);
406
+ },
407
+ getActiveElement: () => this.root.domContext.getActiveElement(),
408
+ getWindow: () => this.root.domContext.getWindow()
409
+ }), this.#t = new Ce({
410
+ getCurrentItem: () => this.root.isMulti ? "" : this.root.currentLabel,
411
+ onMatch: (e) => {
412
+ if (this.root.isMulti || !this.root.opts.items.current) return;
413
+ let t = this.root.opts.items.current.find((t) => t.label === e);
414
+ t && (this.root.opts.value.current = t.value);
415
+ },
416
+ enabled: () => !this.root.isMulti && this.root.dataTypeaheadEnabled,
417
+ candidateValues: () => this.root.isMulti ? [] : this.root.candidateLabels,
418
+ getWindow: () => this.root.domContext.getWindow()
419
+ }), this.onkeydown = this.onkeydown.bind(this), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this), this.onclick = this.onclick.bind(this);
420
+ }
421
+ #n() {
422
+ this.root.opts.open.current = !0, this.#t.resetTypeahead(), this.#e.resetTypeahead();
423
+ }
424
+ #r(e) {
425
+ this.#n();
426
+ }
427
+ #i() {
428
+ let e = this.root.highlightedValue === this.root.opts.value.current;
429
+ return !this.root.opts.allowDeselect.current && e && !this.root.isMulti || (this.root.highlightedValue !== null && this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? void 0), !this.root.isMulti && !e) ? (this.root.handleClose(), !0) : !1;
430
+ }
431
+ onkeydown(e) {
432
+ if (this.root.isUsingKeyboard = !0, (e.key === "ArrowUp" || e.key === "ArrowDown") && e.preventDefault(), !this.root.opts.open.current) {
433
+ if (e.key === "Enter" || e.key === " " || e.key === "ArrowDown" || e.key === "ArrowUp") e.preventDefault(), this.root.handleOpen();
434
+ else if (!this.root.isMulti && this.root.dataTypeaheadEnabled) {
435
+ this.#t.handleTypeaheadSearch(e.key);
436
+ return;
437
+ }
438
+ if (this.root.hasValue) return;
439
+ let t = this.root.getCandidateNodes();
440
+ if (!t.length) return;
441
+ if (e.key === "ArrowDown") {
442
+ let e = t[0];
443
+ this.root.setHighlightedNode(e);
444
+ } else if (e.key === "ArrowUp") {
445
+ let e = t[t.length - 1];
446
+ this.root.setHighlightedNode(e);
447
+ }
448
+ return;
449
+ }
450
+ if (e.key === "Tab") {
451
+ this.root.handleClose();
452
+ return;
453
+ }
454
+ if ((e.key === "Enter" || e.key === " " && this.#e.search === "") && !e.isComposing && (e.preventDefault(), this.#i())) return;
455
+ if (e.key === "ArrowUp" && e.altKey && this.root.handleClose(), Ee.includes(e.key)) {
456
+ e.preventDefault();
457
+ let t = this.root.getCandidateNodes(), n = this.root.highlightedNode, r = n ? t.indexOf(n) : -1, i = this.root.opts.loop.current, a;
458
+ if (e.key === "ArrowDown" ? a = ne(t, r, i) : e.key === "ArrowUp" ? a = N(t, r, i) : e.key === "PageDown" ? a = le(t, r, 10, i) : e.key === "PageUp" ? a = ye(t, r, 10, i) : e.key === "Home" ? a = t[0] : e.key === "End" && (a = t[t.length - 1]), !a) return;
459
+ this.root.setHighlightedNode(a);
460
+ return;
461
+ }
462
+ let t = e.ctrlKey || e.altKey || e.metaKey, n = e.key.length === 1, r = e.key === " ", i = this.root.getCandidateNodes();
463
+ if (e.key !== "Tab") {
464
+ if (!t && (n || r)) {
465
+ !this.#e.handleTypeaheadSearch(e.key, i) && r && (e.preventDefault(), this.#i());
466
+ return;
467
+ }
468
+ this.root.highlightedNode || this.root.setHighlightedToFirstCandidate();
469
+ }
470
+ }
471
+ onclick(e) {
472
+ e.currentTarget.focus();
473
+ }
474
+ onpointerdown(e) {
475
+ if (this.root.opts.disabled.current) return;
476
+ if (e.pointerType === "touch") return e.preventDefault();
477
+ let t = e.target;
478
+ t?.hasPointerCapture(e.pointerId) && t?.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && (this.root.opts.open.current === !1 ? this.#r(e) : this.root.handleClose());
479
+ }
480
+ onpointerup(e) {
481
+ this.root.opts.disabled.current || (e.preventDefault(), e.pointerType === "touch" && (this.root.opts.open.current === !1 ? this.#r(e) : this.root.handleClose()));
482
+ }
483
+ #a = m(() => ({
484
+ id: this.opts.id.current,
485
+ disabled: this.root.opts.disabled.current ? !0 : void 0,
486
+ "aria-haspopup": "listbox",
487
+ "aria-expanded": re(this.root.opts.open.current),
488
+ "aria-activedescendant": this.root.highlightedId,
489
+ "data-state": B(this.root.opts.open.current),
490
+ "data-disabled": K(this.root.opts.disabled.current),
491
+ "data-placeholder": this.root.hasValue ? void 0 : "",
492
+ [this.root.getBitsAttr("trigger")]: "",
493
+ onpointerdown: this.onpointerdown,
494
+ onkeydown: this.onkeydown,
495
+ onclick: this.onclick,
496
+ onpointerup: this.onpointerup,
497
+ ...this.attachment
498
+ }));
499
+ get props() {
500
+ return u(this.#a);
501
+ }
502
+ set props(e) {
503
+ T(this.#a, e);
504
+ }
505
+ }, Ne = class e {
506
+ static create(t) {
507
+ return Y.set(new e(t, J.get()));
508
+ }
509
+ opts;
510
+ root;
511
+ attachment;
512
+ #e = f(!1);
513
+ get isPositioned() {
514
+ return u(this.#e);
515
+ }
516
+ set isPositioned(e) {
517
+ T(this.#e, e, !0);
518
+ }
519
+ domContext;
520
+ constructor(e, t) {
521
+ this.opts = e, this.root = t, this.attachment = W(e.ref, (e) => this.root.contentNode = e), this.domContext = new R(this.opts.ref), this.root.domContext === null && (this.root.domContext = this.domContext), oe(() => {
522
+ this.root.contentNode = null, this.root.contentIsPositioned = !1, this.isPositioned = !1;
523
+ }), I(() => this.root.opts.open.current, () => {
524
+ this.root.opts.open.current || (this.root.contentIsPositioned = !1, this.isPositioned = !1);
525
+ }), I([() => this.isPositioned, () => this.root.highlightedNode], () => {
526
+ !this.isPositioned || !this.root.highlightedNode || this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode);
527
+ }), this.onpointermove = this.onpointermove.bind(this);
528
+ }
529
+ onpointermove(e) {
530
+ this.root.isUsingKeyboard = !1;
531
+ }
532
+ #t = m(() => he(this.root.isCombobox ? "combobox" : "select"));
533
+ onInteractOutside = (e) => {
534
+ if (e.target === this.root.triggerNode || e.target === this.root.inputNode) {
535
+ e.preventDefault();
536
+ return;
537
+ }
538
+ this.opts.onInteractOutside.current(e), !e.defaultPrevented && this.root.handleClose();
539
+ };
540
+ onEscapeKeydown = (e) => {
541
+ this.opts.onEscapeKeydown.current(e), !e.defaultPrevented && this.root.handleClose();
542
+ };
543
+ onOpenAutoFocus = (e) => {
544
+ e.preventDefault();
545
+ };
546
+ onCloseAutoFocus = (e) => {
547
+ e.preventDefault();
548
+ };
549
+ get shouldRender() {
550
+ return this.root.contentPresence.shouldRender;
551
+ }
552
+ #n = m(() => ({ open: this.root.opts.open.current }));
553
+ get snippetProps() {
554
+ return u(this.#n);
555
+ }
556
+ set snippetProps(e) {
557
+ T(this.#n, e);
558
+ }
559
+ #r = m(() => ({
560
+ id: this.opts.id.current,
561
+ role: "listbox",
562
+ "aria-multiselectable": this.root.isMulti ? "true" : void 0,
563
+ "data-state": B(this.root.opts.open.current),
564
+ ...pe(this.root.contentPresence.transitionStatus),
565
+ [this.root.getBitsAttr("content")]: "",
566
+ style: {
567
+ display: "flex",
568
+ flexDirection: "column",
569
+ outline: "none",
570
+ boxSizing: "border-box",
571
+ pointerEvents: "auto",
572
+ ...u(this.#t)
573
+ },
574
+ onpointermove: this.onpointermove,
575
+ ...this.attachment
576
+ }));
577
+ get props() {
578
+ return u(this.#r);
579
+ }
580
+ set props(e) {
581
+ T(this.#r, e);
582
+ }
583
+ popperProps = {
584
+ onInteractOutside: this.onInteractOutside,
585
+ onEscapeKeydown: this.onEscapeKeydown,
586
+ onOpenAutoFocus: this.onOpenAutoFocus,
587
+ onCloseAutoFocus: this.onCloseAutoFocus,
588
+ trapFocus: !1,
589
+ loop: !1,
590
+ onPlaced: () => {
591
+ this.root.opts.open.current && (this.root.contentIsPositioned = !0, this.isPositioned = !0);
592
+ }
593
+ };
594
+ }, Pe = class e {
595
+ static create(t) {
596
+ return new e(t, J.get());
597
+ }
598
+ opts;
599
+ root;
600
+ attachment;
601
+ #e = m(() => this.root.includesItem(this.opts.value.current));
602
+ get isSelected() {
603
+ return u(this.#e);
604
+ }
605
+ set isSelected(e) {
606
+ T(this.#e, e);
607
+ }
608
+ #t = m(() => this.root.highlightedValue === this.opts.value.current);
609
+ get isHighlighted() {
610
+ return u(this.#t);
611
+ }
612
+ set isHighlighted(e) {
613
+ T(this.#t, e);
614
+ }
615
+ prevHighlighted = new ae(() => this.isHighlighted);
616
+ #n = f(!1);
617
+ get mounted() {
618
+ return u(this.#n);
619
+ }
620
+ set mounted(e) {
621
+ T(this.#n, e, !0);
622
+ }
623
+ constructor(e, t) {
624
+ this.opts = e, this.root = t, this.attachment = W(e.ref), I([() => this.isHighlighted, () => this.prevHighlighted.current], () => {
625
+ this.isHighlighted ? this.opts.onHighlight.current() : this.prevHighlighted.current && this.opts.onUnhighlight.current();
626
+ }), I(() => this.mounted, () => {
627
+ this.mounted && this.root.setInitialHighlightedNode();
628
+ }), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this), this.onpointermove = this.onpointermove.bind(this);
629
+ }
630
+ handleSelect() {
631
+ if (this.opts.disabled.current) return;
632
+ let e = this.opts.value.current === this.root.opts.value.current;
633
+ if (!this.root.opts.allowDeselect.current && e && !this.root.isMulti) {
634
+ this.root.handleClose();
635
+ return;
636
+ }
637
+ this.root.toggleItem(this.opts.value.current, this.opts.label.current), !this.root.isMulti && !e && this.root.handleClose();
638
+ }
639
+ #r = m(() => ({
640
+ selected: this.isSelected,
641
+ highlighted: this.isHighlighted
642
+ }));
643
+ get snippetProps() {
644
+ return u(this.#r);
645
+ }
646
+ set snippetProps(e) {
647
+ T(this.#r, e);
648
+ }
649
+ onpointerdown(e) {
650
+ e.preventDefault();
651
+ }
652
+ onpointerup(e) {
653
+ if (!(e.defaultPrevented || !this.opts.ref.current)) {
654
+ if (e.pointerType === "touch" && !M) {
655
+ k(this.opts.ref.current, "click", () => {
656
+ this.handleSelect(), this.root.setHighlightedNode(this.opts.ref.current);
657
+ }, { once: !0 });
658
+ return;
659
+ }
660
+ e.preventDefault(), this.handleSelect(), e.pointerType === "touch" && this.root.setHighlightedNode(this.opts.ref.current);
661
+ }
662
+ }
663
+ onpointermove(e) {
664
+ e.pointerType !== "touch" && this.root.highlightedNode !== this.opts.ref.current && this.root.setHighlightedNode(this.opts.ref.current);
665
+ }
666
+ #i = m(() => ({
667
+ id: this.opts.id.current,
668
+ role: "option",
669
+ "aria-selected": this.root.includesItem(this.opts.value.current) ? "true" : void 0,
670
+ "data-value": this.opts.value.current,
671
+ "data-disabled": K(this.opts.disabled.current),
672
+ "data-highlighted": this.root.highlightedValue === this.opts.value.current && !this.opts.disabled.current ? "" : void 0,
673
+ "data-selected": this.root.includesItem(this.opts.value.current) ? "" : void 0,
674
+ "data-label": this.opts.label.current,
675
+ [this.root.getBitsAttr("item")]: "",
676
+ onpointermove: this.onpointermove,
677
+ onpointerdown: this.onpointerdown,
678
+ onpointerup: this.onpointerup,
679
+ ...this.attachment
680
+ }));
681
+ get props() {
682
+ return u(this.#i);
683
+ }
684
+ set props(e) {
685
+ T(this.#i, e);
686
+ }
687
+ }, Fe = class e {
688
+ static create(t) {
689
+ return new e(t, J.get());
690
+ }
691
+ opts;
692
+ root;
693
+ #e = m(() => this.root.opts.name.current !== "");
694
+ get shouldRender() {
695
+ return u(this.#e);
696
+ }
697
+ set shouldRender(e) {
698
+ T(this.#e, e);
699
+ }
700
+ constructor(e, t) {
701
+ this.opts = e, this.root = t, this.onfocus = this.onfocus.bind(this);
702
+ }
703
+ onfocus(e) {
704
+ e.preventDefault(), this.root.isCombobox ? this.root.inputNode?.focus() : this.root.triggerNode?.focus();
705
+ }
706
+ #t = m(() => ({
707
+ disabled: F(this.root.opts.disabled.current),
708
+ required: F(this.root.opts.required.current),
709
+ name: this.root.opts.name.current,
710
+ value: this.opts.value.current,
711
+ onfocus: this.onfocus
712
+ }));
713
+ get props() {
714
+ return u(this.#t);
715
+ }
716
+ set props(e) {
717
+ T(this.#t, e);
718
+ }
719
+ }, Ie = class e {
720
+ static create(t) {
721
+ return new e(t, Y.get());
722
+ }
723
+ opts;
724
+ content;
725
+ root;
726
+ attachment;
727
+ #e = f(0);
728
+ get prevScrollTop() {
729
+ return u(this.#e);
730
+ }
731
+ set prevScrollTop(e) {
732
+ T(this.#e, e, !0);
733
+ }
734
+ constructor(e, t) {
735
+ this.opts = e, this.content = t, this.root = t.root, this.attachment = W(e.ref, (e) => {
736
+ this.root.viewportNode = e;
737
+ });
738
+ }
739
+ #t = m(() => ({
740
+ id: this.opts.id.current,
741
+ role: "presentation",
742
+ [this.root.getBitsAttr("viewport")]: "",
743
+ style: {
744
+ position: "relative",
745
+ flex: 1,
746
+ overflow: "auto"
747
+ },
748
+ ...this.attachment
749
+ }));
750
+ get props() {
751
+ return u(this.#t);
752
+ }
753
+ set props(e) {
754
+ T(this.#t, e);
755
+ }
756
+ }, Le = /* @__PURE__ */ new Set([
757
+ "$$slots",
758
+ "$$events",
759
+ "$$legacy",
760
+ "value"
761
+ ]), Z = o("<input/>");
762
+ function Re(r, i) {
763
+ _(i, !0);
764
+ let a = S(i, "value", 15), o = w(i, Le), s = m(() => H(o, {
765
+ "aria-hidden": "true",
766
+ tabindex: -1,
767
+ style: {
768
+ ...q,
769
+ position: "absolute",
770
+ top: "0",
771
+ left: "0"
772
+ }
773
+ }));
774
+ var c = y(), l = e(c), d = (e) => {
775
+ var n = Z();
776
+ x(n, () => ({
777
+ ...u(s),
778
+ value: a()
779
+ }), void 0, void 0, void 0, void 0, !0), t(e, n);
780
+ }, f = (e) => {
781
+ var n = Z();
782
+ x(n, () => ({ ...u(s) }), void 0, void 0, void 0, void 0, !0), p(n, a), t(e, n);
783
+ };
784
+ n(l, (e) => {
785
+ u(s).type === "checkbox" ? e(d) : e(f, -1);
786
+ }), t(r, c), h();
787
+ }
788
+ //#endregion
789
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte
790
+ function Q(r, i) {
791
+ _(i, !0);
792
+ let a = S(i, "value", 15), o = Fe.create({ value: j(() => a()) });
793
+ var s = y(), c = e(s), l = (e) => {
794
+ Re(e, v(() => o.props, {
795
+ get autocomplete() {
796
+ return i.autocomplete;
797
+ },
798
+ get value() {
799
+ return a();
800
+ },
801
+ set value(e) {
802
+ a(e);
803
+ }
804
+ }));
805
+ };
806
+ n(c, (e) => {
807
+ o.shouldRender && e(l);
808
+ }), t(r, s), h();
809
+ }
810
+ //#endregion
811
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select.svelte
812
+ var ze = o("<!> <!>", 1);
813
+ function Be(r, i) {
814
+ _(i, !0);
815
+ let a = S(i, "value", 15), o = S(i, "onValueChange", 3, G), c = S(i, "name", 3, ""), l = S(i, "disabled", 3, !1), d = S(i, "open", 15, !1), p = S(i, "onOpenChange", 3, G), v = S(i, "onOpenChangeComplete", 3, G), b = S(i, "loop", 3, !1), x = S(i, "scrollAlignment", 3, "nearest"), C = S(i, "required", 3, !1), w = S(i, "items", 19, () => []), O = S(i, "allowDeselect", 3, !1);
816
+ function k() {
817
+ a() === void 0 && a(i.type === "single" ? "" : []);
818
+ }
819
+ k(), I.pre(() => a(), () => {
820
+ k();
821
+ });
822
+ let A = f(""), M = Ae.create({
823
+ type: i.type,
824
+ value: j(() => a(), (e) => {
825
+ a(e), o()(e);
826
+ }),
827
+ disabled: j(() => l()),
828
+ required: j(() => C()),
829
+ open: j(() => d(), (e) => {
830
+ d(e), p()(e);
831
+ }),
832
+ loop: j(() => b()),
833
+ scrollAlignment: j(() => x()),
834
+ name: j(() => c()),
835
+ isCombobox: !1,
836
+ items: j(() => w()),
837
+ allowDeselect: j(() => O()),
838
+ inputValue: j(() => u(A), (e) => T(A, e, !0)),
839
+ onOpenChangeComplete: j(() => v())
840
+ });
841
+ var N = ze(), P = e(N);
842
+ ce(P, {
843
+ children: (n, r) => {
844
+ var a = y();
845
+ s(e(a), () => i.children ?? E), t(n, a);
846
+ },
847
+ $$slots: { default: !0 }
848
+ });
849
+ var F = g(P, 2), L = (r) => {
850
+ var a = y(), o = e(a), s = (e) => {
851
+ Q(e, { get autocomplete() {
852
+ return i.autocomplete;
853
+ } });
854
+ }, c = (n) => {
855
+ var r = y();
856
+ D(e(r), 16, () => M.opts.value.current, (e) => e, (e, t) => {
857
+ Q(e, {
858
+ get value() {
859
+ return t;
860
+ },
861
+ get autocomplete() {
862
+ return i.autocomplete;
863
+ }
864
+ });
865
+ }), t(n, r);
866
+ };
867
+ n(o, (e) => {
868
+ M.opts.value.current.length === 0 ? e(s) : e(c, -1);
869
+ }), t(r, a);
870
+ }, R = m(() => Array.isArray(M.opts.value.current)), z = (e) => {
871
+ Q(e, {
872
+ get autocomplete() {
873
+ return i.autocomplete;
874
+ },
875
+ get value() {
876
+ return M.opts.value.current;
877
+ },
878
+ set value(e) {
879
+ M.opts.value.current = e;
880
+ }
881
+ });
882
+ };
883
+ n(F, (e) => {
884
+ u(R) ? e(L) : e(z, -1);
885
+ }), t(r, N), h();
886
+ }
887
+ //#endregion
888
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-value.svelte
889
+ var Ve = /* @__PURE__ */ new Set([
890
+ "$$slots",
891
+ "$$events",
892
+ "$$legacy",
893
+ "ref",
894
+ "id",
895
+ "placeholder",
896
+ "child",
897
+ "children"
898
+ ]), He = o("<span><!></span>");
899
+ function Ue(i, o) {
900
+ let f = c();
901
+ _(o, !0);
902
+ let p = S(o, "ref", 15, null), g = S(o, "id", 19, () => U(f)), v = w(o, Ve), C = je.create({
903
+ id: j(() => g()),
904
+ ref: j(() => p(), (e) => p(e)),
905
+ placeholder: j(() => o.placeholder)
906
+ }), T = m(() => H(v, C.props));
907
+ var D = y(), O = e(D), k = (n) => {
908
+ var r = y(), i = e(r);
909
+ {
910
+ let e = m(() => ({
911
+ props: u(T),
912
+ ...C.snippetProps
913
+ }));
914
+ s(i, () => o.child, () => u(e));
915
+ }
916
+ t(n, r);
917
+ }, A = (i) => {
918
+ var c = He();
919
+ x(c, () => ({ ...u(T) }));
920
+ var f = l(c), p = (n) => {
921
+ var r = y();
922
+ s(e(r), () => o.children ?? E, () => C.snippetProps), t(n, r);
923
+ }, m = (e) => {
924
+ var n = r();
925
+ a(() => b(n, C.snippetProps.selection.selected?.label ?? o.placeholder)), t(e, n);
926
+ }, h = (e) => {
927
+ var n = r();
928
+ a((e) => b(n, e), [() => C.snippetProps.selection.selected.length > 0 ? C.snippetProps.selection.selected.map((e) => e.label).join(", ") : o.placeholder]), t(e, n);
929
+ }, g = (e) => {
930
+ var n = r();
931
+ a(() => b(n, o.placeholder)), t(e, n);
932
+ };
933
+ n(f, (e) => {
934
+ o.children ? e(p) : C.snippetProps.selection.type === "single" ? e(m, 1) : C.snippetProps.selection.type === "multiple" && C.snippetProps.selection.selected ? e(h, 2) : e(g, -1);
935
+ }), d(c), t(i, c);
936
+ };
937
+ n(O, (e) => {
938
+ o.child ? e(k) : e(A, -1);
939
+ }), t(i, D), h();
940
+ }
941
+ //#endregion
942
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-content.svelte
943
+ var We = /* @__PURE__ */ new Set([
944
+ "$$slots",
945
+ "$$events",
946
+ "$$legacy",
947
+ "id",
948
+ "ref",
949
+ "forceMount",
950
+ "side",
951
+ "onInteractOutside",
952
+ "onEscapeKeydown",
953
+ "children",
954
+ "child",
955
+ "preventScroll",
956
+ "style"
957
+ ]), Ge = o("<div><div><!></div></div>");
958
+ function Ke(r, i) {
959
+ let a = c();
960
+ _(i, !0);
961
+ let o = S(i, "id", 19, () => U(a)), f = S(i, "ref", 15, null), p = S(i, "forceMount", 3, !1), g = S(i, "side", 3, "bottom"), b = S(i, "onInteractOutside", 3, G), C = S(i, "onEscapeKeydown", 3, G), T = S(i, "preventScroll", 3, !1), D = w(i, We), O = Ne.create({
962
+ id: j(() => o()),
963
+ ref: j(() => f(), (e) => f(e)),
964
+ onInteractOutside: j(() => b()),
965
+ onEscapeKeydown: j(() => C())
966
+ }), k = m(() => H(D, O.props));
967
+ var A = y(), M = e(A), N = (r) => {
968
+ me(r, v(() => u(k), () => O.popperProps, {
969
+ get ref() {
970
+ return O.opts.ref;
971
+ },
972
+ get side() {
973
+ return g();
974
+ },
975
+ get enabled() {
976
+ return O.root.opts.open.current;
977
+ },
978
+ get id() {
979
+ return o();
980
+ },
981
+ get preventScroll() {
982
+ return T();
983
+ },
984
+ forceMount: !0,
985
+ get shouldRender() {
986
+ return O.shouldRender;
987
+ },
988
+ popper: (r, a) => {
989
+ let o = () => (a?.()).props, c = () => (a?.()).wrapperProps, f = m(() => H(o(), { style: O.props.style }, { style: i.style }));
990
+ var p = y(), h = e(p), g = (n) => {
991
+ var r = y(), a = e(r);
992
+ {
993
+ let e = m(() => ({
994
+ props: u(f),
995
+ wrapperProps: c(),
996
+ ...O.snippetProps
997
+ }));
998
+ s(a, () => i.child, () => u(e));
999
+ }
1000
+ t(n, r);
1001
+ }, _ = (e) => {
1002
+ var n = Ge();
1003
+ x(n, () => ({ ...c() }));
1004
+ var r = l(n);
1005
+ x(r, () => ({ ...u(f) })), s(l(r), () => i.children ?? E), d(r), d(n), t(e, n);
1006
+ };
1007
+ n(h, (e) => {
1008
+ i.child ? e(g) : e(_, -1);
1009
+ }), t(r, p);
1010
+ },
1011
+ $$slots: { popper: !0 }
1012
+ }));
1013
+ }, P = (r) => {
1014
+ ge(r, v(() => u(k), () => O.popperProps, {
1015
+ get ref() {
1016
+ return O.opts.ref;
1017
+ },
1018
+ get side() {
1019
+ return g();
1020
+ },
1021
+ get open() {
1022
+ return O.root.opts.open.current;
1023
+ },
1024
+ get id() {
1025
+ return o();
1026
+ },
1027
+ get preventScroll() {
1028
+ return T();
1029
+ },
1030
+ forceMount: !1,
1031
+ get shouldRender() {
1032
+ return O.shouldRender;
1033
+ },
1034
+ popper: (r, a) => {
1035
+ let o = () => (a?.()).props, c = () => (a?.()).wrapperProps, f = m(() => H(o(), { style: O.props.style }, { style: i.style }));
1036
+ var p = y(), h = e(p), g = (n) => {
1037
+ var r = y(), a = e(r);
1038
+ {
1039
+ let e = m(() => ({
1040
+ props: u(f),
1041
+ wrapperProps: c(),
1042
+ ...O.snippetProps
1043
+ }));
1044
+ s(a, () => i.child, () => u(e));
1045
+ }
1046
+ t(n, r);
1047
+ }, _ = (e) => {
1048
+ var n = Ge();
1049
+ x(n, () => ({ ...c() }));
1050
+ var r = l(n);
1051
+ x(r, () => ({ ...u(f) })), s(l(r), () => i.children ?? E), d(r), d(n), t(e, n);
1052
+ };
1053
+ n(h, (e) => {
1054
+ i.child ? e(g) : e(_, -1);
1055
+ }), t(r, p);
1056
+ },
1057
+ $$slots: { popper: !0 }
1058
+ }));
1059
+ };
1060
+ n(M, (e) => {
1061
+ p() ? e(N) : p() || e(P, 1);
1062
+ }), t(r, A), h();
1063
+ }
1064
+ //#endregion
1065
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/utilities/mounted.svelte
1066
+ function qe(e, t) {
1067
+ _(t, !0);
1068
+ let n = S(t, "mounted", 15, !1), r = S(t, "onMountedChange", 3, G);
1069
+ Se(() => (n(!0), r()(!0), () => {
1070
+ n(!1), r()(!1);
1071
+ })), h();
1072
+ }
1073
+ //#endregion
1074
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-item.svelte
1075
+ var Je = /* @__PURE__ */ new Set([
1076
+ "$$slots",
1077
+ "$$events",
1078
+ "$$legacy",
1079
+ "id",
1080
+ "ref",
1081
+ "value",
1082
+ "label",
1083
+ "disabled",
1084
+ "children",
1085
+ "child",
1086
+ "onHighlight",
1087
+ "onUnhighlight"
1088
+ ]), Ye = o("<div><!></div>"), Xe = o("<!> <!>", 1);
1089
+ function Ze(r, i) {
1090
+ let a = c();
1091
+ _(i, !0);
1092
+ let o = S(i, "id", 19, () => U(a)), f = S(i, "ref", 15, null), p = S(i, "label", 19, () => i.value), v = S(i, "disabled", 3, !1), b = S(i, "onHighlight", 3, G), C = S(i, "onUnhighlight", 3, G), T = w(i, Je), D = Pe.create({
1093
+ id: j(() => o()),
1094
+ ref: j(() => f(), (e) => f(e)),
1095
+ value: j(() => i.value),
1096
+ disabled: j(() => v()),
1097
+ label: j(() => p()),
1098
+ onHighlight: j(() => b()),
1099
+ onUnhighlight: j(() => C())
1100
+ }), O = m(() => H(T, D.props));
1101
+ var k = Xe(), A = e(k), M = (n) => {
1102
+ var r = y(), a = e(r);
1103
+ {
1104
+ let e = m(() => ({
1105
+ props: u(O),
1106
+ ...D.snippetProps
1107
+ }));
1108
+ s(a, () => i.child, () => u(e));
1109
+ }
1110
+ t(n, r);
1111
+ }, N = (e) => {
1112
+ var n = Ye();
1113
+ x(n, () => ({ ...u(O) })), s(l(n), () => i.children ?? E, () => D.snippetProps), d(n), t(e, n);
1114
+ };
1115
+ n(A, (e) => {
1116
+ i.child ? e(M) : e(N, -1);
1117
+ }), qe(g(A, 2), {
1118
+ get mounted() {
1119
+ return D.mounted;
1120
+ },
1121
+ set mounted(e) {
1122
+ D.mounted = e;
1123
+ }
1124
+ }), t(r, k), h();
1125
+ }
1126
+ //#endregion
1127
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte
1128
+ var Qe = /* @__PURE__ */ new Set([
1129
+ "$$slots",
1130
+ "$$events",
1131
+ "$$legacy",
1132
+ "id",
1133
+ "ref",
1134
+ "child",
1135
+ "children",
1136
+ "type"
1137
+ ]), $e = o("<button><!></button>");
1138
+ function $(r, i) {
1139
+ let a = c();
1140
+ _(i, !0);
1141
+ let o = S(i, "id", 19, () => U(a)), f = S(i, "ref", 15, null), p = S(i, "type", 3, "button"), g = w(i, Qe), v = Me.create({
1142
+ id: j(() => o()),
1143
+ ref: j(() => f(), (e) => f(e))
1144
+ }), b = m(() => H(g, v.props, { type: p() }));
1145
+ var C = y();
1146
+ O(e(C), () => _e, (r, a) => {
1147
+ a(r, {
1148
+ get id() {
1149
+ return o();
1150
+ },
1151
+ get ref() {
1152
+ return v.opts.ref;
1153
+ },
1154
+ children: (r, a) => {
1155
+ var o = y(), c = e(o), f = (n) => {
1156
+ var r = y();
1157
+ s(e(r), () => i.child, () => ({ props: u(b) })), t(n, r);
1158
+ }, p = (e) => {
1159
+ var n = $e();
1160
+ x(n, () => ({ ...u(b) })), s(l(n), () => i.children ?? E), d(n), t(e, n);
1161
+ };
1162
+ n(c, (e) => {
1163
+ i.child ? e(f) : e(p, -1);
1164
+ }), t(r, o);
1165
+ },
1166
+ $$slots: { default: !0 }
1167
+ });
1168
+ }), t(r, C), h();
1169
+ }
1170
+ //#endregion
1171
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte
1172
+ var et = /* @__PURE__ */ new Set([
1173
+ "$$slots",
1174
+ "$$events",
1175
+ "$$legacy",
1176
+ "id",
1177
+ "ref",
1178
+ "children",
1179
+ "child"
1180
+ ]), tt = o("<div><!></div>");
1181
+ function nt(r, i) {
1182
+ let a = c();
1183
+ _(i, !0);
1184
+ let o = S(i, "id", 19, () => U(a)), f = S(i, "ref", 15, null), p = w(i, et), g = Ie.create({
1185
+ id: j(() => o()),
1186
+ ref: j(() => f(), (e) => f(e))
1187
+ }), v = m(() => H(p, g.props));
1188
+ var b = y(), C = e(b), T = (n) => {
1189
+ var r = y();
1190
+ s(e(r), () => i.child, () => ({ props: u(v) })), t(n, r);
1191
+ }, D = (e) => {
1192
+ var n = tt();
1193
+ x(n, () => ({ ...u(v) })), s(l(n), () => i.children ?? E), d(n), t(e, n);
1194
+ };
1195
+ n(C, (e) => {
1196
+ i.child ? e(T) : e(D, -1);
1197
+ }), t(r, b), h();
1198
+ }
1199
+ //#endregion
1200
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select.svelte
1201
+ var rt = /* @__PURE__ */ new Set([
1202
+ "$$slots",
1203
+ "$$events",
1204
+ "$$legacy",
1205
+ "value",
1206
+ "children"
1207
+ ]);
1208
+ function it(r, i) {
1209
+ _(i, !0);
1210
+ let a = S(i, "value", 15), o = w(i, rt);
1211
+ var c = y();
1212
+ O(e(c), () => Be, (r, c) => {
1213
+ c(r, v(() => o, {
1214
+ get value() {
1215
+ return a();
1216
+ },
1217
+ set value(e) {
1218
+ a(e);
1219
+ },
1220
+ children: (r, a) => {
1221
+ var o = y(), c = e(o), l = (n) => {
1222
+ var r = y();
1223
+ s(e(r), () => i.children), t(n, r);
1224
+ };
1225
+ n(c, (e) => {
1226
+ i.children && e(l);
1227
+ }), t(r, o);
1228
+ },
1229
+ $$slots: { default: !0 }
1230
+ }));
1231
+ }), t(r, c), h();
1232
+ }
1233
+ //#endregion
1234
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-content.svelte
1235
+ var at = /* @__PURE__ */ new Set([
1236
+ "$$slots",
1237
+ "$$events",
1238
+ "$$legacy",
1239
+ "ref",
1240
+ "class",
1241
+ "sideOffset",
1242
+ "children"
1243
+ ]);
1244
+ function ot(r, i) {
1245
+ _(i, !0);
1246
+ let a = S(i, "ref", 15, null), o = S(i, "sideOffset", 3, 4), c = w(i, at);
1247
+ var l = y(), d = e(l);
1248
+ {
1249
+ let r = m(() => A("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md", i.class));
1250
+ O(d, () => Ke, (l, d) => {
1251
+ d(l, v({
1252
+ get sideOffset() {
1253
+ return o();
1254
+ },
1255
+ get class() {
1256
+ return u(r);
1257
+ }
1258
+ }, () => c, {
1259
+ get ref() {
1260
+ return a();
1261
+ },
1262
+ set ref(e) {
1263
+ a(e);
1264
+ },
1265
+ children: (r, a) => {
1266
+ var o = y();
1267
+ O(e(o), () => nt, (r, a) => {
1268
+ a(r, {
1269
+ class: "p-1",
1270
+ children: (r, a) => {
1271
+ var o = y(), c = e(o), l = (n) => {
1272
+ var r = y();
1273
+ s(e(r), () => i.children), t(n, r);
1274
+ };
1275
+ n(c, (e) => {
1276
+ i.children && e(l);
1277
+ }), t(r, o);
1278
+ },
1279
+ $$slots: { default: !0 }
1280
+ });
1281
+ }), t(r, o);
1282
+ },
1283
+ $$slots: { default: !0 }
1284
+ }));
1285
+ });
1286
+ }
1287
+ t(r, l), h();
1288
+ }
1289
+ //#endregion
1290
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-item.svelte
1291
+ var st = /* @__PURE__ */ new Set([
1292
+ "$$slots",
1293
+ "$$events",
1294
+ "$$legacy",
1295
+ "ref",
1296
+ "class",
1297
+ "children"
1298
+ ]);
1299
+ function ct(r, i) {
1300
+ _(i, !0);
1301
+ let a = S(i, "ref", 15, null), o = w(i, st);
1302
+ var c = y(), l = e(c);
1303
+ {
1304
+ let r = m(() => A("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 pr-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", i.class));
1305
+ O(l, () => Ze, (c, l) => {
1306
+ l(c, v({ get class() {
1307
+ return u(r);
1308
+ } }, () => o, {
1309
+ get ref() {
1310
+ return a();
1311
+ },
1312
+ set ref(e) {
1313
+ a(e);
1314
+ },
1315
+ children: (r, a) => {
1316
+ var o = y(), c = e(o), l = (n) => {
1317
+ var r = y();
1318
+ s(e(r), () => i.children), t(n, r);
1319
+ };
1320
+ n(c, (e) => {
1321
+ i.children && e(l);
1322
+ }), t(r, o);
1323
+ },
1324
+ $$slots: { default: !0 }
1325
+ }));
1326
+ });
1327
+ }
1328
+ t(r, c), h();
1329
+ }
1330
+ //#endregion
1331
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-trigger.svelte
1332
+ var lt = /* @__PURE__ */ new Set([
1333
+ "$$slots",
1334
+ "$$events",
1335
+ "$$legacy",
1336
+ "ref",
1337
+ "class",
1338
+ "child",
1339
+ "children"
1340
+ ]);
1341
+ function ut(r, i) {
1342
+ _(i, !0);
1343
+ let a = S(i, "ref", 15, null), o = w(i, lt);
1344
+ var c = y(), l = e(c), d = (n) => {
1345
+ let r = (n, r = E) => {
1346
+ var a = y();
1347
+ s(e(a), () => i.child ?? E, r), t(n, a);
1348
+ };
1349
+ var c = y(), l = e(c);
1350
+ {
1351
+ let e = m(() => A("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", i.class));
1352
+ O(l, () => $, (t, n) => {
1353
+ n(t, v(() => o, {
1354
+ get child() {
1355
+ return r;
1356
+ },
1357
+ get class() {
1358
+ return u(e);
1359
+ },
1360
+ get ref() {
1361
+ return a();
1362
+ },
1363
+ set ref(e) {
1364
+ a(e);
1365
+ }
1366
+ }));
1367
+ });
1368
+ }
1369
+ t(n, c);
1370
+ }, f = (r) => {
1371
+ var c = y(), l = e(c);
1372
+ {
1373
+ let r = m(() => A("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", i.class));
1374
+ O(l, () => $, (c, l) => {
1375
+ l(c, v(() => o, {
1376
+ get class() {
1377
+ return u(r);
1378
+ },
1379
+ get ref() {
1380
+ return a();
1381
+ },
1382
+ set ref(e) {
1383
+ a(e);
1384
+ },
1385
+ children: (r, a) => {
1386
+ var o = y(), c = e(o), l = (n) => {
1387
+ var r = y();
1388
+ s(e(r), () => i.children), t(n, r);
1389
+ };
1390
+ n(c, (e) => {
1391
+ i.children && e(l);
1392
+ }), t(r, o);
1393
+ },
1394
+ $$slots: { default: !0 }
1395
+ }));
1396
+ });
1397
+ }
1398
+ t(r, c);
1399
+ };
1400
+ n(l, (e) => {
1401
+ i.child ? e(d) : e(f, -1);
1402
+ }), t(r, c), h();
1403
+ }
1404
+ //#endregion
1405
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-value.svelte
1406
+ var dt = /* @__PURE__ */ new Set([
1407
+ "$$slots",
1408
+ "$$events",
1409
+ "$$legacy",
1410
+ "children"
1411
+ ]);
1412
+ function ft(r, i) {
1413
+ let a = w(i, dt);
1414
+ var o = y(), c = e(o), l = (n) => {
1415
+ var r = y();
1416
+ O(e(r), () => Ue, (n, r) => {
1417
+ r(n, v(() => a, {
1418
+ children: (n, r) => {
1419
+ var a = y();
1420
+ s(e(a), () => i.children), t(n, a);
1421
+ },
1422
+ $$slots: { default: !0 }
1423
+ }));
1424
+ }), t(n, r);
1425
+ }, u = (n) => {
1426
+ var r = y();
1427
+ O(e(r), () => Ue, (e, t) => {
1428
+ t(e, v(() => a));
1429
+ }), t(n, r);
1430
+ };
1431
+ n(c, (e) => {
1432
+ i.children ? e(l) : e(u, -1);
1433
+ }), t(r, o);
1434
+ }
1435
+ //#endregion
1436
+ export { it as a, ot as i, ut as n, ct as r, ft as t };