@gpustack/core-ui 1.0.14 → 1.0.16

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.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-gEudmnaM.js";
2
- import { i as r, n as i, r as a, t as o } from "./useIntl-CtHcH0Kd.js";
2
+ import { i as r, n as i, r as a, t as o } from "./useIntl-CQ7P5Olk.js";
3
3
  import { t as s } from "./lodash-DVkZQU_K.js";
4
- import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-BFmm0x52.js";
4
+ import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-DaPJLZGP.js";
5
5
  import { A as m, _ as h, a as g, c as _, f as v, g as y, n as b, s as x, y as S } from "./utils-CIKJeIzI.js";
6
- import { t as C } from "./editor-wrap-DQdG3MHA.js";
6
+ import { t as C } from "./editor-wrap-BGZYfHpj.js";
7
7
  import w from "axios";
8
8
  import * as T from "react";
9
9
  import E, { PureComponent as D, createContext as O, createElement as k, forwardRef as A, isValidElement as j, memo as M, useCallback as N, useContext as P, useEffect as F, useImperativeHandle as I, useLayoutEffect as L, useMemo as R, useRef as z, useState as B, version as ee } from "react";
@@ -3460,7 +3460,7 @@ var ga = () => {
3460
3460
  });
3461
3461
  }, Ta = O({}), Ea = () => {
3462
3462
  let e = P(Ta);
3463
- if (!e) throw Error("useWrapperContext must be used within a WrapperProvider");
3463
+ if (!e) throw Error("useColumnWrapperContext must be used within a WrapperProvider");
3464
3464
  return e;
3465
3465
  }, Da = Y.div`
3466
3466
  flex: 1;
@@ -4852,7 +4852,7 @@ var ga = () => {
4852
4852
  placeholder: n,
4853
4853
  footer: f,
4854
4854
  ref: b,
4855
- options: r ? null : S,
4855
+ options: r ? void 0 : S,
4856
4856
  onFocus: T,
4857
4857
  onBlur: E,
4858
4858
  onChange: w,
@@ -6811,7 +6811,10 @@ var Is = (e) => {
6811
6811
  }
6812
6812
  })), /* @__PURE__ */ H("div", {
6813
6813
  ref: h,
6814
- style: { ...a.wrapper },
6814
+ style: {
6815
+ flex: 1,
6816
+ ...a.wrapper
6817
+ },
6815
6818
  children: /* @__PURE__ */ H(Co, {
6816
6819
  ...l,
6817
6820
  style: {
@@ -6871,7 +6874,7 @@ var Is = (e) => {
6871
6874
  children: /* @__PURE__ */ H(Ys, {
6872
6875
  ...d,
6873
6876
  ref: h,
6874
- options: r ? null : _,
6877
+ options: r ? void 0 : _,
6875
6878
  onFocus: x,
6876
6879
  onBlur: S,
6877
6880
  onChange: b,
@@ -8328,43 +8331,44 @@ var Nc = (e) => {
8328
8331
  value: t,
8329
8332
  children: e
8330
8333
  }), Kc = /[^=]+=[^=]*$/, qc = (e) => {
8331
- let { value: t, label: n, onChange: r, onBlur: i, onPaste: a, sourceOptions: o, trim: s = !0 } = e, c = E.useRef(0), l = E.useRef(""), [u, d] = E.useState([]), f = (e) => {
8334
+ let { value: t, label: n, onChange: r, onBlur: i, onPaste: a, disabled: o, sourceOptions: s, trim: c = !0 } = e, l = E.useRef(0), u = E.useRef(""), [d, f] = E.useState([]), p = (e) => {
8332
8335
  if (!e) {
8333
- d(o || []);
8336
+ f(s || []);
8334
8337
  return;
8335
8338
  }
8336
8339
  let t = e.match(Kc);
8337
8340
  if (!t) {
8338
- d(Z.default.filter(o, (t) => t.label.includes(e)));
8341
+ f(Z.default.filter(s, (t) => t.label.includes(e)));
8339
8342
  return;
8340
8343
  }
8341
- let [n, r] = Z.default.split(t[0], "="), i = Z.default.find(o, (e) => e.label === n);
8344
+ let [n, r] = Z.default.split(t[0], "="), i = Z.default.find(s, (e) => e.label === n);
8342
8345
  if (!i) {
8343
- d([]);
8346
+ f([]);
8344
8347
  return;
8345
8348
  }
8346
- d(Z.default.filter(i.opts, (e) => e.label.includes(r)));
8347
- }, p = (e) => {
8348
- let t = l.current.match(Kc);
8349
+ f(Z.default.filter(i.opts, (e) => e.label.includes(r)));
8350
+ }, m = (e) => {
8351
+ let t = u.current.match(Kc);
8349
8352
  r(t ? `${Z.default.split(t[0], "=")[0]}=${e}` : e?.trim());
8350
- }, m = Z.default.debounce((e) => {
8351
- c.current = e.target.selectionStart, l.current = e.target.value.slice(0, c.current), f(l.current);
8353
+ }, h = Z.default.debounce((e) => {
8354
+ l.current = e.target.selectionStart, u.current = e.target.value.slice(0, l.current), p(u.current);
8352
8355
  }, 100);
8353
8356
  return /* @__PURE__ */ H(mo, {
8354
8357
  placeholder: e.placeholder,
8355
8358
  defaultActiveFirstOption: !0,
8356
8359
  value: t,
8357
8360
  onInput: (e) => {
8358
- m(e), r(e.target.value);
8361
+ h(e), r(e.target.value);
8359
8362
  },
8360
8363
  onSelect: (e) => {
8361
- p(e), d([]);
8364
+ m(e), f([]);
8362
8365
  },
8363
- onFocus: m,
8366
+ onFocus: h,
8364
8367
  onBlur: i,
8365
8368
  label: n,
8366
- options: u,
8367
- trim: s,
8369
+ options: d,
8370
+ trim: c,
8371
+ disabled: o,
8368
8372
  style: {
8369
8373
  flex: 1,
8370
8374
  minWidth: 0
@@ -8372,25 +8376,26 @@ var Nc = (e) => {
8372
8376
  onPaste: a
8373
8377
  });
8374
8378
  }, Jc = (e) => {
8375
- let { onRemove: t, onChange: n, onBlur: r, onPaste: i, label: a, value: o, options: s, trim: c = !0, data: l, required: u, renderItem: d } = e, f = (e) => {
8379
+ let { onRemove: t, onChange: n, onBlur: r, onPaste: i, label: a, value: o, options: s, trim: c = !0, data: l, required: u, disabled: d, renderItem: f } = e, p = (e) => {
8376
8380
  n(e);
8377
8381
  };
8378
8382
  return /* @__PURE__ */ U("div", {
8379
8383
  className: "list-item",
8380
- children: [d ? d(l, {
8381
- onChange: f,
8384
+ children: [f ? f(l, {
8385
+ onChange: p,
8382
8386
  onBlur: r,
8383
8387
  onPaste: i
8384
8388
  }) : /* @__PURE__ */ H(qc, {
8385
8389
  value: o,
8386
- onChange: f,
8390
+ onChange: p,
8387
8391
  onBlur: r,
8388
8392
  onPaste: i,
8389
8393
  label: a,
8390
8394
  sourceOptions: s,
8391
8395
  trim: c,
8392
- placeholder: e.placeholder
8393
- }), !u && /* @__PURE__ */ H(G, {
8396
+ placeholder: e.placeholder,
8397
+ disabled: d
8398
+ }), !u && !d && /* @__PURE__ */ H(G, {
8394
8399
  size: "small",
8395
8400
  className: "btn",
8396
8401
  type: "default",
@@ -8400,72 +8405,74 @@ var Nc = (e) => {
8400
8405
  })]
8401
8406
  });
8402
8407
  }, Yc = (e) => {
8403
- let { value: t, label: n, description: r, onChange: i, onBlur: a, onDelete: o, btnText: s, options: c, labelExtra: l, trim: u = !0, styles: d, required: f, renderItem: p } = e, [m, h] = E.useState([]), g = E.useRef(0), _ = () => {
8404
- g.current += 1;
8405
- }, v = (e) => {
8406
- let t = Z.default.cloneDeep(m);
8408
+ let { value: t, label: n, description: r, onChange: i, onBlur: a, onDelete: o, btnText: s, options: c, labelExtra: l, trim: u = !0, styles: d, required: f, disabled: p, renderItem: m } = e, [h, g] = E.useState([]), _ = E.useRef(0), v = () => {
8409
+ _.current += 1;
8410
+ }, b = (e) => {
8411
+ let t = Z.default.cloneDeep(h);
8407
8412
  t.splice(e, 1);
8408
8413
  let n = Z.default.map(t, "value").filter((e) => !!e);
8409
- h(t), i?.(n), o?.(e);
8410
- }, b = (e, t) => {
8411
- let n = Z.default.cloneDeep(m);
8414
+ g(t), i?.(n), o?.(e);
8415
+ }, x = (e, t) => {
8416
+ let n = Z.default.cloneDeep(h);
8412
8417
  n[t].value = e;
8413
8418
  let r = Z.default.map(n, "value").filter((e) => !!e);
8414
- h(n), i?.(r);
8415
- }, x = () => {
8416
- _();
8417
- let e = Z.default.cloneDeep(m);
8419
+ g(n), i?.(r);
8420
+ }, S = () => {
8421
+ v();
8422
+ let e = Z.default.cloneDeep(h);
8418
8423
  e.push({
8419
8424
  value: "",
8420
- uid: g.current
8421
- }), h(e);
8422
- }, S = (e, t) => {
8425
+ uid: _.current
8426
+ }), g(e);
8427
+ }, C = (e, t) => {
8423
8428
  let n = e.clipboardData?.getData("text");
8424
8429
  if (!n) return;
8425
8430
  let r = y(n);
8426
8431
  if (r.length <= 1) return;
8427
8432
  e.preventDefault();
8428
- let a = Z.default.cloneDeep(m), o = u ? r[0]?.trim() : r[0];
8433
+ let a = Z.default.cloneDeep(h), o = u ? r[0]?.trim() : r[0];
8429
8434
  a[t].value = o || "";
8430
8435
  for (let e = 1; e < r.length; e++) {
8431
- _();
8436
+ v();
8432
8437
  let n = u ? r[e]?.trim() : r[e];
8433
8438
  a.splice(t + e, 0, {
8434
8439
  value: n || "",
8435
- uid: g.current
8440
+ uid: _.current
8436
8441
  });
8437
8442
  }
8438
8443
  let s = Z.default.map(a, "value").filter((e) => !!e);
8439
- h(a), i?.(s);
8444
+ g(a), i?.(s);
8440
8445
  };
8441
8446
  return E.useEffect(() => {
8442
- let e = t ?? [], n = Z.default.map(m, "value").filter((e) => !!e);
8443
- Z.default.isEqual(n, e) || h(Z.default.map(e, (e) => (_(), {
8447
+ let e = t ?? [], n = Z.default.map(h, "value").filter((e) => !!e);
8448
+ Z.default.isEqual(n, e) || g(Z.default.map(e, (e) => (v(), {
8444
8449
  value: e,
8445
- uid: g.current
8450
+ uid: _.current
8446
8451
  })));
8447
8452
  }, [t]), F(() => {
8448
- f && m.length === 0 && x();
8453
+ f && h.length === 0 && S();
8449
8454
  }, [f]), /* @__PURE__ */ H(Qa, {
8450
8455
  styles: d,
8451
8456
  label: n,
8452
8457
  required: f,
8453
8458
  description: r,
8454
8459
  labelExtra: l,
8455
- onAdd: x,
8460
+ onAdd: S,
8456
8461
  btnText: s,
8457
- children: /* @__PURE__ */ H(V, { children: Z.default.map(m, (t, n) => /* @__PURE__ */ H(Jc, {
8458
- required: f && m.length === 1,
8462
+ disabled: p,
8463
+ children: /* @__PURE__ */ H(V, { children: Z.default.map(h, (t, n) => /* @__PURE__ */ H(Jc, {
8464
+ required: f && h.length === 1,
8459
8465
  placeholder: e.placeholder,
8460
8466
  options: c,
8461
8467
  data: t,
8462
8468
  value: t.value,
8463
8469
  onBlur: (e) => a?.(e, n),
8464
- onRemove: () => v(n),
8465
- onChange: (e) => b(e, n),
8466
- onPaste: (e) => S(e, n),
8470
+ onRemove: () => b(n),
8471
+ onChange: (e) => x(e, n),
8472
+ onPaste: (e) => C(e, n),
8467
8473
  trim: u,
8468
- renderItem: p
8474
+ disabled: p,
8475
+ renderItem: m
8469
8476
  }, t.uid)) })
8470
8477
  });
8471
8478
  }, Xc = A((e, t) => {
@@ -9245,17 +9252,13 @@ var Dl = Y.div`
9245
9252
  }
9246
9253
  };
9247
9254
  }, jl = O({ scrollToBottom: () => {} }), Ml = Y.div`
9248
- max-height: ${({ $maxHeight: e }) => typeof e == "number" ? `${e}px` : e};
9249
- overflow-y: auto;
9250
- width: 100%;
9251
- `, Nl = Y.div`
9252
9255
  display: flex;
9253
9256
  align-items: center;
9254
9257
  max-width: 360px;
9255
9258
  text-overflow: ellipsis;
9256
9259
  overflow: hidden;
9257
9260
  white-space: nowrap;
9258
- `, Pl = (e) => {
9261
+ `, Nl = (e) => {
9259
9262
  let t = E.useRef(null), { saveScrollHeight: n, restoreScrollHeight: r } = Fi(), { initialize: i, destroyInstance: a, scrollToBottom: o } = d();
9260
9263
  return E.useEffect(() => {
9261
9264
  e.open ? n() : r();
@@ -9267,14 +9270,14 @@ var Dl = Y.div`
9267
9270
  n && clearTimeout(n), a();
9268
9271
  };
9269
9272
  }, [e.open, i]), /* @__PURE__ */ H(_t, {
9270
- ...e,
9271
- title: /* @__PURE__ */ H(Nl, { children: e.title }),
9273
+ title: /* @__PURE__ */ H(Ml, { children: e.title }),
9272
9274
  destroyOnHidden: !0,
9273
9275
  styles: {
9274
9276
  container: { padding: 0 },
9275
9277
  header: {
9276
9278
  padding: "var(--ant-modal-content-padding)",
9277
- paddingBottom: "0"
9279
+ paddingBottom: "0",
9280
+ marginBottom: 16
9278
9281
  },
9279
9282
  body: {
9280
9283
  padding: "0",
@@ -9285,27 +9288,30 @@ var Dl = Y.div`
9285
9288
  margin: "0"
9286
9289
  } : {}
9287
9290
  },
9291
+ ...e,
9288
9292
  children: /* @__PURE__ */ H(jl.Provider, {
9289
9293
  value: { scrollToBottom: o },
9290
- children: /* @__PURE__ */ H(Ml, {
9294
+ children: /* @__PURE__ */ H("div", {
9291
9295
  ref: t,
9292
9296
  "data-overlayscrollbars-initialize": !0,
9293
9297
  className: "overlay-scroller-wrapper",
9294
- $maxHeight: e.maxContentHeight || 500,
9295
9298
  hidden: !1,
9296
9299
  style: {
9297
9300
  paddingInline: 24,
9298
- paddingBlockEnd: 0
9301
+ paddingBlockEnd: 0,
9302
+ maxHeight: e.maxContentHeight || 500,
9303
+ overflowY: "auto",
9304
+ width: "100%"
9299
9305
  },
9300
9306
  children: e.children
9301
9307
  })
9302
9308
  })
9303
9309
  });
9304
- }, Fl = Y.ul`
9310
+ }, Pl = Y.ul`
9305
9311
  list-style: none;
9306
9312
  margin: 0;
9307
9313
  padding: 0;
9308
- `, Il = Y.li`
9314
+ `, Fl = Y.li`
9309
9315
  display: flex;
9310
9316
  align-items: center;
9311
9317
  padding: 5px 12px;
@@ -9315,7 +9321,7 @@ var Dl = Y.div`
9315
9321
  &:hover {
9316
9322
  background-color: var(--ant-control-item-bg-hover);
9317
9323
  }
9318
- `, Ll = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
9324
+ `, Il = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
9319
9325
  let a = (e) => {
9320
9326
  let t = e.key;
9321
9327
  r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
@@ -9323,7 +9329,7 @@ var Dl = Y.div`
9323
9329
  return /* @__PURE__ */ H(l, {
9324
9330
  style: { paddingInline: 0 },
9325
9331
  maxHeight: e,
9326
- children: /* @__PURE__ */ H(Fl, { children: t.map((e) => /* @__PURE__ */ U(Il, {
9332
+ children: /* @__PURE__ */ H(Pl, { children: t.map((e) => /* @__PURE__ */ U(Fl, {
9327
9333
  selected: n.includes(e.key),
9328
9334
  onClick: () => a(e),
9329
9335
  children: [/* @__PURE__ */ H(K, { checked: n.includes(e.key) }), i ? i(e) : /* @__PURE__ */ H(f, {
@@ -9332,14 +9338,14 @@ var Dl = Y.div`
9332
9338
  })]
9333
9339
  }, e.key)) })
9334
9340
  });
9335
- }, Rl = Y.div`
9341
+ }, Ll = Y.div`
9336
9342
  border: 1px solid var(--ant-color-border);
9337
9343
  border-radius: var(--ant-border-radius);
9338
9344
  overflow-y: auto;
9339
9345
  max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
9340
- `, zl = Y.div`
9346
+ `, Rl = Y.div`
9341
9347
  padding: 0;
9342
- `, Bl = Y.div`
9348
+ `, zl = Y.div`
9343
9349
  padding: 8px 12px 8px;
9344
9350
  display: flex;
9345
9351
  gap: 8px;
@@ -9347,7 +9353,7 @@ var Dl = Y.div`
9347
9353
  justify-content: space-between;
9348
9354
  border-bottom: 1px solid var(--ant-color-split);
9349
9355
  background-color: var(--ant-color-fill-alter);
9350
- `, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
9356
+ `, Bl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
9351
9357
  let l = o(), [u, d] = E.useState(!1), [f, p] = E.useState(!1), [m, h] = B(""), g = R(() => n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())), [n, m]), _ = (e) => {
9352
9358
  h(e.target.value);
9353
9359
  }, v = (e) => {
@@ -9369,11 +9375,11 @@ var Dl = Y.div`
9369
9375
  };
9370
9376
  return F(() => {
9371
9377
  y(r);
9372
- }, [r, n]), /* @__PURE__ */ H(Rl, {
9378
+ }, [r, n]), /* @__PURE__ */ H(Ll, {
9373
9379
  $maxHeight: e,
9374
9380
  $leftWidth: t,
9375
9381
  style: c?.container,
9376
- children: /* @__PURE__ */ U(zl, { children: [/* @__PURE__ */ U(Bl, {
9382
+ children: /* @__PURE__ */ U(Rl, { children: [/* @__PURE__ */ U(zl, {
9377
9383
  style: c?.header,
9378
9384
  children: [/* @__PURE__ */ U("span", {
9379
9385
  style: {
@@ -9401,7 +9407,7 @@ var Dl = Y.div`
9401
9407
  },
9402
9408
  onChange: _
9403
9409
  })]
9404
- }), g.length > 0 ? /* @__PURE__ */ H(Ll, {
9410
+ }), g.length > 0 ? /* @__PURE__ */ H(Il, {
9405
9411
  maxHeight: e - 50,
9406
9412
  dataList: g,
9407
9413
  value: r,
@@ -9413,7 +9419,7 @@ var Dl = Y.div`
9413
9419
  description: a
9414
9420
  })] })
9415
9421
  });
9416
- }, Hl = [
9422
+ }, Vl = [
9417
9423
  {
9418
9424
  scope: "playground",
9419
9425
  command: "shortcuts.playground.newmessage",
@@ -9459,8 +9465,8 @@ var Dl = Y.div`
9459
9465
  command: "shortcuts.users.new",
9460
9466
  keybinding: Ns.CREATE.iconKeybinding
9461
9467
  }
9462
- ], Ul = ({ intl: e }) => {
9463
- let [t, n] = E.useState(Hl), r = [
9468
+ ], Hl = ({ intl: e }) => {
9469
+ let [t, n] = E.useState(Vl), r = [
9464
9470
  {
9465
9471
  title: "Scope",
9466
9472
  dataIndex: "scope",
@@ -9482,7 +9488,7 @@ var Dl = Y.div`
9482
9488
  }
9483
9489
  ], i = Z.default.debounce((e) => {
9484
9490
  let t = e.target.value;
9485
- n(Z.default.filter(Hl, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
9491
+ n(Z.default.filter(Vl, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
9486
9492
  }, 300);
9487
9493
  return /* @__PURE__ */ U("div", {
9488
9494
  className: "short-cuts",
@@ -9516,82 +9522,82 @@ var Dl = Y.div`
9516
9522
  };
9517
9523
  //#endregion
9518
9524
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
9519
- function Wl(e) {
9525
+ function Ul(e) {
9520
9526
  var t = typeof e;
9521
9527
  return e != null && (t == "object" || t == "function");
9522
9528
  }
9523
9529
  //#endregion
9524
9530
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
9525
- var Gl = typeof global == "object" && global && global.Object === Object && global, Kl = typeof self == "object" && self && self.Object === Object && self, ql = Gl || Kl || Function("return this")(), Jl = function() {
9526
- return ql.Date.now();
9527
- }, Yl = /\s/;
9528
- function Xl(e) {
9529
- for (var t = e.length; t-- && Yl.test(e.charAt(t)););
9531
+ var Wl = typeof global == "object" && global && global.Object === Object && global, Gl = typeof self == "object" && self && self.Object === Object && self, Kl = Wl || Gl || Function("return this")(), ql = function() {
9532
+ return Kl.Date.now();
9533
+ }, Jl = /\s/;
9534
+ function Yl(e) {
9535
+ for (var t = e.length; t-- && Jl.test(e.charAt(t)););
9530
9536
  return t;
9531
9537
  }
9532
9538
  //#endregion
9533
9539
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
9534
- var Zl = /^\s+/;
9535
- function Ql(e) {
9536
- return e && e.slice(0, Xl(e) + 1).replace(Zl, "");
9540
+ var Xl = /^\s+/;
9541
+ function Zl(e) {
9542
+ return e && e.slice(0, Yl(e) + 1).replace(Xl, "");
9537
9543
  }
9538
9544
  //#endregion
9539
9545
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
9540
- var $l = ql.Symbol, eu = Object.prototype, tu = eu.hasOwnProperty, nu = eu.toString, ru = $l ? $l.toStringTag : void 0;
9541
- function iu(e) {
9542
- var t = tu.call(e, ru), n = e[ru];
9546
+ var Ql = Kl.Symbol, $l = Object.prototype, eu = $l.hasOwnProperty, tu = $l.toString, nu = Ql ? Ql.toStringTag : void 0;
9547
+ function ru(e) {
9548
+ var t = eu.call(e, nu), n = e[nu];
9543
9549
  try {
9544
- e[ru] = void 0;
9550
+ e[nu] = void 0;
9545
9551
  var r = !0;
9546
9552
  } catch {}
9547
- var i = nu.call(e);
9548
- return r && (t ? e[ru] = n : delete e[ru]), i;
9553
+ var i = tu.call(e);
9554
+ return r && (t ? e[nu] = n : delete e[nu]), i;
9549
9555
  }
9550
9556
  //#endregion
9551
9557
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
9552
- var au = Object.prototype.toString;
9553
- function ou(e) {
9554
- return au.call(e);
9558
+ var iu = Object.prototype.toString;
9559
+ function au(e) {
9560
+ return iu.call(e);
9555
9561
  }
9556
9562
  //#endregion
9557
9563
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
9558
- var su = "[object Null]", cu = "[object Undefined]", lu = $l ? $l.toStringTag : void 0;
9559
- function uu(e) {
9560
- return e == null ? e === void 0 ? cu : su : lu && lu in Object(e) ? iu(e) : ou(e);
9564
+ var ou = "[object Null]", su = "[object Undefined]", cu = Ql ? Ql.toStringTag : void 0;
9565
+ function lu(e) {
9566
+ return e == null ? e === void 0 ? su : ou : cu && cu in Object(e) ? ru(e) : au(e);
9561
9567
  }
9562
9568
  //#endregion
9563
9569
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
9564
- function du(e) {
9570
+ function uu(e) {
9565
9571
  return typeof e == "object" && !!e;
9566
9572
  }
9567
9573
  //#endregion
9568
9574
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
9569
- var fu = "[object Symbol]";
9570
- function pu(e) {
9571
- return typeof e == "symbol" || du(e) && uu(e) == fu;
9575
+ var du = "[object Symbol]";
9576
+ function fu(e) {
9577
+ return typeof e == "symbol" || uu(e) && lu(e) == du;
9572
9578
  }
9573
9579
  //#endregion
9574
9580
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
9575
- var mu = NaN, hu = /^[-+]0x[0-9a-f]+$/i, gu = /^0b[01]+$/i, _u = /^0o[0-7]+$/i, vu = parseInt;
9576
- function yu(e) {
9581
+ var pu = NaN, mu = /^[-+]0x[0-9a-f]+$/i, hu = /^0b[01]+$/i, gu = /^0o[0-7]+$/i, _u = parseInt;
9582
+ function vu(e) {
9577
9583
  if (typeof e == "number") return e;
9578
- if (pu(e)) return mu;
9579
- if (Wl(e)) {
9584
+ if (fu(e)) return pu;
9585
+ if (Ul(e)) {
9580
9586
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
9581
- e = Wl(t) ? t + "" : t;
9587
+ e = Ul(t) ? t + "" : t;
9582
9588
  }
9583
9589
  if (typeof e != "string") return e === 0 ? e : +e;
9584
- e = Ql(e);
9585
- var n = gu.test(e);
9586
- return n || _u.test(e) ? vu(e.slice(2), n ? 2 : 8) : hu.test(e) ? mu : +e;
9590
+ e = Zl(e);
9591
+ var n = hu.test(e);
9592
+ return n || gu.test(e) ? _u(e.slice(2), n ? 2 : 8) : mu.test(e) ? pu : +e;
9587
9593
  }
9588
9594
  //#endregion
9589
9595
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
9590
- var bu = "Expected a function", xu = Math.max, Su = Math.min;
9591
- function Cu(e, t, n) {
9596
+ var yu = "Expected a function", bu = Math.max, xu = Math.min;
9597
+ function Su(e, t, n) {
9592
9598
  var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
9593
- if (typeof e != "function") throw TypeError(bu);
9594
- t = yu(t) || 0, Wl(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? xu(yu(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
9599
+ if (typeof e != "function") throw TypeError(yu);
9600
+ t = vu(t) || 0, Ul(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? bu(vu(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
9595
9601
  function p(t) {
9596
9602
  var n = r, a = i;
9597
9603
  return r = i = void 0, l = t, o = e.apply(a, n), o;
@@ -9601,14 +9607,14 @@ function Cu(e, t, n) {
9601
9607
  }
9602
9608
  function h(e) {
9603
9609
  var n = e - c, r = e - l, i = t - n;
9604
- return d ? Su(i, a - r) : i;
9610
+ return d ? xu(i, a - r) : i;
9605
9611
  }
9606
9612
  function g(e) {
9607
9613
  var n = e - c, r = e - l;
9608
9614
  return c === void 0 || n >= t || n < 0 || d && r >= a;
9609
9615
  }
9610
9616
  function _() {
9611
- var e = Jl();
9617
+ var e = ql();
9612
9618
  if (g(e)) return v(e);
9613
9619
  s = setTimeout(_, h(e));
9614
9620
  }
@@ -9619,10 +9625,10 @@ function Cu(e, t, n) {
9619
9625
  s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
9620
9626
  }
9621
9627
  function b() {
9622
- return s === void 0 ? o : v(Jl());
9628
+ return s === void 0 ? o : v(ql());
9623
9629
  }
9624
9630
  function x() {
9625
- var e = Jl(), n = g(e);
9631
+ var e = ql(), n = g(e);
9626
9632
  if (r = arguments, i = this, c = e, n) {
9627
9633
  if (s === void 0) return m(c);
9628
9634
  if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
@@ -9633,11 +9639,11 @@ function Cu(e, t, n) {
9633
9639
  }
9634
9640
  //#endregion
9635
9641
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
9636
- var wu = "Expected a function";
9637
- function Tu(e, t, n) {
9642
+ var Cu = "Expected a function";
9643
+ function wu(e, t, n) {
9638
9644
  var r = !0, i = !0;
9639
- if (typeof e != "function") throw TypeError(wu);
9640
- return Wl(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Cu(e, t, {
9645
+ if (typeof e != "function") throw TypeError(Cu);
9646
+ return Ul(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Su(e, t, {
9641
9647
  leading: r,
9642
9648
  maxWait: t,
9643
9649
  trailing: i
@@ -9645,19 +9651,19 @@ function Tu(e, t, n) {
9645
9651
  }
9646
9652
  //#endregion
9647
9653
  //#region ../../node_modules/.pnpm/simplebar-core@1.3.2/node_modules/simplebar-core/dist/index.mjs
9648
- var Eu = function() {
9649
- return Eu = Object.assign || function(e) {
9654
+ var Tu = function() {
9655
+ return Tu = Object.assign || function(e) {
9650
9656
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
9651
9657
  return e;
9652
- }, Eu.apply(this, arguments);
9658
+ }, Tu.apply(this, arguments);
9653
9659
  };
9654
- function Du(e) {
9660
+ function Eu(e) {
9655
9661
  return !e || !e.ownerDocument || !e.ownerDocument.defaultView ? window : e.ownerDocument.defaultView;
9656
9662
  }
9657
- function Ou(e) {
9663
+ function Du(e) {
9658
9664
  return !e || !e.ownerDocument ? document : e.ownerDocument;
9659
9665
  }
9660
- var ku = function(e) {
9666
+ var Ou = function(e) {
9661
9667
  return Array.prototype.reduce.call(e, function(e, t) {
9662
9668
  var n = t.name.match(/data-simplebar-(.+)/);
9663
9669
  if (n) {
@@ -9680,58 +9686,58 @@ var ku = function(e) {
9680
9686
  return e;
9681
9687
  }, {});
9682
9688
  };
9683
- function Au(e, t) {
9689
+ function ku(e, t) {
9684
9690
  var n;
9685
9691
  e && (n = e.classList).add.apply(n, t.split(" "));
9686
9692
  }
9687
- function ju(e, t) {
9693
+ function Au(e, t) {
9688
9694
  e && t.split(" ").forEach(function(t) {
9689
9695
  e.classList.remove(t);
9690
9696
  });
9691
9697
  }
9692
- function Mu(e) {
9698
+ function ju(e) {
9693
9699
  return `.${e.split(" ").join(".")}`;
9694
9700
  }
9695
- var Nu = !!(typeof window < "u" && window.document && window.document.createElement), Pu = /* @__PURE__ */ Object.freeze({
9701
+ var Mu = !!(typeof window < "u" && window.document && window.document.createElement), Nu = /* @__PURE__ */ Object.freeze({
9696
9702
  __proto__: null,
9697
- addClasses: Au,
9698
- canUseDOM: Nu,
9699
- classNamesToQuery: Mu,
9700
- getElementDocument: Ou,
9701
- getElementWindow: Du,
9702
- getOptions: ku,
9703
- removeClasses: ju
9704
- }), Fu = null, Iu = null;
9705
- Nu && window.addEventListener("resize", function() {
9706
- Iu !== window.devicePixelRatio && (Iu = window.devicePixelRatio, Fu = null);
9703
+ addClasses: ku,
9704
+ canUseDOM: Mu,
9705
+ classNamesToQuery: ju,
9706
+ getElementDocument: Du,
9707
+ getElementWindow: Eu,
9708
+ getOptions: Ou,
9709
+ removeClasses: Au
9710
+ }), Pu = null, Fu = null;
9711
+ Mu && window.addEventListener("resize", function() {
9712
+ Fu !== window.devicePixelRatio && (Fu = window.devicePixelRatio, Pu = null);
9707
9713
  });
9708
- function Lu() {
9709
- if (Fu === null) {
9710
- if (typeof document > "u") return Fu = 0, Fu;
9714
+ function Iu() {
9715
+ if (Pu === null) {
9716
+ if (typeof document > "u") return Pu = 0, Pu;
9711
9717
  var e = document.body, t = document.createElement("div");
9712
9718
  t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
9713
9719
  var n = t.getBoundingClientRect().right;
9714
- e.removeChild(t), Fu = n;
9720
+ e.removeChild(t), Pu = n;
9715
9721
  }
9716
- return Fu;
9722
+ return Pu;
9717
9723
  }
9718
- var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9724
+ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
9719
9725
  function e(t, n) {
9720
9726
  n === void 0 && (n = {});
9721
9727
  var r = this;
9722
9728
  if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.isDragging = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {}, this.onWindowResize = function() {}, this.onStopScrolling = function() {}, this.onMouseEntered = function() {}, this.onScroll = function() {
9723
- var e = Ru(r.el);
9724
- r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0, Vu(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
9729
+ var e = Lu(r.el);
9730
+ r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0, Bu(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
9725
9731
  }, this.scrollX = function() {
9726
9732
  r.axis.x.isOverflowing && r.positionScrollbar("x"), r.scrollXTicking = !1;
9727
9733
  }, this.scrollY = function() {
9728
9734
  r.axis.y.isOverflowing && r.positionScrollbar("y"), r.scrollYTicking = !1;
9729
9735
  }, this._onStopScrolling = function() {
9730
- Hu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
9736
+ Vu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
9731
9737
  }, this.onMouseEnter = function() {
9732
- r.isMouseEntering ||= (Vu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
9738
+ r.isMouseEntering ||= (Bu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
9733
9739
  }, this._onMouseEntered = function() {
9734
- Hu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
9740
+ Vu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
9735
9741
  }, this._onMouseMove = function(e) {
9736
9742
  r.mouseX = e.clientX, r.mouseY = e.clientY, (r.axis.x.isOverflowing || r.axis.x.forceVisible) && r.onMouseMoveForAxis("x"), (r.axis.y.isOverflowing || r.axis.y.forceVisible) && r.onMouseMoveForAxis("y");
9737
9743
  }, this.onMouseLeave = function() {
@@ -9754,13 +9760,13 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9754
9760
  }
9755
9761
  }, this.onEndDrag = function(e) {
9756
9762
  r.isDragging = !1;
9757
- var t = zu(r.el), n = Ru(r.el);
9758
- e.preventDefault(), e.stopPropagation(), Hu(r.el, r.classNames.dragging), r.onStopScrolling(), t.removeEventListener("mousemove", r.drag, !0), t.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = n.setTimeout(function() {
9763
+ var t = Ru(r.el), n = Lu(r.el);
9764
+ e.preventDefault(), e.stopPropagation(), Vu(r.el, r.classNames.dragging), r.onStopScrolling(), t.removeEventListener("mousemove", r.drag, !0), t.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = n.setTimeout(function() {
9759
9765
  t.removeEventListener("click", r.preventClick, !0), t.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
9760
9766
  });
9761
9767
  }, this.preventClick = function(e) {
9762
9768
  e.preventDefault(), e.stopPropagation();
9763
- }, this.el = t, this.options = Eu(Eu({}, e.defaultOptions), n), this.classNames = Eu(Eu({}, e.defaultOptions.classNames), n.classNames), this.axis = {
9769
+ }, this.el = t, this.options = Tu(Tu({}, e.defaultOptions), n), this.classNames = Tu(Tu({}, e.defaultOptions.classNames), n.classNames), this.axis = {
9764
9770
  x: {
9765
9771
  scrollOffsetAttr: "scrollLeft",
9766
9772
  sizeAttr: "width",
@@ -9808,7 +9814,7 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9808
9814
  }
9809
9815
  }
9810
9816
  }, typeof this.el != "object" || !this.el.nodeName) throw Error(`Argument passed to SimpleBar must be an HTML element instead of ${this.el}`);
9811
- this.onMouseMove = Tu(this._onMouseMove, 64), this.onWindowResize = Cu(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = Cu(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = Cu(this._onMouseEntered, this.stopScrollDelay), this.init();
9817
+ this.onMouseMove = wu(this._onMouseMove, 64), this.onWindowResize = Su(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = Su(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = Su(this._onMouseEntered, this.stopScrollDelay), this.init();
9812
9818
  }
9813
9819
  return e.getRtlHelpers = function() {
9814
9820
  if (e.rtlHelpers) return e.rtlHelpers;
@@ -9826,22 +9832,22 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9826
9832
  }, e.rtlHelpers;
9827
9833
  }, e.prototype.getScrollbarWidth = function() {
9828
9834
  try {
9829
- return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : Lu();
9835
+ return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : Iu();
9830
9836
  } catch {
9831
- return Lu();
9837
+ return Iu();
9832
9838
  }
9833
9839
  }, e.getOffset = function(e) {
9834
- var t = e.getBoundingClientRect(), n = zu(e), r = Ru(e);
9840
+ var t = e.getBoundingClientRect(), n = Ru(e), r = Lu(e);
9835
9841
  return {
9836
9842
  top: t.top + (r.pageYOffset || n.documentElement.scrollTop),
9837
9843
  left: t.left + (r.pageXOffset || n.documentElement.scrollLeft)
9838
9844
  };
9839
9845
  }, e.prototype.init = function() {
9840
- Nu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
9846
+ Mu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
9841
9847
  }, e.prototype.initDOM = function() {
9842
- this.wrapperEl = this.el.querySelector(Uu(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Uu(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Uu(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Uu(this.classNames.offset)), this.maskEl = this.el.querySelector(Uu(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Uu(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Uu(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Uu(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Uu(this.classNames.track)}${Uu(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Uu(this.classNames.track)}${Uu(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Uu(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Uu(this.classNames.scrollbar)) || null, this.options.autoHide || (Vu(this.axis.x.scrollbar.el, this.classNames.visible), Vu(this.axis.y.scrollbar.el, this.classNames.visible));
9848
+ this.wrapperEl = this.el.querySelector(Hu(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Hu(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Hu(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Hu(this.classNames.offset)), this.maskEl = this.el.querySelector(Hu(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Hu(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Hu(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Hu(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Hu(this.classNames.track)}${Hu(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Hu(this.classNames.track)}${Hu(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Hu(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Hu(this.classNames.scrollbar)) || null, this.options.autoHide || (Bu(this.axis.x.scrollbar.el, this.classNames.visible), Bu(this.axis.y.scrollbar.el, this.classNames.visible));
9843
9849
  }, e.prototype.initListeners = function() {
9844
- var e = this, t, n = Ru(this.el);
9850
+ var e = this, t, n = Lu(this.el);
9845
9851
  if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (t = this.contentWrapperEl) == null || t.addEventListener("scroll", this.onScroll), n.addEventListener("resize", this.onWindowResize), this.contentEl) {
9846
9852
  if (window.ResizeObserver) {
9847
9853
  var r = !1, i = n.ResizeObserver || ResizeObserver;
@@ -9865,7 +9871,7 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9865
9871
  }
9866
9872
  }, e.prototype.recalculate = function() {
9867
9873
  if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
9868
- var e = Ru(this.el);
9874
+ var e = Lu(this.el);
9869
9875
  this.elStyles = e.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
9870
9876
  var t = this.contentEl.offsetWidth, n = this.heightAutoObserverEl.offsetHeight <= 1, r = this.heightAutoObserverEl.offsetWidth <= 1 || t > 0, i = this.contentWrapperEl.offsetWidth, a = this.elStyles.overflowX, o = this.elStyles.overflowY;
9871
9877
  this.contentEl.style.padding = `${this.elStyles.paddingTop} ${this.elStyles.paddingRight} ${this.elStyles.paddingBottom} ${this.elStyles.paddingLeft}`, this.wrapperEl.style.margin = `-${this.elStyles.paddingTop} -${this.elStyles.paddingRight} -${this.elStyles.paddingBottom} -${this.elStyles.paddingLeft}`;
@@ -9894,28 +9900,28 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9894
9900
  var t = this.axis[e].track.el, n = this.axis[e].scrollbar.el;
9895
9901
  !t || !n || !this.contentWrapperEl || (this.axis[e].isOverflowing || this.axis[e].forceVisible ? (t.style.visibility = "visible", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "scroll", this.el.classList.add(`${this.classNames.scrollable}-${e}`)) : (t.style.visibility = "hidden", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "hidden", this.el.classList.remove(`${this.classNames.scrollable}-${e}`)), this.axis[e].isOverflowing ? n.style.display = "block" : n.style.display = "none");
9896
9902
  }, e.prototype.showScrollbar = function(e) {
9897
- e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (Vu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !0);
9903
+ e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (Bu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !0);
9898
9904
  }, e.prototype.hideScrollbar = function(e) {
9899
- e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (Hu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !1);
9905
+ e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (Vu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !1);
9900
9906
  }, e.prototype.hideNativeScrollbar = function() {
9901
9907
  this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? `-${this.scrollbarWidth}px` : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? `-${this.scrollbarWidth}px` : "0px");
9902
9908
  }, e.prototype.onMouseMoveForAxis = function(e) {
9903
9909
  e === void 0 && (e = "y");
9904
9910
  var t = this.axis[e];
9905
- !t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e), Vu(t.track.el, this.classNames.hover), this.isWithinBounds(t.scrollbar.rect) ? Vu(t.scrollbar.el, this.classNames.hover) : Hu(t.scrollbar.el, this.classNames.hover)) : (Hu(t.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e)));
9911
+ !t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e), Bu(t.track.el, this.classNames.hover), this.isWithinBounds(t.scrollbar.rect) ? Bu(t.scrollbar.el, this.classNames.hover) : Vu(t.scrollbar.el, this.classNames.hover)) : (Vu(t.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e)));
9906
9912
  }, e.prototype.onMouseLeaveForAxis = function(e) {
9907
- e === void 0 && (e = "y"), Hu(this.axis[e].track.el, this.classNames.hover), Hu(this.axis[e].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e);
9913
+ e === void 0 && (e = "y"), Vu(this.axis[e].track.el, this.classNames.hover), Vu(this.axis[e].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e);
9908
9914
  }, e.prototype.onDragStart = function(e, t) {
9909
9915
  t === void 0 && (t = "y"), this.isDragging = !0;
9910
- var n = zu(this.el), r = Ru(this.el), i = this.axis[t].scrollbar, a = t === "y" ? e.pageY : e.pageX;
9911
- this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t, Vu(this.el, this.classNames.dragging), n.addEventListener("mousemove", this.drag, !0), n.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (n.addEventListener("click", this.preventClick, !0), n.addEventListener("dblclick", this.preventClick, !0)) : (r.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
9916
+ var n = Ru(this.el), r = Lu(this.el), i = this.axis[t].scrollbar, a = t === "y" ? e.pageY : e.pageX;
9917
+ this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t, Bu(this.el, this.classNames.dragging), n.addEventListener("mousemove", this.drag, !0), n.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (n.addEventListener("click", this.preventClick, !0), n.addEventListener("dblclick", this.preventClick, !0)) : (r.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
9912
9918
  }, e.prototype.onTrackClick = function(e, t) {
9913
9919
  var n = this;
9914
9920
  t === void 0 && (t = "y");
9915
9921
  var r = this.axis[t];
9916
9922
  if (!(!this.options.clickOnTrack || !r.scrollbar.el || !this.contentWrapperEl)) {
9917
9923
  e.preventDefault();
9918
- var i = Ru(this.el);
9924
+ var i = Lu(this.el);
9919
9925
  this.axis[t].scrollbar.rect = r.scrollbar.el.getBoundingClientRect();
9920
9926
  var a = this.axis[t].scrollbar.rect?.[this.axis[t].offsetAttr] ?? 0, o = parseInt(this.elStyles?.[this.axis[t].sizeAttr] ?? "0px", 10), s = this.contentWrapperEl[this.axis[t].scrollOffsetAttr], c = (t === "y" ? this.mouseY - a : this.mouseX - a) < 0 ? -1 : 1, l = c === -1 ? s - o : s + o, u = 40, d = function() {
9921
9927
  n.contentWrapperEl && (c === -1 ? s > l && (s -= u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)) : s < l && (s += u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)));
@@ -9927,7 +9933,7 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9927
9933
  }, e.prototype.getScrollElement = function() {
9928
9934
  return this.contentWrapperEl;
9929
9935
  }, e.prototype.removeListeners = function() {
9930
- var e = Ru(this.el);
9936
+ var e = Lu(this.el);
9931
9937
  this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("pointerdown", this.onPointerEvent, !0), this.el.removeEventListener("mousemove", this.onMouseMove), this.el.removeEventListener("mouseleave", this.onMouseLeave), this.contentWrapperEl && this.contentWrapperEl.removeEventListener("scroll", this.onScroll), e.removeEventListener("resize", this.onWindowResize), this.mutationObserver && this.mutationObserver.disconnect(), this.resizeObserver && this.resizeObserver.disconnect(), this.onMouseMove.cancel(), this.onWindowResize.cancel(), this.onStopScrolling.cancel(), this.onMouseEntered.cancel();
9932
9938
  }, e.prototype.unMount = function() {
9933
9939
  this.removeListeners();
@@ -9968,52 +9974,52 @@ var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
9968
9974
  scrollableNode: null,
9969
9975
  contentNode: null,
9970
9976
  autoHide: !0
9971
- }, e.getOptions = Bu, e.helpers = Pu, e;
9972
- }(), Gu = function() {
9973
- return Gu = Object.assign || function(e) {
9977
+ }, e.getOptions = zu, e.helpers = Nu, e;
9978
+ }(), Wu = function() {
9979
+ return Wu = Object.assign || function(e) {
9974
9980
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
9975
9981
  return e;
9976
- }, Gu.apply(this, arguments);
9982
+ }, Wu.apply(this, arguments);
9977
9983
  };
9978
- function Ku(e, t) {
9984
+ function Gu(e, t) {
9979
9985
  var n = {};
9980
9986
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
9981
9987
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
9982
9988
  return n;
9983
9989
  }
9984
- var qu = T.forwardRef(function(e, t) {
9985
- var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a = Ku(e, ["children", "scrollableNodeProps"]), o = T.useRef(), s = T.useRef(), c = T.useRef(), l = {}, u = {};
9990
+ var Ku = T.forwardRef(function(e, t) {
9991
+ var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a = Gu(e, ["children", "scrollableNodeProps"]), o = T.useRef(), s = T.useRef(), c = T.useRef(), l = {}, u = {};
9986
9992
  Object.keys(a).forEach(function(e) {
9987
- Object.prototype.hasOwnProperty.call(Wu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
9993
+ Object.prototype.hasOwnProperty.call(Uu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
9988
9994
  });
9989
- var d = Gu(Gu({}, Wu.defaultOptions.classNames), l.classNames), f = Gu(Gu({}, i), {
9995
+ var d = Wu(Wu({}, Uu.defaultOptions.classNames), l.classNames), f = Wu(Wu({}, i), {
9990
9996
  className: `${d.contentWrapper}${i.className ? ` ${i.className}` : ""}`,
9991
- tabIndex: l.tabIndex || Wu.defaultOptions.tabIndex,
9997
+ tabIndex: l.tabIndex || Uu.defaultOptions.tabIndex,
9992
9998
  role: "region",
9993
- "aria-label": l.ariaLabel || Wu.defaultOptions.ariaLabel
9999
+ "aria-label": l.ariaLabel || Uu.defaultOptions.ariaLabel
9994
10000
  });
9995
10001
  return T.useEffect(function() {
9996
10002
  var e;
9997
- return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new Wu(o.current, Gu(Gu(Gu({}, l), s.current && { scrollableNode: s.current }), c.current && { contentNode: c.current })), typeof t == "function" ? t(e) : t && (t.current = e)), function() {
10003
+ return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new Uu(o.current, Wu(Wu(Wu({}, l), s.current && { scrollableNode: s.current }), c.current && { contentNode: c.current })), typeof t == "function" ? t(e) : t && (t.current = e)), function() {
9998
10004
  e?.unMount(), e = null, typeof t == "function" && t(null);
9999
10005
  };
10000
- }, []), T.createElement("div", Gu({
10006
+ }, []), T.createElement("div", Wu({
10001
10007
  "data-simplebar": "init",
10002
10008
  ref: o
10003
10009
  }, u), T.createElement("div", { className: d.wrapper }, T.createElement("div", { className: d.heightAutoObserverWrapperEl }, T.createElement("div", { className: d.heightAutoObserverEl })), T.createElement("div", { className: d.mask }, T.createElement("div", { className: d.offset }, typeof n == "function" ? n({
10004
10010
  scrollableNodeRef: s,
10005
- scrollableNodeProps: Gu(Gu({}, f), { ref: s }),
10011
+ scrollableNodeProps: Wu(Wu({}, f), { ref: s }),
10006
10012
  contentNodeRef: c,
10007
10013
  contentNodeProps: {
10008
10014
  className: d.contentEl,
10009
10015
  ref: c
10010
10016
  }
10011
- }) : T.createElement("div", Gu({}, f), T.createElement("div", { className: d.contentEl }, n)))), T.createElement("div", { className: d.placeholder })), T.createElement("div", { className: `${d.track} ${d.horizontal}` }, T.createElement("div", { className: d.scrollbar })), T.createElement("div", { className: `${d.track} ${d.vertical}` }, T.createElement("div", { className: d.scrollbar })));
10017
+ }) : T.createElement("div", Wu({}, f), T.createElement("div", { className: d.contentEl }, n)))), T.createElement("div", { className: d.placeholder })), T.createElement("div", { className: `${d.track} ${d.horizontal}` }, T.createElement("div", { className: d.scrollbar })), T.createElement("div", { className: `${d.track} ${d.vertical}` }, T.createElement("div", { className: d.scrollbar })));
10012
10018
  });
10013
- qu.displayName = "SimpleBar";
10019
+ Ku.displayName = "SimpleBar";
10014
10020
  //#endregion
10015
10021
  //#region src/lib/components/simple-overlay/index.tsx
10016
- var Ju = Y.div`
10022
+ var qu = Y.div`
10017
10023
  .simplebar-scrollbar::before {
10018
10024
  width: var(--scrollbar-size);
10019
10025
  background: var(--scrollbar-handle-bg);
@@ -10024,7 +10030,7 @@ var Ju = Y.div`
10024
10030
  background: var(--scrollbar-handle-light-bg);
10025
10031
  }
10026
10032
  }
10027
- `, Yu = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: i }) => {
10033
+ `, Ju = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: i }) => {
10028
10034
  let { config: o } = a(), { isDarkTheme: s } = o, c = E.useRef(null);
10029
10035
  return F(() => {
10030
10036
  let e = (e) => {
@@ -10038,9 +10044,9 @@ var Ju = Y.div`
10038
10044
  e,
10039
10045
  r,
10040
10046
  i
10041
- ]), /* @__PURE__ */ H(Ju, {
10047
+ ]), /* @__PURE__ */ H(qu, {
10042
10048
  className: s ? "dark" : "light",
10043
- children: /* @__PURE__ */ H(qu, {
10049
+ children: /* @__PURE__ */ H(Ku, {
10044
10050
  ref: c,
10045
10051
  style: {
10046
10052
  height: e,
@@ -10049,13 +10055,13 @@ var Ju = Y.div`
10049
10055
  children: t
10050
10056
  })
10051
10057
  });
10052
- }, Xu = E.memo(({ columns: e }) => {
10058
+ }, Yu = E.memo(({ columns: e }) => {
10053
10059
  let t = o();
10054
10060
  return /* @__PURE__ */ H("tr", { children: e.map((e, n) => /* @__PURE__ */ H("th", { children: /* @__PURE__ */ H("span", {
10055
10061
  className: "cell-span cell-header",
10056
10062
  children: e.locale ? t.formatMessage({ id: e.title }) : e.title
10057
10063
  }) }, n)) });
10058
- }), Zu = (e) => {
10064
+ }), Xu = (e) => {
10059
10065
  let { row: t, column: n, rowIndex: r, colIndex: i, dataList: a } = e;
10060
10066
  return R(() => n.render ? n.render({
10061
10067
  dataIndex: n.key,
@@ -10097,24 +10103,24 @@ var Ju = Y.div`
10097
10103
  }) : t[n.key]
10098
10104
  })
10099
10105
  }, i);
10100
- }, Qu = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Zu, {
10106
+ }, Zu = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Xu, {
10101
10107
  rowIndex: n,
10102
10108
  colIndex: i,
10103
10109
  dataList: r,
10104
10110
  row: e,
10105
10111
  column: t
10106
- }, i)) }), $u = (e) => {
10112
+ }, i)) }), Qu = (e) => {
10107
10113
  let { columns: t, dataSource: n, rowKey: r, theme: i, bordered: a = !0 } = e;
10108
10114
  return /* @__PURE__ */ H("div", { children: /* @__PURE__ */ U("table", {
10109
10115
  className: (0, X.default)("simple-table", i, { "simple-table-bordered": a }),
10110
- children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(Xu, { columns: t }) }), /* @__PURE__ */ H("tbody", { children: n.map((e, i) => /* @__PURE__ */ H(Qu, {
10116
+ children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(Yu, { columns: t }) }), /* @__PURE__ */ H("tbody", { children: n.map((e, i) => /* @__PURE__ */ H(Zu, {
10111
10117
  row: e,
10112
10118
  rowIndex: i,
10113
10119
  columns: t,
10114
10120
  dataList: n
10115
10121
  }, e[r])) })]
10116
10122
  }) });
10117
- }, ed = (e) => {
10123
+ }, $u = (e) => {
10118
10124
  let { data: t, fieldList: n, style: r } = e, i = o();
10119
10125
  return /* @__PURE__ */ H("span", {
10120
10126
  className: "flex",
@@ -10138,7 +10144,7 @@ var Ju = Y.div`
10138
10144
  }) : null]
10139
10145
  }, e.key || r))
10140
10146
  });
10141
- }, td = A((e, t) => {
10147
+ }, ed = A((e, t) => {
10142
10148
  let { autoplay: n = !1 } = e, r = E.useRef(null), i = z(null), a = z(null), o = z(null), s = N(() => {
10143
10149
  i.current = new (window.AudioContext || window.webkitAudioContext)(), a.current = i.current.createAnalyser(), a.current.fftSize = 512, o.current = new Uint8Array(a.current.frequencyBinCount);
10144
10150
  }, []), c = N(() => {
@@ -10204,7 +10210,7 @@ var Ju = Y.div`
10204
10210
  },
10205
10211
  preload: "metadata"
10206
10212
  });
10207
- }), nd = A((e, t) => {
10213
+ }), td = A((e, t) => {
10208
10214
  let { isStream: n } = e;
10209
10215
  console.log("Rendering SpeechItem with props:", e.isStream, e.analyserData);
10210
10216
  let r = o(), [i, a] = B(e.autoplay || e.isPlaying), [s, c] = B(0), [l, u] = B({
@@ -10322,7 +10328,7 @@ var Ju = Y.div`
10322
10328
  width: "100%"
10323
10329
  },
10324
10330
  ref: h,
10325
- children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(td, {
10331
+ children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(ed, {
10326
10332
  ...e,
10327
10333
  url: e.audioUrl,
10328
10334
  onReady: k,
@@ -10342,7 +10348,7 @@ var Ju = Y.div`
10342
10348
  })] })
10343
10349
  })
10344
10350
  }), M()] });
10345
- }), rd = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(nd, {
10351
+ }), nd = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(td, {
10346
10352
  ...t,
10347
10353
  isStream: e.isStream,
10348
10354
  isPlaying: e.isPlaying,
@@ -10350,12 +10356,12 @@ var Ju = Y.div`
10350
10356
  onPause: e.onPause,
10351
10357
  ref: e.playerRef,
10352
10358
  analyserData: e.analyserData
10353
- }, t.uid)) }), id = Y.span`
10359
+ }, t.uid)) }), rd = Y.span`
10354
10360
  white-space: nowrap;
10355
10361
  overflow: hidden;
10356
10362
  text-overflow: ellipsis;
10357
- `, ad = /<a (.*?)>(.*?)<\/a>/g, od = ({ style: e, statusValue: t, download: n, extra: r, actions: i = [], maxTooltipWidth: a = 250, suffix: o }) => {
10358
- let { text: s, status: l } = t, d = R(() => Hi[l], [l]), f = R(() => t.message ? ad.test(t.message || "") : !1, [t.message]), p = R(() => t.message ? t.message?.match(ad) ? t.message?.replace(ad, "<a $1 target=\"_blank\">$2</a>") : t.message : "", [t.message]), m = () => {
10363
+ `, id = /<a (.*?)>(.*?)<\/a>/g, ad = ({ style: e, statusValue: t, download: n, extra: r, actions: i = [], maxTooltipWidth: a = 250, suffix: o }) => {
10364
+ let { text: s, status: l } = t, d = R(() => Hi[l], [l]), f = R(() => t.message ? id.test(t.message || "") : !1, [t.message]), p = R(() => t.message ? t.message?.match(id) ? t.message?.replace(id, "<a $1 target=\"_blank\">$2</a>") : t.message : "", [t.message]), m = () => {
10359
10365
  let e = n?.percent || 0;
10360
10366
  return n && e > 0 && e <= 100 ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("span", {
10361
10367
  className: "progress",
@@ -10363,7 +10369,7 @@ var Ju = Y.div`
10363
10369
  }), /* @__PURE__ */ H("span", {
10364
10370
  className: "download",
10365
10371
  style: { width: `${Z.default.round(e, 0)}%` }
10366
- })] }) : /* @__PURE__ */ H(id, { children: s });
10372
+ })] }) : /* @__PURE__ */ H(rd, { children: s });
10367
10373
  }, h = /* @__PURE__ */ U("div", {
10368
10374
  className: "status-content-wrapper",
10369
10375
  children: [/* @__PURE__ */ U("div", {
@@ -10429,7 +10435,7 @@ var Ju = Y.div`
10429
10435
  children: [m(), o && /* @__PURE__ */ H("span", { children: o })]
10430
10436
  })
10431
10437
  });
10432
- }, sd = {
10438
+ }, od = {
10433
10439
  mask: "styles-module__mask___fnLBF",
10434
10440
  maskOpen: "styles-module__maskOpen___KKROU",
10435
10441
  overlay: "styles-module__overlay___8EcfD",
@@ -10439,28 +10445,35 @@ var Ju = Y.div`
10439
10445
  subTitle: "styles-module__subTitle___vunlj",
10440
10446
  content: "styles-module__content___d1qHZ",
10441
10447
  footer: "styles-module__footer___wE8uH"
10442
- }, cd = ({ title: e, open: t, onCancel: n, onSubmit: r, children: i, subTitle: a, footer: o, width: s = 600, className: c, style: l, maskClosable: u = !1, styles: d, getContainer: f }) => {
10443
- let [p, m] = E.useState(null), [h, g] = E.useState(!1), [_, v] = E.useState(!1);
10448
+ }, sd = ({ title: e, open: t, onCancel: n, onSubmit: r, children: i, subTitle: a, footer: o, width: s = 600, className: c, style: l, maskClosable: u = !1, styles: d, getContainer: f }) => {
10449
+ let [p, m] = E.useState(null), [h, g] = E.useState(!1), [_, v] = E.useState(!1), y = N(() => {
10450
+ let e = document.querySelectorAll(".ant-layout-content");
10451
+ return e[e.length - 1] ?? null;
10452
+ }, []);
10444
10453
  E.useEffect(() => {
10445
10454
  if (t) {
10446
- m(f?.() ?? null), g(!0);
10455
+ m(f?.() ?? y()), g(!0);
10447
10456
  return;
10448
10457
  }
10449
10458
  v(!1);
10450
- }, [f, t]), E.useEffect(() => {
10459
+ }, [
10460
+ f,
10461
+ y,
10462
+ t
10463
+ ]), E.useEffect(() => {
10451
10464
  if (!h || !p) return;
10452
10465
  let e = requestAnimationFrame(() => v(!0));
10453
10466
  return () => cancelAnimationFrame(e);
10454
10467
  }, [h, p]);
10455
- let y = (e) => {
10468
+ let b = (e) => {
10456
10469
  e.target !== e.currentTarget || e.propertyName !== "transform" || !t && !_ && (g(!1), m(null));
10457
10470
  };
10458
10471
  return !h || !p ? null : Ht(/* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
10459
- className: (0, X.default)(sd.mask, { [sd.maskOpen]: _ }),
10472
+ className: (0, X.default)(od.mask, _ && od.maskOpen),
10460
10473
  style: d?.mask,
10461
10474
  onClick: u ? n : void 0
10462
10475
  }), /* @__PURE__ */ U("div", {
10463
- className: (0, X.default)(sd.overlay, { [sd.overlayOpen]: _ }, c),
10476
+ className: (0, X.default)(od.overlay, _ && od.overlayOpen, c),
10464
10477
  style: {
10465
10478
  width: s,
10466
10479
  ...l,
@@ -10468,9 +10481,9 @@ var Ju = Y.div`
10468
10481
  },
10469
10482
  role: "dialog",
10470
10483
  "aria-modal": "true",
10471
- onTransitionEnd: y,
10484
+ onTransitionEnd: b,
10472
10485
  children: [/* @__PURE__ */ U("div", {
10473
- className: sd.header,
10486
+ className: od.header,
10474
10487
  style: d?.header,
10475
10488
  children: [/* @__PURE__ */ H(G, {
10476
10489
  type: "text",
@@ -10485,11 +10498,11 @@ var Ju = Y.div`
10485
10498
  }),
10486
10499
  onClick: n
10487
10500
  }), /* @__PURE__ */ U("div", {
10488
- className: sd.title,
10501
+ className: od.title,
10489
10502
  style: d?.title,
10490
10503
  children: [e, a && /* @__PURE__ */ H(jt, {
10491
10504
  variant: "outlined",
10492
- className: sd.subTitle,
10505
+ className: od.subTitle,
10493
10506
  style: d?.subTitle,
10494
10507
  children: a
10495
10508
  })]
@@ -10503,7 +10516,7 @@ var Ju = Y.div`
10503
10516
  children: i
10504
10517
  })]
10505
10518
  })] }), p);
10506
- }, ld = (e) => {
10519
+ }, cd = (e) => {
10507
10520
  let { title: t, style: n, align: r, firstCell: i, lastCell: a, sortOrder: s, sortDirections: c = [
10508
10521
  "ascend",
10509
10522
  "descend",
@@ -10558,7 +10571,7 @@ var Ju = Y.div`
10558
10571
  })
10559
10572
  })
10560
10573
  });
10561
- }, ud = (e) => {
10574
+ }, ld = (e) => {
10562
10575
  let { onSort: t, sortDirections: n, sorterList: r, showSorterTooltip: i } = e;
10563
10576
  return /* @__PURE__ */ H(xt, {
10564
10577
  className: "row",
@@ -10566,7 +10579,7 @@ var Ju = Y.div`
10566
10579
  let { title: s, dataIndex: c, align: l, width: u, span: d, headerStyle: f, sortOrder: p, sorter: m, defaultSortOrder: h } = a;
10567
10580
  return /* @__PURE__ */ H(st, {
10568
10581
  span: d,
10569
- children: /* @__PURE__ */ H(ld, {
10582
+ children: /* @__PURE__ */ H(cd, {
10570
10583
  onSort: t,
10571
10584
  showSorterTooltip: i,
10572
10585
  sorter: m,
@@ -10585,7 +10598,7 @@ var Ju = Y.div`
10585
10598
  }, c || o);
10586
10599
  })
10587
10600
  });
10588
- }, dd = (e) => {
10601
+ }, ud = (e) => {
10589
10602
  let { hasColumns: t, expandable: n, enableSelection: r, onSelectAll: i, onExpandAll: a, indeterminate: s, selectAll: c, expandAll: l, disabled: u } = e;
10590
10603
  o();
10591
10604
  let d = () => {
@@ -10638,13 +10651,13 @@ var Ju = Y.div`
10638
10651
  className: "header-row-prefix-wrapper",
10639
10652
  children: /* @__PURE__ */ H(K, { disabled: u })
10640
10653
  }) : null : null;
10641
- }, fd = (e) => {
10654
+ }, dd = (e) => {
10642
10655
  let { children: t } = e;
10643
10656
  return /* @__PURE__ */ H("div", {
10644
10657
  className: "row-children",
10645
10658
  children: t
10646
10659
  });
10647
- }, pd = E.createContext({}), md = E.createContext({}), hd = Y.div`
10660
+ }, fd = E.createContext({}), pd = E.createContext({}), md = Y.div`
10648
10661
  width: 30px;
10649
10662
  margin-right: 5px;
10650
10663
  &.disable-expand {
@@ -10652,11 +10665,11 @@ var Ju = Y.div`
10652
10665
  display: none;
10653
10666
  }
10654
10667
  }
10655
- `, gd = (e) => {
10668
+ `, hd = (e) => {
10656
10669
  let { expandable: t, enableSelection: n, expanded: r, checked: i, disableExpand: a, handleRowExpand: o, handleSelectChange: s } = e, c = R(() => r, [r]);
10657
10670
  return t && n ? /* @__PURE__ */ U("div", {
10658
10671
  className: "row-prefix-wrapper",
10659
- children: [/* @__PURE__ */ H(hd, {
10672
+ children: [/* @__PURE__ */ H(md, {
10660
10673
  className: (0, X.default)({ "disable-expand": a }),
10661
10674
  children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
10662
10675
  type: "text",
@@ -10674,7 +10687,7 @@ var Ju = Y.div`
10674
10687
  })]
10675
10688
  }) : t ? /* @__PURE__ */ H("div", {
10676
10689
  className: "row-prefix-wrapper",
10677
- children: /* @__PURE__ */ H(hd, {
10690
+ children: /* @__PURE__ */ H(md, {
10678
10691
  className: (0, X.default)({ "disable-expand": a }),
10679
10692
  children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
10680
10693
  type: "text",
@@ -10695,11 +10708,11 @@ var Ju = Y.div`
10695
10708
  checked: i
10696
10709
  })
10697
10710
  }) : null;
10698
- }, _d = Y.div`
10711
+ }, gd = Y.div`
10699
10712
  max-width: 100%;
10700
10713
  display: flex;
10701
10714
  align-items: center;
10702
- `, vd = (e) => {
10715
+ `, _d = (e) => {
10703
10716
  let t = o(), { isEditing: n, editable: r, handleSubmit: i, handleUndo: a, handleEdit: s } = e;
10704
10717
  return r ? n ? /* @__PURE__ */ U("span", {
10705
10718
  className: "flex-column",
@@ -10735,7 +10748,7 @@ var Ju = Y.div`
10735
10748
  })
10736
10749
  }, "edit")
10737
10750
  }) : null;
10738
- }, yd = (e) => {
10751
+ }, vd = (e) => {
10739
10752
  let { editable: t, current: n, isEditing: r, row: i, render: a, onChange: o } = e;
10740
10753
  return r && t ? typeof t == "object" && t?.valueType === "number" ? /* @__PURE__ */ H(gt, {
10741
10754
  style: { width: "80px" },
@@ -10746,9 +10759,9 @@ var Ju = Y.div`
10746
10759
  value: n,
10747
10760
  onChange: (e) => o(e.target.value)
10748
10761
  }) : a ? a(n, i) : n;
10749
- }, bd = (e) => {
10750
- let { row: t, onCell: n } = P(pd), { dataIndex: r, render: i, editable: a } = e, [o, s] = E.useState(!1), [c, l] = E.useState(null);
10751
- return /* @__PURE__ */ U(_d, { children: [/* @__PURE__ */ H(yd, {
10762
+ }, yd = (e) => {
10763
+ let { row: t, onCell: n } = P(fd), { dataIndex: r, render: i, editable: a } = e, [o, s] = E.useState(!1), [c, l] = E.useState(null);
10764
+ return /* @__PURE__ */ U(gd, { children: [/* @__PURE__ */ H(vd, {
10752
10765
  onChange: (e) => {
10753
10766
  l(e);
10754
10767
  },
@@ -10757,7 +10770,7 @@ var Ju = Y.div`
10757
10770
  current: o ? c : t[r],
10758
10771
  row: t,
10759
10772
  render: i
10760
- }), /* @__PURE__ */ H(vd, {
10773
+ }), /* @__PURE__ */ H(_d, {
10761
10774
  editable: a,
10762
10775
  isEditing: o,
10763
10776
  handleEdit: () => {
@@ -10777,7 +10790,7 @@ var Ju = Y.div`
10777
10790
  s(!1);
10778
10791
  }
10779
10792
  })] });
10780
- }, xd = Y.div`
10793
+ }, bd = Y.div`
10781
10794
  padding: var(--ant-table-cell-padding-block)
10782
10795
  var(--ant-table-cell-padding-inline);
10783
10796
  display: flex;
@@ -10800,22 +10813,22 @@ var Ju = Y.div`
10800
10813
  &.center {
10801
10814
  justify-content: center;
10802
10815
  }
10803
- `, Sd = (e) => {
10816
+ `, xd = (e) => {
10804
10817
  let { dataIndex: t, render: n, align: r, editable: i, dataField: a } = e;
10805
- return /* @__PURE__ */ H(xd, {
10818
+ return /* @__PURE__ */ H(bd, {
10806
10819
  className: (0, X.default)("cell", {
10807
10820
  left: r === "left",
10808
10821
  center: r === "center",
10809
10822
  right: r === "right"
10810
10823
  }),
10811
- children: /* @__PURE__ */ H(bd, {
10824
+ children: /* @__PURE__ */ H(yd, {
10812
10825
  dataIndex: a || t,
10813
10826
  render: n,
10814
10827
  editable: i
10815
10828
  })
10816
10829
  });
10817
- }, Cd = (e) => {
10818
- let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(md), [_, v] = B([]), [y, b] = B(!1), x = z(null), S = z(null), C = z([]);
10830
+ }, Sd = (e) => {
10831
+ let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(pd), [_, v] = B([]), [y, b] = B(!1), x = z(null), S = z(null), C = z([]);
10819
10832
  C.current = _;
10820
10833
  let w = z(null), [T, D] = B(!0), [O, k] = B(!1);
10821
10834
  F(() => () => {
@@ -10866,7 +10879,7 @@ var Ju = Y.div`
10866
10879
  };
10867
10880
  }, []), F(() => (T && I(), () => {
10868
10881
  S.current?.current?.cancel?.();
10869
- }), [T, g.allChildren]), /* @__PURE__ */ H(pd.Provider, {
10882
+ }), [T, g.allChildren]), /* @__PURE__ */ H(fd.Provider, {
10870
10883
  value: {
10871
10884
  row: {
10872
10885
  ...t,
@@ -10878,7 +10891,7 @@ var Ju = Y.div`
10878
10891
  className: "row-box",
10879
10892
  children: [/* @__PURE__ */ U("div", {
10880
10893
  className: (0, X.default)("row-wrapper", { "row-wrapper-selected": j }),
10881
- children: [/* @__PURE__ */ H(gd, {
10894
+ children: [/* @__PURE__ */ H(hd, {
10882
10895
  expandable: r,
10883
10896
  enableSelection: i?.enableSelection,
10884
10897
  expanded: A,
@@ -10890,7 +10903,7 @@ var Ju = Y.div`
10890
10903
  className: "seal-table-row",
10891
10904
  children: c?.map(({ key: e, ...t }) => /* @__PURE__ */ H(st, {
10892
10905
  span: t.span,
10893
- children: /* @__PURE__ */ H(Sd, { ...t })
10906
+ children: /* @__PURE__ */ H(xd, { ...t })
10894
10907
  }, `${t.dataIndex}-${n}`))
10895
10908
  })]
10896
10909
  }), A && !V && /* @__PURE__ */ H("div", {
@@ -10903,9 +10916,9 @@ var Ju = Y.div`
10903
10916
  })]
10904
10917
  })
10905
10918
  });
10906
- }, wd = ({ dataSource: e, rowKey: t, rowSelection: n, expandable: r, expandedRowKeys: i, onExpand: a, childParentKey: o, pollingChildren: s, watchChildren: c, renderChildren: l, loadChildren: u, loadChildrenAPI: d, columns: f, onCell: p, empty: m }) => e.length ? /* @__PURE__ */ H("div", {
10919
+ }, Cd = ({ dataSource: e, rowKey: t, rowSelection: n, expandable: r, expandedRowKeys: i, onExpand: a, childParentKey: o, pollingChildren: s, watchChildren: c, renderChildren: l, loadChildren: u, loadChildrenAPI: d, columns: f, onCell: p, empty: m }) => e.length ? /* @__PURE__ */ H("div", {
10907
10920
  className: "seal-table-content",
10908
- children: e.map((e, m) => /* @__PURE__ */ H(Cd, {
10921
+ children: e.map((e, m) => /* @__PURE__ */ H(Sd, {
10909
10922
  record: e,
10910
10923
  rowIndex: m,
10911
10924
  columns: f,
@@ -10925,7 +10938,7 @@ var Ju = Y.div`
10925
10938
  }) : /* @__PURE__ */ H("div", {
10926
10939
  className: "empty-wrapper",
10927
10940
  children: m || /* @__PURE__ */ H(ft, { image: ft.PRESENTED_IMAGE_SIMPLE })
10928
- }), Td = (e) => {
10941
+ }), wd = (e) => {
10929
10942
  let t = e.filter((e) => e.defaultSortOrder);
10930
10943
  return t.length === 0 ? [] : t.map((e) => ({
10931
10944
  columnKey: e.key || e.dataIndex,
@@ -10933,8 +10946,8 @@ var Ju = Y.div`
10933
10946
  order: e.defaultSortOrder || null
10934
10947
  }));
10935
10948
  };
10936
- function Ed(e) {
10937
- let { onTableSort: t, columns: n } = e, r = z(Td(n || [])), [i, a] = B(Td(n || []));
10949
+ function Td(e) {
10950
+ let { onTableSort: t, columns: n } = e, r = z(wd(n || [])), [i, a] = B(wd(n || []));
10938
10951
  return {
10939
10952
  sorterListRef: r,
10940
10953
  sorterList: i,
@@ -10961,19 +10974,19 @@ function Ed(e) {
10961
10974
  }
10962
10975
  //#endregion
10963
10976
  //#region src/lib/components/table/index.tsx
10964
- var Dd = Y.div`
10977
+ var Ed = Y.div`
10965
10978
  width: 100%;
10966
10979
  --ant-table-cell-padding-inline: ${(e) => e.$token.cellPaddingInline}px;
10967
10980
  --ant-table-cell-padding-block: ${(e) => e.$token.cellPaddingBlock}px;
10968
10981
  --ant-table-header-border-radius: ${(e) => e.$token.headerBorderRadius}px;
10969
- --ant-table-header-split-color: ${(e) => e.$token.colorBorderSecondary};
10982
+ --ant-table-header-split-color: ${(e) => e.$token.headerSplitColor};
10970
10983
  --ant-table-row-selected-bg: ${(e) => e.$token.rowSelectedBg};
10971
10984
  --ant-table-row-selected-hover-bg: ${(e) => e.$token.rowSelectedHoverBg};
10972
10985
  --ant-table-row-hover-bg: ${(e) => e.$token.rowHoverBg};
10973
10986
  --ant-table-header-icon-color: ${(e) => e.$token.tableHeaderIconColor};
10974
10987
  --ant-table-header-icon-hover-color: ${(e) => e.$token.tableHeaderIconHoverColor};
10975
- `, Od = (e) => {
10976
- let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } = Ed({
10988
+ `, Dd = (e) => {
10989
+ let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } = Td({
10977
10990
  onTableSort: s,
10978
10991
  columns: t
10979
10992
  }), { token: T } = Lt.useToken(), D = R(() => t || E.Children.toArray(n).filter(E.isValidElement).map((e) => {
@@ -11025,7 +11038,7 @@ var Dd = Y.div`
11025
11038
  }, F = (e, t) => {
11026
11039
  g?.onShowSizeChange?.(e, t);
11027
11040
  };
11028
- return console.log("token.table", T), /* @__PURE__ */ U(Dd, {
11041
+ return console.log("token.table", T), /* @__PURE__ */ U(Ed, {
11029
11042
  $token: {
11030
11043
  ...T.Table,
11031
11044
  tableHeaderIconColor: T.colorTextQuaternary,
@@ -11036,7 +11049,7 @@ var Dd = Y.div`
11036
11049
  className: "seal-table-container",
11037
11050
  children: [/* @__PURE__ */ U("div", {
11038
11051
  className: "header-row-wrapper",
11039
- children: [/* @__PURE__ */ H(dd, {
11052
+ children: [/* @__PURE__ */ H(ud, {
11040
11053
  selectAll: k.selectAll,
11041
11054
  indeterminate: k.indeterminate,
11042
11055
  onSelectAll: M,
@@ -11046,7 +11059,7 @@ var Dd = Y.div`
11046
11059
  enableSelection: h?.enableSelection,
11047
11060
  disabled: !e.dataSource?.length,
11048
11061
  hasColumns: D.length > 0
11049
- }), /* @__PURE__ */ H(ud, {
11062
+ }), /* @__PURE__ */ H(ld, {
11050
11063
  onSort: C,
11051
11064
  columns: D,
11052
11065
  sortDirections: v,
@@ -11056,7 +11069,7 @@ var Dd = Y.div`
11056
11069
  }), /* @__PURE__ */ H(Dt, {
11057
11070
  spinning: u,
11058
11071
  size: "middle",
11059
- children: /* @__PURE__ */ H(wd, {
11072
+ children: /* @__PURE__ */ H(Cd, {
11060
11073
  empty: _,
11061
11074
  dataSource: e.dataSource,
11062
11075
  columns: D,
@@ -11084,16 +11097,16 @@ var Dd = Y.div`
11084
11097
  })]
11085
11098
  });
11086
11099
  };
11087
- Od.RowChildren = fd;
11100
+ Dd.RowChildren = dd;
11088
11101
  //#endregion
11089
11102
  //#region src/lib/components/table/table-provider.tsx
11090
- var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11103
+ var Od = ({ value: e, children: t }) => /* @__PURE__ */ H(pd.Provider, {
11091
11104
  value: e,
11092
11105
  children: t
11093
- }), Ad = ({ value: e, children: t }) => /* @__PURE__ */ H(pd.Provider, {
11106
+ }), kd = ({ value: e, children: t }) => /* @__PURE__ */ H(fd.Provider, {
11094
11107
  value: e,
11095
11108
  children: t
11096
- }), jd = (e) => {
11109
+ }), Ad = (e) => {
11097
11110
  let { gap: t = 0, dataList: n, renderTag: r } = e, i = z(null), [a, o] = B({
11098
11111
  start: 0,
11099
11112
  end: n.length
@@ -11157,7 +11170,7 @@ var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11157
11170
  })]
11158
11171
  })
11159
11172
  });
11160
- }, Md = Y(jt)`
11173
+ }, jd = Y(jt)`
11161
11174
  display: flex;
11162
11175
  align-items: center;
11163
11176
  justify-content: center;
@@ -11167,9 +11180,9 @@ var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11167
11180
  height: 22px;
11168
11181
  opacity: 0.7;
11169
11182
  margin: 0;
11170
- `, Nd = ({ opacity: e, style: t, children: n, ...r }) => {
11183
+ `, Md = ({ opacity: e, style: t, children: n, ...r }) => {
11171
11184
  let { config: i } = a(), { isDarkTheme: o } = i;
11172
- return /* @__PURE__ */ H(Md, {
11185
+ return /* @__PURE__ */ H(jd, {
11173
11186
  ...r,
11174
11187
  variant: "outlined",
11175
11188
  style: {
@@ -11179,10 +11192,10 @@ var kd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
11179
11192
  children: n
11180
11193
  });
11181
11194
  };
11182
- Nd.displayName = "ThemeTag";
11195
+ Md.displayName = "ThemeTag";
11183
11196
  //#endregion
11184
11197
  //#region src/lib/components/templates/card.tsx
11185
- var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11198
+ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
11186
11199
  overflow: hidden;
11187
11200
  display: flex;
11188
11201
  padding: 16px 16px;
@@ -11219,31 +11232,31 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11219
11232
  pointer-events: none;
11220
11233
  border-style: dashed;
11221
11234
  }
11222
- `, Fd = Y.div.attrs({ className: "template-card-content" })`
11235
+ `, Pd = Y.div.attrs({ className: "template-card-content" })`
11223
11236
  width: 100%;
11224
11237
  flex: 1;
11225
11238
  color: var(--ant-color-text-tertiary);
11226
- `, Id = Y.div.attrs({ className: "template-card-inner" })`
11239
+ `, Fd = Y.div.attrs({ className: "template-card-inner" })`
11227
11240
  display: flex;
11228
11241
  width: 100%;
11229
11242
  flex-direction: column;
11230
11243
  justify-content: flex-start;
11231
11244
  gap: 8px;
11232
11245
  height: 100%;
11233
- `, Ld = Y.div.attrs({ className: "template-card-icon" })`
11246
+ `, Id = Y.div.attrs({ className: "template-card-icon" })`
11234
11247
  display: flex;
11235
11248
  align-items: center;
11236
11249
  margin-right: 16px;
11237
11250
  font-size: 32px;
11238
- `, Rd = Y.div.attrs({ className: "template-card-header" })`
11251
+ `, Ld = Y.div.attrs({ className: "template-card-header" })`
11239
11252
  font-weight: bold;
11240
11253
  font-size: var(--font-size-base);
11241
11254
  display: flex;
11242
11255
  align-items: center;
11243
11256
  justify-content: space-between;
11244
- `, zd = (e) => {
11257
+ `, Rd = (e) => {
11245
11258
  let { className: t, height: n, children: r, clickable: i = !0, ghost: a = !1, header: o, footer: s, icon: c, active: l, disabled: u, hoverable: d, onClick: f } = e;
11246
- return /* @__PURE__ */ U(Pd, {
11259
+ return /* @__PURE__ */ U(Nd, {
11247
11260
  className: (0, X.default)(t, {
11248
11261
  clickable: i,
11249
11262
  hoverable: d,
@@ -11255,17 +11268,17 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11255
11268
  onClick: () => {
11256
11269
  u || !i || f?.();
11257
11270
  },
11258
- children: [c && /* @__PURE__ */ H(Ld, { children: c }), /* @__PURE__ */ U(Id, { children: [
11259
- o && /* @__PURE__ */ H(Rd, { children: o }),
11260
- r && /* @__PURE__ */ H(Fd, { children: r }),
11271
+ children: [c && /* @__PURE__ */ H(Id, { children: c }), /* @__PURE__ */ U(Fd, { children: [
11272
+ o && /* @__PURE__ */ H(Ld, { children: o }),
11273
+ r && /* @__PURE__ */ H(Pd, { children: r }),
11261
11274
  s
11262
11275
  ] })]
11263
11276
  });
11264
- }, Bd = Y.div`
11277
+ }, zd = Y.div`
11265
11278
  .ant-skeleton-paragraph {
11266
11279
  margin-bottom: 0;
11267
11280
  }
11268
- `, Vd = (e) => /* @__PURE__ */ H(Tl, {
11281
+ `, Bd = (e) => /* @__PURE__ */ H(Tl, {
11269
11282
  dataList: [
11270
11283
  ,
11271
11284
  ,
@@ -11274,7 +11287,7 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11274
11287
  ,
11275
11288
  ,
11276
11289
  ].fill({ label: "skeleton" }),
11277
- renderItem: () => /* @__PURE__ */ H(Bd, { children: /* @__PURE__ */ H(wt, {
11290
+ renderItem: () => /* @__PURE__ */ H(zd, { children: /* @__PURE__ */ H(wt, {
11278
11291
  avatar: { size: 32 },
11279
11292
  paragraph: { rows: 2 },
11280
11293
  style: {
@@ -11285,7 +11298,7 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11285
11298
  },
11286
11299
  ...e.skeletonProps || {}
11287
11300
  }) })
11288
- }), Hd = Y.div`
11301
+ }), Vd = Y.div`
11289
11302
  width: 100%;
11290
11303
  position: absolute;
11291
11304
  display: flex;
@@ -11298,13 +11311,13 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11298
11311
  .skelton-wrapper {
11299
11312
  width: 100%;
11300
11313
  }
11301
- `, Ud = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Hd, { children: /* @__PURE__ */ H(Dt, {
11314
+ `, Hd = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Vd, { children: /* @__PURE__ */ H(Dt, {
11302
11315
  size: "middle",
11303
11316
  spinning: e,
11304
11317
  style: { width: "100%" },
11305
11318
  classNames: { root: "skelton-wrapper" },
11306
- children: t && /* @__PURE__ */ H(Vd, {})
11307
- }) }) }), Wd = (e) => {
11319
+ children: t && /* @__PURE__ */ H(Bd, {})
11320
+ }) }) }), Ud = (e) => {
11308
11321
  let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } = Fc();
11309
11322
  return /* @__PURE__ */ U(Nc, {
11310
11323
  total: s,
@@ -11316,12 +11329,12 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11316
11329
  renderItem: o,
11317
11330
  defaultSpan: i,
11318
11331
  resizable: a
11319
- }), /* @__PURE__ */ H(Ud, {
11332
+ }), /* @__PURE__ */ H(Hd, {
11320
11333
  loading: n,
11321
11334
  isFirst: r
11322
11335
  })]
11323
11336
  });
11324
- }, Gd = /* @__PURE__ */ n(((e, t) => {
11337
+ }, Wd = /* @__PURE__ */ n(((e, t) => {
11325
11338
  (function(n, r) {
11326
11339
  typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.FitAddon = r() : n.FitAddon = r();
11327
11340
  })(self, (() => (() => {
@@ -11352,7 +11365,7 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
11352
11365
  };
11353
11366
  })(), e;
11354
11367
  })()));
11355
- })), Kd = /* @__PURE__ */ n(((e, t) => {
11368
+ })), Gd = /* @__PURE__ */ n(((e, t) => {
11356
11369
  (function(n, r) {
11357
11370
  if (typeof e == "object" && typeof t == "object") t.exports = r();
11358
11371
  else if (typeof define == "function" && define.amd) define([], r);
@@ -18459,9 +18472,9 @@ var Pd = Y.div.attrs({ className: "template-card-wrapper" })`
18459
18472
  e.Terminal = d;
18460
18473
  })(), r;
18461
18474
  })()));
18462
- })), qd = Gd();
18463
- Kd();
18464
- var Jd = Rt(({ token: e, css: t }) => ({
18475
+ })), Kd = Wd();
18476
+ Gd();
18477
+ var qd = Rt(({ token: e, css: t }) => ({
18465
18478
  wrap: t`
18466
18479
  position: relative;
18467
18480
  text-align: left;
@@ -18480,16 +18493,16 @@ var Jd = Rt(({ token: e, css: t }) => ({
18480
18493
  background-color: var(--color-logs-bg);
18481
18494
  border-radius: 0 0 8px 8px;
18482
18495
  `
18483
- })), Yd = [
18496
+ })), Jd = [
18484
18497
  "bash",
18485
18498
  "sh",
18486
18499
  "powershell",
18487
18500
  "pwsh",
18488
18501
  "cmd",
18489
18502
  "bash"
18490
- ], Xd = "--- press Y to reconnect! ---", Zd = A((e, t) => {
18491
- let { height: n, url: r, theme: i } = e, { styles: a } = Jd(), o = E.useRef(null), s = E.useRef(null), c = E.useRef(null), l = E.useRef(""), u = E.useRef(0), d = E.useRef(null), f = E.useRef(5), p = E.useRef(5), h = E.useRef(!0), g = E.useRef(!1), _ = E.useRef(null), v = E.useRef(!1), y = E.useRef(0), [b, x] = E.useState(0), S = new qd.FitAddon(), C = (e) => {
18492
- u.current >= Yd.length - 1 || (e ? u.current = 0 : u.current += 1, l.current = `${r}&${m.stringify({ shell: Yd[u.current] })}`);
18503
+ ], Yd = "--- press Y to reconnect! ---", Xd = A((e, t) => {
18504
+ let { height: n, url: r, theme: i } = e, { styles: a } = qd(), o = E.useRef(null), s = E.useRef(null), c = E.useRef(null), l = E.useRef(""), u = E.useRef(0), d = E.useRef(null), f = E.useRef(5), p = E.useRef(5), h = E.useRef(!0), g = E.useRef(!1), _ = E.useRef(null), v = E.useRef(!1), y = E.useRef(0), [b, x] = E.useState(0), S = new Kd.FitAddon(), C = (e) => {
18505
+ u.current >= Jd.length - 1 || (e ? u.current = 0 : u.current += 1, l.current = `${r}&${m.stringify({ shell: Jd[u.current] })}`);
18493
18506
  }, w = () => (d.current && d.current.readyState) === 1, T = () => {
18494
18507
  let { cols: e, rows: t } = c.current || {};
18495
18508
  w() && d.current?.send(`#{"width":${e},"height":${t}}#`);
@@ -18512,7 +18525,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18512
18525
  1011,
18513
18526
  1006,
18514
18527
  1e3
18515
- ].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${Xd}`))), h.current = !0) : e.reason && c.current?.write?.(j(`(${b})${e.reason}\r\n`)), g.current = !1;
18528
+ ].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${Yd}`))), h.current = !0) : e.reason && c.current?.write?.(j(`(${b})${e.reason}\r\n`)), g.current = !1;
18516
18529
  }, R = (e) => {
18517
18530
  let { message: t } = e;
18518
18531
  t || (t = "disconnected!", v.current = !0, h.current = !0, g.current = !1), y.current = d.current.readyState, c.current?.write?.(M(`\r${t}`));
@@ -18546,55 +18559,55 @@ var Jd = Rt(({ token: e, css: t }) => ({
18546
18559
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
18547
18560
  return e;
18548
18561
  }, $.apply(this, arguments);
18549
- }, Qd = {
18562
+ }, Zd = {
18550
18563
  width: "100%",
18551
18564
  height: "10px",
18552
18565
  top: "0px",
18553
18566
  left: "0px",
18554
18567
  cursor: "row-resize"
18555
- }, $d = {
18568
+ }, Qd = {
18556
18569
  width: "10px",
18557
18570
  height: "100%",
18558
18571
  top: "0px",
18559
18572
  left: "0px",
18560
18573
  cursor: "col-resize"
18561
- }, ef = {
18574
+ }, $d = {
18562
18575
  width: "20px",
18563
18576
  height: "20px",
18564
18577
  position: "absolute",
18565
18578
  zIndex: 1
18566
- }, tf = {
18567
- top: $($({}, Qd), { top: "-5px" }),
18568
- right: $($({}, $d), {
18579
+ }, ef = {
18580
+ top: $($({}, Zd), { top: "-5px" }),
18581
+ right: $($({}, Qd), {
18569
18582
  left: void 0,
18570
18583
  right: "-5px"
18571
18584
  }),
18572
- bottom: $($({}, Qd), {
18585
+ bottom: $($({}, Zd), {
18573
18586
  top: void 0,
18574
18587
  bottom: "-5px"
18575
18588
  }),
18576
- left: $($({}, $d), { left: "-5px" }),
18577
- topRight: $($({}, ef), {
18589
+ left: $($({}, Qd), { left: "-5px" }),
18590
+ topRight: $($({}, $d), {
18578
18591
  right: "-10px",
18579
18592
  top: "-10px",
18580
18593
  cursor: "ne-resize"
18581
18594
  }),
18582
- bottomRight: $($({}, ef), {
18595
+ bottomRight: $($({}, $d), {
18583
18596
  right: "-10px",
18584
18597
  bottom: "-10px",
18585
18598
  cursor: "se-resize"
18586
18599
  }),
18587
- bottomLeft: $($({}, ef), {
18600
+ bottomLeft: $($({}, $d), {
18588
18601
  left: "-10px",
18589
18602
  bottom: "-10px",
18590
18603
  cursor: "sw-resize"
18591
18604
  }),
18592
- topLeft: $($({}, ef), {
18605
+ topLeft: $($({}, $d), {
18593
18606
  left: "-10px",
18594
18607
  top: "-10px",
18595
18608
  cursor: "nw-resize"
18596
18609
  })
18597
- }, nf = M(function(e) {
18610
+ }, tf = M(function(e) {
18598
18611
  var t = e.onResizeStart, n = e.direction, r = e.children, i = e.replaceStyles, a = e.className, o = N(function(e) {
18599
18612
  t(e, n);
18600
18613
  }, [t, n]), s = N(function(e) {
@@ -18603,7 +18616,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18603
18616
  return $($({
18604
18617
  position: "absolute",
18605
18618
  userSelect: "none"
18606
- }, tf[n]), i ?? {});
18619
+ }, ef[n]), i ?? {});
18607
18620
  }, [i, n]);
18608
18621
  return H("div", {
18609
18622
  className: a || void 0,
@@ -18612,7 +18625,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18612
18625
  onTouchStart: s,
18613
18626
  children: r
18614
18627
  });
18615
- }), rf = (function() {
18628
+ }), nf = (function() {
18616
18629
  var e = function(t, n) {
18617
18630
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
18618
18631
  e.__proto__ = t;
@@ -18628,34 +18641,34 @@ var Jd = Rt(({ token: e, css: t }) => ({
18628
18641
  }
18629
18642
  t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
18630
18643
  };
18631
- })(), af = function() {
18632
- return af = Object.assign || function(e) {
18644
+ })(), rf = function() {
18645
+ return rf = Object.assign || function(e) {
18633
18646
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
18634
18647
  return e;
18635
- }, af.apply(this, arguments);
18636
- }, of = {
18648
+ }, rf.apply(this, arguments);
18649
+ }, af = {
18637
18650
  width: "auto",
18638
18651
  height: "auto"
18639
- }, sf = function(e, t, n) {
18652
+ }, of = function(e, t, n) {
18640
18653
  return Math.max(Math.min(e, n), t);
18641
- }, cf = function(e, t, n) {
18654
+ }, sf = function(e, t, n) {
18642
18655
  var r = Math.round(e / t);
18643
18656
  return r * t + n * (r - 1);
18644
- }, lf = function(e, t) {
18657
+ }, cf = function(e, t) {
18645
18658
  return new RegExp(e, "i").test(t);
18646
- }, uf = function(e) {
18659
+ }, lf = function(e) {
18647
18660
  return !!(e.touches && e.touches.length);
18648
- }, df = function(e) {
18661
+ }, uf = function(e) {
18649
18662
  return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
18650
- }, ff = function(e, t, n) {
18663
+ }, df = function(e, t, n) {
18651
18664
  n === void 0 && (n = 0);
18652
18665
  var r = t.reduce(function(n, r, i) {
18653
18666
  return Math.abs(r - e) < Math.abs(t[n] - e) ? i : n;
18654
18667
  }, 0), i = Math.abs(t[r] - e);
18655
18668
  return n === 0 || i < n ? t[r] : e;
18656
- }, pf = function(e) {
18669
+ }, ff = function(e) {
18657
18670
  return e = e.toString(), e === "auto" || e.endsWith("px") || e.endsWith("%") || e.endsWith("vh") || e.endsWith("vw") || e.endsWith("vmax") || e.endsWith("vmin") ? e : `${e}px`;
18658
- }, mf = function(e, t, n, r) {
18671
+ }, pf = function(e, t, n, r) {
18659
18672
  if (e && typeof e == "string") {
18660
18673
  if (e.endsWith("px")) return Number(e.replace("px", ""));
18661
18674
  if (e.endsWith("%")) {
@@ -18672,17 +18685,17 @@ var Jd = Rt(({ token: e, css: t }) => ({
18672
18685
  }
18673
18686
  }
18674
18687
  return e;
18675
- }, hf = function(e, t, n, r, i, a, o) {
18676
- return r = mf(r, e.width, t, n), i = mf(i, e.height, t, n), a = mf(a, e.width, t, n), o = mf(o, e.height, t, n), {
18688
+ }, mf = function(e, t, n, r, i, a, o) {
18689
+ return r = pf(r, e.width, t, n), i = pf(i, e.height, t, n), a = pf(a, e.width, t, n), o = pf(o, e.height, t, n), {
18677
18690
  maxWidth: r === void 0 ? void 0 : Number(r),
18678
18691
  maxHeight: i === void 0 ? void 0 : Number(i),
18679
18692
  minWidth: a === void 0 ? void 0 : Number(a),
18680
18693
  minHeight: o === void 0 ? void 0 : Number(o)
18681
18694
  };
18682
- }, gf = function(e) {
18695
+ }, hf = function(e) {
18683
18696
  return Array.isArray(e) ? e : [e, e];
18684
- }, _f = /* @__PURE__ */ "as.ref.style.className.grid.gridGap.snap.bounds.boundsByDirection.size.defaultSize.minWidth.minHeight.maxWidth.maxHeight.lockAspectRatio.lockAspectRatioExtraWidth.lockAspectRatioExtraHeight.enable.handleStyles.handleClasses.handleWrapperStyle.handleWrapperClass.children.onResizeStart.onResize.onResizeStop.handleComponent.scale.resizeRatio.snapGap".split("."), vf = "__resizable_base__", yf = function(e) {
18685
- rf(t, e);
18697
+ }, gf = /* @__PURE__ */ "as.ref.style.className.grid.gridGap.snap.bounds.boundsByDirection.size.defaultSize.minWidth.minHeight.maxWidth.maxHeight.lockAspectRatio.lockAspectRatioExtraWidth.lockAspectRatioExtraHeight.enable.handleStyles.handleClasses.handleWrapperStyle.handleWrapperClass.children.onResizeStart.onResize.onResizeStop.handleComponent.scale.resizeRatio.snapGap".split("."), _f = "__resizable_base__", vf = function(e) {
18698
+ nf(t, e);
18686
18699
  function t(t) {
18687
18700
  var n = e.call(this, t) || this;
18688
18701
  return n.ratio = 1, n.resizable = null, n.parentLeft = 0, n.parentTop = 0, n.resizableLeft = 0, n.resizableRight = 0, n.resizableTop = 0, n.resizableBottom = 0, n.targetLeft = 0, n.targetTop = 0, n.delta = {
@@ -18693,7 +18706,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18693
18706
  var e = n.parentNode;
18694
18707
  if (!e) return null;
18695
18708
  var t = n.window.document.createElement("div");
18696
- return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(vf) : t.className += vf, e.appendChild(t), t;
18709
+ return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(_f) : t.className += _f, e.appendChild(t), t;
18697
18710
  }, n.removeBase = function(e) {
18698
18711
  var t = n.parentNode;
18699
18712
  t && t.removeChild(e);
@@ -18738,7 +18751,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18738
18751
  configurable: !0
18739
18752
  }), Object.defineProperty(t.prototype, "propsSize", {
18740
18753
  get: function() {
18741
- return this.props.size || this.props.defaultSize || of;
18754
+ return this.props.size || this.props.defaultSize || af;
18742
18755
  },
18743
18756
  enumerable: !1,
18744
18757
  configurable: !0
@@ -18765,11 +18778,11 @@ var Jd = Rt(({ token: e, css: t }) => ({
18765
18778
  var n = e.getParentSize();
18766
18779
  return `${Number(e.state[t].toString().replace("px", "")) / n[t] * 100}%`;
18767
18780
  }
18768
- return pf(e.state[t]);
18781
+ return ff(e.state[t]);
18769
18782
  };
18770
18783
  return {
18771
- width: t && t.width !== void 0 && !this.state.isResizing ? pf(t.width) : n("width"),
18772
- height: t && t.height !== void 0 && !this.state.isResizing ? pf(t.height) : n("height")
18784
+ width: t && t.width !== void 0 && !this.state.isResizing ? ff(t.width) : n("width"),
18785
+ height: t && t.height !== void 0 && !this.state.isResizing ? ff(t.height) : n("height")
18773
18786
  };
18774
18787
  },
18775
18788
  enumerable: !1,
@@ -18816,7 +18829,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18816
18829
  var n = this.propsSize && this.propsSize[t];
18817
18830
  return this.state[t] === "auto" && this.state.original[t] === e && (n === void 0 || n === "auto") ? "auto" : e;
18818
18831
  }, t.prototype.calculateNewMaxFromBoundary = function(e, t) {
18819
- var n = this.props.boundsByDirection, r = this.state.direction, i = n && lf("left", r), a = n && lf("top", r), o, s;
18832
+ var n = this.props.boundsByDirection, r = this.state.direction, i = n && cf("left", r), a = n && cf("top", r), o, s;
18820
18833
  if (this.props.bounds === "parent") {
18821
18834
  var c = this.parentNode;
18822
18835
  c && (o = i ? this.resizableRight - this.parentLeft : c.offsetWidth + (this.parentLeft - this.resizableLeft), s = a ? this.resizableBottom - this.parentTop : c.offsetHeight + (this.parentTop - this.resizableTop));
@@ -18826,8 +18839,8 @@ var Jd = Rt(({ token: e, css: t }) => ({
18826
18839
  maxHeight: t
18827
18840
  };
18828
18841
  }, t.prototype.calculateNewSizeFromDirection = function(e, t) {
18829
- var n = this.props.scale || 1, r = gf(this.props.resizeRatio || 1), i = r[0], a = r[1], o = this.state, s = o.direction, c = o.original, l = this.props, u = l.lockAspectRatio, d = l.lockAspectRatioExtraHeight, f = l.lockAspectRatioExtraWidth, p = c.width, m = c.height, h = d || 0, g = f || 0;
18830
- return lf("right", s) && (p = c.width + (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), lf("left", s) && (p = c.width - (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), lf("bottom", s) && (m = c.height + (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), lf("top", s) && (m = c.height - (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), {
18842
+ var n = this.props.scale || 1, r = hf(this.props.resizeRatio || 1), i = r[0], a = r[1], o = this.state, s = o.direction, c = o.original, l = this.props, u = l.lockAspectRatio, d = l.lockAspectRatioExtraHeight, f = l.lockAspectRatioExtraWidth, p = c.width, m = c.height, h = d || 0, g = f || 0;
18843
+ return cf("right", s) && (p = c.width + (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), cf("left", s) && (p = c.width - (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), cf("bottom", s) && (m = c.height + (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), cf("top", s) && (m = c.height - (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), {
18831
18844
  newWidth: p,
18832
18845
  newHeight: m
18833
18846
  };
@@ -18835,8 +18848,8 @@ var Jd = Rt(({ token: e, css: t }) => ({
18835
18848
  var i = this.props, a = i.lockAspectRatio, o = i.lockAspectRatioExtraHeight, s = i.lockAspectRatioExtraWidth, c = r.width === void 0 ? 10 : r.width, l = n.width === void 0 || n.width < 0 ? e : n.width, u = r.height === void 0 ? 10 : r.height, d = n.height === void 0 || n.height < 0 ? t : n.height, f = o || 0, p = s || 0;
18836
18849
  if (a) {
18837
18850
  var m = (u - f) * this.ratio + p, h = (d - f) * this.ratio + p, g = (c - p) / this.ratio + f, _ = (l - p) / this.ratio + f, v = Math.max(c, m), y = Math.min(l, h), b = Math.max(u, g), x = Math.min(d, _);
18838
- e = sf(e, v, y), t = sf(t, b, x);
18839
- } else e = sf(e, c, l), t = sf(t, u, d);
18851
+ e = of(e, v, y), t = of(t, b, x);
18852
+ } else e = of(e, c, l), t = of(t, u, d);
18840
18853
  return {
18841
18854
  newWidth: e,
18842
18855
  newHeight: t
@@ -18861,7 +18874,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18861
18874
  }, t.prototype.onResizeStart = function(e, t) {
18862
18875
  if (!(!this.resizable || !this.window)) {
18863
18876
  var n = 0, r = 0;
18864
- if (e.nativeEvent && df(e.nativeEvent) ? (n = e.nativeEvent.clientX, r = e.nativeEvent.clientY) : e.nativeEvent && uf(e.nativeEvent) && (n = e.nativeEvent.touches[0].clientX, r = e.nativeEvent.touches[0].clientY), !(this.props.onResizeStart && this.resizable && this.props.onResizeStart(e, t, this.resizable) === !1)) {
18877
+ if (e.nativeEvent && uf(e.nativeEvent) ? (n = e.nativeEvent.clientX, r = e.nativeEvent.clientY) : e.nativeEvent && lf(e.nativeEvent) && (n = e.nativeEvent.touches[0].clientX, r = e.nativeEvent.touches[0].clientY), !(this.props.onResizeStart && this.resizable && this.props.onResizeStart(e, t, this.resizable) === !1)) {
18865
18878
  this.props.size && (this.props.size.height !== void 0 && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), this.props.size.width !== void 0 && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
18866
18879
  var i, a = this.window.getComputedStyle(this.resizable);
18867
18880
  if (a.flexBasis !== "auto") {
@@ -18880,7 +18893,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18880
18893
  height: this.size.height
18881
18894
  },
18882
18895
  isResizing: !0,
18883
- backgroundStyle: af(af({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
18896
+ backgroundStyle: rf(rf({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
18884
18897
  direction: t,
18885
18898
  flexBasis: i
18886
18899
  };
@@ -18890,13 +18903,13 @@ var Jd = Rt(({ token: e, css: t }) => ({
18890
18903
  }, t.prototype.onMouseMove = function(e) {
18891
18904
  var t = this;
18892
18905
  if (!(!this.state.isResizing || !this.resizable || !this.window)) {
18893
- if (this.window.TouchEvent && uf(e)) try {
18906
+ if (this.window.TouchEvent && lf(e)) try {
18894
18907
  e.preventDefault(), e.stopPropagation();
18895
18908
  } catch {}
18896
- var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s = uf(e) ? e.touches[0].clientX : e.clientX, c = uf(e) ? e.touches[0].clientY : e.clientY, l = this.state, u = l.direction, d = l.original, f = l.width, p = l.height, m = this.getParentSize(), h = hf(m, this.window.innerWidth, this.window.innerHeight, r, i, a, o);
18909
+ var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s = lf(e) ? e.touches[0].clientX : e.clientX, c = lf(e) ? e.touches[0].clientY : e.clientY, l = this.state, u = l.direction, d = l.original, f = l.width, p = l.height, m = this.getParentSize(), h = mf(m, this.window.innerWidth, this.window.innerHeight, r, i, a, o);
18897
18910
  r = h.maxWidth, i = h.maxHeight, a = h.minWidth, o = h.minHeight;
18898
18911
  var g = this.calculateNewSizeFromDirection(s, c), _ = g.newHeight, v = g.newWidth, y = this.calculateNewMaxFromBoundary(r, i);
18899
- this.props.snap && this.props.snap.x && (v = ff(v, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (_ = ff(_, this.props.snap.y, this.props.snapGap));
18912
+ this.props.snap && this.props.snap.x && (v = df(v, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (_ = df(_, this.props.snap.y, this.props.snapGap));
18900
18913
  var b = this.calculateNewSizeFromAspectRatio(v, _, {
18901
18914
  width: y.maxWidth,
18902
18915
  height: y.maxHeight
@@ -18905,7 +18918,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18905
18918
  height: o
18906
18919
  });
18907
18920
  if (v = b.newWidth, _ = b.newHeight, this.props.grid) {
18908
- var x = cf(v, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = cf(_, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0, w = C === 0 || Math.abs(x - v) <= C ? x : v, T = C === 0 || Math.abs(S - _) <= C ? S : _;
18921
+ var x = sf(v, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = sf(_, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0, w = C === 0 || Math.abs(x - v) <= C ? x : v, T = C === 0 || Math.abs(S - _) <= C ? S : _;
18909
18922
  v = w, _ = T;
18910
18923
  }
18911
18924
  var E = {
@@ -18953,7 +18966,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18953
18966
  height: this.props.size.height ?? "auto"
18954
18967
  }), this.unbindEvents(), this.setState({
18955
18968
  isResizing: !1,
18956
- backgroundStyle: af(af({}, this.state.backgroundStyle), { cursor: "auto" })
18969
+ backgroundStyle: rf(rf({}, this.state.backgroundStyle), { cursor: "auto" })
18957
18970
  }));
18958
18971
  }, t.prototype.updateSize = function(e) {
18959
18972
  this.setState({
@@ -18966,7 +18979,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18966
18979
  className: o,
18967
18980
  style: a,
18968
18981
  children: Object.keys(n).map(function(t) {
18969
- return n[t] === !1 ? null : H(nf, {
18982
+ return n[t] === !1 ? null : H(tf, {
18970
18983
  direction: t,
18971
18984
  onResizeStart: e.onResizeStart,
18972
18985
  replaceStyles: r && r[t],
@@ -18977,8 +18990,8 @@ var Jd = Rt(({ token: e, css: t }) => ({
18977
18990
  }) : null;
18978
18991
  }, t.prototype.render = function() {
18979
18992
  var e = this, t = Object.keys(this.props).reduce(function(t, n) {
18980
- return _f.indexOf(n) === -1 && (t[n] = e.props[n]), t;
18981
- }, {}), n = af(af(af({
18993
+ return gf.indexOf(n) === -1 && (t[n] = e.props[n]), t;
18994
+ }, {}), n = rf(rf(rf({
18982
18995
  position: "relative",
18983
18996
  userSelect: this.state.isResizing ? "none" : "auto"
18984
18997
  }, this.props.style), this.sizeStyle), {
@@ -18989,7 +19002,7 @@ var Jd = Rt(({ token: e, css: t }) => ({
18989
19002
  boxSizing: "border-box",
18990
19003
  flexShrink: 0
18991
19004
  });
18992
- return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div", af({
19005
+ return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div", rf({
18993
19006
  style: n,
18994
19007
  className: this.props.className
18995
19008
  }, t, {
@@ -19043,11 +19056,11 @@ Y(G)`
19043
19056
  background: none !important;
19044
19057
  }
19045
19058
  `;
19046
- var bf = A((e, t) => {
19059
+ var yf = A((e, t) => {
19047
19060
  let { defaultWidth: n, defaultHeight: r = 180, minHeight: i = 180, maxHeight: a = 400, children: s, onReSize: c, onReSizeStop: l, ...u } = e;
19048
19061
  o();
19049
19062
  let d = z(null);
19050
- return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(yf, {
19063
+ return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(vf, {
19051
19064
  ref: d,
19052
19065
  enable: { top: !0 },
19053
19066
  defaultSize: {
@@ -19062,7 +19075,7 @@ var bf = A((e, t) => {
19062
19075
  ...u,
19063
19076
  children: s
19064
19077
  });
19065
- }), xf = Y.div`
19078
+ }), bf = Y.div`
19066
19079
  .ant-tabs {
19067
19080
  .ant-tabs-tab {
19068
19081
  positon: relative;
@@ -19122,11 +19135,11 @@ var bf = A((e, t) => {
19122
19135
  color: var(--ant-color-text);
19123
19136
  }
19124
19137
  }
19125
- `, Sf = ({ terminals: e, currentActive: t, onClose: n }) => {
19138
+ `, xf = ({ terminals: e, currentActive: t, onClose: n }) => {
19126
19139
  let [r, i] = B(t || e[0]?.url || ""), [a, o] = B(300), s = E.useRef(null), c = R(() => e.map((e) => ({
19127
19140
  key: e.url,
19128
19141
  label: e.name,
19129
- children: /* @__PURE__ */ H(Zd, {
19142
+ children: /* @__PURE__ */ H(Xd, {
19130
19143
  height: a,
19131
19144
  url: e.url
19132
19145
  })
@@ -19136,10 +19149,10 @@ var bf = A((e, t) => {
19136
19149
  }, 200);
19137
19150
  return F(() => {
19138
19151
  t && i(t);
19139
- }, [t]), /* @__PURE__ */ H(bf, {
19152
+ }, [t]), /* @__PURE__ */ H(yf, {
19140
19153
  onReSize: l,
19141
19154
  ref: s,
19142
- children: /* @__PURE__ */ H(xf, { children: /* @__PURE__ */ H(At, {
19155
+ children: /* @__PURE__ */ H(bf, { children: /* @__PURE__ */ H(At, {
19143
19156
  type: "editable-card",
19144
19157
  hideAdd: !0,
19145
19158
  activeKey: r,
@@ -19155,11 +19168,11 @@ var bf = A((e, t) => {
19155
19168
  }) }
19156
19169
  }) })
19157
19170
  });
19158
- }, Cf = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(Sf, {
19171
+ }, Sf = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(xf, {
19159
19172
  terminals: e,
19160
19173
  currentActive: r,
19161
19174
  onClose: n
19162
- }), wf = Y.ul`
19175
+ }), Cf = Y.ul`
19163
19176
  list-style: none;
19164
19177
  padding-left: 0;
19165
19178
  margin: 0;
@@ -19177,16 +19190,16 @@ var bf = A((e, t) => {
19177
19190
  display: inline-flex;
19178
19191
  }
19179
19192
  }
19180
- `, Tf = (e) => {
19193
+ `, wf = (e) => {
19181
19194
  let t = o(), { list: n } = e;
19182
- return /* @__PURE__ */ H(wf, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
19195
+ return /* @__PURE__ */ H(Cf, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
19183
19196
  className: "title",
19184
19197
  children: [e.title?.locale ? t.formatMessage({ id: e.title?.text || "" }) : e.title, ":"]
19185
19198
  }), /* @__PURE__ */ H("span", {
19186
19199
  className: "content",
19187
19200
  children: t.formatMessage({ id: e.tips })
19188
19201
  })] }, n)) });
19189
- }, Ef = Y.div`
19202
+ }, Tf = Y.div`
19190
19203
  .ant-transfer-section {
19191
19204
  width: 100%;
19192
19205
  height: 300px;
@@ -19243,12 +19256,12 @@ var bf = A((e, t) => {
19243
19256
  .ant-pagination {
19244
19257
  justify-content: center;
19245
19258
  }
19246
- `, Df = (e) => {
19259
+ `, Ef = (e) => {
19247
19260
  let t = o(), n = (e) => e.selectedCount ? /* @__PURE__ */ H("span", {
19248
19261
  style: { color: "var(--ant-color-text-secondary)" },
19249
19262
  children: t.formatMessage({ id: "common.select.count" }, { count: e.selectedCount })
19250
19263
  }) : null;
19251
- return /* @__PURE__ */ H(Ef, { children: /* @__PURE__ */ H(Mt, {
19264
+ return /* @__PURE__ */ H(Tf, { children: /* @__PURE__ */ H(Mt, {
19252
19265
  ...e,
19253
19266
  selectAllLabels: e.selectAllLabels || [n, n],
19254
19267
  selectionsIcon: /* @__PURE__ */ H(Ae, { style: {
@@ -19256,7 +19269,7 @@ var bf = A((e, t) => {
19256
19269
  marginBottom: 3
19257
19270
  } })
19258
19271
  }) });
19259
- }, Of = A((e, t) => {
19272
+ }, Df = A((e, t) => {
19260
19273
  let { minHeight: n = 50, header: r, variant: i = "bordered", children: a, setCollapsed: o } = e, [s, c] = B(!0), l = z(null);
19261
19274
  F(() => {
19262
19275
  l?.current && (l.current.style.minHeight = s ? `${l.current.scrollHeight || 0}px` : "0px");
@@ -19289,7 +19302,7 @@ var bf = A((e, t) => {
19289
19302
  })
19290
19303
  })]
19291
19304
  });
19292
- }), kf = (e) => {
19305
+ }), Of = (e) => {
19293
19306
  let [t, n] = Ft.useMessage(), { icon: r, accept: i, type: a, size: s = "large", shape: c = "circle" } = e, l = o(), u = (e) => !1, d = (n) => e.maxFileSize && n.size > e.maxFileSize ? (t.open({
19294
19307
  type: "warning",
19295
19308
  content: l.formatMessage({ id: "playground.uploadfile.sizeError" }, { size: `${b(e.maxFileSize)}` })
@@ -19326,7 +19339,7 @@ var bf = A((e, t) => {
19326
19339
  })
19327
19340
  }), n]
19328
19341
  });
19329
- }, Af = A((e, t) => {
19342
+ }, kf = A((e, t) => {
19330
19343
  let { lang: n, value: r, config: i, defaultLang: a, height: o = 380, theme: s = "vs-dark", header: c, variant: l = "borderless", placeholder: u } = e, d = z(null), f = (e) => {
19331
19344
  e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
19332
19345
  noSemanticValidation: !1,
@@ -19381,4 +19394,4 @@ var bf = A((e, t) => {
19381
19394
  });
19382
19395
  });
19383
19396
  //#endregion
19384
- export { dn as Access, gn as AlertBlockInfo, fn as AlertInfo, yn as AudioAnimation, Sn as AudioPlayer, mo as AutoComplete, jn as AutoImage, f as AutoTooltip, Ho as BarChart, Co as BaseSelect, mi as BibtexViewer, gi as CardWrapper, Bs as Cascader, bd as CellContent, Ro as Chart, xi as CheckButtons, Hs as Checkbox, Us as CheckboxField, wi as CollapseContainer, Di as CollapsePanel, wa as ColumnSettings, Aa as ColumnWrapper, Ia as CommandViewer, Ra as ContentWrapper, u as CopyButton, un as CoreUIProvider, Va as DeleteModal, Ua as DividerLine, Ga as DocLink, ki as DropdownActions, qa as DropdownButtons, Ja as DynamicForm, C as EditorWrap, Zo as ErrorMessage, Ws as FieldComponent, bl as FilterBar, $o as FilterForm, vl as FiltersButton, es as FormButtons, Rs as FormDrawer, Is as GSDrawer, Wo as GaugeChart, ic as GrafanaIcon, Go as HBarChart, Ti as HeadlessCollapse, p as HighlightCode, To as INPUT_WIDTH, Q as IconFont, gc as ImageEditor, Nc as InfiniteScroller, Ic as InfiniteScrollerProvider, ed as InfoColumn, xo as Input, go as InputNumber, _o as InputSearch, Rc as LabelCell, Ya as LabelInfo, Wc as LabelSelector, Gc as LabelSelectorProvider, qo as LineChart, Yc as ListInput, Fo as ListMap, tl as LogsViewer, rl as MetadataList, Jo as MixLineBarChart, ns as ModalFooter, al as MoreButton, Xs as MultipleSelect, ul as NoResult, l as OverlayScroller, hl as PageBox, fl as PageBreadcrumb, ml as PageContainerInner, $c as PageSize, yl as PageTools, vo as Password, Sl as Popover, Cl as ProgressBar, wl as RadioButtons, Tl as ResizeContainer, bf as ResizePanel, fd as RowChildren, ec as RowTextarea, Yo as ScatterChart, Ol as ScrollSpyTabs, Pl as ScrollerModal, Pa as SegmentLine, wo as Select, Vl as SelectPanel, Ul as Shortcut, On as SimpleAudio, bi as SimpleCard, Yu as SimpleOverlay, Ys as SimpleSelect, $u as SimpleTable, fi as SingleImage, Do as Slider, Qs as SmallCloseButton, rd as SpeechContent, od as StatusTag, cd as SubDrawer, ko as Switch, rc as SwitchInput, Od as Table, kd as TableProvider, Ad as TableRowProvider, jd as TagsWrapper, zd as TemplateCard, Wd as TemplateCardList, Vd as TemplateCardSkeleton, Cf as TerminalTabs, bo as Textarea, Nd as ThemeTag, $s as ThumbImage, Tf as TooltipList, c as TooltipOverlayScroller, Df as Transfer, Of as TransitionWrapper, kf as UploadAudio, ji as UploadImage, Af as ViewerEditor, Zd as XTerminal, zi as config, ac as icons, Sc as processImage, ga as useAccess, Oi as useActions, Ni as useAddImage, Pi as useAppUtils, Fi as useBodyScroll, Ri as useChunkFetch, Xi as useChunkRequest, Zi as useContainerScroll, a as useCoreUIContext, va as useCoreUISlots, ya as useCurrentUser, Qi as useDeferredRequest, ia as useDownloadLogs, ea as useDownloadStream, aa as useExpandedRowKeys, kl as useFinishFailed, o as useIntl, d as useOverlayScroller, sa as useQueryData, sa as useRequest, oa as useQueryDataList, ca as useRequestToken, la as useResponsive, Al as useScrollActiveChange, Fc as useScrollerContext, ba as useTableFetch, fa as useTableMultiSort, ua as useTableRowSelection, da as useTableSort, Ed as useTableSorter, pa as useUpdateChunkedList, Io as useValidateFields, ma as useWatchList, ha as useWindowResize, Ea as useWrapperContext, S as utils };
19397
+ export { dn as Access, gn as AlertBlockInfo, fn as AlertInfo, yn as AudioAnimation, Sn as AudioPlayer, mo as AutoComplete, jn as AutoImage, f as AutoTooltip, Ho as BarChart, Co as BaseSelect, mi as BibtexViewer, gi as CardWrapper, Bs as Cascader, yd as CellContent, Ro as Chart, xi as CheckButtons, Hs as Checkbox, Us as CheckboxField, wi as CollapseContainer, Di as CollapsePanel, wa as ColumnSettings, Aa as ColumnWrapper, Ia as CommandViewer, Ra as ContentWrapper, u as CopyButton, un as CoreUIProvider, Va as DeleteModal, Ua as DividerLine, Ga as DocLink, ki as DropdownActions, qa as DropdownButtons, Ja as DynamicForm, C as EditorWrap, Zo as ErrorMessage, Ws as FieldComponent, bl as FilterBar, $o as FilterForm, vl as FiltersButton, es as FormButtons, Rs as FormDrawer, Is as GSDrawer, Wo as GaugeChart, ic as GrafanaIcon, Go as HBarChart, Ti as HeadlessCollapse, p as HighlightCode, To as INPUT_WIDTH, Q as IconFont, gc as ImageEditor, Nc as InfiniteScroller, Ic as InfiniteScrollerProvider, $u as InfoColumn, xo as Input, go as InputNumber, _o as InputSearch, Rc as LabelCell, Ya as LabelInfo, Wc as LabelSelector, Gc as LabelSelectorProvider, qo as LineChart, Yc as ListInput, Fo as ListMap, tl as LogsViewer, rl as MetadataList, Jo as MixLineBarChart, ns as ModalFooter, al as MoreButton, Xs as MultipleSelect, ul as NoResult, l as OverlayScroller, hl as PageBox, fl as PageBreadcrumb, ml as PageContainerInner, $c as PageSize, yl as PageTools, vo as Password, Sl as Popover, Cl as ProgressBar, wl as RadioButtons, Tl as ResizeContainer, yf as ResizePanel, dd as RowChildren, ec as RowTextarea, Yo as ScatterChart, Ol as ScrollSpyTabs, Nl as ScrollerModal, Pa as SegmentLine, wo as Select, Bl as SelectPanel, Hl as Shortcut, On as SimpleAudio, bi as SimpleCard, Ju as SimpleOverlay, Ys as SimpleSelect, Qu as SimpleTable, fi as SingleImage, Do as Slider, Qs as SmallCloseButton, nd as SpeechContent, ad as StatusTag, sd as SubDrawer, ko as Switch, rc as SwitchInput, Dd as Table, Od as TableProvider, kd as TableRowProvider, Ad as TagsWrapper, Rd as TemplateCard, Ud as TemplateCardList, Bd as TemplateCardSkeleton, Sf as TerminalTabs, bo as Textarea, Md as ThemeTag, $s as ThumbImage, wf as TooltipList, c as TooltipOverlayScroller, Ef as Transfer, Df as TransitionWrapper, Of as UploadAudio, ji as UploadImage, kf as ViewerEditor, Xd as XTerminal, zi as config, ac as icons, Sc as processImage, ga as useAccess, Oi as useActions, Ni as useAddImage, Pi as useAppUtils, Fi as useBodyScroll, Ri as useChunkFetch, Xi as useChunkRequest, Ea as useColumnWrapperContext, Ea as useWrapperContext, Zi as useContainerScroll, a as useCoreUIContext, va as useCoreUISlots, ya as useCurrentUser, Qi as useDeferredRequest, ia as useDownloadLogs, ea as useDownloadStream, aa as useExpandedRowKeys, kl as useFinishFailed, o as useIntl, d as useOverlayScroller, sa as useQueryData, sa as useRequest, oa as useQueryDataList, ca as useRequestToken, la as useResponsive, Al as useScrollActiveChange, Fc as useScrollerContext, ba as useTableFetch, fa as useTableMultiSort, ua as useTableRowSelection, da as useTableSort, Td as useTableSorter, pa as useUpdateChunkedList, Io as useValidateFields, ma as useWatchList, ha as useWindowResize, S as utils };