@tanstack/query-devtools 5.51.15 → 5.52.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.cjs CHANGED
@@ -10,14 +10,18 @@ var __export = (target, all) => {
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
12
 
13
- // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/dist/solid.js
13
+ // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/dist/solid.js
14
+ function getContextId(count) {
15
+ const num = String(count), len = num.length - 1;
16
+ return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
17
+ }
14
18
  function setHydrateContext(context) {
15
19
  sharedConfig.context = context;
16
20
  }
17
21
  function nextHydrateContext() {
18
22
  return {
19
23
  ...sharedConfig.context,
20
- id: `${sharedConfig.context.id}${sharedConfig.context.count++}-`,
24
+ id: sharedConfig.getNextContextId(),
21
25
  count: 0
22
26
  };
23
27
  }
@@ -102,18 +106,18 @@ function createResource(pSource, pFetcher, pOptions) {
102
106
  if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
103
107
  source = true;
104
108
  fetcher = pSource;
105
- options = pFetcher || {};
109
+ options = {};
106
110
  } else {
107
111
  source = pSource;
108
112
  fetcher = pFetcher;
109
- options = pOptions || {};
113
+ options = {};
110
114
  }
111
115
  let pr = null, initP = NO_INIT, id = null, loadedUnderTransition = false, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
112
116
  const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
113
117
  equals: false
114
118
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
115
119
  if (sharedConfig.context) {
116
- id = `${sharedConfig.context.id}${sharedConfig.context.count++}`;
120
+ id = sharedConfig.getNextContextId();
117
121
  let v;
118
122
  if (options.ssrLoadFrom === "initial")
119
123
  initP = options.initialValue;
@@ -125,11 +129,9 @@ function createResource(pSource, pFetcher, pOptions) {
125
129
  pr = null;
126
130
  key !== void 0 && (resolved = true);
127
131
  if ((p2 === initP || v === initP) && options.onHydrated)
128
- queueMicrotask(
129
- () => options.onHydrated(key, {
130
- value: v
131
- })
132
- );
132
+ queueMicrotask(() => options.onHydrated(key, {
133
+ value: v
134
+ }));
133
135
  initP = NO_INIT;
134
136
  if (Transition && p2 && loadedUnderTransition) {
135
137
  Transition.promises.delete(p2);
@@ -185,12 +187,10 @@ function createResource(pSource, pFetcher, pOptions) {
185
187
  }
186
188
  if (Transition && pr)
187
189
  Transition.promises.delete(pr);
188
- const p2 = initP !== NO_INIT ? initP : untrack(
189
- () => fetcher(lookup, {
190
- value: value(),
191
- refetching
192
- })
193
- );
190
+ const p2 = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
191
+ value: value(),
192
+ refetching
193
+ }));
194
194
  if (!isPromise(p2)) {
195
195
  loadEnd(pr, p2, void 0, lookup);
196
196
  return p2;
@@ -200,7 +200,7 @@ function createResource(pSource, pFetcher, pOptions) {
200
200
  if (p2.status === "success")
201
201
  loadEnd(pr, p2.value, void 0, lookup);
202
202
  else
203
- loadEnd(pr, void 0, void 0, lookup);
203
+ loadEnd(pr, void 0, castError(p2.value), lookup);
204
204
  return p2;
205
205
  }
206
206
  scheduled = true;
@@ -209,10 +209,7 @@ function createResource(pSource, pFetcher, pOptions) {
209
209
  setState(resolved ? "refreshing" : "pending");
210
210
  trigger();
211
211
  }, false);
212
- return p2.then(
213
- (v) => loadEnd(p2, v, void 0, lookup),
214
- (e2) => loadEnd(p2, void 0, castError(e2), lookup)
215
- );
212
+ return p2.then((v) => loadEnd(p2, v, void 0, lookup), (e2) => loadEnd(p2, void 0, castError(e2), lookup));
216
213
  }
217
214
  Object.defineProperties(read, {
218
215
  state: {
@@ -242,13 +239,10 @@ function createResource(pSource, pFetcher, pOptions) {
242
239
  createComputed(() => load(false));
243
240
  else
244
241
  load(false);
245
- return [
246
- read,
247
- {
248
- refetch: load,
249
- mutate: setValue
250
- }
251
- ];
242
+ return [read, {
243
+ refetch: load,
244
+ mutate: setValue
245
+ }];
252
246
  }
253
247
  function batch(fn) {
254
248
  return runUpdates(fn, false);
@@ -356,7 +350,8 @@ function createContext(defaultValue, options) {
356
350
  };
357
351
  }
358
352
  function useContext(context) {
359
- return Owner && Owner.context && Owner.context[context.id] !== void 0 ? Owner.context[context.id] : context.defaultValue;
353
+ let value;
354
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
360
355
  }
361
356
  function children(fn) {
362
357
  const children2 = createMemo(fn);
@@ -449,11 +444,7 @@ function updateComputation(node) {
449
444
  return;
450
445
  cleanNode(node);
451
446
  const time = ExecCount;
452
- runComputation(
453
- node,
454
- Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
455
- time
456
- );
447
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
457
448
  if (Transition && !Transition.running && Transition.sources.has(node)) {
458
449
  queueMicrotask(() => {
459
450
  runUpdates(() => {
@@ -831,16 +822,13 @@ function resolveChildren(children2) {
831
822
  function createProvider(id, options) {
832
823
  return function provider(props) {
833
824
  let res;
834
- createRenderEffect(
835
- () => res = untrack(() => {
836
- Owner.context = {
837
- ...Owner.context,
838
- [id]: props.value
839
- };
840
- return children(() => props.children);
841
- }),
842
- void 0
843
- );
825
+ createRenderEffect(() => res = untrack(() => {
826
+ Owner.context = {
827
+ ...Owner.context,
828
+ [id]: props.value
829
+ };
830
+ return children(() => props.children);
831
+ }), void 0);
844
832
  return res;
845
833
  };
846
834
  }
@@ -852,10 +840,10 @@ function mapArray(list, mapFn, options = {}) {
852
840
  let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
853
841
  onCleanup(() => dispose(disposers));
854
842
  return () => {
855
- let newItems = list() || [], i2, j;
843
+ let newItems = list() || [], newLen = newItems.length, i2, j;
856
844
  newItems[$TRACK];
857
845
  return untrack(() => {
858
- let newLen = newItems.length, newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
846
+ let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
859
847
  if (newLen === 0) {
860
848
  if (len !== 0) {
861
849
  dispose(disposers);
@@ -942,10 +930,10 @@ function indexArray(list, mapFn, options = {}) {
942
930
  let items = [], mapped = [], disposers = [], signals = [], len = 0, i2;
943
931
  onCleanup(() => dispose(disposers));
944
932
  return () => {
945
- const newItems = list() || [];
933
+ const newItems = list() || [], newLen = newItems.length;
946
934
  newItems[$TRACK];
947
935
  return untrack(() => {
948
- if (newItems.length === 0) {
936
+ if (newLen === 0) {
949
937
  if (len !== 0) {
950
938
  dispose(disposers);
951
939
  disposers = [];
@@ -971,7 +959,7 @@ function indexArray(list, mapFn, options = {}) {
971
959
  mapped = [];
972
960
  len = 0;
973
961
  }
974
- for (i2 = 0; i2 < newItems.length; i2++) {
962
+ for (i2 = 0; i2 < newLen; i2++) {
975
963
  if (i2 < items.length && items[i2] !== newItems[i2]) {
976
964
  signals[i2](() => newItems[i2]);
977
965
  } else if (i2 >= items.length) {
@@ -981,7 +969,7 @@ function indexArray(list, mapFn, options = {}) {
981
969
  for (; i2 < items.length; i2++) {
982
970
  disposers[i2]();
983
971
  }
984
- len = signals.length = disposers.length = newItems.length;
972
+ len = signals.length = disposers.length = newLen;
985
973
  items = newItems.slice(0);
986
974
  return mapped = mapped.slice(0, len);
987
975
  });
@@ -1026,31 +1014,28 @@ function mergeProps(...sources) {
1026
1014
  sources[i2] = typeof s2 === "function" ? (proxy = true, createMemo(s2)) : s2;
1027
1015
  }
1028
1016
  if (proxy) {
1029
- return new Proxy(
1030
- {
1031
- get(property) {
1032
- for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1033
- const v = resolveSource(sources[i2])[property];
1034
- if (v !== void 0)
1035
- return v;
1036
- }
1037
- },
1038
- has(property) {
1039
- for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1040
- if (property in resolveSource(sources[i2]))
1041
- return true;
1042
- }
1043
- return false;
1044
- },
1045
- keys() {
1046
- const keys2 = [];
1047
- for (let i2 = 0; i2 < sources.length; i2++)
1048
- keys2.push(...Object.keys(resolveSource(sources[i2])));
1049
- return [...new Set(keys2)];
1017
+ return new Proxy({
1018
+ get(property) {
1019
+ for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1020
+ const v = resolveSource(sources[i2])[property];
1021
+ if (v !== void 0)
1022
+ return v;
1050
1023
  }
1051
1024
  },
1052
- propTraps
1053
- );
1025
+ has(property) {
1026
+ for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1027
+ if (property in resolveSource(sources[i2]))
1028
+ return true;
1029
+ }
1030
+ return false;
1031
+ },
1032
+ keys() {
1033
+ const keys2 = [];
1034
+ for (let i2 = 0; i2 < sources.length; i2++)
1035
+ keys2.push(...Object.keys(resolveSource(sources[i2])));
1036
+ return [...new Set(keys2)];
1037
+ }
1038
+ }, propTraps);
1054
1039
  }
1055
1040
  const sourcesMap = {};
1056
1041
  const defined = /* @__PURE__ */ Object.create(null);
@@ -1096,37 +1081,29 @@ function splitProps(props, ...keys2) {
1096
1081
  if ($PROXY in props) {
1097
1082
  const blocked = new Set(keys2.length > 1 ? keys2.flat() : keys2[0]);
1098
1083
  const res = keys2.map((k) => {
1099
- return new Proxy(
1100
- {
1101
- get(property) {
1102
- return k.includes(property) ? props[property] : void 0;
1103
- },
1104
- has(property) {
1105
- return k.includes(property) && property in props;
1106
- },
1107
- keys() {
1108
- return k.filter((property) => property in props);
1109
- }
1084
+ return new Proxy({
1085
+ get(property) {
1086
+ return k.includes(property) ? props[property] : void 0;
1110
1087
  },
1111
- propTraps
1112
- );
1113
- });
1114
- res.push(
1115
- new Proxy(
1116
- {
1117
- get(property) {
1118
- return blocked.has(property) ? void 0 : props[property];
1119
- },
1120
- has(property) {
1121
- return blocked.has(property) ? false : property in props;
1122
- },
1123
- keys() {
1124
- return Object.keys(props).filter((k) => !blocked.has(k));
1125
- }
1088
+ has(property) {
1089
+ return k.includes(property) && property in props;
1126
1090
  },
1127
- propTraps
1128
- )
1129
- );
1091
+ keys() {
1092
+ return k.filter((property) => property in props);
1093
+ }
1094
+ }, propTraps);
1095
+ });
1096
+ res.push(new Proxy({
1097
+ get(property) {
1098
+ return blocked.has(property) ? void 0 : props[property];
1099
+ },
1100
+ has(property) {
1101
+ return blocked.has(property) ? false : property in props;
1102
+ },
1103
+ keys() {
1104
+ return Object.keys(props).filter((k) => !blocked.has(k));
1105
+ }
1106
+ }, propTraps));
1130
1107
  return res;
1131
1108
  }
1132
1109
  const otherObject = {};
@@ -1170,26 +1147,24 @@ function lazy(fn) {
1170
1147
  comp = s2;
1171
1148
  }
1172
1149
  let Comp;
1173
- return createMemo(
1174
- () => (Comp = comp()) && untrack(() => {
1175
- if (false)
1176
- ;
1177
- if (!ctx)
1178
- return Comp(props);
1179
- const c2 = sharedConfig.context;
1180
- setHydrateContext(ctx);
1181
- const r2 = Comp(props);
1182
- setHydrateContext(c2);
1183
- return r2;
1184
- })
1185
- );
1150
+ return createMemo(() => (Comp = comp()) && untrack(() => {
1151
+ if (false)
1152
+ ;
1153
+ if (!ctx)
1154
+ return Comp(props);
1155
+ const c2 = sharedConfig.context;
1156
+ setHydrateContext(ctx);
1157
+ const r2 = Comp(props);
1158
+ setHydrateContext(c2);
1159
+ return r2;
1160
+ }));
1186
1161
  };
1187
1162
  wrap.preload = () => p2 || ((p2 = fn()).then((mod) => comp = () => mod.default), p2);
1188
1163
  return wrap;
1189
1164
  }
1190
1165
  function createUniqueId() {
1191
1166
  const ctx = sharedConfig.context;
1192
- return ctx ? `${ctx.id}${ctx.count++}` : `cl-${counter++}`;
1167
+ return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
1193
1168
  }
1194
1169
  function For(props) {
1195
1170
  const fallback = "fallback" in props && {
@@ -1208,80 +1183,66 @@ function Show(props) {
1208
1183
  const condition = createMemo(() => props.when, void 0, {
1209
1184
  equals: (a2, b2) => keyed ? a2 === b2 : !a2 === !b2
1210
1185
  });
1211
- return createMemo(
1212
- () => {
1213
- const c2 = condition();
1214
- if (c2) {
1215
- const child = props.children;
1216
- const fn = typeof child === "function" && child.length > 0;
1217
- return fn ? untrack(
1218
- () => child(
1219
- keyed ? c2 : () => {
1220
- if (!untrack(condition))
1221
- throw narrowedError("Show");
1222
- return props.when;
1223
- }
1224
- )
1225
- ) : child;
1226
- }
1227
- return props.fallback;
1228
- },
1229
- void 0,
1230
- void 0
1231
- );
1186
+ return createMemo(() => {
1187
+ const c2 = condition();
1188
+ if (c2) {
1189
+ const child = props.children;
1190
+ const fn = typeof child === "function" && child.length > 0;
1191
+ return fn ? untrack(() => child(keyed ? c2 : () => {
1192
+ if (!untrack(condition))
1193
+ throw narrowedError("Show");
1194
+ return props.when;
1195
+ })) : child;
1196
+ }
1197
+ return props.fallback;
1198
+ }, void 0, void 0);
1232
1199
  }
1233
1200
  function Switch(props) {
1234
1201
  let keyed = false;
1235
1202
  const equals = (a2, b2) => (keyed ? a2[1] === b2[1] : !a2[1] === !b2[1]) && a2[2] === b2[2];
1236
- const conditions = children(() => props.children), evalConditions = createMemo(
1237
- () => {
1238
- let conds = conditions();
1239
- if (!Array.isArray(conds))
1240
- conds = [conds];
1241
- for (let i2 = 0; i2 < conds.length; i2++) {
1242
- const c2 = conds[i2].when;
1243
- if (c2) {
1244
- keyed = !!conds[i2].keyed;
1245
- return [i2, c2, conds[i2]];
1246
- }
1203
+ const conditions = children(() => props.children), evalConditions = createMemo(() => {
1204
+ let conds = conditions();
1205
+ if (!Array.isArray(conds))
1206
+ conds = [conds];
1207
+ for (let i2 = 0; i2 < conds.length; i2++) {
1208
+ const c2 = conds[i2].when;
1209
+ if (c2) {
1210
+ keyed = !!conds[i2].keyed;
1211
+ return [i2, c2, conds[i2]];
1247
1212
  }
1248
- return [-1];
1249
- },
1250
- void 0,
1251
- {
1252
- equals
1253
1213
  }
1254
- );
1255
- return createMemo(
1256
- () => {
1257
- const [index, when, cond] = evalConditions();
1258
- if (index < 0)
1259
- return props.fallback;
1260
- const c2 = cond.children;
1261
- const fn = typeof c2 === "function" && c2.length > 0;
1262
- return fn ? untrack(
1263
- () => c2(
1264
- keyed ? when : () => {
1265
- if (untrack(evalConditions)[0] !== index)
1266
- throw narrowedError("Match");
1267
- return cond.when;
1268
- }
1269
- )
1270
- ) : c2;
1271
- },
1272
- void 0,
1273
- void 0
1274
- );
1214
+ return [-1];
1215
+ }, void 0, {
1216
+ equals
1217
+ });
1218
+ return createMemo(() => {
1219
+ const [index, when, cond] = evalConditions();
1220
+ if (index < 0)
1221
+ return props.fallback;
1222
+ const c2 = cond.children;
1223
+ const fn = typeof c2 === "function" && c2.length > 0;
1224
+ return fn ? untrack(() => c2(keyed ? when : () => {
1225
+ if (untrack(evalConditions)[0] !== index)
1226
+ throw narrowedError("Match");
1227
+ return cond.when;
1228
+ })) : c2;
1229
+ }, void 0, void 0);
1275
1230
  }
1276
1231
  function Match(props) {
1277
1232
  return props;
1278
1233
  }
1279
1234
  var sharedConfig, equalFn, $PROXY, $TRACK, signalOptions, ERROR, runEffects, STALE, PENDING, UNOWNED, NO_INIT, Owner, Transition, Scheduler, ExternalSourceConfig, Listener, Updates, Effects, ExecCount, transPending, setTransPending, SuspenseContext, FALLBACK, hydrationEnabled, propTraps, counter, narrowedError, DEV;
1280
1235
  var init_solid = __esm({
1281
- "../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/dist/solid.js"() {
1236
+ "../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/dist/solid.js"() {
1282
1237
  sharedConfig = {
1283
1238
  context: void 0,
1284
- registry: void 0
1239
+ registry: void 0,
1240
+ getContextId() {
1241
+ return getContextId(this.context.count);
1242
+ },
1243
+ getNextContextId() {
1244
+ return getContextId(this.context.count++);
1245
+ }
1285
1246
  };
1286
1247
  equalFn = (a2, b2) => a2 === b2;
1287
1248
  $PROXY = Symbol("solid-proxy");
@@ -1345,7 +1306,7 @@ var init_solid = __esm({
1345
1306
  }
1346
1307
  });
1347
1308
 
1348
- // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/web/dist/web.js
1309
+ // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/web/dist/web.js
1349
1310
  function getPropAlias(prop, tagName) {
1350
1311
  const a2 = PropAliases[prop];
1351
1312
  return typeof a2 === "object" ? a2[tagName] ? a2["$"] : void 0 : a2;
@@ -1422,7 +1383,7 @@ function template(html, isCE, isSVG) {
1422
1383
  const create = () => {
1423
1384
  const t2 = document.createElement("template");
1424
1385
  t2.innerHTML = html;
1425
- return isSVG ? t2.content.firstChild.firstChild : t2.content.firstChild;
1386
+ return t2.content.firstChild;
1426
1387
  };
1427
1388
  const fn = isCE ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
1428
1389
  fn.cloneNode = fn;
@@ -1527,13 +1488,9 @@ function style(node, value, prev) {
1527
1488
  function spread(node, props = {}, isSVG, skipChildren) {
1528
1489
  const prevProps = {};
1529
1490
  if (!skipChildren) {
1530
- createRenderEffect(
1531
- () => prevProps.children = insertExpression(node, props.children, prevProps.children)
1532
- );
1491
+ createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1533
1492
  }
1534
- createRenderEffect(
1535
- () => typeof props.ref === "function" ? use(props.ref, node) : props.ref = node
1536
- );
1493
+ createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
1537
1494
  createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
1538
1495
  return prevProps;
1539
1496
  }
@@ -1558,8 +1515,6 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
1558
1515
  }
1559
1516
  for (const prop in props) {
1560
1517
  if (prop === "children") {
1561
- if (!skipChildren)
1562
- insertExpression(node, props.children);
1563
1518
  continue;
1564
1519
  }
1565
1520
  const value = props[prop];
@@ -1688,8 +1643,11 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1688
1643
  if (t2 === "string" || t2 === "number") {
1689
1644
  if (hydrating)
1690
1645
  return current;
1691
- if (t2 === "number")
1646
+ if (t2 === "number") {
1692
1647
  value = value.toString();
1648
+ if (value === current)
1649
+ return current;
1650
+ }
1693
1651
  if (multi) {
1694
1652
  let node = current[0];
1695
1653
  if (node && node.nodeType === 3) {
@@ -1777,11 +1735,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
1777
1735
  if (unwrap) {
1778
1736
  while (typeof item === "function")
1779
1737
  item = item();
1780
- dynamic = normalizeIncomingArray(
1781
- normalized,
1782
- Array.isArray(item) ? item : [item],
1783
- Array.isArray(prev) ? prev : [prev]
1784
- ) || dynamic;
1738
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1785
1739
  } else {
1786
1740
  normalized.push(item);
1787
1741
  dynamic = true;
@@ -1822,48 +1776,45 @@ function cleanChildren(parent, current, marker, replacement) {
1822
1776
  return [node];
1823
1777
  }
1824
1778
  function getHydrationKey() {
1825
- const hydrate = sharedConfig.context;
1826
- return `${hydrate.id}${hydrate.count++}`;
1779
+ return sharedConfig.getNextContextId();
1827
1780
  }
1828
1781
  function createElement(tagName, isSVG = false) {
1829
1782
  return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
1830
1783
  }
1831
1784
  function Portal(props) {
1832
- const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1785
+ const {
1786
+ useShadow
1787
+ } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1833
1788
  let content;
1834
1789
  let hydrating = !!sharedConfig.context;
1835
- createEffect(
1836
- () => {
1837
- if (hydrating)
1838
- getOwner().user = hydrating = false;
1839
- content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1840
- const el = mount();
1841
- if (el instanceof HTMLHeadElement) {
1842
- const [clean, setClean] = createSignal(false);
1843
- const cleanup = () => setClean(true);
1844
- createRoot((dispose3) => insert(el, () => !clean() ? content() : dispose3(), null));
1845
- onCleanup(cleanup);
1846
- } else {
1847
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1848
- mode: "open"
1849
- }) : container;
1850
- Object.defineProperty(container, "_$host", {
1851
- get() {
1852
- return marker.parentNode;
1853
- },
1854
- configurable: true
1855
- });
1856
- insert(renderRoot, content);
1857
- el.appendChild(container);
1858
- props.ref && props.ref(container);
1859
- onCleanup(() => el.removeChild(container));
1860
- }
1861
- },
1862
- void 0,
1863
- {
1864
- render: !hydrating
1790
+ createEffect(() => {
1791
+ if (hydrating)
1792
+ getOwner().user = hydrating = false;
1793
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1794
+ const el = mount();
1795
+ if (el instanceof HTMLHeadElement) {
1796
+ const [clean, setClean] = createSignal(false);
1797
+ const cleanup = () => setClean(true);
1798
+ createRoot((dispose3) => insert(el, () => !clean() ? content() : dispose3(), null));
1799
+ onCleanup(cleanup);
1800
+ } else {
1801
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1802
+ mode: "open"
1803
+ }) : container;
1804
+ Object.defineProperty(container, "_$host", {
1805
+ get() {
1806
+ return marker.parentNode;
1807
+ },
1808
+ configurable: true
1809
+ });
1810
+ insert(renderRoot, content);
1811
+ el.appendChild(container);
1812
+ props.ref && props.ref(container);
1813
+ onCleanup(() => el.removeChild(container));
1865
1814
  }
1866
- );
1815
+ }, void 0, {
1816
+ render: !hydrating
1817
+ });
1867
1818
  return marker;
1868
1819
  }
1869
1820
  function Dynamic(props) {
@@ -1884,52 +1835,12 @@ function Dynamic(props) {
1884
1835
  }
1885
1836
  var booleans, Properties, ChildProperties, Aliases, PropAliases, DelegatedEvents, SVGElements, SVGNamespace, $$EVENTS, isServer, SVG_NAMESPACE;
1886
1837
  var init_web = __esm({
1887
- "../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/web/dist/web.js"() {
1838
+ "../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/web/dist/web.js"() {
1888
1839
  init_solid();
1889
1840
  init_solid();
1890
- booleans = [
1891
- "allowfullscreen",
1892
- "async",
1893
- "autofocus",
1894
- "autoplay",
1895
- "checked",
1896
- "controls",
1897
- "default",
1898
- "disabled",
1899
- "formnovalidate",
1900
- "hidden",
1901
- "indeterminate",
1902
- "inert",
1903
- "ismap",
1904
- "loop",
1905
- "multiple",
1906
- "muted",
1907
- "nomodule",
1908
- "novalidate",
1909
- "open",
1910
- "playsinline",
1911
- "readonly",
1912
- "required",
1913
- "reversed",
1914
- "seamless",
1915
- "selected"
1916
- ];
1917
- Properties = /* @__PURE__ */ new Set([
1918
- "className",
1919
- "value",
1920
- "readOnly",
1921
- "formNoValidate",
1922
- "isMap",
1923
- "noModule",
1924
- "playsInline",
1925
- ...booleans
1926
- ]);
1927
- ChildProperties = /* @__PURE__ */ new Set([
1928
- "innerHTML",
1929
- "textContent",
1930
- "innerText",
1931
- "children"
1932
- ]);
1841
+ booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
1842
+ Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
1843
+ ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
1933
1844
  Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1934
1845
  className: "class",
1935
1846
  htmlFor: "for"
@@ -1959,30 +1870,7 @@ var init_web = __esm({
1959
1870
  TEXTAREA: 1
1960
1871
  }
1961
1872
  });
1962
- DelegatedEvents = /* @__PURE__ */ new Set([
1963
- "beforeinput",
1964
- "click",
1965
- "dblclick",
1966
- "contextmenu",
1967
- "focusin",
1968
- "focusout",
1969
- "input",
1970
- "keydown",
1971
- "keyup",
1972
- "mousedown",
1973
- "mousemove",
1974
- "mouseout",
1975
- "mouseover",
1976
- "mouseup",
1977
- "pointerdown",
1978
- "pointermove",
1979
- "pointerout",
1980
- "pointerover",
1981
- "pointerup",
1982
- "touchend",
1983
- "touchmove",
1984
- "touchstart"
1985
- ]);
1873
+ DelegatedEvents = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
1986
1874
  SVGElements = /* @__PURE__ */ new Set([
1987
1875
  "altGlyph",
1988
1876
  "altGlyphDef",
@@ -2770,21 +2658,21 @@ var init_plainer = __esm({
2770
2658
  }
2771
2659
  });
2772
2660
 
2773
- // ../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js
2661
+ // ../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js
2774
2662
  function getType2(payload) {
2775
2663
  return Object.prototype.toString.call(payload).slice(8, -1);
2776
2664
  }
2665
+ function isArray2(payload) {
2666
+ return getType2(payload) === "Array";
2667
+ }
2777
2668
  function isPlainObject2(payload) {
2778
2669
  if (getType2(payload) !== "Object")
2779
2670
  return false;
2780
2671
  const prototype = Object.getPrototypeOf(payload);
2781
2672
  return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
2782
2673
  }
2783
- function isArray2(payload) {
2784
- return getType2(payload) === "Array";
2785
- }
2786
2674
  var init_dist = __esm({
2787
- "../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js"() {
2675
+ "../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js"() {
2788
2676
  }
2789
2677
  });
2790
2678
 
@@ -3787,7 +3675,7 @@ var init_clsx = __esm({
3787
3675
  }
3788
3676
  });
3789
3677
 
3790
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.17/node_modules/@solid-primitives/transition-group/dist/index.js
3678
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js
3791
3679
  function createListTransition(source, options) {
3792
3680
  const initSource = untrack(source);
3793
3681
  if (isServer) {
@@ -3854,7 +3742,7 @@ function createListTransition(source, options) {
3854
3742
  }
3855
3743
  var noop;
3856
3744
  var init_dist4 = __esm({
3857
- "../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.17/node_modules/@solid-primitives/transition-group/dist/index.js"() {
3745
+ "../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js"() {
3858
3746
  init_solid();
3859
3747
  init_web();
3860
3748
  noop = () => {
@@ -3862,7 +3750,7 @@ var init_dist4 = __esm({
3862
3750
  }
3863
3751
  });
3864
3752
 
3865
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3753
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3866
3754
  function chain(callbacks) {
3867
3755
  return (...args) => {
3868
3756
  for (const callback of callbacks)
@@ -3905,7 +3793,7 @@ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
3905
3793
  }
3906
3794
  var isClient, isDev, noop2, isNonNullable, filterNonNullable, access, asArray, tryOnCleanup;
3907
3795
  var init_R5675YMU = __esm({
3908
- "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js"() {
3796
+ "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js"() {
3909
3797
  init_solid();
3910
3798
  init_web();
3911
3799
  isClient = !isServer;
@@ -3919,14 +3807,14 @@ var init_R5675YMU = __esm({
3919
3807
  }
3920
3808
  });
3921
3809
 
3922
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/index/index.js
3810
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/index/index.js
3923
3811
  var init_index = __esm({
3924
- "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/index/index.js"() {
3812
+ "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/index/index.js"() {
3925
3813
  init_R5675YMU();
3926
3814
  }
3927
3815
  });
3928
3816
 
3929
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.17/node_modules/@solid-primitives/refs/dist/index.js
3817
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js
3930
3818
  function mergeRefs(...refs) {
3931
3819
  return chain(refs);
3932
3820
  }
@@ -3959,7 +3847,7 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
3959
3847
  }
3960
3848
  var defaultElementPredicate;
3961
3849
  var init_dist5 = __esm({
3962
- "../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.17/node_modules/@solid-primitives/refs/dist/index.js"() {
3850
+ "../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js"() {
3963
3851
  init_index();
3964
3852
  init_solid();
3965
3853
  init_web();
@@ -3967,7 +3855,7 @@ var init_dist5 = __esm({
3967
3855
  }
3968
3856
  });
3969
3857
 
3970
- // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.17/node_modules/solid-transition-group/dist/index.js
3858
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js
3971
3859
  function createClassnames(props) {
3972
3860
  return createMemo(() => {
3973
3861
  const name = props.name || "s";
@@ -4005,7 +3893,6 @@ function enterTransition(classes, events, el, done) {
4005
3893
  });
4006
3894
  function endTransition(e2) {
4007
3895
  if (!e2 || e2.target === el) {
4008
- done?.();
4009
3896
  el.removeEventListener("transitionend", endTransition);
4010
3897
  el.removeEventListener("animationend", endTransition);
4011
3898
  el.classList.remove(...classes.enterActive);
@@ -4043,7 +3930,7 @@ function exitTransition(classes, events, el, done) {
4043
3930
  }
4044
3931
  var TransitionGroup;
4045
3932
  var init_dist6 = __esm({
4046
- "../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.17/node_modules/solid-transition-group/dist/index.js"() {
3933
+ "../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js"() {
4047
3934
  init_solid();
4048
3935
  init_dist4();
4049
3936
  init_dist5();
@@ -4097,7 +3984,7 @@ var init_dist6 = __esm({
4097
3984
  }
4098
3985
  });
4099
3986
 
4100
- // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.17/node_modules/@solid-primitives/keyed/dist/index.js
3987
+ // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.19/node_modules/@solid-primitives/keyed/dist/index.js
4101
3988
  function dispose2(list) {
4102
3989
  for (const o2 of list)
4103
3990
  o2.dispose();
@@ -4195,14 +4082,14 @@ function Key(props) {
4195
4082
  }
4196
4083
  var FALLBACK2;
4197
4084
  var init_dist7 = __esm({
4198
- "../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.17/node_modules/@solid-primitives/keyed/dist/index.js"() {
4085
+ "../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.19/node_modules/@solid-primitives/keyed/dist/index.js"() {
4199
4086
  init_solid();
4200
4087
  init_web();
4201
4088
  FALLBACK2 = Symbol("fallback");
4202
4089
  }
4203
4090
  });
4204
4091
 
4205
- // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.17/node_modules/@solid-primitives/storage/dist/index.js
4092
+ // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js
4206
4093
  function createStorage(props) {
4207
4094
  const [error, setError] = createSignal();
4208
4095
  const handleError2 = props?.throw ? (err, fallback) => {
@@ -4347,7 +4234,7 @@ function createStorage(props) {
4347
4234
  }
4348
4235
  var createLocalStorage, addClearMethod, serializeCookieOptions, cookieStorage;
4349
4236
  var init_dist8 = __esm({
4350
- "../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.17/node_modules/@solid-primitives/storage/dist/index.js"() {
4237
+ "../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js"() {
4351
4238
  init_solid();
4352
4239
  createLocalStorage = createStorage;
4353
4240
  addClearMethod = (storage) => {
@@ -4427,7 +4314,7 @@ var init_dist8 = __esm({
4427
4314
  }
4428
4315
  });
4429
4316
 
4430
- // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.17/node_modules/@solid-primitives/event-listener/dist/index.js
4317
+ // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.19/node_modules/@solid-primitives/event-listener/dist/index.js
4431
4318
  function makeEventListener(target, type, handler, options) {
4432
4319
  target.addEventListener(type, handler, options);
4433
4320
  return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
@@ -4447,14 +4334,14 @@ function createEventListener(targets, type, handler, options) {
4447
4334
  createRenderEffect(attachListeners);
4448
4335
  }
4449
4336
  var init_dist9 = __esm({
4450
- "../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.17/node_modules/@solid-primitives/event-listener/dist/index.js"() {
4337
+ "../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.19/node_modules/@solid-primitives/event-listener/dist/index.js"() {
4451
4338
  init_index();
4452
4339
  init_solid();
4453
4340
  init_web();
4454
4341
  }
4455
4342
  });
4456
4343
 
4457
- // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.25_solid-js@1.8.17/node_modules/@solid-primitives/resize-observer/dist/index.js
4344
+ // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.26_solid-js@1.8.19/node_modules/@solid-primitives/resize-observer/dist/index.js
4458
4345
  function makeResizeObserver(callback, options) {
4459
4346
  if (isServer) {
4460
4347
  return { observe: noop2, unobserve: noop2 };
@@ -4485,14 +4372,40 @@ function createResizeObserver(targets, onResize, options) {
4485
4372
  }, []);
4486
4373
  }
4487
4374
  var init_dist10 = __esm({
4488
- "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.25_solid-js@1.8.17/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4375
+ "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.26_solid-js@1.8.19/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4489
4376
  init_index();
4490
4377
  init_solid();
4491
4378
  init_web();
4492
4379
  }
4493
4380
  });
4494
4381
 
4495
- // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.17/node_modules/@kobalte/utils/dist/index.js
4382
+ // ../../node_modules/.pnpm/@solid-primitives+props@3.1.11_solid-js@1.8.19/node_modules/@solid-primitives/props/dist/index.js
4383
+ function stringStyleToObject(style2) {
4384
+ const object = {};
4385
+ let match;
4386
+ while (match = extractCSSregex.exec(style2)) {
4387
+ object[match[1]] = match[2];
4388
+ }
4389
+ return object;
4390
+ }
4391
+ function combineStyle(a2, b2) {
4392
+ if (typeof a2 === "string") {
4393
+ if (typeof b2 === "string")
4394
+ return `${a2};${b2}`;
4395
+ a2 = stringStyleToObject(a2);
4396
+ } else if (typeof b2 === "string") {
4397
+ b2 = stringStyleToObject(b2);
4398
+ }
4399
+ return { ...a2, ...b2 };
4400
+ }
4401
+ var extractCSSregex;
4402
+ var init_dist11 = __esm({
4403
+ "../../node_modules/.pnpm/@solid-primitives+props@3.1.11_solid-js@1.8.19/node_modules/@solid-primitives/props/dist/index.js"() {
4404
+ extractCSSregex = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
4405
+ }
4406
+ });
4407
+
4408
+ // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.19/node_modules/@kobalte/utils/dist/index.js
4496
4409
  function addItemToArray(array, item, index = -1) {
4497
4410
  if (!(index in array)) {
4498
4411
  return [...array, item];
@@ -4702,9 +4615,6 @@ function isStyleVisible(element) {
4702
4615
  function isAttributeVisible(element, childElement) {
4703
4616
  return !element.hasAttribute("hidden") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
4704
4617
  }
4705
- function isElementInScope(element, scope) {
4706
- return scope.some((node) => node.contains(element));
4707
- }
4708
4618
  function getFocusableTreeWalker(root, opts, scope) {
4709
4619
  const selector = opts?.tabbable ? TABBABLE_ELEMENT_SELECTOR : FOCUSABLE_ELEMENT_SELECTOR;
4710
4620
  const walker2 = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
@@ -4712,7 +4622,7 @@ function getFocusableTreeWalker(root, opts, scope) {
4712
4622
  if (opts?.from?.contains(node)) {
4713
4623
  return NodeFilter.FILTER_REJECT;
4714
4624
  }
4715
- if (node.matches(selector) && isElementVisible(node) && (!scope || isElementInScope(node, scope)) && (!opts?.accept || opts.accept(node))) {
4625
+ if (node.matches(selector) && isElementVisible(node) && (!scope) && (!opts?.accept || opts.accept(node))) {
4716
4626
  return NodeFilter.FILTER_ACCEPT;
4717
4627
  }
4718
4628
  return NodeFilter.FILTER_SKIP;
@@ -4867,7 +4777,6 @@ function scrollIntoViewport(targetElement, opts) {
4867
4777
  targetElement?.scrollIntoView?.({ block: "nearest" });
4868
4778
  const { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
4869
4779
  if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
4870
- opts?.containingElement?.scrollIntoView?.({ block: "center", inline: "center" });
4871
4780
  targetElement.scrollIntoView?.({ block: "nearest" });
4872
4781
  }
4873
4782
  } else {
@@ -4881,8 +4790,8 @@ function scrollIntoViewport(targetElement, opts) {
4881
4790
  }
4882
4791
  }
4883
4792
  var EventKey, supportsPreventScrollCached, focusableElements, tabbableElements, FOCUSABLE_ELEMENT_SELECTOR, TABBABLE_ELEMENT_SELECTOR, transitionsByElement, transitionCallbacks, visuallyHiddenStyles;
4884
- var init_dist11 = __esm({
4885
- "../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.17/node_modules/@kobalte/utils/dist/index.js"() {
4793
+ var init_dist12 = __esm({
4794
+ "../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.19/node_modules/@kobalte/utils/dist/index.js"() {
4886
4795
  init_solid();
4887
4796
  init_dist9();
4888
4797
  init_dist5();
@@ -4947,60 +4856,317 @@ var init_dist11 = __esm({
4947
4856
  }
4948
4857
  });
4949
4858
 
4950
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js
4951
- function createControllableSignal(props) {
4952
- const [_value, _setValue] = createSignal(props.defaultValue?.());
4953
- const isControlled = createMemo(() => props.value?.() !== void 0);
4954
- const value = createMemo(() => isControlled() ? props.value?.() : _value());
4955
- const setValue = (next) => {
4956
- untrack(() => {
4957
- const nextValue = accessWith(next, value());
4958
- if (!Object.is(nextValue, value())) {
4959
- if (!isControlled()) {
4960
- _setValue(nextValue);
4961
- }
4962
- props.onChange?.(nextValue);
4963
- }
4964
- return nextValue;
4965
- });
4859
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js
4860
+ function createRegisterId(setter) {
4861
+ return (id) => {
4862
+ setter(id);
4863
+ return () => setter(void 0);
4966
4864
  };
4967
- return [value, setValue];
4968
4865
  }
4969
- function createControllableBooleanSignal(props) {
4970
- const [_value, setValue] = createControllableSignal(props);
4971
- const value = () => _value() ?? false;
4972
- return [value, setValue];
4866
+ var init_E4R2EMM4 = __esm({
4867
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js"() {
4868
+ }
4869
+ });
4870
+
4871
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ET5T45DO.js
4872
+ function createTagName(ref, fallback) {
4873
+ const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));
4874
+ createEffect(() => {
4875
+ setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));
4876
+ });
4877
+ return tagName;
4973
4878
  }
4974
- function createControllableArraySignal(props) {
4975
- const [_value, setValue] = createControllableSignal(props);
4976
- const value = () => _value() ?? [];
4977
- return [value, setValue];
4879
+ function stringOrUndefined(value) {
4880
+ return isString2(value) ? value : void 0;
4978
4881
  }
4979
- var init_BLN63FDC = __esm({
4980
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js"() {
4981
- init_dist11();
4882
+ var init_ET5T45DO = __esm({
4883
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ET5T45DO.js"() {
4884
+ init_dist12();
4982
4885
  init_solid();
4983
4886
  }
4984
4887
  });
4985
4888
 
4986
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js
4987
- function useOptionalDomCollectionContext() {
4988
- return useContext(DomCollectionContext);
4889
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/6Y7B2NEO.js
4890
+ function Polymorphic(props) {
4891
+ const [local, others] = splitProps(props, ["as"]);
4892
+ if (!local.as) {
4893
+ throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
4894
+ }
4895
+ return (
4896
+ // @ts-ignore: Props are valid but not worth calculating
4897
+ createComponent(Dynamic, mergeProps(others, {
4898
+ get component() {
4899
+ return local.as;
4900
+ }
4901
+ }))
4902
+ );
4989
4903
  }
4990
- function useDomCollectionContext() {
4991
- const context = useOptionalDomCollectionContext();
4904
+ var init_Y7B2NEO = __esm({
4905
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/6Y7B2NEO.js"() {
4906
+ init_web();
4907
+ init_solid();
4908
+ }
4909
+ });
4910
+
4911
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2DJLZQE.js
4912
+ function createFormControl(props) {
4913
+ const defaultId = `form-control-${createUniqueId()}`;
4914
+ const mergedProps = mergeDefaultProps({
4915
+ id: defaultId
4916
+ }, props);
4917
+ const [labelId, setLabelId] = createSignal();
4918
+ const [fieldId, setFieldId] = createSignal();
4919
+ const [descriptionId, setDescriptionId] = createSignal();
4920
+ const [errorMessageId, setErrorMessageId] = createSignal();
4921
+ const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
4922
+ const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
4923
+ return [
4924
+ fieldAriaLabelledBy,
4925
+ labelId(),
4926
+ // If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
4927
+ hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
4928
+ ].filter(Boolean).join(" ") || void 0;
4929
+ };
4930
+ const getAriaDescribedBy = (fieldAriaDescribedBy) => {
4931
+ return [
4932
+ descriptionId(),
4933
+ // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
4934
+ // See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
4935
+ errorMessageId(),
4936
+ fieldAriaDescribedBy
4937
+ ].filter(Boolean).join(" ") || void 0;
4938
+ };
4939
+ const dataset = createMemo(() => ({
4940
+ "data-valid": access(mergedProps.validationState) === "valid" ? "" : void 0,
4941
+ "data-invalid": access(mergedProps.validationState) === "invalid" ? "" : void 0,
4942
+ "data-required": access(mergedProps.required) ? "" : void 0,
4943
+ "data-disabled": access(mergedProps.disabled) ? "" : void 0,
4944
+ "data-readonly": access(mergedProps.readOnly) ? "" : void 0
4945
+ }));
4946
+ const formControlContext = {
4947
+ name: () => access(mergedProps.name) ?? access(mergedProps.id),
4948
+ dataset,
4949
+ validationState: () => access(mergedProps.validationState),
4950
+ isRequired: () => access(mergedProps.required),
4951
+ isDisabled: () => access(mergedProps.disabled),
4952
+ isReadOnly: () => access(mergedProps.readOnly),
4953
+ labelId,
4954
+ fieldId,
4955
+ descriptionId,
4956
+ errorMessageId,
4957
+ getAriaLabelledBy,
4958
+ getAriaDescribedBy,
4959
+ generateId: createGenerateId(() => access(mergedProps.id)),
4960
+ registerLabel: createRegisterId(setLabelId),
4961
+ registerField: createRegisterId(setFieldId),
4962
+ registerDescription: createRegisterId(setDescriptionId),
4963
+ registerErrorMessage: createRegisterId(setErrorMessageId)
4964
+ };
4965
+ return {
4966
+ formControlContext
4967
+ };
4968
+ }
4969
+ function useFormControlContext() {
4970
+ const context = useContext(FormControlContext);
4992
4971
  if (context === void 0) {
4993
- throw new Error(
4994
- "[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component"
4995
- );
4972
+ throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
4996
4973
  }
4997
4974
  return context;
4998
4975
  }
4999
- function isElementPreceding(a2, b2) {
5000
- return Boolean(
5001
- b2.compareDocumentPosition(a2) & Node.DOCUMENT_POSITION_PRECEDING
5002
- );
5003
- }
4976
+ function FormControlDescription(props) {
4977
+ const context = useFormControlContext();
4978
+ const mergedProps = mergeDefaultProps({
4979
+ id: context.generateId("description")
4980
+ }, props);
4981
+ createEffect(() => onCleanup(context.registerDescription(mergedProps.id)));
4982
+ return createComponent(Polymorphic, mergeProps({
4983
+ as: "div"
4984
+ }, () => context.dataset(), mergedProps));
4985
+ }
4986
+ function FormControlErrorMessage(props) {
4987
+ const context = useFormControlContext();
4988
+ const mergedProps = mergeDefaultProps({
4989
+ id: context.generateId("error-message")
4990
+ }, props);
4991
+ const [local, others] = splitProps(mergedProps, ["forceMount"]);
4992
+ const isInvalid = () => context.validationState() === "invalid";
4993
+ createEffect(() => {
4994
+ if (!isInvalid()) {
4995
+ return;
4996
+ }
4997
+ onCleanup(context.registerErrorMessage(others.id));
4998
+ });
4999
+ return createComponent(Show, {
5000
+ get when() {
5001
+ return local.forceMount || isInvalid();
5002
+ },
5003
+ get children() {
5004
+ return createComponent(Polymorphic, mergeProps({
5005
+ as: "div"
5006
+ }, () => context.dataset(), others));
5007
+ }
5008
+ });
5009
+ }
5010
+ function FormControlLabel(props) {
5011
+ let ref;
5012
+ const context = useFormControlContext();
5013
+ const mergedProps = mergeDefaultProps({
5014
+ id: context.generateId("label")
5015
+ }, props);
5016
+ const [local, others] = splitProps(mergedProps, ["ref"]);
5017
+ const tagName = createTagName(() => ref, () => "label");
5018
+ createEffect(() => onCleanup(context.registerLabel(others.id)));
5019
+ return createComponent(Polymorphic, mergeProps({
5020
+ as: "label",
5021
+ ref(r$) {
5022
+ const _ref$ = mergeRefs((el) => ref = el, local.ref);
5023
+ typeof _ref$ === "function" && _ref$(r$);
5024
+ },
5025
+ get ["for"]() {
5026
+ return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
5027
+ }
5028
+ }, () => context.dataset(), others));
5029
+ }
5030
+ var FORM_CONTROL_PROP_NAMES, FormControlContext;
5031
+ var init_Q2DJLZQE = __esm({
5032
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2DJLZQE.js"() {
5033
+ init_E4R2EMM4();
5034
+ init_ET5T45DO();
5035
+ init_Y7B2NEO();
5036
+ init_dist12();
5037
+ init_solid();
5038
+ init_web();
5039
+ FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
5040
+ FormControlContext = createContext();
5041
+ }
5042
+ });
5043
+
5044
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js
5045
+ function createFormResetListener(element, handler) {
5046
+ createEffect(
5047
+ on(element, (element2) => {
5048
+ if (element2 == null) {
5049
+ return;
5050
+ }
5051
+ const form = getClosestForm(element2);
5052
+ if (form == null) {
5053
+ return;
5054
+ }
5055
+ form.addEventListener("reset", handler, { passive: true });
5056
+ onCleanup(() => {
5057
+ form.removeEventListener("reset", handler);
5058
+ });
5059
+ })
5060
+ );
5061
+ }
5062
+ function getClosestForm(element) {
5063
+ return isFormElement(element) ? element.form : element.closest("form");
5064
+ }
5065
+ function isFormElement(element) {
5066
+ return element.matches("textarea, input, select, button");
5067
+ }
5068
+ var init_ANN3A2QM = __esm({
5069
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js"() {
5070
+ init_solid();
5071
+ }
5072
+ });
5073
+
5074
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js
5075
+ function createControllableSignal(props) {
5076
+ const [_value, _setValue] = createSignal(props.defaultValue?.());
5077
+ const isControlled = createMemo(() => props.value?.() !== void 0);
5078
+ const value = createMemo(() => isControlled() ? props.value?.() : _value());
5079
+ const setValue = (next) => {
5080
+ untrack(() => {
5081
+ const nextValue = accessWith(next, value());
5082
+ if (!Object.is(nextValue, value())) {
5083
+ if (!isControlled()) {
5084
+ _setValue(nextValue);
5085
+ }
5086
+ props.onChange?.(nextValue);
5087
+ }
5088
+ return nextValue;
5089
+ });
5090
+ };
5091
+ return [value, setValue];
5092
+ }
5093
+ function createControllableBooleanSignal(props) {
5094
+ const [_value, setValue] = createControllableSignal(props);
5095
+ const value = () => _value() ?? false;
5096
+ return [value, setValue];
5097
+ }
5098
+ function createControllableArraySignal(props) {
5099
+ const [_value, setValue] = createControllableSignal(props);
5100
+ const value = () => _value() ?? [];
5101
+ return [value, setValue];
5102
+ }
5103
+ var init_BLN63FDC = __esm({
5104
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js"() {
5105
+ init_dist12();
5106
+ init_solid();
5107
+ }
5108
+ });
5109
+
5110
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js
5111
+ function createToggleState(props = {}) {
5112
+ const [isSelected, _setIsSelected] = createControllableBooleanSignal({
5113
+ value: () => access(props.isSelected),
5114
+ defaultValue: () => !!access(props.defaultIsSelected),
5115
+ onChange: (value) => props.onSelectedChange?.(value)
5116
+ });
5117
+ const setIsSelected = (value) => {
5118
+ if (!access(props.isReadOnly) && !access(props.isDisabled)) {
5119
+ _setIsSelected(value);
5120
+ }
5121
+ };
5122
+ const toggle = () => {
5123
+ if (!access(props.isReadOnly) && !access(props.isDisabled)) {
5124
+ _setIsSelected(!isSelected());
5125
+ }
5126
+ };
5127
+ return {
5128
+ isSelected,
5129
+ setIsSelected,
5130
+ toggle
5131
+ };
5132
+ }
5133
+ var init_YGDQXQ2B = __esm({
5134
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js"() {
5135
+ init_BLN63FDC();
5136
+ init_dist12();
5137
+ }
5138
+ });
5139
+
5140
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js
5141
+ var __defProp2, __export2;
5142
+ var init_ZKAE4VZ = __esm({
5143
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js"() {
5144
+ __defProp2 = Object.defineProperty;
5145
+ __export2 = (target, all) => {
5146
+ for (var name in all)
5147
+ __defProp2(target, name, { get: all[name], enumerable: true });
5148
+ };
5149
+ }
5150
+ });
5151
+
5152
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js
5153
+ function useOptionalDomCollectionContext() {
5154
+ return useContext(DomCollectionContext);
5155
+ }
5156
+ function useDomCollectionContext() {
5157
+ const context = useOptionalDomCollectionContext();
5158
+ if (context === void 0) {
5159
+ throw new Error(
5160
+ "[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component"
5161
+ );
5162
+ }
5163
+ return context;
5164
+ }
5165
+ function isElementPreceding(a2, b2) {
5166
+ return Boolean(
5167
+ b2.compareDocumentPosition(a2) & Node.DOCUMENT_POSITION_PRECEDING
5168
+ );
5169
+ }
5004
5170
  function findDOMIndex(items, item) {
5005
5171
  const itemEl = item.ref();
5006
5172
  if (!itemEl) {
@@ -5147,15 +5313,15 @@ function createDomCollectionItem(props) {
5147
5313
  }
5148
5314
  var DomCollectionContext;
5149
5315
  var init_CVNMTYF = __esm({
5150
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js"() {
5316
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js"() {
5151
5317
  init_BLN63FDC();
5152
- init_dist11();
5318
+ init_dist12();
5153
5319
  init_solid();
5154
5320
  DomCollectionContext = createContext();
5155
5321
  }
5156
5322
  });
5157
5323
 
5158
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3NGA46QE.js
5324
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/JMA2RWU6.js
5159
5325
  function buildNodes(params) {
5160
5326
  let index = params.startIndex ?? 0;
5161
5327
  const level = params.startLevel ?? 0;
@@ -5263,14 +5429,14 @@ function createCollection(props, deps = []) {
5263
5429
  return props.factory(nodes);
5264
5430
  });
5265
5431
  }
5266
- var init_NGA46QE = __esm({
5267
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3NGA46QE.js"() {
5268
- init_dist11();
5432
+ var init_JMA2RWU6 = __esm({
5433
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/JMA2RWU6.js"() {
5434
+ init_dist12();
5269
5435
  init_solid();
5270
5436
  }
5271
5437
  });
5272
5438
 
5273
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js
5439
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js
5274
5440
  function isRTL(locale) {
5275
5441
  if (Intl.Locale) {
5276
5442
  const script = new Intl.Locale(locale).maximize().script ?? "";
@@ -5347,7 +5513,7 @@ function createCollator(options) {
5347
5513
  }
5348
5514
  var RTL_SCRIPTS, RTL_LANGS, currentLocale, listeners, I18nContext, cache;
5349
5515
  var init_XHJPQEZP = __esm({
5350
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js"() {
5516
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js"() {
5351
5517
  init_solid();
5352
5518
  init_web();
5353
5519
  RTL_SCRIPTS = /* @__PURE__ */ new Set([
@@ -5392,7 +5558,7 @@ var init_XHJPQEZP = __esm({
5392
5558
  }
5393
5559
  });
5394
5560
 
5395
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/F2YUHYY4.js
5561
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/H6DSIDEC.js
5396
5562
  function createControllableSelectionSignal(props) {
5397
5563
  const [_value, setValue] = createControllableSignal(props);
5398
5564
  const value = () => _value() ?? new Selection();
@@ -5533,7 +5699,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5533
5699
  selectOnFocus: () => access(props.selectionManager).selectionBehavior() === "replace"
5534
5700
  };
5535
5701
  const mergedProps = mergeProps(defaultProps, props);
5536
- const finalScrollRef = () => scrollRef?.() ?? ref();
5702
+ const finalScrollRef = () => ref();
5537
5703
  const { direction } = useLocale();
5538
5704
  let scrollPos = { top: 0, left: 0 };
5539
5705
  createEventListener(
@@ -5555,6 +5721,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5555
5721
  keyboardDelegate: () => access(mergedProps.keyboardDelegate),
5556
5722
  selectionManager: () => access(mergedProps.selectionManager)
5557
5723
  });
5724
+ const orientation = () => access(mergedProps.orientation) ?? "vertical";
5558
5725
  const onKeyDown = (e2) => {
5559
5726
  callHandler(e2, typeSelectHandlers.onKeyDown);
5560
5727
  if (e2.altKey && e2.key === "Tab") {
@@ -5580,7 +5747,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5580
5747
  const shouldFocusWrap = access(mergedProps.shouldFocusWrap);
5581
5748
  const focusedKey = manager.focusedKey();
5582
5749
  switch (e2.key) {
5583
- case "ArrowDown": {
5750
+ case (orientation() === "vertical" ? "ArrowDown" : "ArrowRight"): {
5584
5751
  if (delegate.getKeyBelow) {
5585
5752
  e2.preventDefault();
5586
5753
  let nextKey;
@@ -5596,7 +5763,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5596
5763
  }
5597
5764
  break;
5598
5765
  }
5599
- case "ArrowUp": {
5766
+ case (orientation() === "vertical" ? "ArrowUp" : "ArrowLeft"): {
5600
5767
  if (delegate.getKeyAbove) {
5601
5768
  e2.preventDefault();
5602
5769
  let nextKey;
@@ -5612,7 +5779,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5612
5779
  }
5613
5780
  break;
5614
5781
  }
5615
- case "ArrowLeft": {
5782
+ case (orientation() === "vertical" ? "ArrowLeft" : "ArrowUp"): {
5616
5783
  if (delegate.getKeyLeftOf) {
5617
5784
  e2.preventDefault();
5618
5785
  const isRTL3 = direction() === "rtl";
@@ -5626,7 +5793,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5626
5793
  }
5627
5794
  break;
5628
5795
  }
5629
- case "ArrowRight": {
5796
+ case (orientation() === "vertical" ? "ArrowRight" : "ArrowDown"): {
5630
5797
  if (delegate.getKeyRightOf) {
5631
5798
  e2.preventDefault();
5632
5799
  const isRTL3 = direction() === "rtl";
@@ -5999,12 +6166,12 @@ function createListState(props) {
5999
6166
  };
6000
6167
  }
6001
6168
  var Selection, SelectionManager, ListCollection;
6002
- var init_F2YUHYY4 = __esm({
6003
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/F2YUHYY4.js"() {
6004
- init_NGA46QE();
6169
+ var init_H6DSIDEC = __esm({
6170
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/H6DSIDEC.js"() {
6171
+ init_JMA2RWU6();
6005
6172
  init_XHJPQEZP();
6006
6173
  init_BLN63FDC();
6007
- init_dist11();
6174
+ init_dist12();
6008
6175
  init_solid();
6009
6176
  Selection = class _Selection extends Set {
6010
6177
  anchorKey;
@@ -6386,343 +6553,99 @@ var init_F2YUHYY4 = __esm({
6386
6553
  }
6387
6554
  });
6388
6555
 
6389
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/32MH7W7S.js
6390
- function createPresence(present) {
6391
- const [node, setNode] = createSignal();
6392
- let styles = {};
6393
- let prevPresent = present();
6394
- let prevAnimationName = "none";
6395
- const [state, send] = createStateMachine(
6396
- present() ? "mounted" : "unmounted",
6397
- {
6398
- mounted: {
6399
- UNMOUNT: "unmounted",
6400
- ANIMATION_OUT: "unmountSuspended"
6401
- },
6402
- unmountSuspended: {
6403
- MOUNT: "mounted",
6404
- ANIMATION_END: "unmounted"
6405
- },
6406
- unmounted: {
6407
- MOUNT: "mounted"
6408
- }
6409
- }
6410
- );
6411
- createEffect(
6412
- on(state, (state2) => {
6413
- const currentAnimationName = getAnimationName(styles);
6414
- prevAnimationName = state2 === "mounted" ? currentAnimationName : "none";
6415
- })
6416
- );
6417
- createEffect(
6418
- on(present, (present2) => {
6419
- if (prevPresent === present2) {
6420
- return;
6421
- }
6422
- const currentAnimationName = getAnimationName(styles);
6423
- if (present2) {
6424
- send("MOUNT");
6425
- } else if (styles?.display === "none") {
6426
- send("UNMOUNT");
6427
- } else {
6428
- const isAnimating = prevAnimationName !== currentAnimationName;
6429
- if (prevPresent && isAnimating) {
6430
- send("ANIMATION_OUT");
6431
- } else {
6432
- send("UNMOUNT");
6433
- }
6434
- }
6435
- prevPresent = present2;
6436
- })
6437
- );
6438
- createEffect(
6439
- on(node, (node2) => {
6440
- if (node2) {
6441
- const handleAnimationEnd = (event) => {
6442
- const currentAnimationName = getAnimationName(styles);
6443
- const isCurrentAnimation = currentAnimationName.includes(
6444
- event.animationName
6445
- );
6446
- if (event.target === node2 && isCurrentAnimation) {
6447
- send("ANIMATION_END");
6448
- }
6449
- };
6450
- const handleAnimationStart = (event) => {
6451
- if (event.target === node2) {
6452
- prevAnimationName = getAnimationName(styles);
6453
- }
6454
- };
6455
- node2.addEventListener("animationstart", handleAnimationStart);
6456
- node2.addEventListener("animationcancel", handleAnimationEnd);
6457
- node2.addEventListener("animationend", handleAnimationEnd);
6458
- onCleanup(() => {
6459
- node2.removeEventListener("animationstart", handleAnimationStart);
6460
- node2.removeEventListener("animationcancel", handleAnimationEnd);
6461
- node2.removeEventListener("animationend", handleAnimationEnd);
6462
- });
6463
- } else {
6464
- send("ANIMATION_END");
6465
- }
6466
- })
6467
- );
6468
- return {
6469
- isPresent: () => ["mounted", "unmountSuspended"].includes(state()),
6470
- setRef: (el) => {
6471
- if (el) {
6472
- styles = getComputedStyle(el);
6473
- }
6474
- setNode(el);
6475
- }
6476
- };
6477
- }
6478
- function getAnimationName(styles) {
6479
- return styles?.animationName || "none";
6480
- }
6481
- function createStateMachine(initialState, machine) {
6482
- const reduce = (state2, event) => {
6483
- const nextState = machine[state2][event];
6484
- return nextState ?? state2;
6485
- };
6486
- const [state, setState] = createSignal(initialState);
6487
- const send = (event) => {
6488
- setState((prev) => reduce(prev, event));
6489
- };
6490
- return [state, send];
6491
- }
6492
- var init_MH7W7S = __esm({
6493
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/32MH7W7S.js"() {
6494
- init_solid();
6495
- }
6496
- });
6497
-
6498
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/SNFWSEOJ.js
6499
- function Polymorphic(props) {
6500
- const [local, others] = splitProps(props, ["as"]);
6501
- if (!local.as) {
6502
- throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
6503
- }
6504
- return (
6505
- // @ts-ignore: Props are valid but not worth calculating
6506
- createComponent(Dynamic, mergeProps({
6507
- get component() {
6508
- return local.as;
6509
- }
6510
- }, others))
6511
- );
6512
- }
6513
- var init_SNFWSEOJ = __esm({
6514
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/SNFWSEOJ.js"() {
6515
- init_web();
6516
- init_solid();
6517
- }
6518
- });
6519
-
6520
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js
6521
- var __defProp2, __export2;
6522
- var init_ZKAE4VZ = __esm({
6523
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js"() {
6524
- __defProp2 = Object.defineProperty;
6525
- __export2 = (target, all) => {
6526
- for (var name in all)
6527
- __defProp2(target, name, { get: all[name], enumerable: true });
6528
- };
6529
- }
6530
- });
6531
-
6532
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js
6533
- function createRegisterId(setter) {
6534
- return (id) => {
6535
- setter(id);
6536
- return () => setter(void 0);
6537
- };
6538
- }
6539
- var init_E4R2EMM4 = __esm({
6540
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js"() {
6556
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/ZV6G25TT.js
6557
+ var access2;
6558
+ var init_ZV6G25TT = __esm({
6559
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/ZV6G25TT.js"() {
6560
+ access2 = (v) => typeof v === "function" ? v() : v;
6541
6561
  }
6542
6562
  });
6543
6563
 
6544
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3QD537TT.js
6545
- function createTagName(ref, fallback) {
6546
- const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));
6547
- createEffect(() => {
6548
- setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));
6549
- });
6550
- return tagName;
6551
- }
6552
- function stringOrUndefined(value) {
6553
- return isString2(value) ? value : void 0;
6554
- }
6555
- var init_QD537TT = __esm({
6556
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3QD537TT.js"() {
6557
- init_dist11();
6558
- init_solid();
6564
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/reactivity/index.js
6565
+ var init_reactivity = __esm({
6566
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/reactivity/index.js"() {
6567
+ init_ZV6G25TT();
6559
6568
  }
6560
6569
  });
6561
6570
 
6562
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/IXGTCCA7.js
6563
- function createFormControl(props) {
6564
- const defaultId = `form-control-${createUniqueId()}`;
6565
- const mergedProps = mergeDefaultProps({
6566
- id: defaultId
6567
- }, props);
6568
- const [labelId, setLabelId] = createSignal();
6569
- const [fieldId, setFieldId] = createSignal();
6570
- const [descriptionId, setDescriptionId] = createSignal();
6571
- const [errorMessageId, setErrorMessageId] = createSignal();
6572
- const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
6573
- const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
6574
- return [
6575
- fieldAriaLabelledBy,
6576
- labelId(),
6577
- // If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
6578
- hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
6579
- ].filter(Boolean).join(" ") || void 0;
6580
- };
6581
- const getAriaDescribedBy = (fieldAriaDescribedBy) => {
6582
- return [
6583
- descriptionId(),
6584
- // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
6585
- // See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
6586
- errorMessageId(),
6587
- fieldAriaDescribedBy
6588
- ].filter(Boolean).join(" ") || void 0;
6589
- };
6590
- const dataset = createMemo(() => ({
6591
- "data-valid": access(mergedProps.validationState) === "valid" ? "" : void 0,
6592
- "data-invalid": access(mergedProps.validationState) === "invalid" ? "" : void 0,
6593
- "data-required": access(mergedProps.required) ? "" : void 0,
6594
- "data-disabled": access(mergedProps.disabled) ? "" : void 0,
6595
- "data-readonly": access(mergedProps.readOnly) ? "" : void 0
6596
- }));
6597
- const formControlContext = {
6598
- name: () => access(mergedProps.name) ?? access(mergedProps.id),
6599
- dataset,
6600
- validationState: () => access(mergedProps.validationState),
6601
- isRequired: () => access(mergedProps.required),
6602
- isDisabled: () => access(mergedProps.disabled),
6603
- isReadOnly: () => access(mergedProps.readOnly),
6604
- labelId,
6605
- fieldId,
6606
- descriptionId,
6607
- errorMessageId,
6608
- getAriaLabelledBy,
6609
- getAriaDescribedBy,
6610
- generateId: createGenerateId(() => access(mergedProps.id)),
6611
- registerLabel: createRegisterId(setLabelId),
6612
- registerField: createRegisterId(setFieldId),
6613
- registerDescription: createRegisterId(setDescriptionId),
6614
- registerErrorMessage: createRegisterId(setErrorMessageId)
6615
- };
6616
- return {
6617
- formControlContext
6618
- };
6619
- }
6620
- function useFormControlContext() {
6621
- const context = useContext(FormControlContext);
6622
- if (context === void 0) {
6623
- throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
6624
- }
6625
- return context;
6626
- }
6627
- function FormControlDescription(props) {
6628
- const context = useFormControlContext();
6629
- const mergedProps = mergeDefaultProps({
6630
- id: context.generateId("description")
6631
- }, props);
6632
- createEffect(() => onCleanup(context.registerDescription(mergedProps.id)));
6633
- return createComponent(Polymorphic, mergeProps({
6634
- as: "div"
6635
- }, () => context.dataset(), mergedProps));
6636
- }
6637
- function FormControlErrorMessage(props) {
6638
- const context = useFormControlContext();
6639
- const mergedProps = mergeDefaultProps({
6640
- id: context.generateId("error-message")
6641
- }, props);
6642
- const [local, others] = splitProps(mergedProps, ["forceMount"]);
6643
- const isInvalid = () => context.validationState() === "invalid";
6644
- createEffect(() => {
6645
- if (!isInvalid()) {
6646
- return;
6647
- }
6648
- onCleanup(context.registerErrorMessage(others.id));
6649
- });
6650
- return createComponent(Show, {
6651
- get when() {
6652
- return local.forceMount || isInvalid();
6653
- },
6654
- get children() {
6655
- return createComponent(Polymorphic, mergeProps({
6656
- as: "div"
6657
- }, () => context.dataset(), others));
6658
- }
6659
- });
6660
- }
6661
- function FormControlLabel(props) {
6662
- let ref;
6663
- const context = useFormControlContext();
6664
- const mergedProps = mergeDefaultProps({
6665
- id: context.generateId("label")
6666
- }, props);
6667
- const [local, others] = splitProps(mergedProps, ["ref"]);
6668
- const tagName = createTagName(() => ref, () => "label");
6669
- createEffect(() => onCleanup(context.registerLabel(others.id)));
6670
- return createComponent(Polymorphic, mergeProps({
6671
- as: "label",
6672
- ref(r$) {
6673
- const _ref$ = mergeRefs((el) => ref = el, local.ref);
6674
- typeof _ref$ === "function" && _ref$(r$);
6675
- },
6676
- get ["for"]() {
6677
- return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
6678
- }
6679
- }, () => context.dataset(), others));
6680
- }
6681
- var FORM_CONTROL_PROP_NAMES, FormControlContext;
6682
- var init_IXGTCCA7 = __esm({
6683
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/IXGTCCA7.js"() {
6684
- init_E4R2EMM4();
6685
- init_QD537TT();
6686
- init_SNFWSEOJ();
6687
- init_dist11();
6571
+ // ../../node_modules/.pnpm/solid-presence@0.1.7_solid-js@1.8.19/node_modules/solid-presence/dist/index.js
6572
+ var createPresence, presence_default, src_default;
6573
+ var init_dist13 = __esm({
6574
+ "../../node_modules/.pnpm/solid-presence@0.1.7_solid-js@1.8.19/node_modules/solid-presence/dist/index.js"() {
6575
+ init_reactivity();
6688
6576
  init_solid();
6689
- init_web();
6690
- FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
6691
- FormControlContext = createContext();
6692
- }
6693
- });
6694
-
6695
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js
6696
- function createFormResetListener(element, handler) {
6697
- createEffect(
6698
- on(element, (element2) => {
6699
- if (element2 == null) {
6700
- return;
6701
- }
6702
- const form = getClosestForm(element2);
6703
- if (form == null) {
6704
- return;
6705
- }
6706
- form.addEventListener("reset", handler, { passive: true });
6707
- onCleanup(() => {
6708
- form.removeEventListener("reset", handler);
6577
+ createPresence = (props) => {
6578
+ const refStyles = createMemo(() => {
6579
+ const element = access2(props.element);
6580
+ if (!element)
6581
+ return;
6582
+ return getComputedStyle(element);
6583
+ });
6584
+ const getAnimationName = () => {
6585
+ return refStyles()?.animationName ?? "none";
6586
+ };
6587
+ const [presentState, setPresentState] = createSignal(access2(props.show) ? "present" : "hidden");
6588
+ let animationName = "none";
6589
+ createEffect((prevShow) => {
6590
+ const show = access2(props.show);
6591
+ untrack(() => {
6592
+ if (prevShow === show)
6593
+ return show;
6594
+ const prevAnimationName = animationName;
6595
+ const currentAnimationName = getAnimationName();
6596
+ if (show) {
6597
+ setPresentState("present");
6598
+ } else if (currentAnimationName === "none" || refStyles()?.display === "none") {
6599
+ setPresentState("hidden");
6600
+ } else {
6601
+ const isAnimating = prevAnimationName !== currentAnimationName;
6602
+ if (prevShow === true && isAnimating) {
6603
+ setPresentState("hiding");
6604
+ } else {
6605
+ setPresentState("hidden");
6606
+ }
6607
+ }
6608
+ });
6609
+ return show;
6610
+ });
6611
+ createEffect(() => {
6612
+ const element = access2(props.element);
6613
+ if (!element)
6614
+ return;
6615
+ const handleAnimationStart = (event) => {
6616
+ if (event.target === element) {
6617
+ animationName = getAnimationName();
6618
+ }
6619
+ };
6620
+ const handleAnimationEnd = (event) => {
6621
+ const currentAnimationName = getAnimationName();
6622
+ const isCurrentAnimation = currentAnimationName.includes(
6623
+ event.animationName
6624
+ );
6625
+ if (event.target === element && isCurrentAnimation && presentState() === "hiding") {
6626
+ setPresentState("hidden");
6627
+ }
6628
+ };
6629
+ element.addEventListener("animationstart", handleAnimationStart);
6630
+ element.addEventListener("animationcancel", handleAnimationEnd);
6631
+ element.addEventListener("animationend", handleAnimationEnd);
6632
+ onCleanup(() => {
6633
+ element.removeEventListener("animationstart", handleAnimationStart);
6634
+ element.removeEventListener("animationcancel", handleAnimationEnd);
6635
+ element.removeEventListener("animationend", handleAnimationEnd);
6636
+ });
6709
6637
  });
6710
- })
6711
- );
6712
- }
6713
- function getClosestForm(element) {
6714
- return isFormElement(element) ? element.form : element.closest("form");
6715
- }
6716
- function isFormElement(element) {
6717
- return element.matches("textarea, input, select, button");
6718
- }
6719
- var init_ANN3A2QM = __esm({
6720
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js"() {
6721
- init_solid();
6638
+ return {
6639
+ present: () => presentState() === "present" || presentState() === "hiding",
6640
+ state: presentState
6641
+ };
6642
+ };
6643
+ presence_default = createPresence;
6644
+ src_default = presence_default;
6722
6645
  }
6723
6646
  });
6724
6647
 
6725
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js
6648
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js
6726
6649
  function indexOf(node) {
6727
6650
  return layers.findIndex((layer) => layer.node === node);
6728
6651
  }
@@ -6783,8 +6706,8 @@ function restoreBodyPointerEvents(node) {
6783
6706
  }
6784
6707
  var DATA_TOP_LAYER_ATTR, originalBodyPointerEvents, hasDisabledBodyPointerEvents, layers, layerStack;
6785
6708
  var init_ZKYDDHM6 = __esm({
6786
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js"() {
6787
- init_dist11();
6709
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js"() {
6710
+ init_dist12();
6788
6711
  DATA_TOP_LAYER_ATTR = "data-kb-top-layer";
6789
6712
  hasDisabledBodyPointerEvents = false;
6790
6713
  layers = [];
@@ -6804,7 +6727,7 @@ var init_ZKYDDHM6 = __esm({
6804
6727
  }
6805
6728
  });
6806
6729
 
6807
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/EOS4KX3P.js
6730
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7OVKXYPU.js
6808
6731
  function isButton(element) {
6809
6732
  const tagName = element.tagName.toLowerCase();
6810
6733
  if (tagName === "button") {
@@ -6865,13 +6788,13 @@ function ButtonRoot(props) {
6865
6788
  }, others));
6866
6789
  }
6867
6790
  var button_exports, BUTTON_INPUT_TYPES, Button;
6868
- var init_EOS4KX3P = __esm({
6869
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/EOS4KX3P.js"() {
6870
- init_QD537TT();
6871
- init_SNFWSEOJ();
6791
+ var init_OVKXYPU = __esm({
6792
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7OVKXYPU.js"() {
6793
+ init_ET5T45DO();
6794
+ init_Y7B2NEO();
6872
6795
  init_ZKAE4VZ();
6873
6796
  init_web();
6874
- init_dist11();
6797
+ init_dist12();
6875
6798
  init_solid();
6876
6799
  button_exports = {};
6877
6800
  __export2(button_exports, {
@@ -6890,37 +6813,7 @@ var init_EOS4KX3P = __esm({
6890
6813
  }
6891
6814
  });
6892
6815
 
6893
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js
6894
- function createToggleState(props = {}) {
6895
- const [isSelected, _setIsSelected] = createControllableBooleanSignal({
6896
- value: () => access(props.isSelected),
6897
- defaultValue: () => !!access(props.defaultIsSelected),
6898
- onChange: (value) => props.onSelectedChange?.(value)
6899
- });
6900
- const setIsSelected = (value) => {
6901
- if (!access(props.isReadOnly) && !access(props.isDisabled)) {
6902
- _setIsSelected(value);
6903
- }
6904
- };
6905
- const toggle = () => {
6906
- if (!access(props.isReadOnly) && !access(props.isDisabled)) {
6907
- _setIsSelected(!isSelected());
6908
- }
6909
- };
6910
- return {
6911
- isSelected,
6912
- setIsSelected,
6913
- toggle
6914
- };
6915
- }
6916
- var init_YGDQXQ2B = __esm({
6917
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js"() {
6918
- init_BLN63FDC();
6919
- init_dist11();
6920
- }
6921
- });
6922
-
6923
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
6816
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
6924
6817
  function clamp2(start, value, end) {
6925
6818
  return max(start, min(value, end));
6926
6819
  }
@@ -7015,20 +6908,35 @@ function getPaddingObject(padding) {
7015
6908
  };
7016
6909
  }
7017
6910
  function rectToClientRect(rect) {
6911
+ const {
6912
+ x,
6913
+ y,
6914
+ width,
6915
+ height
6916
+ } = rect;
7018
6917
  return {
7019
- ...rect,
7020
- top: rect.y,
7021
- left: rect.x,
7022
- right: rect.x + rect.width,
7023
- bottom: rect.y + rect.height
6918
+ width,
6919
+ height,
6920
+ top: y,
6921
+ left: x,
6922
+ right: x + width,
6923
+ bottom: y + height,
6924
+ x,
6925
+ y
7024
6926
  };
7025
6927
  }
7026
- var sides, min, max, oppositeSideMap, oppositeAlignmentMap;
6928
+ var sides, min, max, round, floor, createCoords, oppositeSideMap, oppositeAlignmentMap;
7027
6929
  var init_floating_ui_utils = __esm({
7028
- "../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
6930
+ "../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
7029
6931
  sides = ["top", "right", "bottom", "left"];
7030
6932
  min = Math.min;
7031
6933
  max = Math.max;
6934
+ round = Math.round;
6935
+ floor = Math.floor;
6936
+ createCoords = (v) => ({
6937
+ x: v,
6938
+ y: v
6939
+ });
7032
6940
  oppositeSideMap = {
7033
6941
  left: "right",
7034
6942
  right: "left",
@@ -7042,7 +6950,7 @@ var init_floating_ui_utils = __esm({
7042
6950
  }
7043
6951
  });
7044
6952
 
7045
- // ../../node_modules/.pnpm/@floating-ui+core@1.5.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
6953
+ // ../../node_modules/.pnpm/@floating-ui+core@1.6.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
7046
6954
  function computeCoordsFromPlacement(_ref, placement, rtl) {
7047
6955
  let {
7048
6956
  reference,
@@ -7128,9 +7036,10 @@ async function detectOverflow(state, options) {
7128
7036
  strategy
7129
7037
  }));
7130
7038
  const rect = elementContext === "floating" ? {
7131
- ...rects.floating,
7132
7039
  x,
7133
- y
7040
+ y,
7041
+ width: rects.floating.width,
7042
+ height: rects.floating.height
7134
7043
  } : rects.reference;
7135
7044
  const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
7136
7045
  const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
@@ -7141,6 +7050,7 @@ async function detectOverflow(state, options) {
7141
7050
  y: 1
7142
7051
  };
7143
7052
  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
7053
+ elements,
7144
7054
  rect,
7145
7055
  offsetParent,
7146
7056
  strategy
@@ -7203,7 +7113,7 @@ async function convertValueToCoords(state, options) {
7203
7113
  }
7204
7114
  var computePosition, arrow, flip, hide, offset, shift, size;
7205
7115
  var init_floating_ui_core = __esm({
7206
- "../../node_modules/.pnpm/@floating-ui+core@1.5.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs"() {
7116
+ "../../node_modules/.pnpm/@floating-ui+core@1.6.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs"() {
7207
7117
  init_floating_ui_utils();
7208
7118
  init_floating_ui_utils();
7209
7119
  computePosition = async (reference, floating, config) => {
@@ -7279,7 +7189,6 @@ var init_floating_ui_core = __esm({
7279
7189
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
7280
7190
  }
7281
7191
  i2 = -1;
7282
- continue;
7283
7192
  }
7284
7193
  }
7285
7194
  return {
@@ -7334,11 +7243,11 @@ var init_floating_ui_core = __esm({
7334
7243
  const minPadding = min(paddingObject[minProp], largestPossiblePadding);
7335
7244
  const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
7336
7245
  const min$1 = minPadding;
7337
- const max3 = clientSize - arrowDimensions[length] - maxPadding;
7246
+ const max2 = clientSize - arrowDimensions[length] - maxPadding;
7338
7247
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
7339
- const offset3 = clamp2(min$1, center, max3);
7340
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
7341
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max3 : 0;
7248
+ const offset3 = clamp2(min$1, center, max2);
7249
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
7250
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
7342
7251
  return {
7343
7252
  [axis]: coords[axis] + alignmentOffset,
7344
7253
  data: {
@@ -7382,10 +7291,12 @@ var init_floating_ui_core = __esm({
7382
7291
  return {};
7383
7292
  }
7384
7293
  const side = getSide(placement);
7294
+ const initialSideAxis = getSideAxis(initialPlacement);
7385
7295
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
7386
7296
  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
7387
7297
  const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
7388
- if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== "none") {
7298
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
7299
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
7389
7300
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
7390
7301
  }
7391
7302
  const placements2 = [initialPlacement, ...fallbackPlacements];
@@ -7422,8 +7333,16 @@ var init_floating_ui_core = __esm({
7422
7333
  if (!resetPlacement) {
7423
7334
  switch (fallbackStrategy) {
7424
7335
  case "bestFit": {
7425
- var _overflowsData$map$so;
7426
- const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
7336
+ var _overflowsData$filter2;
7337
+ const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
7338
+ if (hasFallbackAxisSideDirection) {
7339
+ const currentSideAxis = getSideAxis(d.placement);
7340
+ return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
7341
+ // reading directions favoring greater width.
7342
+ currentSideAxis === "y";
7343
+ }
7344
+ return true;
7345
+ }).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
7427
7346
  if (placement2) {
7428
7347
  resetPlacement = placement2;
7429
7348
  }
@@ -7503,15 +7422,24 @@ var init_floating_ui_core = __esm({
7503
7422
  name: "offset",
7504
7423
  options,
7505
7424
  async fn(state) {
7425
+ var _middlewareData$offse, _middlewareData$arrow;
7506
7426
  const {
7507
7427
  x,
7508
- y
7428
+ y,
7429
+ placement,
7430
+ middlewareData
7509
7431
  } = state;
7510
7432
  const diffCoords = await convertValueToCoords(state, options);
7433
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
7434
+ return {};
7435
+ }
7511
7436
  return {
7512
7437
  x: x + diffCoords.x,
7513
7438
  y: y + diffCoords.y,
7514
- data: diffCoords
7439
+ data: {
7440
+ ...diffCoords,
7441
+ placement
7442
+ }
7515
7443
  };
7516
7444
  }
7517
7445
  };
@@ -7558,16 +7486,16 @@ var init_floating_ui_core = __esm({
7558
7486
  if (checkMainAxis) {
7559
7487
  const minSide = mainAxis === "y" ? "top" : "left";
7560
7488
  const maxSide = mainAxis === "y" ? "bottom" : "right";
7561
- const min3 = mainAxisCoord + overflow[minSide];
7562
- const max3 = mainAxisCoord - overflow[maxSide];
7563
- mainAxisCoord = clamp2(min3, mainAxisCoord, max3);
7489
+ const min2 = mainAxisCoord + overflow[minSide];
7490
+ const max2 = mainAxisCoord - overflow[maxSide];
7491
+ mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
7564
7492
  }
7565
7493
  if (checkCrossAxis) {
7566
7494
  const minSide = crossAxis === "y" ? "top" : "left";
7567
7495
  const maxSide = crossAxis === "y" ? "bottom" : "right";
7568
- const min3 = crossAxisCoord + overflow[minSide];
7569
- const max3 = crossAxisCoord - overflow[maxSide];
7570
- crossAxisCoord = clamp2(min3, crossAxisCoord, max3);
7496
+ const min2 = crossAxisCoord + overflow[minSide];
7497
+ const max2 = crossAxisCoord - overflow[maxSide];
7498
+ crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
7571
7499
  }
7572
7500
  const limitedCoords = limiter.fn({
7573
7501
  ...state,
@@ -7620,16 +7548,16 @@ var init_floating_ui_core = __esm({
7620
7548
  widthSide = side;
7621
7549
  heightSide = alignment === "end" ? "top" : "bottom";
7622
7550
  }
7623
- const overflowAvailableHeight = height - overflow[heightSide];
7624
- const overflowAvailableWidth = width - overflow[widthSide];
7551
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
7552
+ const maximumClippingWidth = width - overflow.left - overflow.right;
7553
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
7554
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
7625
7555
  const noShift = !state.middlewareData.shift;
7626
7556
  let availableHeight = overflowAvailableHeight;
7627
7557
  let availableWidth = overflowAvailableWidth;
7628
7558
  if (isYAxis) {
7629
- const maximumClippingWidth = width - overflow.left - overflow.right;
7630
7559
  availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
7631
7560
  } else {
7632
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
7633
7561
  availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
7634
7562
  }
7635
7563
  if (noShift && !alignment) {
@@ -7663,22 +7591,7 @@ var init_floating_ui_core = __esm({
7663
7591
  }
7664
7592
  });
7665
7593
 
7666
- // ../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
7667
- var min2, max2, round, floor, createCoords;
7668
- var init_floating_ui_utils2 = __esm({
7669
- "../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
7670
- min2 = Math.min;
7671
- max2 = Math.max;
7672
- round = Math.round;
7673
- floor = Math.floor;
7674
- createCoords = (v) => ({
7675
- x: v,
7676
- y: v
7677
- });
7678
- }
7679
- });
7680
-
7681
- // ../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
7594
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
7682
7595
  function getNodeName(node) {
7683
7596
  if (isNode(node)) {
7684
7597
  return (node.nodeName || "").toLowerCase();
@@ -7720,9 +7633,18 @@ function isOverflowElement(element) {
7720
7633
  function isTableElement(element) {
7721
7634
  return ["table", "td", "th"].includes(getNodeName(element));
7722
7635
  }
7723
- function isContainingBlock(element) {
7636
+ function isTopLayer(element) {
7637
+ return [":popover-open", ":modal"].some((selector) => {
7638
+ try {
7639
+ return element.matches(selector);
7640
+ } catch (e2) {
7641
+ return false;
7642
+ }
7643
+ });
7644
+ }
7645
+ function isContainingBlock(elementOrCss) {
7724
7646
  const webkit = isWebKit();
7725
- const css = getComputedStyle2(element);
7647
+ const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
7726
7648
  return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
7727
7649
  }
7728
7650
  function getContainingBlock(element) {
@@ -7730,6 +7652,8 @@ function getContainingBlock(element) {
7730
7652
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
7731
7653
  if (isContainingBlock(currentNode)) {
7732
7654
  return currentNode;
7655
+ } else if (isTopLayer(currentNode)) {
7656
+ return null;
7733
7657
  }
7734
7658
  currentNode = getParentNode(currentNode);
7735
7659
  }
@@ -7754,8 +7678,8 @@ function getNodeScroll(element) {
7754
7678
  };
7755
7679
  }
7756
7680
  return {
7757
- scrollLeft: element.pageXOffset,
7758
- scrollTop: element.pageYOffset
7681
+ scrollLeft: element.scrollX,
7682
+ scrollTop: element.scrollY
7759
7683
  };
7760
7684
  }
7761
7685
  function getParentNode(node) {
@@ -7798,11 +7722,11 @@ function getOverflowAncestors(node, list, traverseIframes) {
7798
7722
  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
7799
7723
  }
7800
7724
  var init_floating_ui_utils_dom = __esm({
7801
- "../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"() {
7725
+ "../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"() {
7802
7726
  }
7803
7727
  });
7804
7728
 
7805
- // ../../node_modules/.pnpm/@floating-ui+dom@1.6.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
7729
+ // ../../node_modules/.pnpm/@floating-ui+dom@1.6.8/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
7806
7730
  function getCssDimensions(element) {
7807
7731
  const css = getComputedStyle2(element);
7808
7732
  let width = parseFloat(css.width) || 0;
@@ -7919,15 +7843,6 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
7919
7843
  y
7920
7844
  });
7921
7845
  }
7922
- function isTopLayer(element) {
7923
- return topLayerSelectors.some((selector) => {
7924
- try {
7925
- return element.matches(selector);
7926
- } catch (e2) {
7927
- return false;
7928
- }
7929
- });
7930
- }
7931
7846
  function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
7932
7847
  let {
7933
7848
  elements,
@@ -7976,12 +7891,12 @@ function getDocumentRect(element) {
7976
7891
  const html = getDocumentElement(element);
7977
7892
  const scroll = getNodeScroll(element);
7978
7893
  const body = element.ownerDocument.body;
7979
- const width = max2(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
7980
- const height = max2(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
7894
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
7895
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
7981
7896
  let x = -scroll.scrollLeft + getWindowScrollBarX(element);
7982
7897
  const y = -scroll.scrollTop;
7983
7898
  if (getComputedStyle2(body).direction === "rtl") {
7984
- x += max2(html.clientWidth, body.clientWidth) - width;
7899
+ x += max(html.clientWidth, body.clientWidth) - width;
7985
7900
  }
7986
7901
  return {
7987
7902
  width,
@@ -8093,10 +8008,10 @@ function getClippingRect(_ref) {
8093
8008
  const firstClippingAncestor = clippingAncestors[0];
8094
8009
  const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
8095
8010
  const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
8096
- accRect.top = max2(rect.top, accRect.top);
8097
- accRect.right = min2(rect.right, accRect.right);
8098
- accRect.bottom = min2(rect.bottom, accRect.bottom);
8099
- accRect.left = max2(rect.left, accRect.left);
8011
+ accRect.top = max(rect.top, accRect.top);
8012
+ accRect.right = min(rect.right, accRect.right);
8013
+ accRect.bottom = min(rect.bottom, accRect.bottom);
8014
+ accRect.left = max(rect.left, accRect.left);
8100
8015
  return accRect;
8101
8016
  }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
8102
8017
  return {
@@ -8223,7 +8138,7 @@ function observeMove(element, onMove) {
8223
8138
  const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
8224
8139
  const options = {
8225
8140
  rootMargin,
8226
- threshold: max2(0, min2(1, threshold)) || 1
8141
+ threshold: max(0, min(1, threshold)) || 1
8227
8142
  };
8228
8143
  let isFirstUpdate = true;
8229
8144
  function handleObserve(entries2) {
@@ -8324,14 +8239,13 @@ function autoUpdate(reference, floating, update, options) {
8324
8239
  }
8325
8240
  };
8326
8241
  }
8327
- var noOffsets, topLayerSelectors, getElementRects, platform, offset2, shift2, flip2, size2, hide2, arrow2, computePosition2;
8242
+ var noOffsets, getElementRects, platform, offset2, shift2, flip2, size2, hide2, arrow2, computePosition2;
8328
8243
  var init_floating_ui_dom = __esm({
8329
- "../../node_modules/.pnpm/@floating-ui+dom@1.6.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"() {
8244
+ "../../node_modules/.pnpm/@floating-ui+dom@1.6.8/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"() {
8330
8245
  init_floating_ui_core();
8331
- init_floating_ui_utils2();
8246
+ init_floating_ui_utils();
8332
8247
  init_floating_ui_utils_dom();
8333
8248
  noOffsets = /* @__PURE__ */ createCoords(0);
8334
- topLayerSelectors = [":popover-open", ":modal"];
8335
8249
  getElementRects = async function(data) {
8336
8250
  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
8337
8251
  const getDimensionsFn = this.getDimensions;
@@ -8382,7 +8296,7 @@ var init_floating_ui_dom = __esm({
8382
8296
  }
8383
8297
  });
8384
8298
 
8385
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/6SUY5UYD.js
8299
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/4X2EKUJ3.js
8386
8300
  function usePopperContext() {
8387
8301
  const context = useContext(PopperContext);
8388
8302
  if (context === void 0) {
@@ -8402,10 +8316,10 @@ function PopperArrow(props) {
8402
8316
  const stroke = () => contentStyle()?.getPropertyValue(`border-${dir()}-color`) || "none";
8403
8317
  const borderWidth = () => contentStyle()?.getPropertyValue(`border-${dir()}-width`) || "0px";
8404
8318
  const strokeWidth = () => {
8405
- return parseInt(borderWidth()) * 2 * (DEFAULT_SIZE / local.size);
8319
+ return Number.parseInt(borderWidth()) * 2 * (DEFAULT_SIZE / local.size);
8406
8320
  };
8407
8321
  const rotate = () => {
8408
- return `rotate(${ROTATION_DEG[dir()]} ${HALF_DEFAULT_SIZE} ${HALF_DEFAULT_SIZE})`;
8322
+ return `rotate(${ROTATION_DEG[dir()]} ${HALF_DEFAULT_SIZE} ${HALF_DEFAULT_SIZE}) translate(0 2)`;
8409
8323
  };
8410
8324
  return createComponent(Polymorphic, mergeProps({
8411
8325
  as: "div",
@@ -8415,7 +8329,7 @@ function PopperArrow(props) {
8415
8329
  },
8416
8330
  "aria-hidden": "true",
8417
8331
  get style() {
8418
- return {
8332
+ return combineStyle({
8419
8333
  // server side rendering
8420
8334
  position: "absolute",
8421
8335
  "font-size": `${local.size}px`,
@@ -8424,9 +8338,8 @@ function PopperArrow(props) {
8424
8338
  "pointer-events": "none",
8425
8339
  fill: fill(),
8426
8340
  stroke: stroke(),
8427
- "stroke-width": strokeWidth(),
8428
- ...local.style
8429
- };
8341
+ "stroke-width": strokeWidth()
8342
+ }, local.style);
8430
8343
  }
8431
8344
  }, others, {
8432
8345
  get children() {
@@ -8455,13 +8368,12 @@ function PopperPositioner(props) {
8455
8368
  },
8456
8369
  "data-popper-positioner": "",
8457
8370
  get style() {
8458
- return {
8371
+ return combineStyle({
8459
8372
  position: "absolute",
8460
8373
  top: 0,
8461
8374
  left: 0,
8462
- "min-width": "max-content",
8463
- ...local.style
8464
- };
8375
+ "min-width": "max-content"
8376
+ }, local.style);
8465
8377
  }
8466
8378
  }, others));
8467
8379
  }
@@ -8688,16 +8600,17 @@ function PopperRoot(props) {
8688
8600
  });
8689
8601
  }
8690
8602
  var PopperContext, _tmpl$, DEFAULT_SIZE, HALF_DEFAULT_SIZE, ROTATION_DEG, REVERSE_BASE_PLACEMENT, Popper;
8691
- var init_SUY5UYD = __esm({
8692
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/6SUY5UYD.js"() {
8603
+ var init_X2EKUJ3 = __esm({
8604
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/4X2EKUJ3.js"() {
8693
8605
  init_XHJPQEZP();
8694
- init_SNFWSEOJ();
8606
+ init_Y7B2NEO();
8695
8607
  init_web();
8696
- init_dist11();
8608
+ init_dist12();
8697
8609
  init_solid();
8610
+ init_dist11();
8698
8611
  init_floating_ui_dom();
8699
8612
  PopperContext = createContext();
8700
- _tmpl$ = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
8613
+ _tmpl$ = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
8701
8614
  DEFAULT_SIZE = 30;
8702
8615
  HALF_DEFAULT_SIZE = DEFAULT_SIZE / 2;
8703
8616
  ROTATION_DEG = {
@@ -8721,7 +8634,7 @@ var init_SUY5UYD = __esm({
8721
8634
  }
8722
8635
  });
8723
8636
 
8724
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QZ25QYEA.js
8637
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QEMPLYZX.js
8725
8638
  function createEscapeKeyDown(props) {
8726
8639
  const handleKeyDown = (event) => {
8727
8640
  if (event.key === EventKey.Escape) {
@@ -8742,15 +8655,15 @@ function createEscapeKeyDown(props) {
8742
8655
  });
8743
8656
  });
8744
8657
  }
8745
- var init_QZ25QYEA = __esm({
8746
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QZ25QYEA.js"() {
8747
- init_dist11();
8658
+ var init_QEMPLYZX = __esm({
8659
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QEMPLYZX.js"() {
8660
+ init_dist12();
8748
8661
  init_solid();
8749
8662
  init_web();
8750
8663
  }
8751
8664
  });
8752
8665
 
8753
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js
8666
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js
8754
8667
  function createInteractOutside(props, ref) {
8755
8668
  let pointerDownTimeoutId;
8756
8669
  let clickHandler = noop3;
@@ -8851,9 +8764,9 @@ function createInteractOutside(props, ref) {
8851
8764
  }
8852
8765
  var POINTER_DOWN_OUTSIDE_EVENT, FOCUS_OUTSIDE_EVENT;
8853
8766
  var init_QGCMYLTA = __esm({
8854
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js"() {
8767
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js"() {
8855
8768
  init_ZKYDDHM6();
8856
- init_dist11();
8769
+ init_dist12();
8857
8770
  init_solid();
8858
8771
  init_web();
8859
8772
  POINTER_DOWN_OUTSIDE_EVENT = "interactOutside.pointerDownOutside";
@@ -8861,7 +8774,7 @@ var init_QGCMYLTA = __esm({
8861
8774
  }
8862
8775
  });
8863
8776
 
8864
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7MUMWGWR.js
8777
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/G7G3PFRJ.js
8865
8778
  function useOptionalDismissableLayerContext() {
8866
8779
  return useContext(DismissableLayerContext);
8867
8780
  }
@@ -8979,20 +8892,20 @@ function DismissableLayer(props) {
8979
8892
  });
8980
8893
  }
8981
8894
  var DismissableLayerContext;
8982
- var init_MUMWGWR = __esm({
8983
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7MUMWGWR.js"() {
8984
- init_QZ25QYEA();
8895
+ var init_G7G3PFRJ = __esm({
8896
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/G7G3PFRJ.js"() {
8897
+ init_QEMPLYZX();
8985
8898
  init_QGCMYLTA();
8986
8899
  init_ZKYDDHM6();
8987
- init_SNFWSEOJ();
8900
+ init_Y7B2NEO();
8988
8901
  init_web();
8989
- init_dist11();
8902
+ init_dist12();
8990
8903
  init_solid();
8991
8904
  DismissableLayerContext = createContext();
8992
8905
  }
8993
8906
  });
8994
8907
 
8995
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js
8908
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js
8996
8909
  function createDisclosureState(props = {}) {
8997
8910
  const [isOpen, setIsOpen] = createControllableBooleanSignal({
8998
8911
  value: () => access(props.open),
@@ -9017,13 +8930,13 @@ function createDisclosureState(props = {}) {
9017
8930
  };
9018
8931
  }
9019
8932
  var init_LCANGHD = __esm({
9020
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js"() {
8933
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js"() {
9021
8934
  init_BLN63FDC();
9022
- init_dist11();
8935
+ init_dist12();
9023
8936
  }
9024
8937
  });
9025
8938
 
9026
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YXI762UW.js
8939
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2BOFK7I.js
9027
8940
  function useRadioGroupContext() {
9028
8941
  const context = useContext(RadioGroupContext);
9029
8942
  if (context === void 0) {
@@ -9136,16 +9049,22 @@ function RadioGroupItemIndicator(props) {
9136
9049
  id: context.generateId("indicator")
9137
9050
  }, props);
9138
9051
  const [local, others] = splitProps(mergedProps, ["ref", "forceMount"]);
9139
- const presence = createPresence(() => local.forceMount || context.isSelected());
9052
+ const [ref, setRef] = createSignal();
9053
+ const {
9054
+ present
9055
+ } = src_default({
9056
+ show: () => local.forceMount || context.isSelected(),
9057
+ element: () => ref() ?? null
9058
+ });
9140
9059
  return createComponent(Show, {
9141
9060
  get when() {
9142
- return presence.isPresent();
9061
+ return present();
9143
9062
  },
9144
9063
  get children() {
9145
9064
  return createComponent(Polymorphic, mergeProps({
9146
9065
  as: "div",
9147
9066
  ref(r$) {
9148
- const _ref$ = mergeRefs(presence.setRef, local.ref);
9067
+ const _ref$ = mergeRefs(setRef, local.ref);
9149
9068
  typeof _ref$ === "function" && _ref$(r$);
9150
9069
  }
9151
9070
  }, () => context.dataset(), others));
@@ -9233,10 +9152,9 @@ function RadioGroupItemInput(props) {
9233
9152
  return formControlContext.isReadOnly();
9234
9153
  },
9235
9154
  get style() {
9236
- return {
9237
- ...visuallyHiddenStyles,
9238
- ...local.style
9239
- };
9155
+ return combineStyle({
9156
+ ...visuallyHiddenStyles
9157
+ }, local.style);
9240
9158
  },
9241
9159
  get ["aria-labelledby"]() {
9242
9160
  return ariaLabelledBy();
@@ -9352,18 +9270,19 @@ function RadioGroupRoot(props) {
9352
9270
  });
9353
9271
  }
9354
9272
  var radio_group_exports, RadioGroupContext, RadioGroupItemContext, RadioGroup;
9355
- var init_YXI762UW = __esm({
9356
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YXI762UW.js"() {
9357
- init_IXGTCCA7();
9273
+ var init_Q2BOFK7I = __esm({
9274
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2BOFK7I.js"() {
9275
+ init_Q2DJLZQE();
9358
9276
  init_ANN3A2QM();
9359
9277
  init_E4R2EMM4();
9360
- init_MH7W7S();
9361
9278
  init_BLN63FDC();
9362
- init_SNFWSEOJ();
9279
+ init_Y7B2NEO();
9363
9280
  init_ZKAE4VZ();
9364
9281
  init_web();
9365
- init_dist11();
9282
+ init_dist12();
9366
9283
  init_solid();
9284
+ init_dist13();
9285
+ init_dist11();
9367
9286
  radio_group_exports = {};
9368
9287
  __export2(radio_group_exports, {
9369
9288
  Description: () => FormControlDescription,
@@ -9394,7 +9313,7 @@ var init_YXI762UW = __esm({
9394
9313
  }
9395
9314
  });
9396
9315
 
9397
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FHLXHFZN.js
9316
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/GLKC2QFF.js
9398
9317
  function createSelectableList(props, ref, scrollRef) {
9399
9318
  const collator = createCollator({ usage: "search", sensitivity: "base" });
9400
9319
  const delegate = createMemo(() => {
@@ -9417,18 +9336,17 @@ function createSelectableList(props, ref, scrollRef) {
9417
9336
  shouldUseVirtualFocus: () => access(props.shouldUseVirtualFocus),
9418
9337
  allowsTabNavigation: () => access(props.allowsTabNavigation),
9419
9338
  isVirtualized: () => access(props.isVirtualized),
9420
- scrollToKey: (key) => access(props.scrollToKey)?.(key)
9339
+ scrollToKey: (key) => access(props.scrollToKey)?.(key),
9340
+ orientation: () => access(props.orientation)
9421
9341
  },
9422
- ref,
9423
- scrollRef
9424
- );
9342
+ ref);
9425
9343
  }
9426
9344
  var ListKeyboardDelegate;
9427
- var init_FHLXHFZN = __esm({
9428
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FHLXHFZN.js"() {
9429
- init_F2YUHYY4();
9345
+ var init_GLKC2QFF = __esm({
9346
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/GLKC2QFF.js"() {
9347
+ init_H6DSIDEC();
9430
9348
  init_XHJPQEZP();
9431
- init_dist11();
9349
+ init_dist12();
9432
9350
  init_solid();
9433
9351
  ListKeyboardDelegate = class {
9434
9352
  collection;
@@ -9539,7 +9457,7 @@ var init_FHLXHFZN = __esm({
9539
9457
  }
9540
9458
  });
9541
9459
 
9542
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js
9460
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js
9543
9461
  function createFocusScope(props, ref) {
9544
9462
  const [isPaused, setIsPaused] = createSignal(false);
9545
9463
  const focusScope = {
@@ -9717,9 +9635,9 @@ function createFocusScope(props, ref) {
9717
9635
  }
9718
9636
  var AUTOFOCUS_ON_MOUNT_EVENT, AUTOFOCUS_ON_UNMOUNT_EVENT, EVENT_OPTIONS, focusScopeStack;
9719
9637
  var init_ISKHZMHS = __esm({
9720
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js"() {
9638
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js"() {
9721
9639
  init_ZKYDDHM6();
9722
- init_dist11();
9640
+ init_dist12();
9723
9641
  init_solid();
9724
9642
  init_web();
9725
9643
  AUTOFOCUS_ON_MOUNT_EVENT = "focusScope.autoFocusOnMount";
@@ -9749,15 +9667,15 @@ var init_ISKHZMHS = __esm({
9749
9667
  }
9750
9668
  });
9751
9669
 
9752
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js
9670
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js
9753
9671
  var DATA_LIVE_ANNOUNCER_ATTR;
9754
9672
  var init_YA7DCYMB = __esm({
9755
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js"() {
9673
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js"() {
9756
9674
  DATA_LIVE_ANNOUNCER_ATTR = "data-live-announcer";
9757
9675
  }
9758
9676
  });
9759
9677
 
9760
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js
9678
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js
9761
9679
  function createHideOutside(props) {
9762
9680
  createEffect(() => {
9763
9681
  if (access(props.isDisabled)) {
@@ -9876,36 +9794,21 @@ function ariaHideOutside(targets, root = document.body) {
9876
9794
  }
9877
9795
  var refCountMap, observerStack;
9878
9796
  var init_TZGE2AQH = __esm({
9879
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js"() {
9797
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js"() {
9880
9798
  init_YA7DCYMB();
9881
9799
  init_ZKYDDHM6();
9882
- init_dist11();
9800
+ init_dist12();
9883
9801
  init_solid();
9884
9802
  refCountMap = /* @__PURE__ */ new WeakMap();
9885
9803
  observerStack = [];
9886
9804
  }
9887
9805
  });
9888
9806
 
9889
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/OZCI4NDN.js
9890
- var access2;
9891
- var init_OZCI4NDN = __esm({
9892
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/OZCI4NDN.js"() {
9893
- access2 = (v) => typeof v === "function" ? v() : v;
9894
- }
9895
- });
9896
-
9897
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/reactivity/index.js
9898
- var init_reactivity = __esm({
9899
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/reactivity/index.js"() {
9900
- init_OZCI4NDN();
9901
- }
9902
- });
9903
-
9904
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/6PYUKSWQ.js
9807
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/HD4B7J7A.js
9905
9808
  var activeStyles, createStyle, style_default;
9906
- var init_PYUKSWQ = __esm({
9907
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/6PYUKSWQ.js"() {
9908
- init_OZCI4NDN();
9809
+ var init_HD4B7J7A = __esm({
9810
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/HD4B7J7A.js"() {
9811
+ init_ZV6G25TT();
9909
9812
  init_solid();
9910
9813
  activeStyles = /* @__PURE__ */ new Map();
9911
9814
  createStyle = (props) => {
@@ -9956,17 +9859,17 @@ var init_PYUKSWQ = __esm({
9956
9859
  }
9957
9860
  });
9958
9861
 
9959
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/create/style.js
9862
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/create/style.js
9960
9863
  var init_style = __esm({
9961
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/create/style.js"() {
9962
- init_PYUKSWQ();
9864
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/create/style.js"() {
9865
+ init_HD4B7J7A();
9963
9866
  }
9964
9867
  });
9965
9868
 
9966
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/scroll/index.js
9869
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/scroll/index.js
9967
9870
  var getScrollDimensions, isScrollContainer, getScrollAtLocation;
9968
9871
  var init_scroll = __esm({
9969
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/scroll/index.js"() {
9872
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/scroll/index.js"() {
9970
9873
  getScrollDimensions = (element, axis) => {
9971
9874
  switch (axis) {
9972
9875
  case "x":
@@ -10008,10 +9911,10 @@ var init_scroll = __esm({
10008
9911
  }
10009
9912
  });
10010
9913
 
10011
- // ../../node_modules/.pnpm/solid-prevent-scroll@0.1.7_solid-js@1.8.17/node_modules/solid-prevent-scroll/dist/index.js
10012
- var preventScrollStack, setPreventScrollStack, isActive, createPreventScroll, getDeltaXY, getTouchXY, wouldScroll, contains2, preventScroll_default, src_default;
10013
- var init_dist12 = __esm({
10014
- "../../node_modules/.pnpm/solid-prevent-scroll@0.1.7_solid-js@1.8.17/node_modules/solid-prevent-scroll/dist/index.js"() {
9914
+ // ../../node_modules/.pnpm/solid-prevent-scroll@0.1.9_solid-js@1.8.19/node_modules/solid-prevent-scroll/dist/index.js
9915
+ var preventScrollStack, setPreventScrollStack, isActive, createPreventScroll, getDeltaXY, getTouchXY, wouldScroll, contains2, preventScroll_default, src_default2;
9916
+ var init_dist14 = __esm({
9917
+ "../../node_modules/.pnpm/solid-prevent-scroll@0.1.9_solid-js@1.8.19/node_modules/solid-prevent-scroll/dist/index.js"() {
10015
9918
  init_reactivity();
10016
9919
  init_solid();
10017
9920
  init_style();
@@ -10026,6 +9929,7 @@ var init_dist12 = __esm({
10026
9929
  hideScrollbar: true,
10027
9930
  preventScrollbarShift: true,
10028
9931
  preventScrollbarShiftMode: "padding",
9932
+ restoreScrollPosition: true,
10029
9933
  allowPinchZoom: false
10030
9934
  },
10031
9935
  props
@@ -10049,15 +9953,8 @@ var init_dist12 = __esm({
10049
9953
  return;
10050
9954
  const { body } = document;
10051
9955
  const scrollbarWidth = window.innerWidth - body.offsetWidth;
10052
- style_default({
10053
- key: "prevent-scroll-overflow",
10054
- element: body,
10055
- style: {
10056
- overflow: "hidden"
10057
- }
10058
- });
10059
9956
  if (access2(defaultedProps.preventScrollbarShift)) {
10060
- const style2 = {};
9957
+ const style2 = { overflow: "hidden" };
10061
9958
  const properties = [];
10062
9959
  if (scrollbarWidth > 0) {
10063
9960
  if (access2(defaultedProps.preventScrollbarShiftMode) === "padding") {
@@ -10073,16 +9970,24 @@ var init_dist12 = __esm({
10073
9970
  const offsetTop = window.scrollY;
10074
9971
  const offsetLeft = window.scrollX;
10075
9972
  style_default({
10076
- key: "prevent-scroll-scrollbar",
9973
+ key: "prevent-scroll",
10077
9974
  element: body,
10078
9975
  style: style2,
10079
9976
  properties,
10080
9977
  cleanup: () => {
10081
- if (scrollbarWidth > 0) {
9978
+ if (access2(defaultedProps.restoreScrollPosition) && scrollbarWidth > 0) {
10082
9979
  window.scrollTo(offsetLeft, offsetTop);
10083
9980
  }
10084
9981
  }
10085
9982
  });
9983
+ } else {
9984
+ style_default({
9985
+ key: "prevent-scroll",
9986
+ element: body,
9987
+ style: {
9988
+ overflow: "hidden"
9989
+ }
9990
+ });
10086
9991
  }
10087
9992
  });
10088
9993
  createEffect(() => {
@@ -10193,11 +10098,11 @@ var init_dist12 = __esm({
10193
10098
  return false;
10194
10099
  };
10195
10100
  preventScroll_default = createPreventScroll;
10196
- src_default = preventScroll_default;
10101
+ src_default2 = preventScroll_default;
10197
10102
  }
10198
10103
  });
10199
10104
 
10200
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FEWVDVRO.js
10105
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/3F4B62RP.js
10201
10106
  function useOptionalMenuContext() {
10202
10107
  return useContext(MenuContext);
10203
10108
  }
@@ -10393,22 +10298,177 @@ function MenuCheckboxItem(props) {
10393
10298
  local.onSelect?.();
10394
10299
  state.toggle();
10395
10300
  };
10396
- return createComponent(MenuItemBase, mergeProps({
10397
- role: "menuitemcheckbox",
10398
- get checked() {
10399
- return state.isSelected();
10301
+ return createComponent(MenuItemBase, mergeProps({
10302
+ role: "menuitemcheckbox",
10303
+ get checked() {
10304
+ return state.isSelected();
10305
+ },
10306
+ onSelect
10307
+ }, others));
10308
+ }
10309
+ function useOptionalMenubarContext() {
10310
+ return useContext(MenubarContext);
10311
+ }
10312
+ function MenuTrigger(props) {
10313
+ const rootContext = useMenuRootContext();
10314
+ const context = useMenuContext();
10315
+ const optionalMenubarContext = useOptionalMenubarContext();
10316
+ const {
10317
+ direction
10318
+ } = useLocale();
10319
+ const mergedProps = mergeDefaultProps({
10320
+ id: rootContext.generateId("trigger")
10321
+ }, props);
10322
+ const [local, others] = splitProps(mergedProps, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
10323
+ let key = () => rootContext.value();
10324
+ if (optionalMenubarContext !== void 0) {
10325
+ key = () => rootContext.value() ?? local.id;
10326
+ if (optionalMenubarContext.lastValue() === void 0)
10327
+ optionalMenubarContext.setLastValue(key);
10328
+ }
10329
+ const tagName = createTagName(() => context.triggerRef(), () => "button");
10330
+ const isNativeLink = createMemo(() => {
10331
+ return tagName() === "a" && context.triggerRef()?.getAttribute("href") != null;
10332
+ });
10333
+ createEffect(on(() => optionalMenubarContext?.value(), (value) => {
10334
+ if (!isNativeLink())
10335
+ return;
10336
+ if (value === key())
10337
+ context.triggerRef()?.focus();
10338
+ }));
10339
+ const handleClick = () => {
10340
+ if (optionalMenubarContext !== void 0) {
10341
+ if (!context.isOpen()) {
10342
+ if (!optionalMenubarContext.autoFocusMenu()) {
10343
+ optionalMenubarContext.setAutoFocusMenu(true);
10344
+ }
10345
+ context.open(false);
10346
+ } else {
10347
+ if (optionalMenubarContext.value() === key())
10348
+ optionalMenubarContext.closeMenu();
10349
+ }
10350
+ } else
10351
+ context.toggle(true);
10352
+ };
10353
+ const onPointerDown = (e2) => {
10354
+ callHandler(e2, local.onPointerDown);
10355
+ e2.currentTarget.dataset.pointerType = e2.pointerType;
10356
+ if (!local.disabled && e2.pointerType !== "touch" && e2.button === 0) {
10357
+ handleClick();
10358
+ }
10359
+ };
10360
+ const onClick = (e2) => {
10361
+ callHandler(e2, local.onClick);
10362
+ if (!local.disabled) {
10363
+ if (e2.currentTarget.dataset.pointerType === "touch")
10364
+ handleClick();
10365
+ }
10366
+ };
10367
+ const onKeyDown = (e2) => {
10368
+ callHandler(e2, local.onKeyDown);
10369
+ if (local.disabled) {
10370
+ return;
10371
+ }
10372
+ if (isNativeLink()) {
10373
+ switch (e2.key) {
10374
+ case "Enter":
10375
+ case " ":
10376
+ return;
10377
+ }
10378
+ }
10379
+ switch (e2.key) {
10380
+ case "Enter":
10381
+ case " ":
10382
+ case MENU_KEYS.first(rootContext.orientation()):
10383
+ e2.stopPropagation();
10384
+ e2.preventDefault();
10385
+ scrollIntoViewport(e2.currentTarget);
10386
+ context.open("first");
10387
+ optionalMenubarContext?.setAutoFocusMenu(true);
10388
+ optionalMenubarContext?.setValue(key);
10389
+ break;
10390
+ case MENU_KEYS.last(rootContext.orientation()):
10391
+ e2.stopPropagation();
10392
+ e2.preventDefault();
10393
+ context.open("last");
10394
+ break;
10395
+ case MENUBAR_KEYS.next(direction(), rootContext.orientation()):
10396
+ if (optionalMenubarContext === void 0)
10397
+ break;
10398
+ e2.stopPropagation();
10399
+ e2.preventDefault();
10400
+ optionalMenubarContext.nextMenu();
10401
+ break;
10402
+ case MENUBAR_KEYS.previous(direction(), rootContext.orientation()):
10403
+ if (optionalMenubarContext === void 0)
10404
+ break;
10405
+ e2.stopPropagation();
10406
+ e2.preventDefault();
10407
+ optionalMenubarContext.previousMenu();
10408
+ break;
10409
+ }
10410
+ };
10411
+ const onMouseOver = (e2) => {
10412
+ callHandler(e2, local.onMouseOver);
10413
+ if (context.triggerRef()?.dataset.pointerType === "touch")
10414
+ return;
10415
+ if (!local.disabled && optionalMenubarContext !== void 0 && optionalMenubarContext.value() !== void 0) {
10416
+ optionalMenubarContext.setValue(key);
10417
+ }
10418
+ };
10419
+ const onFocus = (e2) => {
10420
+ callHandler(e2, local.onFocus);
10421
+ if (optionalMenubarContext !== void 0 && e2.currentTarget.dataset.pointerType !== "touch")
10422
+ optionalMenubarContext.setValue(key);
10423
+ };
10424
+ createEffect(() => onCleanup(context.registerTriggerId(local.id)));
10425
+ return createComponent(ButtonRoot, mergeProps({
10426
+ ref(r$) {
10427
+ const _ref$ = mergeRefs(context.setTriggerRef, local.ref);
10428
+ typeof _ref$ === "function" && _ref$(r$);
10400
10429
  },
10401
- onSelect
10402
- }, others));
10430
+ get ["data-kb-menu-value-trigger"]() {
10431
+ return rootContext.value();
10432
+ },
10433
+ get id() {
10434
+ return local.id;
10435
+ },
10436
+ get disabled() {
10437
+ return local.disabled;
10438
+ },
10439
+ "aria-haspopup": "true",
10440
+ get ["aria-expanded"]() {
10441
+ return context.isOpen();
10442
+ },
10443
+ get ["aria-controls"]() {
10444
+ return createMemo(() => !!context.isOpen())() ? context.contentId() : void 0;
10445
+ },
10446
+ get ["data-highlighted"]() {
10447
+ return key() !== void 0 && optionalMenubarContext?.value() === key() ? true : void 0;
10448
+ },
10449
+ get tabIndex() {
10450
+ return optionalMenubarContext !== void 0 ? optionalMenubarContext.value() === key() || optionalMenubarContext.lastValue() === key() ? 0 : -1 : void 0;
10451
+ },
10452
+ onPointerDown,
10453
+ onMouseOver,
10454
+ onClick,
10455
+ onKeyDown,
10456
+ onFocus,
10457
+ role: optionalMenubarContext !== void 0 ? "menuitem" : void 0
10458
+ }, () => context.dataset(), others));
10403
10459
  }
10404
- function useOptionalMenubarContext() {
10405
- return useContext(MenubarContext);
10460
+ function useOptionalNavigationMenuContext() {
10461
+ return useContext(NavigationMenuContext);
10406
10462
  }
10407
10463
  function MenuContentBase(props) {
10408
10464
  let ref;
10409
10465
  const rootContext = useMenuRootContext();
10410
10466
  const context = useMenuContext();
10411
10467
  const optionalMenubarContext = useOptionalMenubarContext();
10468
+ const optionalNavigationMenuContext = useOptionalNavigationMenuContext();
10469
+ const {
10470
+ direction
10471
+ } = useLocale();
10412
10472
  const mergedProps = mergeDefaultProps({
10413
10473
  id: rootContext.generateId(`content-${createUniqueId()}`)
10414
10474
  }, props);
@@ -10424,7 +10484,8 @@ function MenuContentBase(props) {
10424
10484
  deferAutoFocus: true,
10425
10485
  // ensure all menu items are mounted and collection is not empty before trying to autofocus.
10426
10486
  shouldFocusWrap: true,
10427
- disallowTypeAhead: () => !context.listState().selectionManager().isFocused()
10487
+ disallowTypeAhead: () => !context.listState().selectionManager().isFocused(),
10488
+ orientation: () => rootContext.orientation() === "horizontal" ? "vertical" : "horizontal"
10428
10489
  }, () => ref);
10429
10490
  createFocusScope({
10430
10491
  trapFocus: () => isRootModalContent() && context.isOpen(),
@@ -10444,14 +10505,14 @@ function MenuContentBase(props) {
10444
10505
  if (optionalMenubarContext !== void 0) {
10445
10506
  if (e2.currentTarget.getAttribute("aria-haspopup") !== "true")
10446
10507
  switch (e2.key) {
10447
- case "ArrowRight":
10508
+ case MENUBAR_KEYS.next(direction(), rootContext.orientation()):
10448
10509
  e2.stopPropagation();
10449
10510
  e2.preventDefault();
10450
10511
  context.close(true);
10451
10512
  optionalMenubarContext.setAutoFocusMenu(true);
10452
10513
  optionalMenubarContext.nextMenu();
10453
10514
  break;
10454
- case "ArrowLeft":
10515
+ case MENUBAR_KEYS.previous(direction(), rootContext.orientation()):
10455
10516
  if (e2.currentTarget.hasAttribute("data-closed"))
10456
10517
  break;
10457
10518
  e2.stopPropagation();
@@ -10495,66 +10556,70 @@ function MenuContentBase(props) {
10495
10556
  }
10496
10557
  };
10497
10558
  createEffect(() => onCleanup(context.registerContentId(local.id)));
10559
+ const commonAttributes = {
10560
+ ref: mergeRefs((el) => {
10561
+ context.setContentRef(el);
10562
+ ref = el;
10563
+ }, local.ref),
10564
+ role: "menu",
10565
+ get id() {
10566
+ return local.id;
10567
+ },
10568
+ get tabIndex() {
10569
+ return selectableList.tabIndex();
10570
+ },
10571
+ get "aria-labelledby"() {
10572
+ return context.triggerId();
10573
+ },
10574
+ onKeyDown: composeEventHandlers([local.onKeyDown, selectableList.onKeyDown, onKeyDown]),
10575
+ onMouseDown: composeEventHandlers([local.onMouseDown, selectableList.onMouseDown]),
10576
+ onFocusIn: composeEventHandlers([local.onFocusIn, selectableList.onFocusIn]),
10577
+ onFocusOut: composeEventHandlers([local.onFocusOut, selectableList.onFocusOut]),
10578
+ onPointerEnter,
10579
+ onPointerMove,
10580
+ get "data-orientation"() {
10581
+ return rootContext.orientation();
10582
+ }
10583
+ };
10498
10584
  return createComponent(Show, {
10499
10585
  get when() {
10500
- return context.contentPresence.isPresent();
10586
+ return context.contentPresent();
10501
10587
  },
10502
10588
  get children() {
10503
- return createComponent(Popper.Positioner, {
10589
+ return createComponent(Show, {
10590
+ get when() {
10591
+ return optionalNavigationMenuContext === void 0 || context.parentMenuContext() != null;
10592
+ },
10593
+ get fallback() {
10594
+ return createComponent(Polymorphic, mergeProps({
10595
+ as: "div"
10596
+ }, () => context.dataset(), commonAttributes, others));
10597
+ },
10504
10598
  get children() {
10505
- return createComponent(DismissableLayer, mergeProps({
10506
- ref(r$) {
10507
- const _ref$ = mergeRefs((el) => {
10508
- context.setContentRef(el);
10509
- context.contentPresence.setRef(el);
10510
- ref = el;
10511
- }, local.ref);
10512
- typeof _ref$ === "function" && _ref$(r$);
10513
- },
10514
- role: "menu",
10515
- get id() {
10516
- return local.id;
10517
- },
10518
- get tabIndex() {
10519
- return selectableList.tabIndex();
10520
- },
10521
- get disableOutsidePointerEvents() {
10522
- return createMemo(() => !!isRootModalContent())() && context.isOpen();
10523
- },
10524
- get excludedElements() {
10525
- return [context.triggerRef];
10526
- },
10527
- bypassTopMostLayerCheck: true,
10528
- get style() {
10529
- return {
10530
- "--kb-menu-content-transform-origin": "var(--kb-popper-content-transform-origin)",
10531
- position: "relative",
10532
- ...local.style
10533
- };
10534
- },
10535
- get ["aria-labelledby"]() {
10536
- return context.triggerId();
10537
- },
10538
- onEscapeKeyDown,
10539
- onFocusOutside,
10540
- get onDismiss() {
10541
- return context.close;
10542
- },
10543
- get onKeyDown() {
10544
- return composeEventHandlers([local.onKeyDown, selectableList.onKeyDown, onKeyDown]);
10545
- },
10546
- get onMouseDown() {
10547
- return composeEventHandlers([local.onMouseDown, selectableList.onMouseDown]);
10548
- },
10549
- get onFocusIn() {
10550
- return composeEventHandlers([local.onFocusIn, selectableList.onFocusIn]);
10551
- },
10552
- get onFocusOut() {
10553
- return composeEventHandlers([local.onFocusOut, selectableList.onFocusOut]);
10554
- },
10555
- onPointerEnter,
10556
- onPointerMove
10557
- }, () => context.dataset(), others));
10599
+ return createComponent(Popper.Positioner, {
10600
+ get children() {
10601
+ return createComponent(DismissableLayer, mergeProps({
10602
+ get disableOutsidePointerEvents() {
10603
+ return createMemo(() => !!isRootModalContent())() && context.isOpen();
10604
+ },
10605
+ get excludedElements() {
10606
+ return [context.triggerRef];
10607
+ },
10608
+ bypassTopMostLayerCheck: true,
10609
+ get style() {
10610
+ return combineStyle({
10611
+ "--kb-menu-content-transform-origin": "var(--kb-popper-content-transform-origin)",
10612
+ position: "relative"
10613
+ }, local.style);
10614
+ },
10615
+ onEscapeKeyDown,
10616
+ onFocusOutside,
10617
+ get onDismiss() {
10618
+ return context.close;
10619
+ }
10620
+ }, () => context.dataset(), commonAttributes, others));
10621
+ }
10622
+ });
10558
10623
  }
10559
10624
  });
10560
10625
  }
@@ -10565,9 +10630,9 @@ function MenuContent(props) {
10565
10630
  const rootContext = useMenuRootContext();
10566
10631
  const context = useMenuContext();
10567
10632
  const [local, others] = splitProps(props, ["ref"]);
10568
- src_default({
10633
+ src_default2({
10569
10634
  element: () => ref ?? null,
10570
- enabled: () => context.isOpen() && rootContext.preventScroll()
10635
+ enabled: () => context.contentPresent() && rootContext.preventScroll()
10571
10636
  });
10572
10637
  return createComponent(MenuContentBase, mergeProps({
10573
10638
  ref(r$) {
@@ -10692,7 +10757,7 @@ function MenuPortal(props) {
10692
10757
  const context = useMenuContext();
10693
10758
  return createComponent(Show, {
10694
10759
  get when() {
10695
- return context.contentPresence.isPresent();
10760
+ return context.contentPresent();
10696
10761
  },
10697
10762
  get children() {
10698
10763
  return createComponent(Portal, props);
@@ -10796,8 +10861,10 @@ function Menu(props) {
10796
10861
  const rootContext = useMenuRootContext();
10797
10862
  const parentDomCollectionContext = useOptionalDomCollectionContext();
10798
10863
  const parentMenuContext = useOptionalMenuContext();
10864
+ const optionalMenubarContext = useOptionalMenubarContext();
10865
+ const optionalNavigationMenuContext = useOptionalNavigationMenuContext();
10799
10866
  const mergedProps = mergeDefaultProps({
10800
- placement: "bottom-start"
10867
+ placement: rootContext.orientation() === "horizontal" ? "bottom-start" : "right-start"
10801
10868
  }, props);
10802
10869
  const [local, others] = splitProps(mergedProps, ["open", "defaultOpen", "onOpenChange"]);
10803
10870
  let pointerGraceTimeoutId = 0;
@@ -10822,7 +10889,12 @@ function Menu(props) {
10822
10889
  defaultOpen: () => local.defaultOpen,
10823
10890
  onOpenChange: (isOpen) => local.onOpenChange?.(isOpen)
10824
10891
  });
10825
- const contentPresence = createPresence(() => rootContext.forceMount() || disclosureState.isOpen());
10892
+ const {
10893
+ present: contentPresent
10894
+ } = src_default({
10895
+ show: () => rootContext.forceMount() || disclosureState.isOpen(),
10896
+ element: () => contentRef() ?? null
10897
+ });
10826
10898
  const listState = createListState({
10827
10899
  selectionMode: "none",
10828
10900
  dataSource: items
@@ -10841,7 +10913,7 @@ function Menu(props) {
10841
10913
  setFocusStrategy(focusStrategy2);
10842
10914
  disclosureState.toggle();
10843
10915
  };
10844
- const focusContent = () => {
10916
+ const _focusContent = () => {
10845
10917
  const content = contentRef();
10846
10918
  if (content) {
10847
10919
  focusWithoutScrolling(content);
@@ -10849,6 +10921,12 @@ function Menu(props) {
10849
10921
  listState.selectionManager().setFocusedKey(void 0);
10850
10922
  }
10851
10923
  };
10924
+ const focusContent = () => {
10925
+ if (optionalNavigationMenuContext != null)
10926
+ setTimeout(() => _focusContent());
10927
+ else
10928
+ _focusContent();
10929
+ };
10852
10930
  const registerNestedMenu = (element) => {
10853
10931
  setNestedMenus((prev) => [...prev, element]);
10854
10932
  const parentUnregister = parentMenuContext?.registerNestedMenu(element);
@@ -10893,6 +10971,32 @@ function Menu(props) {
10893
10971
  parentUnregister();
10894
10972
  });
10895
10973
  });
10974
+ createEffect(() => {
10975
+ if (parentMenuContext !== void 0)
10976
+ return;
10977
+ optionalMenubarContext?.registerMenu(rootContext.value(), [contentRef(), ...nestedMenus()]);
10978
+ });
10979
+ createEffect(() => {
10980
+ if (parentMenuContext !== void 0 || optionalMenubarContext === void 0)
10981
+ return;
10982
+ if (optionalMenubarContext.value() === rootContext.value()) {
10983
+ triggerRef()?.focus();
10984
+ if (optionalMenubarContext.autoFocusMenu())
10985
+ open(true);
10986
+ } else
10987
+ close();
10988
+ });
10989
+ createEffect(() => {
10990
+ if (parentMenuContext !== void 0 || optionalMenubarContext === void 0)
10991
+ return;
10992
+ if (disclosureState.isOpen())
10993
+ optionalMenubarContext.setValue(rootContext.value());
10994
+ });
10995
+ onCleanup(() => {
10996
+ if (parentMenuContext !== void 0)
10997
+ return;
10998
+ optionalMenubarContext?.unregisterMenu(rootContext.value());
10999
+ });
10896
11000
  const dataset = createMemo(() => ({
10897
11001
  "data-expanded": disclosureState.isOpen() ? "" : void 0,
10898
11002
  "data-closed": !disclosureState.isOpen() ? "" : void 0
@@ -10900,7 +11004,7 @@ function Menu(props) {
10900
11004
  const context = {
10901
11005
  dataset,
10902
11006
  isOpen: disclosureState.isOpen,
10903
- contentPresence,
11007
+ contentPresent,
10904
11008
  nestedMenus,
10905
11009
  currentPlacement,
10906
11010
  pointerGraceTimeoutId: () => pointerGraceTimeoutId,
@@ -10933,11 +11037,19 @@ function Menu(props) {
10933
11037
  return createComponent(MenuContext.Provider, {
10934
11038
  value: context,
10935
11039
  get children() {
10936
- return createComponent(Popper, mergeProps({
10937
- anchorRef: triggerRef,
10938
- contentRef,
10939
- onCurrentPlacementChange: setCurrentPlacement
10940
- }, others));
11040
+ return createComponent(Show, {
11041
+ when: optionalNavigationMenuContext === void 0,
11042
+ get fallback() {
11043
+ return others.children;
11044
+ },
11045
+ get children() {
11046
+ return createComponent(Popper, mergeProps({
11047
+ anchorRef: triggerRef,
11048
+ contentRef,
11049
+ onCurrentPlacementChange: setCurrentPlacement
11050
+ }, others));
11051
+ }
11052
+ });
10941
11053
  }
10942
11054
  });
10943
11055
  }
@@ -10956,6 +11068,7 @@ function MenuSub(props) {
10956
11068
  }
10957
11069
  function MenuSubContent(props) {
10958
11070
  const context = useMenuContext();
11071
+ const rootContext = useMenuRootContext();
10959
11072
  const [local, others] = splitProps(props, ["onFocusOutside", "onKeyDown"]);
10960
11073
  const {
10961
11074
  direction
@@ -10976,7 +11089,7 @@ function MenuSubContent(props) {
10976
11089
  const onKeyDown = (e2) => {
10977
11090
  callHandler(e2, local.onKeyDown);
10978
11091
  const isKeyDownInside = contains(e2.currentTarget, e2.target);
10979
- const isCloseKey = SUB_CLOSE_KEYS[direction()].includes(e2.key);
11092
+ const isCloseKey = SUB_CLOSE_KEYS.close(direction(), rootContext.orientation()).includes(e2.key);
10980
11093
  const isSubMenu = context.parentMenuContext() != null;
10981
11094
  if (isKeyDownInside && isCloseKey && isSubMenu) {
10982
11095
  context.close();
@@ -11102,7 +11215,7 @@ function MenuSubTrigger(props) {
11102
11215
  if (local.disabled) {
11103
11216
  return;
11104
11217
  }
11105
- if (SUB_OPEN_KEYS[direction()].includes(e2.key)) {
11218
+ if (SUB_OPEN_KEYS.open(direction(), rootContext.orientation()).includes(e2.key)) {
11106
11219
  e2.stopPropagation();
11107
11220
  e2.preventDefault();
11108
11221
  parentSelectionManager().setFocused(false);
@@ -11196,12 +11309,13 @@ function MenuSubTrigger(props) {
11196
11309
  }, () => context.dataset(), others));
11197
11310
  }
11198
11311
  function MenuRoot(props) {
11312
+ const optionalMenubarContext = useOptionalMenubarContext();
11199
11313
  const defaultId = `menu-${createUniqueId()}`;
11200
11314
  const mergedProps = mergeDefaultProps({
11201
11315
  id: defaultId,
11202
11316
  modal: true
11203
11317
  }, props);
11204
- const [local, others] = splitProps(mergedProps, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value"]);
11318
+ const [local, others] = splitProps(mergedProps, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value", "orientation"]);
11205
11319
  const disclosureState = createDisclosureState({
11206
11320
  open: () => local.open,
11207
11321
  defaultOpen: () => local.defaultOpen,
@@ -11212,7 +11326,8 @@ function MenuRoot(props) {
11212
11326
  preventScroll: () => local.preventScroll ?? context.isModal(),
11213
11327
  forceMount: () => local.forceMount ?? false,
11214
11328
  generateId: createGenerateId(() => local.id),
11215
- value: () => local.value
11329
+ value: () => local.value,
11330
+ orientation: () => local.orientation ?? optionalMenubarContext?.orientation() ?? "horizontal"
11216
11331
  };
11217
11332
  return createComponent(MenuRootContext.Provider, {
11218
11333
  value: context,
@@ -11228,204 +11343,66 @@ function MenuRoot(props) {
11228
11343
  }
11229
11344
  });
11230
11345
  }
11231
- var MenuContext, MenuItemContext, MenuRootContext, MenubarContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS;
11232
- var init_FEWVDVRO = __esm({
11233
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FEWVDVRO.js"() {
11234
- init_SUY5UYD();
11346
+ var MenuContext, MenuItemContext, MenuRootContext, MenubarContext, MENUBAR_KEYS, MENU_KEYS, NavigationMenuContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS;
11347
+ var init_F4B62RP = __esm({
11348
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/3F4B62RP.js"() {
11349
+ init_X2EKUJ3();
11235
11350
  init_CVNMTYF();
11236
- init_FHLXHFZN();
11237
- init_F2YUHYY4();
11351
+ init_GLKC2QFF();
11352
+ init_H6DSIDEC();
11238
11353
  init_XHJPQEZP();
11239
11354
  init_ISKHZMHS();
11240
11355
  init_TZGE2AQH();
11241
- init_MUMWGWR();
11356
+ init_G7G3PFRJ();
11242
11357
  init_YGDQXQ2B();
11243
11358
  init_LCANGHD();
11359
+ init_OVKXYPU();
11244
11360
  init_E4R2EMM4();
11245
- init_MH7W7S();
11246
11361
  init_BLN63FDC();
11247
- init_SNFWSEOJ();
11362
+ init_ET5T45DO();
11363
+ init_Y7B2NEO();
11248
11364
  init_web();
11249
- init_dist11();
11250
- init_solid();
11251
11365
  init_dist12();
11366
+ init_solid();
11367
+ init_dist14();
11368
+ init_dist11();
11369
+ init_dist13();
11252
11370
  MenuContext = createContext();
11253
11371
  MenuItemContext = createContext();
11254
11372
  MenuRootContext = createContext();
11255
11373
  MenubarContext = createContext();
11374
+ MENUBAR_KEYS = {
11375
+ next: (dir, orientation) => dir === "ltr" ? orientation === "horizontal" ? "ArrowRight" : "ArrowDown" : orientation === "horizontal" ? "ArrowLeft" : "ArrowUp",
11376
+ previous: (dir, orientation) => MENUBAR_KEYS.next(dir === "ltr" ? "rtl" : "ltr", orientation)
11377
+ };
11378
+ MENU_KEYS = {
11379
+ first: (orientation) => orientation === "horizontal" ? "ArrowDown" : "ArrowRight",
11380
+ last: (orientation) => orientation === "horizontal" ? "ArrowUp" : "ArrowLeft"
11381
+ };
11382
+ NavigationMenuContext = createContext();
11256
11383
  MenuGroupContext = createContext();
11257
11384
  MenuRadioGroupContext = createContext();
11258
11385
  SUB_CLOSE_KEYS = {
11259
- ltr: ["ArrowLeft"],
11260
- rtl: ["ArrowRight"]
11386
+ close: (dir, orientation) => {
11387
+ if (dir === "ltr") {
11388
+ return [orientation === "horizontal" ? "ArrowLeft" : "ArrowUp"];
11389
+ }
11390
+ return [orientation === "horizontal" ? "ArrowRight" : "ArrowDown"];
11391
+ }
11261
11392
  };
11262
11393
  SELECTION_KEYS = ["Enter", " "];
11263
11394
  SUB_OPEN_KEYS = {
11264
- ltr: [...SELECTION_KEYS, "ArrowRight"],
11265
- rtl: [...SELECTION_KEYS, "ArrowLeft"]
11266
- };
11267
- }
11268
- });
11269
-
11270
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7X66VFHP.js
11271
- function MenuTrigger(props) {
11272
- const rootContext = useMenuRootContext();
11273
- const context = useMenuContext();
11274
- const optionalMenubarContext = useOptionalMenubarContext();
11275
- const mergedProps = mergeDefaultProps({
11276
- id: rootContext.generateId("trigger")
11277
- }, props);
11278
- const [local, others] = splitProps(mergedProps, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
11279
- let key;
11280
- if (optionalMenubarContext !== void 0) {
11281
- key = rootContext.value() ?? local.id;
11282
- createEffect(() => {
11283
- optionalMenubarContext.registerMenu(key, [context.contentRef(), ...context.nestedMenus()]);
11284
- });
11285
- createEffect(() => {
11286
- if (optionalMenubarContext.value() === key) {
11287
- context.triggerRef()?.focus();
11288
- if (optionalMenubarContext.autoFocusMenu())
11289
- context.open(true);
11290
- } else
11291
- context.close(true);
11292
- });
11293
- createEffect(() => {
11294
- if (context.isOpen())
11295
- optionalMenubarContext.setValue(key);
11296
- });
11297
- onCleanup(() => {
11298
- optionalMenubarContext.unregisterMenu(key);
11299
- });
11300
- if (optionalMenubarContext.lastValue() === void 0)
11301
- optionalMenubarContext.setLastValue(key);
11302
- }
11303
- const tagName = createTagName(() => context.triggerRef(), () => "button");
11304
- const isNativeLink = createMemo(() => {
11305
- return tagName() === "a" && context.triggerRef()?.getAttribute("href") != null;
11306
- });
11307
- const handleClick = () => {
11308
- optionalMenubarContext?.setAutoFocusMenu(true);
11309
- if (optionalMenubarContext !== void 0)
11310
- context.toggle(false);
11311
- else
11312
- context.toggle(true);
11313
- if (optionalMenubarContext !== void 0 && !context.isOpen() && optionalMenubarContext.value() === key) {
11314
- optionalMenubarContext.closeMenu();
11315
- }
11316
- };
11317
- const onPointerDown = (e2) => {
11318
- callHandler(e2, local.onPointerDown);
11319
- e2.currentTarget.dataset.pointerType = e2.pointerType;
11320
- if (!local.disabled && e2.pointerType !== "touch" && e2.button === 0) {
11321
- handleClick();
11322
- }
11323
- };
11324
- const onClick = (e2) => {
11325
- callHandler(e2, local.onClick);
11326
- if (!local.disabled) {
11327
- if (e2.currentTarget.dataset.pointerType === "touch")
11328
- handleClick();
11329
- }
11330
- };
11331
- const onKeyDown = (e2) => {
11332
- callHandler(e2, local.onKeyDown);
11333
- if (local.disabled) {
11334
- return;
11335
- }
11336
- if (isNativeLink()) {
11337
- switch (e2.key) {
11338
- case "Enter":
11339
- case " ":
11340
- return;
11395
+ open: (dir, orientation) => {
11396
+ if (dir === "ltr") {
11397
+ return [...SELECTION_KEYS, orientation === "horizontal" ? "ArrowRight" : "ArrowDown"];
11398
+ }
11399
+ return [...SELECTION_KEYS, orientation === "horizontal" ? "ArrowLeft" : "ArrowUp"];
11341
11400
  }
11342
- }
11343
- switch (e2.key) {
11344
- case "Enter":
11345
- case " ":
11346
- case "ArrowDown":
11347
- e2.stopPropagation();
11348
- e2.preventDefault();
11349
- scrollIntoViewport(e2.currentTarget);
11350
- context.toggle("first");
11351
- break;
11352
- case "ArrowUp":
11353
- e2.stopPropagation();
11354
- e2.preventDefault();
11355
- context.toggle("last");
11356
- break;
11357
- case "ArrowRight":
11358
- if (optionalMenubarContext === void 0)
11359
- break;
11360
- e2.stopPropagation();
11361
- e2.preventDefault();
11362
- optionalMenubarContext.nextMenu();
11363
- break;
11364
- case "ArrowLeft":
11365
- if (optionalMenubarContext === void 0)
11366
- break;
11367
- e2.stopPropagation();
11368
- e2.preventDefault();
11369
- optionalMenubarContext.previousMenu();
11370
- break;
11371
- }
11372
- };
11373
- const onMouseOver = (e2) => {
11374
- callHandler(e2, local.onMouseOver);
11375
- if (!local.disabled && optionalMenubarContext !== void 0 && optionalMenubarContext.value() !== void 0) {
11376
- optionalMenubarContext.setValue(key);
11377
- }
11378
- };
11379
- const onFocus = (e2) => {
11380
- callHandler(e2, local.onFocus);
11381
- if (optionalMenubarContext !== void 0)
11382
- optionalMenubarContext.setValue(key);
11383
- };
11384
- createEffect(() => onCleanup(context.registerTriggerId(local.id)));
11385
- return createComponent(ButtonRoot, mergeProps({
11386
- ref(r$) {
11387
- const _ref$ = mergeRefs(context.setTriggerRef, local.ref);
11388
- typeof _ref$ === "function" && _ref$(r$);
11389
- },
11390
- get id() {
11391
- return local.id;
11392
- },
11393
- get disabled() {
11394
- return local.disabled;
11395
- },
11396
- "aria-haspopup": "true",
11397
- get ["aria-expanded"]() {
11398
- return context.isOpen();
11399
- },
11400
- get ["aria-controls"]() {
11401
- return createMemo(() => !!context.isOpen())() ? context.contentId() : void 0;
11402
- },
11403
- get ["data-highlighted"]() {
11404
- return key !== void 0 && optionalMenubarContext?.value() === key ? true : void 0;
11405
- },
11406
- get tabIndex() {
11407
- return optionalMenubarContext !== void 0 ? optionalMenubarContext.value() === key || optionalMenubarContext.lastValue() === key ? 0 : -1 : void 0;
11408
- },
11409
- onPointerDown,
11410
- onMouseOver,
11411
- onClick,
11412
- onKeyDown,
11413
- onFocus,
11414
- role: optionalMenubarContext !== void 0 ? "menuitem" : void 0
11415
- }, () => context.dataset(), others));
11416
- }
11417
- var init_X66VFHP = __esm({
11418
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7X66VFHP.js"() {
11419
- init_FEWVDVRO();
11420
- init_EOS4KX3P();
11421
- init_QD537TT();
11422
- init_web();
11423
- init_dist11();
11424
- init_solid();
11401
+ };
11425
11402
  }
11426
11403
  });
11427
11404
 
11428
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QXPEHVJD.js
11405
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/STGRFJHZ.js
11429
11406
  function SeparatorRoot(props) {
11430
11407
  let ref;
11431
11408
  const mergedProps = mergeDefaultProps({
@@ -11451,13 +11428,13 @@ function SeparatorRoot(props) {
11451
11428
  }, others));
11452
11429
  }
11453
11430
  var separator_exports, Separator;
11454
- var init_QXPEHVJD = __esm({
11455
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QXPEHVJD.js"() {
11456
- init_QD537TT();
11457
- init_SNFWSEOJ();
11431
+ var init_STGRFJHZ = __esm({
11432
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/STGRFJHZ.js"() {
11433
+ init_ET5T45DO();
11434
+ init_Y7B2NEO();
11458
11435
  init_ZKAE4VZ();
11459
11436
  init_web();
11460
- init_dist11();
11437
+ init_dist12();
11461
11438
  init_solid();
11462
11439
  separator_exports = {};
11463
11440
  __export2(separator_exports, {
@@ -11468,7 +11445,7 @@ var init_QXPEHVJD = __esm({
11468
11445
  }
11469
11446
  });
11470
11447
 
11471
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/JTYXMUDU.js
11448
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/V2JBZ7BJ.js
11472
11449
  function DropdownMenuContent(props) {
11473
11450
  const rootContext = useMenuRootContext();
11474
11451
  const context = useMenuContext();
@@ -11501,15 +11478,14 @@ function DropdownMenuRoot(props) {
11501
11478
  return createComponent(MenuRoot, mergedProps);
11502
11479
  }
11503
11480
  var dropdown_menu_exports, DropdownMenu;
11504
- var init_JTYXMUDU = __esm({
11505
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/JTYXMUDU.js"() {
11506
- init_X66VFHP();
11507
- init_FEWVDVRO();
11508
- init_QXPEHVJD();
11509
- init_SUY5UYD();
11481
+ var init_V2JBZ7BJ = __esm({
11482
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/V2JBZ7BJ.js"() {
11483
+ init_F4B62RP();
11484
+ init_STGRFJHZ();
11485
+ init_X2EKUJ3();
11510
11486
  init_ZKAE4VZ();
11511
11487
  init_web();
11512
- init_dist11();
11488
+ init_dist12();
11513
11489
  init_solid();
11514
11490
  dropdown_menu_exports = {};
11515
11491
  __export2(dropdown_menu_exports, {
@@ -11557,11 +11533,11 @@ var init_JTYXMUDU = __esm({
11557
11533
  }
11558
11534
  });
11559
11535
 
11560
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/index.js
11561
- var init_dist13 = __esm({
11562
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/index.js"() {
11563
- init_YXI762UW();
11564
- init_JTYXMUDU();
11536
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/index.js
11537
+ var init_dist15 = __esm({
11538
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/index.js"() {
11539
+ init_Q2BOFK7I();
11540
+ init_V2JBZ7BJ();
11565
11541
  }
11566
11542
  });
11567
11543
 
@@ -11882,14 +11858,14 @@ function ArrowDown() {
11882
11858
  }
11883
11859
  function ArrowLeft() {
11884
11860
  return (() => {
11885
- const _el$6 = _tmpl$5();
11861
+ var _el$6 = _tmpl$5();
11886
11862
  _el$6.style.setProperty("transform", "rotate(90deg)");
11887
11863
  return _el$6;
11888
11864
  })();
11889
11865
  }
11890
11866
  function ArrowRight() {
11891
11867
  return (() => {
11892
- const _el$7 = _tmpl$5();
11868
+ var _el$7 = _tmpl$5();
11893
11869
  _el$7.style.setProperty("transform", "rotate(-90deg)");
11894
11870
  return _el$7;
11895
11871
  })();
@@ -11920,7 +11896,7 @@ function Copier() {
11920
11896
  }
11921
11897
  function CopiedCopier(props) {
11922
11898
  return (() => {
11923
- const _el$16 = _tmpl$14(), _el$17 = _el$16.firstChild;
11899
+ var _el$16 = _tmpl$14(), _el$17 = _el$16.firstChild;
11924
11900
  createRenderEffect(() => setAttribute(_el$17, "stroke", props.theme === "dark" ? "#12B76A" : "#027A48"));
11925
11901
  return _el$16;
11926
11902
  })();
@@ -11937,7 +11913,7 @@ function Check(props) {
11937
11913
  return props.checked;
11938
11914
  },
11939
11915
  get children() {
11940
- const _el$20 = _tmpl$14(), _el$21 = _el$20.firstChild;
11916
+ var _el$20 = _tmpl$14(), _el$21 = _el$20.firstChild;
11941
11917
  createRenderEffect(() => setAttribute(_el$21, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
11942
11918
  return _el$20;
11943
11919
  }
@@ -11946,7 +11922,7 @@ function Check(props) {
11946
11922
  return !props.checked;
11947
11923
  },
11948
11924
  get children() {
11949
- const _el$22 = _tmpl$17(), _el$23 = _el$22.firstChild;
11925
+ var _el$22 = _tmpl$17(), _el$23 = _el$22.firstChild;
11950
11926
  createRenderEffect(() => setAttribute(_el$23, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
11951
11927
  return _el$22;
11952
11928
  }
@@ -11967,7 +11943,7 @@ function PauseCircle() {
11967
11943
  function TanstackLogo() {
11968
11944
  const id = createUniqueId();
11969
11945
  return (() => {
11970
- const _el$28 = _tmpl$222(), _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.nextSibling, _el$62 = _el$61.firstChild, _el$63 = _el$61.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$69.nextSibling, _el$71 = _el$65.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$73.nextSibling, _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.firstChild, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$89.nextSibling, _el$91 = _el$75.nextSibling, _el$92 = _el$91.firstChild, _el$93 = _el$91.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$96.nextSibling, _el$98 = _el$95.nextSibling, _el$99 = _el$98.firstChild, _el$100 = _el$98.nextSibling, _el$101 = _el$100.firstChild, _el$102 = _el$100.nextSibling, _el$103 = _el$102.firstChild, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling, _el$120 = _el$119.nextSibling;
11946
+ var _el$28 = _tmpl$222(), _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.nextSibling, _el$62 = _el$61.firstChild, _el$63 = _el$61.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$69.nextSibling, _el$71 = _el$65.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$73.nextSibling, _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.firstChild, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$89.nextSibling, _el$91 = _el$75.nextSibling, _el$92 = _el$91.firstChild, _el$93 = _el$91.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$96.nextSibling, _el$98 = _el$95.nextSibling, _el$99 = _el$98.firstChild, _el$100 = _el$98.nextSibling, _el$101 = _el$100.firstChild, _el$102 = _el$100.nextSibling, _el$103 = _el$102.firstChild, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling, _el$120 = _el$119.nextSibling;
11971
11947
  setAttribute(_el$29, "id", `a-${id}`);
11972
11948
  setAttribute(_el$30, "fill", `url(#a-${id})`);
11973
11949
  setAttribute(_el$32, "id", `am-${id}`);
@@ -12108,8 +12084,6 @@ var init_Context = __esm({
12108
12084
 
12109
12085
  // src/Explorer.tsx
12110
12086
  function chunkArray(array, size3) {
12111
- if (size3 < 1)
12112
- return [];
12113
12087
  let i2 = 0;
12114
12088
  const result = [];
12115
12089
  while (i2 < array.length) {
@@ -12171,14 +12145,14 @@ function Explorer(props) {
12171
12145
  const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
12172
12146
  const currentDataPath = props.dataPath ?? [];
12173
12147
  return (() => {
12174
- const _el$6 = _tmpl$62();
12148
+ var _el$6 = _tmpl$62();
12175
12149
  insert(_el$6, createComponent(Show, {
12176
12150
  get when() {
12177
12151
  return subEntryPages().length;
12178
12152
  },
12179
12153
  get children() {
12180
12154
  return [(() => {
12181
- const _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
12155
+ var _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
12182
12156
  _el$8.$$click = () => toggleExpanded();
12183
12157
  insert(_el$8, createComponent(Expander, {
12184
12158
  get expanded() {
@@ -12194,7 +12168,7 @@ function Explorer(props) {
12194
12168
  return props.editable;
12195
12169
  },
12196
12170
  get children() {
12197
- const _el$14 = _tmpl$62();
12171
+ var _el$14 = _tmpl$62();
12198
12172
  insert(_el$14, createComponent(CopyButton, {
12199
12173
  get value() {
12200
12174
  return props.value;
@@ -12231,15 +12205,15 @@ function Explorer(props) {
12231
12205
  }
12232
12206
  }), null);
12233
12207
  createRenderEffect((_p$) => {
12234
- const _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
12235
- _v$3 !== _p$._v$3 && className(_el$7, _p$._v$3 = _v$3);
12236
- _v$4 !== _p$._v$4 && className(_el$8, _p$._v$4 = _v$4);
12237
- _v$5 !== _p$._v$5 && className(_el$12, _p$._v$5 = _v$5);
12208
+ var _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
12209
+ _v$3 !== _p$.e && className(_el$7, _p$.e = _v$3);
12210
+ _v$4 !== _p$.t && className(_el$8, _p$.t = _v$4);
12211
+ _v$5 !== _p$.a && className(_el$12, _p$.a = _v$5);
12238
12212
  return _p$;
12239
12213
  }, {
12240
- _v$3: void 0,
12241
- _v$4: void 0,
12242
- _v$5: void 0
12214
+ e: void 0,
12215
+ t: void 0,
12216
+ a: void 0
12243
12217
  });
12244
12218
  return _el$7;
12245
12219
  })(), createComponent(Show, {
@@ -12252,7 +12226,7 @@ function Explorer(props) {
12252
12226
  return subEntryPages().length === 1;
12253
12227
  },
12254
12228
  get children() {
12255
- const _el$15 = _tmpl$62();
12229
+ var _el$15 = _tmpl$62();
12256
12230
  insert(_el$15, createComponent(Key, {
12257
12231
  get each() {
12258
12232
  return subEntries();
@@ -12292,13 +12266,13 @@ function Explorer(props) {
12292
12266
  return subEntryPages().length > 1;
12293
12267
  },
12294
12268
  get children() {
12295
- const _el$16 = _tmpl$62();
12269
+ var _el$16 = _tmpl$62();
12296
12270
  insert(_el$16, createComponent(Index, {
12297
12271
  get each() {
12298
12272
  return subEntryPages();
12299
12273
  },
12300
12274
  children: (entries2, index) => (() => {
12301
- const _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
12275
+ var _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
12302
12276
  _el$24.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
12303
12277
  insert(_el$24, createComponent(Expander, {
12304
12278
  get expanded() {
@@ -12312,7 +12286,7 @@ function Explorer(props) {
12312
12286
  return expandedPages().includes(index);
12313
12287
  },
12314
12288
  get children() {
12315
- const _el$31 = _tmpl$62();
12289
+ var _el$31 = _tmpl$62();
12316
12290
  insert(_el$31, createComponent(Key, {
12317
12291
  get each() {
12318
12292
  return entries2();
@@ -12344,13 +12318,13 @@ function Explorer(props) {
12344
12318
  }
12345
12319
  }), null);
12346
12320
  createRenderEffect((_p$) => {
12347
- const _v$10 = styles().entry, _v$11 = styles().expanderButton;
12348
- _v$10 !== _p$._v$10 && className(_el$23, _p$._v$10 = _v$10);
12349
- _v$11 !== _p$._v$11 && className(_el$24, _p$._v$11 = _v$11);
12321
+ var _v$10 = styles().entry, _v$11 = styles().expanderButton;
12322
+ _v$10 !== _p$.e && className(_el$23, _p$.e = _v$10);
12323
+ _v$11 !== _p$.t && className(_el$24, _p$.t = _v$11);
12350
12324
  return _p$;
12351
12325
  }, {
12352
- _v$10: void 0,
12353
- _v$11: void 0
12326
+ e: void 0,
12327
+ t: void 0
12354
12328
  });
12355
12329
  return _el$22;
12356
12330
  })()
@@ -12368,7 +12342,7 @@ function Explorer(props) {
12368
12342
  return subEntryPages().length === 0;
12369
12343
  },
12370
12344
  get children() {
12371
- const _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
12345
+ var _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
12372
12346
  insert(_el$18, () => props.label, _el$19);
12373
12347
  insert(_el$17, createComponent(Show, {
12374
12348
  get when() {
@@ -12376,7 +12350,7 @@ function Explorer(props) {
12376
12350
  },
12377
12351
  get fallback() {
12378
12352
  return (() => {
12379
- const _el$32 = _tmpl$92();
12353
+ var _el$32 = _tmpl$92();
12380
12354
  insert(_el$32, () => displayValue(props.value));
12381
12355
  createRenderEffect(() => className(_el$32, styles().value));
12382
12356
  return _el$32;
@@ -12388,20 +12362,20 @@ function Explorer(props) {
12388
12362
  return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
12389
12363
  },
12390
12364
  get children() {
12391
- const _el$20 = _tmpl$82();
12365
+ var _el$20 = _tmpl$82();
12392
12366
  _el$20.addEventListener("change", (changeEvent) => {
12393
12367
  const oldData = props.activeQuery.state.data;
12394
12368
  const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
12395
12369
  queryClient.setQueryData(props.activeQuery.queryKey, newData);
12396
12370
  });
12397
12371
  createRenderEffect((_p$) => {
12398
- const _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
12399
- _v$6 !== _p$._v$6 && setAttribute(_el$20, "type", _p$._v$6 = _v$6);
12400
- _v$7 !== _p$._v$7 && className(_el$20, _p$._v$7 = _v$7);
12372
+ var _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
12373
+ _v$6 !== _p$.e && setAttribute(_el$20, "type", _p$.e = _v$6);
12374
+ _v$7 !== _p$.t && className(_el$20, _p$.t = _v$7);
12401
12375
  return _p$;
12402
12376
  }, {
12403
- _v$6: void 0,
12404
- _v$7: void 0
12377
+ e: void 0,
12378
+ t: void 0
12405
12379
  });
12406
12380
  createRenderEffect(() => _el$20.value = props.value);
12407
12381
  return _el$20;
@@ -12411,7 +12385,7 @@ function Explorer(props) {
12411
12385
  return type() === "boolean";
12412
12386
  },
12413
12387
  get children() {
12414
- const _el$21 = _tmpl$92();
12388
+ var _el$21 = _tmpl$92();
12415
12389
  insert(_el$21, createComponent(ToggleValueButton, {
12416
12390
  get activeQuery() {
12417
12391
  return props.activeQuery;
@@ -12442,13 +12416,13 @@ function Explorer(props) {
12442
12416
  }
12443
12417
  }), null);
12444
12418
  createRenderEffect((_p$) => {
12445
- const _v$8 = styles().row, _v$9 = styles().label;
12446
- _v$8 !== _p$._v$8 && className(_el$17, _p$._v$8 = _v$8);
12447
- _v$9 !== _p$._v$9 && className(_el$18, _p$._v$9 = _v$9);
12419
+ var _v$8 = styles().row, _v$9 = styles().label;
12420
+ _v$8 !== _p$.e && className(_el$17, _p$.e = _v$8);
12421
+ _v$9 !== _p$.t && className(_el$18, _p$.t = _v$9);
12448
12422
  return _p$;
12449
12423
  }, {
12450
- _v$8: void 0,
12451
- _v$9: void 0
12424
+ e: void 0,
12425
+ t: void 0
12452
12426
  });
12453
12427
  return _el$17;
12454
12428
  }
@@ -12498,7 +12472,7 @@ var init_Explorer = __esm({
12498
12472
  return theme() === "dark" ? darkStyles(css) : lightStyles(css);
12499
12473
  });
12500
12474
  return (() => {
12501
- const _el$ = _tmpl$23();
12475
+ var _el$ = _tmpl$23();
12502
12476
  createRenderEffect(() => className(_el$, clsx(styles().expander, css`
12503
12477
  transform: rotate(${props.expanded ? 90 : 0}deg);
12504
12478
  `, props.expanded && css`
@@ -12519,7 +12493,7 @@ var init_Explorer = __esm({
12519
12493
  });
12520
12494
  const [copyState, setCopyState] = createSignal("NoCopy");
12521
12495
  return (() => {
12522
- const _el$2 = _tmpl$24();
12496
+ var _el$2 = _tmpl$24();
12523
12497
  addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
12524
12498
  navigator.clipboard.writeText(stringify(props.value)).then(() => {
12525
12499
  setCopyState("SuccessCopy");
@@ -12564,13 +12538,13 @@ var init_Explorer = __esm({
12564
12538
  }
12565
12539
  }));
12566
12540
  createRenderEffect((_p$) => {
12567
- const _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
12568
- _v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
12569
- _v$2 !== _p$._v$2 && setAttribute(_el$2, "aria-label", _p$._v$2 = _v$2);
12541
+ var _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
12542
+ _v$ !== _p$.e && className(_el$2, _p$.e = _v$);
12543
+ _v$2 !== _p$.t && setAttribute(_el$2, "aria-label", _p$.t = _v$2);
12570
12544
  return _p$;
12571
12545
  }, {
12572
- _v$: void 0,
12573
- _v$2: void 0
12546
+ e: void 0,
12547
+ t: void 0
12574
12548
  });
12575
12549
  return _el$2;
12576
12550
  })();
@@ -12585,7 +12559,7 @@ var init_Explorer = __esm({
12585
12559
  });
12586
12560
  const queryClient = useQueryDevtoolsContext().client;
12587
12561
  return (() => {
12588
- const _el$3 = _tmpl$32();
12562
+ var _el$3 = _tmpl$32();
12589
12563
  _el$3.$$click = () => {
12590
12564
  const oldData = props.activeQuery.state.data;
12591
12565
  const newData = updateNestedDataByPath(oldData, props.dataPath, []);
@@ -12606,7 +12580,7 @@ var init_Explorer = __esm({
12606
12580
  });
12607
12581
  const queryClient = useQueryDevtoolsContext().client;
12608
12582
  return (() => {
12609
- const _el$4 = _tmpl$42();
12583
+ var _el$4 = _tmpl$42();
12610
12584
  _el$4.$$click = () => {
12611
12585
  const oldData = props.activeQuery.state.data;
12612
12586
  const newData = deleteNestedDataByPath(oldData, props.dataPath);
@@ -12627,7 +12601,7 @@ var init_Explorer = __esm({
12627
12601
  });
12628
12602
  const queryClient = useQueryDevtoolsContext().client;
12629
12603
  return (() => {
12630
- const _el$5 = _tmpl$52();
12604
+ var _el$5 = _tmpl$52();
12631
12605
  _el$5.$$click = () => {
12632
12606
  const oldData = props.activeQuery.state.data;
12633
12607
  const newData = updateNestedDataByPath(oldData, props.dataPath, !props.value);
@@ -12815,7 +12789,7 @@ var init_Devtools = __esm({
12815
12789
  init_dist7();
12816
12790
  init_dist8();
12817
12791
  init_dist10();
12818
- init_dist13();
12792
+ init_dist15();
12819
12793
  init_web();
12820
12794
  init_theme();
12821
12795
  init_utils();
@@ -13077,8 +13051,8 @@ var init_Devtools = __esm({
13077
13051
  });
13078
13052
  }
13079
13053
  }), (() => {
13080
- const _el$ = _tmpl$26();
13081
- const _ref$ = transitionsContainerRef;
13054
+ var _el$ = _tmpl$26();
13055
+ var _ref$ = transitionsContainerRef;
13082
13056
  typeof _ref$ === "function" ? use(_ref$, _el$) : transitionsContainerRef = _el$;
13083
13057
  insert(_el$, createComponent(TransitionGroup, {
13084
13058
  name: "tsqd-panel-transition",
@@ -13108,7 +13082,7 @@ var init_Devtools = __esm({
13108
13082
  return !isOpen();
13109
13083
  },
13110
13084
  get children() {
13111
- const _el$2 = _tmpl$25(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
13085
+ var _el$2 = _tmpl$25(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
13112
13086
  insert(_el$3, createComponent(TanstackLogo, {}));
13113
13087
  _el$4.$$click = () => props.setLocalStore("open", "true");
13114
13088
  insert(_el$4, createComponent(TanstackLogo, {}));
@@ -13191,7 +13165,7 @@ var init_Devtools = __esm({
13191
13165
  });
13192
13166
  });
13193
13167
  return (() => {
13194
- const _el$5 = _tmpl$26();
13168
+ var _el$5 = _tmpl$26();
13195
13169
  _el$5.style.setProperty("--tsqd-font-size", "16px");
13196
13170
  _el$5.style.setProperty("max-height", "100vh");
13197
13171
  _el$5.style.setProperty("height", "100vh");
@@ -13316,8 +13290,8 @@ var init_Devtools = __esm({
13316
13290
  `;
13317
13291
  };
13318
13292
  return (() => {
13319
- const _el$6 = _tmpl$33(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
13320
- const _ref$2 = panelRef;
13293
+ var _el$6 = _tmpl$33(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
13294
+ var _ref$2 = panelRef;
13321
13295
  typeof _ref$2 === "function" ? use(_ref$2, _el$6) : panelRef = _el$6;
13322
13296
  _el$7.$$mousedown = handleDragStart;
13323
13297
  _el$8.$$click = () => props.setLocalStore("open", "false");
@@ -13331,23 +13305,23 @@ var init_Devtools = __esm({
13331
13305
  }
13332
13306
  }), null);
13333
13307
  createRenderEffect((_p$) => {
13334
- const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13308
+ var _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13335
13309
  [css`
13336
13310
  min-width: min-content;
13337
13311
  `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
13338
13312
  }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn");
13339
- _v$ !== _p$._v$ && className(_el$6, _p$._v$ = _v$);
13340
- _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$6.style.setProperty("height", _v$2) : _el$6.style.removeProperty("height"));
13341
- _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$6.style.setProperty("width", _v$3) : _el$6.style.removeProperty("width"));
13342
- _v$4 !== _p$._v$4 && className(_el$7, _p$._v$4 = _v$4);
13343
- _v$5 !== _p$._v$5 && className(_el$8, _p$._v$5 = _v$5);
13313
+ _v$ !== _p$.e && className(_el$6, _p$.e = _v$);
13314
+ _v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$6.style.setProperty("height", _v$2) : _el$6.style.removeProperty("height"));
13315
+ _v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$6.style.setProperty("width", _v$3) : _el$6.style.removeProperty("width"));
13316
+ _v$4 !== _p$.o && className(_el$7, _p$.o = _v$4);
13317
+ _v$5 !== _p$.i && className(_el$8, _p$.i = _v$5);
13344
13318
  return _p$;
13345
13319
  }, {
13346
- _v$: void 0,
13347
- _v$2: void 0,
13348
- _v$3: void 0,
13349
- _v$4: void 0,
13350
- _v$5: void 0
13320
+ e: void 0,
13321
+ t: void 0,
13322
+ a: void 0,
13323
+ o: void 0,
13324
+ i: void 0
13351
13325
  });
13352
13326
  return _el$6;
13353
13327
  })();
@@ -13408,8 +13382,8 @@ var init_Devtools = __esm({
13408
13382
  el.style.setProperty("--tsqd-font-size", variable);
13409
13383
  };
13410
13384
  return [(() => {
13411
- const _el$9 = _tmpl$212(), _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$10.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$20.nextSibling, _el$26 = _el$17.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling;
13412
- const _ref$3 = containerRef;
13385
+ var _el$9 = _tmpl$212(), _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$10.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$20.nextSibling, _el$26 = _el$17.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling;
13386
+ var _ref$3 = containerRef;
13413
13387
  typeof _ref$3 === "function" ? use(_ref$3, _el$9) : containerRef = _el$9;
13414
13388
  _el$12.$$click = () => {
13415
13389
  if (!pip().pipWindow) {
@@ -13489,12 +13463,12 @@ var init_Devtools = __esm({
13489
13463
  return selectedView() === "queries";
13490
13464
  },
13491
13465
  get children() {
13492
- const _el$21 = _tmpl$43();
13466
+ var _el$21 = _tmpl$43();
13493
13467
  _el$21.addEventListener("change", (e2) => {
13494
13468
  props.setLocalStore("sort", e2.currentTarget.value);
13495
13469
  });
13496
13470
  insert(_el$21, () => Object.keys(sortFns).map((key) => (() => {
13497
- const _el$44 = _tmpl$223(); _el$44.firstChild;
13471
+ var _el$44 = _tmpl$223(); _el$44.firstChild;
13498
13472
  _el$44.value = key;
13499
13473
  insert(_el$44, key, null);
13500
13474
  return _el$44;
@@ -13508,12 +13482,12 @@ var init_Devtools = __esm({
13508
13482
  return selectedView() === "mutations";
13509
13483
  },
13510
13484
  get children() {
13511
- const _el$22 = _tmpl$53();
13485
+ var _el$22 = _tmpl$53();
13512
13486
  _el$22.addEventListener("change", (e2) => {
13513
13487
  props.setLocalStore("mutationSort", e2.currentTarget.value);
13514
13488
  });
13515
13489
  insert(_el$22, () => Object.keys(mutationSortFns).map((key) => (() => {
13516
- const _el$46 = _tmpl$223(); _el$46.firstChild;
13490
+ var _el$46 = _tmpl$223(); _el$46.firstChild;
13517
13491
  _el$46.value = key;
13518
13492
  insert(_el$46, key, null);
13519
13493
  return _el$46;
@@ -13564,7 +13538,7 @@ var init_Devtools = __esm({
13564
13538
  }
13565
13539
  };
13566
13540
  insert(_el$28, (() => {
13567
- const _c$ = createMemo(() => !!offline());
13541
+ var _c$ = createMemo(() => !!offline());
13568
13542
  return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
13569
13543
  })());
13570
13544
  insert(_el$26, createComponent(Show, {
@@ -13572,7 +13546,7 @@ var init_Devtools = __esm({
13572
13546
  return !pip().pipWindow;
13573
13547
  },
13574
13548
  get children() {
13575
- const _el$29 = _tmpl$83();
13549
+ var _el$29 = _tmpl$83();
13576
13550
  _el$29.$$click = () => {
13577
13551
  pip().requestPipWindow(Number(window.innerWidth), Number(props.localStore.height ?? 500));
13578
13552
  };
@@ -13603,7 +13577,7 @@ var init_Devtools = __esm({
13603
13577
  },
13604
13578
  get children() {
13605
13579
  return [(() => {
13606
- const _el$30 = _tmpl$93();
13580
+ var _el$30 = _tmpl$93();
13607
13581
  createRenderEffect(() => className(_el$30, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
13608
13582
  return _el$30;
13609
13583
  })(), createComponent(dropdown_menu_exports.Sub, {
@@ -13753,7 +13727,7 @@ var init_Devtools = __esm({
13753
13727
  return selectedView() === "queries";
13754
13728
  },
13755
13729
  get children() {
13756
- const _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
13730
+ var _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
13757
13731
  insert(_el$41, createComponent(Key, {
13758
13732
  by: (q) => q.queryHash,
13759
13733
  get each() {
@@ -13774,7 +13748,7 @@ var init_Devtools = __esm({
13774
13748
  return selectedView() === "mutations";
13775
13749
  },
13776
13750
  get children() {
13777
- const _el$42 = _tmpl$202(), _el$43 = _el$42.firstChild;
13751
+ var _el$42 = _tmpl$202(), _el$43 = _el$42.firstChild;
13778
13752
  insert(_el$43, createComponent(Key, {
13779
13753
  by: (m) => m.mutationId,
13780
13754
  get each() {
@@ -13791,55 +13765,55 @@ var init_Devtools = __esm({
13791
13765
  }
13792
13766
  }), null);
13793
13767
  createRenderEffect((_p$) => {
13794
- const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
13768
+ var _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
13795
13769
  height: 50%;
13796
13770
  max-height: 50%;
13797
13771
  `, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && css`
13798
13772
  height: 100%;
13799
13773
  max-height: 100%;
13800
13774
  `, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx("tsqd-query-filter-textfield"), _v$16 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$17 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$18 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$19 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$20 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$21 = `Clear ${selectedView()} cache`, _v$22 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$23 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$24 = offline(), _v$25 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
13801
- _v$6 !== _p$._v$6 && className(_el$9, _p$._v$6 = _v$6);
13802
- _v$7 !== _p$._v$7 && className(_el$10, _p$._v$7 = _v$7);
13803
- _v$8 !== _p$._v$8 && className(_el$11, _p$._v$8 = _v$8);
13804
- _v$9 !== _p$._v$9 && className(_el$12, _p$._v$9 = _v$9);
13805
- _v$10 !== _p$._v$10 && className(_el$13, _p$._v$10 = _v$10);
13806
- _v$11 !== _p$._v$11 && className(_el$14, _p$._v$11 = _v$11);
13807
- _v$12 !== _p$._v$12 && className(_el$16, _p$._v$12 = _v$12);
13808
- _v$13 !== _p$._v$13 && className(_el$17, _p$._v$13 = _v$13);
13809
- _v$14 !== _p$._v$14 && className(_el$18, _p$._v$14 = _v$14);
13810
- _v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
13811
- _v$16 !== _p$._v$16 && className(_el$20, _p$._v$16 = _v$16);
13812
- _v$17 !== _p$._v$17 && setAttribute(_el$23, "aria-label", _p$._v$17 = _v$17);
13813
- _v$18 !== _p$._v$18 && setAttribute(_el$23, "aria-pressed", _p$._v$18 = _v$18);
13814
- _v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
13815
- _v$20 !== _p$._v$20 && className(_el$27, _p$._v$20 = _v$20);
13816
- _v$21 !== _p$._v$21 && setAttribute(_el$27, "title", _p$._v$21 = _v$21);
13817
- _v$22 !== _p$._v$22 && className(_el$28, _p$._v$22 = _v$22);
13818
- _v$23 !== _p$._v$23 && setAttribute(_el$28, "aria-label", _p$._v$23 = _v$23);
13819
- _v$24 !== _p$._v$24 && setAttribute(_el$28, "aria-pressed", _p$._v$24 = _v$24);
13820
- _v$25 !== _p$._v$25 && setAttribute(_el$28, "title", _p$._v$25 = _v$25);
13775
+ _v$6 !== _p$.e && className(_el$9, _p$.e = _v$6);
13776
+ _v$7 !== _p$.t && className(_el$10, _p$.t = _v$7);
13777
+ _v$8 !== _p$.a && className(_el$11, _p$.a = _v$8);
13778
+ _v$9 !== _p$.o && className(_el$12, _p$.o = _v$9);
13779
+ _v$10 !== _p$.i && className(_el$13, _p$.i = _v$10);
13780
+ _v$11 !== _p$.n && className(_el$14, _p$.n = _v$11);
13781
+ _v$12 !== _p$.s && className(_el$16, _p$.s = _v$12);
13782
+ _v$13 !== _p$.h && className(_el$17, _p$.h = _v$13);
13783
+ _v$14 !== _p$.r && className(_el$18, _p$.r = _v$14);
13784
+ _v$15 !== _p$.d && className(_el$19, _p$.d = _v$15);
13785
+ _v$16 !== _p$.l && className(_el$20, _p$.l = _v$16);
13786
+ _v$17 !== _p$.u && setAttribute(_el$23, "aria-label", _p$.u = _v$17);
13787
+ _v$18 !== _p$.c && setAttribute(_el$23, "aria-pressed", _p$.c = _v$18);
13788
+ _v$19 !== _p$.w && className(_el$26, _p$.w = _v$19);
13789
+ _v$20 !== _p$.m && className(_el$27, _p$.m = _v$20);
13790
+ _v$21 !== _p$.f && setAttribute(_el$27, "title", _p$.f = _v$21);
13791
+ _v$22 !== _p$.y && className(_el$28, _p$.y = _v$22);
13792
+ _v$23 !== _p$.g && setAttribute(_el$28, "aria-label", _p$.g = _v$23);
13793
+ _v$24 !== _p$.p && setAttribute(_el$28, "aria-pressed", _p$.p = _v$24);
13794
+ _v$25 !== _p$.b && setAttribute(_el$28, "title", _p$.b = _v$25);
13821
13795
  return _p$;
13822
13796
  }, {
13823
- _v$6: void 0,
13824
- _v$7: void 0,
13825
- _v$8: void 0,
13826
- _v$9: void 0,
13827
- _v$10: void 0,
13828
- _v$11: void 0,
13829
- _v$12: void 0,
13830
- _v$13: void 0,
13831
- _v$14: void 0,
13832
- _v$15: void 0,
13833
- _v$16: void 0,
13834
- _v$17: void 0,
13835
- _v$18: void 0,
13836
- _v$19: void 0,
13837
- _v$20: void 0,
13838
- _v$21: void 0,
13839
- _v$22: void 0,
13840
- _v$23: void 0,
13841
- _v$24: void 0,
13842
- _v$25: void 0
13797
+ e: void 0,
13798
+ t: void 0,
13799
+ a: void 0,
13800
+ o: void 0,
13801
+ i: void 0,
13802
+ n: void 0,
13803
+ s: void 0,
13804
+ h: void 0,
13805
+ r: void 0,
13806
+ d: void 0,
13807
+ l: void 0,
13808
+ u: void 0,
13809
+ c: void 0,
13810
+ w: void 0,
13811
+ m: void 0,
13812
+ f: void 0,
13813
+ y: void 0,
13814
+ g: void 0,
13815
+ p: void 0,
13816
+ b: void 0
13843
13817
  });
13844
13818
  createRenderEffect(() => _el$19.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
13845
13819
  return _el$9;
@@ -13906,7 +13880,7 @@ var init_Devtools = __esm({
13906
13880
  return queryState();
13907
13881
  },
13908
13882
  get children() {
13909
- const _el$48 = _tmpl$242(), _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling;
13883
+ var _el$48 = _tmpl$242(), _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling;
13910
13884
  _el$48.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13911
13885
  insert(_el$49, observers);
13912
13886
  insert(_el$50, () => props.query.queryHash);
@@ -13919,15 +13893,15 @@ var init_Devtools = __esm({
13919
13893
  }
13920
13894
  }), null);
13921
13895
  createRenderEffect((_p$) => {
13922
- const _v$26 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$27 = `Query key ${props.query.queryHash}`, _v$28 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
13923
- _v$26 !== _p$._v$26 && className(_el$48, _p$._v$26 = _v$26);
13924
- _v$27 !== _p$._v$27 && setAttribute(_el$48, "aria-label", _p$._v$27 = _v$27);
13925
- _v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
13896
+ var _v$26 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$27 = `Query key ${props.query.queryHash}`, _v$28 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
13897
+ _v$26 !== _p$.e && className(_el$48, _p$.e = _v$26);
13898
+ _v$27 !== _p$.t && setAttribute(_el$48, "aria-label", _p$.t = _v$27);
13899
+ _v$28 !== _p$.a && className(_el$49, _p$.a = _v$28);
13926
13900
  return _p$;
13927
13901
  }, {
13928
- _v$26: void 0,
13929
- _v$27: void 0,
13930
- _v$28: void 0
13902
+ e: void 0,
13903
+ t: void 0,
13904
+ a: void 0
13931
13905
  });
13932
13906
  return _el$48;
13933
13907
  }
@@ -13986,7 +13960,7 @@ var init_Devtools = __esm({
13986
13960
  return mutationState();
13987
13961
  },
13988
13962
  get children() {
13989
- const _el$52 = _tmpl$242(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling;
13963
+ var _el$52 = _tmpl$242(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling;
13990
13964
  _el$52.$$click = () => {
13991
13965
  setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
13992
13966
  };
@@ -14032,15 +14006,15 @@ var init_Devtools = __esm({
14032
14006
  }), null);
14033
14007
  insert(_el$54, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
14034
14008
  createRenderEffect((_p$) => {
14035
- const _v$29 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$30 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$31 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
14036
- _v$29 !== _p$._v$29 && className(_el$52, _p$._v$29 = _v$29);
14037
- _v$30 !== _p$._v$30 && setAttribute(_el$52, "aria-label", _p$._v$30 = _v$30);
14038
- _v$31 !== _p$._v$31 && className(_el$53, _p$._v$31 = _v$31);
14009
+ var _v$29 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$30 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$31 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
14010
+ _v$29 !== _p$.e && className(_el$52, _p$.e = _v$29);
14011
+ _v$30 !== _p$.t && setAttribute(_el$52, "aria-label", _p$.t = _v$30);
14012
+ _v$31 !== _p$.a && className(_el$53, _p$.a = _v$31);
14039
14013
  return _p$;
14040
14014
  }, {
14041
- _v$29: void 0,
14042
- _v$30: void 0,
14043
- _v$31: void 0
14015
+ e: void 0,
14016
+ t: void 0,
14017
+ a: void 0
14044
14018
  });
14045
14019
  return _el$52;
14046
14020
  }
@@ -14060,7 +14034,7 @@ var init_Devtools = __esm({
14060
14034
  return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
14061
14035
  });
14062
14036
  return (() => {
14063
- const _el$55 = _tmpl$26();
14037
+ var _el$55 = _tmpl$26();
14064
14038
  insert(_el$55, createComponent(QueryStatus, {
14065
14039
  label: "Fresh",
14066
14040
  color: "green",
@@ -14125,7 +14099,7 @@ var init_Devtools = __esm({
14125
14099
  return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
14126
14100
  });
14127
14101
  return (() => {
14128
- const _el$56 = _tmpl$26();
14102
+ var _el$56 = _tmpl$26();
14129
14103
  insert(_el$56, createComponent(QueryStatus, {
14130
14104
  label: "Paused",
14131
14105
  color: "purple",
@@ -14186,8 +14160,8 @@ var init_Devtools = __esm({
14186
14160
  return true;
14187
14161
  });
14188
14162
  return (() => {
14189
- const _el$57 = _tmpl$27(), _el$59 = _el$57.firstChild, _el$61 = _el$59.nextSibling;
14190
- const _ref$4 = tagRef;
14163
+ var _el$57 = _tmpl$27(), _el$59 = _el$57.firstChild, _el$61 = _el$59.nextSibling;
14164
+ var _ref$4 = tagRef;
14191
14165
  typeof _ref$4 === "function" ? use(_ref$4, _el$57) : tagRef = _el$57;
14192
14166
  _el$57.addEventListener("mouseleave", () => {
14193
14167
  setMouseOver(false);
@@ -14216,7 +14190,7 @@ var init_Devtools = __esm({
14216
14190
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
14217
14191
  },
14218
14192
  get children() {
14219
- const _el$58 = _tmpl$252();
14193
+ var _el$58 = _tmpl$252();
14220
14194
  insert(_el$58, () => props.label);
14221
14195
  createRenderEffect(() => className(_el$58, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
14222
14196
  return _el$58;
@@ -14227,7 +14201,7 @@ var init_Devtools = __esm({
14227
14201
  return showLabel();
14228
14202
  },
14229
14203
  get children() {
14230
- const _el$60 = _tmpl$262();
14204
+ var _el$60 = _tmpl$262();
14231
14205
  insert(_el$60, () => props.label);
14232
14206
  createRenderEffect(() => className(_el$60, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
14233
14207
  return _el$60;
@@ -14235,7 +14209,7 @@ var init_Devtools = __esm({
14235
14209
  }), _el$61);
14236
14210
  insert(_el$61, () => props.count);
14237
14211
  createRenderEffect((_p$) => {
14238
- const _v$32 = clsx(css`
14212
+ var _v$32 = clsx(css`
14239
14213
  width: ${tokens.size[1.5]};
14240
14214
  height: ${tokens.size[1.5]};
14241
14215
  border-radius: ${tokens.border.radius.full};
@@ -14244,12 +14218,12 @@ var init_Devtools = __esm({
14244
14218
  background-color: ${t2(colors[props.color][100], colors[props.color][900])};
14245
14219
  color: ${t2(colors[props.color][700], colors[props.color][300])};
14246
14220
  `, "tsqd-query-status-tag-count");
14247
- _v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
14248
- _v$33 !== _p$._v$33 && className(_el$61, _p$._v$33 = _v$33);
14221
+ _v$32 !== _p$.e && className(_el$59, _p$.e = _v$32);
14222
+ _v$33 !== _p$.t && className(_el$61, _p$.t = _v$33);
14249
14223
  return _p$;
14250
14224
  }, {
14251
- _v$32: void 0,
14252
- _v$33: void 0
14225
+ e: void 0,
14226
+ t: void 0
14253
14227
  });
14254
14228
  return _el$57;
14255
14229
  })();
@@ -14348,7 +14322,7 @@ var init_Devtools = __esm({
14348
14322
  return createMemo(() => !!activeQuery())() && activeQueryState();
14349
14323
  },
14350
14324
  get children() {
14351
- const _el$62 = _tmpl$30(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$65.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$69.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$64.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$83.nextSibling, _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling, _el$96 = _el$76.nextSibling, _el$97 = _el$96.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling;
14325
+ var _el$62 = _tmpl$30(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$65.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$69.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$64.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$83.nextSibling, _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling, _el$96 = _el$76.nextSibling, _el$97 = _el$96.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling;
14352
14326
  insert(_el$67, () => displayValue(activeQuery().queryKey, true));
14353
14327
  insert(_el$68, statusLabel);
14354
14328
  insert(_el$71, observerCount);
@@ -14393,7 +14367,7 @@ var init_Devtools = __esm({
14393
14367
  return errorTypes().length === 0 || queryStatus() === "error";
14394
14368
  },
14395
14369
  get children() {
14396
- const _el$88 = _tmpl$28(), _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling;
14370
+ var _el$88 = _tmpl$28(), _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling;
14397
14371
  _el$88.$$click = () => {
14398
14372
  if (!activeQuery().state.error) {
14399
14373
  triggerError();
@@ -14403,19 +14377,19 @@ var init_Devtools = __esm({
14403
14377
  };
14404
14378
  insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
14405
14379
  createRenderEffect((_p$) => {
14406
- const _v$34 = clsx(css`
14380
+ var _v$34 = clsx(css`
14407
14381
  color: ${t2(colors.red[500], colors.red[400])};
14408
14382
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
14409
14383
  background-color: ${t2(colors.red[500], colors.red[400])};
14410
14384
  `;
14411
- _v$34 !== _p$._v$34 && className(_el$88, _p$._v$34 = _v$34);
14412
- _v$35 !== _p$._v$35 && (_el$88.disabled = _p$._v$35 = _v$35);
14413
- _v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
14385
+ _v$34 !== _p$.e && className(_el$88, _p$.e = _v$34);
14386
+ _v$35 !== _p$.t && (_el$88.disabled = _p$.t = _v$35);
14387
+ _v$36 !== _p$.a && className(_el$89, _p$.a = _v$36);
14414
14388
  return _p$;
14415
14389
  }, {
14416
- _v$34: void 0,
14417
- _v$35: void 0,
14418
- _v$36: void 0
14390
+ e: void 0,
14391
+ t: void 0,
14392
+ a: void 0
14419
14393
  });
14420
14394
  return _el$88;
14421
14395
  }
@@ -14425,7 +14399,7 @@ var init_Devtools = __esm({
14425
14399
  return !(errorTypes().length === 0 || queryStatus() === "error");
14426
14400
  },
14427
14401
  get children() {
14428
- const _el$91 = _tmpl$29(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling; _el$94.firstChild;
14402
+ var _el$91 = _tmpl$29(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling; _el$94.firstChild;
14429
14403
  _el$94.addEventListener("change", (e2) => {
14430
14404
  const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
14431
14405
  triggerError(errorType);
@@ -14435,7 +14409,7 @@ var init_Devtools = __esm({
14435
14409
  return errorTypes();
14436
14410
  },
14437
14411
  children: (errorType) => (() => {
14438
- const _el$100 = _tmpl$31();
14412
+ var _el$100 = _tmpl$31();
14439
14413
  insert(_el$100, () => errorType.name);
14440
14414
  createRenderEffect(() => _el$100.value = errorType.name);
14441
14415
  return _el$100;
@@ -14443,17 +14417,17 @@ var init_Devtools = __esm({
14443
14417
  }), null);
14444
14418
  insert(_el$91, createComponent(ChevronDown, {}), null);
14445
14419
  createRenderEffect((_p$) => {
14446
- const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
14420
+ var _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
14447
14421
  background-color: ${tokens.colors.red[400]};
14448
14422
  `, _v$39 = queryStatus() === "pending";
14449
- _v$37 !== _p$._v$37 && className(_el$91, _p$._v$37 = _v$37);
14450
- _v$38 !== _p$._v$38 && className(_el$92, _p$._v$38 = _v$38);
14451
- _v$39 !== _p$._v$39 && (_el$94.disabled = _p$._v$39 = _v$39);
14423
+ _v$37 !== _p$.e && className(_el$91, _p$.e = _v$37);
14424
+ _v$38 !== _p$.t && className(_el$92, _p$.t = _v$38);
14425
+ _v$39 !== _p$.a && (_el$94.disabled = _p$.a = _v$39);
14452
14426
  return _p$;
14453
14427
  }, {
14454
- _v$37: void 0,
14455
- _v$38: void 0,
14456
- _v$39: void 0
14428
+ e: void 0,
14429
+ t: void 0,
14430
+ a: void 0
14457
14431
  });
14458
14432
  return _el$91;
14459
14433
  }
@@ -14477,7 +14451,7 @@ var init_Devtools = __esm({
14477
14451
  }
14478
14452
  }));
14479
14453
  createRenderEffect((_p$) => {
14480
- const _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(css`
14454
+ var _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(css`
14481
14455
  color: ${t2(colors.blue[600], colors.blue[400])};
14482
14456
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 = css`
14483
14457
  background-color: ${t2(colors.blue[600], colors.blue[400])};
@@ -14498,58 +14472,58 @@ var init_Devtools = __esm({
14498
14472
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
14499
14473
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
14500
14474
  `, _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$62 = tokens.size[2], _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = tokens.size[2];
14501
- _v$40 !== _p$._v$40 && className(_el$62, _p$._v$40 = _v$40);
14502
- _v$41 !== _p$._v$41 && className(_el$63, _p$._v$41 = _v$41);
14503
- _v$42 !== _p$._v$42 && className(_el$64, _p$._v$42 = _v$42);
14504
- _v$43 !== _p$._v$43 && className(_el$68, _p$._v$43 = _v$43);
14505
- _v$44 !== _p$._v$44 && className(_el$75, _p$._v$44 = _v$44);
14506
- _v$45 !== _p$._v$45 && className(_el$76, _p$._v$45 = _v$45);
14507
- _v$46 !== _p$._v$46 && className(_el$77, _p$._v$46 = _v$46);
14508
- _v$47 !== _p$._v$47 && (_el$77.disabled = _p$._v$47 = _v$47);
14509
- _v$48 !== _p$._v$48 && className(_el$78, _p$._v$48 = _v$48);
14510
- _v$49 !== _p$._v$49 && className(_el$79, _p$._v$49 = _v$49);
14511
- _v$50 !== _p$._v$50 && (_el$79.disabled = _p$._v$50 = _v$50);
14512
- _v$51 !== _p$._v$51 && className(_el$80, _p$._v$51 = _v$51);
14513
- _v$52 !== _p$._v$52 && className(_el$81, _p$._v$52 = _v$52);
14514
- _v$53 !== _p$._v$53 && (_el$81.disabled = _p$._v$53 = _v$53);
14515
- _v$54 !== _p$._v$54 && className(_el$82, _p$._v$54 = _v$54);
14516
- _v$55 !== _p$._v$55 && className(_el$83, _p$._v$55 = _v$55);
14517
- _v$56 !== _p$._v$56 && (_el$83.disabled = _p$._v$56 = _v$56);
14518
- _v$57 !== _p$._v$57 && className(_el$84, _p$._v$57 = _v$57);
14519
- _v$58 !== _p$._v$58 && className(_el$85, _p$._v$58 = _v$58);
14520
- _v$59 !== _p$._v$59 && (_el$85.disabled = _p$._v$59 = _v$59);
14521
- _v$60 !== _p$._v$60 && className(_el$86, _p$._v$60 = _v$60);
14522
- _v$61 !== _p$._v$61 && className(_el$96, _p$._v$61 = _v$61);
14523
- _v$62 !== _p$._v$62 && ((_p$._v$62 = _v$62) != null ? _el$97.style.setProperty("padding", _v$62) : _el$97.style.removeProperty("padding"));
14524
- _v$63 !== _p$._v$63 && className(_el$98, _p$._v$63 = _v$63);
14525
- _v$64 !== _p$._v$64 && ((_p$._v$64 = _v$64) != null ? _el$99.style.setProperty("padding", _v$64) : _el$99.style.removeProperty("padding"));
14475
+ _v$40 !== _p$.e && className(_el$62, _p$.e = _v$40);
14476
+ _v$41 !== _p$.t && className(_el$63, _p$.t = _v$41);
14477
+ _v$42 !== _p$.a && className(_el$64, _p$.a = _v$42);
14478
+ _v$43 !== _p$.o && className(_el$68, _p$.o = _v$43);
14479
+ _v$44 !== _p$.i && className(_el$75, _p$.i = _v$44);
14480
+ _v$45 !== _p$.n && className(_el$76, _p$.n = _v$45);
14481
+ _v$46 !== _p$.s && className(_el$77, _p$.s = _v$46);
14482
+ _v$47 !== _p$.h && (_el$77.disabled = _p$.h = _v$47);
14483
+ _v$48 !== _p$.r && className(_el$78, _p$.r = _v$48);
14484
+ _v$49 !== _p$.d && className(_el$79, _p$.d = _v$49);
14485
+ _v$50 !== _p$.l && (_el$79.disabled = _p$.l = _v$50);
14486
+ _v$51 !== _p$.u && className(_el$80, _p$.u = _v$51);
14487
+ _v$52 !== _p$.c && className(_el$81, _p$.c = _v$52);
14488
+ _v$53 !== _p$.w && (_el$81.disabled = _p$.w = _v$53);
14489
+ _v$54 !== _p$.m && className(_el$82, _p$.m = _v$54);
14490
+ _v$55 !== _p$.f && className(_el$83, _p$.f = _v$55);
14491
+ _v$56 !== _p$.y && (_el$83.disabled = _p$.y = _v$56);
14492
+ _v$57 !== _p$.g && className(_el$84, _p$.g = _v$57);
14493
+ _v$58 !== _p$.p && className(_el$85, _p$.p = _v$58);
14494
+ _v$59 !== _p$.b && (_el$85.disabled = _p$.b = _v$59);
14495
+ _v$60 !== _p$.T && className(_el$86, _p$.T = _v$60);
14496
+ _v$61 !== _p$.A && className(_el$96, _p$.A = _v$61);
14497
+ _v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$97.style.setProperty("padding", _v$62) : _el$97.style.removeProperty("padding"));
14498
+ _v$63 !== _p$.I && className(_el$98, _p$.I = _v$63);
14499
+ _v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$99.style.setProperty("padding", _v$64) : _el$99.style.removeProperty("padding"));
14526
14500
  return _p$;
14527
14501
  }, {
14528
- _v$40: void 0,
14529
- _v$41: void 0,
14530
- _v$42: void 0,
14531
- _v$43: void 0,
14532
- _v$44: void 0,
14533
- _v$45: void 0,
14534
- _v$46: void 0,
14535
- _v$47: void 0,
14536
- _v$48: void 0,
14537
- _v$49: void 0,
14538
- _v$50: void 0,
14539
- _v$51: void 0,
14540
- _v$52: void 0,
14541
- _v$53: void 0,
14542
- _v$54: void 0,
14543
- _v$55: void 0,
14544
- _v$56: void 0,
14545
- _v$57: void 0,
14546
- _v$58: void 0,
14547
- _v$59: void 0,
14548
- _v$60: void 0,
14549
- _v$61: void 0,
14550
- _v$62: void 0,
14551
- _v$63: void 0,
14552
- _v$64: void 0
14502
+ e: void 0,
14503
+ t: void 0,
14504
+ a: void 0,
14505
+ o: void 0,
14506
+ i: void 0,
14507
+ n: void 0,
14508
+ s: void 0,
14509
+ h: void 0,
14510
+ r: void 0,
14511
+ d: void 0,
14512
+ l: void 0,
14513
+ u: void 0,
14514
+ c: void 0,
14515
+ w: void 0,
14516
+ m: void 0,
14517
+ f: void 0,
14518
+ y: void 0,
14519
+ g: void 0,
14520
+ p: void 0,
14521
+ b: void 0,
14522
+ T: void 0,
14523
+ A: void 0,
14524
+ O: void 0,
14525
+ I: void 0,
14526
+ S: void 0
14553
14527
  });
14554
14528
  return _el$62;
14555
14529
  }
@@ -14605,7 +14579,7 @@ var init_Devtools = __esm({
14605
14579
  return activeMutation();
14606
14580
  },
14607
14581
  get children() {
14608
- const _el$101 = _tmpl$322(), _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$105 = _el$104.firstChild, _el$106 = _el$105.firstChild, _el$107 = _el$105.nextSibling, _el$108 = _el$104.nextSibling, _el$109 = _el$108.firstChild, _el$110 = _el$109.nextSibling, _el$111 = _el$103.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling;
14582
+ var _el$101 = _tmpl$322(), _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$105 = _el$104.firstChild, _el$106 = _el$105.firstChild, _el$107 = _el$105.nextSibling, _el$108 = _el$104.nextSibling, _el$109 = _el$108.firstChild, _el$110 = _el$109.nextSibling, _el$111 = _el$103.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling;
14609
14583
  insert(_el$106, createComponent(Show, {
14610
14584
  get when() {
14611
14585
  return activeMutation().options.mutationKey;
@@ -14659,33 +14633,33 @@ var init_Devtools = __esm({
14659
14633
  }
14660
14634
  }));
14661
14635
  createRenderEffect((_p$) => {
14662
- const _v$65 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$68 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$70 = tokens.size[2], _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = tokens.size[2], _v$73 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$74 = tokens.size[2], _v$75 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$76 = tokens.size[2];
14663
- _v$65 !== _p$._v$65 && className(_el$101, _p$._v$65 = _v$65);
14664
- _v$66 !== _p$._v$66 && className(_el$102, _p$._v$66 = _v$66);
14665
- _v$67 !== _p$._v$67 && className(_el$103, _p$._v$67 = _v$67);
14666
- _v$68 !== _p$._v$68 && className(_el$107, _p$._v$68 = _v$68);
14667
- _v$69 !== _p$._v$69 && className(_el$111, _p$._v$69 = _v$69);
14668
- _v$70 !== _p$._v$70 && ((_p$._v$70 = _v$70) != null ? _el$112.style.setProperty("padding", _v$70) : _el$112.style.removeProperty("padding"));
14669
- _v$71 !== _p$._v$71 && className(_el$113, _p$._v$71 = _v$71);
14670
- _v$72 !== _p$._v$72 && ((_p$._v$72 = _v$72) != null ? _el$114.style.setProperty("padding", _v$72) : _el$114.style.removeProperty("padding"));
14671
- _v$73 !== _p$._v$73 && className(_el$115, _p$._v$73 = _v$73);
14672
- _v$74 !== _p$._v$74 && ((_p$._v$74 = _v$74) != null ? _el$116.style.setProperty("padding", _v$74) : _el$116.style.removeProperty("padding"));
14673
- _v$75 !== _p$._v$75 && className(_el$117, _p$._v$75 = _v$75);
14674
- _v$76 !== _p$._v$76 && ((_p$._v$76 = _v$76) != null ? _el$118.style.setProperty("padding", _v$76) : _el$118.style.removeProperty("padding"));
14636
+ var _v$65 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$68 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$70 = tokens.size[2], _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = tokens.size[2], _v$73 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$74 = tokens.size[2], _v$75 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$76 = tokens.size[2];
14637
+ _v$65 !== _p$.e && className(_el$101, _p$.e = _v$65);
14638
+ _v$66 !== _p$.t && className(_el$102, _p$.t = _v$66);
14639
+ _v$67 !== _p$.a && className(_el$103, _p$.a = _v$67);
14640
+ _v$68 !== _p$.o && className(_el$107, _p$.o = _v$68);
14641
+ _v$69 !== _p$.i && className(_el$111, _p$.i = _v$69);
14642
+ _v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$112.style.setProperty("padding", _v$70) : _el$112.style.removeProperty("padding"));
14643
+ _v$71 !== _p$.s && className(_el$113, _p$.s = _v$71);
14644
+ _v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$114.style.setProperty("padding", _v$72) : _el$114.style.removeProperty("padding"));
14645
+ _v$73 !== _p$.r && className(_el$115, _p$.r = _v$73);
14646
+ _v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$116.style.setProperty("padding", _v$74) : _el$116.style.removeProperty("padding"));
14647
+ _v$75 !== _p$.l && className(_el$117, _p$.l = _v$75);
14648
+ _v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$118.style.setProperty("padding", _v$76) : _el$118.style.removeProperty("padding"));
14675
14649
  return _p$;
14676
14650
  }, {
14677
- _v$65: void 0,
14678
- _v$66: void 0,
14679
- _v$67: void 0,
14680
- _v$68: void 0,
14681
- _v$69: void 0,
14682
- _v$70: void 0,
14683
- _v$71: void 0,
14684
- _v$72: void 0,
14685
- _v$73: void 0,
14686
- _v$74: void 0,
14687
- _v$75: void 0,
14688
- _v$76: void 0
14651
+ e: void 0,
14652
+ t: void 0,
14653
+ a: void 0,
14654
+ o: void 0,
14655
+ i: void 0,
14656
+ n: void 0,
14657
+ s: void 0,
14658
+ h: void 0,
14659
+ r: void 0,
14660
+ d: void 0,
14661
+ l: void 0,
14662
+ u: void 0
14689
14663
  });
14690
14664
  return _el$101;
14691
14665
  }