react-reason-editor-sidebar 0.1.4 → 0.1.6

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/dist/index.mjs CHANGED
@@ -476,7 +476,7 @@ function Xe(t) {
476
476
  }
477
477
  Ye(Xe, "useCallbackRef");
478
478
  //#endregion
479
- //#region ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.19+c32617ced709d283/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
479
+ //#region ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.19+7e9dce1c88b42eaf/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
480
480
  var Ze = Object.defineProperty, Qe = (e, t) => Ze(e, "name", {
481
481
  value: t,
482
482
  configurable: !0
@@ -639,7 +639,7 @@ function ut(e, t, n, { discrete: r }) {
639
639
  }
640
640
  Qe(ut, "handleAndDispatchCustomEvent");
641
641
  //#endregion
642
- //#region ../../node_modules/.bun/@radix-ui+react-focus-scope@1.1.16+c32617ced709d283/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
642
+ //#region ../../node_modules/.bun/@radix-ui+react-focus-scope@1.1.16+7e9dce1c88b42eaf/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
643
643
  var dt = Object.defineProperty, ft = (e, t) => dt(e, "name", {
644
644
  value: t,
645
645
  configurable: !0
@@ -791,7 +791,7 @@ function Dt(e) {
791
791
  }
792
792
  ft(Dt, "removeLinks");
793
793
  //#endregion
794
- //#region ../../node_modules/.bun/@radix-ui+react-portal@1.1.17+c32617ced709d283/node_modules/@radix-ui/react-portal/dist/index.mjs
794
+ //#region ../../node_modules/.bun/@radix-ui+react-portal@1.1.17+7e9dce1c88b42eaf/node_modules/@radix-ui/react-portal/dist/index.mjs
795
795
  var Ot = Object.defineProperty, kt = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ ((e, t) => Ot(e, "name", {
796
796
  value: t,
797
797
  configurable: !0
@@ -1119,37 +1119,36 @@ fn.defaultProps = {
1119
1119
  };
1120
1120
  //#endregion
1121
1121
  //#region ../../node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
1122
- var pn, mn = function() {
1123
- if (pn) return pn;
1122
+ var pn = function() {
1124
1123
  if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
1125
1124
  };
1126
1125
  //#endregion
1127
1126
  //#region ../../node_modules/.bun/react-style-singleton@2.2.3+03aa47d54245a271/node_modules/react-style-singleton/dist/es2015/singleton.js
1128
- function hn() {
1127
+ function mn() {
1129
1128
  if (!document) return null;
1130
1129
  var e = document.createElement("style");
1131
1130
  e.type = "text/css";
1132
- var t = mn();
1131
+ var t = pn();
1133
1132
  return t && e.setAttribute("nonce", t), e;
1134
1133
  }
1135
- function gn(e, t) {
1134
+ function hn(e, t) {
1136
1135
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
1137
1136
  }
1138
- function _n(e) {
1137
+ function gn(e) {
1139
1138
  (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
1140
1139
  }
1141
- var vn = function() {
1140
+ var _n = function() {
1142
1141
  var e = 0, t = null;
1143
1142
  return {
1144
1143
  add: function(n) {
1145
- e == 0 && (t = hn()) && (gn(t, n), _n(t)), e++;
1144
+ e == 0 && (t = mn()) && (hn(t, n), gn(t)), e++;
1146
1145
  },
1147
1146
  remove: function() {
1148
1147
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
1149
1148
  }
1150
1149
  };
1151
- }, yn = function() {
1152
- var t = vn();
1150
+ }, vn = function() {
1151
+ var t = _n();
1153
1152
  return function(n, r) {
1154
1153
  e.useEffect(function() {
1155
1154
  return t.add(n), function() {
@@ -1157,43 +1156,43 @@ var vn = function() {
1157
1156
  };
1158
1157
  }, [n && r]);
1159
1158
  };
1160
- }, bn = function() {
1161
- var e = yn();
1159
+ }, yn = function() {
1160
+ var e = vn();
1162
1161
  return function(t) {
1163
1162
  var n = t.styles, r = t.dynamic;
1164
1163
  return e(n, r), null;
1165
1164
  };
1166
- }, xn = {
1165
+ }, bn = {
1167
1166
  left: 0,
1168
1167
  top: 0,
1169
1168
  right: 0,
1170
1169
  gap: 0
1171
- }, Sn = function(e) {
1170
+ }, xn = function(e) {
1172
1171
  return parseInt(e || "", 10) || 0;
1173
- }, Cn = function(e) {
1172
+ }, Sn = function(e) {
1174
1173
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
1175
1174
  return [
1176
- Sn(n),
1177
- Sn(r),
1178
- Sn(i)
1175
+ xn(n),
1176
+ xn(r),
1177
+ xn(i)
1179
1178
  ];
1180
- }, wn = function(e) {
1181
- if (e === void 0 && (e = "margin"), typeof window > "u") return xn;
1182
- var t = Cn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
1179
+ }, Cn = function(e) {
1180
+ if (e === void 0 && (e = "margin"), typeof window > "u") return bn;
1181
+ var t = Sn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
1183
1182
  return {
1184
1183
  left: t[0],
1185
1184
  top: t[1],
1186
1185
  right: t[2],
1187
1186
  gap: Math.max(0, r - n + t[2] - t[0])
1188
1187
  };
1189
- }, Tn = bn(), En = "data-scroll-locked", Dn = function(e, t, n, r) {
1188
+ }, wn = yn(), Tn = "data-scroll-locked", En = function(e, t, n, r) {
1190
1189
  var i = e.left, a = e.top, o = e.right, s = e.gap;
1191
1190
  return n === void 0 && (n = "margin"), `
1192
1191
  .${Zt} {
1193
1192
  overflow: hidden ${r};
1194
1193
  padding-right: ${s}px ${r};
1195
1194
  }
1196
- body[${En}] {
1195
+ body[${Tn}] {
1197
1196
  overflow: hidden ${r};
1198
1197
  overscroll-behavior: contain;
1199
1198
  ${[
@@ -1226,106 +1225,106 @@ var vn = function() {
1226
1225
  margin-right: 0 ${r};
1227
1226
  }
1228
1227
 
1229
- body[${En}] {
1228
+ body[${Tn}] {
1230
1229
  ${Qt}: ${s}px;
1231
1230
  }
1232
1231
  `;
1233
- }, On = function() {
1232
+ }, Dn = function() {
1234
1233
  var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
1235
1234
  return isFinite(e) ? e : 0;
1236
- }, kn = function() {
1235
+ }, On = function() {
1237
1236
  e.useEffect(function() {
1238
- return document.body.setAttribute(En, (On() + 1).toString()), function() {
1239
- var e = On() - 1;
1240
- e <= 0 ? document.body.removeAttribute(En) : document.body.setAttribute(En, e.toString());
1237
+ return document.body.setAttribute(Tn, (Dn() + 1).toString()), function() {
1238
+ var e = Dn() - 1;
1239
+ e <= 0 ? document.body.removeAttribute(Tn) : document.body.setAttribute(Tn, e.toString());
1241
1240
  };
1242
1241
  }, []);
1243
- }, An = function(t) {
1242
+ }, kn = function(t) {
1244
1243
  var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
1245
- kn();
1244
+ On();
1246
1245
  var o = e.useMemo(function() {
1247
- return wn(a);
1246
+ return Cn(a);
1248
1247
  }, [a]);
1249
- return e.createElement(Tn, { styles: Dn(o, !n, a, r ? "" : "!important") });
1250
- }, jn = !1;
1248
+ return e.createElement(wn, { styles: En(o, !n, a, r ? "" : "!important") });
1249
+ }, An = !1;
1251
1250
  if (typeof window < "u") try {
1252
- var Mn = Object.defineProperty({}, "passive", { get: function() {
1253
- return jn = !0, !0;
1251
+ var jn = Object.defineProperty({}, "passive", { get: function() {
1252
+ return An = !0, !0;
1254
1253
  } });
1255
- window.addEventListener("test", Mn, Mn), window.removeEventListener("test", Mn, Mn);
1254
+ window.addEventListener("test", jn, jn), window.removeEventListener("test", jn, jn);
1256
1255
  } catch {
1257
- jn = !1;
1256
+ An = !1;
1258
1257
  }
1259
- var Nn = jn ? { passive: !1 } : !1, Pn = function(e) {
1258
+ var Mn = An ? { passive: !1 } : !1, Nn = function(e) {
1260
1259
  return e.tagName === "TEXTAREA";
1261
- }, Fn = function(e, t) {
1260
+ }, Pn = function(e, t) {
1262
1261
  if (!(e instanceof Element)) return !1;
1263
1262
  var n = window.getComputedStyle(e);
1264
- return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Pn(e) && n[t] === "visible");
1263
+ return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Nn(e) && n[t] === "visible");
1264
+ }, Fn = function(e) {
1265
+ return Pn(e, "overflowY");
1265
1266
  }, In = function(e) {
1266
- return Fn(e, "overflowY");
1267
- }, Ln = function(e) {
1268
- return Fn(e, "overflowX");
1269
- }, Rn = function(e, t) {
1267
+ return Pn(e, "overflowX");
1268
+ }, Ln = function(e, t) {
1270
1269
  var n = t.ownerDocument, r = t;
1271
1270
  do {
1272
- if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Vn(e, r)) {
1273
- var i = Hn(e, r);
1271
+ if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Bn(e, r)) {
1272
+ var i = Vn(e, r);
1274
1273
  if (i[1] > i[2]) return !0;
1275
1274
  }
1276
1275
  r = r.parentNode;
1277
1276
  } while (r && r !== n.body);
1278
1277
  return !1;
1279
- }, zn = function(e) {
1278
+ }, Rn = function(e) {
1280
1279
  return [
1281
1280
  e.scrollTop,
1282
1281
  e.scrollHeight,
1283
1282
  e.clientHeight
1284
1283
  ];
1285
- }, Bn = function(e) {
1284
+ }, zn = function(e) {
1286
1285
  return [
1287
1286
  e.scrollLeft,
1288
1287
  e.scrollWidth,
1289
1288
  e.clientWidth
1290
1289
  ];
1290
+ }, Bn = function(e, t) {
1291
+ return e === "v" ? Fn(t) : In(t);
1291
1292
  }, Vn = function(e, t) {
1292
- return e === "v" ? In(t) : Ln(t);
1293
+ return e === "v" ? Rn(t) : zn(t);
1293
1294
  }, Hn = function(e, t) {
1294
- return e === "v" ? zn(t) : Bn(t);
1295
- }, Un = function(e, t) {
1296
1295
  return e === "h" && t === "rtl" ? -1 : 1;
1297
- }, Wn = function(e, t, n, r, i) {
1298
- var a = Un(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
1296
+ }, Un = function(e, t, n, r, i) {
1297
+ var a = Hn(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
1299
1298
  do {
1300
1299
  if (!s) break;
1301
- var p = Hn(e, s), m = p[0], h = p[1] - p[2] - a * m;
1302
- (m || h) && Vn(e, s) && (d += h, f += m);
1300
+ var p = Vn(e, s), m = p[0], h = p[1] - p[2] - a * m;
1301
+ (m || h) && Bn(e, s) && (d += h, f += m);
1303
1302
  var g = s.parentNode;
1304
1303
  s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
1305
1304
  } while (!c && s !== document.body || c && (t.contains(s) || t === s));
1306
1305
  return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
1307
- }, Gn = function(e) {
1306
+ }, Wn = function(e) {
1308
1307
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
1309
- }, Kn = function(e) {
1308
+ }, Gn = function(e) {
1310
1309
  return [e.deltaX, e.deltaY];
1311
- }, qn = function(e) {
1310
+ }, Kn = function(e) {
1312
1311
  return e && "current" in e ? e.current : e;
1313
- }, Jn = function(e, t) {
1312
+ }, qn = function(e, t) {
1314
1313
  return e[0] === t[0] && e[1] === t[1];
1315
- }, Yn = function(e) {
1314
+ }, Jn = function(e) {
1316
1315
  return `
1317
1316
  .block-interactivity-${e} {pointer-events: none;}
1318
1317
  .allow-interactivity-${e} {pointer-events: all;}
1319
1318
  `;
1320
- }, Xn = 0, Zn = [];
1321
- function Qn(t) {
1322
- var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(Xn++)[0], o = e.useState(bn)[0], s = e.useRef(t);
1319
+ }, Yn = 0, Xn = [];
1320
+ function Zn(t) {
1321
+ var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(Yn++)[0], o = e.useState(yn)[0], s = e.useRef(t);
1323
1322
  e.useEffect(function() {
1324
1323
  s.current = t;
1325
1324
  }, [t]), e.useEffect(function() {
1326
1325
  if (t.inert) {
1327
1326
  document.body.classList.add(`block-interactivity-${a}`);
1328
- var e = Jt([t.lockRef.current], (t.shards || []).map(qn), !0).filter(Boolean);
1327
+ var e = Jt([t.lockRef.current], (t.shards || []).map(Kn), !0).filter(Boolean);
1329
1328
  return e.forEach(function(e) {
1330
1329
  return e.classList.add(`allow-interactivity-${a}`);
1331
1330
  }), function() {
@@ -1341,28 +1340,28 @@ function Qn(t) {
1341
1340
  ]);
1342
1341
  var c = e.useCallback(function(e, t) {
1343
1342
  if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
1344
- var n = Gn(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
1343
+ var n = Wn(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
1345
1344
  if ("touches" in e && d === "h" && u.type === "range") return !1;
1346
1345
  var f = window.getSelection(), p = f && f.anchorNode;
1347
1346
  if (p && (p === u || p.contains(u))) return !1;
1348
- var m = Rn(d, u);
1347
+ var m = Ln(d, u);
1349
1348
  if (!m) return !0;
1350
- if (m ? l = d : (l = d === "v" ? "h" : "v", m = Rn(d, u)), !m) return !1;
1349
+ if (m ? l = d : (l = d === "v" ? "h" : "v", m = Ln(d, u)), !m) return !1;
1351
1350
  if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
1352
1351
  var h = i.current || l;
1353
- return Wn(h, t, e, h === "h" ? o : c, !0);
1352
+ return Un(h, t, e, h === "h" ? o : c, !0);
1354
1353
  }, []), l = e.useCallback(function(e) {
1355
1354
  var t = e;
1356
- if (!(!Zn.length || Zn[Zn.length - 1] !== o)) {
1357
- var r = "deltaY" in t ? Kn(t) : Gn(t), i = n.current.filter(function(e) {
1358
- return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && Jn(e.delta, r);
1355
+ if (Xn.length && Xn[Xn.length - 1] === o) {
1356
+ var r = "deltaY" in t ? Gn(t) : Wn(t), i = n.current.filter(function(e) {
1357
+ return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && qn(e.delta, r);
1359
1358
  })[0];
1360
1359
  if (i && i.should) {
1361
1360
  t.cancelable && t.preventDefault();
1362
1361
  return;
1363
1362
  }
1364
1363
  if (!i) {
1365
- var a = (s.current.shards || []).map(qn).filter(Boolean).filter(function(e) {
1364
+ var a = (s.current.shards || []).map(Kn).filter(Boolean).filter(function(e) {
1366
1365
  return e.contains(t.target);
1367
1366
  });
1368
1367
  (a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
@@ -1374,7 +1373,7 @@ function Qn(t) {
1374
1373
  delta: t,
1375
1374
  target: r,
1376
1375
  should: i,
1377
- shadowParent: $n(r)
1376
+ shadowParent: Qn(r)
1378
1377
  };
1379
1378
  n.current.push(a), setTimeout(function() {
1380
1379
  n.current = n.current.filter(function(e) {
@@ -1382,97 +1381,97 @@ function Qn(t) {
1382
1381
  });
1383
1382
  }, 1);
1384
1383
  }, []), d = e.useCallback(function(e) {
1385
- r.current = Gn(e), i.current = void 0;
1384
+ r.current = Wn(e), i.current = void 0;
1386
1385
  }, []), f = e.useCallback(function(e) {
1387
- u(e.type, Kn(e), e.target, c(e, t.lockRef.current));
1388
- }, []), p = e.useCallback(function(e) {
1389
1386
  u(e.type, Gn(e), e.target, c(e, t.lockRef.current));
1387
+ }, []), p = e.useCallback(function(e) {
1388
+ u(e.type, Wn(e), e.target, c(e, t.lockRef.current));
1390
1389
  }, []);
1391
1390
  e.useEffect(function() {
1392
- return Zn.push(o), t.setCallbacks({
1391
+ return Xn.push(o), t.setCallbacks({
1393
1392
  onScrollCapture: f,
1394
1393
  onWheelCapture: f,
1395
1394
  onTouchMoveCapture: p
1396
- }), document.addEventListener("wheel", l, Nn), document.addEventListener("touchmove", l, Nn), document.addEventListener("touchstart", d, Nn), function() {
1397
- Zn = Zn.filter(function(e) {
1395
+ }), document.addEventListener("wheel", l, Mn), document.addEventListener("touchmove", l, Mn), document.addEventListener("touchstart", d, Mn), function() {
1396
+ Xn = Xn.filter(function(e) {
1398
1397
  return e !== o;
1399
- }), document.removeEventListener("wheel", l, Nn), document.removeEventListener("touchmove", l, Nn), document.removeEventListener("touchstart", d, Nn);
1398
+ }), document.removeEventListener("wheel", l, Mn), document.removeEventListener("touchmove", l, Mn), document.removeEventListener("touchstart", d, Mn);
1400
1399
  };
1401
1400
  }, []);
1402
1401
  var m = t.removeScrollBar, h = t.inert;
1403
- return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: Yn(a) }) : null, m ? e.createElement(An, {
1402
+ return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: Jn(a) }) : null, m ? e.createElement(kn, {
1404
1403
  noRelative: t.noRelative,
1405
1404
  gapMode: t.gapMode
1406
1405
  }) : null);
1407
1406
  }
1408
- function $n(e) {
1407
+ function Qn(e) {
1409
1408
  for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1410
1409
  return t;
1411
1410
  }
1412
1411
  //#endregion
1413
1412
  //#region ../../node_modules/.bun/react-remove-scroll@2.7.2+03aa47d54245a271/node_modules/react-remove-scroll/dist/es2015/sidecar.js
1414
- var er = ln(un, Qn), tr = e.forwardRef(function(t, n) {
1413
+ var $n = ln(un, Zn), er = e.forwardRef(function(t, n) {
1415
1414
  return e.createElement(fn, Kt({}, t, {
1416
1415
  ref: n,
1417
- sideCar: er
1416
+ sideCar: $n
1418
1417
  }));
1419
1418
  });
1420
- tr.classNames = fn.classNames;
1419
+ er.classNames = fn.classNames;
1421
1420
  //#endregion
1422
1421
  //#region ../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
1423
- var nr = function(e) {
1422
+ var tr = function(e) {
1424
1423
  return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
1425
- }, rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = {}, or = 0, sr = function(e) {
1426
- return e && (e.host || sr(e.parentNode));
1427
- }, cr = function(e, t) {
1424
+ }, nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = {}, ar = 0, or = function(e) {
1425
+ return e && (e.host || or(e.parentNode));
1426
+ }, sr = function(e, t) {
1428
1427
  return t.map(function(t) {
1429
1428
  if (e.contains(t)) return t;
1430
- var n = sr(t);
1429
+ var n = or(t);
1431
1430
  return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
1432
1431
  }).filter(function(e) {
1433
1432
  return !!e;
1434
1433
  });
1435
- }, lr = function(e, t, n, r) {
1436
- var i = cr(t, Array.isArray(e) ? e : [e]);
1437
- ar[n] || (ar[n] = /* @__PURE__ */ new WeakMap());
1438
- var a = ar[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
1439
- !e || s.has(e) || (s.add(e), l(e.parentNode));
1434
+ }, cr = function(e, t, n, r) {
1435
+ var i = sr(t, Array.isArray(e) ? e : [e]);
1436
+ ir[n] || (ir[n] = /* @__PURE__ */ new WeakMap());
1437
+ var a = ir[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
1438
+ e && !s.has(e) && (s.add(e), l(e.parentNode));
1440
1439
  };
1441
1440
  i.forEach(l);
1442
1441
  var u = function(e) {
1443
- !e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
1442
+ e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
1444
1443
  if (s.has(e)) u(e);
1445
1444
  else try {
1446
- var t = e.getAttribute(r), i = t !== null && t !== "false", c = (rr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
1447
- rr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && ir.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
1445
+ var t = e.getAttribute(r), i = t !== null && t !== "false", c = (nr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
1446
+ nr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && rr.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
1448
1447
  } catch (t) {
1449
1448
  console.error("aria-hidden: cannot operate on ", e, t);
1450
1449
  }
1451
1450
  });
1452
1451
  };
1453
- return u(t), s.clear(), or++, function() {
1452
+ return u(t), s.clear(), ar++, function() {
1454
1453
  o.forEach(function(e) {
1455
- var t = rr.get(e) - 1, i = a.get(e) - 1;
1456
- rr.set(e, t), a.set(e, i), t || (ir.has(e) || e.removeAttribute(r), ir.delete(e)), i || e.removeAttribute(n);
1457
- }), or--, or || (rr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = {});
1454
+ var t = nr.get(e) - 1, i = a.get(e) - 1;
1455
+ nr.set(e, t), a.set(e, i), t || (rr.has(e) || e.removeAttribute(r), rr.delete(e)), i || e.removeAttribute(n);
1456
+ }), ar--, ar || (nr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = {});
1458
1457
  };
1459
- }, ur = function(e, t, n) {
1458
+ }, lr = function(e, t, n) {
1460
1459
  n === void 0 && (n = "data-aria-hidden");
1461
- var r = Array.from(Array.isArray(e) ? e : [e]), i = t || nr(e);
1462
- return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), lr(r, i, n, "aria-hidden")) : function() {
1460
+ var r = Array.from(Array.isArray(e) ? e : [e]), i = t || tr(e);
1461
+ return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), cr(r, i, n, "aria-hidden")) : function() {
1463
1462
  return null;
1464
1463
  };
1465
- }, dr = Object.defineProperty, fr = (e, t) => dr(e, "name", {
1464
+ }, ur = Object.defineProperty, dr = (e, t) => ur(e, "name", {
1466
1465
  value: t,
1467
1466
  configurable: !0
1468
- }), pr = "Dialog", [mr, hr] = /* @__PURE__ */ ce(pr), [gr, _r] = mr(pr), vr = /* @__PURE__ */ fr((t) => {
1467
+ }), fr = "Dialog", [pr, mr] = /* @__PURE__ */ ce(fr), [hr, gr] = pr(fr), _r = /* @__PURE__ */ dr((t) => {
1469
1468
  let { __scopeDialog: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = t, c = e.useRef(null), l = e.useRef(null), [u, d] = Ce({
1470
1469
  prop: i,
1471
1470
  defaultProp: a ?? !1,
1472
1471
  onChange: o,
1473
- caller: pr
1472
+ caller: fr
1474
1473
  }), [f, p] = e.useState(0), [m, h] = e.useState(0);
1475
- return /* @__PURE__ */ _(gr, {
1474
+ return /* @__PURE__ */ _(hr, {
1476
1475
  scope: n,
1477
1476
  triggerRef: c,
1478
1477
  contentRef: l,
@@ -1489,21 +1488,21 @@ var nr = function(e) {
1489
1488
  modal: s,
1490
1489
  children: r
1491
1490
  });
1492
- }, "Dialog"), yr = "DialogTrigger", br = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1493
- let { __scopeDialog: n, ...r } = e, i = _r(yr, n), a = G(t, i.triggerRef);
1491
+ }, "Dialog"), vr = "DialogTrigger", yr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1492
+ let { __scopeDialog: n, ...r } = e, i = gr(vr, n), a = G(t, i.triggerRef);
1494
1493
  return /* @__PURE__ */ _(Ke.button, {
1495
1494
  type: "button",
1496
1495
  "aria-haspopup": "dialog",
1497
1496
  "aria-expanded": i.open,
1498
1497
  "aria-controls": i.open ? i.contentId : void 0,
1499
- "data-state": Br(i.open),
1498
+ "data-state": zr(i.open),
1500
1499
  ...r,
1501
1500
  ref: a,
1502
1501
  onClick: V(e.onClick, i.onOpenToggle)
1503
1502
  });
1504
- }, "DialogTrigger")), xr = "DialogPortal", [Sr, Cr] = mr(xr, { forceMount: void 0 }), wr = /* @__PURE__ */ fr((t) => {
1505
- let { __scopeDialog: n, forceMount: r, children: i, container: a } = t, o = _r(xr, n);
1506
- return /* @__PURE__ */ _(Sr, {
1503
+ }, "DialogTrigger")), br = "DialogPortal", [xr, Sr] = pr(br, { forceMount: void 0 }), Cr = /* @__PURE__ */ dr((t) => {
1504
+ let { __scopeDialog: n, forceMount: r, children: i, container: a } = t, o = gr(br, n);
1505
+ return /* @__PURE__ */ _(xr, {
1507
1506
  scope: n,
1508
1507
  forceMount: r,
1509
1508
  children: e.Children.map(i, (e) => /* @__PURE__ */ _(Nt, {
@@ -1515,23 +1514,23 @@ var nr = function(e) {
1515
1514
  })
1516
1515
  }))
1517
1516
  });
1518
- }, "DialogPortal"), Tr = "DialogOverlay", Er = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1519
- let n = Cr(Tr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = _r(Tr, e.__scopeDialog);
1517
+ }, "DialogPortal"), wr = "DialogOverlay", Tr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1518
+ let n = Sr(wr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = gr(wr, e.__scopeDialog);
1520
1519
  return a.modal ? /* @__PURE__ */ _(Nt, {
1521
1520
  present: r || a.open,
1522
- children: /* @__PURE__ */ _(Or, {
1521
+ children: /* @__PURE__ */ _(Dr, {
1523
1522
  ...i,
1524
1523
  ref: t
1525
1524
  })
1526
1525
  }) : null;
1527
- }, "DialogOverlay")), Dr = /* @__PURE__ */ Ae("DialogOverlay.RemoveScroll"), Or = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1528
- let { __scopeDialog: n, ...r } = e, i = _r(Tr, n), a = G(t, at());
1529
- return /* @__PURE__ */ _(tr, {
1530
- as: Dr,
1526
+ }, "DialogOverlay")), Er = /* @__PURE__ */ Ae("DialogOverlay.RemoveScroll"), Dr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1527
+ let { __scopeDialog: n, ...r } = e, i = gr(wr, n), a = G(t, at());
1528
+ return /* @__PURE__ */ _(er, {
1529
+ as: Er,
1531
1530
  allowPinchZoom: !0,
1532
1531
  shards: [i.contentRef],
1533
1532
  children: /* @__PURE__ */ _(Ke.div, {
1534
- "data-state": Br(i.open),
1533
+ "data-state": zr(i.open),
1535
1534
  ...r,
1536
1535
  ref: a,
1537
1536
  style: {
@@ -1540,24 +1539,24 @@ var nr = function(e) {
1540
1539
  }
1541
1540
  })
1542
1541
  });
1543
- }, "DialogOverlayImpl")), kr = "DialogContent", Ar = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1544
- let n = Cr(kr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = _r(kr, e.__scopeDialog);
1542
+ }, "DialogOverlayImpl")), Or = "DialogContent", kr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1543
+ let n = Sr(Or, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = gr(Or, e.__scopeDialog);
1545
1544
  return /* @__PURE__ */ _(Nt, {
1546
1545
  present: r || a.open,
1547
- children: a.modal ? /* @__PURE__ */ _(jr, {
1546
+ children: a.modal ? /* @__PURE__ */ _(Ar, {
1548
1547
  ...i,
1549
1548
  ref: t
1550
- }) : /* @__PURE__ */ _(Mr, {
1549
+ }) : /* @__PURE__ */ _(jr, {
1551
1550
  ...i,
1552
1551
  ref: t
1553
1552
  })
1554
1553
  });
1555
- }, "DialogContent")), jr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(t, n) {
1556
- let r = _r(kr, t.__scopeDialog), i = e.useRef(null), a = G(n, r.contentRef, i);
1554
+ }, "DialogContent")), Ar = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(t, n) {
1555
+ let r = gr(Or, t.__scopeDialog), i = e.useRef(null), a = G(n, r.contentRef, i);
1557
1556
  return e.useEffect(() => {
1558
1557
  let e = i.current;
1559
- if (e) return ur(e);
1560
- }, []), /* @__PURE__ */ _(Nr, {
1558
+ if (e) return lr(e);
1559
+ }, []), /* @__PURE__ */ _(Mr, {
1561
1560
  ...t,
1562
1561
  ref: a,
1563
1562
  trapFocus: r.open,
@@ -1571,9 +1570,9 @@ var nr = function(e) {
1571
1570
  }),
1572
1571
  onFocusOutside: V(t.onFocusOutside, (e) => e.preventDefault())
1573
1572
  });
1574
- }, "DialogContentModal")), Mr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(t, n) {
1575
- let r = _r(kr, t.__scopeDialog), i = e.useRef(!1), a = e.useRef(!1);
1576
- return /* @__PURE__ */ _(Nr, {
1573
+ }, "DialogContentModal")), jr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(t, n) {
1574
+ let r = gr(Or, t.__scopeDialog), i = e.useRef(!1), a = e.useRef(!1);
1575
+ return /* @__PURE__ */ _(Mr, {
1577
1576
  ...t,
1578
1577
  ref: n,
1579
1578
  trapFocus: !1,
@@ -1587,8 +1586,8 @@ var nr = function(e) {
1587
1586
  r.triggerRef.current?.contains(n) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && a.current && e.preventDefault();
1588
1587
  }
1589
1588
  });
1590
- }, "DialogContentNonModal")), Nr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1591
- let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = _r(kr, n);
1589
+ }, "DialogContentNonModal")), Mr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1590
+ let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = gr(Or, n);
1592
1591
  return Wt(), /* @__PURE__ */ _(g, { children: /* @__PURE__ */ _(gt, {
1593
1592
  asChild: !0,
1594
1593
  loop: !0,
@@ -1600,29 +1599,29 @@ var nr = function(e) {
1600
1599
  id: s.contentId,
1601
1600
  "aria-describedby": s.descriptionPresent ? s.descriptionId : void 0,
1602
1601
  "aria-labelledby": s.titlePresent ? s.titleId : void 0,
1603
- "data-state": Br(s.open),
1602
+ "data-state": zr(s.open),
1604
1603
  ...o,
1605
1604
  ref: t,
1606
1605
  deferPointerDownOutside: !0,
1607
1606
  onDismiss: () => s.onOpenChange(!1)
1608
1607
  })
1609
1608
  }) });
1610
- }, "DialogContentImpl")), Pr = "DialogTitle", Fr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1611
- let { __scopeDialog: n, ...r } = e, i = _r(Pr, n), { setTitleCount: a } = i;
1609
+ }, "DialogContentImpl")), Nr = "DialogTitle", Pr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1610
+ let { __scopeDialog: n, ...r } = e, i = gr(Nr, n), { setTitleCount: a } = i;
1612
1611
  return K(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ _(Ke.h2, {
1613
1612
  id: i.titleId,
1614
1613
  ...r,
1615
1614
  ref: t
1616
1615
  });
1617
- }, "DialogTitle")), Ir = "DialogDescription", Lr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1618
- let { __scopeDialog: n, ...r } = e, i = _r(Ir, n), { setDescriptionCount: a } = i;
1616
+ }, "DialogTitle")), Fr = "DialogDescription", Ir = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1617
+ let { __scopeDialog: n, ...r } = e, i = gr(Fr, n), { setDescriptionCount: a } = i;
1619
1618
  return K(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ _(Ke.p, {
1620
1619
  id: i.descriptionId,
1621
1620
  ...r,
1622
1621
  ref: t
1623
1622
  });
1624
- }, "DialogDescription")), Rr = "DialogClose", zr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ fr(function(e, t) {
1625
- let { __scopeDialog: n, ...r } = e, i = _r(Rr, n);
1623
+ }, "DialogDescription")), Lr = "DialogClose", Rr = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ dr(function(e, t) {
1624
+ let { __scopeDialog: n, ...r } = e, i = gr(Lr, n);
1626
1625
  return /* @__PURE__ */ _(Ke.button, {
1627
1626
  type: "button",
1628
1627
  ...r,
@@ -1630,27 +1629,27 @@ var nr = function(e) {
1630
1629
  onClick: V(e.onClick, () => i.onOpenChange(!1))
1631
1630
  });
1632
1631
  }, "DialogClose"));
1633
- function Br(e) {
1632
+ function zr(e) {
1634
1633
  return e ? "open" : "closed";
1635
1634
  }
1636
- fr(Br, "getState");
1635
+ dr(zr, "getState");
1637
1636
  //#endregion
1638
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
1639
- var Vr = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1637
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
1638
+ var Br = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1640
1639
  //#endregion
1641
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
1642
- function Hr(e, t, n = []) {
1640
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
1641
+ function Vr(e, t, n = []) {
1643
1642
  if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
1644
1643
  return {
1645
- name: Vr(e),
1644
+ name: Br(e),
1646
1645
  size: 24,
1647
1646
  node: t,
1648
1647
  ...n.length > 0 ? { aliases: n } : {}
1649
1648
  };
1650
1649
  }
1651
1650
  //#endregion
1652
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
1653
- var Ur = (e) => {
1651
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
1652
+ var Hr = (e) => {
1654
1653
  let t = "", n = !1;
1655
1654
  for (let r of e) {
1656
1655
  if (r === "-" || r === "_" || r <= " ") {
@@ -1660,10 +1659,10 @@ var Ur = (e) => {
1660
1659
  t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
1661
1660
  }
1662
1661
  return t;
1663
- }, Wr = (e) => {
1664
- let t = Ur(e);
1662
+ }, Ur = (e) => {
1663
+ let t = Hr(e);
1665
1664
  return t.charAt(0).toUpperCase() + t.slice(1);
1666
- }, Gr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Kr = {
1665
+ }, Wr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Gr = {
1667
1666
  xmlns: "http://www.w3.org/2000/svg",
1668
1667
  width: 24,
1669
1668
  height: 24,
@@ -1675,23 +1674,23 @@ var Ur = (e) => {
1675
1674
  "stroke-linejoin": "round"
1676
1675
  };
1677
1676
  //#endregion
1678
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
1679
- function qr(e) {
1677
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
1678
+ function Kr(e) {
1680
1679
  return e != null;
1681
1680
  }
1682
- function Jr(e, t = {}) {
1683
- let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? Kr.width, a = e.size ?? e.height ?? Kr.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? Gr(...c) : Gr("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? Kr["stroke-width"]) * Number(e.size ?? e.width ?? Kr.width) / Number(t.size ?? t.width ?? Kr.width) : t.strokeWidth ?? Kr["stroke-width"];
1681
+ function qr(e, t = {}) {
1682
+ let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? Gr.width, a = e.size ?? e.height ?? Gr.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? Wr(...c) : Wr("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? Gr["stroke-width"]) * Number(e.size ?? e.width ?? Gr.width) / Number(t.size ?? t.width ?? Gr.width) : t.strokeWidth ?? Gr["stroke-width"];
1684
1683
  return [
1685
1684
  "svg",
1686
1685
  {
1687
- ...Object.entries(Kr).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
1686
+ ...Object.entries(Gr).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
1688
1687
  ..."color" in t && t.color && { [r("stroke")]: t.color },
1689
- ..."size" in t && qr(t.size) && {
1688
+ ..."size" in t && Kr(t.size) && {
1690
1689
  [r("width")]: t.size,
1691
1690
  [r("height")]: t.size
1692
1691
  },
1693
- ..."width" in t && qr(t.width) && { [r("width")]: t.width },
1694
- ..."height" in t && qr(t.height) && { [r("height")]: t.height },
1692
+ ..."width" in t && Kr(t.width) && { [r("width")]: t.width },
1693
+ ..."height" in t && Kr(t.height) && { [r("height")]: t.height },
1695
1694
  [r("stroke-width")]: u,
1696
1695
  ...l && { [r("class")]: l },
1697
1696
  [r("viewBox")]: `0 0 ${i} ${a}`,
@@ -1712,9 +1711,9 @@ function Jr(e, t = {}) {
1712
1711
  ];
1713
1712
  }
1714
1713
  //#endregion
1715
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
1716
- function Yr(e, t = {}) {
1717
- return Jr(e, {
1714
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
1715
+ function Jr(e, t = {}) {
1716
+ return qr(e, {
1718
1717
  ...t,
1719
1718
  attributeNames: {
1720
1719
  ...t.attributeNames,
@@ -1727,23 +1726,23 @@ function Yr(e, t = {}) {
1727
1726
  });
1728
1727
  }
1729
1728
  //#endregion
1730
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
1731
- var Xr = (e) => {
1729
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
1730
+ var Yr = (e) => {
1732
1731
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
1733
1732
  return !1;
1734
- }, Zr = i({}), Qr = () => l(Zr), $r = o(({ color: e, size: t, width: n, height: r, strokeWidth: i, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
1733
+ }, Xr = i({}), Zr = () => l(Xr), Qr = o(({ color: e, size: t, width: n, height: r, strokeWidth: i, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
1735
1734
  node: u,
1736
1735
  aliases: [],
1737
1736
  size: 24
1738
1737
  }, ...f }, p) => {
1739
- let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = Qr() ?? {}, b = !!l || Xr(f), [x, S, C = []] = Yr(d, {
1738
+ let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = Zr() ?? {}, b = !!l || Yr(f), [x, S, C = []] = Jr(d, {
1740
1739
  color: e ?? v,
1741
1740
  width: n ?? t ?? m,
1742
1741
  height: r ?? t ?? m,
1743
1742
  strokeWidth: i ?? h,
1744
1743
  absoluteStrokeWidth: o ?? g,
1745
1744
  nonScalingStroke: s ?? _,
1746
- className: Gr(y, c),
1745
+ className: Wr(y, c),
1747
1746
  hasA11yProp: b,
1748
1747
  attributes: f
1749
1748
  });
@@ -1753,19 +1752,19 @@ var Xr = (e) => {
1753
1752
  }, [...C.map(([e, t]) => a(e, t)), ...Array.isArray(l) ? l : [l]]);
1754
1753
  });
1755
1754
  //#endregion
1756
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
1755
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
1757
1756
  function q(e, t = [], n = []) {
1758
- let r = typeof e == "string" ? Hr(e, t, n) : e, i = o(({ className: e, ...t }, n) => a($r, {
1757
+ let r = typeof e == "string" ? Vr(e, t, n) : e, i = o(({ className: e, ...t }, n) => a(Qr, {
1759
1758
  ref: n,
1760
1759
  icon: r,
1761
1760
  className: e,
1762
1761
  ...t
1763
1762
  }));
1764
- return r.name && (i.displayName = Wr(r.name)), i;
1763
+ return r.name && (i.displayName = Ur(r.name)), i;
1765
1764
  }
1766
1765
  //#endregion
1767
- //#region ../../node_modules/.bun/lucide-react@1.42.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/icons/arrow-down-from-line.mjs
1768
- var ei = {
1766
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+0f58469d5b3bd39f/node_modules/lucide-react/dist/esm/icons/arrow-down-from-line.mjs
1767
+ var $r = {
1769
1768
  name: "arrow-down-from-line",
1770
1769
  size: 24,
1771
1770
  node: [
@@ -1783,8 +1782,8 @@ var ei = {
1783
1782
  }]
1784
1783
  ]
1785
1784
  };
1786
- ei.node;
1787
- var ti = q(ei), ni = {
1785
+ $r.node;
1786
+ var ei = q($r), ti = {
1788
1787
  name: "check",
1789
1788
  size: 24,
1790
1789
  node: [["path", {
@@ -1792,8 +1791,8 @@ var ti = q(ei), ni = {
1792
1791
  key: "1gmf2c"
1793
1792
  }]]
1794
1793
  };
1795
- ni.node;
1796
- var ri = q(ni), ii = {
1794
+ ti.node;
1795
+ var ni = q(ti), ri = {
1797
1796
  name: "chevron-down",
1798
1797
  size: 24,
1799
1798
  node: [["path", {
@@ -1801,8 +1800,8 @@ var ri = q(ni), ii = {
1801
1800
  key: "qrunsl"
1802
1801
  }]]
1803
1802
  };
1804
- ii.node;
1805
- var ai = q(ii), oi = {
1803
+ ri.node;
1804
+ var ii = q(ri), ai = {
1806
1805
  name: "chevron-right",
1807
1806
  size: 24,
1808
1807
  node: [["path", {
@@ -1810,8 +1809,8 @@ var ai = q(ii), oi = {
1810
1809
  key: "mthhwq"
1811
1810
  }]]
1812
1811
  };
1813
- oi.node;
1814
- var si = q(oi), ci = {
1812
+ ai.node;
1813
+ var oi = q(ai), si = {
1815
1814
  name: "chevrons-down-up",
1816
1815
  size: 24,
1817
1816
  node: [["path", {
@@ -1822,8 +1821,8 @@ var si = q(oi), ci = {
1822
1821
  key: "1kwcof"
1823
1822
  }]]
1824
1823
  };
1825
- ci.node;
1826
- var li = q(ci), ui = {
1824
+ si.node;
1825
+ var ci = q(si), li = {
1827
1826
  name: "chevrons-up-down",
1828
1827
  size: 24,
1829
1828
  node: [["path", {
@@ -1834,8 +1833,8 @@ var li = q(ci), ui = {
1834
1833
  key: "sgt6xg"
1835
1834
  }]]
1836
1835
  };
1837
- ui.node;
1838
- var di = q(ui), fi = {
1836
+ li.node;
1837
+ var ui = q(li), di = {
1839
1838
  name: "circle-x",
1840
1839
  size: 24,
1841
1840
  node: [
@@ -1856,8 +1855,8 @@ var di = q(ui), fi = {
1856
1855
  ],
1857
1856
  aliases: ["x-circle"]
1858
1857
  };
1859
- fi.node;
1860
- var pi = q(fi), mi = {
1858
+ di.node;
1859
+ var fi = q(di), pi = {
1861
1860
  name: "circle",
1862
1861
  size: 24,
1863
1862
  node: [["circle", {
@@ -1867,8 +1866,8 @@ var pi = q(fi), mi = {
1867
1866
  key: "1mglay"
1868
1867
  }]]
1869
1868
  };
1870
- mi.node;
1871
- var hi = q(mi), gi = {
1869
+ pi.node;
1870
+ var mi = q(pi), hi = {
1872
1871
  name: "clipboard-paste",
1873
1872
  size: 24,
1874
1873
  node: [
@@ -1898,8 +1897,8 @@ var hi = q(mi), gi = {
1898
1897
  }]
1899
1898
  ]
1900
1899
  };
1901
- gi.node;
1902
- var _i = q(gi), vi = {
1900
+ hi.node;
1901
+ var gi = q(hi), _i = {
1903
1902
  name: "clipboard",
1904
1903
  size: 24,
1905
1904
  node: [["rect", {
@@ -1915,8 +1914,8 @@ var _i = q(gi), vi = {
1915
1914
  key: "116196"
1916
1915
  }]]
1917
1916
  };
1918
- vi.node;
1919
- var yi = q(vi), bi = {
1917
+ _i.node;
1918
+ var vi = q(_i), yi = {
1920
1919
  name: "cloud",
1921
1920
  size: 24,
1922
1921
  node: [["path", {
@@ -1924,8 +1923,8 @@ var yi = q(vi), bi = {
1924
1923
  key: "p7xjir"
1925
1924
  }]]
1926
1925
  };
1927
- bi.node;
1928
- var xi = q(bi), Si = {
1926
+ yi.node;
1927
+ var bi = q(yi), xi = {
1929
1928
  name: "columns-2",
1930
1929
  size: 24,
1931
1930
  node: [["rect", {
@@ -1941,8 +1940,8 @@ var xi = q(bi), Si = {
1941
1940
  }]],
1942
1941
  aliases: ["columns"]
1943
1942
  };
1944
- Si.node;
1945
- var Ci = q(Si), wi = {
1943
+ xi.node;
1944
+ var Si = q(xi), Ci = {
1946
1945
  name: "copy",
1947
1946
  size: 24,
1948
1947
  node: [["rect", {
@@ -1958,8 +1957,8 @@ var Ci = q(Si), wi = {
1958
1957
  key: "zix9uf"
1959
1958
  }]]
1960
1959
  };
1961
- wi.node;
1962
- var Ti = q(wi), Ei = {
1960
+ Ci.node;
1961
+ var wi = q(Ci), Ti = {
1963
1962
  name: "database",
1964
1963
  size: 24,
1965
1964
  node: [
@@ -1980,8 +1979,8 @@ var Ti = q(wi), Ei = {
1980
1979
  }]
1981
1980
  ]
1982
1981
  };
1983
- Ei.node;
1984
- var Di = q(Ei), Oi = {
1982
+ Ti.node;
1983
+ var Ei = q(Ti), Di = {
1985
1984
  name: "ellipsis",
1986
1985
  size: 24,
1987
1986
  node: [
@@ -2006,55 +2005,55 @@ var Di = q(Ei), Oi = {
2006
2005
  ],
2007
2006
  aliases: ["more-horizontal"]
2008
2007
  };
2009
- Oi.node;
2010
- var ki = q(Oi), Ai = {
2011
- name: "file-plus-corner",
2008
+ Di.node;
2009
+ var Oi = q(Di), ki = {
2010
+ name: "file-plus",
2012
2011
  size: 24,
2013
2012
  node: [
2014
2013
  ["path", {
2015
- d: "M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",
2016
- key: "17jvcc"
2014
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
2015
+ key: "1oefj6"
2017
2016
  }],
2018
2017
  ["path", {
2019
2018
  d: "M14 2v5a1 1 0 0 0 1 1h5",
2020
2019
  key: "wfsgrz"
2021
2020
  }],
2022
2021
  ["path", {
2023
- d: "M14 19h6",
2024
- key: "bvotb8"
2022
+ d: "M9 15h6",
2023
+ key: "cctwl0"
2025
2024
  }],
2026
2025
  ["path", {
2027
- d: "M17 16v6",
2028
- key: "18yu1i"
2026
+ d: "M12 18v-6",
2027
+ key: "17g6i2"
2029
2028
  }]
2030
- ],
2031
- aliases: ["file-plus-2"]
2029
+ ]
2032
2030
  };
2033
- Ai.node;
2034
- var ji = q(Ai), Mi = {
2035
- name: "file-plus",
2031
+ ki.node;
2032
+ var Ai = q(ki), ji = {
2033
+ name: "file-plus-corner",
2036
2034
  size: 24,
2037
2035
  node: [
2038
2036
  ["path", {
2039
- d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
2040
- key: "1oefj6"
2037
+ d: "M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",
2038
+ key: "17jvcc"
2041
2039
  }],
2042
2040
  ["path", {
2043
2041
  d: "M14 2v5a1 1 0 0 0 1 1h5",
2044
2042
  key: "wfsgrz"
2045
2043
  }],
2046
2044
  ["path", {
2047
- d: "M9 15h6",
2048
- key: "cctwl0"
2045
+ d: "M14 19h6",
2046
+ key: "bvotb8"
2049
2047
  }],
2050
2048
  ["path", {
2051
- d: "M12 18v-6",
2052
- key: "17g6i2"
2049
+ d: "M17 16v6",
2050
+ key: "18yu1i"
2053
2051
  }]
2054
- ]
2052
+ ],
2053
+ aliases: ["file-plus-2"]
2055
2054
  };
2056
- Mi.node;
2057
- var Ni = q(Mi), Pi = {
2055
+ ji.node;
2056
+ var Mi = q(ji), Ni = {
2058
2057
  name: "file-text",
2059
2058
  size: 24,
2060
2059
  node: [
@@ -2080,8 +2079,8 @@ var Ni = q(Mi), Pi = {
2080
2079
  }]
2081
2080
  ]
2082
2081
  };
2083
- Pi.node;
2084
- var Fi = q(Pi), Ii = {
2082
+ Ni.node;
2083
+ var Pi = q(Ni), Fi = {
2085
2084
  name: "folder-open",
2086
2085
  size: 24,
2087
2086
  node: [["path", {
@@ -2089,8 +2088,8 @@ var Fi = q(Pi), Ii = {
2089
2088
  key: "usdka0"
2090
2089
  }]]
2091
2090
  };
2092
- Ii.node;
2093
- var Li = q(Ii), Ri = {
2091
+ Fi.node;
2092
+ var Ii = q(Fi), Li = {
2094
2093
  name: "folder-plus",
2095
2094
  size: 24,
2096
2095
  node: [
@@ -2108,8 +2107,8 @@ var Li = q(Ii), Ri = {
2108
2107
  }]
2109
2108
  ]
2110
2109
  };
2111
- Ri.node;
2112
- var zi = q(Ri), Bi = {
2110
+ Li.node;
2111
+ var Ri = q(Li), zi = {
2113
2112
  name: "folder",
2114
2113
  size: 24,
2115
2114
  node: [["path", {
@@ -2117,8 +2116,8 @@ var zi = q(Ri), Bi = {
2117
2116
  key: "1kt360"
2118
2117
  }]]
2119
2118
  };
2120
- Bi.node;
2121
- var Vi = q(Bi), Hi = {
2119
+ zi.node;
2120
+ var Bi = q(zi), Vi = {
2122
2121
  name: "folders",
2123
2122
  size: 24,
2124
2123
  node: [["path", {
@@ -2129,8 +2128,8 @@ var Vi = q(Bi), Hi = {
2129
2128
  key: "yxbcw3"
2130
2129
  }]]
2131
2130
  };
2132
- Hi.node;
2133
- var Ui = q(Hi), Wi = {
2131
+ Vi.node;
2132
+ var Hi = q(Vi), Ui = {
2134
2133
  name: "hard-drive",
2135
2134
  size: 24,
2136
2135
  node: [
@@ -2152,8 +2151,8 @@ var Ui = q(Hi), Wi = {
2152
2151
  }]
2153
2152
  ]
2154
2153
  };
2155
- Wi.node;
2156
- var Gi = q(Wi), Ki = {
2154
+ Ui.node;
2155
+ var Wi = q(Ui), Gi = {
2157
2156
  name: "hash",
2158
2157
  size: 24,
2159
2158
  node: [
@@ -2187,8 +2186,8 @@ var Gi = q(Wi), Ki = {
2187
2186
  }]
2188
2187
  ]
2189
2188
  };
2190
- Ki.node;
2191
- var qi = q(Ki), Ji = {
2189
+ Gi.node;
2190
+ var Ki = q(Gi), qi = {
2192
2191
  name: "info",
2193
2192
  size: 24,
2194
2193
  node: [
@@ -2208,8 +2207,8 @@ var qi = q(Ki), Ji = {
2208
2207
  }]
2209
2208
  ]
2210
2209
  };
2211
- Ji.node;
2212
- var Yi = q(Ji), Xi = {
2210
+ qi.node;
2211
+ var Ji = q(qi), Yi = {
2213
2212
  name: "layers",
2214
2213
  size: 24,
2215
2214
  node: [
@@ -2228,8 +2227,8 @@ var Yi = q(Ji), Xi = {
2228
2227
  ],
2229
2228
  aliases: ["layers-3"]
2230
2229
  };
2231
- Xi.node;
2232
- var Zi = q(Xi), Qi = {
2230
+ Yi.node;
2231
+ var Xi = q(Yi), Zi = {
2233
2232
  name: "lightbulb",
2234
2233
  size: 24,
2235
2234
  node: [
@@ -2247,8 +2246,8 @@ var Zi = q(Xi), Qi = {
2247
2246
  }]
2248
2247
  ]
2249
2248
  };
2250
- Qi.node;
2251
- var $i = q(Qi), ea = {
2249
+ Zi.node;
2250
+ var Qi = q(Zi), $i = {
2252
2251
  name: "link-2",
2253
2252
  size: 24,
2254
2253
  node: [
@@ -2269,8 +2268,8 @@ var $i = q(Qi), ea = {
2269
2268
  }]
2270
2269
  ]
2271
2270
  };
2272
- ea.node;
2273
- var ta = q(ea), na = {
2271
+ $i.node;
2272
+ var ea = q($i), ta = {
2274
2273
  name: "loader-circle",
2275
2274
  size: 24,
2276
2275
  node: [["path", {
@@ -2279,8 +2278,8 @@ var ta = q(ea), na = {
2279
2278
  }]],
2280
2279
  aliases: ["loader-2"]
2281
2280
  };
2282
- na.node;
2283
- var ra = q(na), ia = {
2281
+ ta.node;
2282
+ var na = q(ta), ra = {
2284
2283
  name: "log-in",
2285
2284
  size: 24,
2286
2285
  node: [
@@ -2298,8 +2297,8 @@ var ra = q(na), ia = {
2298
2297
  }]
2299
2298
  ]
2300
2299
  };
2301
- ia.node;
2302
- var aa = q(ia), oa = {
2300
+ ra.node;
2301
+ var ia = q(ra), aa = {
2303
2302
  name: "log-out",
2304
2303
  size: 24,
2305
2304
  node: [
@@ -2317,8 +2316,8 @@ var aa = q(ia), oa = {
2317
2316
  }]
2318
2317
  ]
2319
2318
  };
2320
- oa.node;
2321
- var sa = q(oa), ca = {
2319
+ aa.node;
2320
+ var oa = q(aa), sa = {
2322
2321
  name: "message-square-plus",
2323
2322
  size: 24,
2324
2323
  node: [
@@ -2336,8 +2335,8 @@ var sa = q(oa), ca = {
2336
2335
  }]
2337
2336
  ]
2338
2337
  };
2339
- ca.node;
2340
- var la = q(ca), ua = {
2338
+ sa.node;
2339
+ var ca = q(sa), la = {
2341
2340
  name: "message-square",
2342
2341
  size: 24,
2343
2342
  node: [["path", {
@@ -2345,8 +2344,8 @@ var la = q(ca), ua = {
2345
2344
  key: "18887p"
2346
2345
  }]]
2347
2346
  };
2348
- ua.node;
2349
- var da = q(ua), fa = {
2347
+ la.node;
2348
+ var ua = q(la), da = {
2350
2349
  name: "paintbrush",
2351
2350
  size: 24,
2352
2351
  node: [
@@ -2364,8 +2363,8 @@ var da = q(ua), fa = {
2364
2363
  }]
2365
2364
  ]
2366
2365
  };
2367
- fa.node;
2368
- var pa = q(fa), ma = {
2366
+ da.node;
2367
+ var fa = q(da), pa = {
2369
2368
  name: "pen",
2370
2369
  size: 24,
2371
2370
  node: [["path", {
@@ -2374,8 +2373,8 @@ var pa = q(fa), ma = {
2374
2373
  }]],
2375
2374
  aliases: ["edit-2"]
2376
2375
  };
2377
- ma.node;
2378
- var ha = q(ma), ga = {
2376
+ pa.node;
2377
+ var ma = q(pa), ha = {
2379
2378
  name: "pencil",
2380
2379
  size: 24,
2381
2380
  node: [["path", {
@@ -2386,8 +2385,8 @@ var ha = q(ma), ga = {
2386
2385
  key: "1mk7zo"
2387
2386
  }]]
2388
2387
  };
2389
- ga.node;
2390
- var _a = q(ga), va = {
2388
+ ha.node;
2389
+ var ga = q(ha), _a = {
2391
2390
  name: "rotate-ccw",
2392
2391
  size: 24,
2393
2392
  node: [["path", {
@@ -2398,8 +2397,8 @@ var _a = q(ga), va = {
2398
2397
  key: "1xhq8a"
2399
2398
  }]]
2400
2399
  };
2401
- va.node;
2402
- var ya = q(va), ba = {
2400
+ _a.node;
2401
+ var va = q(_a), ya = {
2403
2402
  name: "search",
2404
2403
  size: 24,
2405
2404
  node: [["path", {
@@ -2412,8 +2411,8 @@ var ya = q(va), ba = {
2412
2411
  key: "4ej97u"
2413
2412
  }]]
2414
2413
  };
2415
- ba.node;
2416
- var xa = q(ba), Sa = {
2414
+ ya.node;
2415
+ var ba = q(ya), xa = {
2417
2416
  name: "server",
2418
2417
  size: 24,
2419
2418
  node: [
@@ -2451,8 +2450,8 @@ var xa = q(ba), Sa = {
2451
2450
  }]
2452
2451
  ]
2453
2452
  };
2454
- Sa.node;
2455
- var Ca = q(Sa), wa = {
2453
+ xa.node;
2454
+ var Sa = q(xa), Ca = {
2456
2455
  name: "settings",
2457
2456
  size: 24,
2458
2457
  node: [["path", {
@@ -2465,8 +2464,8 @@ var Ca = q(Sa), wa = {
2465
2464
  key: "1v7zrd"
2466
2465
  }]]
2467
2466
  };
2468
- wa.node;
2469
- var Ta = q(wa), Ea = {
2467
+ Ca.node;
2468
+ var wa = q(Ca), Ta = {
2470
2469
  name: "sparkles",
2471
2470
  size: 24,
2472
2471
  node: [
@@ -2491,8 +2490,8 @@ var Ta = q(wa), Ea = {
2491
2490
  ],
2492
2491
  aliases: ["stars"]
2493
2492
  };
2494
- Ea.node;
2495
- var Da = q(Ea), Oa = {
2493
+ Ta.node;
2494
+ var Ea = q(Ta), Da = {
2496
2495
  name: "square-split-vertical",
2497
2496
  size: 24,
2498
2497
  node: [
@@ -2511,8 +2510,8 @@ var Da = q(Ea), Oa = {
2511
2510
  ],
2512
2511
  aliases: ["split-square-vertical"]
2513
2512
  };
2514
- Oa.node;
2515
- var ka = q(Oa), Aa = {
2513
+ Da.node;
2514
+ var Oa = q(Da), ka = {
2516
2515
  name: "tag",
2517
2516
  size: 24,
2518
2517
  node: [["path", {
@@ -2526,8 +2525,8 @@ var ka = q(Oa), Aa = {
2526
2525
  key: "kqv944"
2527
2526
  }]]
2528
2527
  };
2529
- Aa.node;
2530
- var ja = q(Aa), Ma = {
2528
+ ka.node;
2529
+ var Aa = q(ka), ja = {
2531
2530
  name: "text-align-start",
2532
2531
  size: 24,
2533
2532
  node: [
@@ -2546,8 +2545,8 @@ var ja = q(Aa), Ma = {
2546
2545
  ],
2547
2546
  aliases: ["text", "align-left"]
2548
2547
  };
2549
- Ma.node;
2550
- var Na = q(Ma), Pa = {
2548
+ ja.node;
2549
+ var Ma = q(ja), Na = {
2551
2550
  name: "trash",
2552
2551
  size: 24,
2553
2552
  node: [
@@ -2574,8 +2573,8 @@ var Na = q(Ma), Pa = {
2574
2573
  ],
2575
2574
  aliases: ["trash-2"]
2576
2575
  };
2577
- Pa.node;
2578
- var Fa = q(Pa), Ia = {
2576
+ Na.node;
2577
+ var Pa = q(Na), Fa = {
2579
2578
  name: "wand-sparkles",
2580
2579
  size: 24,
2581
2580
  node: [
@@ -2614,8 +2613,8 @@ var Fa = q(Pa), Ia = {
2614
2613
  ],
2615
2614
  aliases: ["wand-2"]
2616
2615
  };
2617
- Ia.node;
2618
- var La = q(Ia), Ra = {
2616
+ Fa.node;
2617
+ var Ia = q(Fa), La = {
2619
2618
  name: "workflow",
2620
2619
  size: 24,
2621
2620
  node: [
@@ -2641,8 +2640,8 @@ var La = q(Ia), Ra = {
2641
2640
  }]
2642
2641
  ]
2643
2642
  };
2644
- Ra.node;
2645
- var za = q(Ra), Ba = {
2643
+ La.node;
2644
+ var Ra = q(La), za = {
2646
2645
  name: "x",
2647
2646
  size: 24,
2648
2647
  node: [["path", {
@@ -2653,119 +2652,121 @@ var za = q(Ra), Ba = {
2653
2652
  key: "d8bk6v"
2654
2653
  }]]
2655
2654
  };
2656
- Ba.node;
2657
- var Va = q(Ba);
2655
+ za.node;
2656
+ var Ba = q(za);
2658
2657
  //#endregion
2659
2658
  //#region ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
2660
- function Ha(e) {
2659
+ function Va(e) {
2661
2660
  var t, n, r = "";
2662
2661
  if (typeof e == "string" || typeof e == "number") r += e;
2663
- else if (typeof e == "object") if (Array.isArray(e)) {
2664
- var i = e.length;
2665
- for (t = 0; t < i; t++) e[t] && (n = Ha(e[t])) && (r && (r += " "), r += n);
2666
- } else for (n in e) e[n] && (r && (r += " "), r += n);
2662
+ else if (typeof e == "object") {
2663
+ if (Array.isArray(e)) {
2664
+ var i = e.length;
2665
+ for (t = 0; t < i; t++) e[t] && (n = Va(e[t])) && (r && (r += " "), r += n);
2666
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
2667
+ }
2667
2668
  return r;
2668
2669
  }
2669
- function Ua() {
2670
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ha(e)) && (r && (r += " "), r += t);
2670
+ function Ha() {
2671
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Va(e)) && (r && (r += " "), r += t);
2671
2672
  return r;
2672
2673
  }
2673
2674
  //#endregion
2674
2675
  //#region ../../node_modules/.bun/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
2675
- var Wa = (e, t) => {
2676
+ var Ua = (e, t) => {
2676
2677
  let n = Array(e.length + t.length);
2677
2678
  for (let t = 0; t < e.length; t++) n[t] = e[t];
2678
2679
  for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
2679
2680
  return n;
2680
- }, Ga = (e, t) => ({
2681
+ }, Wa = (e, t) => ({
2681
2682
  classGroupId: e,
2682
2683
  validator: t
2683
- }), Ka = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
2684
+ }), Ga = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
2684
2685
  nextPart: e,
2685
2686
  validators: t,
2686
2687
  classGroupId: n
2687
- }), qa = "-", Ja = [], Ya = "arbitrary..", Xa = (e) => {
2688
- let t = $a(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
2688
+ }), Ka = "-", qa = [], Ja = "arbitrary..", Ya = (e) => {
2689
+ let t = Qa(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
2689
2690
  return {
2690
2691
  getClassGroupId: (e) => {
2691
- if (e.startsWith("[") && e.endsWith("]")) return Qa(e);
2692
- let n = e.split(qa);
2693
- return Za(n, +(n[0] === "" && n.length > 1), t);
2692
+ if (e.startsWith("[") && e.endsWith("]")) return Za(e);
2693
+ let n = e.split(Ka);
2694
+ return Xa(n, +(n[0] === "" && n.length > 1), t);
2694
2695
  },
2695
2696
  getConflictingClassGroupIds: (e, t) => {
2696
2697
  if (t) {
2697
2698
  let t = r[e], i = n[e];
2698
- return t ? i ? Wa(i, t) : t : i || Ja;
2699
+ return t ? i ? Ua(i, t) : t : i || qa;
2699
2700
  }
2700
- return n[e] || Ja;
2701
+ return n[e] || qa;
2701
2702
  }
2702
2703
  };
2703
- }, Za = (e, t, n) => {
2704
+ }, Xa = (e, t, n) => {
2704
2705
  if (e.length - t === 0) return n.classGroupId;
2705
2706
  let r = e[t], i = n.nextPart.get(r);
2706
2707
  if (i) {
2707
- let n = Za(e, t + 1, i);
2708
+ let n = Xa(e, t + 1, i);
2708
2709
  if (n) return n;
2709
2710
  }
2710
2711
  let a = n.validators;
2711
2712
  if (a === null) return;
2712
- let o = t === 0 ? e.join(qa) : e.slice(t).join(qa), s = a.length;
2713
+ let o = t === 0 ? e.join(Ka) : e.slice(t).join(Ka), s = a.length;
2713
2714
  for (let e = 0; e < s; e++) {
2714
2715
  let t = a[e];
2715
2716
  if (t.validator(o)) return t.classGroupId;
2716
2717
  }
2717
- }, Qa = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
2718
+ }, Za = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
2718
2719
  let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
2719
- return r ? Ya + r : void 0;
2720
- })(), $a = (e) => {
2720
+ return r ? Ja + r : void 0;
2721
+ })(), Qa = (e) => {
2721
2722
  let { theme: t, classGroups: n } = e;
2722
- return eo(n, t);
2723
- }, eo = (e, t) => {
2724
- let n = Ka();
2723
+ return $a(n, t);
2724
+ }, $a = (e, t) => {
2725
+ let n = Ga();
2725
2726
  for (let r in e) {
2726
2727
  let i = e[r];
2727
- to(i, n, r, t);
2728
+ eo(i, n, r, t);
2728
2729
  }
2729
2730
  return n;
2730
- }, to = (e, t, n, r) => {
2731
+ }, eo = (e, t, n, r) => {
2731
2732
  let i = e.length;
2732
2733
  for (let a = 0; a < i; a++) {
2733
2734
  let i = e[a];
2734
- no(i, t, n, r);
2735
+ to(i, t, n, r);
2735
2736
  }
2736
- }, no = (e, t, n, r) => {
2737
+ }, to = (e, t, n, r) => {
2737
2738
  if (typeof e == "string") {
2738
- ro(e, t, n);
2739
+ no(e, t, n);
2739
2740
  return;
2740
2741
  }
2741
2742
  if (typeof e == "function") {
2742
- io(e, t, n, r);
2743
+ ro(e, t, n, r);
2743
2744
  return;
2744
2745
  }
2745
- ao(e, t, n, r);
2746
- }, ro = (e, t, n) => {
2747
- let r = e === "" ? t : oo(t, e);
2746
+ io(e, t, n, r);
2747
+ }, no = (e, t, n) => {
2748
+ let r = e === "" ? t : ao(t, e);
2748
2749
  r.classGroupId = n;
2749
- }, io = (e, t, n, r) => {
2750
- if (so(e)) {
2751
- to(e(r), t, n, r);
2750
+ }, ro = (e, t, n, r) => {
2751
+ if (oo(e)) {
2752
+ eo(e(r), t, n, r);
2752
2753
  return;
2753
2754
  }
2754
- t.validators === null && (t.validators = []), t.validators.push(Ga(n, e));
2755
- }, ao = (e, t, n, r) => {
2755
+ t.validators === null && (t.validators = []), t.validators.push(Wa(n, e));
2756
+ }, io = (e, t, n, r) => {
2756
2757
  let i = Object.entries(e), a = i.length;
2757
2758
  for (let e = 0; e < a; e++) {
2758
2759
  let [a, o] = i[e];
2759
- to(o, oo(t, a), n, r);
2760
+ eo(o, ao(t, a), n, r);
2760
2761
  }
2761
- }, oo = (e, t) => {
2762
- let n = e, r = t.split(qa), i = r.length;
2762
+ }, ao = (e, t) => {
2763
+ let n = e, r = t.split(Ka), i = r.length;
2763
2764
  for (let e = 0; e < i; e++) {
2764
2765
  let t = r[e], i = n.nextPart.get(t);
2765
- i || (i = Ka(), n.nextPart.set(t, i)), n = i;
2766
+ i || (i = Ga(), n.nextPart.set(t, i)), n = i;
2766
2767
  }
2767
2768
  return n;
2768
- }, so = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, co = (e) => {
2769
+ }, oo = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, so = (e) => {
2769
2770
  if (e < 1) return {
2770
2771
  get: () => void 0,
2771
2772
  set: () => {}
@@ -2783,19 +2784,19 @@ var Wa = (e, t) => {
2783
2784
  e in n ? n[e] = t : i(e, t);
2784
2785
  }
2785
2786
  };
2786
- }, lo = "!", uo = ":", fo = [], po = (e, t, n, r, i) => ({
2787
+ }, co = "!", lo = ":", uo = [], fo = (e, t, n, r, i) => ({
2787
2788
  modifiers: e,
2788
2789
  hasImportantModifier: t,
2789
2790
  baseClassName: n,
2790
2791
  maybePostfixModifierPosition: r,
2791
2792
  isExternal: i
2792
- }), mo = (e) => {
2793
+ }), po = (e) => {
2793
2794
  let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
2794
2795
  let t = [], n = 0, r = 0, i = 0, a, o = e.length;
2795
2796
  for (let s = 0; s < o; s++) {
2796
2797
  let o = e[s];
2797
2798
  if (n === 0 && r === 0) {
2798
- if (o === uo) {
2799
+ if (o === lo) {
2799
2800
  t.push(e.slice(i, s)), i = s + 1;
2800
2801
  continue;
2801
2802
  }
@@ -2807,13 +2808,13 @@ var Wa = (e, t) => {
2807
2808
  o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
2808
2809
  }
2809
2810
  let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
2810
- s.endsWith(lo) ? (c = s.slice(0, -1), l = !0) : s.startsWith(lo) && (c = s.slice(1), l = !0);
2811
+ s.endsWith(co) ? (c = s.slice(0, -1), l = !0) : s.startsWith(co) && (c = s.slice(1), l = !0);
2811
2812
  let u = a && a > i ? a - i : void 0;
2812
- return po(t, l, c, u);
2813
+ return fo(t, l, c, u);
2813
2814
  };
2814
2815
  if (t) {
2815
- let e = t + uo, n = r;
2816
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : po(fo, !1, t, void 0, !0);
2816
+ let e = t + lo, n = r;
2817
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : fo(uo, !1, t, void 0, !0);
2817
2818
  }
2818
2819
  if (n) {
2819
2820
  let e = r;
@@ -2823,7 +2824,7 @@ var Wa = (e, t) => {
2823
2824
  });
2824
2825
  }
2825
2826
  return r;
2826
- }, ho = (e) => {
2827
+ }, mo = (e) => {
2827
2828
  let t = /* @__PURE__ */ new Map();
2828
2829
  return e.orderSensitiveModifiers.forEach((e, n) => {
2829
2830
  t.set(e, 1e6 + n);
@@ -2835,18 +2836,18 @@ var Wa = (e, t) => {
2835
2836
  }
2836
2837
  return r.length > 0 && (r.sort(), n.push(...r)), n;
2837
2838
  };
2838
- }, go = (e) => ({
2839
- cache: co(e.cacheSize),
2840
- parseClassName: mo(e),
2841
- sortModifiers: ho(e),
2842
- postfixLookupClassGroupIds: _o(e),
2843
- ...Xa(e)
2844
- }), _o = (e) => {
2839
+ }, ho = (e) => ({
2840
+ cache: so(e.cacheSize),
2841
+ parseClassName: po(e),
2842
+ sortModifiers: mo(e),
2843
+ postfixLookupClassGroupIds: go(e),
2844
+ ...Ya(e)
2845
+ }), go = (e) => {
2845
2846
  let t = Object.create(null), n = e.postfixLookupClassGroups;
2846
2847
  if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
2847
2848
  return t;
2848
- }, vo = /\s+/, yo = (e, t) => {
2849
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(vo), l = "";
2849
+ }, _o = /\s+/, vo = (e, t) => {
2850
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(_o), l = "";
2850
2851
  for (let e = c.length - 1; e >= 0; --e) {
2851
2852
  let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
2852
2853
  if (u) {
@@ -2870,7 +2871,7 @@ var Wa = (e, t) => {
2870
2871
  }
2871
2872
  h = !1;
2872
2873
  }
2873
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + lo : _, y = v + g;
2874
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + co : _, y = v + g;
2874
2875
  if (s.indexOf(y) > -1) continue;
2875
2876
  s.push(y);
2876
2877
  let b = i(g, h);
@@ -2881,34 +2882,34 @@ var Wa = (e, t) => {
2881
2882
  l = t + (l.length > 0 ? " " + l : l);
2882
2883
  }
2883
2884
  return l;
2884
- }, bo = (...e) => {
2885
+ }, yo = (...e) => {
2885
2886
  let t = 0, n, r, i = "";
2886
- for (; t < e.length;) (n = e[t++]) && (r = xo(n)) && (i && (i += " "), i += r);
2887
+ for (; t < e.length;) (n = e[t++]) && (r = bo(n)) && (i && (i += " "), i += r);
2887
2888
  return i;
2888
- }, xo = (e) => {
2889
+ }, bo = (e) => {
2889
2890
  if (typeof e == "string") return e;
2890
2891
  let t, n = "";
2891
- for (let r = 0; r < e.length; r++) e[r] && (t = xo(e[r])) && (n && (n += " "), n += t);
2892
+ for (let r = 0; r < e.length; r++) e[r] && (t = bo(e[r])) && (n && (n += " "), n += t);
2892
2893
  return n;
2893
- }, So = (e, ...t) => {
2894
- let n, r, i, a, o = (o) => (n = go(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
2894
+ }, xo = (e, ...t) => {
2895
+ let n, r, i, a, o = (o) => (n = ho(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
2895
2896
  let t = r(e);
2896
2897
  if (t) return t;
2897
- let a = yo(e, n);
2898
+ let a = vo(e, n);
2898
2899
  return i(e, a), a;
2899
2900
  };
2900
- return a = o, (...e) => a(bo(...e));
2901
- }, Co = [], wo = (e) => {
2902
- let t = (t) => t[e] || Co;
2901
+ return a = o, (...e) => a(yo(...e));
2902
+ }, So = [], Co = (e) => {
2903
+ let t = (t) => t[e] || So;
2903
2904
  return t.isThemeGetter = !0, t;
2904
- }, To = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Eo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Do = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Oo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ko = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ao = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, jo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Mo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, No = (e) => Do.test(e), J = (e) => !!e && !Number.isNaN(Number(e)), Po = (e) => !!e && Number.isInteger(Number(e)), Fo = (e) => e.endsWith("%") && J(e.slice(0, -1)), Io = (e) => Oo.test(e), Lo = () => !0, Ro = (e) => ko.test(e) && !Ao.test(e), zo = () => !1, Bo = (e) => jo.test(e), Vo = (e) => Mo.test(e), Ho = (e) => !Y(e) && !X(e), Uo = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Wo = (e) => as(e, ls, zo), Y = (e) => To.test(e), Go = (e) => as(e, us, Ro), Ko = (e) => as(e, ds, J), qo = (e) => as(e, ps, Lo), Jo = (e) => as(e, fs, zo), Yo = (e) => as(e, ss, zo), Xo = (e) => as(e, cs, Vo), Zo = (e) => as(e, ms, Bo), X = (e) => Eo.test(e), Qo = (e) => os(e, us), $o = (e) => os(e, fs), es = (e) => os(e, ss), ts = (e) => os(e, ls), ns = (e) => os(e, cs), rs = (e) => os(e, ms, !0), is = (e) => os(e, ps, !0), as = (e, t, n) => {
2905
- let r = To.exec(e);
2905
+ }, wo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, To = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Eo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Do = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Oo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ko = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ao = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mo = (e) => Eo.test(e), J = (e) => !!e && !Number.isNaN(Number(e)), No = (e) => !!e && Number.isInteger(Number(e)), Po = (e) => e.endsWith("%") && J(e.slice(0, -1)), Fo = (e) => Do.test(e), Io = () => !0, Lo = (e) => Oo.test(e) && !ko.test(e), Ro = () => !1, zo = (e) => Ao.test(e), Bo = (e) => jo.test(e), Vo = (e) => !Y(e) && !X(e), Ho = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Uo = (e) => is(e, cs, Ro), Y = (e) => wo.test(e), Wo = (e) => is(e, ls, Lo), Go = (e) => is(e, us, J), Ko = (e) => is(e, fs, Io), qo = (e) => is(e, ds, Ro), Jo = (e) => is(e, os, Ro), Yo = (e) => is(e, ss, Bo), Xo = (e) => is(e, ps, zo), X = (e) => To.test(e), Zo = (e) => as(e, ls), Qo = (e) => as(e, ds), $o = (e) => as(e, os), es = (e) => as(e, cs), ts = (e) => as(e, ss), ns = (e) => as(e, ps, !0), rs = (e) => as(e, fs, !0), is = (e, t, n) => {
2906
+ let r = wo.exec(e);
2906
2907
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
2907
- }, os = (e, t, n = !1) => {
2908
- let r = Eo.exec(e);
2908
+ }, as = (e, t, n = !1) => {
2909
+ let r = To.exec(e);
2909
2910
  return r ? r[1] ? t(r[1]) : n : !1;
2910
- }, ss = (e) => e === "position" || e === "percentage", cs = (e) => e === "image" || e === "url", ls = (e) => e === "length" || e === "size" || e === "bg-size", us = (e) => e === "length", ds = (e) => e === "number", fs = (e) => e === "family-name", ps = (e) => e === "number" || e === "weight", ms = (e) => e === "shadow", hs = /*#__PURE__*/ So(() => {
2911
- let e = wo("color"), t = wo("font"), n = wo("text"), r = wo("font-weight"), i = wo("tracking"), a = wo("leading"), o = wo("breakpoint"), s = wo("container"), c = wo("spacing"), l = wo("radius"), u = wo("shadow"), d = wo("inset-shadow"), f = wo("text-shadow"), p = wo("drop-shadow"), m = wo("blur"), h = wo("perspective"), g = wo("aspect"), _ = wo("ease"), v = wo("animate"), y = () => [
2911
+ }, os = (e) => e === "position" || e === "percentage", ss = (e) => e === "image" || e === "url", cs = (e) => e === "length" || e === "size" || e === "bg-size", ls = (e) => e === "length", us = (e) => e === "number", ds = (e) => e === "family-name", fs = (e) => e === "number" || e === "weight", ps = (e) => e === "shadow", ms = /*#__PURE__*/ xo(() => {
2912
+ let e = Co("color"), t = Co("font"), n = Co("text"), r = Co("font-weight"), i = Co("tracking"), a = Co("leading"), o = Co("breakpoint"), s = Co("container"), c = Co("spacing"), l = Co("radius"), u = Co("shadow"), d = Co("inset-shadow"), f = Co("text-shadow"), p = Co("drop-shadow"), m = Co("blur"), h = Co("perspective"), g = Co("aspect"), _ = Co("ease"), v = Co("animate"), y = () => [
2912
2913
  "auto",
2913
2914
  "avoid",
2914
2915
  "all",
@@ -2950,12 +2951,12 @@ var Wa = (e, t) => {
2950
2951
  Y,
2951
2952
  c
2952
2953
  ], T = () => [
2953
- No,
2954
+ Mo,
2954
2955
  "full",
2955
2956
  "auto",
2956
2957
  ...w()
2957
2958
  ], E = () => [
2958
- Po,
2959
+ No,
2959
2960
  "none",
2960
2961
  "subgrid",
2961
2962
  X,
@@ -2964,15 +2965,15 @@ var Wa = (e, t) => {
2964
2965
  "auto",
2965
2966
  { span: [
2966
2967
  "full",
2967
- Po,
2968
+ No,
2968
2969
  X,
2969
2970
  Y
2970
2971
  ] },
2971
- Po,
2972
+ No,
2972
2973
  X,
2973
2974
  Y
2974
2975
  ], O = () => [
2975
- Po,
2976
+ No,
2976
2977
  "auto",
2977
2978
  X,
2978
2979
  Y
@@ -3002,7 +3003,7 @@ var Wa = (e, t) => {
3002
3003
  "center-safe",
3003
3004
  "end-safe"
3004
3005
  ], M = () => ["auto", ...w()], N = () => [
3005
- No,
3006
+ Mo,
3006
3007
  "auto",
3007
3008
  "full",
3008
3009
  "dvw",
@@ -3016,7 +3017,7 @@ var Wa = (e, t) => {
3016
3017
  "fit",
3017
3018
  ...w()
3018
3019
  ], P = () => [
3019
- No,
3020
+ Mo,
3020
3021
  "screen",
3021
3022
  "full",
3022
3023
  "dvw",
@@ -3027,7 +3028,7 @@ var Wa = (e, t) => {
3027
3028
  "fit",
3028
3029
  ...w()
3029
3030
  ], F = () => [
3030
- No,
3031
+ Mo,
3031
3032
  "screen",
3032
3033
  "full",
3033
3034
  "lh",
@@ -3044,8 +3045,8 @@ var Wa = (e, t) => {
3044
3045
  Y
3045
3046
  ], L = () => [
3046
3047
  ...b(),
3047
- es,
3048
- Yo,
3048
+ $o,
3049
+ Jo,
3049
3050
  { position: [X, Y] }
3050
3051
  ], R = () => ["no-repeat", { repeat: [
3051
3052
  "",
@@ -3057,13 +3058,13 @@ var Wa = (e, t) => {
3057
3058
  "auto",
3058
3059
  "cover",
3059
3060
  "contain",
3060
- ts,
3061
- Wo,
3061
+ es,
3062
+ Uo,
3062
3063
  { size: [X, Y] }
3063
3064
  ], B = () => [
3064
- Fo,
3065
- Qo,
3066
- Go
3065
+ Po,
3066
+ Zo,
3067
+ Wo
3067
3068
  ], V = () => [
3068
3069
  "",
3069
3070
  "none",
@@ -3074,8 +3075,8 @@ var Wa = (e, t) => {
3074
3075
  ], H = () => [
3075
3076
  "",
3076
3077
  J,
3077
- Qo,
3078
- Go
3078
+ Zo,
3079
+ Wo
3079
3080
  ], ee = () => [
3080
3081
  "solid",
3081
3082
  "dashed",
@@ -3100,9 +3101,9 @@ var Wa = (e, t) => {
3100
3101
  "luminosity"
3101
3102
  ], U = () => [
3102
3103
  J,
3103
- Fo,
3104
- es,
3105
- Yo
3104
+ Po,
3105
+ $o,
3106
+ Jo
3106
3107
  ], ne = () => [
3107
3108
  "",
3108
3109
  "none",
@@ -3124,7 +3125,7 @@ var Wa = (e, t) => {
3124
3125
  X,
3125
3126
  Y
3126
3127
  ], G = () => [
3127
- No,
3128
+ Mo,
3128
3129
  "full",
3129
3130
  ...w()
3130
3131
  ];
@@ -3138,17 +3139,17 @@ var Wa = (e, t) => {
3138
3139
  "bounce"
3139
3140
  ],
3140
3141
  aspect: ["video"],
3141
- blur: [Io],
3142
- breakpoint: [Io],
3143
- color: [Lo],
3144
- container: [Io],
3145
- "drop-shadow": [Io],
3142
+ blur: [Fo],
3143
+ breakpoint: [Fo],
3144
+ color: [Io],
3145
+ container: [Fo],
3146
+ "drop-shadow": [Fo],
3146
3147
  ease: [
3147
3148
  "in",
3148
3149
  "out",
3149
3150
  "in-out"
3150
3151
  ],
3151
- font: [Ho],
3152
+ font: [Vo],
3152
3153
  "font-weight": [
3153
3154
  "thin",
3154
3155
  "extralight",
@@ -3160,7 +3161,7 @@ var Wa = (e, t) => {
3160
3161
  "extrabold",
3161
3162
  "black"
3162
3163
  ],
3163
- "inset-shadow": [Io],
3164
+ "inset-shadow": [Fo],
3164
3165
  leading: [
3165
3166
  "none",
3166
3167
  "tight",
@@ -3177,11 +3178,11 @@ var Wa = (e, t) => {
3177
3178
  "distant",
3178
3179
  "none"
3179
3180
  ],
3180
- radius: [Io],
3181
- shadow: [Io],
3181
+ radius: [Fo],
3182
+ shadow: [Fo],
3182
3183
  spacing: ["px", J],
3183
- text: [Io],
3184
- "text-shadow": [Io],
3184
+ text: [Fo],
3185
+ "text-shadow": [Fo],
3185
3186
  tracking: [
3186
3187
  "tighter",
3187
3188
  "tight",
@@ -3195,7 +3196,7 @@ var Wa = (e, t) => {
3195
3196
  aspect: [{ aspect: [
3196
3197
  "auto",
3197
3198
  "square",
3198
- No,
3199
+ Mo,
3199
3200
  Y,
3200
3201
  X,
3201
3202
  g
@@ -3208,7 +3209,7 @@ var Wa = (e, t) => {
3208
3209
  X,
3209
3210
  Y
3210
3211
  ] }],
3211
- "container-named": [Uo],
3212
+ "container-named": [Ho],
3212
3213
  columns: [{ columns: [
3213
3214
  J,
3214
3215
  Y,
@@ -3309,13 +3310,13 @@ var Wa = (e, t) => {
3309
3310
  "collapse"
3310
3311
  ],
3311
3312
  z: [{ z: [
3312
- Po,
3313
+ No,
3313
3314
  "auto",
3314
3315
  X,
3315
3316
  Y
3316
3317
  ] }],
3317
3318
  basis: [{ basis: [
3318
- No,
3319
+ Mo,
3319
3320
  "full",
3320
3321
  "auto",
3321
3322
  s,
@@ -3334,7 +3335,7 @@ var Wa = (e, t) => {
3334
3335
  ] }],
3335
3336
  flex: [{ flex: [
3336
3337
  J,
3337
- No,
3338
+ Mo,
3338
3339
  "auto",
3339
3340
  "initial",
3340
3341
  "none",
@@ -3353,7 +3354,7 @@ var Wa = (e, t) => {
3353
3354
  Y
3354
3355
  ] }],
3355
3356
  order: [{ order: [
3356
- Po,
3357
+ No,
3357
3358
  "first",
3358
3359
  "last",
3359
3360
  "none",
@@ -3464,15 +3465,15 @@ var Wa = (e, t) => {
3464
3465
  "font-size": [{ text: [
3465
3466
  "base",
3466
3467
  n,
3467
- Qo,
3468
- Go
3468
+ Zo,
3469
+ Wo
3469
3470
  ] }],
3470
3471
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
3471
3472
  "font-style": ["italic", "not-italic"],
3472
3473
  "font-weight": [{ font: [
3473
3474
  r,
3474
- is,
3475
- qo
3475
+ rs,
3476
+ Ko
3476
3477
  ] }],
3477
3478
  "font-stretch": [{ "font-stretch": [
3478
3479
  "ultra-condensed",
@@ -3484,12 +3485,12 @@ var Wa = (e, t) => {
3484
3485
  "expanded",
3485
3486
  "extra-expanded",
3486
3487
  "ultra-expanded",
3487
- Fo,
3488
+ Po,
3488
3489
  Y
3489
3490
  ] }],
3490
3491
  "font-family": [{ font: [
3491
- $o,
3492
- Jo,
3492
+ Qo,
3493
+ qo,
3493
3494
  t
3494
3495
  ] }],
3495
3496
  "font-features": [{ "font-features": [Y] }],
@@ -3508,7 +3509,7 @@ var Wa = (e, t) => {
3508
3509
  J,
3509
3510
  "none",
3510
3511
  X,
3511
- Ko
3512
+ Go
3512
3513
  ] }],
3513
3514
  leading: [{ leading: [a, ...w()] }],
3514
3515
  "list-image": [{ "list-image": [
@@ -3546,7 +3547,7 @@ var Wa = (e, t) => {
3546
3547
  "from-font",
3547
3548
  "auto",
3548
3549
  X,
3549
- Go
3550
+ Wo
3550
3551
  ] }],
3551
3552
  "text-decoration-color": [{ decoration: I() }],
3552
3553
  "underline-offset": [{ "underline-offset": [
@@ -3574,7 +3575,7 @@ var Wa = (e, t) => {
3574
3575
  ] }],
3575
3576
  indent: [{ indent: w() }],
3576
3577
  "tab-size": [{ tab: [
3577
- Po,
3578
+ No,
3578
3579
  X,
3579
3580
  Y
3580
3581
  ] }],
@@ -3652,7 +3653,7 @@ var Wa = (e, t) => {
3652
3653
  "l",
3653
3654
  "tl"
3654
3655
  ] },
3655
- Po,
3656
+ No,
3656
3657
  X,
3657
3658
  Y
3658
3659
  ],
@@ -3662,13 +3663,13 @@ var Wa = (e, t) => {
3662
3663
  Y
3663
3664
  ],
3664
3665
  conic: [
3665
- Po,
3666
+ No,
3666
3667
  X,
3667
3668
  Y
3668
3669
  ]
3669
3670
  },
3670
- ns,
3671
- Xo
3671
+ ts,
3672
+ Yo
3672
3673
  ] }],
3673
3674
  "bg-color": [{ bg: I() }],
3674
3675
  "gradient-from-pos": [{ from: B() }],
@@ -3742,37 +3743,37 @@ var Wa = (e, t) => {
3742
3743
  "outline-w": [{ outline: [
3743
3744
  "",
3744
3745
  J,
3745
- Qo,
3746
- Go
3746
+ Zo,
3747
+ Wo
3747
3748
  ] }],
3748
3749
  "outline-color": [{ outline: I() }],
3749
3750
  shadow: [{ shadow: [
3750
3751
  "",
3751
3752
  "none",
3752
3753
  u,
3753
- rs,
3754
- Zo
3754
+ ns,
3755
+ Xo
3755
3756
  ] }],
3756
3757
  "shadow-color": [{ shadow: I() }],
3757
3758
  "inset-shadow": [{ "inset-shadow": [
3758
3759
  "none",
3759
3760
  d,
3760
- rs,
3761
- Zo
3761
+ ns,
3762
+ Xo
3762
3763
  ] }],
3763
3764
  "inset-shadow-color": [{ "inset-shadow": I() }],
3764
3765
  "ring-w": [{ ring: H() }],
3765
3766
  "ring-w-inset": ["ring-inset"],
3766
3767
  "ring-color": [{ ring: I() }],
3767
- "ring-offset-w": [{ "ring-offset": [J, Go] }],
3768
+ "ring-offset-w": [{ "ring-offset": [J, Wo] }],
3768
3769
  "ring-offset-color": [{ "ring-offset": I() }],
3769
3770
  "inset-ring-w": [{ "inset-ring": H() }],
3770
3771
  "inset-ring-color": [{ "inset-ring": I() }],
3771
3772
  "text-shadow": [{ "text-shadow": [
3772
3773
  "none",
3773
3774
  f,
3774
- rs,
3775
- Zo
3775
+ ns,
3776
+ Xo
3776
3777
  ] }],
3777
3778
  "text-shadow-color": [{ "text-shadow": I() }],
3778
3779
  opacity: [{ opacity: [
@@ -3888,8 +3889,8 @@ var Wa = (e, t) => {
3888
3889
  "",
3889
3890
  "none",
3890
3891
  p,
3891
- rs,
3892
- Zo
3892
+ ns,
3893
+ Xo
3893
3894
  ] }],
3894
3895
  "drop-shadow-color": [{ "drop-shadow": I() }],
3895
3896
  grayscale: [{ grayscale: [
@@ -4047,7 +4048,7 @@ var Wa = (e, t) => {
4047
4048
  "translate-z": [{ "translate-z": G() }],
4048
4049
  "translate-none": ["translate-none"],
4049
4050
  zoom: [{ zoom: [
4050
- Po,
4051
+ No,
4051
4052
  X,
4052
4053
  Y
4053
4054
  ] }],
@@ -4192,9 +4193,9 @@ var Wa = (e, t) => {
4192
4193
  fill: [{ fill: ["none", ...I()] }],
4193
4194
  "stroke-w": [{ stroke: [
4194
4195
  J,
4195
- Qo,
4196
- Go,
4197
- Ko
4196
+ Zo,
4197
+ Wo,
4198
+ Go
4198
4199
  ] }],
4199
4200
  stroke: [{ stroke: ["none", ...I()] }],
4200
4201
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -4386,37 +4387,37 @@ var Wa = (e, t) => {
4386
4387
  //#endregion
4387
4388
  //#region src/app-utils/utils.ts
4388
4389
  function Z(...e) {
4389
- return hs(Ua(e));
4390
+ return ms(Ha(e));
4390
4391
  }
4391
4392
  //#endregion
4392
4393
  //#region src/app-ui/sheet.tsx
4393
- function gs({ ...e }) {
4394
- return /* @__PURE__ */ _(vr, {
4394
+ function hs({ ...e }) {
4395
+ return /* @__PURE__ */ _(_r, {
4395
4396
  "data-slot": "sheet",
4396
4397
  ...e
4397
4398
  });
4398
4399
  }
4399
- function _s({ ...e }) {
4400
- return /* @__PURE__ */ _(wr, {
4400
+ function gs({ ...e }) {
4401
+ return /* @__PURE__ */ _(Cr, {
4401
4402
  "data-slot": "sheet-portal",
4402
4403
  ...e
4403
4404
  });
4404
4405
  }
4405
- function vs({ className: e, ...t }) {
4406
- return /* @__PURE__ */ _(Er, {
4406
+ function _s({ className: e, ...t }) {
4407
+ return /* @__PURE__ */ _(Tr, {
4407
4408
  "data-slot": "sheet-overlay",
4408
4409
  className: Z("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
4409
4410
  ...t
4410
4411
  });
4411
4412
  }
4412
- function ys({ className: e, children: t, side: n = "right", ...r }) {
4413
- return /* @__PURE__ */ v(_s, { children: [/* @__PURE__ */ _(vs, {}), /* @__PURE__ */ v(Ar, {
4413
+ function vs({ className: e, children: t, side: n = "right", ...r }) {
4414
+ return /* @__PURE__ */ v(gs, { children: [/* @__PURE__ */ _(_s, {}), /* @__PURE__ */ v(kr, {
4414
4415
  "data-slot": "sheet-content",
4415
4416
  className: Z("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
4416
4417
  ...r,
4417
- children: [t, /* @__PURE__ */ v(zr, {
4418
+ children: [t, /* @__PURE__ */ v(Rr, {
4418
4419
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
4419
- children: [/* @__PURE__ */ _(Va, { className: "size-4" }), /* @__PURE__ */ _("span", {
4420
+ children: [/* @__PURE__ */ _(Ba, { className: "size-4" }), /* @__PURE__ */ _("span", {
4420
4421
  className: "sr-only",
4421
4422
  children: "Close"
4422
4423
  })]
@@ -4425,7 +4426,7 @@ function ys({ className: e, children: t, side: n = "right", ...r }) {
4425
4426
  }
4426
4427
  //#endregion
4427
4428
  //#region src/app-utils/file-sources/sources.ts
4428
- var bs = "REASON-file-sources", xs = "REASON-active-file-source", Ss = {
4429
+ var ys = "REASON-file-sources", bs = "REASON-active-file-source", xs = {
4429
4430
  id: "local-default",
4430
4431
  name: "Local Files",
4431
4432
  type: "local",
@@ -4433,70 +4434,70 @@ var bs = "REASON-file-sources", xs = "REASON-active-file-source", Ss = {
4433
4434
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
4434
4435
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
4435
4436
  };
4436
- function Cs() {
4437
+ function Ss() {
4437
4438
  try {
4438
- let e = localStorage.getItem(bs);
4439
+ let e = localStorage.getItem(ys);
4439
4440
  if (e) {
4440
4441
  let t = JSON.parse(e);
4441
- return t.some((e) => e.id === "local-default") ? t : [Ss, ...t];
4442
+ return t.some((e) => e.id === "local-default") ? t : [xs, ...t];
4442
4443
  }
4443
4444
  } catch (e) {
4444
4445
  console.error("Error loading file sources:", e);
4445
4446
  }
4446
- return [Ss];
4447
+ return [xs];
4447
4448
  }
4448
- function ws(e) {
4449
+ function Cs(e) {
4449
4450
  try {
4450
- localStorage.setItem(bs, JSON.stringify(e));
4451
+ localStorage.setItem(ys, JSON.stringify(e));
4451
4452
  } catch (e) {
4452
4453
  console.error("Error saving file sources:", e);
4453
4454
  }
4454
4455
  }
4455
- function Ts(e) {
4456
+ function ws(e) {
4456
4457
  let t = {
4457
4458
  ...e,
4458
4459
  id: `${e.type}-${Date.now()}`,
4459
4460
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
4460
4461
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
4461
4462
  };
4462
- return ws([...Cs(), t]), t;
4463
+ return Cs([...Ss(), t]), t;
4463
4464
  }
4464
- function Es(e, t) {
4465
- ws(Cs().map((n) => n.id === e ? {
4465
+ function Ts(e, t) {
4466
+ Cs(Ss().map((n) => n.id === e ? {
4466
4467
  ...n,
4467
4468
  ...t,
4468
4469
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
4469
4470
  } : n));
4470
4471
  }
4471
- function Ds(e) {
4472
+ function Es(e) {
4472
4473
  if (e === "local-default") {
4473
4474
  console.warn("Cannot delete default local source");
4474
4475
  return;
4475
4476
  }
4476
- ws(Cs().filter((t) => t.id !== e)), Os() === e && ks("local-default");
4477
+ Cs(Ss().filter((t) => t.id !== e)), Ds() === e && Os("local-default");
4477
4478
  }
4478
- function Os() {
4479
+ function Ds() {
4479
4480
  try {
4480
- return localStorage.getItem(xs) || "local-default";
4481
+ return localStorage.getItem(bs) || "local-default";
4481
4482
  } catch (e) {
4482
4483
  return console.error("Error getting active file source:", e), "local-default";
4483
4484
  }
4484
4485
  }
4485
- function ks(e) {
4486
+ function Os(e) {
4486
4487
  try {
4487
- localStorage.setItem(xs, e);
4488
+ localStorage.setItem(bs, e);
4488
4489
  } catch (e) {
4489
4490
  console.error("Error setting active file source:", e);
4490
4491
  }
4491
4492
  }
4492
- function As() {
4493
- let e = Cs(), t = Os();
4494
- return e.find((e) => e.id === t) || Ss;
4493
+ function ks() {
4494
+ let e = Ss(), t = Ds();
4495
+ return e.find((e) => e.id === t) || xs;
4495
4496
  }
4496
4497
  (/* @__PURE__ */ new Date()).valueOf();
4497
4498
  //#endregion
4498
4499
  //#region ../../node_modules/.bun/@svar-ui+lib-react@1.2.2/node_modules/@svar-ui/lib-react/dist/index.js
4499
- function js(e) {
4500
+ function As(e) {
4500
4501
  let [t, n] = h(e), r = m(e);
4501
4502
  return u(() => {
4502
4503
  if (r.current !== e) {
@@ -4505,12 +4506,12 @@ function js(e) {
4505
4506
  }
4506
4507
  }, [e]), [t, n];
4507
4508
  }
4508
- function Ms(e, t) {
4509
+ function js(e, t) {
4509
4510
  return typeof e == "function" ? typeof t == "object" ? e(t) : e() : e;
4510
4511
  }
4511
4512
  //#endregion
4512
4513
  //#region ../../node_modules/.bun/@svar-ui+lib-dom@0.13.1/node_modules/@svar-ui/lib-dom/dist/index.js
4513
- function Ns(e, t = "data-id") {
4514
+ function Ms(e, t = "data-id") {
4514
4515
  let n = e;
4515
4516
  for (!n.tagName && e.target && (n = e.target); n;) {
4516
4517
  if (n.getAttribute && n.getAttribute(t)) return n;
@@ -4518,27 +4519,27 @@ function Ns(e, t = "data-id") {
4518
4519
  }
4519
4520
  return null;
4520
4521
  }
4521
- function Ps(e, t = "data-id") {
4522
- let n = Ns(e, t);
4522
+ function Ns(e, t = "data-id") {
4523
+ let n = Ms(e, t);
4523
4524
  return n ? n.getAttribute(t) : null;
4524
4525
  }
4525
- function Fs(e, t = "data-id") {
4526
- let n = Ns(e, t);
4527
- return n ? Is(n, t) : null;
4526
+ function Ps(e, t = "data-id") {
4527
+ let n = Ms(e, t);
4528
+ return n ? Fs(n, t) : null;
4528
4529
  }
4529
- function Is(e, t = "data-id") {
4530
+ function Fs(e, t = "data-id") {
4530
4531
  let n = e.getAttribute(t);
4531
- return n ? Rs(n) : null;
4532
+ return n ? Ls(n) : null;
4532
4533
  }
4533
- function Ls(e) {
4534
+ function Is(e) {
4534
4535
  return typeof e == "string" ? ":" + e : e;
4535
4536
  }
4536
- function Rs(e) {
4537
+ function Ls(e) {
4537
4538
  if (e.startsWith(":")) return e.substring(1);
4538
4539
  let t = e * 1;
4539
4540
  return isNaN(t) ? e : t;
4540
4541
  }
4541
- function zs() {
4542
+ function Rs() {
4542
4543
  return {
4543
4544
  detect: () => !0,
4544
4545
  addEvent: function(e, t, n) {
@@ -4552,15 +4553,15 @@ function zs() {
4552
4553
  }
4553
4554
  };
4554
4555
  }
4555
- var Bs = zs();
4556
- function Vs(e) {
4557
- Object.assign(Bs, e);
4556
+ var zs = Rs();
4557
+ function Bs(e) {
4558
+ Object.assign(zs, e);
4558
4559
  }
4559
- function Hs(e, t, n) {
4560
+ function Vs(e, t, n) {
4560
4561
  function r(e) {
4561
- let r = Ns(e);
4562
+ let r = Ms(e);
4562
4563
  if (!r) return;
4563
- let i = Is(r);
4564
+ let i = Fs(r);
4564
4565
  if (typeof t == "function") return t(i, e);
4565
4566
  let a, o = e.target;
4566
4567
  for (; o != r;) {
@@ -4572,77 +4573,77 @@ function Hs(e, t, n) {
4572
4573
  }
4573
4574
  t[n] && t[n](i, e);
4574
4575
  }
4575
- Bs.addEvent(e, n, r);
4576
+ zs.addEvent(e, n, r);
4576
4577
  }
4577
- function Us(e, t) {
4578
- Hs(e, t, "click"), t.dblclick && Hs(e, t.dblclick, "dblclick");
4578
+ function Hs(e, t) {
4579
+ Vs(e, t, "click"), t.dblclick && Vs(e, t.dblclick, "dblclick");
4579
4580
  }
4580
- function Ws(e, t) {
4581
+ function Us(e, t) {
4581
4582
  for (let n = e.length - 1; n >= 0; n--) if (e[n] === t) {
4582
4583
  e.splice(n, 1);
4583
4584
  break;
4584
4585
  }
4585
4586
  }
4586
- function Gs(e, t, n) {
4587
- for (let r = 0; r < Ys.length; r++) {
4587
+ function Ws(e, t, n) {
4588
+ for (let r = 0; r < Js.length; r++) {
4588
4589
  if (r === n) continue;
4589
- let i = Ys[r], a = i.props.parent?.();
4590
+ let i = Js[r], a = i.props.parent?.();
4590
4591
  if (a && e.contains(a) && i.node.contains(t)) return !0;
4591
4592
  }
4592
4593
  return !1;
4593
4594
  }
4594
- var Ks = /* @__PURE__ */ new Date(), qs = !1, Js = [], Ys = [], Xs = (e) => {
4595
+ var Gs = /* @__PURE__ */ new Date(), Ks = !1, qs = [], Js = [], Ys = (e) => {
4595
4596
  let t = e.target;
4596
- if (qs || !t.isConnected) {
4597
- qs = !1;
4597
+ if (Ks || !t.isConnected) {
4598
+ Ks = !1;
4598
4599
  return;
4599
4600
  }
4600
- for (let n = Ys.length - 1; n >= 0; n--) {
4601
- let { node: r, date: i, props: a } = Ys[n];
4602
- if (!(i > Ks) && !r.contains(t) && r !== t && (Gs(r, t, n) || (a.callback && a.callback(e), a.modal || e.defaultPrevented))) break;
4601
+ for (let n = Js.length - 1; n >= 0; n--) {
4602
+ let { node: r, date: i, props: a } = Js[n];
4603
+ if (!(i > Gs) && !r.contains(t) && r !== t && (Ws(r, t, n) || (a.callback && a.callback(e), a.modal || e.defaultPrevented))) break;
4603
4604
  }
4604
- }, Zs = (e) => {
4605
- Ks = /* @__PURE__ */ new Date(), qs = !0;
4606
- for (let t = Ys.length - 1; t >= 0; t--) {
4607
- let { node: n } = Ys[t];
4605
+ }, Xs = (e) => {
4606
+ Gs = /* @__PURE__ */ new Date(), Ks = !0;
4607
+ for (let t = Js.length - 1; t >= 0; t--) {
4608
+ let { node: n } = Js[t];
4608
4609
  if (!n.contains(e.target) && n !== e.target) {
4609
- qs = !1;
4610
+ Ks = !1;
4610
4611
  break;
4611
4612
  }
4612
4613
  }
4613
4614
  };
4614
- function Qs(e, t) {
4615
- Js.length || (Js = [
4616
- Bs.addGlobalEvent("click", Xs, e),
4617
- Bs.addGlobalEvent("contextmenu", Xs, e),
4618
- Bs.addGlobalEvent("mousedown", Zs, e)
4615
+ function Zs(e, t) {
4616
+ qs.length || (qs = [
4617
+ zs.addGlobalEvent("click", Ys, e),
4618
+ zs.addGlobalEvent("contextmenu", Ys, e),
4619
+ zs.addGlobalEvent("mousedown", Xs, e)
4619
4620
  ]), typeof t != "object" && (t = { callback: t });
4620
4621
  let n = {
4621
4622
  node: e,
4622
4623
  date: /* @__PURE__ */ new Date(),
4623
4624
  props: t
4624
4625
  };
4625
- return Ys.push(n), { destroy() {
4626
- Ws(Ys, n), Ys.length || (Js.forEach((e) => e()), Js = []);
4626
+ return Js.push(n), { destroy() {
4627
+ Us(Js, n), Js.length || (qs.forEach((e) => e()), qs = []);
4627
4628
  } };
4628
4629
  }
4629
- var $s = (e) => e.indexOf("bottom") !== -1, ec = (e) => e.indexOf("left") !== -1, tc = (e) => e.indexOf("right") !== -1, nc = (e) => e.indexOf("top") !== -1, rc = (e) => e.indexOf("fit") !== -1, ic = (e) => e.indexOf("overlap") !== -1, ac = (e) => e.split("-").every((e) => ["center", "fit"].indexOf(e) > -1), oc = (e) => {
4630
+ var Qs = (e) => e.indexOf("bottom") !== -1, $s = (e) => e.indexOf("left") !== -1, ec = (e) => e.indexOf("right") !== -1, tc = (e) => e.indexOf("top") !== -1, nc = (e) => e.indexOf("fit") !== -1, rc = (e) => e.indexOf("overlap") !== -1, ic = (e) => e.split("-").every((e) => ["center", "fit"].indexOf(e) > -1), ac = (e) => {
4630
4631
  let t = e.match(/(start|center|end)/);
4631
4632
  return t ? t[0] : null;
4632
4633
  };
4633
- function sc(e, t) {
4634
- let n = 0, r = Bs.getTopNode(e);
4634
+ function oc(e, t) {
4635
+ let n = 0, r = zs.getTopNode(e);
4635
4636
  for (; e && e !== r;) {
4636
4637
  let r = getComputedStyle(e).position;
4637
4638
  if ((r === "absolute" || r === "relative" || r === "fixed") && (n = parseInt(getComputedStyle(e).zIndex) || 0), e = e.parentNode, e === t) break;
4638
4639
  }
4639
4640
  return n;
4640
4641
  }
4641
- var cc, lc, uc, dc;
4642
- function fc(e, t, n = "bottom", r = 0, i = 0) {
4642
+ var sc, cc, lc, uc;
4643
+ function dc(e, t, n = "bottom", r = 0, i = 0) {
4643
4644
  if (!e) return null;
4644
- cc = r, lc = i, uc = "auto";
4645
- let a = 0, o = 0, s = n, c = pc(e), l = ic(n) ? Bs.getTopNode(e) : c;
4645
+ sc = r, cc = i, lc = "auto";
4646
+ let a = 0, o = 0, s = n, c = fc(e), l = rc(n) ? zs.getTopNode(e) : c;
4646
4647
  if (!c) return null;
4647
4648
  let u = c.getBoundingClientRect(), d = e.getBoundingClientRect(), f = l.getBoundingClientRect(), p = window.getComputedStyle(l), m = {
4648
4649
  left: 0,
@@ -4655,47 +4656,51 @@ function fc(e, t, n = "bottom", r = 0, i = 0) {
4655
4656
  m[e] = parseFloat(p.getPropertyValue(t));
4656
4657
  }
4657
4658
  if (t) {
4658
- let e = sc(t, c);
4659
+ let e = oc(t, c);
4659
4660
  a = Math.max(e + 1, 20);
4660
4661
  }
4661
4662
  if (t) {
4662
- if (dc = t.getBoundingClientRect(), rc(n) && (uc = dc.width + "px"), n !== "point") if (ac(n)) rc(n) ? cc = 0 : (cc = f.width / 2, o = 1), lc = (f.height - d.height) / 2;
4663
- else {
4664
- let e = +!ic(n);
4665
- cc = tc(n) ? dc.right + e : dc.left - e, lc = $s(n) ? dc.bottom + 1 : dc.top;
4666
- let t = oc(n);
4667
- t && (tc(n) || ec(n) ? t === "center" ? lc -= (d.height - dc.height) / 2 : t === "end" && (lc -= d.height - dc.height) : ($s(n) || nc(n)) && (t === "center" ? cc -= (d.width - dc.width) / 2 : t === "end" && (cc -= d.width - dc.width), ic(n) || (cc += 1)));
4663
+ if (uc = t.getBoundingClientRect(), nc(n) && (lc = uc.width + "px"), n !== "point") {
4664
+ if (ic(n)) nc(n) ? sc = 0 : (sc = f.width / 2, o = 1), cc = (f.height - d.height) / 2;
4665
+ else {
4666
+ let e = +!rc(n);
4667
+ sc = ec(n) ? uc.right + e : uc.left - e, cc = Qs(n) ? uc.bottom + 1 : uc.top;
4668
+ let t = ac(n);
4669
+ t && (ec(n) || $s(n) ? t === "center" ? cc -= (d.height - uc.height) / 2 : t === "end" && (cc -= d.height - uc.height) : (Qs(n) || tc(n)) && (t === "center" ? sc -= (d.width - uc.width) / 2 : t === "end" && (sc -= d.width - uc.width), rc(n) || (sc += 1)));
4670
+ }
4668
4671
  }
4669
- } else dc = {
4672
+ } else uc = {
4670
4673
  left: r,
4671
4674
  right: r,
4672
4675
  top: i,
4673
4676
  bottom: i
4674
4677
  };
4675
- let h = (ec(n) || tc(n)) && ($s(n) || nc(n));
4676
- ec(n) && (o = 2);
4677
- let g = cc - d.width - f.left;
4678
- t && ec(n) && !h && g < 0 && (cc = dc.right, o = 0, s = s.replace("left", "right"));
4679
- let _ = cc + d.width * (1 - o / 2) - f.right;
4680
- if (_ > 0) if (!tc(n)) cc = f.right - m.right - d.width;
4681
- else {
4682
- let e = dc.left - f.x - d.width;
4683
- t && !h && e >= 0 ? (cc = dc.left - d.width, s = s.replace("right", "left")) : cc -= _ + m.right;
4678
+ let h = ($s(n) || ec(n)) && (Qs(n) || tc(n));
4679
+ $s(n) && (o = 2);
4680
+ let g = sc - d.width - f.left;
4681
+ t && $s(n) && !h && g < 0 && (sc = uc.right, o = 0, s = s.replace("left", "right"));
4682
+ let _ = sc + d.width * (1 - o / 2) - f.right;
4683
+ if (_ > 0) {
4684
+ if (!ec(n)) sc = f.right - m.right - d.width;
4685
+ else {
4686
+ let e = uc.left - f.x - d.width;
4687
+ t && !h && e >= 0 ? (sc = uc.left - d.width, s = s.replace("right", "left")) : sc -= _ + m.right;
4688
+ }
4684
4689
  }
4685
- o && (cc = Math.round(cc - d.width * o / 2));
4690
+ o && (sc = Math.round(sc - d.width * o / 2));
4686
4691
  let v = g < 0 || _ > 0 || !h;
4687
- nc(n) && (lc = dc.top - d.height, t && lc < f.y && v && (lc = dc.bottom, s = s.replace("top", "bottom")));
4688
- let y = lc + d.height - f.bottom;
4689
- return y > 0 && (t && $s(n) && v ? (lc -= d.height + dc.height + 1, s = s.replace("bottom", "top")) : lc -= y + m.bottom), cc -= u.left + m.left, lc -= u.top + m.top, cc = (ic(n) ? cc : Math.max(cc, 0)) + l.scrollLeft, lc = (ic(n) ? lc : Math.max(lc, 0)) + l.scrollTop, uc ||= "auto", {
4692
+ tc(n) && (cc = uc.top - d.height, t && cc < f.y && v && (cc = uc.bottom, s = s.replace("top", "bottom")));
4693
+ let y = cc + d.height - f.bottom;
4694
+ return y > 0 && (t && Qs(n) && v ? (cc -= d.height + uc.height + 1, s = s.replace("bottom", "top")) : cc -= y + m.bottom), sc -= u.left + m.left, cc -= u.top + m.top, sc = (rc(n) ? sc : Math.max(sc, 0)) + l.scrollLeft, cc = (rc(n) ? cc : Math.max(cc, 0)) + l.scrollTop, lc ||= "auto", {
4690
4695
  at: s,
4691
- x: cc,
4692
- y: lc,
4696
+ x: sc,
4697
+ y: cc,
4693
4698
  z: a,
4694
- width: uc
4699
+ width: lc
4695
4700
  };
4696
4701
  }
4697
- function pc(e) {
4698
- let t = Bs.getTopNode(e);
4702
+ function fc(e) {
4703
+ let t = zs.getTopNode(e);
4699
4704
  for (e &&= e.parentElement; e;) {
4700
4705
  let n = getComputedStyle(e).position;
4701
4706
  if (e === t || n === "relative" || n === "absolute" || n === "fixed") return e;
@@ -4703,89 +4708,89 @@ function pc(e) {
4703
4708
  }
4704
4709
  return null;
4705
4710
  }
4706
- function mc(e) {
4707
- let t = [], n = e, r = Bs.getTopNode(e);
4711
+ function pc(e) {
4712
+ let t = [], n = e, r = zs.getTopNode(e);
4708
4713
  for (; n && n !== r && !n.getAttribute("data-wx-portal-root");) getComputedStyle(n).position === "absolute" && t.push(n), n = n.parentNode;
4709
4714
  return t;
4710
4715
  }
4711
- var hc = (/* @__PURE__ */ new Date()).valueOf();
4712
- function gc() {
4713
- return hc += 1, hc;
4716
+ var mc = (/* @__PURE__ */ new Date()).valueOf();
4717
+ function hc() {
4718
+ return mc += 1, mc;
4714
4719
  }
4715
- function _c(e) {
4720
+ function gc(e) {
4716
4721
  return e < 10 ? "0" + e : e.toString();
4717
4722
  }
4718
- function vc(e) {
4719
- let t = _c(e);
4723
+ function _c(e) {
4724
+ let t = gc(e);
4720
4725
  return t.length == 2 ? "0" + t : t;
4721
4726
  }
4722
- function yc(e) {
4727
+ function vc(e) {
4723
4728
  let t = Math.floor(e / 11) * 11;
4724
4729
  return {
4725
4730
  start: t,
4726
4731
  end: t + 11
4727
4732
  };
4728
4733
  }
4729
- function bc(e) {
4734
+ function yc(e) {
4730
4735
  let t = (e.getDay() + 6) % 7, n = new Date(e.valueOf());
4731
4736
  n.setDate(e.getDate() + (3 - t)), n.setHours(0, 0, 0, 0);
4732
4737
  let r = new Date(n.getFullYear(), 0, 1), i = Math.round((n.getTime() - r.getTime()) / 864e5);
4733
4738
  return 1 + Math.floor(i / 7);
4734
4739
  }
4735
- var xc = ["", ""];
4736
- function Sc(e, t, n) {
4740
+ var bc = ["", ""];
4741
+ function xc(e, t, n) {
4737
4742
  switch (e) {
4738
- case "%d": return _c(t.getDate());
4739
- case "%m": return _c(t.getMonth() + 1);
4743
+ case "%d": return gc(t.getDate());
4744
+ case "%m": return gc(t.getMonth() + 1);
4740
4745
  case "%j": return t.getDate();
4741
4746
  case "%n": return t.getMonth() + 1;
4742
- case "%y": return _c(t.getFullYear() % 100);
4747
+ case "%y": return gc(t.getFullYear() % 100);
4743
4748
  case "%Y": return t.getFullYear();
4744
4749
  case "%D": return n.dayShort[t.getDay()];
4745
4750
  case "%l": return n.dayFull[t.getDay()];
4746
4751
  case "%M": return n.monthShort[t.getMonth()];
4747
4752
  case "%F": return n.monthFull[t.getMonth()];
4748
- case "%h": return _c((t.getHours() + 11) % 12 + 1);
4753
+ case "%h": return gc((t.getHours() + 11) % 12 + 1);
4749
4754
  case "%g": return (t.getHours() + 11) % 12 + 1;
4750
4755
  case "%G": return t.getHours();
4751
- case "%H": return _c(t.getHours());
4752
- case "%i": return _c(t.getMinutes());
4753
- case "%a": return ((t.getHours() > 11 ? n.pm : n.am) || xc)[0];
4754
- case "%A": return ((t.getHours() > 11 ? n.pm : n.am) || xc)[1];
4755
- case "%s": return _c(t.getSeconds());
4756
- case "%S": return vc(t.getMilliseconds());
4757
- case "%W": return _c(bc(t));
4756
+ case "%H": return gc(t.getHours());
4757
+ case "%i": return gc(t.getMinutes());
4758
+ case "%a": return ((t.getHours() > 11 ? n.pm : n.am) || bc)[0];
4759
+ case "%A": return ((t.getHours() > 11 ? n.pm : n.am) || bc)[1];
4760
+ case "%s": return gc(t.getSeconds());
4761
+ case "%S": return _c(t.getMilliseconds());
4762
+ case "%W": return gc(yc(t));
4758
4763
  case "%w": {
4759
4764
  let e = n.weekStart ?? 1;
4760
- if (e === 1) return _c(bc(t));
4765
+ if (e === 1) return gc(yc(t));
4761
4766
  let r = (t.getDay() - e + 7) % 7, i = (1 - e + 7) % 7, a = new Date(t.valueOf());
4762
- return a.setDate(t.getDate() + (i - r)), _c(bc(a));
4767
+ return a.setDate(t.getDate() + (i - r)), gc(yc(a));
4763
4768
  }
4764
4769
  case "%c": {
4765
4770
  let e = t.getFullYear() + "";
4766
- return e += "-" + _c(t.getMonth() + 1), e += "-" + _c(t.getDate()), e += "T", e += _c(t.getHours()), e += ":" + _c(t.getMinutes()), e += ":" + _c(t.getSeconds()), e;
4771
+ return e += "-" + gc(t.getMonth() + 1), e += "-" + gc(t.getDate()), e += "T", e += gc(t.getHours()), e += ":" + gc(t.getMinutes()), e += ":" + gc(t.getSeconds()), e;
4767
4772
  }
4768
4773
  case "%Q": return Math.floor(t.getMonth() / 3) + 1;
4769
4774
  default: return e;
4770
4775
  }
4771
4776
  }
4772
- var Cc = /%[a-zA-Z]/g;
4773
- function wc(e, t) {
4777
+ var Sc = /%[a-zA-Z]/g;
4778
+ function Cc(e, t) {
4774
4779
  return typeof e == "function" ? e : function(n) {
4775
- return n ? (n.getMonth || (n = new Date(n)), e.replace(Cc, (e) => Sc(e, n, t))) : "";
4780
+ return n ? (n.getMonth || (n = new Date(n)), e.replace(Sc, (e) => xc(e, n, t))) : "";
4776
4781
  };
4777
4782
  }
4778
- function Tc(e) {
4783
+ function wc(e) {
4779
4784
  return e && typeof e == "object" && !Array.isArray(e);
4780
4785
  }
4781
- function Ec(e, t) {
4786
+ function Tc(e, t) {
4782
4787
  for (let n in t) {
4783
4788
  let r = t[n];
4784
- e[n] = Tc(e[n]) && Tc(r) ? Ec({ ...e[n] }, t[n]) : t[n];
4789
+ e[n] = wc(e[n]) && wc(r) ? Tc({ ...e[n] }, t[n]) : t[n];
4785
4790
  }
4786
4791
  return e;
4787
4792
  }
4788
- function Dc(e) {
4793
+ function Ec(e) {
4789
4794
  return {
4790
4795
  getGroup(t) {
4791
4796
  let n = e[t];
@@ -4797,13 +4802,13 @@ function Dc(e) {
4797
4802
  extend(t, n) {
4798
4803
  if (!t) return this;
4799
4804
  let r;
4800
- return r = n ? Ec({ ...t }, e) : Ec({ ...e }, t), Dc(r);
4805
+ return r = n ? Tc({ ...t }, e) : Tc({ ...e }, t), Ec(r);
4801
4806
  }
4802
4807
  };
4803
4808
  }
4804
4809
  //#endregion
4805
4810
  //#region ../../node_modules/.bun/@svar-ui+core-locales@2.6.0/node_modules/@svar-ui/core-locales/locales/en.js
4806
- var Oc = {
4811
+ var Dc = {
4807
4812
  core: {
4808
4813
  ok: "OK",
4809
4814
  cancel: "Cancel",
@@ -4876,18 +4881,18 @@ var Oc = {
4876
4881
  yearFormat: "%Y"
4877
4882
  },
4878
4883
  lang: "en-US"
4879
- }, kc = i(""), Ac = i({}), jc = i(null), Mc = i(null), Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4884
+ }, Oc = i(""), kc = i({}), Ac = i(null), jc = i(null), Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4880
4885
  __proto__: null,
4881
- fieldId: Mc,
4882
- helpers: Ac,
4883
- i18n: jc,
4884
- theme: kc
4886
+ fieldId: jc,
4887
+ helpers: kc,
4888
+ i18n: Ac,
4889
+ theme: Oc
4885
4890
  }, Symbol.toStringTag, { value: "Module" }));
4886
- function Pc(e) {
4887
- let t = l(Mc), [n] = h(() => e || t || gc());
4891
+ function Nc(e) {
4892
+ let t = l(jc), [n] = h(() => e || t || hc());
4888
4893
  return n;
4889
4894
  }
4890
- function Fc({ type: e = "", css: t = "", icon: n = "", disabled: r = !1, title: i = "", tooltip: a, text: o = "", children: s, onClick: c }) {
4895
+ function Pc({ type: e = "", css: t = "", icon: n = "", disabled: r = !1, title: i = "", tooltip: a, text: o = "", children: s, onClick: c }) {
4891
4896
  let l = p(() => {
4892
4897
  let n = e ? e.split(" ").filter((e) => e !== "").map((e) => "wx-" + e).join(" ") : "";
4893
4898
  return t + (t ? " " : "") + n;
@@ -4903,8 +4908,8 @@ function Fc({ type: e = "", css: t = "", icon: n = "", disabled: r = !1, title:
4903
4908
  children: [n && /* @__PURE__ */ _("i", { className: "wx-2ZWgb4 " + n }), s || o || " "]
4904
4909
  });
4905
4910
  }
4906
- function Ic({ id: e, label: t = "", inputValue: n = "", value: r = !1, onChange: i, disabled: a = !1, css: o = "" }) {
4907
- let s = Pc(e), [c, l] = js(r);
4911
+ function Fc({ id: e, label: t = "", inputValue: n = "", value: r = !1, onChange: i, disabled: a = !1, css: o = "" }) {
4912
+ let s = Nc(e), [c, l] = As(r);
4908
4913
  return /* @__PURE__ */ v("div", {
4909
4914
  className: `wx-2IvefP wx-checkbox ${o}`,
4910
4915
  children: [/* @__PURE__ */ _("input", {
@@ -4931,12 +4936,12 @@ function Ic({ id: e, label: t = "", inputValue: n = "", value: r = !1, onChange:
4931
4936
  })]
4932
4937
  });
4933
4938
  }
4934
- function Lc({ theme: e = "", target: t, children: n }) {
4939
+ function Ic({ theme: e = "", target: t, children: n }) {
4935
4940
  let r = m(null), i = m(null), [a, o] = h(null);
4936
4941
  r.current ||= document.createElement("div");
4937
- let s = l(kc);
4942
+ let s = l(Oc);
4938
4943
  return u(() => {
4939
- o(t || Rc(i.current) || Bs.getTopNode(i.current));
4944
+ o(t || Lc(i.current) || zs.getTopNode(i.current));
4940
4945
  }, [i.current]), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
4941
4946
  ref: i,
4942
4947
  style: { display: "none" }
@@ -4945,12 +4950,12 @@ function Lc({ theme: e = "", target: t, children: n }) {
4945
4950
  children: n
4946
4951
  }), a) : null] });
4947
4952
  }
4948
- function Rc(e) {
4949
- let t = Bs.getTopNode(e);
4953
+ function Lc(e) {
4954
+ let t = zs.getTopNode(e);
4950
4955
  for (; e && e !== t && !e.getAttribute("data-wx-portal-root");) e = e.parentNode;
4951
4956
  return e;
4952
4957
  }
4953
- function zc({ left: e = 0, top: t = 0, at: n = "bottom", parent: r = null, width: i = "auto", css: a = "", onCancel: o, children: s, trackScroll: l = !1 }) {
4958
+ function Rc({ left: e = 0, top: t = 0, at: n = "bottom", parent: r = null, width: i = "auto", css: a = "", onCancel: o, children: s, trackScroll: l = !1 }) {
4954
4959
  let [d, p] = h(0), [g, v] = h(0), [y, b] = h("auto"), [x, S] = h(!1), C = m(null), w = m(null), T = m(o);
4955
4960
  u(() => {
4956
4961
  T.current = o;
@@ -4960,7 +4965,7 @@ function zc({ left: e = 0, top: t = 0, at: n = "bottom", parent: r = null, width
4960
4965
  }
4961
4966
  let D = c(() => {
4962
4967
  if (!C.current) return;
4963
- let i = fc(C.current, r, n, e, t);
4968
+ let i = dc(C.current, r, n, e, t);
4964
4969
  i && (p(i.x), v(i.y), b(E(i.width)));
4965
4970
  }, [
4966
4971
  C,
@@ -4975,7 +4980,7 @@ function zc({ left: e = 0, top: t = 0, at: n = "bottom", parent: r = null, width
4975
4980
  T.current && e.target !== w.current && C.current && !C.current.contains(e.target) && T.current(e);
4976
4981
  }, t;
4977
4982
  return requestAnimationFrame(() => {
4978
- D(), S(!0), l && C.current && (w.current = pc(C.current), w.current && w.current.addEventListener("scroll", e, !0)), r && (t = new ResizeObserver(D), t.observe(r));
4983
+ D(), S(!0), l && C.current && (w.current = fc(C.current), w.current && w.current.addEventListener("scroll", e, !0)), r && (t = new ResizeObserver(D), t.observe(r));
4979
4984
  }), () => {
4980
4985
  l && w.current && w.current.removeEventListener("scroll", e, !0), t?.disconnect();
4981
4986
  };
@@ -4990,7 +4995,7 @@ function zc({ left: e = 0, top: t = 0, at: n = "bottom", parent: r = null, width
4990
4995
  let e = (e) => {
4991
4996
  T.current && T.current(e);
4992
4997
  };
4993
- if (C.current) return Qs(C.current, {
4998
+ if (C.current) return Zs(C.current, {
4994
4999
  callback: e,
4995
5000
  parent: () => r
4996
5001
  }).destroy;
@@ -5011,7 +5016,7 @@ function zc({ left: e = 0, top: t = 0, at: n = "bottom", parent: r = null, width
5011
5016
  children: s
5012
5017
  });
5013
5018
  }
5014
- function Bc({ position: e = "bottom", align: t = "start", autoFit: n = !0, onCancel: r = null, width: i = "100%", css: a = "", children: o }) {
5019
+ function zc({ position: e = "bottom", align: t = "start", autoFit: n = !0, onCancel: r = null, width: i = "100%", css: a = "", children: o }) {
5015
5020
  let s = m(null), [c, l] = h(e), [d, f] = h(t), p = m(r);
5016
5021
  return u(() => {
5017
5022
  p.current = r;
@@ -5024,7 +5029,7 @@ function Bc({ position: e = "bottom", align: t = "start", autoFit: n = !0, onCan
5024
5029
  }
5025
5030
  }
5026
5031
  }, []), u(() => {
5027
- if (s.current) return Qs(s.current, (e) => {
5032
+ if (s.current) return Zs(s.current, (e) => {
5028
5033
  p.current && p.current(e);
5029
5034
  }).destroy;
5030
5035
  }, []), /* @__PURE__ */ _("div", {
@@ -5039,11 +5044,11 @@ function Bc({ position: e = "bottom", align: t = "start", autoFit: n = !0, onCan
5039
5044
  children: o
5040
5045
  });
5041
5046
  }
5042
- function Vc({ position: e = "bottom", align: t = "start", autoFit: n = !0, inline: r = !1, onCancel: i, width: a = "100%", children: o, ...s }) {
5047
+ function Bc({ position: e = "bottom", align: t = "start", autoFit: n = !0, inline: r = !1, onCancel: i, width: a = "100%", children: o, ...s }) {
5043
5048
  let [c, l] = h(void 0), u = m(null), d = p(() => `${e}-${t}`, [e, t]);
5044
5049
  return f(() => {
5045
5050
  u.current && l(u.current.parentNode);
5046
- }, []), /* @__PURE__ */ v(g, { children: [c && (r ? /* @__PURE__ */ _(Bc, {
5051
+ }, []), /* @__PURE__ */ v(g, { children: [c && (r ? /* @__PURE__ */ _(zc, {
5047
5052
  onCancel: i,
5048
5053
  position: e,
5049
5054
  align: t,
@@ -5051,7 +5056,7 @@ function Vc({ position: e = "bottom", align: t = "start", autoFit: n = !0, inlin
5051
5056
  width: a,
5052
5057
  ...s,
5053
5058
  children: o
5054
- }) : /* @__PURE__ */ _(Lc, { children: /* @__PURE__ */ _(zc, {
5059
+ }) : /* @__PURE__ */ _(Ic, { children: /* @__PURE__ */ _(Rc, {
5055
5060
  parent: c,
5056
5061
  at: d,
5057
5062
  onCancel: i,
@@ -5063,10 +5068,10 @@ function Vc({ position: e = "bottom", align: t = "start", autoFit: n = !0, inlin
5063
5068
  className: "wx-portal-node wx-32GZ52"
5064
5069
  })] });
5065
5070
  }
5066
- function Hc() {
5067
- return Dc(Oc);
5071
+ function Vc() {
5072
+ return Ec(Dc);
5068
5073
  }
5069
- function Uc() {
5074
+ function Hc() {
5070
5075
  let e = null, t = !1, n = !1, r, i, a, o, s = (e, t, s, c, l) => {
5071
5076
  r = e, i = t, a = s, o = c, n = l;
5072
5077
  }, c = (n) => {
@@ -5082,7 +5087,7 @@ function Uc() {
5082
5087
  };
5083
5088
  return {
5084
5089
  move: (t) => {
5085
- let n = Fs(t), r = i.findIndex((e) => e.id === n);
5090
+ let n = Ps(t), r = i.findIndex((e) => e.id === n);
5086
5091
  r !== e && c(r);
5087
5092
  },
5088
5093
  keydown: (n, r) => {
@@ -5109,21 +5114,21 @@ function Uc() {
5109
5114
  navigate: u
5110
5115
  };
5111
5116
  }
5112
- var Wc = 10, Gc = s(function({ data: e, checkboxes: t, itemTemplate: n, value: r }) {
5113
- return /* @__PURE__ */ v(g, { children: [t && /* @__PURE__ */ _(Ic, {
5117
+ var Uc = 10, Wc = s(function({ data: e, checkboxes: t, itemTemplate: n, value: r }) {
5118
+ return /* @__PURE__ */ v(g, { children: [t && /* @__PURE__ */ _(Fc, {
5114
5119
  id: e.id,
5115
5120
  css: "wx-list-checkbox",
5116
5121
  value: r && r.includes(e.id)
5117
- }), n ? Ms(n, { option: e }) : e.label] });
5122
+ }), n ? js(n, { option: e }) : e.label] });
5118
5123
  });
5119
- function Kc({ visibleItems: e, visibleRange: t, navIndex: n, checkboxes: r, itemTemplate: i, value: a, measureRefCallback: o }) {
5124
+ function Gc({ visibleItems: e, visibleRange: t, navIndex: n, checkboxes: r, itemTemplate: i, value: a, measureRefCallback: o }) {
5120
5125
  return e.map((e, s) => {
5121
5126
  let c = t.start + s;
5122
5127
  return /* @__PURE__ */ _("div", {
5123
5128
  ref: s === 0 ? o : void 0,
5124
5129
  className: `wx-233fr7 wx-item ${c === n ? "wx-focus" : ""}`,
5125
5130
  "data-id": e.id,
5126
- children: /* @__PURE__ */ _(Gc, {
5131
+ children: /* @__PURE__ */ _(Wc, {
5127
5132
  data: e,
5128
5133
  checkboxes: r,
5129
5134
  itemTemplate: i,
@@ -5132,8 +5137,8 @@ function Kc({ visibleItems: e, visibleRange: t, navIndex: n, checkboxes: r, item
5132
5137
  }, e.id);
5133
5138
  });
5134
5139
  }
5135
- function qc({ items: e = [], children: t, onSelect: n, onReady: r, virtualized: i = !1, checkboxes: a, multiselect: o, value: s, ...d }) {
5136
- let f = m(), g = m(!1), v = m(Uc()), [y, b] = h(null), x = m(y), [S, C] = h(0), [w, T] = h(24), E = m(!1), D = (l(jc) || Hc()).getGroup("core"), O = m(e);
5140
+ function Kc({ items: e = [], children: t, onSelect: n, onReady: r, virtualized: i = !1, checkboxes: a, multiselect: o, value: s, ...d }) {
5141
+ let f = m(), g = m(!1), v = m(Hc()), [y, b] = h(null), x = m(y), [S, C] = h(0), [w, T] = h(24), E = m(!1), D = (l(Ac) || Vc()).getGroup("core"), O = m(e);
5137
5142
  u(() => {
5138
5143
  O.current = e;
5139
5144
  }, [e]);
@@ -5207,8 +5212,8 @@ function qc({ items: e = [], children: t, onSelect: n, onReady: r, virtualized:
5207
5212
  };
5208
5213
  let t = Math.floor(S / w), n = t + B;
5209
5214
  return {
5210
- start: Math.max(0, t - Wc),
5211
- end: Math.min(e.length, n + Wc)
5215
+ start: Math.max(0, t - Uc),
5216
+ end: Math.min(e.length, n + Uc)
5212
5217
  };
5213
5218
  }, [
5214
5219
  i,
@@ -5229,7 +5234,7 @@ function qc({ items: e = [], children: t, onSelect: n, onReady: r, virtualized:
5229
5234
  i && C(0);
5230
5235
  }, [e, i]), u(() => {
5231
5236
  y === null && (g.current = !1);
5232
- }, [y]), y === null ? null : /* @__PURE__ */ _(Vc, {
5237
+ }, [y]), y === null ? null : /* @__PURE__ */ _(Bc, {
5233
5238
  onCancel: R,
5234
5239
  ...d,
5235
5240
  children: /* @__PURE__ */ _("div", {
@@ -5244,7 +5249,7 @@ function qc({ items: e = [], children: t, onSelect: n, onReady: r, virtualized:
5244
5249
  children: /* @__PURE__ */ _("div", {
5245
5250
  className: "wx-233fr7 wx-list-content",
5246
5251
  style: { transform: `translateY(${ee}px)` },
5247
- children: /* @__PURE__ */ _(Kc, {
5252
+ children: /* @__PURE__ */ _(Gc, {
5248
5253
  visibleRange: V,
5249
5254
  visibleItems: H,
5250
5255
  navIndex: y,
@@ -5254,7 +5259,7 @@ function qc({ items: e = [], children: t, onSelect: n, onReady: r, virtualized:
5254
5259
  value: s
5255
5260
  })
5256
5261
  })
5257
- }) : /* @__PURE__ */ _(Kc, {
5262
+ }) : /* @__PURE__ */ _(Gc, {
5258
5263
  visibleRange: V,
5259
5264
  visibleItems: H,
5260
5265
  navIndex: y,
@@ -5269,8 +5274,8 @@ function qc({ items: e = [], children: t, onSelect: n, onReady: r, virtualized:
5269
5274
  })
5270
5275
  }, I.current);
5271
5276
  }
5272
- function Jc({ value: e = "", id: t, readonly: n = !1, focus: r = !1, select: i = !1, type: a = "text", placeholder: o = "", disabled: s = !1, error: l = !1, title: d = "", tooltip: f, css: h = "", icon: y = "", clear: b = !1, onChange: x }) {
5273
- let S = Pc(t), [C, w] = js(e), T = m(null), E = p(() => y && h.indexOf("wx-icon-left") === -1 ? "wx-icon-right " + h : h, [y, h]), D = p(() => y && h.indexOf("wx-icon-left") !== -1, [y, h]);
5277
+ function qc({ value: e = "", id: t, readonly: n = !1, focus: r = !1, select: i = !1, type: a = "text", placeholder: o = "", disabled: s = !1, error: l = !1, title: d = "", tooltip: f, css: h = "", icon: y = "", clear: b = !1, onChange: x }) {
5278
+ let S = Nc(t), [C, w] = As(e), T = m(null), E = p(() => y && h.indexOf("wx-icon-left") === -1 ? "wx-icon-right " + h : h, [y, h]), D = p(() => y && h.indexOf("wx-icon-left") !== -1, [y, h]);
5274
5279
  u(() => {
5275
5280
  let e = setTimeout(() => {
5276
5281
  r && T.current && T.current.focus(), i && T.current && T.current.select();
@@ -5313,13 +5318,13 @@ function Jc({ value: e = "", id: t, readonly: n = !1, focus: r = !1, select: i =
5313
5318
  }), D && /* @__PURE__ */ _("i", { className: `wx-hQ64J4 wx-icon ${y}` })] }) : y ? /* @__PURE__ */ _("i", { className: `wx-hQ64J4 wx-icon ${y}` }) : null]
5314
5319
  });
5315
5320
  }
5316
- function Yc({ date: e, type: t, part: n, onShift: r }) {
5317
- let { calendar: i, formats: a } = l(jc).getRaw(), o = e.getFullYear(), s = p(() => {
5321
+ function Jc({ date: e, type: t, part: n, onShift: r }) {
5322
+ let { calendar: i, formats: a } = l(Ac).getRaw(), o = e.getFullYear(), s = p(() => {
5318
5323
  switch (t) {
5319
- case "month": return wc(a.monthYearFormat, i)(e);
5320
- case "year": return wc(a.yearFormat, i)(e);
5324
+ case "month": return Cc(a.monthYearFormat, i)(e);
5325
+ case "year": return Cc(a.yearFormat, i)(e);
5321
5326
  case "duodecade": {
5322
- let { start: e, end: t } = yc(o), n = wc(a.yearFormat, i);
5327
+ let { start: e, end: t } = vc(o), n = Cc(a.yearFormat, i);
5323
5328
  return `${n(new Date(e, 0, 1))} - ${n(new Date(t, 11, 31))}`;
5324
5329
  }
5325
5330
  default: return "";
@@ -5362,15 +5367,15 @@ function Yc({ date: e, type: t, part: n, onShift: r }) {
5362
5367
  ]
5363
5368
  });
5364
5369
  }
5365
- function Xc({ onClick: e, children: t }) {
5370
+ function Yc({ onClick: e, children: t }) {
5366
5371
  return /* @__PURE__ */ _("button", {
5367
5372
  className: "wx-3s8W4d wx-button",
5368
5373
  onClick: e,
5369
5374
  children: t
5370
5375
  });
5371
5376
  }
5372
- function Zc({ value: e, current: t, part: n = "", markers: r = null, css: i = "", onCancel: a, onChange: o }) {
5373
- let s = (l(jc) || Hc()).getRaw().calendar, c = (s.weekStart || 7) % 7, d = s.dayShort.slice(c).concat(s.dayShort.slice(0, c)), f = (e, t, n) => new Date(e.getFullYear(), e.getMonth() + (t || 0), e.getDate() + (n || 0)), h = n !== "normal";
5377
+ function Xc({ value: e, current: t, part: n = "", markers: r = null, css: i = "", onCancel: a, onChange: o }) {
5378
+ let s = (l(Ac) || Vc()).getRaw().calendar, c = (s.weekStart || 7) % 7, d = s.dayShort.slice(c).concat(s.dayShort.slice(0, c)), f = (e, t, n) => new Date(e.getFullYear(), e.getMonth() + (t || 0), e.getDate() + (n || 0)), h = n !== "normal";
5374
5379
  function g(e) {
5375
5380
  let t = e.getDay();
5376
5381
  return t === 0 || t === 6;
@@ -5416,7 +5421,7 @@ function Zc({ value: e, current: t, part: n = "", markers: r = null, css: i = ""
5416
5421
  r
5417
5422
  ]), T = m(null), E = m({});
5418
5423
  return E.current.click = S, u(() => {
5419
- Us(T.current, E.current);
5424
+ Hs(T.current, E.current);
5420
5425
  }, []), /* @__PURE__ */ v("div", {
5421
5426
  className: `wx-398RBS wx-month ${i}`,
5422
5427
  children: [/* @__PURE__ */ _("div", {
@@ -5436,8 +5441,8 @@ function Zc({ value: e, current: t, part: n = "", markers: r = null, css: i = ""
5436
5441
  })]
5437
5442
  });
5438
5443
  }
5439
- function Qc({ value: e, current: t, part: n, onCancel: r, onChange: i, onShift: a }) {
5440
- let o = m(/* @__PURE__ */ new Date()), [s, u] = js(e || o.current), [d, f] = js(t || o.current), h = l(jc).getRaw().calendar, y = h.monthShort || [], b = p(() => d.getMonth(), [d]), x = c((e, t) => {
5444
+ function Zc({ value: e, current: t, part: n, onCancel: r, onChange: i, onShift: a }) {
5445
+ let o = m(/* @__PURE__ */ new Date()), [s, u] = As(e || o.current), [d, f] = As(t || o.current), h = l(Ac).getRaw().calendar, y = h.monthShort || [], b = p(() => d.getMonth(), [d]), x = c((e, t) => {
5441
5446
  if (e != null) {
5442
5447
  t.stopPropagation();
5443
5448
  let n = new Date(d);
@@ -5474,27 +5479,27 @@ function Qc({ value: e, current: t, part: n, onCancel: r, onChange: i, onShift:
5474
5479
  }, t))
5475
5480
  }), /* @__PURE__ */ _("div", {
5476
5481
  className: "wx-34U8T8 wx-buttons",
5477
- children: /* @__PURE__ */ _(Xc, {
5482
+ children: /* @__PURE__ */ _(Yc, {
5478
5483
  onClick: S,
5479
5484
  children: h.done
5480
5485
  })
5481
5486
  })] });
5482
5487
  }
5483
- var $c = {
5488
+ var Qc = "wx-1XEF33", $c = {
5484
5489
  month: {
5485
- component: Zc,
5490
+ component: Xc,
5486
5491
  next: tl,
5487
5492
  prev: el
5488
5493
  },
5489
5494
  year: {
5490
- component: Qc,
5495
+ component: Zc,
5491
5496
  next: rl,
5492
5497
  prev: nl
5493
5498
  },
5494
5499
  duodecade: {
5495
5500
  component: ({ value: e, current: t, onCancel: n, onChange: r, onShift: i, part: a }) => {
5496
- let o = l(jc).getRaw().calendar, [s, c] = js(t), [d, f] = js(e), h = p(() => s.getFullYear(), [s]), y = p(() => {
5497
- let { start: e, end: t } = yc(h), n = [];
5501
+ let o = l(Ac).getRaw().calendar, [s, c] = As(t), [d, f] = As(e), h = p(() => s.getFullYear(), [s]), y = p(() => {
5502
+ let { start: e, end: t } = vc(h), n = [];
5498
5503
  for (let r = e; r <= t; ++r) n.push(r);
5499
5504
  return n;
5500
5505
  }, [h]), b = { click: x };
@@ -5512,9 +5517,9 @@ var $c = {
5512
5517
  }
5513
5518
  let C = m(null);
5514
5519
  return u(() => {
5515
- C.current && Us(C.current, b);
5520
+ C.current && Hs(C.current, b);
5516
5521
  }, []), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
5517
- className: "wx-1XEF33 wx-years",
5522
+ className: Qc + " wx-years",
5518
5523
  ref: C,
5519
5524
  children: y.map((e, t) => /* @__PURE__ */ _("div", {
5520
5525
  className: `wx-1XEF33 wx-year ${h == e ? "wx-current" : ""} ${t === 0 ? "wx-prev-decade" : ""} ${t === 11 ? "wx-next-decade" : ""}`,
@@ -5522,8 +5527,8 @@ var $c = {
5522
5527
  children: e
5523
5528
  }, t))
5524
5529
  }), /* @__PURE__ */ _("div", {
5525
- className: "wx-1XEF33 wx-buttons",
5526
- children: /* @__PURE__ */ _(Xc, {
5530
+ className: Qc + " wx-buttons",
5531
+ children: /* @__PURE__ */ _(Yc, {
5527
5532
  onClick: S,
5528
5533
  children: o.done
5529
5534
  })
@@ -5567,7 +5572,7 @@ function cl(e) {
5567
5572
  if (e === "today") return /* @__PURE__ */ new Date();
5568
5573
  }
5569
5574
  function ll({ value: e, current: t, onCurrentChange: n, part: r = "normal", markers: i = null, buttons: a, css: o = "", onShift: s, onChange: c }) {
5570
- let u = l(jc).getGroup("calendar"), [d, f] = h("month"), m = Array.isArray(a) ? a : a ? sl : [], g = (e, t) => {
5575
+ let u = l(Ac).getGroup("calendar"), [d, f] = h("month"), m = Array.isArray(a) ? a : a ? sl : [], g = (e, t) => {
5571
5576
  e.preventDefault(), c && c({ value: t });
5572
5577
  }, y = () => {
5573
5578
  d === "duodecade" ? f("year") : d === "year" && f("month");
@@ -5592,7 +5597,7 @@ function ll({ value: e, current: t, onCurrentChange: n, part: r = "normal", mark
5592
5597
  className: `wx-2Gr4AS wx-calendar ${r !== "normal" && r !== "both" ? "wx-part" : ""} ${o}`,
5593
5598
  children: /* @__PURE__ */ v("div", {
5594
5599
  className: "wx-2Gr4AS wx-wrap",
5595
- children: [/* @__PURE__ */ _(Yc, {
5600
+ children: [/* @__PURE__ */ _(Jc, {
5596
5601
  date: t,
5597
5602
  part: r,
5598
5603
  type: d,
@@ -5610,7 +5615,7 @@ function ll({ value: e, current: t, onCurrentChange: n, part: r = "normal", mark
5610
5615
  className: "wx-2Gr4AS wx-buttons",
5611
5616
  children: m.map((e) => /* @__PURE__ */ _("div", {
5612
5617
  className: "wx-2Gr4AS wx-button-item",
5613
- children: /* @__PURE__ */ _(Xc, {
5618
+ children: /* @__PURE__ */ _(Yc, {
5614
5619
  onClick: (t) => g(t, cl(e)),
5615
5620
  children: u(e)
5616
5621
  })
@@ -5620,15 +5625,15 @@ function ll({ value: e, current: t, onCurrentChange: n, part: r = "normal", mark
5620
5625
  });
5621
5626
  }
5622
5627
  function ul(e) {
5623
- let { words: t = null, optional: n = !1, children: r } = e, i = l(jc), a = p(() => {
5628
+ let { words: t = null, optional: n = !1, children: r } = e, i = l(Ac), a = p(() => {
5624
5629
  let e = i;
5625
- return (!e || !e.extend) && (e = Dc(Oc)), t !== null && (e = e.extend(t, n)), e;
5630
+ return (!e || !e.extend) && (e = Ec(Dc)), t !== null && (e = e.extend(t, n)), e;
5626
5631
  }, [
5627
5632
  t,
5628
5633
  n,
5629
5634
  i
5630
5635
  ]);
5631
- return /* @__PURE__ */ _(jc.Provider, {
5636
+ return /* @__PURE__ */ _(Ac.Provider, {
5632
5637
  value: a,
5633
5638
  children: r
5634
5639
  });
@@ -5644,7 +5649,7 @@ function dl(e, t, n, r) {
5644
5649
  }
5645
5650
  var fl = ["clear", "today"];
5646
5651
  function pl({ value: e, current: t, markers: n = null, buttons: r = fl, css: i = "", onChange: a }) {
5647
- let [o, s] = js(e), [l, d] = js(t);
5652
+ let [o, s] = As(e), [l, d] = As(t);
5648
5653
  u(() => {
5649
5654
  dl(l, o, d, !1);
5650
5655
  }, [o, l]);
@@ -5669,7 +5674,7 @@ function ml(e) {
5669
5674
  }
5670
5675
  var hl = ["clear", "today"];
5671
5676
  function gl({ value: e, id: t, disabled: n = !1, error: r = !1, placeholder: i = "", format: a = "", buttons: o = hl, css: s = "", title: c = "", tooltip: d, editable: f = !1, clear: m = !1, onChange: g, dropdown: y = {} }) {
5672
- let { calendar: b, formats: x } = (l(jc) || Hc()).getRaw(), S = a || x?.dateFormat, C = typeof S == "function" ? S : wc(S, b), [w, T] = h(e), [E, D] = h(!1);
5677
+ let { calendar: b, formats: x } = (l(Ac) || Vc()).getRaw(), S = a || x?.dateFormat, C = typeof S == "function" ? S : Cc(S, b), [w, T] = h(e), [E, D] = h(!1);
5673
5678
  u(() => {
5674
5679
  T(e);
5675
5680
  }, [e]);
@@ -5692,7 +5697,7 @@ function gl({ value: e, id: t, disabled: n = !1, error: r = !1, placeholder: i =
5692
5697
  }, []), /* @__PURE__ */ v("div", {
5693
5698
  className: "wx-1lKOFG wx-datepicker",
5694
5699
  onClick: () => D(!0),
5695
- children: [/* @__PURE__ */ _(Jc, {
5700
+ children: [/* @__PURE__ */ _(qc, {
5696
5701
  css: `wx-date-input ${s}`,
5697
5702
  title: c,
5698
5703
  tooltip: d,
@@ -5706,7 +5711,7 @@ function gl({ value: e, id: t, disabled: n = !1, error: r = !1, placeholder: i =
5706
5711
  onChange: j,
5707
5712
  icon: "wxi-calendar",
5708
5713
  clear: m
5709
- }), E && !n && /* @__PURE__ */ _(Vc, {
5714
+ }), E && !n && /* @__PURE__ */ _(Bc, {
5710
5715
  onCancel: O,
5711
5716
  ...ml(y),
5712
5717
  children: /* @__PURE__ */ _(pl, {
@@ -5718,7 +5723,7 @@ function gl({ value: e, id: t, disabled: n = !1, error: r = !1, placeholder: i =
5718
5723
  });
5719
5724
  }
5720
5725
  function _l({ value: e = "", options: t = [], textOptions: n = null, placeholder: r = "", disabled: i = !1, error: a = !1, title: o = "", tooltip: s, textField: l = "label", clear: u = !1, css: d = "", children: f, onChange: h, dropdown: g = {} }) {
5721
- let y = m(null), b = m(null), [x, S] = js(e);
5726
+ let y = m(null), b = m(null), [x, S] = As(e);
5722
5727
  function C(e) {
5723
5728
  y.current = e.navigate, b.current = e.keydown;
5724
5729
  }
@@ -5750,7 +5755,7 @@ function _l({ value: e = "", options: t = [], textOptions: n = null, placeholder
5750
5755
  className: "wx-2YgblL wx-icon wxi-close",
5751
5756
  onClick: E
5752
5757
  }) : /* @__PURE__ */ _("i", { className: "wx-2YgblL wx-icon wxi-angle-down" }),
5753
- !i && /* @__PURE__ */ _(qc, {
5758
+ !i && /* @__PURE__ */ _(Kc, {
5754
5759
  items: t,
5755
5760
  onReady: C,
5756
5761
  onSelect: T,
@@ -5773,7 +5778,7 @@ var vl = ({ options: e = [], value: t = "", css: n = "", children: r, onChange:
5773
5778
  title: e.title,
5774
5779
  onClick: () => s(e.id),
5775
5780
  "data-tooltip-text": e.tooltip,
5776
- children: r ? Ms(r, { option: e }) : /* @__PURE__ */ v(g, { children: [e.icon && /* @__PURE__ */ _("i", { className: `wx-0hMO7P wx-icon ${e.icon} ${e.label ? "" : "wx-only"}` }), e.label && /* @__PURE__ */ _("span", {
5781
+ children: r ? js(r, { option: e }) : /* @__PURE__ */ v(g, { children: [e.icon && /* @__PURE__ */ _("i", { className: `wx-0hMO7P wx-icon ${e.icon} ${e.label ? "" : "wx-only"}` }), e.label && /* @__PURE__ */ _("span", {
5777
5782
  className: "wx-0hMO7P wx-label",
5778
5783
  children: e.label
5779
5784
  })] })
@@ -5807,7 +5812,7 @@ function bl({ data: e = [] }) {
5807
5812
  });
5808
5813
  }
5809
5814
  function xl({ title: e = "", buttons: t = ["cancel", "ok"], header: n, children: r, footer: i, css: a = "", onConfirm: o, onCancel: s }) {
5810
- let c = (l(jc) || Hc()).getGroup("core"), d = m(null);
5815
+ let c = (l(Ac) || Vc()).getGroup("core"), d = m(null);
5811
5816
  u(() => {
5812
5817
  d.current?.focus();
5813
5818
  }, []);
@@ -5846,7 +5851,7 @@ function xl({ title: e = "", buttons: t = ["cancel", "ok"], header: n, children:
5846
5851
  className: "wx-1FxkZa wx-buttons",
5847
5852
  children: t.map((e) => /* @__PURE__ */ _("div", {
5848
5853
  className: "wx-1FxkZa wx-button",
5849
- children: /* @__PURE__ */ _(Fc, {
5854
+ children: /* @__PURE__ */ _(Pc, {
5850
5855
  type: `block ${e === "ok" ? "primary" : "secondary"}`,
5851
5856
  onClick: (t) => p(t, e),
5852
5857
  children: c(e)
@@ -5871,7 +5876,7 @@ function Sl({ children: e }, t) {
5871
5876
  });
5872
5877
  },
5873
5878
  showNotice: (e) => {
5874
- e = { ...e }, e.id = e.id || gc(), e.remove = () => a((t) => t.filter((t) => t.id !== e.id)), e.expire != -1 && setTimeout(e.remove, e.expire || 5100), a((t) => [...t, e]);
5879
+ e = { ...e }, e.id = e.id || hc(), e.remove = () => a((t) => t.filter((t) => t.id !== e.id)), e.expire != -1 && setTimeout(e.remove, e.expire || 5100), a((t) => [...t, e]);
5875
5880
  }
5876
5881
  }), []), /* @__PURE__ */ v(g, { children: [
5877
5882
  e,
@@ -5891,7 +5896,7 @@ function wl(e) {
5891
5896
  showNotice: (e) => n.current.showNotice(e),
5892
5897
  showModal: (e) => n.current.showModal(e)
5893
5898
  }), []);
5894
- return /* @__PURE__ */ _(Ac.Provider, {
5899
+ return /* @__PURE__ */ _(kc.Provider, {
5895
5900
  value: r,
5896
5901
  children: /* @__PURE__ */ _(Cl, {
5897
5902
  ref: n,
@@ -5900,7 +5905,7 @@ function wl(e) {
5900
5905
  });
5901
5906
  }
5902
5907
  var Tl = ({ value: e = !1, type: t = "", icon: n = "", disabled: r = !1, iconActive: i = "", onClick: a, title: o = "", tooltip: s, css: l = "", text: u = "", textActive: d = "", children: f, active: m, onChange: h }) => {
5903
- let [g, v] = js(e), y = p(() => (g ? "pressed" : "") + (t ? " " + t : ""), [g, t]), b = c((e) => {
5908
+ let [g, v] = As(e), y = p(() => (g ? "pressed" : "") + (t ? " " + t : ""), [g, t]), b = c((e) => {
5904
5909
  let t = !g;
5905
5910
  a && a(e), e.defaultPrevented || (v(t), h && h({ value: t }));
5906
5911
  }, [
@@ -5908,7 +5913,7 @@ var Tl = ({ value: e = !1, type: t = "", icon: n = "", disabled: r = !1, iconAct
5908
5913
  a,
5909
5914
  h
5910
5915
  ]);
5911
- return g && m ? /* @__PURE__ */ _(Fc, {
5916
+ return g && m ? /* @__PURE__ */ _(Pc, {
5912
5917
  title: o,
5913
5918
  tooltip: s,
5914
5919
  text: g && d || u,
@@ -5917,8 +5922,8 @@ var Tl = ({ value: e = !1, type: t = "", icon: n = "", disabled: r = !1, iconAct
5917
5922
  icon: g && i || n,
5918
5923
  onClick: b,
5919
5924
  disabled: r,
5920
- children: Ms(m, { value: g })
5921
- }) : f ? /* @__PURE__ */ _(Fc, {
5925
+ children: js(m, { value: g })
5926
+ }) : f ? /* @__PURE__ */ _(Pc, {
5922
5927
  title: o,
5923
5928
  tooltip: s,
5924
5929
  text: g && d || u,
@@ -5928,7 +5933,7 @@ var Tl = ({ value: e = !1, type: t = "", icon: n = "", disabled: r = !1, iconAct
5928
5933
  onClick: b,
5929
5934
  disabled: r,
5930
5935
  children: f
5931
- }) : /* @__PURE__ */ _(Fc, {
5936
+ }) : /* @__PURE__ */ _(Pc, {
5932
5937
  title: o,
5933
5938
  tooltip: s,
5934
5939
  text: g && d || u,
@@ -5944,7 +5949,7 @@ function El() {
5944
5949
  }
5945
5950
  function Dl(e) {
5946
5951
  let { fonts: t = !0, children: n } = e;
5947
- return /* @__PURE__ */ _(kc.Provider, {
5952
+ return /* @__PURE__ */ _(Oc.Provider, {
5948
5953
  value: "willow",
5949
5954
  children: /* @__PURE__ */ v(g, { children: [n && n && /* @__PURE__ */ _("div", {
5950
5955
  className: "wx-theme wx-willow-theme",
@@ -5963,7 +5968,7 @@ function Dl(e) {
5963
5968
  ] })] })
5964
5969
  });
5965
5970
  }
5966
- Vs(Bs);
5971
+ Bs(zs);
5967
5972
  //#endregion
5968
5973
  //#region ../../node_modules/.bun/@svar-ui+grid-locales@2.7.0/node_modules/@svar-ui/grid-locales/locales/en.js
5969
5974
  var Ol = { grid: {
@@ -6967,7 +6972,7 @@ function gu(e) {
6967
6972
  return mu(e, (t, n) => {
6968
6973
  let r = {
6969
6974
  ...t,
6970
- id: t.id || gc()
6975
+ id: t.id || hc()
6971
6976
  };
6972
6977
  return r.type && (r.comp = r.type), r.comp === "separator" && e[n - 1]?.comp === "separator" ? null : r;
6973
6978
  });
@@ -6996,7 +7001,7 @@ function bu({ onClick: e, onShow: t, option: n }) {
6996
7001
  return /* @__PURE__ */ v("div", {
6997
7002
  ref: r,
6998
7003
  className: `wx-cDCz9rZQ wx-option ${n.css || ""} ${n.disabled ? "wx-disabled" : ""}`,
6999
- "data-id": Ls(n.id),
7004
+ "data-id": Is(n.id),
7000
7005
  onMouseEnter: i,
7001
7006
  onClick: a,
7002
7007
  children: [
@@ -7022,9 +7027,9 @@ function bu({ onClick: e, onShow: t, option: n }) {
7022
7027
  }
7023
7028
  function xu({ options: e, left: t = 0, top: n = 0, at: i = "bottom", parent: a = null, mount: o = null, context: s = null, css: l = "", onClick: d, onCancel: f }) {
7024
7029
  let [g, y] = h(-1e4), [b, x] = h(-1e4), [S, C] = h(20), [w, T] = h(), E = m(null), [D, O] = h(!1), [k, A] = h(null), j = c(() => {
7025
- let e = fc(E.current, a, i, t, n);
7030
+ let e = dc(E.current, a, i, t, n);
7026
7031
  e && (y(e.x), x(e.y), T(e.width));
7027
- let r = e?.z ?? 20, o = a ? mc(a) : [], s = 0;
7032
+ let r = e?.z ?? 20, o = a ? pc(a) : [], s = 0;
7028
7033
  for (let e of o) {
7029
7034
  let t = parseInt(getComputedStyle(e).zIndex, 10);
7030
7035
  t > s && (s = t);
@@ -7056,7 +7061,7 @@ function xu({ options: e, left: t = 0, top: n = 0, at: i = "bottom", parent: a =
7056
7061
  option: null
7057
7062
  });
7058
7063
  }
7059
- return Qs(E.current, {
7064
+ return Zs(E.current, {
7060
7065
  callback: e,
7061
7066
  modal: !0,
7062
7067
  parent: () => L.current
@@ -7130,7 +7135,7 @@ var Su = o(function(e, t) {
7130
7135
  return;
7131
7136
  }
7132
7137
  C(e.clientX + 1), T(e.clientY + 1);
7133
- let r = typeof t < "u" ? t : Fs(n, D);
7138
+ let r = typeof t < "u" ? t : Ps(n, D);
7134
7139
  i && (r = i(r, e), !r) || (y(r), x(n), E.current = e.nativeEvent || e, e.preventDefault());
7135
7140
  }, [
7136
7141
  b,
@@ -7141,7 +7146,7 @@ var Su = o(function(e, t) {
7141
7146
  onClick: j,
7142
7147
  "data-menu-ignore": "true",
7143
7148
  children: typeof l == "function" ? l() : l
7144
- }) : null, b ? /* @__PURE__ */ _(Lc, { children: /* @__PURE__ */ _(xu, {
7149
+ }) : null, b ? /* @__PURE__ */ _(Ic, { children: /* @__PURE__ */ _(xu, {
7145
7150
  css: s,
7146
7151
  at: r,
7147
7152
  top: w,
@@ -7179,7 +7184,7 @@ var Su = o(function(e, t) {
7179
7184
  onClick: b,
7180
7185
  "data-menu-ignore": "true",
7181
7186
  children: a
7182
- }), s ? /* @__PURE__ */ _(Lc, { children: /* @__PURE__ */ _(xu, {
7187
+ }), s ? /* @__PURE__ */ _(Ic, { children: /* @__PURE__ */ _(xu, {
7183
7188
  css: i,
7184
7189
  at: r,
7185
7190
  parent: s,
@@ -7277,10 +7282,10 @@ function Ou(e, t) {
7277
7282
  let n = e.getGroup(t);
7278
7283
  if (n) return n;
7279
7284
  }
7280
- return Dc(Tu).getGroup(t);
7285
+ return Ec(Tu).getGroup(t);
7281
7286
  }
7282
7287
  var ku = () => Math.random().toString(36).substr(2, 9), Au = ({ data: e, accept: t = "", multiple: n = !0, folder: r = !1, uploadURL: i = "", apiOnly: a = !1, disabled: o = !1, children: s, onChange: c, onUpload: d }) => {
7283
- let f = m(null), p = m(null), [y, b] = h({}), x = Du(), S = e || x, C = Ou(l(Nc.i18n), "uploader");
7288
+ let f = m(null), p = m(null), [y, b] = h({}), x = Du(), S = e || x, C = Ou(l(Mc.i18n), "uploader");
7284
7289
  u(() => {
7285
7290
  f.current && r && (f.current.webkitdirectory = !0);
7286
7291
  }, [r]), u(() => {
@@ -7399,11 +7404,14 @@ function ju(e, t) {
7399
7404
  function Mu(e, t) {
7400
7405
  if (typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null) return e === t;
7401
7406
  if (typeof e != typeof t || (e === null || t === null) && e !== t || e instanceof Date && t instanceof Date && e.getTime() !== t.getTime()) return !1;
7402
- if (typeof e == "object") if (Array.isArray(e) && Array.isArray(t)) {
7403
- if (e.length !== t.length) return !1;
7404
- for (let n = e.length - 1; n >= 0; n--) if (!Mu(e[n], t[n])) return !1;
7405
- return !0;
7406
- } else return ju(e, t);
7407
+ if (typeof e == "object") {
7408
+ if (Array.isArray(e) && Array.isArray(t)) {
7409
+ if (e.length !== t.length) return !1;
7410
+ for (let n = e.length - 1; n >= 0; n--) if (!Mu(e[n], t[n])) return !1;
7411
+ return !0;
7412
+ }
7413
+ return ju(e, t);
7414
+ }
7407
7415
  return e === t;
7408
7416
  }
7409
7417
  function Nu(e) {
@@ -8166,7 +8174,7 @@ var Td = class extends Fu {
8166
8174
  r = [...r], r.splice(n + +!!c, 0, e.row);
8167
8175
  } else r = [...r, e.row];
8168
8176
  let u = { data: r };
8169
- a && (u._filterIds = [...a, e.id]), this.setState(u), !(typeof l == "boolean" && !l) && (l || i) && n.exec("select-row", {
8177
+ a && (u._filterIds = [...a, e.id]), this.setState(u), (typeof l != "boolean" || l) && (l || i) && n.exec("select-row", {
8170
8178
  id: o.id,
8171
8179
  show: !0
8172
8180
  });
@@ -8987,11 +8995,11 @@ function Ud(e, t) {
8987
8995
  clearTimeout(i), i = null;
8988
8996
  }
8989
8997
  function u(t) {
8990
- let n = Ns(t);
8998
+ let n = Ms(t);
8991
8999
  n && (r = {
8992
9000
  container: c,
8993
9001
  sourceNode: t.target,
8994
- from: Is(n),
9002
+ from: Fs(n),
8995
9003
  pos: Hd(t, e)
8996
9004
  }, a = r.pos, d(t));
8997
9005
  }
@@ -9172,8 +9180,8 @@ function tf(e) {
9172
9180
  ref: w,
9173
9181
  onFocus: T,
9174
9182
  style: b,
9175
- "data-row-id": Ls(t.id),
9176
- "data-col-id": Ls(n.id),
9183
+ "data-row-id": Is(t.id),
9184
+ "data-col-id": Is(n.id),
9177
9185
  tabIndex: o ? "0" : "-1",
9178
9186
  role: "gridcell",
9179
9187
  "aria-colindex": n._colindex,
@@ -9221,7 +9229,7 @@ function rf({ filter: e, column: t, action: n, filterValue: r }) {
9221
9229
  key: t.id
9222
9230
  });
9223
9231
  }
9224
- return /* @__PURE__ */ _(Jc, {
9232
+ return /* @__PURE__ */ _(qc, {
9225
9233
  ...e.config ?? {},
9226
9234
  value: r,
9227
9235
  onChange: i
@@ -9340,7 +9348,7 @@ function sf(e) {
9340
9348
  className: "wx-icon wxi-close wx-aadNNOwy",
9341
9349
  onClick: O
9342
9350
  }) : /* @__PURE__ */ _("i", { className: "wx-icon wxi-angle-down wx-aadNNOwy" }),
9343
- /* @__PURE__ */ _(qc, {
9351
+ /* @__PURE__ */ _(Kc, {
9344
9352
  items: n,
9345
9353
  onReady: E,
9346
9354
  onSelect: D,
@@ -9361,7 +9369,7 @@ function sf(e) {
9361
9369
  });
9362
9370
  }
9363
9371
  function cf({ filter: e, column: t, action: n, filterValue: r }) {
9364
- let i = l(Nc.i18n)?.getGroup("grid") || Dc(Ol).getGroup("grid"), a = p(() => ({
9372
+ let i = l(Mc.i18n)?.getGroup("grid") || Ec(Ol).getGroup("grid"), a = p(() => ({
9365
9373
  clear: !0,
9366
9374
  ...e?.config || {}
9367
9375
  }), [e]), o = p(() => a.options || t.options, [a, t]), s = p(() => {
@@ -9503,7 +9511,7 @@ function df(e) {
9503
9511
  tabIndex: 0,
9504
9512
  onKeyDown: D,
9505
9513
  onClick: E,
9506
- "data-header-id": Ls(n.id),
9514
+ "data-header-id": Is(n.id),
9507
9515
  children: /* @__PURE__ */ _("div", {
9508
9516
  className: "wx-RsQD74qC wx-text",
9509
9517
  style: j,
@@ -9513,7 +9521,7 @@ function df(e) {
9513
9521
  className: "wx-RsQD74qC " + I,
9514
9522
  style: M,
9515
9523
  onClick: T,
9516
- "data-header-id": Ls(n.id),
9524
+ "data-header-id": Is(n.id),
9517
9525
  tabIndex: !t._hidden && n.sort && !t.filter ? 0 : void 0,
9518
9526
  role: "columnheader",
9519
9527
  "aria-colindex": n._colindex,
@@ -9683,7 +9691,7 @@ function hf(e) {
9683
9691
  s.current && s.current.focus();
9684
9692
  }, []), u(() => {
9685
9693
  if (!s.current) return;
9686
- let e = Qs(s.current, () => n(!0));
9694
+ let e = Zs(s.current, () => n(!0));
9687
9695
  return () => e.destroy();
9688
9696
  }, [n]);
9689
9697
  function c() {
@@ -9711,7 +9719,7 @@ function gf({ editor: e, onAction: t, onSave: n, onApply: r, onCancel: i }) {
9711
9719
  let n = t?.target?.value ?? "";
9712
9720
  l(n);
9713
9721
  let r = n ? (e?.options || []).filter((e) => (e.label || "").toLowerCase().includes(n.toLowerCase())) : e?.options || [];
9714
- f(r), r.length ? w.current(-Infinity) : w.current(null);
9722
+ f(r), r.length ? w.current(-1 / 0) : w.current(null);
9715
9723
  }, [e]), O = m(null);
9716
9724
  u(() => {
9717
9725
  O.current && O.current.focus();
@@ -9721,7 +9729,7 @@ function gf({ editor: e, onAction: t, onSave: n, onApply: r, onCancel: i }) {
9721
9729
  k.current = n;
9722
9730
  }, [n]), u(() => {
9723
9731
  if (!O.current) return;
9724
- let e = Qs(O.current, () => k.current(!0));
9732
+ let e = Zs(O.current, () => k.current(!0));
9725
9733
  return () => e.destroy();
9726
9734
  }, []), u(() => {
9727
9735
  o(e?.value), l(e?.renderedValue), f(e?.options || []);
@@ -9735,7 +9743,7 @@ function gf({ editor: e, onAction: t, onSave: n, onApply: r, onCancel: i }) {
9735
9743
  value: s ?? "",
9736
9744
  onChange: D,
9737
9745
  onKeyDown: (e) => T.current ? T.current(e, C) : void 0
9738
- }), /* @__PURE__ */ _(qc, {
9746
+ }), /* @__PURE__ */ _(Kc, {
9739
9747
  items: d,
9740
9748
  onReady: E,
9741
9749
  onSelect: A,
@@ -9761,7 +9769,7 @@ function _f({ editor: e, onAction: t, onSave: n, onApply: r, onCancel: i }) {
9761
9769
  f.current && f.current.focus(), typeof window < "u" && window.getSelection && window.getSelection().removeAllRanges();
9762
9770
  }, []), u(() => {
9763
9771
  if (!y) return;
9764
- let e = Qs(y, () => n(!0));
9772
+ let e = Zs(y, () => n(!0));
9765
9773
  return () => e.destroy();
9766
9774
  }, [y, n]), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
9767
9775
  className: "wx-lNWNYUb6 wx-value",
@@ -9776,7 +9784,7 @@ function _f({ editor: e, onAction: t, onSave: n, onApply: r, onCancel: i }) {
9776
9784
  className: "wx-lNWNYUb6 wx-text",
9777
9785
  children: e.renderedValue
9778
9786
  })
9779
- }), /* @__PURE__ */ _(Vc, {
9787
+ }), /* @__PURE__ */ _(Bc, {
9780
9788
  ...l,
9781
9789
  onCancel: i,
9782
9790
  children: /* @__PURE__ */ _("div", {
@@ -9807,7 +9815,7 @@ function vf(e) {
9807
9815
  T.current && T.current.focus(), typeof window < "u" && window.getSelection && window.getSelection().removeAllRanges();
9808
9816
  }, []), u(() => {
9809
9817
  if (!T.current) return;
9810
- let e = Qs(T.current, () => r(!0));
9818
+ let e = Zs(T.current, () => r(!0));
9811
9819
  return () => e.destroy();
9812
9820
  }, [r]), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
9813
9821
  ref: T,
@@ -9827,7 +9835,7 @@ function vf(e) {
9827
9835
  className: "wx-ywGRk611 wx-text",
9828
9836
  children: t.renderedValue
9829
9837
  })
9830
- }), /* @__PURE__ */ _(qc, {
9838
+ }), /* @__PURE__ */ _(Kc, {
9831
9839
  items: f,
9832
9840
  onReady: w,
9833
9841
  onSelect: b,
@@ -9853,7 +9861,7 @@ function yf(e) {
9853
9861
  let f = m(null);
9854
9862
  return u(() => {
9855
9863
  if (!f.current) return;
9856
- let e = Qs(f.current, () => r(!0));
9864
+ let e = Zs(f.current, () => r(!0));
9857
9865
  return () => e.destroy();
9858
9866
  }, [r]), /* @__PURE__ */ _("div", {
9859
9867
  ref: f,
@@ -10293,13 +10301,13 @@ function Tf(e) {
10293
10301
  dblclick: (e, t) => {
10294
10302
  let n = {
10295
10303
  id: e,
10296
- column: Fs(t, "data-col-id")
10304
+ column: Ps(t, "data-col-id")
10297
10305
  };
10298
10306
  w.exec("open-editor", n);
10299
10307
  },
10300
10308
  click: (e, t) => {
10301
10309
  if (t.target.closest("input") || Re.current) return;
10302
- let n = Fs(t, "data-col-id");
10310
+ let n = Ps(t, "data-col-id");
10303
10311
  if (L?.id !== e && w.exec("focus-cell", {
10304
10312
  row: e,
10305
10313
  column: n,
@@ -10342,7 +10350,7 @@ function Tf(e) {
10342
10350
  id: i,
10343
10351
  nested: !0
10344
10352
  });
10345
- let a = Ns(r), o = a.cloneNode(!0);
10353
+ let a = Ms(r), o = a.cloneNode(!0);
10346
10354
  o.classList.remove("wx-selected"), o.querySelectorAll("[tabindex]").forEach((e) => e.setAttribute("tabindex", "-1")), n.appendChild(o), oe(o);
10347
10355
  let s = (P || 0) - de.d, c = he ? H : 0;
10348
10356
  n.style.width = Math.min((b || 0) - c, ne && K <= (b || 0) ? Oe : Oe - c) + s + "px";
@@ -10362,7 +10370,7 @@ function Tf(e) {
10362
10370
  r.y > e && (r.y = e);
10363
10371
  }
10364
10372
  if (W.current.contains(t.targetNode)) {
10365
- let i = Ns(t.targetNode), s = i && Is(i);
10373
+ let i = Ms(t.targetNode), s = i && Fs(i);
10366
10374
  if (s && s !== n) {
10367
10375
  t.to = s;
10368
10376
  let a = f ? ae?.offsetHeight : k?.rowHeight;
@@ -10477,7 +10485,7 @@ function Tf(e) {
10477
10485
  let e = et.current;
10478
10486
  if (!e) return;
10479
10487
  let t = [];
10480
- t.push(Qs(e, () => L && w.exec("focus-cell", { eventSource: "click" })).destroy), t.push(pu(e, Be.current)), U(e.clientHeight);
10488
+ t.push(Zs(e, () => L && w.exec("focus-cell", { eventSource: "click" })).destroy), t.push(pu(e, Be.current)), U(e.clientHeight);
10481
10489
  let n = new ResizeObserver(() => {
10482
10490
  U(e.clientHeight);
10483
10491
  });
@@ -10546,8 +10554,8 @@ function Tf(e) {
10546
10554
  let n = A.indexOf(e.id) !== -1, r = ie === e.id, i = "wx-row" + (f ? " wx-autoheight" : "") + (o ? " " + o(e) : "") + (n ? " wx-selected" : "") + (r ? " wx-inactive" : ""), a = f ? { minHeight: `${e.rowHeight || re}px` } : { height: `${e.rowHeight || re}px` };
10547
10555
  return /* @__PURE__ */ _("div", {
10548
10556
  className: "wx-4VuBwK2D " + i,
10549
- "data-id": Ls(e.id),
10550
- "data-context-id": Ls(e.id),
10557
+ "data-id": Is(e.id),
10558
+ "data-context-id": Is(e.id),
10551
10559
  style: a,
10552
10560
  role: "row",
10553
10561
  "aria-rowindex": t,
@@ -10635,7 +10643,7 @@ var Ef = (e) => e.split("-").map((e) => e ? e.charAt(0).toUpperCase() + e.slice(
10635
10643
  let t = Object.keys(O).map(Number).sort((e, t) => e - t).find((t) => e.width <= t) ?? null;
10636
10644
  t !== te && (re(O[t]), U(t));
10637
10645
  }
10638
- }, [O, te]), ae = l(Nc.theme), oe = m(0);
10646
+ }, [O, te]), ae = l(Mc.theme), oe = m(0);
10639
10647
  return u(() => {
10640
10648
  if (!oe.current) D && D(z);
10641
10649
  else {
@@ -10712,12 +10720,12 @@ var Ef = (e) => e.split("-").map((e) => e ? e.charAt(0).toUpperCase() + e.slice(
10712
10720
  })
10713
10721
  });
10714
10722
  });
10715
- Vs(Bs);
10723
+ Bs(zs);
10716
10724
  //#endregion
10717
10725
  //#region ../../node_modules/.bun/@svar-ui+react-filemanager@2.6.0+005eabf3d8b6ef06/node_modules/@svar-ui/react-filemanager/dist/index.es.js
10718
10726
  var Of = i(null), kf = i(null), Af = i(null);
10719
10727
  function jf({ children: e }) {
10720
- let t = l(Nc.i18n), n = p(() => t.getGroup("filemanager"), [t]), r = l(Of), [i] = lu(r, "panels"), a = i[Q(r, "activePanel")].path, [o, s] = h(null), [c, u] = h(null), [d, f] = h(""), [m, g] = h(""), [y, b] = h(!1);
10728
+ let t = l(Mc.i18n), n = p(() => t.getGroup("filemanager"), [t]), r = l(Of), [i] = lu(r, "panels"), a = i[Q(r, "activePanel")].path, [o, s] = h(null), [c, u] = h(null), [d, f] = h(""), [m, g] = h(""), [y, b] = h(!1);
10721
10729
  function x() {
10722
10730
  let e = d.trim();
10723
10731
  if (!e) {
@@ -10758,7 +10766,7 @@ function jf({ children: e }) {
10758
10766
  title: n(`Enter ${o.item.type} name`),
10759
10767
  onConfirm: x,
10760
10768
  onCancel: S,
10761
- children: /* @__PURE__ */ _(Jc, {
10769
+ children: /* @__PURE__ */ _(qc, {
10762
10770
  error: y,
10763
10771
  select: !0,
10764
10772
  focus: !0,
@@ -10823,17 +10831,17 @@ function Nf(e) {
10823
10831
  return [e.slice(0, -n), e.slice(-n)];
10824
10832
  }
10825
10833
  function Pf({ item: e }) {
10826
- let t = l(Of), n = l(Nc.i18n).getGroup("filemanager"), r = l(Of).templates, [i] = lu(t, "panels"), a = Q(t, "activePanel"), o = Q(t, "mode"), s = i[a].selected, c = p(() => r.preview(e, 214, 163), [r, e]), u = p(() => r.icon(e, "big"), [r, e]), [d, f] = p(() => Nf(e.name), [e.name]);
10834
+ let t = l(Of), n = l(Mc.i18n).getGroup("filemanager"), r = l(Of).templates, [i] = lu(t, "panels"), a = Q(t, "activePanel"), o = Q(t, "mode"), s = i[a].selected, c = p(() => r.preview(e, 214, 163), [r, e]), u = p(() => r.icon(e, "big"), [r, e]), [d, f] = p(() => Nf(e.name), [e.name]);
10827
10835
  return /* @__PURE__ */ _(g, { children: e.id === "/wx-filemanager-parent-link" ? o === "search" ? null : /* @__PURE__ */ _("div", {
10828
10836
  className: "wx-GAOa4kDV wx-back-item",
10829
10837
  children: /* @__PURE__ */ v("div", {
10830
10838
  className: `wx-GAOa4kDV wx-back ${e.navigation ? "wx-selected" : ""}`,
10831
- "data-id": Ls("/wx-filemanager-parent-link"),
10839
+ "data-id": Is("/wx-filemanager-parent-link"),
10832
10840
  children: [/* @__PURE__ */ _("i", { className: "wx-GAOa4kDV wxi-arrow-left" }), /* @__PURE__ */ _("span", { children: n("Back to parent folder") })]
10833
10841
  })
10834
10842
  }) : /* @__PURE__ */ v("div", {
10835
10843
  className: `wx-GAOa4kDV wx-item ${s?.length && s.indexOf(e.id) >= 0 ? "wx-selected" : ""}`,
10836
- "data-id": Ls(e.id),
10844
+ "data-id": Is(e.id),
10837
10845
  children: [c ? /* @__PURE__ */ _("div", {
10838
10846
  className: "wx-GAOa4kDV wx-preview wx-file-preview",
10839
10847
  children: /* @__PURE__ */ _("img", {
@@ -10863,7 +10871,7 @@ function Pf({ item: e }) {
10863
10871
  children: [/* @__PURE__ */ _("span", { children: d }), /* @__PURE__ */ _("span", { children: f })]
10864
10872
  })]
10865
10873
  }), /* @__PURE__ */ _("div", {
10866
- "data-action-id": Ls(e.id),
10874
+ "data-action-id": Is(e.id),
10867
10875
  className: "wx-GAOa4kDV wx-more",
10868
10876
  children: /* @__PURE__ */ _("i", { className: "wx-GAOa4kDV wxi-dots-v" })
10869
10877
  })]
@@ -10876,7 +10884,7 @@ function Pf({ item: e }) {
10876
10884
  children: [/* @__PURE__ */ _("span", { children: d }), /* @__PURE__ */ _("span", { children: f })]
10877
10885
  })
10878
10886
  }), /* @__PURE__ */ _("div", {
10879
- "data-action-id": Ls(e.id),
10887
+ "data-action-id": Is(e.id),
10880
10888
  className: "wx-GAOa4kDV wx-more",
10881
10889
  children: /* @__PURE__ */ _("i", { className: "wx-GAOa4kDV wxi-dots-v" })
10882
10890
  })]
@@ -10884,7 +10892,7 @@ function Pf({ item: e }) {
10884
10892
  }) });
10885
10893
  }
10886
10894
  function Ff() {
10887
- let e = l(Of), t = l(Nc.i18n), n = p(() => t.getGroup("filemanager"), [t]), [r] = lu(e, "panels"), i = Q(e, "activePanel"), a = Q(e, "mode"), o = r[i]._files, s = r[i].selected, d = r[i].path, f = r[i]._crumbs, h = r[i]._selectNavigation, g = c((t, n) => {
10895
+ let e = l(Of), t = l(Mc.i18n), n = p(() => t.getGroup("filemanager"), [t]), [r] = lu(e, "panels"), i = Q(e, "activePanel"), a = Q(e, "mode"), o = r[i]._files, s = r[i].selected, d = r[i].path, f = r[i]._crumbs, h = r[i]._selectNavigation, g = c((t, n) => {
10888
10896
  let r = n && (n.ctrlKey || n.metaKey), a = n && n.shiftKey;
10889
10897
  if (t === "/wx-filemanager-parent-link") {
10890
10898
  if (s.length && (r || a)) return;
@@ -10946,7 +10954,7 @@ function Ff() {
10946
10954
  dblclick: (e) => C.current._dblclick(e),
10947
10955
  _dblclick: y,
10948
10956
  context: b
10949
- }, Us(S.current, C.current)));
10957
+ }, Hs(S.current, C.current)));
10950
10958
  }, [
10951
10959
  g,
10952
10960
  y,
@@ -10960,7 +10968,7 @@ function Ff() {
10960
10968
  }) : /* @__PURE__ */ _("div", {
10961
10969
  tabIndex: 0,
10962
10970
  className: "wx-iyjASZCY " + ("wx-cards" + (d !== "/" && a !== "search" ? " wx-has-back-link" : "")),
10963
- "data-id": Ls("body"),
10971
+ "data-id": Is("body"),
10964
10972
  ref: S,
10965
10973
  children: x.map((e) => /* @__PURE__ */ _(Pf, { item: e }, e.id))
10966
10974
  });
@@ -10975,7 +10983,7 @@ function If({ name: e = "", spin: t = !1, onClick: n }) {
10975
10983
  });
10976
10984
  }
10977
10985
  function Lf() {
10978
- let e = l(Nc.i18n).getGroup("filemanager"), t = l(Of), n = Q(t, "activePanel"), [i] = lu(t, "panels"), a = p(() => i[n]._crumbs, [i, n]);
10986
+ let e = l(Mc.i18n).getGroup("filemanager"), t = l(Of), n = Q(t, "activePanel"), [i] = lu(t, "panels"), a = p(() => i[n]._crumbs, [i, n]);
10979
10987
  function o() {
10980
10988
  t.exec("filter-files", { text: "" });
10981
10989
  }
@@ -11001,7 +11009,7 @@ function Lf() {
11001
11009
  });
11002
11010
  }
11003
11011
  function Rf({ narrowMode: e, extraInfo: n }) {
11004
- let r = l(Of), { preview: i, icon: a } = r.templates, o = l(Nc.i18n), s = p(() => o.getGroup("filemanager"), [o]), d = p(() => wc("%D, %d %F %Y, %H:%i", o.getRaw().calendar), [o]), [f, m] = lu(r, "panels"), y = Q(r, "activePanel"), b = Q(r, "preview"), x = Q(r, "search"), S = p(() => {
11012
+ let r = l(Of), { preview: i, icon: a } = r.templates, o = l(Mc.i18n), s = p(() => o.getGroup("filemanager"), [o]), d = p(() => Cc("%D, %d %F %Y, %H:%i", o.getRaw().calendar), [o]), [f, m] = lu(r, "panels"), y = Q(r, "activePanel"), b = Q(r, "preview"), x = Q(r, "search"), S = p(() => {
11005
11013
  let e = f && y != null && f[y]?._selected?.length || 0;
11006
11014
  return x && !e;
11007
11015
  }, [
@@ -11212,7 +11220,7 @@ function Rf({ narrowMode: e, extraInfo: n }) {
11212
11220
  });
11213
11221
  }
11214
11222
  function zf({ panel: e }) {
11215
- let n = l(Of), r = l(Nc.i18n), i = p(() => r.getGroup("filemanager"), [r]), [a, o] = lu(n, "panels"), s = p(() => a[e]._files, [o, e]), c = p(() => a[e]._crumbs || [], [o, e]);
11223
+ let n = l(Of), r = l(Mc.i18n), i = p(() => r.getGroup("filemanager"), [r]), [a, o] = lu(n, "panels"), s = p(() => a[e]._files, [o, e]), c = p(() => a[e]._crumbs || [], [o, e]);
11216
11224
  function d(t) {
11217
11225
  let r = ql(t, c);
11218
11226
  n.exec("set-path", {
@@ -11232,7 +11240,7 @@ function zf({ panel: e }) {
11232
11240
  }
11233
11241
  let b = m(null), x = m();
11234
11242
  return u(() => {
11235
- x.current ? x.current.click = d : (x.current = { click: d }, Us(b.current, x.current));
11243
+ x.current ? x.current.click = d : (x.current = { click: d }, Hs(b.current, x.current));
11236
11244
  }, [d]), /* @__PURE__ */ v("div", {
11237
11245
  className: "wx-SNY5LTYx wx-breadcrumbs",
11238
11246
  "data-menu-ignore": "true",
@@ -11246,14 +11254,14 @@ function zf({ panel: e }) {
11246
11254
  })
11247
11255
  }), c.map((e, n) => /* @__PURE__ */ v(t.Fragment, { children: [n ? /* @__PURE__ */ _(If, { name: "angle-right" }) : null, /* @__PURE__ */ _("div", {
11248
11256
  className: "wx-SNY5LTYx wx-item",
11249
- "data-id": Ls(e.id),
11257
+ "data-id": Is(e.id),
11250
11258
  "data-menu-ignore": "true",
11251
11259
  children: e.id == "/" ? i(e.name) : e.name
11252
11260
  })] }, n))]
11253
11261
  });
11254
11262
  }
11255
11263
  function Bf({ row: e }) {
11256
- let t = l(Nc.i18n), [n] = h(() => t.getGroup("filemanager")), r = l(Of).templates, [i] = h(() => r.icon(e, "small"));
11264
+ let t = l(Mc.i18n), [n] = h(() => t.getGroup("filemanager")), r = l(Of).templates, [i] = h(() => r.icon(e, "small"));
11257
11265
  return /* @__PURE__ */ _("div", {
11258
11266
  className: "wx-qgAqG6sL wx-name-cell",
11259
11267
  children: e.id === "/wx-filemanager-parent-link" ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("i", { className: "wx-qgAqG6sL wxi-arrow-left" }), /* @__PURE__ */ v("span", {
@@ -11278,7 +11286,7 @@ function Bf({ row: e }) {
11278
11286
  function Vf({ children: e }) {
11279
11287
  let t = l(Of), n = Q(t, "activePanel"), r = l(Af), i = m(null), a = m({});
11280
11288
  return a.current.drop = () => {
11281
- let e = i.current, r = Ps(e, "data-panel");
11289
+ let e = i.current, r = Ns(e, "data-panel");
11282
11290
  r && r != n && t.exec("set-active-panel", { panel: r * 1 });
11283
11291
  }, a.current.dragEnter = () => {
11284
11292
  let e = i.current;
@@ -11296,7 +11304,7 @@ function Vf({ children: e }) {
11296
11304
  });
11297
11305
  }
11298
11306
  function Hf({ panel: e, active: t = !1, onClick: n, onContextMenu: r }) {
11299
- let i = l(Of), a = l(Nc.i18n), o = p(() => a.getGroup("filemanager"), [a]), s = p(() => wc("%d %M %Y", a.getRaw().calendar), [a]), [c] = lu(i, "panels"), d = c[e].selected, f = c[e].path, h = c[e]._crumbs, g = c[e]._sorts, y = c[e]._selectNavigation, b = c[e]._files, x = p(() => [
11307
+ let i = l(Of), a = l(Mc.i18n), o = p(() => a.getGroup("filemanager"), [a]), s = p(() => Cc("%d %M %Y", a.getRaw().calendar), [a]), [c] = lu(i, "panels"), d = c[e].selected, f = c[e].path, h = c[e]._crumbs, g = c[e]._sorts, y = c[e]._selectNavigation, b = c[e]._files, x = p(() => [
11300
11308
  {
11301
11309
  id: "name",
11302
11310
  header: o("Name"),
@@ -11387,13 +11395,13 @@ function Hf({ panel: e, active: t = !1, onClick: n, onContextMenu: r }) {
11387
11395
  click: T,
11388
11396
  dblclick: (e) => N.current._dblclick(e),
11389
11397
  _dblclick: D
11390
- }, Us(M.current, N.current));
11398
+ }, Hs(M.current, N.current));
11391
11399
  }, [T, D]), /* @__PURE__ */ v("div", {
11392
11400
  onClick: n,
11393
11401
  onContextMenu: r,
11394
11402
  className: "wx-SSaVhET7 wx-wrapper",
11395
11403
  children: [/* @__PURE__ */ _(zf, { panel: e }), /* @__PURE__ */ _("div", {
11396
- "data-id": Ls("body"),
11404
+ "data-id": Is("body"),
11397
11405
  className: `wx-SSaVhET7 wx-list ${t ? "wx-active" : ""}`,
11398
11406
  ref: M,
11399
11407
  children: /* @__PURE__ */ _(Vf, { children: /* @__PURE__ */ _(Df, {
@@ -11418,7 +11426,7 @@ function Uf() {
11418
11426
  }
11419
11427
  return /* @__PURE__ */ v("div", {
11420
11428
  className: "wx-L55BfJa2 wx-panels",
11421
- "data-id": Ls("body"),
11429
+ "data-id": Is("body"),
11422
11430
  children: [/* @__PURE__ */ _("div", {
11423
11431
  className: "wx-L55BfJa2 wx-item",
11424
11432
  "data-panel": 0,
@@ -11441,9 +11449,9 @@ function Uf() {
11441
11449
  });
11442
11450
  }
11443
11451
  function Wf({ folderIcon: e = !1, folder: t = {} }) {
11444
- let n = l(Of), [r, i] = lu(n, "panels"), a = Q(n, "activePanel"), o = p(() => r[a].path, [i, a]), s = l(Nc.i18n), c = p(() => s.getGroup("filemanager"), [s]), u = p(() => !!t.data?.find((e) => e.type === "folder"), [t]), d = p(() => t.id == "/" ? c(t.name) : t.name, [t, c]), f = p(() => t.$level > 1 ? (t.$level - 1) * 20 : 0, [t]), m = t.open;
11452
+ let n = l(Of), [r, i] = lu(n, "panels"), a = Q(n, "activePanel"), o = p(() => r[a].path, [i, a]), s = l(Mc.i18n), c = p(() => s.getGroup("filemanager"), [s]), u = p(() => !!t.data?.find((e) => e.type === "folder"), [t]), d = p(() => t.id == "/" ? c(t.name) : t.name, [t, c]), f = p(() => t.$level > 1 ? (t.$level - 1) * 20 : 0, [t]), m = t.open;
11445
11453
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("li", {
11446
- "data-id": Ls(t.id),
11454
+ "data-id": Is(t.id),
11447
11455
  className: `wx-NYfhvGIt wx-folder${o === t.id ? " wx-selected" : ""}`,
11448
11456
  style: { paddingLeft: `${f}px` },
11449
11457
  children: [
@@ -11489,7 +11497,7 @@ function Gf() {
11489
11497
  y.current ? (y.current.click = d, y.current.toggle = s) : (y.current = {
11490
11498
  click: d,
11491
11499
  toggle: s
11492
- }, Us(v.current, y.current));
11500
+ }, Hs(v.current, y.current));
11493
11501
  }, [d, s]), /* @__PURE__ */ _("ul", {
11494
11502
  ref: v,
11495
11503
  className: "wx-LyHJ6R6A",
@@ -11497,7 +11505,7 @@ function Gf() {
11497
11505
  });
11498
11506
  }
11499
11507
  function Kf() {
11500
- let e = l(Of), t = l(Nc.i18n), n = p(() => t.getGroup("filemanager"), [t]), r = Q(e, "drive"), i = r ? r.used : "", a = r ? r.total : "";
11508
+ let e = l(Of), t = l(Mc.i18n), n = p(() => t.getGroup("filemanager"), [t]), r = Q(e, "drive"), i = r ? r.used : "", a = r ? r.total : "";
11501
11509
  return i && a ? /* @__PURE__ */ v("div", {
11502
11510
  className: "wx-DetSyKGG wx-drive",
11503
11511
  children: [/* @__PURE__ */ _("progress", {
@@ -11516,7 +11524,7 @@ function Kf() {
11516
11524
  }) : null;
11517
11525
  }
11518
11526
  function qf({ option: e }) {
11519
- let t = l(Nc.i18n).getGroup("filemanager"), n = l(Af), r = c(() => {
11527
+ let t = l(Mc.i18n).getGroup("filemanager"), n = l(Af), r = c(() => {
11520
11528
  n.open({});
11521
11529
  }, [n]);
11522
11530
  return /* @__PURE__ */ _("div", {
@@ -11526,7 +11534,7 @@ function qf({ option: e }) {
11526
11534
  });
11527
11535
  }
11528
11536
  function Jf({ readonly: e, menuOptions: t }) {
11529
- let n = l(Nc.i18n).getGroup("filemanager"), { showPrompt: r } = l(kf);
11537
+ let n = l(Mc.i18n).getGroup("filemanager"), { showPrompt: r } = l(kf);
11530
11538
  u(() => {
11531
11539
  yu("upload", qf);
11532
11540
  }, []);
@@ -11556,7 +11564,7 @@ function Jf({ readonly: e, menuOptions: t }) {
11556
11564
  options: a,
11557
11565
  at: "bottom-fit",
11558
11566
  onClick: i,
11559
- children: /* @__PURE__ */ _(Fc, {
11567
+ children: /* @__PURE__ */ _(Pc, {
11560
11568
  type: "primary block",
11561
11569
  children: n("Add New")
11562
11570
  })
@@ -11571,7 +11579,7 @@ function Jf({ readonly: e, menuOptions: t }) {
11571
11579
  });
11572
11580
  }
11573
11581
  function Yf({ value: e = "", onSearch: t }) {
11574
- let [n, r] = ou(e), i = l(Nc.i18n).getGroup("filemanager"), a = m(null), o = p(() => n === "" ? "wxi-search" : "wxi-close", [n]);
11582
+ let [n, r] = ou(e), i = l(Mc.i18n).getGroup("filemanager"), a = m(null), o = p(() => n === "" ? "wxi-search" : "wxi-close", [n]);
11575
11583
  function s(e) {
11576
11584
  let n = e.target.value;
11577
11585
  r(n), t && t({ value: n });
@@ -11595,7 +11603,7 @@ function Yf({ value: e = "", onSearch: t }) {
11595
11603
  });
11596
11604
  }
11597
11605
  function Xf({ narrowMode: e = !1, onShowTree: t }) {
11598
- let n = l(Of), r = l(Nc.i18n).getGroup("filemanager"), i = Q(n, "mode"), a = Q(n, "preview"), o = Q(n, "search"), s = [
11606
+ let n = l(Of), r = l(Mc.i18n).getGroup("filemanager"), i = Q(n, "mode"), a = Q(n, "preview"), o = Q(n, "search"), s = [
11599
11607
  {
11600
11608
  icon: "wxi-view-sequential",
11601
11609
  id: "table"
@@ -11624,7 +11632,7 @@ function Xf({ narrowMode: e = !1, onShowTree: t }) {
11624
11632
  className: "wx-5PZQQztG wx-left " + (e ? "wx-left-narrow" : ""),
11625
11633
  children: [e ? i === "panels" || i === "search" ? null : /* @__PURE__ */ _("div", {
11626
11634
  className: "wx-5PZQQztG wx-sidebar-icon",
11627
- "data-id": Ls("toggle-tree"),
11635
+ "data-id": Is("toggle-tree"),
11628
11636
  children: /* @__PURE__ */ _(If, {
11629
11637
  onClick: () => t && t(),
11630
11638
  name: "subtask"
@@ -11664,7 +11672,7 @@ function Zf() {
11664
11672
  });
11665
11673
  }
11666
11674
  function Qf({ readonly: e = !1, menuOptions: t, extraInfo: n }) {
11667
- let r = m(null), i = m(null), [a, o] = h(void 0), [s, d] = h(void 0), [f, y] = h(!1), b = Du(), x = l(Of), { showPrompt: S, showConfirm: C } = l(kf), w = l(Nc.i18n), T = p(() => w.getGroup("filemanager"), [w]), E = Q(x, "mode"), D = Q(x, "preview"), O = Q(x, "activePanel"), [k, A] = lu(x, "panels"), j = p(() => (k && O != null ? k[O] : null)?.selected ?? [], [A, O]), M = p(() => (k && O != null ? k[O] : null)?.path, [A, O]), [N, P] = h([]);
11675
+ let r = m(null), i = m(null), [a, o] = h(void 0), [s, d] = h(void 0), [f, y] = h(!1), b = Du(), x = l(Of), { showPrompt: S, showConfirm: C } = l(kf), w = l(Mc.i18n), T = p(() => w.getGroup("filemanager"), [w]), E = Q(x, "mode"), D = Q(x, "preview"), O = Q(x, "activePanel"), [k, A] = lu(x, "panels"), j = p(() => (k && O != null ? k[O] : null)?.selected ?? [], [A, O]), M = p(() => (k && O != null ? k[O] : null)?.path, [A, O]), [N, P] = h([]);
11668
11676
  u(() => {
11669
11677
  let e = r.current;
11670
11678
  if (!e) return;
@@ -11679,11 +11687,11 @@ function Qf({ readonly: e = !1, menuOptions: t, extraInfo: n }) {
11679
11687
  let F = c(() => {
11680
11688
  y((e) => !e);
11681
11689
  }, []), I = c((e) => {
11682
- s && Fs(e) !== "toggle-tree" && y(!1);
11690
+ s && Ps(e) !== "toggle-tree" && y(!1);
11683
11691
  }, [s]);
11684
11692
  u(() => {
11685
11693
  let e = i.current;
11686
- if (e) return Qs(e, I).destroy;
11694
+ if (e) return Zs(e, I).destroy;
11687
11695
  }, [I]), u(() => {
11688
11696
  let e = i.current;
11689
11697
  if (!e) return;
@@ -11768,11 +11776,13 @@ function Qf({ readonly: e = !1, menuOptions: t, extraInfo: n }) {
11768
11776
  case "body":
11769
11777
  o = t(n);
11770
11778
  break;
11771
- default: if (i) if (!a && j.length > 1) o = s ? [L, ...t("multiselect")] : t("multiselect");
11772
- else if (n === "/") o = t("folder", i).filter((e) => e.id === "paste");
11773
- else {
11774
- let e = t(i.type, i);
11775
- e && (o = s ? [L, ...e] : e);
11779
+ default: if (i) {
11780
+ if (!a && j.length > 1) o = s ? [L, ...t("multiselect")] : t("multiselect");
11781
+ else if (n === "/") o = t("folder", i).filter((e) => e.id === "paste");
11782
+ else {
11783
+ let e = t(i.type, i);
11784
+ e && (o = s ? [L, ...e] : e);
11785
+ }
11776
11786
  }
11777
11787
  }
11778
11788
  E === "search" && (o = o?.filter((e) => e.id !== "paste"));
@@ -11855,7 +11865,7 @@ function Qf({ readonly: e = !1, menuOptions: t, extraInfo: n }) {
11855
11865
  style: { width: `calc(100% - ${a || 0}px - 10px)` },
11856
11866
  children: [/* @__PURE__ */ _("div", {
11857
11867
  className: `wx-RJbNonjJ wx-content-item${D ? "" : "-fit"}`,
11858
- "data-id": Ls("body"),
11868
+ "data-id": Is("body"),
11859
11869
  children: E === "table" ? /* @__PURE__ */ _(Hf, { panel: O }) : /* @__PURE__ */ _(Zf, {})
11860
11870
  }), D ? /* @__PURE__ */ _("div", {
11861
11871
  className: "wx-RJbNonjJ wx-info",
@@ -11955,23 +11965,23 @@ function np({ fonts: e = !0, children: t }) {
11955
11965
  children: t
11956
11966
  }) : /* @__PURE__ */ _(Dl, { fonts: e });
11957
11967
  }
11958
- Vs(Bs);
11968
+ Bs(zs);
11959
11969
  //#endregion
11960
11970
  //#region src/app-ui/dialog.tsx
11961
11971
  function rp({ ...e }) {
11962
- return /* @__PURE__ */ _(vr, {
11972
+ return /* @__PURE__ */ _(_r, {
11963
11973
  "data-slot": "dialog",
11964
11974
  ...e
11965
11975
  });
11966
11976
  }
11967
11977
  function ip({ ...e }) {
11968
- return /* @__PURE__ */ _(wr, {
11978
+ return /* @__PURE__ */ _(Cr, {
11969
11979
  "data-slot": "dialog-portal",
11970
11980
  ...e
11971
11981
  });
11972
11982
  }
11973
11983
  function ap({ className: e, ...t }) {
11974
- return /* @__PURE__ */ _(Er, {
11984
+ return /* @__PURE__ */ _(Tr, {
11975
11985
  "data-slot": "dialog-overlay",
11976
11986
  className: Z("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 backdrop-blur-xs", e),
11977
11987
  ...t
@@ -11980,14 +11990,14 @@ function ap({ className: e, ...t }) {
11980
11990
  function op({ className: e, children: t, hideCloseButton: n = !1, ...r }) {
11981
11991
  return /* @__PURE__ */ v(ip, {
11982
11992
  "data-slot": "dialog-portal",
11983
- children: [/* @__PURE__ */ _(ap, {}), /* @__PURE__ */ v(Ar, {
11993
+ children: [/* @__PURE__ */ _(ap, {}), /* @__PURE__ */ v(kr, {
11984
11994
  "data-slot": "dialog-content",
11985
11995
  "aria-describedby": r["aria-describedby"] ?? void 0,
11986
11996
  className: Z("z-[9999] bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl border p-6 shadow-lg duration-200", e),
11987
11997
  ...r,
11988
- children: [t, !n && /* @__PURE__ */ v(zr, {
11998
+ children: [t, !n && /* @__PURE__ */ v(Rr, {
11989
11999
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
11990
- children: [/* @__PURE__ */ _(Va, {}), /* @__PURE__ */ _("span", {
12000
+ children: [/* @__PURE__ */ _(Ba, {}), /* @__PURE__ */ _("span", {
11991
12001
  className: "sr-only",
11992
12002
  children: "Close"
11993
12003
  })]
@@ -12161,7 +12171,7 @@ function fp({ open: e, onOpenChange: t, documents: n = dp, onSelectDocument: r }
12161
12171
  }
12162
12172
  //#endregion
12163
12173
  //#region ../../node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
12164
- var pp = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mp = Ua, hp = (e, t) => (n) => {
12174
+ var pp = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mp = Ha, hp = (e, t) => (n) => {
12165
12175
  if (t?.variants == null) return mp(e, n?.class, n?.className);
12166
12176
  let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
12167
12177
  let t = n?.[e], a = i?.[e];
@@ -13323,7 +13333,7 @@ function Nh(t) {
13323
13333
  }
13324
13334
  Mh(Nh, "useSize");
13325
13335
  //#endregion
13326
- //#region ../../node_modules/.bun/@radix-ui+react-popper@1.3.7+c32617ced709d283/node_modules/@radix-ui/react-popper/dist/index.mjs
13336
+ //#region ../../node_modules/.bun/@radix-ui+react-popper@1.3.7+7e9dce1c88b42eaf/node_modules/@radix-ui/react-popper/dist/index.mjs
13327
13337
  var Ph = Object.defineProperty, Fh = (e, t) => Ph(e, "name", {
13328
13338
  value: t,
13329
13339
  configurable: !0
@@ -13899,7 +13909,7 @@ function Xg({ className: e, sideOffset: t = 0, children: n, ...r }) {
13899
13909
  }) });
13900
13910
  }
13901
13911
  //#endregion
13902
- //#region ../../node_modules/.bun/@radix-ui+react-collection@1.1.15+c32617ced709d283/node_modules/@radix-ui/react-collection/dist/index.mjs
13912
+ //#region ../../node_modules/.bun/@radix-ui+react-collection@1.1.15+7e9dce1c88b42eaf/node_modules/@radix-ui/react-collection/dist/index.mjs
13903
13913
  var Zg = Object.defineProperty, Qg = (e, t) => Zg(e, "name", {
13904
13914
  value: t,
13905
13915
  configurable: !0
@@ -14404,14 +14414,14 @@ var x_ = typeof v_ == "function" ? b_ : __, S_ = Object.defineProperty, C_ = (e,
14404
14414
  }, "RovingFocusGroupImpl")), I_ = "RovingFocusGroupItem", L_ = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ C_(function(t, n) {
14405
14415
  let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = t, l = me(), u = o || l, d = N_(I_, r), f = d.currentTabStopId === u, p = O_(r), { onFocusableItemAdd: m, onFocusableItemRemove: h, currentTabStopId: g } = d, v = x_();
14406
14416
  return K(() => {
14407
- if (!(!v || !i)) return m(), () => h();
14417
+ if (v && i) return m(), () => h();
14408
14418
  }, [
14409
14419
  v,
14410
14420
  i,
14411
14421
  m,
14412
14422
  h
14413
14423
  ]), e.useEffect(() => {
14414
- if (!(v || !i)) return m(), () => h();
14424
+ if (!v && i) return m(), () => h();
14415
14425
  }, [
14416
14426
  v,
14417
14427
  i,
@@ -14586,7 +14596,7 @@ var U_ = P_, W_ = L_, G_ = Object.defineProperty, $ = (e, t) => G_(e, "name", {
14586
14596
  let r = sv(gv, t.__scopeMenu), i = e.useRef(null), a = G(n, i);
14587
14597
  return e.useEffect(() => {
14588
14598
  let e = i.current;
14589
- if (e) return ur(e);
14599
+ if (e) return lr(e);
14590
14600
  }, []), /* @__PURE__ */ _(Cv, {
14591
14601
  ...t,
14592
14602
  ref: a,
@@ -14607,7 +14617,7 @@ var U_ = P_, W_ = L_, G_ = Object.defineProperty, $ = (e, t) => G_(e, "name", {
14607
14617
  onDismiss: () => n.onOpenChange(!1)
14608
14618
  });
14609
14619
  }, "MenuRootContentNonModal")), Sv = /* @__PURE__ */ Ae("MenuContent.ScrollLock"), Cv = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ $(function(t, n) {
14610
- let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = t, v = sv(gv, r), y = lv(gv, r), b = iv(r), x = av(r), S = ev(r), [C, w] = e.useState(null), T = e.useRef(null), E = G(n, T, v.onContentChange), D = e.useRef(0), O = e.useRef(""), k = e.useRef(0), A = e.useRef(null), j = e.useRef("right"), M = e.useRef(0), N = h ? tr : e.Fragment, P = h ? {
14620
+ let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = t, v = sv(gv, r), y = lv(gv, r), b = iv(r), x = av(r), S = ev(r), [C, w] = e.useState(null), T = e.useRef(null), E = G(n, T, v.onContentChange), D = e.useRef(0), O = e.useRef(""), k = e.useRef(0), A = e.useRef(null), j = e.useRef("right"), M = e.useRef(0), N = h ? er : e.Fragment, P = h ? {
14611
14621
  as: Sv,
14612
14622
  allowPinchZoom: !0
14613
14623
  } : void 0, F = /* @__PURE__ */ $((e) => {
@@ -15149,7 +15159,7 @@ function qy({ className: e, children: t, checked: n, ...r }) {
15149
15159
  ...r,
15150
15160
  children: [/* @__PURE__ */ _("span", {
15151
15161
  className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
15152
- children: /* @__PURE__ */ _(Vy, { children: /* @__PURE__ */ _(ri, { className: "size-4" }) })
15162
+ children: /* @__PURE__ */ _(Vy, { children: /* @__PURE__ */ _(ni, { className: "size-4" }) })
15153
15163
  }), t]
15154
15164
  });
15155
15165
  }
@@ -16123,7 +16133,7 @@ function Fb(e, t) {
16123
16133
  var i, o, s = r[this.toHex()];
16124
16134
  if (s) return s;
16125
16135
  if (t?.closest) {
16126
- var c = this.toRgb(), l = Infinity, u = "black";
16136
+ var c = this.toRgb(), l = 1 / 0, u = "black";
16127
16137
  if (!a.length) for (var d in n) a[d] = new e(n[d]).toRgb();
16128
16138
  for (var f in n) {
16129
16139
  var p = (i = c, o = a[f], (i.r - o.r) ** 2 + (i.g - o.g) ** 2 + (i.b - o.b) ** 2);
@@ -16613,13 +16623,13 @@ function qb({ filename: e, size: t = "sm" }) {
16613
16623
  //#region src/fileSourceUtils.tsx
16614
16624
  var Jb = (e) => {
16615
16625
  switch (e) {
16616
- case "local": return /* @__PURE__ */ _(Gi, { className: "h-3.5 w-3.5" });
16617
- case "ssh": return /* @__PURE__ */ _(Ca, { className: "h-3.5 w-3.5" });
16618
- case "s3": return /* @__PURE__ */ _(xi, { className: "h-3.5 w-3.5" });
16619
- case "r2": return /* @__PURE__ */ _(Di, { className: "h-3.5 w-3.5" });
16620
- case "gdocs": return /* @__PURE__ */ _(Fi, { className: "h-3.5 w-3.5" });
16621
- case "turso": return /* @__PURE__ */ _(za, { className: "h-3.5 w-3.5" });
16622
- default: return /* @__PURE__ */ _(Gi, { className: "h-3.5 w-3.5" });
16626
+ case "local": return /* @__PURE__ */ _(Wi, { className: "h-3.5 w-3.5" });
16627
+ case "ssh": return /* @__PURE__ */ _(Sa, { className: "h-3.5 w-3.5" });
16628
+ case "s3": return /* @__PURE__ */ _(bi, { className: "h-3.5 w-3.5" });
16629
+ case "r2": return /* @__PURE__ */ _(Ei, { className: "h-3.5 w-3.5" });
16630
+ case "gdocs": return /* @__PURE__ */ _(Pi, { className: "h-3.5 w-3.5" });
16631
+ case "turso": return /* @__PURE__ */ _(Ra, { className: "h-3.5 w-3.5" });
16632
+ default: return /* @__PURE__ */ _(Wi, { className: "h-3.5 w-3.5" });
16623
16633
  }
16624
16634
  }, Yb = (e) => {
16625
16635
  switch (e) {
@@ -16635,27 +16645,27 @@ var Jb = (e) => {
16635
16645
  {
16636
16646
  type: "openTabs",
16637
16647
  label: "Open Tabs",
16638
- icon: Zi
16648
+ icon: Xi
16639
16649
  },
16640
16650
  {
16641
16651
  type: "files",
16642
16652
  label: "Files",
16643
- icon: Fi
16653
+ icon: Pi
16644
16654
  },
16645
16655
  {
16646
16656
  type: "outline",
16647
16657
  label: "Outline",
16648
- icon: Na
16658
+ icon: Ma
16649
16659
  },
16650
16660
  {
16651
16661
  type: "related",
16652
16662
  label: "Related",
16653
- icon: ta
16663
+ icon: ea
16654
16664
  },
16655
16665
  {
16656
16666
  type: "ai",
16657
16667
  label: "AI",
16658
- icon: Da
16668
+ icon: Ea
16659
16669
  }
16660
16670
  ];
16661
16671
  function Zb(e) {
@@ -16681,7 +16691,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16681
16691
  variant: "ghost",
16682
16692
  size: "sm",
16683
16693
  className: Z(o, l && "bg-sidebar-accent text-sidebar-foreground"),
16684
- children: /* @__PURE__ */ _(Ci, { className: "h-4 w-4" })
16694
+ children: /* @__PURE__ */ _(Si, { className: "h-4 w-4" })
16685
16695
  })
16686
16696
  })
16687
16697
  }), /* @__PURE__ */ _(Xg, {
@@ -16771,7 +16781,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16771
16781
  children: Yb(e.type)
16772
16782
  })]
16773
16783
  })]
16774
- }), e.id === u && /* @__PURE__ */ _(ri, { className: "h-4 w-4 ml-2 shrink-0" })]
16784
+ }), e.id === u && /* @__PURE__ */ _(ni, { className: "h-4 w-4 ml-2 shrink-0" })]
16775
16785
  })] }, e.id)), c.length === 1 && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Yy, {}), /* @__PURE__ */ _(Ky, {
16776
16786
  disabled: !0,
16777
16787
  className: "text-xs text-center text-muted-foreground",
@@ -16785,7 +16795,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16785
16795
  size: "sm",
16786
16796
  onClick: o,
16787
16797
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent",
16788
- children: /* @__PURE__ */ _(xa, { className: "h-4 w-4" })
16798
+ children: /* @__PURE__ */ _(ba, { className: "h-4 w-4" })
16789
16799
  })
16790
16800
  }), /* @__PURE__ */ _(Xg, {
16791
16801
  side: "bottom",
@@ -16799,7 +16809,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16799
16809
  size: "sm",
16800
16810
  onClick: s,
16801
16811
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent",
16802
- children: /* @__PURE__ */ _(Ui, { className: "h-4 w-4" })
16812
+ children: /* @__PURE__ */ _(Hi, { className: "h-4 w-4" })
16803
16813
  })
16804
16814
  }), /* @__PURE__ */ _(Xg, {
16805
16815
  side: "bottom",
@@ -16812,7 +16822,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16812
16822
  size: "sm",
16813
16823
  onClick: () => a(i, !1),
16814
16824
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent",
16815
- children: /* @__PURE__ */ _(Ni, { className: "h-4 w-4" })
16825
+ children: /* @__PURE__ */ _(Ai, { className: "h-4 w-4" })
16816
16826
  })
16817
16827
  }), /* @__PURE__ */ _(Xg, {
16818
16828
  side: "bottom",
@@ -16825,7 +16835,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16825
16835
  size: "sm",
16826
16836
  onClick: () => a(i, !0),
16827
16837
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent",
16828
- children: /* @__PURE__ */ _(zi, { className: "h-4 w-4" })
16838
+ children: /* @__PURE__ */ _(Ri, { className: "h-4 w-4" })
16829
16839
  })
16830
16840
  }), /* @__PURE__ */ _(Xg, {
16831
16841
  side: "bottom",
@@ -16841,7 +16851,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16841
16851
  "aria-label": m,
16842
16852
  disabled: h,
16843
16853
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent disabled:opacity-40",
16844
- children: _(p ? li : di, { className: "h-4 w-4" })
16854
+ children: _(p ? ci : ui, { className: "h-4 w-4" })
16845
16855
  })
16846
16856
  }), /* @__PURE__ */ _(Xg, {
16847
16857
  side: "bottom",
@@ -16855,7 +16865,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16855
16865
  variant: "ghost",
16856
16866
  size: "sm",
16857
16867
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent",
16858
- children: /* @__PURE__ */ _(Fa, { className: "h-4 w-4" })
16868
+ children: /* @__PURE__ */ _(Pa, { className: "h-4 w-4" })
16859
16869
  })
16860
16870
  })
16861
16871
  }), /* @__PURE__ */ _(Xg, {
@@ -16870,7 +16880,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16870
16880
  children: [/* @__PURE__ */ _("span", {
16871
16881
  className: "truncate flex-1",
16872
16882
  children: e.title || "Untitled"
16873
- }), /* @__PURE__ */ _(ya, { className: "h-3 w-3 ml-2 opacity-60" })]
16883
+ }), /* @__PURE__ */ _(va, { className: "h-3 w-3 ml-2 opacity-60" })]
16874
16884
  }, e.id)), w.length > 5 && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Yy, {}), /* @__PURE__ */ v(Ky, {
16875
16885
  disabled: !0,
16876
16886
  className: "text-xs text-center",
@@ -16889,7 +16899,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16889
16899
  variant: "ghost",
16890
16900
  size: "sm",
16891
16901
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent",
16892
- children: /* @__PURE__ */ _(ki, { className: "h-4 w-4" })
16902
+ children: /* @__PURE__ */ _(Oi, { className: "h-4 w-4" })
16893
16903
  })
16894
16904
  })
16895
16905
  }), /* @__PURE__ */ _(Xg, {
@@ -16903,7 +16913,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16903
16913
  onSelect: () => M(e),
16904
16914
  children: [/* @__PURE__ */ v("span", {
16905
16915
  className: "flex items-center gap-2 flex-1 min-w-0",
16906
- children: [n === "chat" ? /* @__PURE__ */ _(da, { className: "shrink-0 h-3.5 w-3.5 text-blue-500" }) : /* @__PURE__ */ _(qb, {
16916
+ children: [n === "chat" ? /* @__PURE__ */ _(ua, { className: "shrink-0 h-3.5 w-3.5 text-blue-500" }) : /* @__PURE__ */ _(qb, {
16907
16917
  filename: t,
16908
16918
  size: 14
16909
16919
  }), /* @__PURE__ */ _("span", {
@@ -16915,7 +16925,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16915
16925
  onClick: (t) => {
16916
16926
  t.stopPropagation(), N(e);
16917
16927
  },
16918
- children: /* @__PURE__ */ _(Va, { className: "h-3 w-3" })
16928
+ children: /* @__PURE__ */ _(Ba, { className: "h-3 w-3" })
16919
16929
  })]
16920
16930
  }, e))
16921
16931
  })] })
@@ -16937,7 +16947,7 @@ var $b = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsC
16937
16947
  size: "sm",
16938
16948
  onClick: x,
16939
16949
  className: "size-8 shrink-0 p-0 text-sidebar-foreground/80 hover:text-sidebar-foreground hover:bg-sidebar-accent",
16940
- children: _(y ? di : li, { className: "h-4 w-4" })
16950
+ children: _(y ? ui : ci, { className: "h-4 w-4" })
16941
16951
  })
16942
16952
  }), /* @__PURE__ */ _(Xg, {
16943
16953
  side: "bottom",
@@ -17428,7 +17438,7 @@ var px = (e, t = 100, n = 1e3) => new Promise((r) => {
17428
17438
  let p = Ax(t.current.pressedKeys, e, e.getHotkeyPresets(), u);
17429
17439
  if (s && d && t.current.pressedKeys.delete(d), !p) return;
17430
17440
  let m = cx(cx({}, e.getHotkeyPresets()[p]), u?.[p]);
17431
- m && (!m.allowWhenInputFocused && o || !m.canRepeat && !f || (m.preventDefault && ((a = n.preventDefault) == null || a.call(n)), m.handler(n, e), l?.(p, n)));
17441
+ m && (m.allowWhenInputFocused || !o) && (m.canRepeat || f) && (m.preventDefault && ((a = n.preventDefault) == null || a.call(n)), m.handler(n, e), l?.(p, n));
17432
17442
  },
17433
17443
  dispatchKeyUp: (e, t) => {
17434
17444
  var n;
@@ -17539,8 +17549,8 @@ var px = (e, t = 100, n = 1e3) => new Promise((r) => {
17539
17549
  };
17540
17550
  }, Kx = (e, t, n, r) => {
17541
17551
  let { openOnDropDelay: i } = t.getConfig(), a = e.current.lastDragCode;
17542
- !i || !n.isFolder() || n.isExpanded() || r.type !== 2 || (clearTimeout(e.current.autoExpandTimeout), e.current.autoExpandTimeout = setTimeout(() => {
17543
- a !== e.current.lastDragCode || !e.current.lastAllowDrop || n.expand();
17552
+ i && n.isFolder() && !n.isExpanded() && r.type === 2 && (clearTimeout(e.current.autoExpandTimeout), e.current.autoExpandTimeout = setTimeout(() => {
17553
+ a === e.current.lastDragCode && e.current.lastAllowDrop && n.expand();
17544
17554
  }, i));
17545
17555
  }, qx = () => !1, Jx = {
17546
17556
  key: "drag-and-drop",
@@ -17741,7 +17751,7 @@ var px = (e, t = 100, n = 1e3) => new Promise((r) => {
17741
17751
  if (r) return Rx(i, r, e) ? r : Xx(e, t, r);
17742
17752
  }, Zx = (e) => {
17743
17753
  let t = e.getState().dnd;
17744
- !t?.dragTarget || Lx(t.dragTarget) || t.dragTarget.item.scrollTo({
17754
+ t?.dragTarget && !Lx(t.dragTarget) && t.dragTarget.item.scrollTo({
17745
17755
  block: "nearest",
17746
17756
  inline: "nearest"
17747
17757
  });
@@ -18010,7 +18020,7 @@ function bS({ item: e, children: t, className: n, ...r }) {
18010
18020
  className: Z("flex items-center gap-2 rounded-sm bg-transparent in-data-[drag-target=true]:bg-accent in-data-[search-match=true]:bg-blue-400/20! in-data-[selected=true]:bg-accent px-2 py-1.5 in-data-[selected=true]:text-accent-foreground text-sm in-focus-visible:ring-[3px] in-focus-visible:ring-ring/50 transition-colors hover:bg-accent [&_svg]:pointer-events-none [&_svg]:shrink-0", n),
18011
18021
  "data-slot": "tree-item-label",
18012
18022
  ...r,
18013
- children: [a.isFolder() ? /* @__PURE__ */ _(ai, { className: "in-aria-[expanded=false]:-rotate-90 size-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ _("span", {
18023
+ children: [a.isFolder() ? /* @__PURE__ */ _(ii, { className: "in-aria-[expanded=false]:-rotate-90 size-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ _("span", {
18014
18024
  className: "size-4 shrink-0",
18015
18025
  "aria-hidden": !0
18016
18026
  }), t || (typeof a.getItemName == "function" ? a.getItemName() : null)]
@@ -18027,13 +18037,13 @@ function xS({ className: e, ...t }) {
18027
18037
  });
18028
18038
  }
18029
18039
  //#endregion
18030
- //#region ../../node_modules/.bun/@radix-ui+react-alert-dialog@1.1.23+c32617ced709d283/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
18040
+ //#region ../../node_modules/.bun/@radix-ui+react-alert-dialog@1.1.23+7e9dce1c88b42eaf/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
18031
18041
  var SS = Object.defineProperty, CS = (e, t) => SS(e, "name", {
18032
18042
  value: t,
18033
18043
  configurable: !0
18034
- }), [wS, TS] = /* @__PURE__ */ ce("AlertDialog", [hr]), ES = hr(), DS = /* @__PURE__ */ CS((e) => {
18044
+ }), [wS, TS] = /* @__PURE__ */ ce("AlertDialog", [mr]), ES = mr(), DS = /* @__PURE__ */ CS((e) => {
18035
18045
  let { __scopeAlertDialog: t, ...n } = e, r = ES(t);
18036
- return /* @__PURE__ */ _(vr, {
18046
+ return /* @__PURE__ */ _(_r, {
18037
18047
  ...r,
18038
18048
  ...n,
18039
18049
  modal: !0
@@ -18041,7 +18051,7 @@ var SS = Object.defineProperty, CS = (e, t) => SS(e, "name", {
18041
18051
  }, "AlertDialog");
18042
18052
  e.forwardRef(/* @__PURE__ */ CS(function(e, t) {
18043
18053
  let { __scopeAlertDialog: n, ...r } = e, i = ES(n);
18044
- return /* @__PURE__ */ _(br, {
18054
+ return /* @__PURE__ */ _(yr, {
18045
18055
  ...i,
18046
18056
  ...r,
18047
18057
  ref: t
@@ -18049,13 +18059,13 @@ e.forwardRef(/* @__PURE__ */ CS(function(e, t) {
18049
18059
  }, "AlertDialogTrigger"));
18050
18060
  var OS = /* @__PURE__ */ CS((e) => {
18051
18061
  let { __scopeAlertDialog: t, ...n } = e, r = ES(t);
18052
- return /* @__PURE__ */ _(wr, {
18062
+ return /* @__PURE__ */ _(Cr, {
18053
18063
  ...r,
18054
18064
  ...n
18055
18065
  });
18056
18066
  }, "AlertDialogPortal"), kS = e.forwardRef(/* @__PURE__ */ CS(function(e, t) {
18057
18067
  let { __scopeAlertDialog: n, ...r } = e, i = ES(n);
18058
- return /* @__PURE__ */ _(Er, {
18068
+ return /* @__PURE__ */ _(Tr, {
18059
18069
  ...i,
18060
18070
  ...r,
18061
18071
  ref: t
@@ -18065,7 +18075,7 @@ var OS = /* @__PURE__ */ CS((e) => {
18065
18075
  return /* @__PURE__ */ _(AS, {
18066
18076
  scope: r,
18067
18077
  cancelRef: c,
18068
- children: /* @__PURE__ */ _(Ar, {
18078
+ children: /* @__PURE__ */ _(kr, {
18069
18079
  role: "alertdialog",
18070
18080
  ...o,
18071
18081
  ...a,
@@ -18080,28 +18090,28 @@ var OS = /* @__PURE__ */ CS((e) => {
18080
18090
  });
18081
18091
  }, "AlertDialogContent")), NS = e.forwardRef(/* @__PURE__ */ CS(function(e, t) {
18082
18092
  let { __scopeAlertDialog: n, ...r } = e, i = ES(n);
18083
- return /* @__PURE__ */ _(Fr, {
18093
+ return /* @__PURE__ */ _(Pr, {
18084
18094
  ...i,
18085
18095
  ...r,
18086
18096
  ref: t
18087
18097
  });
18088
18098
  }, "AlertDialogTitle")), PS = e.forwardRef(/* @__PURE__ */ CS(function(e, t) {
18089
18099
  let { __scopeAlertDialog: n, ...r } = e, i = ES(n);
18090
- return /* @__PURE__ */ _(Lr, {
18100
+ return /* @__PURE__ */ _(Ir, {
18091
18101
  ...i,
18092
18102
  ...r,
18093
18103
  ref: t
18094
18104
  });
18095
18105
  }, "AlertDialogDescription")), FS = e.forwardRef(/* @__PURE__ */ CS(function(e, t) {
18096
18106
  let { __scopeAlertDialog: n, ...r } = e, i = ES(n);
18097
- return /* @__PURE__ */ _(zr, {
18107
+ return /* @__PURE__ */ _(Rr, {
18098
18108
  ...i,
18099
18109
  ...r,
18100
18110
  ref: t
18101
18111
  });
18102
18112
  }, "AlertDialogAction")), IS = "AlertDialogCancel", LS = e.forwardRef(/* @__PURE__ */ CS(function(e, t) {
18103
18113
  let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = jS(IS, n), a = ES(n), o = G(t, i);
18104
- return /* @__PURE__ */ _(zr, {
18114
+ return /* @__PURE__ */ _(Rr, {
18105
18115
  ...a,
18106
18116
  ...r,
18107
18117
  ref: o
@@ -18176,7 +18186,7 @@ function tC({ className: e, ...t }) {
18176
18186
  });
18177
18187
  }
18178
18188
  //#endregion
18179
- //#region ../../node_modules/.bun/@radix-ui+react-context-menu@2.3.7+c32617ced709d283/node_modules/@radix-ui/react-context-menu/dist/index.mjs
18189
+ //#region ../../node_modules/.bun/@radix-ui+react-context-menu@2.3.7+7e9dce1c88b42eaf/node_modules/@radix-ui/react-context-menu/dist/index.mjs
18180
18190
  var nC = Object.defineProperty, rC = (e, t) => nC(e, "name", {
18181
18191
  value: t,
18182
18192
  configurable: !0
@@ -18354,7 +18364,7 @@ var DC = uC, OC = fC, kC = pC, AC = hC, jC = gC, MC = _C, NC = vC, PC = yC, FC =
18354
18364
  ref: i,
18355
18365
  className: Z("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground", t && "pl-8", e),
18356
18366
  ...r,
18357
- children: [n, /* @__PURE__ */ _(si, { className: "ml-auto h-4 w-4" })]
18367
+ children: [n, /* @__PURE__ */ _(oi, { className: "ml-auto h-4 w-4" })]
18358
18368
  }));
18359
18369
  UC.displayName = RC.displayName;
18360
18370
  var WC = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(zC, {
@@ -18382,7 +18392,7 @@ var qC = e.forwardRef(({ className: e, children: t, checked: n, ...r }, i) => /*
18382
18392
  ...r,
18383
18393
  children: [/* @__PURE__ */ _("span", {
18384
18394
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
18385
- children: /* @__PURE__ */ _(FC, { children: /* @__PURE__ */ _(ri, { className: "h-4 w-4" }) })
18395
+ children: /* @__PURE__ */ _(FC, { children: /* @__PURE__ */ _(ni, { className: "h-4 w-4" }) })
18386
18396
  }), t]
18387
18397
  }));
18388
18398
  qC.displayName = NC.displayName;
@@ -18392,7 +18402,7 @@ var JC = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ *
18392
18402
  ...n,
18393
18403
  children: [/* @__PURE__ */ _("span", {
18394
18404
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
18395
- children: /* @__PURE__ */ _(FC, { children: /* @__PURE__ */ _(hi, { className: "h-2 w-2 fill-current" }) })
18405
+ children: /* @__PURE__ */ _(FC, { children: /* @__PURE__ */ _(mi, { className: "h-2 w-2 fill-current" }) })
18396
18406
  }), t]
18397
18407
  }));
18398
18408
  JC.displayName = PC.displayName;
@@ -18456,18 +18466,18 @@ var QC = 500, $C = 10, ew = ({ children: e, itemId: t, isFolder: n, hasCopiedIte
18456
18466
  /* @__PURE__ */ v(KC, {
18457
18467
  onClick: () => n ? i?.(t) : o?.(t),
18458
18468
  disabled: n ? !i : !o,
18459
- children: [/* @__PURE__ */ _(Fi, { className: "mr-2 h-4 w-4" }), "Add Note"]
18469
+ children: [/* @__PURE__ */ _(Pi, { className: "mr-2 h-4 w-4" }), "Add Note"]
18460
18470
  }),
18461
18471
  /* @__PURE__ */ v(KC, {
18462
18472
  onClick: () => n ? a?.(t) : s?.(t),
18463
18473
  disabled: n ? !a : !s,
18464
- children: [/* @__PURE__ */ _(Vi, { className: "mr-2 h-4 w-4" }), "Add Folder"]
18474
+ children: [/* @__PURE__ */ _(Bi, { className: "mr-2 h-4 w-4" }), "Add Folder"]
18465
18475
  }),
18466
18476
  /* @__PURE__ */ v(KC, {
18467
18477
  onClick: () => c?.(t),
18468
18478
  disabled: !c,
18469
18479
  children: [
18470
- /* @__PURE__ */ _(_a, { className: "mr-2 h-4 w-4" }),
18480
+ /* @__PURE__ */ _(ga, { className: "mr-2 h-4 w-4" }),
18471
18481
  "Rename",
18472
18482
  /* @__PURE__ */ _(ZC, { children: "F2" })
18473
18483
  ]
@@ -18476,7 +18486,7 @@ var QC = 500, $C = 10, ew = ({ children: e, itemId: t, isFolder: n, hasCopiedIte
18476
18486
  onClick: () => l?.(t),
18477
18487
  disabled: !l,
18478
18488
  children: [
18479
- /* @__PURE__ */ _(Ti, { className: "mr-2 h-4 w-4" }),
18489
+ /* @__PURE__ */ _(wi, { className: "mr-2 h-4 w-4" }),
18480
18490
  "Duplicate",
18481
18491
  /* @__PURE__ */ _(ZC, { children: "⌘D" })
18482
18492
  ]
@@ -18486,7 +18496,7 @@ var QC = 500, $C = 10, ew = ({ children: e, itemId: t, isFolder: n, hasCopiedIte
18486
18496
  onClick: () => u?.(t),
18487
18497
  disabled: !u,
18488
18498
  children: [
18489
- /* @__PURE__ */ _(yi, { className: "mr-2 h-4 w-4" }),
18499
+ /* @__PURE__ */ _(vi, { className: "mr-2 h-4 w-4" }),
18490
18500
  "Copy",
18491
18501
  /* @__PURE__ */ _(ZC, { children: "⌘C" })
18492
18502
  ]
@@ -18497,7 +18507,7 @@ var QC = 500, $C = 10, ew = ({ children: e, itemId: t, isFolder: n, hasCopiedIte
18497
18507
  },
18498
18508
  disabled: !r || !d,
18499
18509
  children: [
18500
- /* @__PURE__ */ _(_i, { className: "mr-2 h-4 w-4" }),
18510
+ /* @__PURE__ */ _(gi, { className: "mr-2 h-4 w-4" }),
18501
18511
  "Paste",
18502
18512
  /* @__PURE__ */ _(ZC, { children: "⌘V" })
18503
18513
  ]
@@ -18505,7 +18515,7 @@ var QC = 500, $C = 10, ew = ({ children: e, itemId: t, isFolder: n, hasCopiedIte
18505
18515
  /* @__PURE__ */ v(KC, {
18506
18516
  onClick: () => p?.(t),
18507
18517
  disabled: !p,
18508
- children: [/* @__PURE__ */ _(ja, { className: "mr-2 h-4 w-4" }), "Manage Tags"]
18518
+ children: [/* @__PURE__ */ _(Aa, { className: "mr-2 h-4 w-4" }), "Manage Tags"]
18509
18519
  }),
18510
18520
  /* @__PURE__ */ _(XC, {}),
18511
18521
  /* @__PURE__ */ v(KC, {
@@ -18513,7 +18523,7 @@ var QC = 500, $C = 10, ew = ({ children: e, itemId: t, isFolder: n, hasCopiedIte
18513
18523
  disabled: !f,
18514
18524
  className: "text-destructive focus:text-destructive",
18515
18525
  children: [
18516
- /* @__PURE__ */ _(Fa, { className: "mr-2 h-4 w-4" }),
18526
+ /* @__PURE__ */ _(Pa, { className: "mr-2 h-4 w-4" }),
18517
18527
  "Delete",
18518
18528
  /* @__PURE__ */ _(ZC, { children: "Del" })
18519
18529
  ]
@@ -18715,7 +18725,7 @@ var aw = o(({ activeId: e, documents: t, onMove: n, onRename: r, onSelect: i, on
18715
18725
  onDoubleClick: () => r && t.startRenaming(),
18716
18726
  children: /* @__PURE__ */ v("span", {
18717
18727
  className: "flex items-center gap-2 w-full min-w-0",
18718
- children: [t.isFolder() ? t.isExpanded() ? /* @__PURE__ */ _(Li, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ _(Vi, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ _(qb, {
18728
+ children: [t.isFolder() ? t.isExpanded() ? /* @__PURE__ */ _(Ii, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ _(Bi, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ _(qb, {
18719
18729
  filename: t.getItemName(),
18720
18730
  size: 16
18721
18731
  }), /* @__PURE__ */ _("span", {
@@ -18871,7 +18881,7 @@ var uw = o(({ headings: e = [], onNavigate: t, onReorder: n, searchQuery: r = ""
18871
18881
  return b.length === 0 ? /* @__PURE__ */ _("div", {
18872
18882
  className: "flex h-full items-center justify-center p-6 text-center",
18873
18883
  children: /* @__PURE__ */ v("div", { children: [
18874
- /* @__PURE__ */ _(qi, { className: "mx-auto h-12 w-12 text-muted-foreground opacity-50 mb-3" }),
18884
+ /* @__PURE__ */ _(Ki, { className: "mx-auto h-12 w-12 text-muted-foreground opacity-50 mb-3" }),
18875
18885
  /* @__PURE__ */ _("p", {
18876
18886
  className: "text-sm text-muted-foreground",
18877
18887
  children: "No headings found in this document"
@@ -18903,9 +18913,9 @@ var uw = o(({ headings: e = [], onNavigate: t, onReorder: n, searchQuery: r = ""
18903
18913
  onClick: (t) => {
18904
18914
  t.stopPropagation(), T(e.id);
18905
18915
  },
18906
- children: /* @__PURE__ */ _(si, { className: Z("h-3 w-3 transition-transform text-muted-foreground", !a && "rotate-90") })
18916
+ children: /* @__PURE__ */ _(oi, { className: Z("h-3 w-3 transition-transform text-muted-foreground", !a && "rotate-90") })
18907
18917
  }),
18908
- /* @__PURE__ */ _(qi, { className: Z("shrink-0", e.level === 1 && "h-3.5 w-3.5 text-blue-500", e.level === 2 && "h-3 w-3 text-indigo-400", e.level >= 3 && "h-2.5 w-2.5 text-muted-foreground") }),
18918
+ /* @__PURE__ */ _(Ki, { className: Z("shrink-0", e.level === 1 && "h-3.5 w-3.5 text-blue-500", e.level === 2 && "h-3 w-3 text-indigo-400", e.level >= 3 && "h-2.5 w-2.5 text-muted-foreground") }),
18909
18919
  /* @__PURE__ */ _("span", {
18910
18920
  className: Z("flex-1 truncate", e.level === 1 && "text-sm font-semibold text-foreground", e.level === 2 && "text-sm font-medium text-foreground/90", e.level === 3 && "text-xs text-foreground/80", e.level >= 4 && "text-xs text-muted-foreground", l && "font-medium text-foreground"),
18911
18921
  children: e.text
@@ -19082,7 +19092,7 @@ var Cw = [
19082
19092
  c(Tw());
19083
19093
  }, []), a) return /* @__PURE__ */ v("div", {
19084
19094
  className: "flex items-center gap-2 rounded-lg border border-border bg-popover p-3 shadow-lg",
19085
- children: [/* @__PURE__ */ _(ra, { className: "h-4 w-4 animate-spin text-muted-foreground" }), /* @__PURE__ */ _("span", {
19095
+ children: [/* @__PURE__ */ _(na, { className: "h-4 w-4 animate-spin text-muted-foreground" }), /* @__PURE__ */ _("span", {
19086
19096
  className: "text-sm text-muted-foreground",
19087
19097
  children: "Generating AI suggestion..."
19088
19098
  })]
@@ -19147,14 +19157,14 @@ var Cw = [
19147
19157
  onClick: n,
19148
19158
  className: "w-full h-9 bg-green-500 hover:bg-green-600 text-white",
19149
19159
  title: "Approve",
19150
- children: [/* @__PURE__ */ _(ri, { className: "h-4 w-4 mr-1" }), "Approve"]
19160
+ children: [/* @__PURE__ */ _(ni, { className: "h-4 w-4 mr-1" }), "Approve"]
19151
19161
  }), /* @__PURE__ */ v(_p, {
19152
19162
  variant: "outline",
19153
19163
  size: "sm",
19154
19164
  onClick: r,
19155
19165
  className: "w-full h-9",
19156
19166
  title: "Reject",
19157
- children: [/* @__PURE__ */ _(Va, { className: "h-4 w-4 mr-1" }), "Reject"]
19167
+ children: [/* @__PURE__ */ _(Ba, { className: "h-4 w-4 mr-1" }), "Reject"]
19158
19168
  })]
19159
19169
  })
19160
19170
  })
@@ -19235,7 +19245,7 @@ function Fw(e) {
19235
19245
  "aria-label": g,
19236
19246
  "aria-valuenow": l,
19237
19247
  "aria-valuemin": u,
19238
- "aria-valuemax": d === void 0 || d === Infinity ? void 0 : d,
19248
+ "aria-valuemax": d === void 0 || d === 1 / 0 ? void 0 : d,
19239
19249
  "aria-description": function(e) {
19240
19250
  return `Use ${e === "horizontal" ? "left and right arrow keys" : "up and down arrow keys"} to resize. Hold Shift for larger steps. Press Home or End to minimize or maximize.`;
19241
19251
  }(t),
@@ -19259,7 +19269,7 @@ function Lw(e, t, n) {
19259
19269
  return Math.min(Math.max(e, t), n);
19260
19270
  }
19261
19271
  function Rw(e, t, n, r, i) {
19262
- let a = [...e], o = e[t] ?? 0, s = e[t + 1] ?? 0, c = r[t + 1] ?? 0, l = i[t + 1] ?? Infinity, u = Lw(o + n, r[t] ?? 0, i[t] ?? Infinity), d = Lw(s - n, c, l), f = s - d, p = Math.min(Math.abs(u - o), Math.abs(f));
19272
+ let a = [...e], o = e[t] ?? 0, s = e[t + 1] ?? 0, c = r[t + 1] ?? 0, l = i[t + 1] ?? 1 / 0, u = Lw(o + n, r[t] ?? 0, i[t] ?? 1 / 0), d = Lw(s - n, c, l), f = s - d, p = Math.min(Math.abs(u - o), Math.abs(f));
19263
19273
  return n > 0 ? (u = o + p, d = s - p) : (u = o - p, d = s + p), a[t] = u, a[t + 1] = d, a;
19264
19274
  }
19265
19275
  function zw(e) {
@@ -19390,11 +19400,11 @@ function Hw(e) {
19390
19400
  case "End": {
19391
19401
  p = "end";
19392
19402
  let t = e, a = e + 1, o = (n[t] ?? 0) + (n[a] ?? 0);
19393
- f[t] = Math.min(i[t] ?? Infinity, o - (r[a] ?? 0)), f[a] = o - f[t];
19403
+ f[t] = Math.min(i[t] ?? 1 / 0, o - (r[a] ?? 0)), f[a] = o - f[t];
19394
19404
  break;
19395
19405
  }
19396
19406
  }
19397
- if (d !== 0 && (f = Rw(n, e, d, r, i)), f = f.map((e, t) => Lw(e, r[t] ?? 0, i[t] ?? Infinity)), s && s(f, {
19407
+ if (d !== 0 && (f = Rw(n, e, d, r, i)), f = f.map((e, t) => Lw(e, r[t] ?? 0, i[t] ?? 1 / 0)), s && s(f, {
19398
19408
  sizes: f,
19399
19409
  source: "keyboard",
19400
19410
  originalEvent: c.nativeEvent
@@ -19425,17 +19435,17 @@ function Uw(e) {
19425
19435
  size: e.props.size,
19426
19436
  defaultSize: e.props.defaultSize,
19427
19437
  minSize: e.props.minSize ?? 0,
19428
- maxSize: e.props.maxSize ?? Infinity
19438
+ maxSize: e.props.maxSize ?? 1 / 0
19429
19439
  })), [S]), O = D.length, k = m(!1);
19430
19440
  2 > O && !k.current && (k.current = !0, console.warn(`SplitPane requires at least 2 Pane children. Received ${O}.`));
19431
19441
  let { minSizes: A, maxSizes: j } = p(() => {
19432
19442
  if (w === 0) return {
19433
19443
  minSizes: Array(O).fill(0),
19434
- maxSizes: Array(O).fill(Infinity)
19444
+ maxSizes: Array(O).fill(1 / 0)
19435
19445
  };
19436
19446
  let e = [], t = [];
19437
19447
  return D.forEach((n) => {
19438
- e.push(Iw(n.minSize, w)), t.push(n.maxSize === Infinity ? Infinity : Iw(n.maxSize, w));
19448
+ e.push(Iw(n.minSize, w)), t.push(n.maxSize === 1 / 0 ? 1 / 0 : Iw(n.maxSize, w));
19439
19449
  }), {
19440
19450
  minSizes: e,
19441
19451
  maxSizes: t
@@ -19585,7 +19595,7 @@ function Uw(e) {
19585
19595
  style: y,
19586
19596
  currentSize: a,
19587
19597
  minSize: n,
19588
- maxSize: o === Infinity ? void 0 : o
19598
+ maxSize: o === 1 / 0 ? void 0 : o
19589
19599
  }, "divider-" + i));
19590
19600
  }
19591
19601
  }), e;
@@ -19679,12 +19689,12 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19679
19689
  className: "h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-sidebar-accent hover:text-foreground",
19680
19690
  title: "New File",
19681
19691
  onClick: () => l(null, !1),
19682
- children: /* @__PURE__ */ _(ji, { className: "h-3.5 w-3.5" })
19692
+ children: /* @__PURE__ */ _(Mi, { className: "h-3.5 w-3.5" })
19683
19693
  }), H && /* @__PURE__ */ _("button", {
19684
19694
  className: "h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-sidebar-accent hover:text-foreground",
19685
19695
  title: "New Chat",
19686
19696
  onClick: H,
19687
- children: /* @__PURE__ */ _(la, { className: "h-3.5 w-3.5" })
19697
+ children: /* @__PURE__ */ _(ca, { className: "h-3.5 w-3.5" })
19688
19698
  })]
19689
19699
  })]
19690
19700
  }), _e.length === 0 ? /* @__PURE__ */ _("div", {
@@ -19696,7 +19706,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19696
19706
  className: Z("group flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer transition-colors hover:bg-sidebar-accent", i && "bg-sidebar-accent text-blue-600 font-medium"),
19697
19707
  onClick: () => k?.(e),
19698
19708
  children: [
19699
- a ? /* @__PURE__ */ _(da, { className: "shrink-0 h-4 w-4 text-blue-500" }) : /* @__PURE__ */ _(qb, {
19709
+ a ? /* @__PURE__ */ _(ua, { className: "shrink-0 h-4 w-4 text-blue-500" }) : /* @__PURE__ */ _(qb, {
19700
19710
  filename: t,
19701
19711
  size: 16
19702
19712
  }),
@@ -19709,7 +19719,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19709
19719
  onClick: (t) => {
19710
19720
  t.stopPropagation(), A(e);
19711
19721
  },
19712
- children: /* @__PURE__ */ _(Va, { className: "h-3 w-3" })
19722
+ children: /* @__PURE__ */ _(Ba, { className: "h-3 w-3" })
19713
19723
  })
19714
19724
  ]
19715
19725
  }) }), /* @__PURE__ */ v(GC, { children: [
@@ -19718,32 +19728,32 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19718
19728
  let n = window.prompt("Rename document", t);
19719
19729
  n?.trim() && M(e, n.trim());
19720
19730
  },
19721
- children: [/* @__PURE__ */ _(ha, { className: "mr-2 h-4 w-4" }), "Rename"]
19731
+ children: [/* @__PURE__ */ _(ma, { className: "mr-2 h-4 w-4" }), "Rename"]
19722
19732
  }),
19723
19733
  A && /* @__PURE__ */ v(KC, {
19724
19734
  onClick: () => A(e),
19725
19735
  className: "text-destructive focus:text-destructive",
19726
- children: [/* @__PURE__ */ _(Va, { className: "mr-2 h-4 w-4" }), "Close"]
19736
+ children: [/* @__PURE__ */ _(Ba, { className: "mr-2 h-4 w-4" }), "Close"]
19727
19737
  }),
19728
19738
  (A || j) && /* @__PURE__ */ v(KC, {
19729
19739
  onClick: () => be(e),
19730
19740
  disabled: !o,
19731
- children: [/* @__PURE__ */ _(ti, { className: "mr-2 h-4 w-4" }), "Close Tabs Below"]
19741
+ children: [/* @__PURE__ */ _(ei, { className: "mr-2 h-4 w-4" }), "Close Tabs Below"]
19732
19742
  }),
19733
19743
  (A || j) && /* @__PURE__ */ v(KC, {
19734
19744
  onClick: () => ye(e),
19735
19745
  disabled: !s,
19736
- children: [/* @__PURE__ */ _(pi, { className: "mr-2 h-4 w-4" }), "Close Other Tabs"]
19746
+ children: [/* @__PURE__ */ _(fi, { className: "mr-2 h-4 w-4" }), "Close Other Tabs"]
19737
19747
  }),
19738
19748
  !a && (N || P) && /* @__PURE__ */ _(XC, {}),
19739
19749
  N && !a && /* @__PURE__ */ v(KC, {
19740
19750
  onClick: () => N(e),
19741
- children: [/* @__PURE__ */ _(ka, { className: "mr-2 h-4 w-4" }), "Split Right"]
19751
+ children: [/* @__PURE__ */ _(Oa, { className: "mr-2 h-4 w-4" }), "Split Right"]
19742
19752
  }),
19743
19753
  P && !a && /* @__PURE__ */ v(KC, {
19744
19754
  onClick: P,
19745
19755
  disabled: !F,
19746
- children: [/* @__PURE__ */ _(ya, { className: "mr-2 h-4 w-4" }), "Reopen Last Closed"]
19756
+ children: [/* @__PURE__ */ _(va, { className: "mr-2 h-4 w-4" }), "Reopen Last Closed"]
19747
19757
  })
19748
19758
  ] })] }, e);
19749
19759
  })]
@@ -19762,20 +19772,20 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19762
19772
  className: Se,
19763
19773
  title: "New File",
19764
19774
  onClick: () => l(r, !1),
19765
- children: /* @__PURE__ */ _(ji, { className: "h-3.5 w-3.5" })
19775
+ children: /* @__PURE__ */ _(Mi, { className: "h-3.5 w-3.5" })
19766
19776
  }),
19767
19777
  /* @__PURE__ */ _("button", {
19768
19778
  className: Se,
19769
19779
  title: "New Folder",
19770
19780
  onClick: () => l(r, !0),
19771
- children: /* @__PURE__ */ _(zi, { className: "h-3.5 w-3.5" })
19781
+ children: /* @__PURE__ */ _(Ri, { className: "h-3.5 w-3.5" })
19772
19782
  }),
19773
19783
  U && /* @__PURE__ */ v(Uy, { children: [/* @__PURE__ */ _(Wy, {
19774
19784
  asChild: !0,
19775
19785
  children: /* @__PURE__ */ _("button", {
19776
19786
  className: Se,
19777
19787
  title: "Trash",
19778
- children: /* @__PURE__ */ _(Fa, { className: "h-3.5 w-3.5" })
19788
+ children: /* @__PURE__ */ _(Pa, { className: "h-3.5 w-3.5" })
19779
19789
  })
19780
19790
  }), /* @__PURE__ */ _(Gy, {
19781
19791
  align: "end",
@@ -19786,7 +19796,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19786
19796
  children: [/* @__PURE__ */ _("span", {
19787
19797
  className: "truncate flex-1",
19788
19798
  children: e.title || "Untitled"
19789
- }), /* @__PURE__ */ _(ya, { className: "h-3 w-3 ml-2 opacity-60" })]
19799
+ }), /* @__PURE__ */ _(va, { className: "h-3 w-3 ml-2 opacity-60" })]
19790
19800
  }, e.id)), te.length > 5 && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Yy, {}), /* @__PURE__ */ v(Ky, {
19791
19801
  disabled: !0,
19792
19802
  className: "text-xs text-center",
@@ -19802,13 +19812,13 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19802
19812
  title: se.label,
19803
19813
  "aria-label": se.label,
19804
19814
  onClick: se.toggle,
19805
- children: se.isFullyExpanded ? /* @__PURE__ */ _(li, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ _(di, { className: "h-3.5 w-3.5" })
19815
+ children: se.isFullyExpanded ? /* @__PURE__ */ _(ci, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ _(ui, { className: "h-3.5 w-3.5" })
19806
19816
  }),
19807
19817
  ee && /* @__PURE__ */ _("button", {
19808
19818
  className: Se,
19809
19819
  title: "File Manager",
19810
19820
  onClick: ee,
19811
- children: /* @__PURE__ */ _(Ui, { className: "h-3.5 w-3.5" })
19821
+ children: /* @__PURE__ */ _(Hi, { className: "h-3.5 w-3.5" })
19812
19822
  })
19813
19823
  ]
19814
19824
  })]
@@ -19845,7 +19855,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19845
19855
  }), /* @__PURE__ */ v("div", {
19846
19856
  className: "relative",
19847
19857
  children: [
19848
- /* @__PURE__ */ _(xa, { className: "absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground pointer-events-none" }),
19858
+ /* @__PURE__ */ _(ba, { className: "absolute left-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground pointer-events-none" }),
19849
19859
  /* @__PURE__ */ _(kw, {
19850
19860
  value: W,
19851
19861
  onChange: (e) => ie(e.target.value),
@@ -19855,7 +19865,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19855
19865
  W && /* @__PURE__ */ _("button", {
19856
19866
  onClick: () => ie(""),
19857
19867
  className: "absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
19858
- children: /* @__PURE__ */ _(Va, { className: "h-3 w-3" })
19868
+ children: /* @__PURE__ */ _(Ba, { className: "h-3 w-3" })
19859
19869
  })
19860
19870
  ]
19861
19871
  })]
@@ -19872,7 +19882,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19872
19882
  className: "group flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer transition-colors hover:bg-sidebar-accent",
19873
19883
  onClick: () => K(e.id),
19874
19884
  children: [
19875
- /* @__PURE__ */ _(ta, { className: "shrink-0 h-4 w-4 text-muted-foreground" }),
19885
+ /* @__PURE__ */ _(ea, { className: "shrink-0 h-4 w-4 text-muted-foreground" }),
19876
19886
  /* @__PURE__ */ _("span", {
19877
19887
  className: "flex-1 truncate text-sm",
19878
19888
  children: e.title
@@ -19880,7 +19890,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19880
19890
  n > 0 && /* @__PURE__ */ v("span", {
19881
19891
  className: "shrink-0 flex items-center gap-0.5 text-xs text-muted-foreground",
19882
19892
  title: `${n} shared tag${n === 1 ? "" : "s"}`,
19883
- children: [/* @__PURE__ */ _(ja, { className: "h-3 w-3" }), n]
19893
+ children: [/* @__PURE__ */ _(Aa, { className: "h-3 w-3" }), n]
19884
19894
  }),
19885
19895
  /* @__PURE__ */ _("span", {
19886
19896
  className: "shrink-0 text-xs text-muted-foreground",
@@ -19909,7 +19919,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19909
19919
  className: "group flex items-center gap-2 px-2 py-2 mb-1 rounded-md cursor-pointer border border-primary/30 bg-accent/30 transition-all hover:border-primary hover:bg-primary/10",
19910
19920
  onClick: () => K(e.document.id),
19911
19921
  children: [
19912
- /* @__PURE__ */ _(Da, { className: "shrink-0 h-4 w-4 text-primary" }),
19922
+ /* @__PURE__ */ _(Ea, { className: "shrink-0 h-4 w-4 text-primary" }),
19913
19923
  /* @__PURE__ */ v("div", {
19914
19924
  className: "flex-1 min-w-0",
19915
19925
  children: [/* @__PURE__ */ _("p", {
@@ -19923,7 +19933,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19923
19933
  e.sharedTagCount > 0 && /* @__PURE__ */ v("span", {
19924
19934
  className: "shrink-0 flex items-center gap-0.5 text-xs text-muted-foreground",
19925
19935
  title: `${e.sharedTagCount} shared tag${e.sharedTagCount === 1 ? "" : "s"}`,
19926
- children: [/* @__PURE__ */ _(ja, { className: "h-3 w-3" }), e.sharedTagCount]
19936
+ children: [/* @__PURE__ */ _(Aa, { className: "h-3 w-3" }), e.sharedTagCount]
19927
19937
  }),
19928
19938
  /* @__PURE__ */ _("span", {
19929
19939
  className: "shrink-0 text-xs text-muted-foreground",
@@ -19942,7 +19952,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19942
19952
  className: "flex items-center justify-between mb-2 gap-2",
19943
19953
  children: [/* @__PURE__ */ v("p", {
19944
19954
  className: "flex items-center gap-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",
19945
- children: [/* @__PURE__ */ _(xa, { className: "h-3.5 w-3.5 text-primary" }), "Search topics"]
19955
+ children: [/* @__PURE__ */ _(ba, { className: "h-3.5 w-3.5 text-primary" }), "Search topics"]
19946
19956
  }), B?.onGenerateTopics && /* @__PURE__ */ _("button", {
19947
19957
  className: "shrink-0 text-xs font-medium text-primary hover:underline disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline",
19948
19958
  onClick: B.onGenerateTopics,
@@ -19959,7 +19969,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19959
19969
  className: "w-full flex items-start gap-1.5 text-left text-xs text-muted-foreground rounded-md px-1 py-1 -mx-1 transition-colors hover:bg-sidebar-accent hover:text-foreground disabled:opacity-50 disabled:cursor-not-allowed",
19960
19970
  onClick: () => B.onSearchTopic?.(e),
19961
19971
  disabled: !B.onSearchTopic,
19962
- children: [/* @__PURE__ */ _(xa, { className: "shrink-0 h-3 w-3 mt-0.5 text-primary" }), /* @__PURE__ */ _("span", { children: e })]
19972
+ children: [/* @__PURE__ */ _(ba, { className: "shrink-0 h-3 w-3 mt-0.5 text-primary" }), /* @__PURE__ */ _("span", { children: e })]
19963
19973
  }) }, t))
19964
19974
  }) : /* @__PURE__ */ _("p", {
19965
19975
  className: "text-xs text-muted-foreground",
@@ -19971,7 +19981,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
19971
19981
  className: "flex items-center justify-between mb-2 gap-2",
19972
19982
  children: [/* @__PURE__ */ v("p", {
19973
19983
  className: "flex items-center gap-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",
19974
- children: [/* @__PURE__ */ _($i, { className: "h-3.5 w-3.5 text-primary" }), "Page tips"]
19984
+ children: [/* @__PURE__ */ _(Qi, { className: "h-3.5 w-3.5 text-primary" }), "Page tips"]
19975
19985
  }), z?.onGenerateTips && /* @__PURE__ */ _("button", {
19976
19986
  className: "shrink-0 text-xs font-medium text-primary hover:underline disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline",
19977
19987
  onClick: z.onGenerateTips,
@@ -20010,7 +20020,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20010
20020
  className: "h-full flex items-center justify-center p-6",
20011
20021
  children: /* @__PURE__ */ v("div", {
20012
20022
  className: "text-center",
20013
- children: [/* @__PURE__ */ _(ra, { className: "h-8 w-8 animate-spin text-muted-foreground mx-auto mb-3" }), /* @__PURE__ */ _("p", {
20023
+ children: [/* @__PURE__ */ _(na, { className: "h-8 w-8 animate-spin text-muted-foreground mx-auto mb-3" }), /* @__PURE__ */ _("p", {
20014
20024
  className: "text-sm text-muted-foreground",
20015
20025
  children: "Generating AI suggestion..."
20016
20026
  })]
@@ -20065,19 +20075,19 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20065
20075
  }, Kw = [
20066
20076
  {
20067
20077
  name: "Appearance",
20068
- icon: pa
20078
+ icon: fa
20069
20079
  },
20070
20080
  {
20071
20081
  name: "Storage Sources",
20072
- icon: Di
20082
+ icon: Ei
20073
20083
  },
20074
20084
  {
20075
20085
  name: "AI Rewrite Modes",
20076
- icon: La
20086
+ icon: Ia
20077
20087
  },
20078
20088
  {
20079
20089
  name: "About",
20080
- icon: Yi
20090
+ icon: Ji
20081
20091
  }
20082
20092
  ], qw = ({ leftPanels: e, onLeftPanelsChange: t, rightPanels: n, onRightPanelsChange: r, isMobile: i, deletedDocs: a, onRestore: o, onSettingsClick: s, user: c, onLogin: l, onSignOut: u }) => /* @__PURE__ */ _("div", {
20083
20093
  className: "border-t border-sidebar-border py-1",
@@ -20094,7 +20104,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20094
20104
  variant: "ghost",
20095
20105
  size: "sm",
20096
20106
  className: "h-9 w-9 p-0 text-sidebar-foreground/60 hover:text-sidebar-foreground hover:bg-sidebar-accent",
20097
- children: /* @__PURE__ */ _(Fa, { className: "h-4 w-4" })
20107
+ children: /* @__PURE__ */ _(Pa, { className: "h-4 w-4" })
20098
20108
  })
20099
20109
  })
20100
20110
  }), /* @__PURE__ */ _(Xg, {
@@ -20109,7 +20119,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20109
20119
  children: [/* @__PURE__ */ _("span", {
20110
20120
  className: "truncate flex-1",
20111
20121
  children: e.title || "Untitled"
20112
- }), /* @__PURE__ */ _(ya, { className: "h-3 w-3 ml-2 opacity-60" })]
20122
+ }), /* @__PURE__ */ _(va, { className: "h-3 w-3 ml-2 opacity-60" })]
20113
20123
  }, e.id)), a.length > 5 && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Yy, {}), /* @__PURE__ */ v(Ky, {
20114
20124
  disabled: !0,
20115
20125
  className: "text-xs text-center",
@@ -20128,7 +20138,7 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20128
20138
  variant: "ghost",
20129
20139
  size: "sm",
20130
20140
  className: "h-9 w-9 p-0 text-sidebar-foreground/60 hover:text-sidebar-foreground hover:bg-sidebar-accent",
20131
- children: /* @__PURE__ */ _(Ta, { className: "h-4 w-4" })
20141
+ children: /* @__PURE__ */ _(wa, { className: "h-4 w-4" })
20132
20142
  })
20133
20143
  })
20134
20144
  }), /* @__PURE__ */ _(Xg, {
@@ -20147,11 +20157,11 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20147
20157
  c ? /* @__PURE__ */ v(Ky, {
20148
20158
  onClick: u,
20149
20159
  className: "flex items-center gap-2",
20150
- children: [/* @__PURE__ */ _(sa, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ _("span", { children: "Sign Out" })]
20160
+ children: [/* @__PURE__ */ _(oa, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ _("span", { children: "Sign Out" })]
20151
20161
  }) : /* @__PURE__ */ v(Ky, {
20152
20162
  onClick: l,
20153
20163
  className: "flex items-center gap-2",
20154
- children: [/* @__PURE__ */ _(aa, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ _("span", { children: "Login" })]
20164
+ children: [/* @__PURE__ */ _(ia, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ _("span", { children: "Login" })]
20155
20165
  })
20156
20166
  ]
20157
20167
  })] }),
@@ -20167,8 +20177,8 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20167
20177
  })
20168
20178
  })
20169
20179
  }), Jw = "bg-white/10 dark:bg-black/20 backdrop-blur-md border-white/15 dark:border-white/10", Yw = ({ documents: e, activeId: t, activeDocument: n, onSelect: r, onAdd: i, onDelete: a, onDuplicate: o, onSetExpandedFolders: s, onMove: c, onManageTags: l, onRename: d, onSearchFocus: f, isOpen: g, onOpenChange: y, isMobile: b, leftPanels: x, onLeftPanelsChange: S, rightPanels: C, onRightPanelsChange: w, onSettingsClick: T, onRestore: E, newDocumentId: D, showDynamicIsland: O, onToggleDynamicIsland: k, activeFileSourceId: A = "local-default", onFileSourceChange: j, headings: M = [], onNavigate: N, editorRef: P, openTabs: F = [], activeTab: I, onTabChange: R, onTabClose: z, onTabsClose: B, onTabRename: V, onSplitRight: H, onReopenLastClosed: ee, canReopenLastClosed: te = !1, aiProps: U, tipsProps: ne, topicsProps: re, tabItems: W, onNewChat: ie }) => {
20170
- let G = p(() => e.filter((e) => e.isDeleted), [e]), ae = p(() => e.filter((e) => !e.isDeleted), [e]), [oe, se] = h(!0), ce = m(null), le = L(ce), K = m(null), [ue] = h(() => Cs()), [de, fe] = h(() => {
20171
- let e = Cs();
20180
+ let G = p(() => e.filter((e) => e.isDeleted), [e]), ae = p(() => e.filter((e) => !e.isDeleted), [e]), [oe, se] = h(!0), ce = m(null), le = L(ce), K = m(null), [ue] = h(() => Ss()), [de, fe] = h(() => {
20181
+ let e = Ss();
20172
20182
  return e.find((e) => e.id === A) || e[0] || null;
20173
20183
  }), [pe, me] = h(!1);
20174
20184
  u(() => {
@@ -20278,10 +20288,10 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20278
20288
  onRestore: E,
20279
20289
  onSettingsClick: T
20280
20290
  };
20281
- return b ? /* @__PURE__ */ _(gs, {
20291
+ return b ? /* @__PURE__ */ _(hs, {
20282
20292
  open: g,
20283
20293
  onOpenChange: y,
20284
- children: /* @__PURE__ */ _(ys, {
20294
+ children: /* @__PURE__ */ _(vs, {
20285
20295
  side: "left",
20286
20296
  className: Z("w-80 p-0", Jw),
20287
20297
  children: /* @__PURE__ */ v("aside", {
@@ -20321,4 +20331,4 @@ var Gw = ({ panels: e, persistenceKey: t, activeDocuments: n, activeId: r, activ
20321
20331
  });
20322
20332
  };
20323
20333
  //#endregion
20324
- export { Ow as AIRewriteSuggestion, Cw as DEFAULT_REWRITE_MODES, fp as FileManagerModal, aw as FileTree, uw as OutlineView, Xb as PANEL_OPTIONS, Yw as Sidebar, Gw as SidebarContent, qw as SidebarFooter, ex as SidebarToolbar, $b as SidebarViewMenu, Ts as addFileSource, Z as cn, dp as defaultDocuments, Ds as deleteFileSource, yw as findRelatedDocuments, As as getActiveFileSource, Os as getActiveFileSourceId, Cs as getFileSources, Tw as getRewriteModes, Jb as getSourceIcon, Yb as getSourceTypeLabel, Dw as resetRewriteModes, ws as saveFileSources, Ew as saveRewriteModes, ks as setActiveFileSourceId, Zb as sortPanels, bw as splitTopSuggestion, Aw as ssrSafeLocalStorage, Qb as togglePanel, Es as updateFileSource };
20334
+ export { Ow as AIRewriteSuggestion, Cw as DEFAULT_REWRITE_MODES, fp as FileManagerModal, aw as FileTree, uw as OutlineView, Xb as PANEL_OPTIONS, Yw as Sidebar, Gw as SidebarContent, qw as SidebarFooter, ex as SidebarToolbar, $b as SidebarViewMenu, ws as addFileSource, Z as cn, dp as defaultDocuments, Es as deleteFileSource, yw as findRelatedDocuments, ks as getActiveFileSource, Ds as getActiveFileSourceId, Ss as getFileSources, Tw as getRewriteModes, Jb as getSourceIcon, Yb as getSourceTypeLabel, Dw as resetRewriteModes, Cs as saveFileSources, Ew as saveRewriteModes, Os as setActiveFileSourceId, Zb as sortPanels, bw as splitTopSuggestion, Aw as ssrSafeLocalStorage, Qb as togglePanel, Ts as updateFileSource };