shared-ritm 1.3.124 → 1.3.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +502 -481
  3. package/dist/shared-ritm.umd.js +2 -2
  4. package/dist/types/api/services/PhotoService.d.ts +40 -0
  5. package/dist/types/stories/Button.stories.d.ts +13 -0
  6. package/dist/types/stories/Checkbox.stories.d.ts +7 -0
  7. package/dist/types/stories/Confirm.stories.d.ts +8 -0
  8. package/dist/types/stories/DatePicker.stories.d.ts +8 -0
  9. package/dist/types/stories/Dropdown.stories.d.ts +8 -0
  10. package/dist/types/stories/File.stories.d.ts +8 -0
  11. package/dist/types/stories/Icon.stories.d.ts +7 -0
  12. package/dist/types/stories/Input.stories.d.ts +11 -0
  13. package/dist/types/stories/InputNew.stories.d.ts +12 -0
  14. package/dist/types/stories/InputSearch.stories.d.ts +10 -0
  15. package/dist/types/stories/Loader.stories.d.ts +8 -0
  16. package/dist/types/stories/Select.stories.d.ts +7 -0
  17. package/dist/types/stories/Toggle.stories.d.ts +8 -0
  18. package/package.json +70 -70
  19. package/src/App.vue +2461 -2461
  20. package/src/api/services/AuthService.ts +67 -67
  21. package/src/api/services/ControlsService.ts +100 -100
  22. package/src/api/services/EquipmentService.ts +68 -68
  23. package/src/api/services/GanttService.ts +58 -58
  24. package/src/api/services/InstrumentsService.ts +76 -76
  25. package/src/api/services/RepairsService.ts +111 -111
  26. package/src/api/services/TasksService.ts +165 -165
  27. package/src/api/services/UserIssueService.ts +32 -32
  28. package/src/api/services/UserService.ts +129 -129
  29. package/src/api/services/VideoService.ts +118 -118
  30. package/src/api/settings/ApiService.ts +185 -185
  31. package/src/api/types/Api_Auth.ts +121 -121
  32. package/src/api/types/Api_Controls.ts +112 -112
  33. package/src/api/types/Api_Equipment.ts +54 -54
  34. package/src/api/types/Api_Instruments.ts +182 -182
  35. package/src/api/types/Api_Metrics.ts +89 -89
  36. package/src/api/types/Api_Repairs.ts +200 -200
  37. package/src/api/types/Api_Search.ts +81 -81
  38. package/src/api/types/Api_Tasks.ts +378 -378
  39. package/src/api/types/Api_User.ts +161 -161
  40. package/src/api/types/Api_User_Issue.ts +36 -36
  41. package/src/api/types/Api_Video.ts +244 -244
  42. package/src/common/app-button/Button.stories.ts +369 -369
  43. package/src/common/app-checkbox/AppCheckbox.vue +33 -31
  44. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  45. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  46. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  47. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  48. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  49. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  50. package/src/common/app-file/File.stories.ts +104 -104
  51. package/src/common/app-icon/AppIcon.vue +110 -110
  52. package/src/common/app-icon/Icon.stories.ts +91 -91
  53. package/src/common/app-input/AppInput.vue +150 -150
  54. package/src/common/app-input/Input.stories.ts +160 -160
  55. package/src/common/app-input-new/AppInputNew.vue +181 -181
  56. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  57. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  58. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  59. package/src/common/app-loader/Loader.stories.ts +114 -114
  60. package/src/common/app-modal/index.vue +101 -101
  61. package/src/common/app-select/AppSelect.vue +159 -159
  62. package/src/common/app-select/Select.stories.ts +155 -155
  63. package/src/common/app-sheet-new/AppSheetNew.vue +254 -254
  64. package/src/common/app-sidebar/AppSidebar.vue +177 -177
  65. package/src/common/app-table/AppTable.vue +313 -313
  66. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  67. package/src/common/app-table/components/ModalSelect.vue +311 -302
  68. package/src/common/app-table/components/TableModal.vue +369 -369
  69. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  70. package/src/common/app-table/controllers/useTableModel.ts +98 -98
  71. package/src/common/app-toggle/AppToggle.vue +12 -12
  72. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  73. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  74. package/src/configs/storybook.ts +14 -14
  75. package/src/icons/sidebar/user-requests-icon.vue +23 -23
  76. package/src/index.ts +134 -134
  77. package/src/shared/styles/general.css +140 -140
  78. package/src/styles/variables.sass +12 -12
  79. package/src/utils/files.ts +38 -38
  80. package/src/utils/helpers.ts +59 -59
@@ -1,7 +1,7 @@
1
1
  var d1 = Object.defineProperty;
2
2
  var f1 = (e, t, n) => t in e ? d1(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var qf = (e, t, n) => f1(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { markRaw as tv, defineComponent as Dt, reactive as ha, h as T, withDirectives as Jn, computed as _, ref as X, getCurrentInstance as Xe, nextTick as Ct, watch as me, onMounted as vn, onBeforeUnmount as At, onUnmounted as nv, Teleport as h1, onDeactivated as vo, unref as An, Transition as jn, useCssVars as Wo, createBlock as Ae, openBlock as K, mergeProps as ui, withCtx as pe, renderSlot as $t, createCommentVNode as We, createTextVNode as Wt, toDisplayString as pt, toRaw as to, createElementBlock as ge, createVNode as xe, createElementVNode as fe, onBeforeUpdate as rv, inject as fo, onActivated as La, normalizeClass as Ue, mergeModels as li, useModel as Jc, createSlots as qa, provide as su, normalizeStyle as Wr, getCurrentScope as p1, onScopeDispose as v1, createStaticVNode as ir, resolveDynamicComponent as m1, Fragment as hr, renderList as Hr, vShow as ov, onBeforeMount as ed, onUpdated as g1, useSlots as uu, shallowReactive as y1, resolveComponent as b1, normalizeProps as lc, guardReactiveProps as w1, withModifiers as Do, toHandlers as x1 } from "vue";
4
+ import { markRaw as tv, defineComponent as Dt, reactive as ha, h as T, withDirectives as Jn, computed as _, ref as X, getCurrentInstance as Xe, nextTick as Ct, watch as me, onMounted as mn, onBeforeUnmount as At, onUnmounted as nv, Teleport as h1, onDeactivated as vo, unref as fn, Transition as jn, useCssVars as Wo, createBlock as Ae, openBlock as K, mergeProps as ui, withCtx as pe, renderSlot as Bt, createCommentVNode as We, createTextVNode as Wt, toDisplayString as pt, toRaw as to, createElementBlock as ge, createVNode as xe, createElementVNode as fe, onBeforeUpdate as rv, inject as fo, onActivated as La, normalizeClass as Ue, mergeModels as li, useModel as Jc, createSlots as qa, provide as su, normalizeStyle as Wr, getCurrentScope as p1, onScopeDispose as v1, createStaticVNode as ir, resolveDynamicComponent as m1, Fragment as hr, renderList as Hr, vShow as ov, onBeforeMount as ed, onUpdated as g1, useSlots as uu, shallowReactive as y1, resolveComponent as b1, normalizeProps as lc, guardReactiveProps as w1, withModifiers as Do, toHandlers as x1 } from "vue";
5
5
  function Gn(e, t, n, r) {
6
6
  return Object.defineProperty(e, t, {
7
7
  get: n,
@@ -244,7 +244,7 @@ function D1(e) {
244
244
  function Fn(e) {
245
245
  e.stopPropagation();
246
246
  }
247
- function En(e) {
247
+ function Rn(e) {
248
248
  e.cancelable !== !1 && e.preventDefault();
249
249
  }
250
250
  function It(e) {
@@ -254,9 +254,9 @@ function Ku(e, t) {
254
254
  if (e === void 0 || t === !0 && e.__dragPrevented === !0)
255
255
  return;
256
256
  const n = t === !0 ? (r) => {
257
- r.__dragPrevented = !0, r.addEventListener("dragstart", En, Qt.notPassiveCapture);
257
+ r.__dragPrevented = !0, r.addEventListener("dragstart", Rn, Qt.notPassiveCapture);
258
258
  } : (r) => {
259
- delete r.__dragPrevented, r.removeEventListener("dragstart", En, Qt.notPassiveCapture);
259
+ delete r.__dragPrevented, r.removeEventListener("dragstart", Rn, Qt.notPassiveCapture);
260
260
  };
261
261
  e.querySelectorAll("a, img").forEach(n);
262
262
  }
@@ -313,11 +313,11 @@ function rd({
313
313
  Ur(h, 13) === !0 && l.toggle(h);
314
314
  },
315
315
  contextClick(h) {
316
- o.hide(h), En(h), Ct(() => {
316
+ o.hide(h), Rn(h), Ct(() => {
317
317
  o.show(h), h.qAnchorHandled = !0;
318
318
  });
319
319
  },
320
- prevent: En,
320
+ prevent: Rn,
321
321
  mobileTouch(h) {
322
322
  if (l.mobileCleanup(h), u(h) !== !0) return;
323
323
  o.hide(h), i.value.classList.add("non-selectable");
@@ -377,7 +377,7 @@ function rd({
377
377
  i.value !== null && c(), f();
378
378
  }), me(() => r.noParentEvent, (h) => {
379
379
  i.value !== null && (h === !0 ? c() : n());
380
- }), vn(() => {
380
+ }), mn(() => {
381
381
  f(), t !== !0 && r.modelValue === !0 && i.value === null && a("update:modelValue", !1);
382
382
  }), At(() => {
383
383
  s !== null && clearTimeout(s), c();
@@ -477,7 +477,7 @@ function _i({
477
477
  }
478
478
  me(() => s.modelValue, v), n !== void 0 && od(i) === !0 && me(() => l.$route.fullPath, () => {
479
479
  n.value === !0 && e.value === !0 && p();
480
- }), a === !0 && vn(() => {
480
+ }), a === !0 && mn(() => {
481
481
  v(s.modelValue);
482
482
  });
483
483
  const y = { show: f, hide: p, toggle: d };
@@ -662,7 +662,7 @@ function $1(e) {
662
662
  } catch {
663
663
  return;
664
664
  }
665
- const t = An(e);
665
+ const t = fn(e);
666
666
  if (t)
667
667
  return t.$el || t;
668
668
  }
@@ -1740,7 +1740,7 @@ const Et = je({
1740
1740
  if ((D == null ? void 0 : D.type) === "keyup") {
1741
1741
  if (ea === f.value && Ur(D, [13, 32]) === !0) {
1742
1742
  const O = new MouseEvent("click", D);
1743
- O.qKeyEvent = !0, D.defaultPrevented === !0 && En(O), D.cancelBubble === !0 && Fn(O), f.value.dispatchEvent(O), It(D), D.qKeyEvent = !0;
1743
+ O.qKeyEvent = !0, D.defaultPrevented === !0 && Rn(O), D.cancelBubble === !0 && Fn(O), f.value.dispatchEvent(O), It(D), D.qKeyEvent = !0;
1744
1744
  }
1745
1745
  n("keyup", D);
1746
1746
  }
@@ -1898,7 +1898,7 @@ const Et = je({
1898
1898
  onClick: o
1899
1899
  }), {
1900
1900
  default: pe(() => [
1901
- $t(s.$slots, "default"),
1901
+ Bt(s.$slots, "default"),
1902
1902
  e.badge ? (K(), Ae(av, {
1903
1903
  key: 0,
1904
1904
  style: { padding: "6px", top: "-10px", right: "-10px", "font-size": "12px" },
@@ -1934,13 +1934,13 @@ const Et = je({
1934
1934
  return n;
1935
1935
  }, my = {
1936
1936
  $style: vy
1937
- }, yc = /* @__PURE__ */ De(hy, [["__cssModules", my]]), Cn = {
1937
+ }, yc = /* @__PURE__ */ De(hy, [["__cssModules", my]]), kn = {
1938
1938
  dark: {
1939
1939
  type: Boolean,
1940
1940
  default: null
1941
1941
  }
1942
1942
  };
1943
- function kn(e, t) {
1943
+ function _n(e, t) {
1944
1944
  return _(() => e.dark === null ? t.dark.isActive : e.dark);
1945
1945
  }
1946
1946
  function Ev(e, t) {
@@ -1988,7 +1988,7 @@ const Tv = {
1988
1988
  lg: 50,
1989
1989
  xl: 60
1990
1990
  }, Iv = {
1991
- ...Cn,
1991
+ ...kn,
1992
1992
  ...Va,
1993
1993
  ...Ho,
1994
1994
  modelValue: {
@@ -2016,7 +2016,7 @@ const Tv = {
2016
2016
  tabindex: [String, Number]
2017
2017
  }, Av = ["update:modelValue"];
2018
2018
  function Dv(e, t) {
2019
- const { props: n, slots: r, emit: o, proxy: a } = Xe(), { $q: i } = a, s = kn(n, i), u = X(null), { refocusTargetEl: l, refocusTarget: c } = Ev(n, u), d = za(n, Tv), f = _(
2019
+ const { props: n, slots: r, emit: o, proxy: a } = Xe(), { $q: i } = a, s = _n(n, i), u = X(null), { refocusTargetEl: l, refocusTarget: c } = Ev(n, u), d = za(n, Tv), f = _(
2020
2020
  () => n.val !== void 0 && Array.isArray(n.modelValue)
2021
2021
  ), h = _(() => {
2022
2022
  const A = to(n.val);
@@ -2323,11 +2323,16 @@ const Ry = {
2323
2323
  },
2324
2324
  setup(e) {
2325
2325
  Wo((r) => ({
2326
- e1a36b5a: r.borderRadius,
2327
- v32ac7bdb: n.value,
2328
- v4f3b13e5: r.borderWidth
2326
+ f2d2d0b8: r.borderRadius,
2327
+ v2a14c92c: n.value,
2328
+ v28494f18: r.borderWidth
2329
2329
  }));
2330
- const t = e, n = _(() => Ry.getPaletteColor(t.borderColor));
2330
+ const t = e, n = _(
2331
+ () => {
2332
+ var r;
2333
+ return (r = t.borderColor) != null && r.startsWith("#") ? t.borderColor : Ry.getPaletteColor(t.borderColor);
2334
+ }
2335
+ );
2331
2336
  return (r, o) => (K(), Ae(oi, ui(r.$props, {
2332
2337
  class: r.$style["app-checkbox"]
2333
2338
  }), null, 16, ["class"]));
@@ -2393,7 +2398,7 @@ function Py(e) {
2393
2398
  throw new Error("Invalid Jalaali year " + e);
2394
2399
  for (s = 1; s < t && (r = oo[s], o = r - n, !(e < r)); s += 1)
2395
2400
  n = r;
2396
- return i = e - n, o - i < 6 && (i = i - o + zt(o + 4, 33) * 33), a = Kn(Kn(i + 1, 33) - 1, 4), a === -1 && (a = 4), a;
2401
+ return i = e - n, o - i < 6 && (i = i - o + $t(o + 4, 33) * 33), a = Kn(Kn(i + 1, 33) - 1, 4), a === -1 && (a = 4), a;
2397
2402
  }
2398
2403
  function Fv(e, t) {
2399
2404
  const n = oo.length, r = e + 621;
@@ -2401,10 +2406,10 @@ function Fv(e, t) {
2401
2406
  if (e < a || e >= oo[n - 1])
2402
2407
  throw new Error("Invalid Jalaali year " + e);
2403
2408
  for (c = 1; c < n && (i = oo[c], s = i - a, !(e < i)); c += 1)
2404
- o = o + zt(s, 33) * 8 + zt(Kn(s, 33), 4), a = i;
2405
- l = e - a, o = o + zt(l, 33) * 8 + zt(Kn(l, 33) + 3, 4), Kn(s, 33) === 4 && s - l === 4 && (o += 1);
2406
- const d = zt(r, 4) - zt((zt(r, 100) + 1) * 3, 4) - 150, f = 20 + o - d;
2407
- return t || (s - l < 6 && (l = l - s + zt(s + 4, 33) * 33), u = Kn(Kn(l + 1, 33) - 1, 4), u === -1 && (u = 4)), {
2409
+ o = o + $t(s, 33) * 8 + $t(Kn(s, 33), 4), a = i;
2410
+ l = e - a, o = o + $t(l, 33) * 8 + $t(Kn(l, 33) + 3, 4), Kn(s, 33) === 4 && s - l === 4 && (o += 1);
2411
+ const d = $t(r, 4) - $t(($t(r, 100) + 1) * 3, 4) - 150, f = 20 + o - d;
2412
+ return t || (s - l < 6 && (l = l - s + $t(s + 4, 33) * 33), u = Kn(Kn(l + 1, 33) - 1, 4), u === -1 && (u = 4)), {
2408
2413
  leap: u,
2409
2414
  gy: r,
2410
2415
  march: f
@@ -2412,7 +2417,7 @@ function Fv(e, t) {
2412
2417
  }
2413
2418
  function By(e, t, n) {
2414
2419
  const r = Fv(e, !0);
2415
- return md(r.gy, 3, r.march) + (t - 1) * 31 - zt(t, 7) * (t - 7) + n - 1;
2420
+ return md(r.gy, 3, r.march) + (t - 1) * 31 - $t(t, 7) * (t - 7) + n - 1;
2416
2421
  }
2417
2422
  function Oy(e) {
2418
2423
  const t = Pv(e).gy;
@@ -2420,7 +2425,7 @@ function Oy(e) {
2420
2425
  const i = Fv(n, !1), s = md(t, 3, i.march);
2421
2426
  if (a = e - s, a >= 0) {
2422
2427
  if (a <= 185)
2423
- return o = 1 + zt(a, 31), r = Kn(a, 31) + 1, {
2428
+ return o = 1 + $t(a, 31), r = Kn(a, 31) + 1, {
2424
2429
  jy: n,
2425
2430
  jm: o,
2426
2431
  jd: r
@@ -2428,27 +2433,27 @@ function Oy(e) {
2428
2433
  a -= 186;
2429
2434
  } else
2430
2435
  n -= 1, a += 179, i.leap === 1 && (a += 1);
2431
- return o = 7 + zt(a, 30), r = Kn(a, 30) + 1, {
2436
+ return o = 7 + $t(a, 30), r = Kn(a, 30) + 1, {
2432
2437
  jy: n,
2433
2438
  jm: o,
2434
2439
  jd: r
2435
2440
  };
2436
2441
  }
2437
2442
  function md(e, t, n) {
2438
- let r = zt((e + zt(t - 8, 6) + 100100) * 1461, 4) + zt(153 * Kn(t + 9, 12) + 2, 5) + n - 34840408;
2439
- return r = r - zt(zt(e + 100100 + zt(t - 8, 6), 100) * 3, 4) + 752, r;
2443
+ let r = $t((e + $t(t - 8, 6) + 100100) * 1461, 4) + $t(153 * Kn(t + 9, 12) + 2, 5) + n - 34840408;
2444
+ return r = r - $t($t(e + 100100 + $t(t - 8, 6), 100) * 3, 4) + 752, r;
2440
2445
  }
2441
2446
  function Pv(e) {
2442
2447
  let t = 4 * e + 139361631;
2443
- t = t + zt(zt(4 * e + 183187720, 146097) * 3, 4) * 4 - 3908;
2444
- const n = zt(Kn(t, 1461), 4) * 5 + 308, r = zt(Kn(n, 153), 5) + 1, o = Kn(zt(n, 153), 12) + 1;
2448
+ t = t + $t($t(4 * e + 183187720, 146097) * 3, 4) * 4 - 3908;
2449
+ const n = $t(Kn(t, 1461), 4) * 5 + 308, r = $t(Kn(n, 153), 5) + 1, o = Kn($t(n, 153), 12) + 1;
2445
2450
  return {
2446
- gy: zt(t, 1461) - 100100 + zt(8 - o, 6),
2451
+ gy: $t(t, 1461) - 100100 + $t(8 - o, 6),
2447
2452
  gm: o,
2448
2453
  gd: r
2449
2454
  };
2450
2455
  }
2451
- function zt(e, t) {
2456
+ function $t(e, t) {
2452
2457
  return ~~(e / t);
2453
2458
  }
2454
2459
  function Kn(e, t) {
@@ -3361,7 +3366,7 @@ const Wv = je({
3361
3366
  props: {
3362
3367
  ...Ms,
3363
3368
  ...Ho,
3364
- ...Cn,
3369
+ ...kn,
3365
3370
  modelValue: {
3366
3371
  required: !0,
3367
3372
  validator: (e) => typeof e == "string" || Array.isArray(e) === !0 || Object(e) === e || e === null
@@ -3410,7 +3415,7 @@ const Wv = je({
3410
3415
  "navigation"
3411
3416
  ],
3412
3417
  setup(e, { slots: t, emit: n }) {
3413
- const { proxy: r } = Xe(), { $q: o } = r, a = kn(e, o), { getCache: i } = Dy(), { tabindex: s, headerClass: u, getLocale: l, getCurrentDate: c } = Ov(e, o);
3418
+ const { proxy: r } = Xe(), { $q: o } = r, a = _n(e, o), { getCache: i } = Dy(), { tabindex: s, headerClass: u, getLocale: l, getCurrentDate: c } = Ov(e, o);
3414
3419
  let d;
3415
3420
  const f = Rv(e), h = pu(f), p = X(null), m = X(xt()), v = X(l()), y = _(() => xt()), w = _(() => l()), b = _(() => c()), g = X(oe(m.value, v.value)), x = X(e.defaultView), C = _(() => o.lang.rtl === !0 ? "right" : "left"), S = X(C.value), E = X(C.value), R = g.value.year, k = X(R - R % Or - (R < 0 ? Or : 0)), I = X(null), A = _(() => {
3416
3421
  const N = e.landscape === !0 ? "landscape" : "portrait";
@@ -4007,10 +4012,10 @@ const Wv = je({
4007
4012
  tabindex: s.value,
4008
4013
  ...i("day#" + N.i, {
4009
4014
  onClick: () => {
4010
- qt(N.i);
4015
+ Vt(N.i);
4011
4016
  },
4012
4017
  onMouseover: () => {
4013
- Bt(N.i);
4018
+ Ot(N.i);
4014
4019
  }
4015
4020
  })
4016
4021
  },
@@ -4125,7 +4130,7 @@ const Wv = je({
4125
4130
  ]);
4126
4131
  }
4127
4132
  };
4128
- function qt(N) {
4133
+ function Vt(N) {
4129
4134
  const W = { ...g.value, day: N };
4130
4135
  if (e.range === !1) {
4131
4136
  it(W, ct.value);
@@ -4156,7 +4161,7 @@ const Wv = je({
4156
4161
  });
4157
4162
  }
4158
4163
  }
4159
- function Bt(N) {
4164
+ function Ot(N) {
4160
4165
  if (I.value !== null) {
4161
4166
  const W = { ...g.value, day: N };
4162
4167
  Object.assign(I.value, {
@@ -4491,7 +4496,7 @@ const vb = {
4491
4496
  props: {
4492
4497
  ...uv,
4493
4498
  ...Ci,
4494
- ...Cn,
4499
+ ...kn,
4495
4500
  ...ma,
4496
4501
  persistent: Boolean,
4497
4502
  autoClose: Boolean,
@@ -4535,7 +4540,7 @@ const vb = {
4535
4540
  let o = null, a, i, s;
4536
4541
  const u = Xe(), { proxy: l } = u, { $q: c } = l, d = X(null), f = X(!1), h = _(
4537
4542
  () => e.persistent !== !0 && e.noRouteDismiss !== !0
4538
- ), p = kn(e, c), { registerTick: m, removeTick: v } = ga(), { registerTimeout: y } = Ta(), { transitionProps: w, transitionStyle: b } = id(e), { localScrollTarget: g, changeScrollEvent: x, unconfigureScrollTarget: C } = lv(e, G), { anchorEl: S, canShow: E } = rd({ showing: f }), { hide: R } = _i({
4543
+ ), p = _n(e, c), { registerTick: m, removeTick: v } = ga(), { registerTimeout: y } = Ta(), { transitionProps: w, transitionStyle: b } = id(e), { localScrollTarget: g, changeScrollEvent: x, unconfigureScrollTarget: C } = lv(e, G), { anchorEl: S, canShow: E } = rd({ showing: f }), { hide: R } = _i({
4539
4544
  showing: f,
4540
4545
  canShow: E,
4541
4546
  handleShow: Y,
@@ -4833,7 +4838,7 @@ const ya = td(
4833
4838
  beforeMount(e, { value: t, modifiers: n }) {
4834
4839
  if (n.mouse !== !0 && rn.has.touch !== !0) return;
4835
4840
  function r(a, i) {
4836
- n.mouse === !0 && i === !0 ? It(a) : (n.stop === !0 && Fn(a), n.prevent === !0 && En(a));
4841
+ n.mouse === !0 && i === !0 ? It(a) : (n.stop === !0 && Fn(a), n.prevent === !0 && Rn(a));
4837
4842
  }
4838
4843
  const o = {
4839
4844
  uid: "qvtp_" + xb++,
@@ -4861,7 +4866,7 @@ const ya = td(
4861
4866
  if (rn.is.firefox === !0 && Ku(e, !0), o.lastEvt = a, i === !0 || n.stop === !0) {
4862
4867
  if (o.direction.all !== !0 && (i !== !0 || o.modifiers.mouseAllDir !== !0 && o.modifiers.mousealldir !== !0)) {
4863
4868
  const l = a.type.indexOf("mouse") !== -1 ? new MouseEvent(a.type, a) : new TouchEvent(a.type, a);
4864
- a.defaultPrevented === !0 && En(l), a.cancelBubble === !0 && Fn(l), Object.assign(l, {
4869
+ a.defaultPrevented === !0 && Rn(l), a.cancelBubble === !0 && Fn(l), Object.assign(l, {
4865
4870
  qKeyEvent: a.qKeyEvent,
4866
4871
  qClickOutside: a.qClickOutside,
4867
4872
  qAnchorHandled: a.qAnchorHandled,
@@ -4972,7 +4977,7 @@ function kb() {
4972
4977
  const _b = je({
4973
4978
  name: "QTime",
4974
4979
  props: {
4975
- ...Cn,
4980
+ ...kn,
4976
4981
  ...Ho,
4977
4982
  ...Ms,
4978
4983
  modelValue: {
@@ -5000,7 +5005,7 @@ const _b = je({
5000
5005
  },
5001
5006
  emits: Bv,
5002
5007
  setup(e, { slots: t, emit: n }) {
5003
- const r = Xe(), { $q: o } = r.proxy, a = kn(e, o), { tabindex: i, headerClass: s, getLocale: u, getCurrentDate: l } = Ov(e, o), c = Rv(e), d = pu(c);
5008
+ const r = Xe(), { $q: o } = r.proxy, a = _n(e, o), { tabindex: i, headerClass: s, getLocale: u, getCurrentDate: l } = Ov(e, o), c = Rv(e), d = pu(c);
5004
5009
  let f, h;
5005
5010
  const p = X(null), m = _(() => ue()), v = _(() => u()), y = _(() => ce()), w = pa(
5006
5011
  e.modelValue,
@@ -5423,9 +5428,9 @@ const _b = je({
5423
5428
  }
5424
5429
  });
5425
5430
  let il, Gi = 0;
5426
- const yn = new Array(256);
5431
+ const bn = new Array(256);
5427
5432
  for (let e = 0; e < 256; e++)
5428
- yn[e] = (e + 256).toString(16).substring(1);
5433
+ bn[e] = (e + 256).toString(16).substring(1);
5429
5434
  const Sb = (() => {
5430
5435
  const e = typeof crypto < "u" ? crypto : typeof window < "u" ? window.crypto || window.msCrypto : void 0;
5431
5436
  if (e !== void 0) {
@@ -5447,7 +5452,7 @@ const Sb = (() => {
5447
5452
  function Bs() {
5448
5453
  (il === void 0 || Gi + 16 > mh) && (Gi = 0, il = Sb(mh));
5449
5454
  const e = Array.prototype.slice.call(il, Gi, Gi += 16);
5450
- return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, yn[e[0]] + yn[e[1]] + yn[e[2]] + yn[e[3]] + "-" + yn[e[4]] + yn[e[5]] + "-" + yn[e[6]] + yn[e[7]] + "-" + yn[e[8]] + yn[e[9]] + "-" + yn[e[10]] + yn[e[11]] + yn[e[12]] + yn[e[13]] + yn[e[14]] + yn[e[15]];
5455
+ return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, bn[e[0]] + bn[e[1]] + bn[e[2]] + bn[e[3]] + "-" + bn[e[4]] + bn[e[5]] + "-" + bn[e[6]] + bn[e[7]] + "-" + bn[e[8]] + bn[e[9]] + "-" + bn[e[10]] + bn[e[11]] + bn[e[12]] + bn[e[13]] + bn[e[14]] + bn[e[15]];
5451
5456
  }
5452
5457
  function Eb(e) {
5453
5458
  return e ?? null;
@@ -5458,7 +5463,7 @@ function gh(e, t) {
5458
5463
  function Cd({ getValue: e, required: t = !0 } = {}) {
5459
5464
  if (qo.value === !0) {
5460
5465
  const n = e !== void 0 ? X(Eb(e())) : X(null);
5461
- return t === !0 && n.value === null && vn(() => {
5466
+ return t === !0 && n.value === null && mn(() => {
5462
5467
  n.value = `f_${Bs()}`;
5463
5468
  }), e !== void 0 && me(e, (r) => {
5464
5469
  n.value = gh(r, t);
@@ -5483,7 +5488,7 @@ function Rb() {
5483
5488
  return rv(r), r(), n;
5484
5489
  }
5485
5490
  const Tb = "_q_", Ti = "_q_l_", Qv = "_q_pc_", Zv = "_q_fo_", Jv = "_q_tabs_";
5486
- function fn() {
5491
+ function hn() {
5487
5492
  }
5488
5493
  function Ib({ validate: e, resetValidation: t, requiresQForm: n }) {
5489
5494
  const r = fo(Zv, !1);
@@ -5491,7 +5496,7 @@ function Ib({ validate: e, resetValidation: t, requiresQForm: n }) {
5491
5496
  const { props: o, proxy: a } = Xe();
5492
5497
  Object.assign(a, { validate: e, resetValidation: t }), me(() => o.disable, (i) => {
5493
5498
  i === !0 ? (typeof t == "function" && t(), r.unbindComponent(a)) : r.bindComponent(a);
5494
- }), vn(() => {
5499
+ }), mn(() => {
5495
5500
  o.disable !== !0 && r.bindComponent(a);
5496
5501
  }), At(() => {
5497
5502
  o.disable !== !0 && r.unbindComponent(a);
@@ -5614,7 +5619,7 @@ function Vo(e) {
5614
5619
  return e != null && ("" + e).length !== 0;
5615
5620
  }
5616
5621
  const em = {
5617
- ...Cn,
5622
+ ...kn,
5618
5623
  ...Db,
5619
5624
  label: String,
5620
5625
  stackLabel: Boolean,
@@ -5649,7 +5654,7 @@ const em = {
5649
5654
  maxlength: [Number, String]
5650
5655
  }, gu = ["update:modelValue", "clear", "focus", "blur"];
5651
5656
  function yu({ requiredForAttr: e = !0, tagProp: t, changeEvent: n = !1 } = {}) {
5652
- const { props: r, proxy: o } = Xe(), a = kn(r, o.$q), i = Cd({
5657
+ const { props: r, proxy: o } = Xe(), a = _n(r, o.$q), i = Cd({
5653
5658
  required: e,
5654
5659
  getValue: () => r.for
5655
5660
  });
@@ -5773,7 +5778,7 @@ function bu(e) {
5773
5778
  T("div", {
5774
5779
  class: "q-field__prepend q-field__marginal row no-wrap items-center",
5775
5780
  key: "prepend",
5776
- onClick: En
5781
+ onClick: Rn
5777
5782
  }, r.prepend())
5778
5783
  ), P.push(
5779
5784
  T("div", {
@@ -5805,7 +5810,7 @@ function bu(e) {
5805
5810
  T("div", {
5806
5811
  class: "q-field__append q-field__marginal row no-wrap items-center",
5807
5812
  key: "append",
5808
- onClick: En
5813
+ onClick: Rn
5809
5814
  }, r.append())
5810
5815
  ), e.getInnerAppend !== void 0 && P.push(
5811
5816
  z("inner-append", e.getInnerAppend())
@@ -5850,7 +5855,7 @@ function bu(e) {
5850
5855
  }, P);
5851
5856
  return T("div", {
5852
5857
  class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"),
5853
- onClick: En
5858
+ onClick: Rn
5854
5859
  }, [
5855
5860
  t.hideBottomSpace === !0 ? L : T(jn, { name: "q-transition--field-message" }, () => L),
5856
5861
  Y === !0 ? T("div", {
@@ -5869,7 +5874,7 @@ function bu(e) {
5869
5874
  F = !0;
5870
5875
  }), La(() => {
5871
5876
  F === !0 && t.autofocus === !0 && a.focus();
5872
- }), t.autofocus === !0 && vn(() => {
5877
+ }), t.autofocus === !0 && mn(() => {
5873
5878
  a.focus();
5874
5879
  }), At(() => {
5875
5880
  s !== null && clearTimeout(s);
@@ -5890,7 +5895,7 @@ function bu(e) {
5890
5895
  }, [
5891
5896
  r.before !== void 0 ? T("div", {
5892
5897
  class: "q-field__before q-field__marginal row no-wrap items-center",
5893
- onClick: En
5898
+ onClick: Rn
5894
5899
  }, r.before()) : null,
5895
5900
  T("div", {
5896
5901
  class: "q-field__inner relative-position col self-stretch"
@@ -5905,7 +5910,7 @@ function bu(e) {
5905
5910
  ]),
5906
5911
  r.after !== void 0 ? T("div", {
5907
5912
  class: "q-field__after q-field__marginal row no-wrap items-center",
5908
- onClick: En
5913
+ onClick: Rn
5909
5914
  }, r.after()) : null
5910
5915
  ]);
5911
5916
  };
@@ -6384,7 +6389,7 @@ const $a = je({
6384
6389
  }
6385
6390
  At(() => {
6386
6391
  H();
6387
- }), vn(() => {
6392
+ }), mn(() => {
6388
6393
  e.autogrow === !0 && F();
6389
6394
  }), Object.assign(C, {
6390
6395
  innerValue: h,
@@ -6560,7 +6565,7 @@ const zb = { class: "app-input-new" }, $b = {
6560
6565
  onBlur: d[4] || (d[4] = (f) => r("blur"))
6561
6566
  }, {
6562
6567
  append: pe(() => [
6563
- $t(c.$slots, "append", {}, void 0, !0),
6568
+ Bt(c.$slots, "append", {}, void 0, !0),
6564
6569
  e.type === "password" ? (K(), Ae(St, {
6565
6570
  key: 0,
6566
6571
  name: a.value ? "visibility" : "visibility_off",
@@ -6581,7 +6586,7 @@ const zb = { class: "app-input-new" }, $b = {
6581
6586
  label: "UUID",
6582
6587
  size: "sm",
6583
6588
  class: "q-ml-sm uuid-btn",
6584
- onClick: d[2] || (d[2] = (f) => i.value = An(am)())
6589
+ onClick: d[2] || (d[2] = (f) => i.value = fn(am)())
6585
6590
  })) : We("", !0),
6586
6591
  e.copyable ? (K(), Ae(St, {
6587
6592
  key: 3,
@@ -6593,13 +6598,13 @@ const zb = { class: "app-input-new" }, $b = {
6593
6598
  }, null, 8, ["disable"])) : We("", !0)
6594
6599
  ]),
6595
6600
  default: pe(() => [
6596
- $t(c.$slots, "default", {}, void 0, !0)
6601
+ Bt(c.$slots, "default", {}, void 0, !0)
6597
6602
  ]),
6598
6603
  _: 3
6599
6604
  }, 8, ["modelValue", "type", "rules", "placeholder", "disable", "readonly", "class", "error", "autocomplete", "debounce", "loading", "maxlength", "counter"])
6600
6605
  ]));
6601
6606
  }
6602
- }), Ub = /* @__PURE__ */ De(Hb, [["__scopeId", "data-v-726438b3"]]), jb = { class: "datepicker" }, Gb = /* @__PURE__ */ Dt({
6607
+ }), Ub = /* @__PURE__ */ De(Hb, [["__scopeId", "data-v-031cd510"]]), jb = { class: "datepicker" }, Gb = /* @__PURE__ */ Dt({
6603
6608
  __name: "AppDatepicker",
6604
6609
  props: /* @__PURE__ */ li({
6605
6610
  label: { default: "" },
@@ -6800,7 +6805,7 @@ const zb = { class: "app-input-new" }, $b = {
6800
6805
  emits: ["update:modelValue", "button-click", "clear", "focus", "blur", "click"],
6801
6806
  setup(e, { emit: t }) {
6802
6807
  Wo((u) => ({
6803
- a452a446: u.height
6808
+ e99037c4: u.height
6804
6809
  }));
6805
6810
  const n = e, r = t, o = X(!1), a = _(() => n.type === "password" ? o.value ? "text" : "password" : n.type || "text"), i = _({
6806
6811
  get: () => n.modelValue !== null && n.modelValue !== void 0 && n.type === "number" ? +n.modelValue : n.modelValue,
@@ -6973,9 +6978,9 @@ const zb = { class: "app-input-new" }, $b = {
6973
6978
  }, zD = /* @__PURE__ */ De(Qb, [["__cssModules", Jb]]), e2 = je({
6974
6979
  name: "QPageContainer",
6975
6980
  setup(e, { slots: t }) {
6976
- const { proxy: { $q: n } } = Xe(), r = fo(Ti, fn);
6977
- if (r === fn)
6978
- return console.error("QPageContainer needs to be child of QLayout"), fn;
6981
+ const { proxy: { $q: n } } = Xe(), r = fo(Ti, hn);
6982
+ if (r === hn)
6983
+ return console.error("QPageContainer needs to be child of QLayout"), hn;
6979
6984
  su(Qv, !0);
6980
6985
  const o = _(() => {
6981
6986
  const a = {};
@@ -7046,7 +7051,7 @@ const zb = { class: "app-input-new" }, $b = {
7046
7051
  }
7047
7052
  }
7048
7053
  const { proxy: c } = Xe();
7049
- return me(() => c.$q.lang.rtl, i), vn(() => {
7054
+ return me(() => c.$q.lang.rtl, i), mn(() => {
7050
7055
  a = c.$el.parentNode, s();
7051
7056
  }), At(() => {
7052
7057
  r == null || r(), u();
@@ -7058,7 +7063,7 @@ const zb = { class: "app-input-new" }, $b = {
7058
7063
  });
7059
7064
  function n2() {
7060
7065
  const e = X(!qo.value);
7061
- return e.value === !1 && vn(() => {
7066
+ return e.value === !1 && mn(() => {
7062
7067
  e.value = !0;
7063
7068
  }), { isHydrated: e };
7064
7069
  }
@@ -7093,7 +7098,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7093
7098
  l(!0);
7094
7099
  });
7095
7100
  };
7096
- return vn(() => {
7101
+ return mn(() => {
7097
7102
  l();
7098
7103
  }), At(() => {
7099
7104
  n !== null && clearTimeout(n), u !== void 0 && (u.disconnect !== void 0 ? u.disconnect() : r && u.unobserve(r));
@@ -7106,7 +7111,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7106
7111
  };
7107
7112
  const { isHydrated: c } = n2();
7108
7113
  let d;
7109
- return vn(() => {
7114
+ return mn(() => {
7110
7115
  Ct(() => {
7111
7116
  r = s.$el, r && l();
7112
7117
  });
@@ -7296,7 +7301,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7296
7301
  i.observe(a), At(() => i.disconnect());
7297
7302
  });
7298
7303
  }
7299
- return vn(() => {
7304
+ return mn(() => {
7300
7305
  o();
7301
7306
  }), (a, i) => (K(), Ae(r2, {
7302
7307
  class: Ue(a.$style.layout),
@@ -7314,8 +7319,8 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7314
7319
  backdrop: !0
7315
7320
  }, null, 8, ["loading"])
7316
7321
  ], 2)) : We("", !0),
7317
- $t(a.$slots, "drawer"),
7318
- $t(a.$slots, "header", {
7322
+ Bt(a.$slots, "drawer"),
7323
+ Bt(a.$slots, "header", {
7319
7324
  style: Wr(r.value)
7320
7325
  }),
7321
7326
  xe(e2, {
@@ -7323,13 +7328,13 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7323
7328
  onWheel: n
7324
7329
  }, {
7325
7330
  default: pe(() => [
7326
- $t(a.$slots, "content", {
7331
+ Bt(a.$slots, "content", {
7327
7332
  style: Wr(r.value)
7328
7333
  })
7329
7334
  ]),
7330
7335
  _: 3
7331
7336
  }, 8, ["class"]),
7332
- $t(a.$slots, "footer")
7337
+ Bt(a.$slots, "footer")
7333
7338
  ]),
7334
7339
  _: 3
7335
7340
  }, 8, ["class"]));
@@ -7353,7 +7358,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7353
7358
  }, Os = je({
7354
7359
  name: "QSeparator",
7355
7360
  props: {
7356
- ...Cn,
7361
+ ...kn,
7357
7362
  spaced: [Boolean, String],
7358
7363
  inset: [Boolean, String],
7359
7364
  vertical: Boolean,
@@ -7361,7 +7366,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7361
7366
  size: String
7362
7367
  },
7363
7368
  setup(e) {
7364
- const t = Xe(), n = kn(e, t.proxy.$q), r = _(() => e.vertical === !0 ? "vertical" : "horizontal"), o = _(() => ` q-separator--${r.value}`), a = _(() => e.inset !== !1 ? `${o.value}-${c2[e.inset]}` : ""), i = _(
7369
+ const t = Xe(), n = _n(e, t.proxy.$q), r = _(() => e.vertical === !0 ? "vertical" : "horizontal"), o = _(() => ` q-separator--${r.value}`), a = _(() => e.inset !== !1 ? `${o.value}-${c2[e.inset]}` : ""), i = _(
7365
7370
  () => `q-separator${o.value}${a.value}` + (e.color !== void 0 ? ` bg-${e.color}` : "") + (n.value === !0 ? " q-separator--dark" : "")
7366
7371
  ), s = _(() => {
7367
7372
  const u = {};
@@ -7380,7 +7385,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7380
7385
  }), Nn = je({
7381
7386
  name: "QItem",
7382
7387
  props: {
7383
- ...Cn,
7388
+ ...kn,
7384
7389
  ...hd,
7385
7390
  tag: {
7386
7391
  type: String,
@@ -7399,7 +7404,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7399
7404
  },
7400
7405
  emits: ["click", "keyup"],
7401
7406
  setup(e, { slots: t, emit: n }) {
7402
- const { proxy: { $q: r } } = Xe(), o = kn(e, r), { hasLink: a, linkAttrs: i, linkClass: s, linkTag: u, navigateOnClick: l } = _v(), c = X(null), d = X(null), f = _(
7407
+ const { proxy: { $q: r } } = Xe(), o = _n(e, r), { hasLink: a, linkAttrs: i, linkClass: s, linkTag: u, navigateOnClick: l } = _v(), c = X(null), d = X(null), f = _(
7403
7408
  () => e.clickable === !0 || a.value === !0 || e.tag === "label"
7404
7409
  ), h = _(
7405
7410
  () => e.disable !== !0 && f.value === !0
@@ -7444,7 +7449,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7444
7449
  }), d2 = ["ul", "ol"], Sd = je({
7445
7450
  name: "QList",
7446
7451
  props: {
7447
- ...Cn,
7452
+ ...kn,
7448
7453
  bordered: Boolean,
7449
7454
  dense: Boolean,
7450
7455
  separator: Boolean,
@@ -7455,7 +7460,7 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7455
7460
  }
7456
7461
  },
7457
7462
  setup(e, { slots: t }) {
7458
- const n = Xe(), r = kn(e, n.proxy.$q), o = _(
7463
+ const n = Xe(), r = _n(e, n.proxy.$q), o = _(
7459
7464
  () => d2.includes(e.tag) ? null : "list"
7460
7465
  ), a = _(
7461
7466
  () => "q-list" + (e.bordered === !0 ? " q-list--bordered" : "") + (e.dense === !0 ? " q-list--dense" : "") + (e.separator === !0 ? " q-list--separator" : "") + (r.value === !0 ? " q-list--dark" : "") + (e.padding === !0 ? " q-list--padding" : "")
@@ -7494,9 +7499,9 @@ const um = typeof ResizeObserver < "u", Eh = um === !0 ? {} : {
7494
7499
  },
7495
7500
  emits: ["reveal", "focusin"],
7496
7501
  setup(e, { slots: t, emit: n }) {
7497
- const { proxy: { $q: r } } = Xe(), o = fo(Ti, fn);
7498
- if (o === fn)
7499
- return console.error("QHeader needs to be child of QLayout"), fn;
7502
+ const { proxy: { $q: r } } = Xe(), o = fo(Ti, hn);
7503
+ if (o === hn)
7504
+ return console.error("QHeader needs to be child of QLayout"), hn;
7500
7505
  const a = X(parseInt(e.heightHint, 10)), i = X(!0), s = _(
7501
7506
  () => e.reveal === !0 || o.view.value.indexOf("H") !== -1 || r.platform.is.ios && o.isContainer.value === !0
7502
7507
  ), u = _(() => {
@@ -7603,7 +7608,7 @@ function p2(e) {
7603
7608
  return p1() ? (v1(e), !0) : !1;
7604
7609
  }
7605
7610
  function lm(e) {
7606
- return typeof e == "function" ? e() : An(e);
7611
+ return typeof e == "function" ? e() : fn(e);
7607
7612
  }
7608
7613
  const cm = typeof window < "u" && typeof document < "u";
7609
7614
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -8497,8 +8502,8 @@ const jx = /* @__PURE__ */ De(Wx, [["render", Ux]]), Gx = /* @__PURE__ */ Dt({
8497
8502
  },
8498
8503
  setup(e) {
8499
8504
  Wo((o) => ({
8500
- v65dd3b2f: o.color,
8501
- v66692ab5: o.size
8505
+ dec784be: o.color,
8506
+ v4931dbfa: o.size
8502
8507
  }));
8503
8508
  const t = e;
8504
8509
  function n(o) {
@@ -8694,11 +8699,11 @@ const jx = /* @__PURE__ */ De(Wx, [["render", Ux]]), Gx = /* @__PURE__ */ Dt({
8694
8699
  styleFn: Function
8695
8700
  },
8696
8701
  setup(e, { slots: t }) {
8697
- const { proxy: { $q: n } } = Xe(), r = fo(Ti, fn);
8698
- if (r === fn)
8699
- return console.error("QPage needs to be a deep child of QLayout"), fn;
8700
- if (fo(Qv, fn) === fn)
8701
- return console.error("QPage needs to be child of QPageContainer"), fn;
8702
+ const { proxy: { $q: n } } = Xe(), r = fo(Ti, hn);
8703
+ if (r === hn)
8704
+ return console.error("QPage needs to be a deep child of QLayout"), hn;
8705
+ if (fo(Qv, hn) === hn)
8706
+ return console.error("QPage needs to be child of QPageContainer"), hn;
8702
8707
  const a = _(() => {
8703
8708
  const s = (r.header.space === !0 ? r.header.size : 0) + (r.footer.space === !0 ? r.footer.size : 0);
8704
8709
  if (typeof e.styleFn == "function") {
@@ -8720,7 +8725,7 @@ const jx = /* @__PURE__ */ De(Wx, [["render", Ux]]), Gx = /* @__PURE__ */ Dt({
8720
8725
  function dC(e, t) {
8721
8726
  return K(), Ae(lC, { class: "page-container" }, {
8722
8727
  default: pe(() => [
8723
- $t(e.$slots, "default", {}, void 0, !0)
8728
+ Bt(e.$slots, "default", {}, void 0, !0)
8724
8729
  ]),
8725
8730
  _: 3
8726
8731
  });
@@ -8734,7 +8739,7 @@ const HD = /* @__PURE__ */ De(cC, [["render", dC], ["__scopeId", "data-v-51e4160
8734
8739
  }, wu = je({
8735
8740
  name: "QChip",
8736
8741
  props: {
8737
- ...Cn,
8742
+ ...kn,
8738
8743
  ...Va,
8739
8744
  dense: Boolean,
8740
8745
  icon: String,
@@ -8766,7 +8771,7 @@ const HD = /* @__PURE__ */ De(cC, [["render", dC], ["__scopeId", "data-v-51e4160
8766
8771
  },
8767
8772
  emits: ["update:modelValue", "update:selected", "remove", "click"],
8768
8773
  setup(e, { slots: t, emit: n }) {
8769
- const { proxy: { $q: r } } = Xe(), o = kn(e, r), a = za(e, fC), i = _(() => e.selected === !0 || e.icon !== void 0), s = _(() => e.selected === !0 ? e.iconSelected || r.iconSet.chip.selected : e.icon), u = _(() => e.iconRemove || r.iconSet.chip.remove), l = _(
8774
+ const { proxy: { $q: r } } = Xe(), o = _n(e, r), a = za(e, fC), i = _(() => e.selected === !0 || e.icon !== void 0), s = _(() => e.selected === !0 ? e.iconSelected || r.iconSet.chip.selected : e.icon), u = _(() => e.iconRemove || r.iconSet.chip.remove), l = _(
8770
8775
  () => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
8771
8776
  ), c = _(() => {
8772
8777
  const v = e.outline === !0 && e.color || e.textColor;
@@ -8855,7 +8860,7 @@ const HD = /* @__PURE__ */ De(cC, [["render", dC], ["__scopeId", "data-v-51e4160
8855
8860
  yu({ tagProp: !0 })
8856
8861
  );
8857
8862
  }
8858
- }), hn = je({
8863
+ }), pn = je({
8859
8864
  name: "QItemSection",
8860
8865
  props: {
8861
8866
  avatar: Boolean,
@@ -9383,8 +9388,8 @@ const Rd = je({
9383
9388
  }), L = yu(), V = _(() => {
9384
9389
  const U = e.mapOptions === !0 && e.multiple !== !0, Se = e.modelValue !== void 0 && (e.modelValue !== null || U === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
9385
9390
  if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
9386
- const Te = e.mapOptions === !0 && h !== void 0 ? h : [], ht = Se.map((Ot) => Ve(Ot, Te));
9387
- return e.modelValue === null && U === !0 ? ht.filter((Ot) => Ot !== null) : ht;
9391
+ const Te = e.mapOptions === !0 && h !== void 0 ? h : [], ht = Se.map((Nt) => Ve(Nt, Te));
9392
+ return e.modelValue === null && U === !0 ? ht.filter((Nt) => Nt !== null) : ht;
9388
9393
  }
9389
9394
  return Se;
9390
9395
  }), G = _(() => {
@@ -9428,27 +9433,27 @@ const Rd = je({
9428
9433
  return [];
9429
9434
  const { from: U, to: Se } = D.value;
9430
9435
  return e.options.slice(U, Se).map((Te, ht) => {
9431
- const Ot = ve.value(Te) === !0, Yt = Ye(Te) === !0, Nt = U + ht, Xt = {
9436
+ const Nt = ve.value(Te) === !0, Yt = Ye(Te) === !0, Lt = U + ht, Xt = {
9432
9437
  clickable: !0,
9433
9438
  active: Yt,
9434
9439
  activeClass: Ft.value,
9435
9440
  manualFocus: !0,
9436
9441
  focused: !1,
9437
- disable: Ot,
9442
+ disable: Nt,
9438
9443
  tabindex: -1,
9439
9444
  dense: e.optionsDense,
9440
9445
  dark: ne.value,
9441
9446
  role: "option",
9442
9447
  "aria-selected": Yt === !0 ? "true" : "false",
9443
- id: `${L.targetUid.value}_${Nt}`,
9448
+ id: `${L.targetUid.value}_${Lt}`,
9444
9449
  onClick: () => {
9445
9450
  Tt(Te);
9446
9451
  }
9447
9452
  };
9448
- return Ot !== !0 && (s.value === Nt && (Xt.focused = !0), o.platform.is.desktop === !0 && (Xt.onMousemove = () => {
9449
- a.value === !0 && oe(Nt);
9453
+ return Nt !== !0 && (s.value === Lt && (Xt.focused = !0), o.platform.is.desktop === !0 && (Xt.onMousemove = () => {
9454
+ a.value === !0 && oe(Lt);
9450
9455
  })), {
9451
- index: Nt,
9456
+ index: Lt,
9452
9457
  opt: Te,
9453
9458
  html: ye.value(Te),
9454
9459
  label: J.value(Te),
@@ -9527,17 +9532,17 @@ const Rd = je({
9527
9532
  return;
9528
9533
  }
9529
9534
  if ((p !== !0 || l.value === !0) && L.focus(), at(), V.value.length === 0) {
9530
- const Nt = e.emitValue === !0 ? Te : U;
9531
- n("add", { index: 0, value: Nt }), n("update:modelValue", e.multiple === !0 ? [Nt] : Nt);
9535
+ const Lt = e.emitValue === !0 ? Te : U;
9536
+ n("add", { index: 0, value: Lt }), n("update:modelValue", e.multiple === !0 ? [Lt] : Lt);
9532
9537
  return;
9533
9538
  }
9534
- const ht = e.modelValue.slice(), Ot = Pe.value.findIndex((Nt) => ro(Nt, Te));
9535
- if (Ot !== -1)
9536
- n("remove", { index: Ot, value: ht.splice(Ot, 1)[0] });
9539
+ const ht = e.modelValue.slice(), Nt = Pe.value.findIndex((Lt) => ro(Lt, Te));
9540
+ if (Nt !== -1)
9541
+ n("remove", { index: Nt, value: ht.splice(Nt, 1)[0] });
9537
9542
  else {
9538
9543
  if (e.maxValues !== void 0 && ht.length >= e.maxValues) return;
9539
- const Nt = e.emitValue === !0 ? Te : U;
9540
- n("add", { index: ht.length, value: Nt }), ht.push(Nt);
9544
+ const Lt = e.emitValue === !0 ? Te : U;
9545
+ n("add", { index: ht.length, value: Lt }), ht.push(Lt);
9541
9546
  }
9542
9547
  n("update:modelValue", ht);
9543
9548
  }
@@ -9584,12 +9589,12 @@ const Rd = je({
9584
9589
  }
9585
9590
  if (U.target.value = "", d !== null && (clearTimeout(d), d = null), f !== null && (clearTimeout(f), f = null), tr(), typeof Se == "string" && Se.length !== 0) {
9586
9591
  const Te = Se.toLocaleLowerCase(), ht = (Yt) => {
9587
- const Nt = e.options.find((Xt) => String(Yt.value(Xt)).toLocaleLowerCase() === Te);
9588
- return Nt === void 0 ? !1 : (V.value.indexOf(Nt) === -1 ? Tt(Nt) : bt(), !0);
9589
- }, Ot = (Yt) => {
9590
- ht(se) !== !0 && Yt !== !0 && ht(J) !== !0 && $e(Se, !0, () => Ot(!0));
9592
+ const Lt = e.options.find((Xt) => String(Yt.value(Xt)).toLocaleLowerCase() === Te);
9593
+ return Lt === void 0 ? !1 : (V.value.indexOf(Lt) === -1 ? Tt(Lt) : bt(), !0);
9594
+ }, Nt = (Yt) => {
9595
+ ht(se) !== !0 && Yt !== !0 && ht(J) !== !0 && $e(Se, !0, () => Nt(!0));
9591
9596
  };
9592
- Ot();
9597
+ Nt();
9593
9598
  } else
9594
9599
  L.clearValue(U);
9595
9600
  }
@@ -9600,7 +9605,7 @@ const Rd = je({
9600
9605
  if (n("keydown", U), cu(U) === !0) return;
9601
9606
  const Se = u.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), Te = U.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (s.value !== -1 || Se === !0);
9602
9607
  if (U.keyCode === 27) {
9603
- En(U);
9608
+ Rn(U);
9604
9609
  return;
9605
9610
  }
9606
9611
  if (U.keyCode === 9 && Te === !1) {
@@ -9626,14 +9631,14 @@ const Rd = je({
9626
9631
  const ht = A.value;
9627
9632
  if ((b === void 0 || g < Date.now()) && (b = ""), ht > 0 && e.useInput !== !0 && U.key !== void 0 && U.key.length === 1 && U.altKey === !1 && U.ctrlKey === !1 && U.metaKey === !1 && (U.keyCode !== 32 || b.length !== 0)) {
9628
9633
  a.value !== !0 && Ze(U);
9629
- const Ot = U.key.toLocaleLowerCase(), Yt = b.length === 1 && b[0] === Ot;
9630
- g = Date.now() + 1500, Yt === !1 && (It(U), b += Ot);
9631
- const Nt = new RegExp("^" + b.split("").map((Zo) => mC.indexOf(Zo) !== -1 ? "\\" + Zo : Zo).join(".*"), "i");
9634
+ const Nt = U.key.toLocaleLowerCase(), Yt = b.length === 1 && b[0] === Nt;
9635
+ g = Date.now() + 1500, Yt === !1 && (It(U), b += Nt);
9636
+ const Lt = new RegExp("^" + b.split("").map((Zo) => mC.indexOf(Zo) !== -1 ? "\\" + Zo : Zo).join(".*"), "i");
9632
9637
  let Xt = s.value;
9633
- if (Yt === !0 || Xt < 0 || Nt.test(J.value(e.options[Xt])) !== !0)
9638
+ if (Yt === !0 || Xt < 0 || Lt.test(J.value(e.options[Xt])) !== !0)
9634
9639
  do
9635
9640
  Xt = rh(Xt + 1, -1, ht - 1);
9636
- while (Xt !== s.value && (ve.value(e.options[Xt]) === !0 || Nt.test(J.value(e.options[Xt])) !== !0));
9641
+ while (Xt !== s.value && (ve.value(e.options[Xt]) === !0 || Lt.test(J.value(e.options[Xt])) !== !0));
9637
9642
  s.value !== Xt && Ct(() => {
9638
9643
  oe(Xt), H(Xt), Xt >= 0 && e.useInput === !0 && e.fillInput === !0 && ke(J.value(e.options[Xt]), !0);
9639
9644
  });
@@ -9645,16 +9650,16 @@ const Rd = je({
9645
9650
  return;
9646
9651
  }
9647
9652
  if (Se === !0) {
9648
- const Ot = (Yt, Nt) => {
9653
+ const Nt = (Yt, Lt) => {
9649
9654
  var Zo;
9650
- if (Nt) {
9651
- if (Ah(Nt) !== !0) return;
9655
+ if (Lt) {
9656
+ if (Ah(Lt) !== !0) return;
9652
9657
  } else
9653
- Nt = e.newValueMode;
9658
+ Lt = e.newValueMode;
9654
9659
  if (He("", e.multiple !== !0, !0), Yt == null) return;
9655
- (Nt === "toggle" ? Tt : xt)(Yt, Nt === "add-unique"), e.multiple !== !0 && ((Zo = C.value) == null || Zo.focus(), bt());
9660
+ (Lt === "toggle" ? Tt : xt)(Yt, Lt === "add-unique"), e.multiple !== !0 && ((Zo = C.value) == null || Zo.focus(), bt());
9656
9661
  };
9657
- if (e.onNewValue !== void 0 ? n("newValue", u.value, Ot) : Ot(u.value), e.multiple !== !0) return;
9662
+ if (e.onNewValue !== void 0 ? n("newValue", u.value, Nt) : Nt(u.value), e.multiple !== !0) return;
9658
9663
  }
9659
9664
  a.value === !0 ? Ie() : L.innerLoading.value !== !0 && Ze();
9660
9665
  }
@@ -9692,7 +9697,7 @@ const Rd = je({
9692
9697
  key: Te.index,
9693
9698
  ...Te.itemProps
9694
9699
  }, () => T(
9695
- hn,
9700
+ pn,
9696
9701
  () => T(
9697
9702
  kc,
9698
9703
  () => T("span", {
@@ -9745,8 +9750,8 @@ const Rd = je({
9745
9750
  v !== null && clearTimeout(v), v = ht, n(
9746
9751
  "filter",
9747
9752
  U,
9748
- (Ot, Yt) => {
9749
- (Se === !0 || L.focused.value === !0) && v === ht && (clearTimeout(v), typeof Ot == "function" && Ot(), c.value = !1, Ct(() => {
9753
+ (Nt, Yt) => {
9754
+ (Se === !0 || L.focused.value === !0) && v === ht && (clearTimeout(v), typeof Nt == "function" && Nt(), c.value = !1, Ct(() => {
9750
9755
  L.innerLoading.value = !1, L.editable.value === !0 && (Se === !0 ? a.value === !0 && bt() : a.value === !0 ? Gu(!0) : a.value = !0), typeof Yt == "function" && Ct(() => {
9751
9756
  Yt(r);
9752
9757
  }), typeof Te == "function" && Ct(() => {
@@ -9783,14 +9788,14 @@ const Rd = je({
9783
9788
  ...tt.value,
9784
9789
  onScrollPassive: P,
9785
9790
  onBeforeShow: Of,
9786
- onBeforeHide: qt,
9787
- onShow: Bt
9791
+ onBeforeHide: Vt,
9792
+ onShow: Ot
9788
9793
  }, ur);
9789
9794
  }
9790
- function qt(U) {
9795
+ function Vt(U) {
9791
9796
  Nf(U), Ie();
9792
9797
  }
9793
- function Bt() {
9798
+ function Ot() {
9794
9799
  Y();
9795
9800
  }
9796
9801
  function N(U) {
@@ -9830,7 +9835,7 @@ const Rd = je({
9830
9835
  class: le.value + " scroll",
9831
9836
  style: e.popupContentStyle,
9832
9837
  ...tt.value,
9833
- onClick: En,
9838
+ onClick: Rn,
9834
9839
  onScrollPassive: P
9835
9840
  }, ur())
9836
9841
  ), T(Uo, {
@@ -9954,7 +9959,7 @@ const Rd = je({
9954
9959
  },
9955
9960
  onClick(U) {
9956
9961
  var Se;
9957
- if (En(U), p !== !0 && a.value === !0) {
9962
+ if (Rn(U), p !== !0 && a.value === !0) {
9958
9963
  Ie(), (Se = C.value) == null || Se.focus();
9959
9964
  return;
9960
9965
  }
@@ -9966,7 +9971,7 @@ const Rd = je({
9966
9971
  if (e.useInput === !0)
9967
9972
  Se.push(bo(U, Te));
9968
9973
  else if (L.editable.value === !0) {
9969
- const Ot = Te === !0 ? et.value : void 0;
9974
+ const Nt = Te === !0 ? et.value : void 0;
9970
9975
  Se.push(
9971
9976
  T("input", {
9972
9977
  ref: Te === !0 ? C : void 0,
@@ -9976,7 +9981,7 @@ const Rd = je({
9976
9981
  value: ze.value,
9977
9982
  readonly: !0,
9978
9983
  "data-autofocus": U === !0 || e.autofocus === !0 || void 0,
9979
- ...Ot,
9984
+ ...Nt,
9980
9985
  onKeydown: Gt,
9981
9986
  onKeyup: cn,
9982
9987
  onKeypress: Pt
@@ -9991,13 +9996,13 @@ const Rd = je({
9991
9996
  );
9992
9997
  }
9993
9998
  if (k.value !== void 0 && e.disable !== !0 && Pe.value.length !== 0) {
9994
- const Ot = Pe.value.map((Yt) => T("option", { value: Yt, selected: !0 }));
9999
+ const Nt = Pe.value.map((Yt) => T("option", { value: Yt, selected: !0 }));
9995
10000
  Se.push(
9996
10001
  T("select", {
9997
10002
  class: "hidden",
9998
10003
  name: k.value,
9999
10004
  multiple: e.multiple
10000
- }, Ot)
10005
+ }, Nt)
10001
10006
  );
10002
10007
  }
10003
10008
  const ht = e.useInput === !0 || Te !== !0 ? void 0 : L.splitAttrs.attributes.value;
@@ -10035,7 +10040,7 @@ const Rd = je({
10035
10040
  emits: ["update:modelValue"],
10036
10041
  setup(e, { emit: t }) {
10037
10042
  Wo((c) => ({
10038
- v4a6e20c2: c.borderColor
10043
+ v0a271ec0: c.borderColor
10039
10044
  }));
10040
10045
  const n = e, r = X({}), o = t, a = _({
10041
10046
  get() {
@@ -10050,7 +10055,7 @@ const Rd = je({
10050
10055
  s.value = c.toLowerCase();
10051
10056
  });
10052
10057
  }
10053
- return (c, d) => (K(), Ae(An(Rd), {
10058
+ return (c, d) => (K(), Ae(fn(Rd), {
10054
10059
  ref_key: "select",
10055
10060
  ref: r,
10056
10061
  modelValue: a.value,
@@ -10144,7 +10149,7 @@ const Rd = je({
10144
10149
  }), xu = je({
10145
10150
  name: "QCard",
10146
10151
  props: {
10147
- ...Cn,
10152
+ ...kn,
10148
10153
  tag: {
10149
10154
  type: String,
10150
10155
  default: "div"
@@ -10154,7 +10159,7 @@ const Rd = je({
10154
10159
  bordered: Boolean
10155
10160
  },
10156
10161
  setup(e, { slots: t }) {
10157
- const { proxy: { $q: n } } = Xe(), r = kn(e, n), o = _(
10162
+ const { proxy: { $q: n } } = Xe(), r = _n(e, n), o = _(
10158
10163
  () => "q-card" + (r.value === !0 ? " q-card--dark q-dark" : "") + (e.bordered === !0 ? " q-card--bordered" : "") + (e.square === !0 ? " q-card--square no-border-radius" : "") + (e.flat === !0 ? " q-card--flat no-shadow" : "")
10159
10164
  );
10160
10165
  return () => T(e.tag, { class: o.value }, kt(t.default));
@@ -10224,7 +10229,7 @@ const Rd = je({
10224
10229
  thickness: 3,
10225
10230
  color: "primary"
10226
10231
  })) : We("", !0)
10227
- ])) : $t(a.$slots, "default", { key: 1 }, void 0, !0)
10232
+ ])) : Bt(a.$slots, "default", { key: 1 }, void 0, !0)
10228
10233
  ])
10229
10234
  ]),
10230
10235
  _: 3
@@ -10240,7 +10245,7 @@ const Rd = je({
10240
10245
  color: "primary"
10241
10246
  })) : We("", !0)
10242
10247
  ])
10243
- ])) : $t(a.$slots, "default", { key: 1 }, void 0, !0)
10248
+ ])) : Bt(a.$slots, "default", { key: 1 }, void 0, !0)
10244
10249
  ], 64)) : We("", !0)
10245
10250
  ]),
10246
10251
  _: 3
@@ -10271,9 +10276,9 @@ const PC = ["click", "keydown"], BC = {
10271
10276
  }
10272
10277
  };
10273
10278
  function OC(e, t, n, r) {
10274
- const o = fo(Jv, fn);
10275
- if (o === fn)
10276
- return console.error("QTab/QRouteTab component needs to be child of QTabs"), fn;
10279
+ const o = fo(Jv, hn);
10280
+ if (o === hn)
10281
+ return console.error("QTab/QRouteTab component needs to be child of QTabs"), hn;
10277
10282
  const { proxy: a } = Xe(), i = X(null), s = X(null), u = X(null), l = _(() => e.disable === !0 || e.ripple === !1 ? !1 : Object.assign(
10278
10283
  { keyCodes: [13, 32], early: !0 },
10279
10284
  e.ripple === !0 ? {} : e.ripple
@@ -10330,7 +10335,7 @@ function OC(e, t, n, r) {
10330
10335
  };
10331
10336
  At(() => {
10332
10337
  o.unregisterTab(y);
10333
- }), vn(() => {
10338
+ }), mn(() => {
10334
10339
  o.registerTab(y);
10335
10340
  });
10336
10341
  function w(b, g) {
@@ -10699,7 +10704,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
10699
10704
  r("update:dialogRef", s);
10700
10705
  }
10701
10706
  });
10702
- return (s, u) => (K(), Ae(An(Uo), {
10707
+ return (s, u) => (K(), Ae(fn(Uo), {
10703
10708
  ref_key: "DialogRef",
10704
10709
  ref: i,
10705
10710
  "model-value": e.modelValue,
@@ -10777,9 +10782,9 @@ const qC = ["left", "center", "right", "justify"], VC = je({
10777
10782
  [Ed, !e.persistent]
10778
10783
  ])
10779
10784
  ])) : We("", !0),
10780
- $t(s.$slots, "default", {}, void 0, !0),
10781
- "actions" in An(o) ? (K(), ge("div", jC, [
10782
- $t(s.$slots, "actions", {}, void 0, !0)
10785
+ Bt(s.$slots, "default", {}, void 0, !0),
10786
+ "actions" in fn(o) ? (K(), ge("div", jC, [
10787
+ Bt(s.$slots, "actions", {}, void 0, !0)
10783
10788
  ])) : We("", !0)
10784
10789
  ])
10785
10790
  ], 4))
@@ -10793,12 +10798,12 @@ const qC = ["left", "center", "right", "justify"], VC = je({
10793
10798
  tab: KC
10794
10799
  }, XC = {
10795
10800
  $style: YC
10796
- }, GD = /* @__PURE__ */ De(GC, [["__cssModules", XC], ["__scopeId", "data-v-94e1b81b"]]), Dh = 150, QC = je({
10801
+ }, GD = /* @__PURE__ */ De(GC, [["__cssModules", XC], ["__scopeId", "data-v-319be864"]]), Dh = 150, QC = je({
10797
10802
  name: "QDrawer",
10798
10803
  inheritAttrs: !1,
10799
10804
  props: {
10800
10805
  ...Ci,
10801
- ...Cn,
10806
+ ...kn,
10802
10807
  side: {
10803
10808
  type: String,
10804
10809
  default: "left",
@@ -10839,9 +10844,9 @@ const qC = ["left", "center", "right", "justify"], VC = je({
10839
10844
  "miniState"
10840
10845
  ],
10841
10846
  setup(e, { slots: t, emit: n, attrs: r }) {
10842
- const o = Xe(), { proxy: { $q: a } } = o, i = kn(e, a), { preventBodyScroll: s } = Uv(), { registerTimeout: u, removeTimeout: l } = Ta(), c = fo(Ti, fn);
10843
- if (c === fn)
10844
- return console.error("QDrawer needs to be child of QLayout"), fn;
10847
+ const o = Xe(), { proxy: { $q: a } } = o, i = _n(e, a), { preventBodyScroll: s } = Uv(), { registerTimeout: u, removeTimeout: l } = Ta(), c = fo(Ti, hn);
10848
+ if (c === hn)
10849
+ return console.error("QDrawer needs to be child of QLayout"), hn;
10845
10850
  let d, f = null, h;
10846
10851
  const p = X(
10847
10852
  e.behavior === "mobile" || e.behavior !== "desktop" && c.totalWidth.value <= e.breakpoint
@@ -11027,7 +11032,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11027
11032
  function Ft(se, J) {
11028
11033
  gt("size", se === !0 ? e.miniWidth : J);
11029
11034
  }
11030
- return c.instances[e.side] = S, Ft(e.miniToOverlay, v.value), gt("space", F.value), gt("offset", O.value), e.showIfAbove === !0 && e.modelValue !== !0 && y.value === !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", !0), vn(() => {
11035
+ return c.instances[e.side] = S, Ft(e.miniToOverlay, v.value), gt("space", F.value), gt("offset", O.value), e.showIfAbove === !0 && e.modelValue !== !0 && y.value === !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", !0), mn(() => {
11031
11036
  n("onLayout", F.value), n("miniState", m.value), d = e.showIfAbove === !0;
11032
11037
  const se = () => {
11033
11038
  (y.value === !0 ? b : g)(!1, !0);
@@ -11150,7 +11155,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11150
11155
  props: {
11151
11156
  ...hd,
11152
11157
  ...Ci,
11153
- ...Cn,
11158
+ ...kn,
11154
11159
  icon: String,
11155
11160
  label: String,
11156
11161
  labelLines: [Number, String],
@@ -11182,7 +11187,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11182
11187
  "afterHide"
11183
11188
  ],
11184
11189
  setup(e, { slots: t, emit: n }) {
11185
- const { proxy: { $q: r } } = Xe(), o = kn(e, r), a = X(
11190
+ const { proxy: { $q: r } } = Xe(), o = _n(e, r), a = X(
11186
11191
  e.modelValue !== null ? e.modelValue : e.defaultOpened
11187
11192
  ), i = X(null), s = Cd(), { show: u, hide: l, toggle: c } = _i({ showing: a });
11188
11193
  let d, f;
@@ -11274,17 +11279,17 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11274
11279
  class: "q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",
11275
11280
  tabindex: -1
11276
11281
  })
11277
- )), T(hn, F, () => P);
11282
+ )), T(pn, F, () => P);
11278
11283
  }
11279
11284
  function q() {
11280
11285
  let F;
11281
11286
  return t.header !== void 0 ? F = [].concat(t.header(g.value)) : (F = [
11282
- T(hn, () => [
11287
+ T(pn, () => [
11283
11288
  T(kc, { lines: e.labelLines }, () => e.label || ""),
11284
11289
  e.caption ? T(kc, { lines: e.captionLines, caption: !0 }, () => e.caption) : null
11285
11290
  ])
11286
11291
  ], e.icon && F[e.switchToggleSide === !0 ? "push" : "unshift"](
11287
- T(hn, {
11292
+ T(pn, {
11288
11293
  side: e.switchToggleSide === !0,
11289
11294
  avatar: e.switchToggleSide !== !0
11290
11295
  }, () => T(St, { name: e.icon }))
@@ -11385,7 +11390,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11385
11390
  ]),
11386
11391
  _: 1
11387
11392
  })) : We("", !0),
11388
- e.item.icon ? (K(), Ae(hn, {
11393
+ e.item.icon ? (K(), Ae(pn, {
11389
11394
  key: 1,
11390
11395
  avatar: ""
11391
11396
  }, {
@@ -11398,7 +11403,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11398
11403
  ]),
11399
11404
  _: 1
11400
11405
  })) : We("", !0),
11401
- xe(hn, {
11406
+ xe(pn, {
11402
11407
  class: Ue(a.$style["menu-item__label"])
11403
11408
  }, {
11404
11409
  default: pe(() => [
@@ -11427,7 +11432,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11427
11432
  onClick: i[1] || (i[1] = (u) => o(e.item.to))
11428
11433
  }, {
11429
11434
  default: pe(() => [
11430
- e.item.icon ? (K(), Ae(hn, {
11435
+ e.item.icon ? (K(), Ae(pn, {
11431
11436
  key: 0,
11432
11437
  avatar: ""
11433
11438
  }, {
@@ -11440,7 +11445,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11440
11445
  ]),
11441
11446
  _: 1
11442
11447
  })) : We("", !0),
11443
- xe(hn, {
11448
+ xe(pn, {
11444
11449
  class: Ue(a.$style["menu-item__label"])
11445
11450
  }, {
11446
11451
  default: pe(() => [
@@ -11544,7 +11549,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11544
11549
  class: Ue(p.$style["tablet-logo"])
11545
11550
  }, {
11546
11551
  default: pe(() => [
11547
- xe(hn, { avatar: "" }, {
11552
+ xe(pn, { avatar: "" }, {
11548
11553
  default: pe(() => [
11549
11554
  xe(Et, {
11550
11555
  round: "",
@@ -11556,7 +11561,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11556
11561
  ]),
11557
11562
  _: 1
11558
11563
  }),
11559
- xe(hn, {
11564
+ xe(pn, {
11560
11565
  class: Ue(p.$style.logo__text)
11561
11566
  }, {
11562
11567
  default: pe(() => [...m[6] || (m[6] = [
@@ -11571,7 +11576,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11571
11576
  class: Ue(p.$style.logo)
11572
11577
  }, {
11573
11578
  default: pe(() => [
11574
- xe(hn, { avatar: "" }, {
11579
+ xe(pn, { avatar: "" }, {
11575
11580
  default: pe(() => [
11576
11581
  xe(Da, {
11577
11582
  name: "logo-icon",
@@ -11580,7 +11585,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11580
11585
  ]),
11581
11586
  _: 1
11582
11587
  }),
11583
- xe(hn, {
11588
+ xe(pn, {
11584
11589
  class: Ue(p.$style.logo__text)
11585
11590
  }, {
11586
11591
  default: pe(() => [
@@ -11622,7 +11627,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11622
11627
  onClick: m[2] || (m[2] = (v) => h())
11623
11628
  }, {
11624
11629
  default: pe(() => [
11625
- xe(hn, { avatar: "" }, {
11630
+ xe(pn, { avatar: "" }, {
11626
11631
  default: pe(() => [
11627
11632
  xe(Da, {
11628
11633
  name: "logout-icon",
@@ -11632,7 +11637,7 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11632
11637
  ]),
11633
11638
  _: 1
11634
11639
  }),
11635
- xe(hn, {
11640
+ xe(pn, {
11636
11641
  class: Ue(p.$style["menu-exit__label"])
11637
11642
  }, {
11638
11643
  default: pe(() => [...m[8] || (m[8] = [
@@ -11726,10 +11731,10 @@ const qC = ["left", "center", "right", "justify"], VC = je({
11726
11731
  }), mk = {}, gk = { class: "app-wrapper" };
11727
11732
  function yk(e, t) {
11728
11733
  return K(), ge("div", gk, [
11729
- $t(e.$slots, "default", {}, void 0, !0)
11734
+ Bt(e.$slots, "default", {}, void 0, !0)
11730
11735
  ]);
11731
11736
  }
11732
- const XD = /* @__PURE__ */ De(mk, [["render", yk], ["__scopeId", "data-v-aef16077"]]), hi = je({
11737
+ const XD = /* @__PURE__ */ De(mk, [["render", yk], ["__scopeId", "data-v-88d7f3f9"]]), hi = je({
11733
11738
  name: "QCardSection",
11734
11739
  props: {
11735
11740
  tag: {
@@ -11852,13 +11857,13 @@ const Tk = /* @__PURE__ */ De(Sk, [["render", Rk]]), Ik = /* @__PURE__ */ Dt({
11852
11857
  "data-test": "confirm-button",
11853
11858
  class: Ue(o.$style["footer__btn--ok"]),
11854
11859
  label: "Подтвердить",
11855
- onClick: An(n)
11860
+ onClick: fn(n)
11856
11861
  }, null, 8, ["class", "onClick"]),
11857
11862
  xe(yc, {
11858
11863
  "data-test": "close-button",
11859
11864
  class: Ue(o.$style["footer__btn--cancel"]),
11860
11865
  label: "Отменить",
11861
- onClick: An(t)
11866
+ onClick: fn(t)
11862
11867
  }, null, 8, ["class", "onClick"])
11863
11868
  ]),
11864
11869
  _: 1
@@ -11988,7 +11993,7 @@ const qk = je({
11988
11993
  show: w,
11989
11994
  hide: b,
11990
11995
  toggle: y
11991
- }), vn(() => {
11996
+ }), mn(() => {
11992
11997
  e.modelValue === !0 && w();
11993
11998
  }), () => {
11994
11999
  const g = [
@@ -12090,12 +12095,12 @@ const qk = je({
12090
12095
  "content-style": { width: e.width || "200px", minWidth: e.height || "200px" }
12091
12096
  }, {
12092
12097
  label: pe(() => [
12093
- $t(n.$slots, "label", {}, () => [
12098
+ Bt(n.$slots, "label", {}, () => [
12094
12099
  Wt(pt(e.label), 1)
12095
12100
  ], !0)
12096
12101
  ]),
12097
12102
  default: pe(() => [
12098
- $t(n.$slots, "content", {}, void 0, !0)
12103
+ Bt(n.$slots, "content", {}, void 0, !0)
12099
12104
  ]),
12100
12105
  _: 3
12101
12106
  }, 8, ["modelValue", "color", "content-style"]));
@@ -12288,7 +12293,7 @@ const qk = je({
12288
12293
  f = !0;
12289
12294
  }), La(() => {
12290
12295
  f === !0 && e.autofocus === !0 && d();
12291
- }), vn(() => {
12296
+ }), mn(() => {
12292
12297
  e.autofocus === !0 && d();
12293
12298
  }), Object.assign(r.proxy, {
12294
12299
  validate: s,
@@ -12351,6 +12356,7 @@ const qk = je({
12351
12356
  allowCreate: { type: Boolean },
12352
12357
  isSearch: { type: Boolean },
12353
12358
  hideSearch: { type: Boolean },
12359
+ hideClear: { type: Boolean },
12354
12360
  showChip: { type: Boolean },
12355
12361
  simple: { type: Boolean },
12356
12362
  hideBottomSpace: { type: Boolean },
@@ -12442,7 +12448,7 @@ const qk = je({
12442
12448
  Wt(pt(e.label) + " ", 1),
12443
12449
  (x = e.rules) != null && x.length && e.isShowRequired ? (K(), ge("span", e_, "*")) : We("", !0)
12444
12450
  ], 8, Jk)) : We("", !0),
12445
- xe(An(Rd), {
12451
+ xe(fn(Rd), {
12446
12452
  ref_key: "select",
12447
12453
  ref: i,
12448
12454
  modelValue: l.value,
@@ -12473,7 +12479,7 @@ const qk = je({
12473
12479
  onAdd: y
12474
12480
  }, qa({
12475
12481
  append: pe(() => [
12476
- !e.isDisabled && !c.value ? (K(), Ae(St, {
12482
+ !e.isDisabled && !c.value && !e.hideClear ? (K(), Ae(St, {
12477
12483
  key: 0,
12478
12484
  name: "close",
12479
12485
  class: "cursor-pointer clear-input",
@@ -12484,7 +12490,7 @@ const qk = je({
12484
12490
  fe("div", t_, [
12485
12491
  xe(Nn, null, {
12486
12492
  default: pe(() => [
12487
- xe(hn, { class: "wrapper-empty-text" }, {
12493
+ xe(pn, { class: "wrapper-empty-text" }, {
12488
12494
  default: pe(() => [
12489
12495
  Wt(pt(e.emptyText || "Нет данных") + " ", 1),
12490
12496
  e.allowCreate && u.value && u.value.trim() ? (K(), ge("button", {
@@ -12512,16 +12518,17 @@ const qk = je({
12512
12518
  })
12513
12519
  ]),
12514
12520
  _: 1
12515
- })) : "option" in An(a) ? (K(), Ae(Nn, lc(ui({ key: 1 }, C.itemProps)), {
12521
+ })) : "option" in fn(a) ? (K(), Ae(Nn, lc(ui({ key: 1 }, C.itemProps)), {
12516
12522
  default: pe(() => [
12517
- $t(b.$slots, "option", {
12518
- opt: C.opt
12523
+ Bt(b.$slots, "option", {
12524
+ opt: C.opt,
12525
+ toggleOption: C.toggleOption
12519
12526
  }, void 0, !0)
12520
12527
  ]),
12521
12528
  _: 2
12522
12529
  }, 1040)) : (K(), Ae(Nn, lc(ui({ key: 2 }, C.itemProps)), {
12523
12530
  default: pe(() => [
12524
- xe(hn, null, {
12531
+ xe(pn, null, {
12525
12532
  default: pe(() => [
12526
12533
  Wt(pt(C.opt[e.optionLabel || "label"]), 1)
12527
12534
  ]),
@@ -12533,10 +12540,10 @@ const qk = je({
12533
12540
  ]),
12534
12541
  _: 2
12535
12542
  }, [
12536
- e.multiple || e.showChip || "selected" in An(a) ? {
12543
+ e.multiple || e.showChip || "selected" in fn(a) ? {
12537
12544
  name: "selected-item",
12538
12545
  fn: pe((C) => [
12539
- "selected" in An(a) && C.opt ? $t(b.$slots, "selected", {
12546
+ "selected" in fn(a) && C.opt ? Bt(b.$slots, "selected", {
12540
12547
  key: 0,
12541
12548
  opt: C.opt
12542
12549
  }, void 0, !0) : C.opt ? (K(), Ae(wu, {
@@ -12555,12 +12562,26 @@ const qk = je({
12555
12562
  }, 1032, ["tabindex", "style", "onRemove"])) : We("", !0)
12556
12563
  ]),
12557
12564
  key: "0"
12565
+ } : void 0,
12566
+ "prepend" in fn(a) ? {
12567
+ name: "prepend",
12568
+ fn: pe(() => [
12569
+ Bt(b.$slots, "prepend", {}, void 0, !0)
12570
+ ]),
12571
+ key: "1"
12572
+ } : void 0,
12573
+ "after-options" in fn(a) ? {
12574
+ name: "after-options",
12575
+ fn: pe(() => [
12576
+ Bt(b.$slots, "after-options", {}, void 0, !0)
12577
+ ]),
12578
+ key: "2"
12558
12579
  } : void 0
12559
12580
  ]), 1032, ["modelValue", "data-test", "options", "disable", "multiple", "hide-selected", "placeholder", "loading", "option-value", "option-label", "use-input", "use-chips", "hide-bottom-space", "rules", "popup-content-style"])
12560
12581
  ], 64);
12561
12582
  };
12562
12583
  }
12563
- }), r_ = /* @__PURE__ */ De(n_, [["__scopeId", "data-v-7b05047b"]]), o_ = { class: "modal-title" }, a_ = ["data-test"], i_ = {
12584
+ }), r_ = /* @__PURE__ */ De(n_, [["__scopeId", "data-v-4bc34d56"]]), o_ = { class: "modal-title" }, a_ = ["data-test"], i_ = {
12564
12585
  key: 0,
12565
12586
  class: "required"
12566
12587
  }, s_ = /* @__PURE__ */ Dt({
@@ -12793,7 +12814,7 @@ const qk = je({
12793
12814
  _: 1
12794
12815
  }, 8, ["model-value"]));
12795
12816
  }
12796
- }), JD = /* @__PURE__ */ De(s_, [["__scopeId", "data-v-ed06c39a"]]), Mh = je({
12817
+ }), JD = /* @__PURE__ */ De(s_, [["__scopeId", "data-v-69280eb3"]]), Mh = je({
12797
12818
  name: "QTd",
12798
12819
  props: {
12799
12820
  props: Object,
@@ -12831,7 +12852,7 @@ const qk = je({
12831
12852
  ]), l_ = je({
12832
12853
  name: "QRadio",
12833
12854
  props: {
12834
- ...Cn,
12855
+ ...kn,
12835
12856
  ...Va,
12836
12857
  ...Ho,
12837
12858
  modelValue: { required: !0 },
@@ -12848,7 +12869,7 @@ const qk = je({
12848
12869
  },
12849
12870
  emits: ["update:modelValue"],
12850
12871
  setup(e, { slots: t, emit: n }) {
12851
- const { proxy: r } = Xe(), o = kn(e, r.$q), a = za(e, Tv), i = X(null), { refocusTargetEl: s, refocusTarget: u } = Ev(e, i), l = _(() => to(e.modelValue) === to(e.val)), c = _(
12872
+ const { proxy: r } = Xe(), o = _n(e, r.$q), a = za(e, Tv), i = X(null), { refocusTargetEl: s, refocusTarget: u } = Ev(e, i), l = _(() => to(e.modelValue) === to(e.val)), c = _(
12852
12873
  () => "q-radio cursor-pointer no-outline row inline no-wrap items-center" + (e.disable === !0 ? " disabled" : "") + (o.value === !0 ? " q-radio--dark" : "") + (e.dense === !0 ? " q-radio--dense" : "") + (e.leftLabel === !0 ? " reverse" : "")
12853
12874
  ), d = _(() => {
12854
12875
  const g = e.color !== void 0 && (e.keepColor === !0 || l.value === !0) ? ` text-${e.color}` : "";
@@ -12971,7 +12992,7 @@ const qk = je({
12971
12992
  }, Bh = (e) => e >= 250 ? 50 : Math.ceil(e / 5), d_ = je({
12972
12993
  name: "QScrollArea",
12973
12994
  props: {
12974
- ...Cn,
12995
+ ...kn,
12975
12996
  thumbStyle: Object,
12976
12997
  verticalThumbStyle: Object,
12977
12998
  horizontalThumbStyle: Object,
@@ -13014,7 +13035,7 @@ const qk = je({
13014
13035
  position: X(0),
13015
13036
  size: X(0)
13016
13037
  }
13017
- }, { proxy: u } = Xe(), l = kn(e, u.$q);
13038
+ }, { proxy: u } = Xe(), l = _n(e, u.$q);
13018
13039
  let c = null, d;
13019
13040
  const f = X(null), h = _(
13020
13041
  () => "q-scrollarea" + (l.value === !0 ? " q-scrollarea--dark" : "")
@@ -13280,7 +13301,7 @@ const qk = je({
13280
13301
  }), f_ = ["horizontal", "vertical", "cell", "none"], h_ = je({
13281
13302
  name: "QMarkupTable",
13282
13303
  props: {
13283
- ...Cn,
13304
+ ...kn,
13284
13305
  dense: Boolean,
13285
13306
  flat: Boolean,
13286
13307
  bordered: Boolean,
@@ -13293,7 +13314,7 @@ const qk = je({
13293
13314
  }
13294
13315
  },
13295
13316
  setup(e, { slots: t }) {
13296
- const n = Xe(), r = kn(e, n.proxy.$q), o = _(
13317
+ const n = Xe(), r = _n(e, n.proxy.$q), o = _(
13297
13318
  () => `q-markup-table q-table__container q-table__card q-table--${e.separator}-separator` + (r.value === !0 ? " q-table--dark q-table__card--dark q-dark" : "") + (e.dense === !0 ? " q-table--dense" : "") + (e.flat === !0 ? " q-table--flat" : "") + (e.bordered === !0 ? " q-table--bordered" : "") + (e.square === !0 ? " q-table--square" : "") + (e.wrapCells === !1 ? " q-table--no-wrap" : "")
13298
13319
  );
13299
13320
  return () => T("div", {
@@ -13376,7 +13397,7 @@ const p_ = {
13376
13397
  }
13377
13398
  return ed(() => {
13378
13399
  s();
13379
- }), vn(() => {
13400
+ }), mn(() => {
13380
13401
  m();
13381
13402
  }), La(() => {
13382
13403
  m();
@@ -13415,7 +13436,7 @@ function Oh(e, t, n) {
13415
13436
  const y_ = je({
13416
13437
  name: "QLinearProgress",
13417
13438
  props: {
13418
- ...Cn,
13439
+ ...kn,
13419
13440
  ...Va,
13420
13441
  value: {
13421
13442
  type: Number,
@@ -13436,7 +13457,7 @@ const y_ = je({
13436
13457
  instantFeedback: Boolean
13437
13458
  },
13438
13459
  setup(e, { slots: t }) {
13439
- const { proxy: n } = Xe(), r = kn(e, n.$q), o = za(e, g_), a = _(() => e.indeterminate === !0 || e.query === !0), i = _(() => e.reverse !== e.query), s = _(() => ({
13460
+ const { proxy: n } = Xe(), r = _n(e, n.$q), o = za(e, g_), a = _(() => e.indeterminate === !0 || e.query === !0), i = _(() => e.reverse !== e.query), s = _(() => ({
13440
13461
  ...o.value !== null ? o.value : {},
13441
13462
  "--q-linear-progress-speed": `${e.animationSpeed}ms`
13442
13463
  })), u = _(
@@ -13504,7 +13525,7 @@ function x_() {
13504
13525
  }
13505
13526
  return ed(() => {
13506
13527
  o = document.createElement("span");
13507
- }), vn(() => {
13528
+ }), mn(() => {
13508
13529
  t.fullscreen === !0 && u();
13509
13530
  }), At(l), Object.assign(r, {
13510
13531
  toggleFullscreen: s,
@@ -13882,7 +13903,7 @@ const q_ = je({
13882
13903
  onRowClick: Function,
13883
13904
  onRowDblclick: Function,
13884
13905
  onRowContextmenu: Function,
13885
- ...Cn,
13906
+ ...kn,
13886
13907
  ...b_,
13887
13908
  ...N_,
13888
13909
  ...S_,
@@ -13899,7 +13920,7 @@ const q_ = je({
13899
13920
  ...M_
13900
13921
  ],
13901
13922
  setup(e, { slots: t, emit: n }) {
13902
- const r = Xe(), { proxy: { $q: o } } = r, a = kn(e, o), { inFullscreen: i, toggleFullscreen: s } = x_(), u = _(() => typeof e.rowKey == "function" ? e.rowKey : (te) => te[e.rowKey]), l = X(null), c = X(null), d = _(() => e.grid !== !0 && e.virtualScroll === !0), f = _(
13923
+ const r = Xe(), { proxy: { $q: o } } = r, a = _n(e, o), { inFullscreen: i, toggleFullscreen: s } = x_(), u = _(() => typeof e.rowKey == "function" ? e.rowKey : (te) => te[e.rowKey]), l = X(null), c = X(null), d = _(() => e.grid !== !0 && e.virtualScroll === !0), f = _(
13903
13924
  () => " q-table__card" + (a.value === !0 ? " q-table__card--dark q-dark" : "") + (e.square === !0 ? " q-table--square" : "") + (e.flat === !0 ? " q-table--flat" : "") + (e.bordered === !0 ? " q-table--bordered" : "")
13904
13925
  ), h = _(
13905
13926
  () => `q-table__container q-table--${e.separator}-separator column no-wrap` + (e.grid === !0 ? " q-table--grid" : f.value) + (a.value === !0 ? " q-table--dark" : "") + (e.dense === !0 ? " q-table--dense" : "") + (e.wrapCells === !1 ? " q-table--no-wrap" : "") + (i.value === !0 ? " fullscreen scroll" : "")
@@ -13972,11 +13993,11 @@ const q_ = je({
13972
13993
  const te = e.hideHeader !== !0 ? at : null;
13973
13994
  if (d.value === !0) {
13974
13995
  const He = t["top-row"], $e = t["bottom-row"], rt = {
13975
- default: (qt) => st(qt.item, t.body, qt.index)
13996
+ default: (Vt) => st(Vt.item, t.body, Vt.index)
13976
13997
  };
13977
13998
  if (He !== void 0) {
13978
- const qt = T("tbody", He({ cols: L.value }));
13979
- rt.before = te === null ? () => qt : () => [te()].concat(qt);
13999
+ const Vt = T("tbody", He({ cols: L.value }));
14000
+ rt.before = te === null ? () => Vt : () => [te()].concat(Vt);
13980
14001
  } else te !== null && (rt.before = te);
13981
14002
  return $e !== void 0 && (rt.after = () => T("tbody", $e({ cols: L.value }))), T(m_, {
13982
14003
  ref: c,
@@ -14006,12 +14027,12 @@ const q_ = je({
14006
14027
  te = parseInt(te, 10);
14007
14028
  const He = l.value.querySelector(`tbody tr:nth-of-type(${te + 1})`);
14008
14029
  if (He !== null) {
14009
- const $e = l.value.querySelector(".q-table__middle.scroll"), rt = He.offsetTop - e.virtualScrollStickySizeStart, qt = rt < $e.scrollTop ? "decrease" : "increase";
14030
+ const $e = l.value.querySelector(".q-table__middle.scroll"), rt = He.offsetTop - e.virtualScrollStickySizeStart, Vt = rt < $e.scrollTop ? "decrease" : "increase";
14010
14031
  $e.scrollTop = rt, n("virtualScroll", {
14011
14032
  index: te,
14012
14033
  from: 0,
14013
14034
  to: m.value.rowsPerPage - 1,
14014
- direction: qt
14035
+ direction: Vt
14015
14036
  });
14016
14037
  }
14017
14038
  }
@@ -14046,8 +14067,8 @@ const q_ = je({
14046
14067
  Ge(W)
14047
14068
  );
14048
14069
  }
14049
- const qt = t["body-cell"], Bt = L.value.map((W) => {
14050
- const re = t[`body-cell-${W.name}`], be = re !== void 0 ? re : qt;
14070
+ const Vt = t["body-cell"], Ot = L.value.map((W) => {
14071
+ const re = t[`body-cell-${W.name}`], be = re !== void 0 ? re : Vt;
14051
14072
  return be !== void 0 ? be(Ke({ key: $e, row: te, pageIndex: He, col: W })) : T("td", {
14052
14073
  class: W.__tdClass(te),
14053
14074
  style: W.__tdStyle(te)
@@ -14065,7 +14086,7 @@ const q_ = je({
14065
14086
  }
14066
14087
  })
14067
14088
  ];
14068
- Bt.unshift(
14089
+ Ot.unshift(
14069
14090
  T("td", { class: "q-table--col-auto-width" }, re)
14070
14091
  );
14071
14092
  }
@@ -14080,12 +14101,12 @@ const q_ = je({
14080
14101
  const W = e.tableRowClassFn(te);
14081
14102
  W && (N.class[W] = !0);
14082
14103
  }
14083
- return T("tr", N, Bt);
14104
+ return T("tr", N, Ot);
14084
14105
  }
14085
14106
  function mt() {
14086
14107
  const te = t.body, ke = t["top-row"], He = t["bottom-row"];
14087
14108
  let $e = k.value.map(
14088
- (rt, qt) => st(rt, te, qt)
14109
+ (rt, Vt) => st(rt, te, Vt)
14089
14110
  );
14090
14111
  return ke !== void 0 && ($e = ke({ cols: L.value }).concat($e)), He !== void 0 && ($e = $e.concat(He({ cols: L.value }))), T("tbody", $e);
14091
14112
  }
@@ -14142,28 +14163,28 @@ const q_ = je({
14142
14163
  toggleFullscreen: s
14143
14164
  }));
14144
14165
  function Ve() {
14145
- const te = t.top, ke = t["top-left"], He = t["top-right"], $e = t["top-selection"], rt = I.value === !0 && $e !== void 0 && z.value > 0, qt = "q-table__top relative-position row items-center";
14166
+ const te = t.top, ke = t["top-left"], He = t["top-right"], $e = t["top-selection"], rt = I.value === !0 && $e !== void 0 && z.value > 0, Vt = "q-table__top relative-position row items-center";
14146
14167
  if (te !== void 0)
14147
- return T("div", { class: qt }, [te(he.value)]);
14148
- let Bt;
14149
- if (rt === !0 ? Bt = $e(he.value).slice() : (Bt = [], ke !== void 0 ? Bt.push(
14168
+ return T("div", { class: Vt }, [te(he.value)]);
14169
+ let Ot;
14170
+ if (rt === !0 ? Ot = $e(he.value).slice() : (Ot = [], ke !== void 0 ? Ot.push(
14150
14171
  T("div", { class: "q-table__control" }, [
14151
14172
  ke(he.value)
14152
14173
  ])
14153
- ) : e.title && Bt.push(
14174
+ ) : e.title && Ot.push(
14154
14175
  T("div", { class: "q-table__control" }, [
14155
14176
  T("div", {
14156
14177
  class: ["q-table__title", e.titleClass]
14157
14178
  }, e.title)
14158
14179
  ])
14159
- )), He !== void 0 && (Bt.push(
14180
+ )), He !== void 0 && (Ot.push(
14160
14181
  T("div", { class: "q-table__separator col" })
14161
- ), Bt.push(
14182
+ ), Ot.push(
14162
14183
  T("div", { class: "q-table__control" }, [
14163
14184
  He(he.value)
14164
14185
  ])
14165
- )), Bt.length !== 0)
14166
- return T("div", { class: qt }, Bt);
14186
+ )), Ot.length !== 0)
14187
+ return T("div", { class: Vt }, Ot);
14167
14188
  }
14168
14189
  const Ye = _(() => O.value === !0 ? null : D.value);
14169
14190
  function at() {
@@ -14184,10 +14205,10 @@ const q_ = je({
14184
14205
  it({ header: !0 })
14185
14206
  ).slice();
14186
14207
  const He = L.value.map(($e) => {
14187
- const rt = t[`header-cell-${$e.name}`], qt = rt !== void 0 ? rt : ke, Bt = it({ col: $e });
14188
- return qt !== void 0 ? qt(Bt) : T(ym, {
14208
+ const rt = t[`header-cell-${$e.name}`], Vt = rt !== void 0 ? rt : ke, Ot = it({ col: $e });
14209
+ return Vt !== void 0 ? Vt(Ot) : T(ym, {
14189
14210
  key: $e.name,
14190
- props: Bt
14211
+ props: Ot
14191
14212
  }, () => $e.label);
14192
14213
  });
14193
14214
  if (A.value === !0 && e.grid !== !0)
@@ -14284,10 +14305,10 @@ const q_ = je({
14284
14305
  }
14285
14306
  function Qo(te) {
14286
14307
  let ke;
14287
- const { rowsPerPage: He } = v.value, $e = e.paginationLabel || o.lang.table.pagination, rt = t.pagination, qt = e.rowsPerPageOptions.length > 1;
14308
+ const { rowsPerPage: He } = v.value, $e = e.paginationLabel || o.lang.table.pagination, rt = t.pagination, Vt = e.rowsPerPageOptions.length > 1;
14288
14309
  if (te.push(
14289
14310
  T("div", { class: "q-table__separator col" })
14290
- ), qt === !0 && te.push(
14311
+ ), Vt === !0 && te.push(
14291
14312
  T("div", { class: "q-table__control" }, [
14292
14313
  T("span", { class: "q-table__bottom-item" }, [
14293
14314
  e.rowsPerPageLabel || o.lang.table.recordsPerPage
@@ -14313,16 +14334,16 @@ const q_ = je({
14313
14334
  He ? $e(le.value + 1, Math.min(we.value, Oe.value), Oe.value) : $e(1, R.value, Oe.value)
14314
14335
  ])
14315
14336
  ], He !== 0 && ye.value > 1) {
14316
- const Bt = {
14337
+ const Ot = {
14317
14338
  color: e.color,
14318
14339
  round: !0,
14319
14340
  dense: !0,
14320
14341
  flat: !0
14321
14342
  };
14322
- e.dense === !0 && (Bt.size = "sm"), ye.value > 2 && ke.push(
14343
+ e.dense === !0 && (Ot.size = "sm"), ye.value > 2 && ke.push(
14323
14344
  T(Et, {
14324
14345
  key: "pgFirst",
14325
- ...Bt,
14346
+ ...Ot,
14326
14347
  icon: Gt.value[0],
14327
14348
  disable: ae.value,
14328
14349
  "aria-label": o.lang.pagination.first,
@@ -14331,7 +14352,7 @@ const q_ = je({
14331
14352
  ), ke.push(
14332
14353
  T(Et, {
14333
14354
  key: "pgPrev",
14334
- ...Bt,
14355
+ ...Ot,
14335
14356
  icon: Gt.value[1],
14336
14357
  disable: ae.value,
14337
14358
  "aria-label": o.lang.pagination.prev,
@@ -14339,7 +14360,7 @@ const q_ = je({
14339
14360
  }),
14340
14361
  T(Et, {
14341
14362
  key: "pgNext",
14342
- ...Bt,
14363
+ ...Ot,
14343
14364
  icon: Gt.value[2],
14344
14365
  disable: ze.value,
14345
14366
  "aria-label": o.lang.pagination.next,
@@ -14348,7 +14369,7 @@ const q_ = je({
14348
14369
  ), ye.value > 2 && ke.push(
14349
14370
  T(Et, {
14350
14371
  key: "pgLast",
14351
- ...Bt,
14372
+ ...Ot,
14352
14373
  icon: Gt.value[3],
14353
14374
  disable: ze.value,
14354
14375
  "aria-label": o.lang.pagination.last,
@@ -14377,19 +14398,19 @@ const q_ = je({
14377
14398
  ])
14378
14399
  );
14379
14400
  if (I.value === !0) {
14380
- const rt = t["body-selection"], qt = rt !== void 0 ? rt(ke) : [
14401
+ const rt = t["body-selection"], Vt = rt !== void 0 ? rt(ke) : [
14381
14402
  T(oi, {
14382
14403
  modelValue: ke.selected,
14383
14404
  color: e.color,
14384
14405
  dark: a.value,
14385
14406
  dense: e.dense,
14386
- "onUpdate:modelValue": (Bt, N) => {
14387
- H([ke.key], [ke.row], Bt, N);
14407
+ "onUpdate:modelValue": (Ot, N) => {
14408
+ H([ke.key], [ke.row], Ot, N);
14388
14409
  }
14389
14410
  })
14390
14411
  ];
14391
14412
  He.unshift(
14392
- T("div", { class: "q-table__grid-item-row" }, qt),
14413
+ T("div", { class: "q-table__grid-item-row" }, Vt),
14393
14414
  T(Os, { dark: a.value })
14394
14415
  );
14395
14416
  }
@@ -14607,7 +14628,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14607
14628
  }, 1032, ["color"])) : f.col.html ? (K(), ge("span", {
14608
14629
  key: 1,
14609
14630
  innerHTML: f.value
14610
- }, null, 8, Q_)) : s(f.col.name) ? $t(c.$slots, f.col.name, {
14631
+ }, null, 8, Q_)) : s(f.col.name) ? Bt(c.$slots, f.col.name, {
14611
14632
  key: 2,
14612
14633
  cellProps: f,
14613
14634
  class: Ue({ fixed__btns: f.col.name === "fixed" })
@@ -14671,7 +14692,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14671
14692
  tag: "label"
14672
14693
  }, {
14673
14694
  default: pe(() => [
14674
- xe(hn, { avatar: "" }, {
14695
+ xe(pn, { avatar: "" }, {
14675
14696
  default: pe(() => {
14676
14697
  var w;
14677
14698
  return [
@@ -14691,7 +14712,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14691
14712
  }),
14692
14713
  _: 2
14693
14714
  }, 1024),
14694
- xe(hn, null, {
14715
+ xe(pn, null, {
14695
14716
  default: pe(() => [
14696
14717
  Wt(pt(y.name), 1)
14697
14718
  ]),
@@ -14730,7 +14751,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14730
14751
  ]), 1032, ["selected", "rows", "columns", "selection", "table-row-style-fn"])
14731
14752
  ]));
14732
14753
  }
14733
- }), e3 = /* @__PURE__ */ De(J_, [["__scopeId", "data-v-e633b819"]]), t3 = {
14754
+ }), e3 = /* @__PURE__ */ De(J_, [["__scopeId", "data-v-9642bdfb"]]), t3 = {
14734
14755
  key: 0,
14735
14756
  class: "table-controls"
14736
14757
  }, n3 = { class: "table-wrapper" }, r3 = {
@@ -14766,13 +14787,13 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14766
14787
  placeholder: "Введите наименование",
14767
14788
  onSearch: n.onSearch
14768
14789
  }, null, 8, ["model-value", "onSearch"])),
14769
- s.value ? $t(u.$slots, "actions", { key: 1 }, void 0, !0) : We("", !0)
14790
+ s.value ? Bt(u.$slots, "actions", { key: 1 }, void 0, !0) : We("", !0)
14770
14791
  ])) : We("", !0),
14771
14792
  fe("div", n3, [
14772
14793
  xe(e3, ui(n.tableProps, {
14773
14794
  "selected-rows": n.selectedRows,
14774
14795
  "no-hover": e.noHover,
14775
- slots: An(o),
14796
+ slots: fn(o),
14776
14797
  "hide-pagination": e.hidePagination
14777
14798
  }, x1(n.tableEvents), {
14778
14799
  "onUpdate:selectedRows": l[0] || (l[0] = (c) => r("update:selectedRows", c))
@@ -14780,7 +14801,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14780
14801
  Hr(i.value, (c) => ({
14781
14802
  name: c,
14782
14803
  fn: pe(({ cellProps: d }) => [
14783
- $t(u.$slots, c, {
14804
+ Bt(u.$slots, c, {
14784
14805
  row: d.row
14785
14806
  }, void 0, !0)
14786
14807
  ])
@@ -14801,7 +14822,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14801
14822
  "total-pages": n.totalPages,
14802
14823
  onPageChange: n.onPageChange
14803
14824
  }, null, 8, ["model-value", "total-pages", "onPageChange"])) : We("", !0),
14804
- "modal" in An(o) ? $t(u.$slots, "modal", { key: 2 }, void 0, !0) : We("", !0)
14825
+ "modal" in fn(o) ? Bt(u.$slots, "modal", { key: 2 }, void 0, !0) : We("", !0)
14805
14826
  ], 2));
14806
14827
  }
14807
14828
  }), eM = /* @__PURE__ */ De(o3, [["__scopeId", "data-v-1b7ee59f"]]), a3 = ["title"], i3 = {
@@ -14842,7 +14863,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14842
14863
  title: e.title,
14843
14864
  style: Wr(e.titleStyle)
14844
14865
  }, pt(e.title), 15, a3)) : We("", !0),
14845
- $t(r.$slots, "default", {}, void 0, !0),
14866
+ Bt(r.$slots, "default", {}, void 0, !0),
14846
14867
  e.loading ? (K(), ge("div", i3, [
14847
14868
  xe(fi, {
14848
14869
  class: "loader-spinner",
@@ -14859,7 +14880,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14859
14880
  class: "btn__wrapper"
14860
14881
  }, {
14861
14882
  default: pe(() => [
14862
- $t(r.$slots, "actions", {}, void 0, !0)
14883
+ Bt(r.$slots, "actions", {}, void 0, !0)
14863
14884
  ]),
14864
14885
  _: 3
14865
14886
  })
@@ -14870,7 +14891,7 @@ const W_ = /* @__PURE__ */ De(V_, [["render", $_]]), H_ = {
14870
14891
  _: 3
14871
14892
  }, 8, ["modelValue"]));
14872
14893
  }
14873
- }), tM = /* @__PURE__ */ De(s3, [["__scopeId", "data-v-f69f612b"]]);
14894
+ }), tM = /* @__PURE__ */ De(s3, [["__scopeId", "data-v-382ed34c"]]);
14874
14895
  function oa(e, t, n, r) {
14875
14896
  const o = [];
14876
14897
  return e.forEach((a) => {
@@ -15048,7 +15069,7 @@ const d3 = je({
15048
15069
  n("update:modelValue", e.multiple === !0 ? F : F[0]);
15049
15070
  }
15050
15071
  function k(F) {
15051
- F.keyCode === 13 && En(F);
15072
+ F.keyCode === 13 && Rn(F);
15052
15073
  }
15053
15074
  function I(F) {
15054
15075
  (F.keyCode === 13 || F.keyCode === 32) && l(F);
@@ -15181,17 +15202,17 @@ const d3 = je({
15181
15202
  return (d = i.value) == null ? void 0 : d.pickFiles();
15182
15203
  }
15183
15204
  }), (d, f) => (K(), ge(hr, null, [
15184
- An(a)["drag-drop"] ? (K(), ge("div", {
15205
+ fn(a)["drag-drop"] ? (K(), ge("div", {
15185
15206
  key: 0,
15186
15207
  class: "drag-wrapper",
15187
15208
  onDragover: f[0] || (f[0] = Do((h) => s.value = !0, ["prevent", "stop"])),
15188
15209
  onDragleave: f[1] || (f[1] = Do((h) => s.value = !1, ["prevent", "stop"])),
15189
15210
  onDrop: Do(c, ["prevent", "stop"])
15190
15211
  }, [
15191
- $t(d.$slots, "drag-drop", { isFileHover: s.value }, void 0, !0)
15212
+ Bt(d.$slots, "drag-drop", { isFileHover: s.value }, void 0, !0)
15192
15213
  ], 32)) : We("", !0),
15193
- $t(d.$slots, "default", {}, void 0, !0),
15194
- xe(An(d3), {
15214
+ Bt(d.$slots, "default", {}, void 0, !0),
15215
+ xe(fn(d3), {
15195
15216
  ref_key: "RefFile",
15196
15217
  ref: i,
15197
15218
  modelValue: u.value,
@@ -15697,14 +15718,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", uS
15697
15718
  hasStandardBrowserWebWorkerEnv: sS,
15698
15719
  navigator: Tc,
15699
15720
  origin: uS
15700
- }, Symbol.toStringTag, { value: "Module" })), Rn = {
15721
+ }, Symbol.toStringTag, { value: "Module" })), Tn = {
15701
15722
  ...lS,
15702
15723
  ...aS
15703
15724
  };
15704
15725
  function cS(e, t) {
15705
- return Su(e, new Rn.classes.URLSearchParams(), {
15726
+ return Su(e, new Tn.classes.URLSearchParams(), {
15706
15727
  visitor: function(n, r, o, a) {
15707
- return Rn.isNode && Z.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
15728
+ return Tn.isNode && Z.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
15708
15729
  },
15709
15730
  ...t
15710
15731
  });
@@ -15799,8 +15820,8 @@ const Mi = {
15799
15820
  maxContentLength: -1,
15800
15821
  maxBodyLength: -1,
15801
15822
  env: {
15802
- FormData: Rn.classes.FormData,
15803
- Blob: Rn.classes.Blob
15823
+ FormData: Tn.classes.FormData,
15824
+ Blob: Tn.classes.Blob
15804
15825
  },
15805
15826
  validateStatus: function(t) {
15806
15827
  return t >= 200 && t < 300;
@@ -16100,10 +16121,10 @@ const Ns = (e, t, n = 3) => {
16100
16121
  total: e,
16101
16122
  loaded: r
16102
16123
  }), t[1]];
16103
- }, Uh = (e) => (...t) => Z.asap(() => e(...t)), kS = Rn.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Rn.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
16104
- new URL(Rn.origin),
16105
- Rn.navigator && /(msie|trident)/i.test(Rn.navigator.userAgent)
16106
- ) : () => !0, _S = Rn.hasStandardBrowserEnv ? (
16124
+ }, Uh = (e) => (...t) => Z.asap(() => e(...t)), kS = Tn.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Tn.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
16125
+ new URL(Tn.origin),
16126
+ Tn.navigator && /(msie|trident)/i.test(Tn.navigator.userAgent)
16127
+ ) : () => !0, _S = Tn.hasStandardBrowserEnv ? (
16107
16128
  // Standard browser envs support document.cookie
16108
16129
  {
16109
16130
  write(e, t, n, r, o, a, i) {
@@ -16214,7 +16235,7 @@ const qm = (e) => {
16214
16235
  "Authorization",
16215
16236
  "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
16216
16237
  ), Z.isFormData(n)) {
16217
- if (Rn.hasStandardBrowserEnv || Rn.hasStandardBrowserWebWorkerEnv)
16238
+ if (Tn.hasStandardBrowserEnv || Tn.hasStandardBrowserWebWorkerEnv)
16218
16239
  i.setContentType(void 0);
16219
16240
  else if (Z.isFunction(n.getHeaders)) {
16220
16241
  const u = n.getHeaders(), l = ["content-type", "content-length"];
@@ -16223,7 +16244,7 @@ const qm = (e) => {
16223
16244
  });
16224
16245
  }
16225
16246
  }
16226
- if (Rn.hasStandardBrowserEnv && (r && Z.isFunction(r) && (r = r(t)), r || r !== !1 && kS(t.url))) {
16247
+ if (Tn.hasStandardBrowserEnv && (r && Z.isFunction(r) && (r = r(t)), r || r !== !1 && kS(t.url))) {
16227
16248
  const u = o && a && _S.read(a);
16228
16249
  u && i.set(o, u);
16229
16250
  }
@@ -16280,7 +16301,7 @@ const qm = (e) => {
16280
16301
  v && (r(!b || b.type ? new Ha(null, e, v) : b), v.abort(), v = null);
16281
16302
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
16282
16303
  const w = wS(o.url);
16283
- if (w && Rn.protocols.indexOf(w) === -1) {
16304
+ if (w && Tn.protocols.indexOf(w) === -1) {
16284
16305
  r(new ut("Unsupported protocol " + w + ":", ut.ERR_BAD_REQUEST, e));
16285
16306
  return;
16286
16307
  }
@@ -16387,7 +16408,7 @@ const qm = (e) => {
16387
16408
  return !1;
16388
16409
  const s = o && Zi(Yh), u = o && (typeof Xh == "function" ? /* @__PURE__ */ ((p) => (m) => p.encode(m))(new Xh()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), l = a && s && Qh(() => {
16389
16410
  let p = !1;
16390
- const m = new n(Rn.origin, {
16411
+ const m = new n(Tn.origin, {
16391
16412
  body: new Yh(),
16392
16413
  method: "POST",
16393
16414
  get duplex() {
@@ -16412,7 +16433,7 @@ const qm = (e) => {
16412
16433
  if (Z.isBlob(p))
16413
16434
  return p.size;
16414
16435
  if (Z.isSpecCompliantForm(p))
16415
- return (await new n(Rn.origin, {
16436
+ return (await new n(Tn.origin, {
16416
16437
  method: "POST",
16417
16438
  body: p
16418
16439
  }).arrayBuffer()).byteLength;
@@ -16975,7 +16996,7 @@ const {
16975
16996
  mergeConfig: wM
16976
16997
  } = Jt;
16977
16998
  var Ji = !1, ml = [];
16978
- class gn {
16999
+ class yn {
16979
17000
  constructor() {
16980
17001
  qf(this, "axiosInstance");
16981
17002
  this.axiosInstance = Jt.create({
@@ -17077,7 +17098,7 @@ class gn {
17077
17098
  }
17078
17099
  }
17079
17100
  }
17080
- class $S extends gn {
17101
+ class $S extends yn {
17081
17102
  async fetchCriticalPathTasks(t) {
17082
17103
  return await this.get(`gantt/get_list_task_on_critical_path?${t}`);
17083
17104
  }
@@ -17108,7 +17129,7 @@ let gl;
17108
17129
  function xM() {
17109
17130
  return gl || (gl = new $S()), gl;
17110
17131
  }
17111
- class WS extends gn {
17132
+ class WS extends yn {
17112
17133
  async fetchPieProjects(t) {
17113
17134
  return await this.get("repairs/pie/projects?" + t);
17114
17135
  }
@@ -17219,7 +17240,7 @@ let yl;
17219
17240
  function CM() {
17220
17241
  return yl || (yl = new WS()), yl;
17221
17242
  }
17222
- class HS extends gn {
17243
+ class HS extends yn {
17223
17244
  async fetchProjectById(t) {
17224
17245
  return this.get(`/projects/${t}`);
17225
17246
  }
@@ -17280,7 +17301,7 @@ let bl;
17280
17301
  function kM() {
17281
17302
  return bl || (bl = new HS()), bl;
17282
17303
  }
17283
- class US extends gn {
17304
+ class US extends yn {
17284
17305
  fetchFilters(t) {
17285
17306
  return this.get(`get_list_repair?smart=1&${t}`);
17286
17307
  }
@@ -17351,7 +17372,7 @@ let wl;
17351
17372
  function _M() {
17352
17373
  return wl || (wl = new US()), wl;
17353
17374
  }
17354
- class jS extends gn {
17375
+ class jS extends yn {
17355
17376
  fetchTaskById(t) {
17356
17377
  return this.get(`/tasks/${t}`);
17357
17378
  }
@@ -17450,7 +17471,7 @@ let xl;
17450
17471
  function SM() {
17451
17472
  return xl || (xl = new jS()), xl;
17452
17473
  }
17453
- class GS extends gn {
17474
+ class GS extends yn {
17454
17475
  login(t, n) {
17455
17476
  return this.post("/v2/login", {
17456
17477
  email: t,
@@ -17493,7 +17514,7 @@ let Cl;
17493
17514
  function EM() {
17494
17515
  return Cl || (Cl = new GS()), Cl;
17495
17516
  }
17496
- class KS extends gn {
17517
+ class KS extends yn {
17497
17518
  uploadFile(t) {
17498
17519
  return this.post("/upload-file", t, {
17499
17520
  headers: { "Content-Type": "multipart/form-data" }
@@ -17504,7 +17525,7 @@ let kl;
17504
17525
  function RM() {
17505
17526
  return kl || (kl = new KS()), kl;
17506
17527
  }
17507
- class YS extends gn {
17528
+ class YS extends yn {
17508
17529
  async startVideoAnalytics() {
17509
17530
  return await this.post("/statanly/start", null);
17510
17531
  }
@@ -17583,7 +17604,7 @@ let _l;
17583
17604
  function TM() {
17584
17605
  return _l || (_l = new YS()), _l;
17585
17606
  }
17586
- class XS extends gn {
17607
+ class XS extends yn {
17587
17608
  async editUser({ id: t, model: n }) {
17588
17609
  return await this.put(`/admin/users/${t}`, n);
17589
17610
  }
@@ -17666,7 +17687,7 @@ let Sl;
17666
17687
  function IM() {
17667
17688
  return Sl || (Sl = new XS()), Sl;
17668
17689
  }
17669
- class QS extends gn {
17690
+ class QS extends yn {
17670
17691
  async fetchUserInstrumentsHistory(t, n) {
17671
17692
  const r = {
17672
17693
  status: "issued",
@@ -17714,7 +17735,7 @@ let El;
17714
17735
  function AM() {
17715
17736
  return El || (El = new QS()), El;
17716
17737
  }
17717
- class ZS extends gn {
17738
+ class ZS extends yn {
17718
17739
  fetchControlZones(t) {
17719
17740
  return this.get("/frame/list", { params: t });
17720
17741
  }
@@ -17780,7 +17801,7 @@ let Rl;
17780
17801
  function DM() {
17781
17802
  return Rl || (Rl = new ZS()), Rl;
17782
17803
  }
17783
- class JS extends gn {
17804
+ class JS extends yn {
17784
17805
  fetchSearchUsers(t) {
17785
17806
  return this.get("search/users", { params: t });
17786
17807
  }
@@ -17795,7 +17816,7 @@ let Tl;
17795
17816
  function MM() {
17796
17817
  return Tl || (Tl = new JS()), Tl;
17797
17818
  }
17798
- class e4 extends gn {
17819
+ class e4 extends yn {
17799
17820
  async detectModule(t) {
17800
17821
  return await this.get(`module/${t}/detect`);
17801
17822
  }
@@ -17813,7 +17834,7 @@ let Il;
17813
17834
  function FM() {
17814
17835
  return Il || (Il = new e4()), Il;
17815
17836
  }
17816
- class t4 extends gn {
17837
+ class t4 extends yn {
17817
17838
  async uploadComment(t) {
17818
17839
  return await this.post("comments", t);
17819
17840
  }
@@ -17828,7 +17849,7 @@ let Al;
17828
17849
  function PM() {
17829
17850
  return Al || (Al = new t4()), Al;
17830
17851
  }
17831
- class n4 extends gn {
17852
+ class n4 extends yn {
17832
17853
  fetchEquipmentById(t) {
17833
17854
  return this.get(`repairs/equipment/${t}`);
17834
17855
  }
@@ -17873,7 +17894,7 @@ let Dl;
17873
17894
  function BM() {
17874
17895
  return Dl || (Dl = new n4()), Dl;
17875
17896
  }
17876
- class r4 extends gn {
17897
+ class r4 extends yn {
17877
17898
  fetchBrigades(t) {
17878
17899
  return this.get("/search/brigades", { params: t });
17879
17900
  }
@@ -17894,7 +17915,7 @@ let Ml;
17894
17915
  function OM() {
17895
17916
  return Ml || (Ml = new r4()), Ml;
17896
17917
  }
17897
- class o4 extends gn {
17918
+ class o4 extends yn {
17898
17919
  fetchScheduleConfig() {
17899
17920
  return this.get("schedule/config");
17900
17921
  }
@@ -17938,7 +17959,7 @@ let Fl;
17938
17959
  function NM() {
17939
17960
  return Fl || (Fl = new o4()), Fl;
17940
17961
  }
17941
- class a4 extends gn {
17962
+ class a4 extends yn {
17942
17963
  createUserIssue(t) {
17943
17964
  return this.post("user_issue", t, { headers: { "Content-Type": "multipart/form-data" } });
17944
17965
  }
@@ -18169,7 +18190,7 @@ function B(e, t) {
18169
18190
  if (!e) throw new Error(typeof t == "string" ? t : t());
18170
18191
  }
18171
18192
  function Rt(e, t, n) {
18172
- n === void 0 && (n = ""), B(pn(e, t), function() {
18193
+ n === void 0 && (n = ""), B(vn(e, t), function() {
18173
18194
  return n + " Shapes " + e + " and " + t + " must match";
18174
18195
  });
18175
18196
  }
@@ -18188,7 +18209,7 @@ function Be(e) {
18188
18209
  for (var t = e[0], n = 1; n < e.length; n++) t *= e[n];
18189
18210
  return t;
18190
18211
  }
18191
- function pn(e, t) {
18212
+ function vn(e, t) {
18192
18213
  if (e === t) return !0;
18193
18214
  if (e == null || t == null || e.length !== t.length) return !1;
18194
18215
  for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
@@ -18954,7 +18975,7 @@ var ip, Bc, Oc, Nc, Lc, Pa = function(e) {
18954
18975
  }
18955
18976
  return vr(t, e), t.prototype.assign = function(n) {
18956
18977
  if (n.dtype !== this.dtype) throw new Error("dtype of the new value (" + n.dtype + ") and previous value (" + this.dtype + ") must match");
18957
- if (!pn(n.shape, this.shape)) throw new Error("shape of the new value (" + n.shape + ") and previous value (" + this.shape + ") must match");
18978
+ if (!vn(n.shape, this.shape)) throw new Error("shape of the new value (" + n.shape + ") and previous value (" + this.shape + ") must match");
18958
18979
  kr().disposeTensor(this), this.dataId = n.dataId, kr().incRef(this, null);
18959
18980
  }, t.prototype.dispose = function() {
18960
18981
  kr().disposeVariable(this), this.isDisposedInternal = !0;
@@ -18974,7 +18995,7 @@ Object.defineProperty(Pa, Symbol.hasInstance, { value: function(e) {
18974
18995
  e.float32 = "complex64", e.int32 = "complex64", e.bool = "complex64", e.complex64 = "complex64";
18975
18996
  }(Lc || (Lc = {}));
18976
18997
  var _4 = { float32: Nc, int32: Bc, bool: Oc, complex64: Lc };
18977
- function wn(e, t) {
18998
+ function xn(e, t) {
18978
18999
  if (e === "string" || t === "string") {
18979
19000
  if (e === "string" && t === "string") return "string";
18980
19001
  throw new Error("Can not upcast " + e + " with " + t);
@@ -18982,11 +19003,11 @@ function wn(e, t) {
18982
19003
  return _4[e][t];
18983
19004
  }
18984
19005
  function Ol(e) {
18985
- return wn(e, "int32");
19006
+ return xn(e, "int32");
18986
19007
  }
18987
19008
  function jt(e, t) {
18988
19009
  if (e.dtype === t.dtype) return [e, t];
18989
- var n = wn(e.dtype, t.dtype);
19010
+ var n = xn(e.dtype, t.dtype);
18990
19011
  return [e.cast(n), t.cast(n)];
18991
19012
  }
18992
19013
  function S4(e, t) {
@@ -19370,7 +19391,7 @@ var Nl, sp = function() {
19370
19391
  });
19371
19392
  if (E.dtype !== "float32") throw new Error("Error in gradient for op " + w.kernelName + ". The gradient of input " + S + " must have 'float32' dtype, but has '" + E.dtype + "'");
19372
19393
  var R = w.inputs[S];
19373
- if (!pn(E.shape, R.shape)) throw new Error("Error in gradient for op " + w.kernelName + ". The gradient of input '" + S + "' has shape '" + E.shape + "', which does not match the shape of the input '" + R.shape + "'");
19394
+ if (!vn(E.shape, R.shape)) throw new Error("Error in gradient for op " + w.kernelName + ". The gradient of input '" + S + "' has shape '" + E.shape + "', which does not match the shape of the input '" + R.shape + "'");
19374
19395
  if (f[R.id] == null) f[R.id] = E;
19375
19396
  else {
19376
19397
  var k = f[R.id];
@@ -19779,7 +19800,7 @@ function ns(e) {
19779
19800
  return e % 2 == 0;
19780
19801
  }
19781
19802
  function rs(e, t) {
19782
- if (pn(e = e.slice(-2), t = t.slice(-2)) || !e.length || !t.length || e[0] === 0 || e[1] === 0 || t[0] === 0 || t[1] === 0) return !0;
19803
+ if (vn(e = e.slice(-2), t = t.slice(-2)) || !e.length || !t.length || e[0] === 0 || e[1] === 0 || t[0] === 0 || t[1] === 0) return !0;
19783
19804
  if (e.length !== t.length) {
19784
19805
  var n = e.slice(-1)[0], r = t.slice(-1)[0];
19785
19806
  if (n === r || ns(n) && ns(r) && (e[0] === 1 || t[0] === 1)) return !0;
@@ -19920,7 +19941,7 @@ function nE(e, t, n) {
19920
19941
  for (var r = e.length + t.length, o = [], a = 0, i = 0, s = 0; s < r; s++) n.indexOf(s) === -1 ? o.push(e[a++]) : o.push(t[i++]);
19921
19942
  return o;
19922
19943
  }
19923
- function _n(e, t) {
19944
+ function Sn(e, t) {
19924
19945
  for (var n = [], r = e.length, o = 0; o < r; o++) t.indexOf(o) === -1 && n.push(e[o]);
19925
19946
  return [n, t.map(function(a) {
19926
19947
  return e[a];
@@ -20046,7 +20067,7 @@ Je.registerFlag("HAS_WEBGL", function() {
20046
20067
  }), Je.registerFlag("WEBGL_SIZE_UPLOAD_UNIFORM", function() {
20047
20068
  return Je.getBool("WEBGL_RENDER_FLOAT32_ENABLED") ? 4 : 0;
20048
20069
  }), ng = ag;
20049
- var bn = $({ complex_: function(e, t) {
20070
+ var wn = $({ complex_: function(e, t) {
20050
20071
  var n = M(e, "real", "complex"), r = M(t, "imag", "complex");
20051
20072
  return Rt(n.shape, r.shape, "real and imag shapes, " + n.shape + " and " + r.shape + ", must match in call to tf.complex()."), j.runKernelFunc(function(o) {
20052
20073
  return o.complex(n, r);
@@ -20062,7 +20083,7 @@ var bn = $({ complex_: function(e, t) {
20062
20083
  return n.imag(t);
20063
20084
  }, { $input: t });
20064
20085
  } });
20065
- function xn(e, t, n) {
20086
+ function Cn(e, t, n) {
20066
20087
  return go(e, t, mo(e, n), n);
20067
20088
  }
20068
20089
  function go(e, t, n, r) {
@@ -20134,16 +20155,16 @@ function iE(e, t, n, r) {
20134
20155
  }
20135
20156
  function ja(e, t) {
20136
20157
  if (t === void 0 && (t = "float32"), t === "complex64") {
20137
- var n = ja(e, "float32"), r = Vt(e, "float32");
20138
- return bn(n, r);
20158
+ var n = ja(e, "float32"), r = zt(e, "float32");
20159
+ return wn(n, r);
20139
20160
  }
20140
20161
  var o = Jm(Be(e), t);
20141
20162
  return j.makeTensor(o, e, t);
20142
20163
  }
20143
- function Vt(e, t) {
20164
+ function zt(e, t) {
20144
20165
  if (t === void 0 && (t = "float32"), t === "complex64") {
20145
- var n = Vt(e, "float32"), r = Vt(e, "float32");
20146
- return bn(n, r);
20166
+ var n = zt(e, "float32"), r = zt(e, "float32");
20167
+ return wn(n, r);
20147
20168
  }
20148
20169
  var o = Pi(Be(e), t);
20149
20170
  return j.makeTensor(o, e, t);
@@ -20161,7 +20182,7 @@ function sE(e, t, n) {
20161
20182
  }
20162
20183
  function Us(e, t, n, r) {
20163
20184
  if (n === void 0 && (n = 1), r === void 0 && (r = "float32"), n === 0) throw new Error("Cannot have a step of zero");
20164
- if (e === t || e < t && n < 0 || t < e && n > 1) return Vt([0], r);
20185
+ if (e === t || e < t && n < 0 || t < e && n > 1) return zt([0], r);
20165
20186
  var o = Pi(Math.abs(Math.ceil((t - e) / n)), r);
20166
20187
  t < e && n === 1 && (n = -1), o[0] = e;
20167
20188
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + n;
@@ -20171,7 +20192,7 @@ var sg = $({ onesLike_: function(e) {
20171
20192
  var t = M(e, "x", "onesLike");
20172
20193
  if (t.dtype === "complex64") {
20173
20194
  var n = sg(or(t)), r = yt(_r(t));
20174
- return bn(n, r);
20195
+ return wn(n, r);
20175
20196
  }
20176
20197
  return j.runKernelFunc(function(o) {
20177
20198
  return o.onesLike(t);
@@ -20201,7 +20222,7 @@ var sg = $({ onesLike_: function(e) {
20201
20222
  var r = Ba(n.map(function(s) {
20202
20223
  return s.shape;
20203
20224
  }), t);
20204
- if (Be(r) === 0) return xn([], r);
20225
+ if (Be(r) === 0) return Cn([], r);
20205
20226
  if ((n = n.filter(function(s) {
20206
20227
  return s.size > 0;
20207
20228
  })).length === 1) return n[0];
@@ -20684,7 +20705,7 @@ var ug = $({ batchToSpaceND_: function(e, t, n) {
20684
20705
  return i.oneHot(o, t, n, r);
20685
20706
  }, { $indices: o }, function(i) {
20686
20707
  return { $indices: function() {
20687
- return Vt(o.shape, "float32");
20708
+ return zt(o.shape, "float32");
20688
20709
  } };
20689
20710
  }).reshape(a);
20690
20711
  } }), Go = $({ pad_: function(e, t, n) {
@@ -21529,7 +21550,7 @@ function Vd(e) {
21529
21550
  function Cg(e, t, n) {
21530
21551
  if (t === "complex64") {
21531
21552
  if (e.dtype === "complex64") return e.clone();
21532
- var r = Vt(e.shape), o = e.toFloat(), a = n.complex(o, r);
21553
+ var r = zt(e.shape), o = e.toFloat(), a = n.complex(o, r);
21533
21554
  return r.dispose(), o.dispose(), a;
21534
21555
  }
21535
21556
  if (!v4(e.dtype, t)) return j.makeTensorFromDataId(e.dataId, e.shape, t);
@@ -21653,7 +21674,7 @@ function Rg(e, t, n, r, o) {
21653
21674
  for (m = 0; m < r; m++) y[m] = p[m].value, w[m] = p[m].index;
21654
21675
  }
21655
21676
  var b = t.slice();
21656
- return b[b.length - 1] = r, [xn(l, b, n), xn(c, b, "int32")];
21677
+ return b[b.length - 1] = r, [Cn(l, b, n), Cn(c, b, "int32")];
21657
21678
  }
21658
21679
  function Wd(e, t) {
21659
21680
  for (var n = [], r = 0; r < t.length; r++) t[r] && n.push(r);
@@ -21739,7 +21760,7 @@ function Tg(e, t) {
21739
21760
  function Bn(e, t) {
21740
21761
  return t === 1 ? [e] : Tg(e, t);
21741
21762
  }
21742
- function Tn() {
21763
+ function In() {
21743
21764
  var e, t, n, r, o, a, i, s, u, l;
21744
21765
  return ie().getNumber("WEBGL_VERSION") === 2 ? (e = "#version 300 es", t = "in", n = "out", r = "in", o = "texture", a = "outputColor", i = "out vec4 outputColor;", s = `
21745
21766
  bool isnan_custom(float val) {
@@ -21859,7 +21880,7 @@ function ZE(e, t, n, r) {
21859
21880
  y += v ? Ag(p) : la(p);
21860
21881
  var w = p.shapeInfo.logicalShape, b = m.logicalShape;
21861
21882
  return w.length <= b.length && (y += v ? function(g, x) {
21862
- var C, S = g.name, E = S.charAt(0).toUpperCase() + S.slice(1), R = "get" + E + "AtOutCoords", k = g.shapeInfo.logicalShape.length, I = x.logicalShape.length, A = ao(g.shapeInfo.logicalShape, x.logicalShape), q = Lt(I), D = I - k, O = ["x", "y", "z", "w", "u", "v"];
21883
+ var C, S = g.name, E = S.charAt(0).toUpperCase() + S.slice(1), R = "get" + E + "AtOutCoords", k = g.shapeInfo.logicalShape.length, I = x.logicalShape.length, A = ao(g.shapeInfo.logicalShape, x.logicalShape), q = qt(I), D = I - k, O = ["x", "y", "z", "w", "u", "v"];
21863
21884
  C = k === 0 ? "" : I < 2 && A.length >= 1 ? "coords = 0;" : A.map(function(V) {
21864
21885
  return "coords." + O[V + D] + " = 0;";
21865
21886
  }).join(`
@@ -21892,12 +21913,12 @@ function ZE(e, t, n, r) {
21892
21913
  `;
21893
21914
  }(p, m) : function(g, x) {
21894
21915
  var C = g.name, S = C.charAt(0).toUpperCase() + C.slice(1), E = "get" + S + "AtOutCoords", R = x.texShape, k = g.shapeInfo.texShape, I = g.shapeInfo.logicalShape.length, A = x.logicalShape.length;
21895
- if (!g.shapeInfo.isUniform && I === A && g.shapeInfo.flatOffset == null && pn(k, R)) return `
21916
+ if (!g.shapeInfo.isUniform && I === A && g.shapeInfo.flatOffset == null && vn(k, R)) return `
21896
21917
  float ` + E + `() {
21897
21918
  return sampleTexture(` + C + `, resultUV);
21898
21919
  }
21899
21920
  `;
21900
- var q, D = Lt(A), O = ao(g.shapeInfo.logicalShape, x.logicalShape), z = A - I, F = ["x", "y", "z", "w", "u", "v"];
21921
+ var q, D = qt(A), O = ao(g.shapeInfo.logicalShape, x.logicalShape), z = A - I, F = ["x", "y", "z", "w", "u", "v"];
21901
21922
  q = I === 0 ? "" : A < 2 && O.length >= 1 ? "coords = 0;" : O.map(function(H) {
21902
21923
  return "coords." + F[H + z] + " = 0;";
21903
21924
  }).join(`
@@ -21915,7 +21936,7 @@ function ZE(e, t, n, r) {
21915
21936
  }(p, m)), y;
21916
21937
  }(h, t, r);
21917
21938
  }).join(`
21918
- `), l = t.texShape, c = Tn(), d = function(h) {
21939
+ `), l = t.texShape, c = In(), d = function(h) {
21919
21940
  return `
21920
21941
  float sampleTexture(sampler2D textureSampler, vec2 uv) {
21921
21942
  return ` + h.texture2D + `(textureSampler, uv).r;
@@ -22012,7 +22033,7 @@ function ZE(e, t, n, r) {
22012
22033
  case 2:
22013
22034
  return function(g, x) {
22014
22035
  var C = [Math.ceil(x[0] / 2), Math.ceil(x[1] / 2)];
22015
- if (pn(g, x)) return `
22036
+ if (vn(g, x)) return `
22016
22037
  ivec2 getOutputCoords() {
22017
22038
  return 2 * ivec2(resultUV.yx * vec2(` + C[0] + ", " + C[1] + `));
22018
22039
  }
@@ -22107,7 +22128,7 @@ function ZE(e, t, n, r) {
22107
22128
  }(0, p);
22108
22129
  case 2:
22109
22130
  return function(y, w) {
22110
- return pn(y, w) ? `
22131
+ return vn(y, w) ? `
22111
22132
  ivec2 getOutputCoords() {
22112
22133
  return ivec2(resultUV.yx * vec2(` + w[0] + ", " + w[1] + `));
22113
22134
  }
@@ -22261,7 +22282,7 @@ function la(e) {
22261
22282
  case 2:
22262
22283
  return function(n) {
22263
22284
  var r = n.shapeInfo.logicalShape, o = n.name, a = "get" + o.charAt(0).toUpperCase() + o.slice(1), i = n.shapeInfo.texShape;
22264
- if (i != null && pn(r, i)) {
22285
+ if (i != null && vn(r, i)) {
22265
22286
  var s = i[0], u = i[1];
22266
22287
  return `
22267
22288
  float ` + a + `(int row, int col) {
@@ -22535,14 +22556,14 @@ function Ag(e) {
22535
22556
  var t, n, r;
22536
22557
  switch (e.shapeInfo.logicalShape.length) {
22537
22558
  case 0:
22538
- return t = e.name, n = "get" + t.charAt(0).toUpperCase() + t.slice(1), r = Tn(), `
22559
+ return t = e.name, n = "get" + t.charAt(0).toUpperCase() + t.slice(1), r = In(), `
22539
22560
  vec4 ` + n + `() {
22540
22561
  return ` + r.texture2D + "(" + t + `, halfCR);
22541
22562
  }
22542
22563
  `;
22543
22564
  case 1:
22544
22565
  return function(o) {
22545
- var a = o.name, i = "get" + a.charAt(0).toUpperCase() + a.slice(1), s = o.shapeInfo.texShape, u = [Math.ceil(s[0] / 2), Math.ceil(s[1] / 2)], l = Tn();
22566
+ var a = o.name, i = "get" + a.charAt(0).toUpperCase() + a.slice(1), s = o.shapeInfo.texShape, u = [Math.ceil(s[0] / 2), Math.ceil(s[1] / 2)], l = In();
22546
22567
  return `
22547
22568
  vec4 ` + i + `(int index) {
22548
22569
  vec2 uv = packedUVfrom1D(
@@ -22553,8 +22574,8 @@ function Ag(e) {
22553
22574
  }(e);
22554
22575
  case 2:
22555
22576
  return function(o) {
22556
- var a = o.shapeInfo.logicalShape, i = o.name, s = "get" + i.charAt(0).toUpperCase() + i.slice(1), u = o.shapeInfo.texShape, l = u[0], c = u[1], d = Tn();
22557
- if (u != null && pn(a, u)) return `
22577
+ var a = o.shapeInfo.logicalShape, i = o.name, s = "get" + i.charAt(0).toUpperCase() + i.slice(1), u = o.shapeInfo.texShape, l = u[0], c = u[1], d = In();
22578
+ if (u != null && vn(a, u)) return `
22558
22579
  vec4 ` + s + `(int row, int col) {
22559
22580
  vec2 uv = (vec2(col, row) + halfCR) / vec2(` + c + ".0, " + l + `.0);
22560
22581
 
@@ -22581,7 +22602,7 @@ function Ag(e) {
22581
22602
  }
22582
22603
  `;
22583
22604
  }
22584
- var f = l[0], h = l[1], p = Math.ceil(a[2] / 2), m = p * Math.ceil(a[1] / 2), v = Tn();
22605
+ var f = l[0], h = l[1], p = Math.ceil(a[2] / 2), m = p * Math.ceil(a[1] / 2), v = In();
22585
22606
  return `
22586
22607
  vec4 ` + s + `(int b, int row, int col) {
22587
22608
  vec2 uv = packedUVfrom3D(
@@ -22593,7 +22614,7 @@ function Ag(e) {
22593
22614
  default:
22594
22615
  return function(o) {
22595
22616
  for (var a = o.shapeInfo.logicalShape, i = a.length, s = o.name, u = "get" + s.charAt(0).toUpperCase() + s.slice(1), l = o.shapeInfo.texShape, c = [Math.ceil(l[0] / 2), Math.ceil(l[1] / 2)], d = c[0], f = c[1], h = Math.ceil(a[i - 1] / 2), p = h * Math.ceil(a[i - 2] / 2), m = "int b, int row, int col", v = "b * " + p + " + (row / 2) * " + h + " + (col / 2)", y = 2; y < i - 1; y++) m = "int b" + y + ", " + m, p *= a[i - y - 1], v = "b" + y + " * " + p + " + " + v;
22596
- var w = Tn();
22617
+ var w = In();
22597
22618
  return `
22598
22619
  vec4 ` + u + "(" + m + `) {
22599
22620
  int index = ` + v + `;
@@ -22660,7 +22681,7 @@ function aa(e) {
22660
22681
  }
22661
22682
  `;
22662
22683
  }
22663
- function Lt(e) {
22684
+ function qt(e) {
22664
22685
  if (e <= 1) return "int";
22665
22686
  if (e === 2) return "ivec2";
22666
22687
  if (e === 3) return "ivec3";
@@ -22684,9 +22705,9 @@ var r5 = function(e, t, n, r) {
22684
22705
  });
22685
22706
  var o = e[e.length - 1], a = Math.ceil(o / t);
22686
22707
  this.outputShape = e.slice(0, -1), a > 1 && this.outputShape.push(a), r || this.variableNames.push("bestIndicesA");
22687
- var i, s, u = this.outputShape, l = u.length, c = Lt(l), d = Bn("coords", l);
22708
+ var i, s, u = this.outputShape, l = u.length, c = qt(l), d = Bn("coords", l);
22688
22709
  if (a === 1) {
22689
- var f = Lt(s = l + 1);
22710
+ var f = qt(s = l + 1);
22690
22711
  i = `
22691
22712
  ` + f + " sourceLocR = " + f + "(" + d.join() + `, 0);
22692
22713
  ++` + d[l - 1] + `;
@@ -22935,7 +22956,7 @@ var r5 = function(e, t, n, r) {
22935
22956
  result.w = 0.;
22936
22957
  `;
22937
22958
  else if (a = `
22938
- ` + Lt(o) + ` coords = getOutputCoords();
22959
+ ` + qt(o) + ` coords = getOutputCoords();
22939
22960
  `, o === 1) a += `
22940
22961
  result.y = (coords + 1) >= ` + this.outputShape[0] + ` ? 0. : result.y;
22941
22962
  result.z = 0.;
@@ -23055,7 +23076,7 @@ var r5 = function(e, t, n, r) {
23055
23076
  `;
23056
23077
  }, p5 = function(e, t) {
23057
23078
  this.packedInputs = !0, this.packedOutput = !0, this.outputShape = [], this.outputShape = Ba(e, t);
23058
- var n = this.outputShape, r = n.length, o = Lt(r), a = Bn("coords", r), i = ["x", "y", "z", "w", "u", "v"].slice(0, r);
23079
+ var n = this.outputShape, r = n.length, o = qt(r), a = Bn("coords", r), i = ["x", "y", "z", "w", "u", "v"].slice(0, r);
23059
23080
  this.variableNames = e.map(function(v, y) {
23060
23081
  return "T" + y;
23061
23082
  });
@@ -23944,7 +23965,7 @@ var v5 = function(e) {
23944
23965
  }
23945
23966
 
23946
23967
  void main() {
23947
- ` + Lt(r) + ` coords = getOutputCoords();
23968
+ ` + qt(r) + ` coords = getOutputCoords();
23948
23969
  int end = ` + wp(r, "coords") + `;
23949
23970
  float val = 0.0;
23950
23971
  for (int i = ` + o + ` - 1; i >= 0; i -= 1) {
@@ -23977,7 +23998,7 @@ function wp(e, t) {
23977
23998
  }
23978
23999
  var _5 = function(e) {
23979
24000
  this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outPackingScheme = mi.DENSE;
23980
- var t = ai(e), n = Tn();
24001
+ var t = ai(e), n = In();
23981
24002
  this.outputShape = e, this.userCode = `
23982
24003
  ivec3 outCoordsFromFlatIndex(int index) {
23983
24004
  ` + Io(["r", "c", "d"], e) + `
@@ -24002,7 +24023,7 @@ var _5 = function(e) {
24002
24023
  `;
24003
24024
  }, S5 = function(e) {
24004
24025
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outPackingScheme = mi.DENSE;
24005
- var t = ai(e), n = Tn();
24026
+ var t = ai(e), n = In();
24006
24027
  this.outputShape = e, this.userCode = `
24007
24028
  ivec3 outCoordsFromFlatIndex(int index) {
24008
24029
  ` + Io(["r", "c", "d"], e) + `
@@ -24069,7 +24090,7 @@ var _5 = function(e) {
24069
24090
  `;
24070
24091
  }, T5 = function(e) {
24071
24092
  this.variableNames = ["A"], this.outTexUsage = Yn.DOWNLOAD;
24072
- var t = Tn();
24093
+ var t = In();
24073
24094
  this.outputShape = e, this.userCode = `
24074
24095
  ` + Ig + `
24075
24096
 
@@ -24080,7 +24101,7 @@ var _5 = function(e) {
24080
24101
  `;
24081
24102
  }, I5 = function(e) {
24082
24103
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !1, this.outTexUsage = Yn.DOWNLOAD;
24083
- var t = Tn();
24104
+ var t = In();
24084
24105
  this.outputShape = e, this.userCode = `
24085
24106
  ` + Ig + `
24086
24107
 
@@ -24092,7 +24113,7 @@ var _5 = function(e) {
24092
24113
  `;
24093
24114
  }, A5 = function(e, t, n) {
24094
24115
  n === void 0 && (n = !1), this.variableNames = ["A"];
24095
- var r = Tn(), o = t[0], a = t[1];
24116
+ var r = In(), o = t[0], a = t[1];
24096
24117
  this.outputShape = e;
24097
24118
  var i = "result";
24098
24119
  n && (i = "floor(result * 255. + 0.5)"), this.userCode = `
@@ -24128,7 +24149,7 @@ var _5 = function(e) {
24128
24149
  `;
24129
24150
  }, D5 = function(e, t, n) {
24130
24151
  n === void 0 && (n = !1), this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0;
24131
- var r = Tn(), o = t[0], a = t[1];
24152
+ var r = In(), o = t[0], a = t[1];
24132
24153
  this.outputShape = e;
24133
24154
  var i = "", s = "result";
24134
24155
  n && (s = "floor(result * 255. + 0.5)");
@@ -24240,7 +24261,7 @@ var _5 = function(e) {
24240
24261
  this.variableNames = ["A", "indices"];
24241
24262
  var r = e.slice();
24242
24263
  r[n] = t, this.outputShape = r, this.rank = r.length;
24243
- var o = Lt(this.rank), a = function(i, s) {
24264
+ var o = qt(this.rank), a = function(i, s) {
24244
24265
  var u = i.length;
24245
24266
  if (u > 4) throw Error("Gather for rank " + u + " is not yet supported");
24246
24267
  if (u === 1) return "int(getIndices(resRC))";
@@ -24255,7 +24276,7 @@ var _5 = function(e) {
24255
24276
  `;
24256
24277
  }, O5 = function(e, t, n) {
24257
24278
  this.sliceDim = e, this.strides = t, this.variableNames = ["x", "indices"], this.outputShape = n;
24258
- var r = Lt(t.length), o = Lt(n.length), a = this.sliceDim > 1 ? "strides[j]" : "strides";
24279
+ var r = qt(t.length), o = qt(n.length), a = this.sliceDim > 1 ? "strides[j]" : "strides";
24259
24280
  this.userCode = `
24260
24281
  ` + r + " strides = " + r + "(" + this.strides + `);
24261
24282
  void main() {
@@ -24270,7 +24291,7 @@ var _5 = function(e) {
24270
24291
  `;
24271
24292
  };
24272
24293
  function N5(e, t) {
24273
- var n = Tn();
24294
+ var n = In();
24274
24295
  return M4(e, t, n.version + `
24275
24296
  precision highp float;
24276
24297
  ` + n.attribute + ` vec3 clipSpacePos;
@@ -24640,16 +24661,16 @@ function Cp(e, t) {
24640
24661
  if (e.length !== t.length) throw Error("Binary was compiled with " + e.length + " inputs, but was executed with " + t.length + " inputs");
24641
24662
  e.forEach(function(n, r) {
24642
24663
  var o = n.logicalShape, a = t[r], i = a.shape;
24643
- if (!pn(o, i)) throw Error("Binary was compiled with different shapes than the current args. Shapes " + o + " and " + i + " must match");
24664
+ if (!vn(o, i)) throw Error("Binary was compiled with different shapes than the current args. Shapes " + o + " and " + i + " must match");
24644
24665
  if (!n.isUniform || !a.isUniform) {
24645
24666
  var s = n.texShape, u = a.isUniform ? null : a.texData.texShape;
24646
- if (!pn(s, u)) throw Error("Binary was compiled with different texture shapes than the current args. Shape " + s + " and " + u + " must match");
24667
+ if (!vn(s, u)) throw Error("Binary was compiled with different texture shapes than the current args. Shape " + s + " and " + u + " must match");
24647
24668
  }
24648
24669
  });
24649
24670
  }
24650
24671
  var eR = function(e, t, n) {
24651
24672
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = e;
24652
- for (var r = n.filterWidth, o = n.inChannels, a = n.strideWidth, i = n.strideHeight, s = n.padInfo, u = n.outWidth, l = n.dilationWidth, c = n.dilationHeight, d = n.dataFormat, f = s.left, h = s.top, p = o * r, m = Tn(), v = d === "channelsLast", y = v ? 0 : 1, w = v ? 1 : 2, b = "", g = 0; g <= 1; g++) for (var x = 0; x <= 1; x++) b += `
24673
+ for (var r = n.filterWidth, o = n.inChannels, a = n.strideWidth, i = n.strideHeight, s = n.padInfo, u = n.outWidth, l = n.dilationWidth, c = n.dilationHeight, d = n.dataFormat, f = s.left, h = s.top, p = o * r, m = In(), v = d === "channelsLast", y = v ? 0 : 1, w = v ? 1 : 2, b = "", g = 0; g <= 1; g++) for (var x = 0; x <= 1; x++) b += `
24653
24674
  blockIndex = rc.y + ` + x + `;
24654
24675
  pos = rc.x + ` + g + `;
24655
24676
 
@@ -25053,7 +25074,7 @@ var eR = function(e, t, n) {
25053
25074
  }
25054
25075
  `;
25055
25076
  else {
25056
- var n = Bn("rc", t), r = Lt(t), o = function(s, u, l) {
25077
+ var n = Bn("rc", t), r = qt(t), o = function(s, u, l) {
25057
25078
  if (s === 1) return "rc > " + u[0];
25058
25079
  for (var c = "", d = s - 2; d < s; d++) c += l[d] + " >= " + u[d], d < s - 1 && (c += "||");
25059
25080
  return c;
@@ -25102,7 +25123,7 @@ var eR = function(e, t, n) {
25102
25123
  this.variableNames = ["x"], this.outputShape = t.map(function(u, l) {
25103
25124
  return u[0] + e[l] + u[1];
25104
25125
  });
25105
- var r = e.length, o = Lt(r), a = t.map(function(u) {
25126
+ var r = e.length, o = qt(r), a = t.map(function(u) {
25106
25127
  return u[0];
25107
25128
  }).join(","), i = t.map(function(u, l) {
25108
25129
  return u[0] + e[l];
@@ -25137,7 +25158,7 @@ var eR = function(e, t, n) {
25137
25158
  this.variableNames = ["x"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = t.map(function(v, y) {
25138
25159
  return v[0] + e[y] + v[1];
25139
25160
  });
25140
- for (var r = e.length, o = Lt(r), a = t.map(function(v) {
25161
+ for (var r = e.length, o = qt(r), a = t.map(function(v) {
25141
25162
  return v[0];
25142
25163
  }).join(","), i = t.map(function(v, y) {
25143
25164
  return v[0] + e[y];
@@ -25952,7 +25973,7 @@ var eR = function(e, t, n) {
25952
25973
  return function(s) {
25953
25974
  return t.indexOf(s) !== -1 && e[s] !== 1 ? e[s] + " - coords[" + s + "] - 1" : "coords[" + s + "]";
25954
25975
  }(i);
25955
- }).join(","), o = Lt(n);
25976
+ }).join(","), o = qt(n);
25956
25977
  this.userCode = `
25957
25978
  void main() {
25958
25979
  ` + o + ` coords = getOutputCoords();
@@ -25970,7 +25991,7 @@ var eR = function(e, t, n) {
25970
25991
  var n = e.length;
25971
25992
  if (n > 4) throw new Error("WebGL backend: Reverse of rank-" + n + " tensor is not yet supported");
25972
25993
  this.outputShape = e;
25973
- var r = Bn("rc", n), o = r[n - 1] + " + 1 < " + this.outputShape[n - 1], a = r[n - 2] + " + 1 < " + this.outputShape[n - 2], i = Lt(n);
25994
+ var r = Bn("rc", n), o = r[n - 1] + " + 1 < " + this.outputShape[n - 1], a = r[n - 2] + " + 1 < " + this.outputShape[n - 2], i = qt(n);
25974
25995
  function s(u) {
25975
25996
  var l = e.map(function(c, d) {
25976
25997
  return function(f, h) {
@@ -26018,7 +26039,7 @@ var eR = function(e, t, n) {
26018
26039
  `;
26019
26040
  }, kp = function(e, t, n, r, o, a, i) {
26020
26041
  this.variableNames = ["updates", "indices", "defaultValue"], this.outputShape = a;
26021
- var s = Lt(o.length), u = Lt(a.length), l = "";
26042
+ var s = qt(o.length), u = qt(a.length), l = "";
26022
26043
  n === 1 ? l = "i" : n === 2 && (l = "i, j");
26023
26044
  var c = "getIndices(" + l + ")", d = "";
26024
26045
  r === 1 ? d = "i" : r === 2 && (d = "i, coords[1]");
@@ -26166,7 +26187,7 @@ var eR = function(e, t, n) {
26166
26187
  for (var a = ["resRC.x", "resRC.y", "resRC.z", "resRC.w"], i = [], s = [], u = 0; u < t.length; u++) s.push("" + a[u]), u < e && i.push("" + a[u]);
26167
26188
  r = i.join(), o = s.join();
26168
26189
  }
26169
- var l = Lt(n);
26190
+ var l = qt(n);
26170
26191
  this.userCode = `
26171
26192
  void main() {
26172
26193
  ` + l + ` resRC = getOutputCoords();
@@ -26181,7 +26202,7 @@ var eR = function(e, t, n) {
26181
26202
  }, CR = function() {
26182
26203
  function e(t) {
26183
26204
  this.variableNames = ["source"], this.outputShape = t, this.rank = t.length;
26184
- var n, r = Lt(this.rank), o = "uniform int start[" + this.rank + "];", a = function(i) {
26205
+ var n, r = qt(this.rank), o = "uniform int start[" + this.rank + "];", a = function(i) {
26185
26206
  if (i === 1) return "sourceLoc";
26186
26207
  if (i <= 6) return Xl.slice(0, i).map(function(s) {
26187
26208
  return "sourceLoc." + s;
@@ -26213,7 +26234,7 @@ var eR = function(e, t, n) {
26213
26234
  }(), Xl = ["x", "y", "z", "w", "u", "v"], kR = function() {
26214
26235
  function e(t) {
26215
26236
  this.variableNames = ["source"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = t, this.rank = t.length;
26216
- var n = Lt(this.rank), r = Bn("coords", this.rank), o = Bn("sourceLoc", this.rank), a = this.rank === 1 ? "sourceLoc" : "vec2(" + o.slice(-2).join() + ")", i = "getChannel(getSource(" + o.join() + "), " + a + ")", s = `
26237
+ var n = qt(this.rank), r = Bn("coords", this.rank), o = Bn("sourceLoc", this.rank), a = this.rank === 1 ? "sourceLoc" : "vec2(" + o.slice(-2).join() + ")", i = "getChannel(getSource(" + o.join() + "), " + a + ")", s = `
26217
26238
  result.x = ` + i + `;
26218
26239
  if (++` + r[this.rank - 1] + " < " + t[this.rank - 1] + `) {
26219
26240
  ++` + o[this.rank - 1] + `;
@@ -26259,7 +26280,7 @@ var eR = function(e, t, n) {
26259
26280
  }, e;
26260
26281
  }(), _R = function(e, t, n) {
26261
26282
  this.variableNames = ["x"], this.outputShape = n;
26262
- var r = n.length, o = Lt(n.length), a = Lt(n.length), i = "";
26283
+ var r = n.length, o = qt(n.length), a = qt(n.length), i = "";
26263
26284
  if (r === 1) i = "coords * strides + begin";
26264
26285
  else {
26265
26286
  var s = 0;
@@ -26333,7 +26354,7 @@ var ER = function(e, t) {
26333
26354
  this.variableNames = ["A"];
26334
26355
  for (var n = new Array(e.length), r = 0; r < n.length; r++) n[r] = e[r] * t[r];
26335
26356
  this.outputShape = n, this.rank = n.length;
26336
- var o = Lt(this.rank), a = function(i) {
26357
+ var o = qt(this.rank), a = function(i) {
26337
26358
  var s = i.length;
26338
26359
  if (s > 5) throw Error("Tile for rank " + s + " is not yet supported");
26339
26360
  if (s === 1) return "imod(resRC, " + i[0] + ")";
@@ -26350,7 +26371,7 @@ var ER = function(e, t) {
26350
26371
  this.variableNames = ["A"];
26351
26372
  for (var n = new Array(e.length), r = 0; r < n.length; r++) n[r] = e[t[r]];
26352
26373
  this.outputShape = n, this.rank = n.length;
26353
- var o = Lt(this.rank), a = function(i) {
26374
+ var o = qt(this.rank), a = function(i) {
26354
26375
  var s = i.length;
26355
26376
  if (s > 6) throw Error("Transpose for rank " + s + " is not yet supported");
26356
26377
  for (var u = ["resRC.x", "resRC.y", "resRC.z", "resRC.w", "resRC.u", "resRC.v"], l = new Array(s), c = 0; c < i.length; c++) l[i[c]] = u[c];
@@ -26366,7 +26387,7 @@ var ER = function(e, t) {
26366
26387
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0;
26367
26388
  for (var n = new Array(e.length), r = 0; r < n.length; r++) n[r] = e[t[r]];
26368
26389
  if (this.outputShape = n, this.rank = n.length, this.rank > 6) throw Error("Packed transpose for rank " + this.rank + " is not yet supported.");
26369
- var o = Lt(this.rank), a = Tg("rc", this.rank), i = new Array(this.rank);
26390
+ var o = qt(this.rank), a = Tg("rc", this.rank), i = new Array(this.rank);
26370
26391
  for (r = 0; r < t.length; r++) i[t[r]] = a[r];
26371
26392
  var s = "vec2(" + i.slice(-2).join() + ")", u = "++" + a[this.rank - 1] + " < " + n[this.rank - 1], l = "getChannel(getA(" + i.join() + "), " + s + ")";
26372
26393
  this.userCode = `
@@ -26474,7 +26495,7 @@ var ER = function(e, t) {
26474
26495
  `;
26475
26496
  }, VR = function(e) {
26476
26497
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !1, this.outputShape = e;
26477
- var t = e.length, n = Bn("rc", t), r = Lt(t), o = function(s, u) {
26498
+ var t = e.length, n = Bn("rc", t), r = qt(t), o = function(s, u) {
26478
26499
  if (s === 1) return "rc";
26479
26500
  for (var l = "", c = 0; c < s; c++) l += u[c], c < s - 1 && (l += ",");
26480
26501
  return l;
@@ -26648,7 +26669,7 @@ var zR = 600, $R = function(e) {
26648
26669
  return this.texData.get(n.dataId).complexTensors.imag.clone();
26649
26670
  }, t.prototype.slice = function(n, r, o) {
26650
26671
  if (this.shouldExecuteOnCPU([n])) return this.cpuBackend.slice(n, r, o);
26651
- if (Be(o) === 0) return xn([], o, n.dtype);
26672
+ if (Be(o) === 0) return Cn([], o, n.dtype);
26652
26673
  var a = this.texData.get(n.dataId).isPacked, i = gg(n.shape, r, o);
26653
26674
  if (a || !i) {
26654
26675
  var s = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new kR(o) : new CR(o), u = s.getCustomSetupFunc(r);
@@ -26667,7 +26688,7 @@ var zR = 600, $R = function(e) {
26667
26688
  var i = qd(r, o, a);
26668
26689
  if (i.some(function(u) {
26669
26690
  return u === 0;
26670
- })) return xn([], i);
26691
+ })) return Cn([], i);
26671
26692
  var s = new _R(r, a, i);
26672
26693
  return this.compileAndRun(s, [n]);
26673
26694
  }, t.prototype.reverse = function(n, r) {
@@ -26680,7 +26701,7 @@ var zR = 600, $R = function(e) {
26680
26701
  }), a = n.map(function(h) {
26681
26702
  return _r(h);
26682
26703
  });
26683
- return bn(this.concat(o, r), this.concat(a, r));
26704
+ return wn(this.concat(o, r), this.concat(a, r));
26684
26705
  }
26685
26706
  if (this.shouldExecuteOnCPU(n)) return this.cpuBackend.concat(n, r);
26686
26707
  if (n.length === 1) return n[0];
@@ -26714,10 +26735,10 @@ var zR = 600, $R = function(e) {
26714
26735
  var c = s === 1 ? n : n.as3D(l, u, 1), d = s === 1 ? 2 : 1, f = s === 1 ? r.as3D(l, 1, u) : r;
26715
26736
  return this.multiply(c, f).sum(d, !0);
26716
26737
  }
26717
- var h = wn(n.dtype, r.dtype), p = new Gl(n.shape, [l, i, s], o, a);
26738
+ var h = xn(n.dtype, r.dtype), p = new Gl(n.shape, [l, i, s], o, a);
26718
26739
  return this.compileAndRun(p, [n, r], h);
26719
26740
  }, t.prototype.fusedBatchMatMul = function(n) {
26720
- var r = n.a, o = n.b, a = n.transposeA, i = n.transposeB, s = n.bias, u = n.activation, l = n.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = wn(r.dtype, o.dtype), p = s != null, m = l != null, v = u ? ss(u, !0) : null, y = new Gl(r.shape, [f, c, d], a, i, p, v, m), w = [r, o];
26741
+ var r = n.a, o = n.b, a = n.transposeA, i = n.transposeB, s = n.bias, u = n.activation, l = n.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = xn(r.dtype, o.dtype), p = s != null, m = l != null, v = u ? ss(u, !0) : null, y = new Gl(r.shape, [f, c, d], a, i, p, v, m), w = [r, o];
26721
26742
  return s && w.push(s), l && w.push(l), this.compileAndRun(y, w, h);
26722
26743
  }, t.prototype.multiply = function(n, r) {
26723
26744
  if (n.dtype === "complex64") {
@@ -26800,11 +26821,11 @@ var zR = 600, $R = function(e) {
26800
26821
  return l.rank === n.rank ? this.argReducePacked(n, r, l) : l;
26801
26822
  }, t.prototype.sum = function(n, r) {
26802
26823
  Hn("sum", r, n.rank);
26803
- var o = _n(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i), u = Ol(n.dtype);
26824
+ var o = Sn(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i), u = Ol(n.dtype);
26804
26825
  return this.reduce(s, "sum", u).reshape(a);
26805
26826
  }, t.prototype.prod = function(n, r) {
26806
26827
  if (this.shouldExecuteOnCPU([n])) return this.cpuBackend.prod(n, r);
26807
- var o = _n(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i), u = Ol(n.dtype);
26828
+ var o = Sn(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i), u = Ol(n.dtype);
26808
26829
  return this.reduce(s, "prod", u).reshape(a);
26809
26830
  }, t.prototype.unsortedSegmentSum = function(n, r, o) {
26810
26831
  var a = 0, i = Fr([a], n.rank), s = n;
@@ -26824,7 +26845,7 @@ var zR = 600, $R = function(e) {
26824
26845
  }, t.prototype.argMinMaxReduce = function(n, r, o) {
26825
26846
  var a = [r];
26826
26847
  if (Hn("arg" + o.charAt(0).toUpperCase() + o.slice(1), a, n.rank), !ie().getBool("WEBGL_PACK_REDUCE") || n.rank <= 2) {
26827
- var i = _n(n.shape, a), s = i[0], u = Be(i[1]), l = n.as2D(-1, u);
26848
+ var i = Sn(n.shape, a), s = i[0], u = Be(i[1]), l = n.as2D(-1, u);
26828
26849
  return this.argReduce(l, o).reshape(s);
26829
26850
  }
26830
26851
  return this.argReducePacked(n, o);
@@ -26896,7 +26917,7 @@ var zR = 600, $R = function(e) {
26896
26917
  return this.compileAndRun(o, [n, r], "bool");
26897
26918
  }, t.prototype.select = function(n, r, o) {
26898
26919
  var a = new xR(n.rank, r.shape, r.rank);
26899
- return this.compileAndRun(a, [n, r, o], wn(r.dtype, o.dtype));
26920
+ return this.compileAndRun(a, [n, r, o], xn(r.dtype, o.dtype));
26900
26921
  }, t.prototype.where = function(n) {
26901
26922
  Ws("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");
26902
26923
  var r = n.dataSync();
@@ -26905,7 +26926,7 @@ var zR = 600, $R = function(e) {
26905
26926
  return Rg(n.dataSync(), n.shape, n.dtype, r);
26906
26927
  }, t.prototype.min = function(n, r) {
26907
26928
  Hn("min", r, n.rank);
26908
- var o = _n(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26929
+ var o = Sn(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26909
26930
  return this.reduce(s, "min", s.dtype).reshape(a);
26910
26931
  }, t.prototype.minimum = function(n, r) {
26911
26932
  if (this.shouldExecuteOnCPU([n, r])) return this.cpuBackend.minimum(n, r);
@@ -26943,7 +26964,7 @@ var zR = 600, $R = function(e) {
26943
26964
  }, t.prototype.max = function(n, r) {
26944
26965
  if (this.shouldExecuteOnCPU([n])) return this.cpuBackend.max(n, r);
26945
26966
  Hn("max", r, n.rank);
26946
- var o = _n(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26967
+ var o = Sn(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26947
26968
  return this.reduce(s, "max", s.dtype).reshape(a);
26948
26969
  }, t.prototype.maximum = function(n, r) {
26949
26970
  if (this.shouldExecuteOnCPU([n, r])) return this.cpuBackend.maximum(n, r);
@@ -26966,11 +26987,11 @@ var zR = 600, $R = function(e) {
26966
26987
  return this.compileAndRun(o, [n, r]);
26967
26988
  }, t.prototype.all = function(n, r) {
26968
26989
  Hn("all", r, n.rank);
26969
- var o = _n(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26990
+ var o = Sn(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26970
26991
  return this.reduce(s, "all", s.dtype).reshape(a);
26971
26992
  }, t.prototype.any = function(n, r) {
26972
26993
  Hn("any", r, n.rank);
26973
- var o = _n(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26994
+ var o = Sn(n.shape, r), a = o[0], i = Be(o[1]), s = n.as2D(-1, i);
26974
26995
  return this.reduce(s, "any", s.dtype).reshape(a);
26975
26996
  }, t.prototype.realDivide = function(n, r) {
26976
26997
  if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS"))
@@ -27037,7 +27058,7 @@ return a / b;`, n.shape, r.shape);
27037
27058
  }, t.prototype.add = function(n, r) {
27038
27059
  if (n.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(n, r, Ul);
27039
27060
  if (this.shouldExecuteOnCPU([n, r])) return this.cpuBackend.add(n, r);
27040
- var o = wn(n.dtype, r.dtype);
27061
+ var o = xn(n.dtype, r.dtype);
27041
27062
  if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(n, r, Ul, o);
27042
27063
  var a = new Kt(Ul, n.shape, r.shape);
27043
27064
  return this.compileAndRun(a, [n, r], o);
@@ -27051,7 +27072,7 @@ return a / b;`, n.shape, r.shape);
27051
27072
  }, t.prototype.complexSeparableBinaryOp = function(n, r, o) {
27052
27073
  var a = this, i = this.texData.get(n.dataId), s = this.texData.get(r.dataId), u = [[i.complexTensors.real, s.complexTensors.real], [i.complexTensors.imag, s.complexTensors.imag]].map(function(f) {
27053
27074
  var h = f[0], p = f[1], m = a.makeComplexComponentTensorInfo(n, h), v = a.makeComplexComponentTensorInfo(r, p), y = new Kt(o, n.shape, r.shape);
27054
- return a.compileAndRun(y, [m, v], wn(h.dtype, p.dtype));
27075
+ return a.compileAndRun(y, [m, v], xn(h.dtype, p.dtype));
27055
27076
  }), l = u[0], c = u[1], d = this.complex(l, c);
27056
27077
  return l.dispose(), c.dispose(), d;
27057
27078
  }, t.prototype.makeComplexComponentTensorInfo = function(n, r) {
@@ -27065,7 +27086,7 @@ return a / b;`, n.shape, r.shape);
27065
27086
  var i = n.map(function(l) {
27066
27087
  return l.dtype;
27067
27088
  }).reduce(function(l, c) {
27068
- return wn(l, c);
27089
+ return xn(l, c);
27069
27090
  }), s = n.map(function(l) {
27070
27091
  return l.shape;
27071
27092
  }), u = ie().getBool("WEBGL_PACK") ? new XE(n[0].shape, s) : new YE(n[0].shape, s);
@@ -27073,7 +27094,7 @@ return a / b;`, n.shape, r.shape);
27073
27094
  }, t.prototype.subtract = function(n, r) {
27074
27095
  if (n.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(n, r, jl);
27075
27096
  if (this.shouldExecuteOnCPU([n, r])) return this.cpuBackend.subtract(n, r);
27076
- var o = wn(n.dtype, r.dtype);
27097
+ var o = xn(n.dtype, r.dtype);
27077
27098
  if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(n, r, jl, n.dtype);
27078
27099
  var a = new Kt(jl, n.shape, r.shape);
27079
27100
  return this.compileAndRun(a, [n, r], o);
@@ -27108,7 +27129,7 @@ if (b == 0.0) {
27108
27129
  }
27109
27130
  return (round(mod(b, 2.0)) != 1) ?
27110
27131
  pow(abs(a), b) : sign(a) * pow(abs(a), b);
27111
- `, n.shape, r.shape), a = wn(n.dtype, r.dtype);
27132
+ `, n.shape, r.shape), a = xn(n.dtype, r.dtype);
27112
27133
  return this.compileAndRun(o, [n, r], a);
27113
27134
  }, t.prototype.ceil = function(n) {
27114
27135
  if (this.shouldExecuteOnCPU([n])) return this.cpuBackend.ceil(n);
@@ -27477,7 +27498,7 @@ return (round(mod(b, 2.0)) != 1) ?
27477
27498
  return Sg(n, r, o);
27478
27499
  }, t.prototype.scatterND = function(n, r, o) {
27479
27500
  var a = Ys(0, n, o), i = a.sliceRank, s = a.numUpdates, u = a.sliceSize, l = a.strides, c = a.outputSize, d = [c / u, u], f = n.reshape([s, i]), h = r.reshape([s, u]);
27480
- if (c === 0) return $c(xn([]), o);
27501
+ if (c === 0) return $c(Cn([]), o);
27481
27502
  var p = Ce(0), m = new kp(s, i, f.rank, h.rank, l, d);
27482
27503
  return this.compileAndRun(m, [h, f, p]).reshape(o);
27483
27504
  }, t.prototype.sparseToDense = function(n, r, o, a) {
@@ -28213,7 +28234,7 @@ var bT = $({ batchNormalization2d_: function(e, t, n, r, o, a) {
28213
28234
  t.forEach(function(o) {
28214
28235
  if (o.dtype !== n.dtype) throw new Error("All tensors passed to tf.addN() must have the same dtype");
28215
28236
  }), t.forEach(function(o) {
28216
- if (!pn(o.shape, n.shape)) throw new Error("All tensors passed to tf.addN() must have the same shape");
28237
+ if (!vn(o.shape, n.shape)) throw new Error("All tensors passed to tf.addN() must have the same shape");
28217
28238
  });
28218
28239
  var r = t;
28219
28240
  return j.runKernelFunc(function(o) {
@@ -28786,7 +28807,7 @@ var ZT = $({ conv1d_: function(e, t, n, r, o, a, i) {
28786
28807
  var s = n ? a.shape[a.rank - 2] : a.shape[a.rank - 1], u = r ? i.shape[i.rank - 1] : i.shape[i.rank - 2], l = n ? a.shape[a.rank - 1] : a.shape[a.rank - 2], c = r ? i.shape[i.rank - 2] : i.shape[i.rank - 1], d = a.shape.slice(0, -2), f = i.shape.slice(0, -2), h = Be(d), p = Be(f);
28787
28808
  B(a.rank >= 2 && i.rank >= 2 && a.rank === i.rank, function() {
28788
28809
  return "Error in matMul: inputs must have the same rank of at least 2, got ranks " + a.rank + " and " + i.rank + ".";
28789
- }), B(pn(d, f), function() {
28810
+ }), B(vn(d, f), function() {
28790
28811
  return "Error in matMul: outer dimensions (" + d + ") and (" + f + ") of Tensors with shapes " + a.shape + " and " + i.shape + " must match.";
28791
28812
  }), B(s === u, function() {
28792
28813
  return "Error in matMul: inner shapes (" + s + ") and (" + u + ") of Tensors with shapes " + a.shape + " and " + i.shape + " and transposeA=" + n + " and transposeB=" + r + " must match.";
@@ -28871,7 +28892,7 @@ function o0(e, t, n, r, o, a) {
28871
28892
  return "Error in maxPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
28872
28893
  });
28873
28894
  var l = gi(s.shape, t, n, r, o, a);
28874
- if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
28895
+ if (l.filterWidth === 1 && l.filterHeight === 1 && vn(l.inShape, l.outShape)) return i.clone();
28875
28896
  var c = [s], d = j.runKernelFunc(function(f, h) {
28876
28897
  var p = f.maxPool(s, l);
28877
28898
  return h([s, p]), p;
@@ -28910,7 +28931,7 @@ function a0(e, t, n, r, o, a) {
28910
28931
  return "Error in avgPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
28911
28932
  });
28912
28933
  var l = gi(s.shape, t, n, r, o, a);
28913
- if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
28934
+ if (l.filterWidth === 1 && l.filterHeight === 1 && vn(l.inShape, l.outShape)) return i.clone();
28914
28935
  var c = j.runKernelFunc(function(d) {
28915
28936
  return d.avgPool(s, l);
28916
28937
  }, { x: s }, function(d) {
@@ -29184,7 +29205,7 @@ var pI = $({ all_: function(e, t, n) {
29184
29205
  return l;
29185
29206
  } }), bI = $({ mean_: function(e, t, n) {
29186
29207
  t === void 0 && (t = null), n === void 0 && (n = !1);
29187
- var r = M(e, "x", "mean"), o = ln(t, r.shape), a = Be(_n(r.shape, o)[1]);
29208
+ var r = M(e, "x", "mean"), o = ln(t, r.shape), a = Be(Sn(r.shape, o)[1]);
29188
29209
  return Iu(function(i) {
29189
29210
  var s = Ce(a);
29190
29211
  return { value: (s.dtype === i.dtype ? i : i.cast(s.dtype)).div(s).sum(t, n), gradFunc: function(u) {
@@ -29403,7 +29424,7 @@ var pI = $({ all_: function(e, t, n) {
29403
29424
  } }), TI = $({ movingAverage_: function(e, t, n, r, o) {
29404
29425
  o === void 0 && (o = !0);
29405
29426
  var a = M(e, "v", "movingAverage"), i = M(t, "x", "movingAverage"), s = M(n, "decay", "movingAverage");
29406
- S4(a, i), B(pn(a.shape, i.shape), function() {
29427
+ S4(a, i), B(vn(a.shape, i.shape), function() {
29407
29428
  return "Shape mismatch in v and x";
29408
29429
  });
29409
29430
  var u = Ce(1), l = u.sub(s), c = i.sub(a).mul(l);
@@ -29481,10 +29502,10 @@ var pI = $({ all_: function(e, t, n) {
29481
29502
  var s = e.shape.map(function(y) {
29482
29503
  return y;
29483
29504
  });
29484
- s[e.shape.length - 1] = t - r, n = e.concat(Vt(s), e.shape.length - 1), r = t;
29505
+ s[e.shape.length - 1] = t - r, n = e.concat(zt(s), e.shape.length - 1), r = t;
29485
29506
  } else n = e;
29486
- var u = n.zerosLike(), l = bn(n, u).as2D(o, r), c = Zd(l), d = Math.floor(r / 2) + 1, f = or(c), h = _r(c), p = f.split([d, r - d], f.shape.length - 1), m = h.split([d, r - d], h.shape.length - 1), v = n.shape.slice();
29487
- return v[n.shape.length - 1] = d, bn(p[0], m[0]).reshape(v);
29507
+ var u = n.zerosLike(), l = wn(n, u).as2D(o, r), c = Zd(l), d = Math.floor(r / 2) + 1, f = or(c), h = _r(c), p = f.split([d, r - d], f.shape.length - 1), m = h.split([d, r - d], h.shape.length - 1), v = n.shape.slice();
29508
+ return v[n.shape.length - 1] = d, wn(p[0], m[0]).reshape(v);
29488
29509
  } }), h0 = $({ irfft_: function(e) {
29489
29510
  var t = e.shape[e.shape.length - 1], n = e.size / t;
29490
29511
  if (t <= 2) {
@@ -29492,7 +29513,7 @@ var pI = $({ all_: function(e, t, n) {
29492
29513
  return or(o);
29493
29514
  }
29494
29515
  var a = [n, 2 * (t - 1)], i = or(e).as2D(n, t), s = _r(e).as2D(n, t), u = i.slice([0, 1], [n, t - 2]).reverse(1), l = s.slice([0, 1], [n, t - 2]).reverse(1).mul(Ce(-1)), c = i.concat(u, 1), d = s.concat(l, 1);
29495
- return r = bn(c, d).as2D(a[0], a[1]), o = tu(r), or(o);
29516
+ return r = wn(c, d).as2D(a[0], a[1]), o = tu(r), or(o);
29496
29517
  } }), MI = Object.freeze({ fft: Zd, ifft: tu, rfft: Jd, irfft: h0 }), FI = $({ sparseToDense_: function(e, t, n, r) {
29497
29518
  r === void 0 && (r = 0);
29498
29519
  var o = M(e, "sparseIndices", "sparseToDense", "int32"), a = M(t, "sparseValues", "sparseToDense"), i = M(r, "defaultValue", "sparseToDense", a.dtype);
@@ -29526,7 +29547,7 @@ var pI = $({ all_: function(e, t, n) {
29526
29547
  }), t === 0) return e instanceof Ht ? o.clone() : o;
29527
29548
  var a = function(u, l) {
29528
29549
  if (l == null) return u.shape.slice();
29529
- if (pn(u.shape, l)) return l;
29550
+ if (vn(u.shape, l)) return l;
29530
29551
  if (u.shape.length === l.length) {
29531
29552
  for (var c = [], d = 0; d < u.shape.length; d++) l[d] == null && u.shape[d] != null ? c.push(u.shape[d]) : c.push(l[d]);
29532
29553
  return c;
@@ -29559,7 +29580,7 @@ var ef = $({ hannWindow_: function(e) {
29559
29580
  o === void 0 && (o = ef), r == null && (a = t, r = Math.floor(Math.pow(2, Math.ceil(Math.log(a) / Math.log(2)))));
29560
29581
  for (var i = tf(e, t, n), s = Dn(i, o(t)), u = [], l = 0; l < i.shape[0]; l++) u.push(Jd(s.slice([l, 0], [1, t]), r));
29561
29582
  return on(u);
29562
- } }), NI = Object.freeze({ hannWindow: ef, hammingWindow: v0, frame: tf, stft: m0 }), In, LI = function(e, t, n) {
29583
+ } }), NI = Object.freeze({ hannWindow: ef, hammingWindow: v0, frame: tf, stft: m0 }), An, LI = function(e, t, n) {
29563
29584
  return n === void 0 && (n = 1), Me(this, void 0, void 0, function() {
29564
29585
  var r, o, a, i, s, u, l, c, d, f, h, p, m, v;
29565
29586
  return Fe(this, function(y) {
@@ -29584,46 +29605,46 @@ var ef = $({ hannWindow_: function(e) {
29584
29605
  break;
29585
29606
  }
29586
29607
  }
29587
- return e !== r && r.dispose(), t !== o && o.dispose(), [2, xn(d, o.shape, "bool")];
29608
+ return e !== r && r.dispose(), t !== o && o.dispose(), [2, Cn(d, o.shape, "bool")];
29588
29609
  }
29589
29610
  });
29590
29611
  });
29591
29612
  };
29592
29613
  (function(e) {
29593
29614
  e[e.NONE = 0] = "NONE", e[e.MEAN = 1] = "MEAN", e[e.SUM = 2] = "SUM", e[e.SUM_BY_NONZERO_WEIGHTS = 3] = "SUM_BY_NONZERO_WEIGHTS";
29594
- })(In || (In = {}));
29615
+ })(An || (An = {}));
29595
29616
  var qI = $({ absoluteDifference_: function(e, t, n, r) {
29596
- r === void 0 && (r = In.SUM_BY_NONZERO_WEIGHTS);
29617
+ r === void 0 && (r = An.SUM_BY_NONZERO_WEIGHTS);
29597
29618
  var o = M(e, "labels", "absoluteDifference"), a = M(t, "predictions", "absoluteDifference"), i = null;
29598
29619
  n != null && (i = M(n, "weights", "absoluteDifference")), Rt(o.shape, a.shape, "Error in absoluteDifference: ");
29599
29620
  var s = o.sub(a).abs();
29600
29621
  return Kr(s, i, r);
29601
29622
  } }), Kr = $({ computeWeightedLoss_: function(e, t, n) {
29602
- n === void 0 && (n = In.SUM_BY_NONZERO_WEIGHTS);
29623
+ n === void 0 && (n = An.SUM_BY_NONZERO_WEIGHTS);
29603
29624
  var r = M(e, "losses", "computeWeightedLoss"), o = null;
29604
29625
  t != null && (o = M(t, "weights", "computeWeightedLoss"));
29605
29626
  var a = o == null ? r : r.mul(o);
29606
- if (n === In.NONE) return a;
29607
- if (n === In.SUM) return a.sum();
29608
- if (n === In.MEAN) {
29627
+ if (n === An.NONE) return a;
29628
+ if (n === An.SUM) return a.sum();
29629
+ if (n === An.MEAN) {
29609
29630
  if (o == null) return a.mean();
29610
29631
  var i = r.size / o.size, s = a.sum().div(o.sum());
29611
29632
  return i > 1 ? s.div(Ce(i)) : s;
29612
29633
  }
29613
- if (n === In.SUM_BY_NONZERO_WEIGHTS) {
29634
+ if (n === An.SUM_BY_NONZERO_WEIGHTS) {
29614
29635
  if (o == null) return a.sum().div(Ce(r.size));
29615
29636
  var u = o.mul(ja(r.shape)).notEqual(Ce(0)).sum().toFloat();
29616
29637
  return a.sum().div(u);
29617
29638
  }
29618
29639
  throw Error("Unknown reduction: " + n);
29619
29640
  } }), VI = $({ cosineDistance_: function(e, t, n, r, o) {
29620
- o === void 0 && (o = In.SUM_BY_NONZERO_WEIGHTS);
29641
+ o === void 0 && (o = An.SUM_BY_NONZERO_WEIGHTS);
29621
29642
  var a = M(e, "labels", "cosineDistance"), i = M(t, "predictions", "cosineDistance"), s = null;
29622
29643
  r != null && (s = M(r, "weights", "cosineDistance")), Rt(a.shape, i.shape, "Error in cosineDistance: ");
29623
29644
  var u = Ce(1).sub(a.mul(i).sum(n, !0));
29624
29645
  return Kr(u, s, o);
29625
29646
  } }), zI = $({ hingeLoss_: function(e, t, n, r) {
29626
- r === void 0 && (r = In.SUM_BY_NONZERO_WEIGHTS);
29647
+ r === void 0 && (r = An.SUM_BY_NONZERO_WEIGHTS);
29627
29648
  var o = M(e, "labels", "hingeLoss"), a = M(t, "predictions", "hingeLoss"), i = null;
29628
29649
  n != null && (i = M(n, "weights", "hingeLoss")), Rt(o.shape, a.shape, "Error in hingeLoss: ");
29629
29650
  var s = Ce(1);
@@ -29631,25 +29652,25 @@ var qI = $({ absoluteDifference_: function(e, t, n, r) {
29631
29652
  var u = s.sub(o.mul(a)).relu();
29632
29653
  return Kr(u, i, r);
29633
29654
  } }), $I = $({ huberLoss_: function(e, t, n, r, o) {
29634
- r === void 0 && (r = 1), o === void 0 && (o = In.SUM_BY_NONZERO_WEIGHTS);
29655
+ r === void 0 && (r = 1), o === void 0 && (o = An.SUM_BY_NONZERO_WEIGHTS);
29635
29656
  var a = M(e, "labels", "huberLoss"), i = M(t, "predictions", "huberLoss"), s = null;
29636
29657
  n != null && (s = M(n, "weights", "huberLoss")), Rt(a.shape, i.shape, "Error in huberLoss: ");
29637
29658
  var u = Ce(r), l = i.sub(a).abs(), c = Yg(l, u), d = l.sub(c), f = Ce(0.5).mul(c.square()).add(u.mul(d));
29638
29659
  return Kr(f, s, o);
29639
29660
  } }), WI = $({ logLoss_: function(e, t, n, r, o) {
29640
- r === void 0 && (r = 1e-7), o === void 0 && (o = In.SUM_BY_NONZERO_WEIGHTS);
29661
+ r === void 0 && (r = 1e-7), o === void 0 && (o = An.SUM_BY_NONZERO_WEIGHTS);
29641
29662
  var a = M(e, "labels", "logLoss"), i = M(t, "predictions", "logLoss"), s = null;
29642
29663
  n != null && (s = M(n, "weights", "logLoss")), Rt(a.shape, i.shape, "Error in logLoss: ");
29643
29664
  var u = Ce(1), l = Ce(r), c = a.mul(i.add(l).log()).neg().sub(u.sub(a).mul(u.sub(i).add(l).log()));
29644
29665
  return Kr(c, s, o);
29645
29666
  } }), HI = $({ meanSquaredError_: function(e, t, n, r) {
29646
- r === void 0 && (r = In.SUM_BY_NONZERO_WEIGHTS);
29667
+ r === void 0 && (r = An.SUM_BY_NONZERO_WEIGHTS);
29647
29668
  var o = M(e, "labels", "meanSquaredError"), a = M(t, "predictions", "meanSquaredError"), i = null;
29648
29669
  n != null && (i = M(n, "weights", "meanSquaredError")), Rt(o.shape, a.shape, "Error in meanSquaredError: ");
29649
29670
  var s = o.squaredDifference(a);
29650
29671
  return Kr(s, i, r);
29651
29672
  } }), UI = $({ sigmoidCrossEntropy_: function(e, t, n, r, o) {
29652
- r === void 0 && (r = 0), o === void 0 && (o = In.SUM_BY_NONZERO_WEIGHTS);
29673
+ r === void 0 && (r = 0), o === void 0 && (o = An.SUM_BY_NONZERO_WEIGHTS);
29653
29674
  var a = M(e, "multiClassLabels", "sigmoidCrossEntropy"), i = M(t, "logits", "sigmoidCrossEntropy"), s = null;
29654
29675
  if (n != null && (s = M(n, "weights", "sigmoidCrossEntropy")), Rt(a.shape, i.shape, "Error in sigmoidCrossEntropy: "), r > 0) {
29655
29676
  var u = Ce(r), l = Ce(1), c = Ce(0.5);
@@ -29663,7 +29684,7 @@ var qI = $({ absoluteDifference_: function(e, t, n, r) {
29663
29684
  }(a, i);
29664
29685
  return Kr(d, s, o);
29665
29686
  } }), jI = $({ softmaxCrossEntropy_: function(e, t, n, r, o) {
29666
- r === void 0 && (r = 0), o === void 0 && (o = In.SUM_BY_NONZERO_WEIGHTS);
29687
+ r === void 0 && (r = 0), o === void 0 && (o = An.SUM_BY_NONZERO_WEIGHTS);
29667
29688
  var a = M(e, "onehotLabels", "softmaxCrossEntropy"), i = M(t, "logits", "softmaxCrossEntropy"), s = null;
29668
29689
  if (n != null && (s = M(n, "weights", "softmaxCrossEntropy")), Rt(a.shape, i.shape, "Error in softmaxCrossEntropy: "), r > 0) {
29669
29690
  var u = Ce(r), l = Ce(1), c = Ce(a.shape[1]);
@@ -29681,7 +29702,7 @@ var qI = $({ absoluteDifference_: function(e, t, n, r) {
29681
29702
  }(a, i);
29682
29703
  return Kr(d, s, o);
29683
29704
  } }), GI = Object.freeze({ get Reduction() {
29684
- return In;
29705
+ return An;
29685
29706
  }, absoluteDifference: qI, computeWeightedLoss: Kr, cosineDistance: VI, hingeLoss: zI, huberLoss: $I, logLoss: WI, meanSquaredError: HI, sigmoidCrossEntropy: UI, softmaxCrossEntropy: jI });
29686
29707
  function Pp(e, t) {
29687
29708
  return t === void 0 && (t = !1), j.tidy(function() {
@@ -29718,7 +29739,7 @@ var KI = $({ bandPart_: function(e, t, n) {
29718
29739
  if (!(t <= i)) throw new Error("bandPart(): numLower (" + t + ") must not be greater than the number of rows (" + i + ").");
29719
29740
  if (!(n <= s)) throw new Error("bandPart(): numUpper (" + n + ") must not be greater than the number of columns (" + s + ").");
29720
29741
  t < 0 && (t = i), n < 0 && (n = s);
29721
- var u = Us(0, i, 1, "int32").reshape([-1, 1]), l = Us(0, s, 1, "int32"), c = un(u, l), d = Du(c.lessEqual(Ce(+t, "int32")), c.greaterEqual(Ce(-n, "int32"))), f = Vt([i, s], r.dtype);
29742
+ var u = Us(0, i, 1, "int32").reshape([-1, 1]), l = Us(0, s, 1, "int32"), c = un(u, l), d = Du(c.lessEqual(Ce(+t, "int32")), c.greaterEqual(Ce(-n, "int32"))), f = zt([i, s], r.dtype);
29722
29743
  return Zn(an(r.reshape([-1, i, s])).map(function(h) {
29723
29744
  return $o(d, h, f);
29724
29745
  })).reshape(o);
@@ -29903,7 +29924,7 @@ var ZI = $({ resizeBilinear_: function(e, t, n) {
29903
29924
  var m = a ? h.shape[h.rank - 2] : h.shape[h.rank - 1], v = s ? p.shape[p.rank - 1] : p.shape[p.rank - 2], y = a ? h.shape[h.rank - 1] : h.shape[h.rank - 2], w = s ? p.shape[p.rank - 2] : p.shape[p.rank - 1], b = h.shape.slice(0, -2), g = p.shape.slice(0, -2), x = Be(b), C = Be(g);
29904
29925
  B(h.rank >= 2 && p.rank >= 2 && h.rank === p.rank, function() {
29905
29926
  return "Error in fused matMul: inputs must have the same rank of at least 2, got ranks " + h.rank + " and " + p.rank + ".";
29906
- }), B(pn(b, g), function() {
29927
+ }), B(vn(b, g), function() {
29907
29928
  return "Error in fused matMul: outer dimensions (" + b + ") and (" + g + ") of Tensors with shapes " + h.shape + " and " + p.shape + " must match.";
29908
29929
  }), B(m === v, function() {
29909
29930
  return "Error in fused matMul: inner shapes (" + m + ") and (" + v + ") of Tensors with shapes " + h.shape + " and " + p.shape + " and transposeA=" + a + " and transposeB=" + s + " must match.";
@@ -30019,7 +30040,7 @@ var ZI = $({ resizeBilinear_: function(e, t, n) {
30019
30040
  } }, O);
30020
30041
  }, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, S, [!0]);
30021
30042
  return w ? E.as3D(E.shape[1], E.shape[2], E.shape[3]) : E;
30022
- } }), u6 = Object.freeze({ matMul: a6, conv2d: i6, depthwiseConv2d: s6 }), l6 = Object.freeze({ image: nf, linalg: QI, losses: GI, spectral: MI, fused: u6, signal: NI, square: WR, squaredDifference: qg, conv1d: ZT, conv2d: sr, conv3d: JT, depthwiseConv2d: Mu, separableConv2d: Qd, conv2dTranspose: eI, conv3dTranspose: tI, op: $, batchNormalization2d: bT, batchNormalization3d: wT, batchNormalization4d: xT, batchNormalization: CT, batchNorm: Ug, batchNorm2d: kT, batchNorm3d: _T, batchNorm4d: ST, booleanMaskAsync: QT, complex: bn, real: or, imag: _r, concat: on, concat1d: uE, concat2d: lE, concat3d: cE, concat4d: dE, split: Nd, matMul: Fu, dot: nI, outerProduct: rI, reverse: Li, reverse1d: oI, reverse2d: aI, reverse3d: iI, reverse4d: sI, maxPool: dn, avgPool: qi, pool: uI, maxPool3d: lI, avgPool3d: cI, slice: Ir, slice1d: dI, slice2d: fI, slice3d: i0, slice4d: hI, abs: HR, acos: UR, acosh: jR, asin: GR, asinh: KR, atan: YR, atanh: XR, ceil: QR, clipByValue: Gd, cos: ZR, cosh: JR, erf: eT, exp: Hc, expm1: tT, floor: nT, log: rT, log1p: oT, logSigmoid: aT, neg: Js, reciprocal: iT, round: sT, rsqrt: Vg, sigmoid: zg, sign: uT, isNaN: lT, isInf: cT, isFinite: dT, sin: fT, sinh: hT, softplus: pT, sqrt: vT, step: mT, tan: gT, tanh: yT, all: pI, any: vI, argMax: mI, argMin: gI, logSumExp: yI, max: Pu, mean: bI, min: wI, moments: xI, sum: u0, prod: CI, equal: Xg, equalStrict: zT, greater: $T, greaterEqual: Qg, greaterEqualStrict: WT, greaterStrict: HT, less: UT, lessEqual: jT, lessEqualStrict: GT, lessStrict: KT, notEqual: YT, notEqualStrict: XT, add: ft, addN: TT, addStrict: IT, atan2: AT, div: cr, divNoNan: DT, divStrict: MT, floorDiv: Kg, maximum: Kd, maximumStrict: FT, minimum: Yg, minimumStrict: PT, mod: BT, modStrict: OT, mul: Dn, mulStrict: NT, pow: eu, powStrict: LT, squaredDifferenceStrict: qT, sub: un, subStrict: VT, elu: l0, leakyRelu: kI, prelu: c0, relu: Ut, relu6: d0, selu: _I, logicalAnd: Du, logicalNot: ET, logicalOr: jg, logicalXor: RT, where: $o, whereAsync: Gg, buffer: ot, print: wE, batchToSpaceND: ug, broadcastTo: xE, cast: CE, clone: kE, cumsum: _E, depthToSpace: SE, expandDims: rr, eye: lg, multinomial: EE, oneHot: Vc, pad: Go, pad1d: RE, pad2d: TE, pad3d: IE, pad4d: AE, rand: DE, randomNormal: ME, randomGamma: FE, randomUniform: cg, reshape: dr, spaceToBatchND: dg, squeeze: fg, stack: Zn, tile: xa, truncatedNormal: PE, unstack: an, setdiff1dAsync: BE, fill: Tr, linspace: sE, ones: ja, range: Us, scalar: Ce, tensor: xn, tensor1d: tn, tensor2d: uo, tensor3d: Od, tensor4d: Pn, tensor5d: oE, tensor6d: aE, variable: iE, zeros: Vt, onesLike: sg, zerosLike: yt, transpose: po, softmax: Gr, logSoftmax: $E, localResponseNormalization: SI, norm: f0, gather: Yd, unsortedSegmentSum: Zg, basicLSTMCell: EI, multiRNNCell: RI, movingAverage: TI, stridedSlice: II, topk: AI, scatterND: DI, fft: Zd, ifft: tu, rfft: Jd, irfft: h0, sparseToDense: FI, gatherND: PI, diag: BI, dropout: OI, hannWindow: ef, hammingWindow: v0, frame: tf, stft: m0, inTopKAsync: LI });
30043
+ } }), u6 = Object.freeze({ matMul: a6, conv2d: i6, depthwiseConv2d: s6 }), l6 = Object.freeze({ image: nf, linalg: QI, losses: GI, spectral: MI, fused: u6, signal: NI, square: WR, squaredDifference: qg, conv1d: ZT, conv2d: sr, conv3d: JT, depthwiseConv2d: Mu, separableConv2d: Qd, conv2dTranspose: eI, conv3dTranspose: tI, op: $, batchNormalization2d: bT, batchNormalization3d: wT, batchNormalization4d: xT, batchNormalization: CT, batchNorm: Ug, batchNorm2d: kT, batchNorm3d: _T, batchNorm4d: ST, booleanMaskAsync: QT, complex: wn, real: or, imag: _r, concat: on, concat1d: uE, concat2d: lE, concat3d: cE, concat4d: dE, split: Nd, matMul: Fu, dot: nI, outerProduct: rI, reverse: Li, reverse1d: oI, reverse2d: aI, reverse3d: iI, reverse4d: sI, maxPool: dn, avgPool: qi, pool: uI, maxPool3d: lI, avgPool3d: cI, slice: Ir, slice1d: dI, slice2d: fI, slice3d: i0, slice4d: hI, abs: HR, acos: UR, acosh: jR, asin: GR, asinh: KR, atan: YR, atanh: XR, ceil: QR, clipByValue: Gd, cos: ZR, cosh: JR, erf: eT, exp: Hc, expm1: tT, floor: nT, log: rT, log1p: oT, logSigmoid: aT, neg: Js, reciprocal: iT, round: sT, rsqrt: Vg, sigmoid: zg, sign: uT, isNaN: lT, isInf: cT, isFinite: dT, sin: fT, sinh: hT, softplus: pT, sqrt: vT, step: mT, tan: gT, tanh: yT, all: pI, any: vI, argMax: mI, argMin: gI, logSumExp: yI, max: Pu, mean: bI, min: wI, moments: xI, sum: u0, prod: CI, equal: Xg, equalStrict: zT, greater: $T, greaterEqual: Qg, greaterEqualStrict: WT, greaterStrict: HT, less: UT, lessEqual: jT, lessEqualStrict: GT, lessStrict: KT, notEqual: YT, notEqualStrict: XT, add: ft, addN: TT, addStrict: IT, atan2: AT, div: cr, divNoNan: DT, divStrict: MT, floorDiv: Kg, maximum: Kd, maximumStrict: FT, minimum: Yg, minimumStrict: PT, mod: BT, modStrict: OT, mul: Dn, mulStrict: NT, pow: eu, powStrict: LT, squaredDifferenceStrict: qT, sub: un, subStrict: VT, elu: l0, leakyRelu: kI, prelu: c0, relu: Ut, relu6: d0, selu: _I, logicalAnd: Du, logicalNot: ET, logicalOr: jg, logicalXor: RT, where: $o, whereAsync: Gg, buffer: ot, print: wE, batchToSpaceND: ug, broadcastTo: xE, cast: CE, clone: kE, cumsum: _E, depthToSpace: SE, expandDims: rr, eye: lg, multinomial: EE, oneHot: Vc, pad: Go, pad1d: RE, pad2d: TE, pad3d: IE, pad4d: AE, rand: DE, randomNormal: ME, randomGamma: FE, randomUniform: cg, reshape: dr, spaceToBatchND: dg, squeeze: fg, stack: Zn, tile: xa, truncatedNormal: PE, unstack: an, setdiff1dAsync: BE, fill: Tr, linspace: sE, ones: ja, range: Us, scalar: Ce, tensor: Cn, tensor1d: tn, tensor2d: uo, tensor3d: Od, tensor4d: Pn, tensor5d: oE, tensor6d: aE, variable: iE, zeros: zt, onesLike: sg, zerosLike: yt, transpose: po, softmax: Gr, logSoftmax: $E, localResponseNormalization: SI, norm: f0, gather: Yd, unsortedSegmentSum: Zg, basicLSTMCell: EI, multiRNNCell: RI, movingAverage: TI, stridedSlice: II, topk: AI, scatterND: DI, fft: Zd, ifft: tu, rfft: Jd, irfft: h0, sparseToDense: FI, gatherND: PI, diag: BI, dropout: OI, hannWindow: ef, hammingWindow: v0, frame: tf, stft: m0, inTopKAsync: LI });
30023
30044
  function de(e, t) {
30024
30045
  Array.isArray(e) || (e = [e]), e.forEach(function(n) {
30025
30046
  n != null && B(n.dtype !== "complex64", function() {
@@ -30097,7 +30118,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30097
30118
  }, t.prototype.slice = function(n, r, o) {
30098
30119
  if (de(n, "slice"), gg(n.shape, r, o)) {
30099
30120
  var a = yg(r, n.strides), i = Be(o);
30100
- return xn(this.readSync(n.dataId).subarray(a, a + i), o, n.dtype);
30121
+ return Cn(this.readSync(n.dataId).subarray(a, a + i), o, n.dtype);
30101
30122
  }
30102
30123
  for (var s = ot(o, n.dtype), u = this.bufferSync(n), l = 0; l < s.size; ++l) {
30103
30124
  var c = s.indexToLoc(l).map(function(d, f) {
@@ -30111,7 +30132,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30111
30132
  var i = qd(r, o, a);
30112
30133
  if (i.some(function(h) {
30113
30134
  return h === 0;
30114
- })) return xn([], i);
30135
+ })) return Cn([], i);
30115
30136
  for (var s = ot(i, n.dtype), u = this.bufferSync(n), l = 0; l < s.size; l++) {
30116
30137
  for (var c = s.indexToLoc(l), d = new Array(c.length), f = 0; f < d.length; f++) d[f] = c[f] * a[f] + r[f];
30117
30138
  s.set.apply(s, [u.get.apply(u, d)].concat(c));
@@ -30144,7 +30165,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30144
30165
  }), i = n.map(function(h) {
30145
30166
  return _r(h);
30146
30167
  });
30147
- return bn(this.concat(a, r), this.concat(i, r));
30168
+ return wn(this.concat(a, r), this.concat(i, r));
30148
30169
  }
30149
30170
  var s = n.map(function(h) {
30150
30171
  var p = Be(h.shape.slice(r));
@@ -30167,13 +30188,13 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30167
30188
  var f = Ba(n.map(function(h) {
30168
30189
  return h.shape;
30169
30190
  }), r);
30170
- return xn(l, f, n[0].dtype);
30191
+ return Cn(l, f, n[0].dtype);
30171
30192
  }, t.prototype.neg = function(n) {
30172
30193
  return de(n, "neg"), this.multiply(Ce(-1), n);
30173
30194
  }, t.prototype.add = function(n, r) {
30174
30195
  return n.dtype === "complex64" || r.dtype === "complex64" ? this.broadcastedBinaryComplexOp(n.cast("complex64"), r.cast("complex64"), function(o, a, i, s) {
30175
30196
  return { real: o + i, imag: a + s };
30176
- }) : this.broadcastedBinaryOp(n, r, wn(n.dtype, r.dtype), function(o, a) {
30197
+ }) : this.broadcastedBinaryOp(n, r, xn(n.dtype, r.dtype), function(o, a) {
30177
30198
  return o + a;
30178
30199
  });
30179
30200
  }, t.prototype.addN = function(n) {
@@ -30189,7 +30210,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30189
30210
  }, t.prototype.subtract = function(n, r) {
30190
30211
  return n.dtype === "complex64" || r.dtype === "complex64" ? this.broadcastedBinaryComplexOp(n.cast("complex64"), r.cast("complex64"), function(o, a, i, s) {
30191
30212
  return { real: o - i, imag: a - s };
30192
- }) : this.broadcastedBinaryOp(n, r, wn(n.dtype, r.dtype), function(o, a) {
30213
+ }) : this.broadcastedBinaryOp(n, r, xn(n.dtype, r.dtype), function(o, a) {
30193
30214
  return o - a;
30194
30215
  });
30195
30216
  }, t.prototype.pow = function(n, r) {
@@ -30209,7 +30230,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30209
30230
  }, t.prototype.multiply = function(n, r) {
30210
30231
  return n.dtype === "complex64" || r.dtype === "complex64" ? this.broadcastedBinaryComplexOp(n.cast("complex64"), r.cast("complex64"), function(o, a, i, s) {
30211
30232
  return { real: o * i - a * s, imag: o * s + a * i };
30212
- }) : this.broadcastedBinaryOp(n, r, wn(n.dtype, r.dtype), function(o, a) {
30233
+ }) : this.broadcastedBinaryOp(n, r, xn(n.dtype, r.dtype), function(o, a) {
30213
30234
  return o * a;
30214
30235
  });
30215
30236
  }, t.prototype.realDivide = function(n, r) {
@@ -30222,14 +30243,14 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30222
30243
  });
30223
30244
  }, t.prototype.sum = function(n, r) {
30224
30245
  de(n, "sum"), Hn("sum", r, n.rank);
30225
- for (var o = _n(n.shape, r), a = o[0], i = o[1], s = Vt(a, wn(n.dtype, "int32")), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30246
+ for (var o = Sn(n.shape, r), a = o[0], i = o[1], s = zt(a, xn(n.dtype, "int32")), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30226
30247
  for (var f = d * u, h = 0, p = 0; p < u; ++p) h += c[f + p];
30227
30248
  l[d] = h;
30228
30249
  }
30229
30250
  return s;
30230
30251
  }, t.prototype.prod = function(n, r) {
30231
30252
  de(n, "sum");
30232
- for (var o = _n(n.shape, r), a = o[0], i = o[1], s = Vt(a, wn(n.dtype, "int32")), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30253
+ for (var o = Sn(n.shape, r), a = o[0], i = o[1], s = zt(a, xn(n.dtype, "int32")), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30233
30254
  for (var f = d * u, h = 1, p = 0; p < u; ++p) h *= c[f + p];
30234
30255
  l[d] = h;
30235
30256
  }
@@ -30246,7 +30267,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30246
30267
  de(n, "argMin");
30247
30268
  var o = [r];
30248
30269
  Hn("argMin", o, n.rank);
30249
- for (var a = _n(n.shape, o), i = a[0], s = a[1], u = Vt(i, "int32"), l = Be(s), c = this.readSync(u.dataId), d = this.readSync(n.dataId), f = 0; f < c.length; ++f) {
30270
+ for (var a = Sn(n.shape, o), i = a[0], s = a[1], u = zt(i, "int32"), l = Be(s), c = this.readSync(u.dataId), d = this.readSync(n.dataId), f = 0; f < c.length; ++f) {
30250
30271
  for (var h = f * l, p = d[h], m = 0, v = 0; v < l; ++v) {
30251
30272
  var y = d[h + v];
30252
30273
  y < p && (p = y, m = v);
@@ -30258,7 +30279,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30258
30279
  de(n, "argMax");
30259
30280
  var o = [r];
30260
30281
  Hn("argMax", o, n.rank);
30261
- for (var a = _n(n.shape, o), i = a[0], s = a[1], u = Vt(i, "int32"), l = Be(s), c = this.readSync(u.dataId), d = this.readSync(n.dataId), f = 0; f < c.length; ++f) {
30282
+ for (var a = Sn(n.shape, o), i = a[0], s = a[1], u = zt(i, "int32"), l = Be(s), c = this.readSync(u.dataId), d = this.readSync(n.dataId), f = 0; f < c.length; ++f) {
30262
30283
  for (var h = f * l, p = d[h], m = 0, v = 0; v < l; ++v) {
30263
30284
  var y = d[h + v];
30264
30285
  y > p && (p = y, m = v);
@@ -30268,7 +30289,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30268
30289
  return u;
30269
30290
  }, t.prototype.cumsum = function(n, r, o, a) {
30270
30291
  if (de(n, "cumsum"), r !== n.rank - 1) throw new Error("backend.cumsum in CPU expects an inner-most axis=" + (n.rank - 1) + " but got axis=" + r);
30271
- for (var i = wn(n.dtype, "int32"), s = Vt(n.shape, i), u = this.readSync(s.dataId), l = this.readSync(n.dataId), c = n.shape[n.rank - 1], d = a ? function(v, y) {
30292
+ for (var i = xn(n.dtype, "int32"), s = zt(n.shape, i), u = this.readSync(s.dataId), l = this.readSync(n.dataId), c = n.shape[n.rank - 1], d = a ? function(v, y) {
30272
30293
  return v + c - y - 1;
30273
30294
  } : function(v, y) {
30274
30295
  return v + y;
@@ -30319,7 +30340,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30319
30340
  });
30320
30341
  }, t.prototype.select = function(n, r, o) {
30321
30342
  de([n, r, o], "select");
30322
- for (var a = this.readSync(n.dataId), i = this.readSync(r.dataId), s = this.readSync(o.dataId), u = Vt(r.shape, wn(r.dtype, o.dtype)), l = this.readSync(u.dataId), c = 0, d = n.rank === 0 || n.rank > 1 || r.rank === 1 ? 1 : Be(r.shape.slice(1)), f = 0; f < a.length; f++) for (var h = 0; h < d; h++) a[f] === 1 ? l[c++] = i[f] : l[c++] = s[f];
30343
+ for (var a = this.readSync(n.dataId), i = this.readSync(r.dataId), s = this.readSync(o.dataId), u = zt(r.shape, xn(r.dtype, o.dtype)), l = this.readSync(u.dataId), c = 0, d = n.rank === 0 || n.rank > 1 || r.rank === 1 ? 1 : Be(r.shape.slice(1)), f = 0; f < a.length; f++) for (var h = 0; h < d; h++) a[f] === 1 ? l[c++] = i[f] : l[c++] = s[f];
30323
30344
  return u;
30324
30345
  }, t.prototype.where = function(n) {
30325
30346
  de([n], "where");
@@ -30329,7 +30350,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30329
30350
  return de(n, "topk"), Rg(this.readSync(n.dataId), n.shape, n.dtype, r);
30330
30351
  }, t.prototype.min = function(n, r) {
30331
30352
  de(n, "min"), Hn("min", r, n.rank);
30332
- for (var o = _n(n.shape, r), a = o[0], i = o[1], s = Vt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30353
+ for (var o = Sn(n.shape, r), a = o[0], i = o[1], s = zt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30333
30354
  for (var f = d * u, h = c[f], p = 0; p < u; ++p) {
30334
30355
  var m = c[f + p];
30335
30356
  m < h && (h = m);
@@ -30348,7 +30369,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30348
30369
  });
30349
30370
  }, t.prototype.max = function(n, r) {
30350
30371
  de(n, "max"), Hn("max", r, n.rank);
30351
- for (var o = _n(n.shape, r), a = o[0], i = o[1], s = Vt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30372
+ for (var o = Sn(n.shape, r), a = o[0], i = o[1], s = zt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30352
30373
  for (var f = d * u, h = c[f], p = 0; p < u; ++p) {
30353
30374
  var m = c[f + p];
30354
30375
  m > h && (h = m);
@@ -30362,7 +30383,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30362
30383
  });
30363
30384
  }, t.prototype.all = function(n, r) {
30364
30385
  de(n, "all"), Hn("all", r, n.rank);
30365
- for (var o = _n(n.shape, r), a = o[0], i = o[1], s = Vt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30386
+ for (var o = Sn(n.shape, r), a = o[0], i = o[1], s = zt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30366
30387
  for (var f = d * u, h = c[f], p = 0; p < u; ++p) {
30367
30388
  var m = c[f + p];
30368
30389
  h = h && m;
@@ -30372,7 +30393,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30372
30393
  return s;
30373
30394
  }, t.prototype.any = function(n, r) {
30374
30395
  de(n, "any"), Hn("any", r, n.rank);
30375
- for (var o = _n(n.shape, r), a = o[0], i = o[1], s = Vt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30396
+ for (var o = Sn(n.shape, r), a = o[0], i = o[1], s = zt(a, n.dtype), u = Be(i), l = this.readSync(s.dataId), c = this.readSync(n.dataId), d = 0; d < l.length; ++d) {
30376
30397
  for (var f = d * u, h = c[f], p = 0; p < u; ++p) {
30377
30398
  var m = c[f + p];
30378
30399
  h = h || m;
@@ -30460,11 +30481,11 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30460
30481
  return n;
30461
30482
  }, t.prototype.relu = function(n) {
30462
30483
  de(n, "relu");
30463
- for (var r = Vt(n.shape, n.dtype), o = this.readSync(r.dataId), a = this.readSync(n.dataId), i = 0; i < a.length; ++i) o[i] = Math.max(0, a[i]);
30484
+ for (var r = zt(n.shape, n.dtype), o = this.readSync(r.dataId), a = this.readSync(n.dataId), i = 0; i < a.length; ++i) o[i] = Math.max(0, a[i]);
30464
30485
  return r;
30465
30486
  }, t.prototype.relu6 = function(n) {
30466
30487
  de(n, "relu");
30467
- for (var r = Vt(n.shape, n.dtype), o = this.readSync(r.dataId), a = this.readSync(n.dataId), i = 0; i < a.length; ++i) o[i] = Math.min(Math.max(0, a[i]), 6);
30488
+ for (var r = zt(n.shape, n.dtype), o = this.readSync(r.dataId), a = this.readSync(n.dataId), i = 0; i < a.length; ++i) o[i] = Math.min(Math.max(0, a[i]), 6);
30468
30489
  return r;
30469
30490
  }, t.prototype.prelu = function(n, r) {
30470
30491
  return de([n, r], "prelu"), this.broadcastedBinaryOp(n, r, n.dtype, function(o, a) {
@@ -30887,7 +30908,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30887
30908
  var Y = d[O + H], L = d[z + H], V = Y + (d[F + H] - Y) * q, G = V + (L + (d[P + H] - L) * q - V) * C;
30888
30909
  f[m++] = G;
30889
30910
  }
30890
- return xn(f, [s, r, o, c]);
30911
+ return Cn(f, [s, r, o, c]);
30891
30912
  }, t.prototype.resizeBilinearBackprop = function(n, r, o) {
30892
30913
  de([n, r], "resizeBilinearBackprop");
30893
30914
  for (var a = r.shape, i = a[0], s = a[1], u = a[2], l = a[3], c = n.shape, d = c[1], f = c[2], h = new Float32Array(i * s * u * l), p = [o && d > 1 ? s - 1 : s, o && f > 1 ? u - 1 : u], m = [o && d > 1 ? d - 1 : d, o && f > 1 ? f - 1 : f], v = p[0] / m[0], y = p[1] / m[1], w = this.readSync(n.dataId), b = 0, g = 0; g < i; g++) for (var x = g * r.strides[0], C = 0; C < d; C++) for (var S = C * v, E = Math.floor(S), R = Math.min(Math.ceil(S), s - 1), k = x + E * r.strides[1], I = x + R * r.strides[1], A = S - E, q = 1 - A, D = 0; D < f; D++) for (var O = D * y, z = Math.floor(O), F = Math.min(Math.ceil(O), u - 1), P = O - z, H = 1 - P, Y = k + z * r.strides[2], L = k + F * r.strides[2], V = I + z * r.strides[2], G = I + F * r.strides[2], ne = q * H, ue = q * P, ce = A * H, le = A * P, we = 0; we < l; we++) {
@@ -30901,7 +30922,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30901
30922
  var I = d[R + k];
30902
30923
  f[y++] = I;
30903
30924
  }
30904
- return xn(f, [s, r, o, c], n.dtype);
30925
+ return Cn(f, [s, r, o, c], n.dtype);
30905
30926
  }, t.prototype.resizeNearestNeighborBackprop = function(n, r, o) {
30906
30927
  de([n, r], "resizeNearestNeighborBackprop");
30907
30928
  for (var a = r.shape, i = a[0], s = a[1], u = a[2], l = a[3], c = n.shape, d = c[1], f = c[2], h = new Float32Array(i * s * u * l), p = this.readSync(n.dataId), m = [o && d > 1 ? s - 1 : s, o && f > 1 ? u - 1 : u], v = [o && d > 1 ? d - 1 : d, o && f > 1 ? f - 1 : f], y = m[0] / v[0], w = m[1] / v[1], b = 1 / y, g = 1 / w, x = 2 * Math.ceil(b) + 2, C = 2 * Math.ceil(g) + 2, S = 0; S < i; S++) for (var E = S * r.strides[0], R = 0; R < s; R++) for (var k = E + R * r.strides[1], I = Math.floor(R * b), A = Math.floor(I - x / 2), q = 0; q < u; q++) for (var D = k + q * r.strides[2], O = Math.floor(q * g), z = Math.floor(O - C / 2), F = 0; F < l; F++) {
@@ -30952,7 +30973,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30952
30973
  return Pn(h, n.shape);
30953
30974
  }, t.prototype.multinomial = function(n, r, o, a) {
30954
30975
  de(n, "multinomial");
30955
- for (var i = r ? n : Gr(n), s = i.shape[0], u = i.shape[1], l = Vt([s, o], "int32"), c = this.readSync(l.dataId), d = this.readSync(i.dataId), f = 0; f < s; ++f) {
30976
+ for (var i = r ? n : Gr(n), s = i.shape[0], u = i.shape[1], l = zt([s, o], "int32"), c = this.readSync(l.dataId), d = this.readSync(i.dataId), f = 0; f < s; ++f) {
30956
30977
  var h = f * u, p = new Float32Array(u - 1);
30957
30978
  p[0] = d[h];
30958
30979
  for (var m = 1; m < p.length; ++m) p[m] = p[m - 1] + d[h + m];
@@ -30979,22 +31000,22 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30979
31000
  }, t.prototype.ifft = function(n) {
30980
31001
  return this.fftBatch(n, !0);
30981
31002
  }, t.prototype.fftBatch = function(n, r) {
30982
- for (var o = n.shape[0], a = n.shape[1], i = ot(n.shape, "float32"), s = ot(n.shape, "float32"), u = or(n).as2D(o, a), l = _r(n).as2D(o, a), c = 0; c < o; c++) for (var d = u.slice([c, 0], [1, a]), f = l.slice([c, 0], [1, a]), h = bn(d, f), p = this.readSync(this.fftImpl(h, r).dataId), m = 0; m < a; m++) {
31003
+ for (var o = n.shape[0], a = n.shape[1], i = ot(n.shape, "float32"), s = ot(n.shape, "float32"), u = or(n).as2D(o, a), l = _r(n).as2D(o, a), c = 0; c < o; c++) for (var d = u.slice([c, 0], [1, a]), f = l.slice([c, 0], [1, a]), h = wn(d, f), p = this.readSync(this.fftImpl(h, r).dataId), m = 0; m < a; m++) {
30983
31004
  var v = hp(p, m);
30984
31005
  i.values[c * a + m] = v.real, s.values[c * a + m] = v.imag;
30985
31006
  }
30986
- return bn(i.toTensor(), s.toTensor()).as2D(o, a);
31007
+ return wn(i.toTensor(), s.toTensor()).as2D(o, a);
30987
31008
  }, t.prototype.fftImpl = function(n, r) {
30988
31009
  var o = n.as1D(), a = o.size;
30989
31010
  if (this.isExponentOf2(a)) {
30990
31011
  var i = this.fftRadix2(o, a, r).as2D(n.shape[0], n.shape[1]);
30991
- return r && (i = bn(or(i).div(Ce(a)), _r(i).div(Ce(a)))), i;
31012
+ return r && (i = wn(or(i).div(Ce(a)), _r(i).div(Ce(a)))), i;
30992
31013
  }
30993
31014
  var s = this.readSync(n.dataId), u = function(l) {
30994
31015
  for (var c = new Float32Array(l.length / 2), d = new Float32Array(l.length / 2), f = 0; f < l.length; f += 2) c[f / 2] = l[f], d[f / 2] = l[f + 1];
30995
31016
  return { real: c, imag: d };
30996
31017
  }(this.fourierTransformByMatmul(s, a, r));
30997
- return bn(u.real, u.imag).as2D(n.shape[0], n.shape[1]);
31018
+ return wn(u.real, u.imag).as2D(n.shape[0], n.shape[1]);
30998
31019
  }, t.prototype.isExponentOf2 = function(n) {
30999
31020
  return (n & n - 1) == 0;
31000
31021
  }, t.prototype.fftRadix2 = function(n, r, o) {
@@ -31002,10 +31023,10 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
31002
31023
  var a = this.readSync(n.dataId), i = r / 2, s = function(y) {
31003
31024
  for (var w = Math.ceil(y.length / 4), b = new Float32Array(w), g = new Float32Array(w), x = 0; x < y.length; x += 4) b[Math.floor(x / 4)] = y[x], g[Math.floor(x / 4)] = y[x + 1];
31004
31025
  return { real: b, imag: g };
31005
- }(a), u = bn(s.real, s.imag).as1D(), l = function(y) {
31026
+ }(a), u = wn(s.real, s.imag).as1D(), l = function(y) {
31006
31027
  for (var w = Math.floor(y.length / 4), b = new Float32Array(w), g = new Float32Array(w), x = 2; x < y.length; x += 4) b[Math.floor(x / 4)] = y[x], g[Math.floor(x / 4)] = y[x + 1];
31007
31028
  return { real: b, imag: g };
31008
- }(a), c = bn(l.real, l.imag).as1D();
31029
+ }(a), c = wn(l.real, l.imag).as1D();
31009
31030
  u = this.fftRadix2(u, i, o), c = this.fftRadix2(c, i, o);
31010
31031
  var d = function(y, w) {
31011
31032
  for (var b = new Float32Array(y / 2), g = new Float32Array(y / 2), x = 0; x < Math.ceil(y / 2); x++) {
@@ -31013,8 +31034,8 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
31013
31034
  b[x] = Math.cos(C), g[x] = Math.sin(C);
31014
31035
  }
31015
31036
  return { real: b, imag: g };
31016
- }(r, o), f = bn(d.real, d.imag).mul(c), h = u.add(f), p = u.sub(f), m = or(h).concat(or(p)), v = _r(h).concat(_r(p));
31017
- return bn(m, v).as1D();
31037
+ }(r, o), f = wn(d.real, d.imag).mul(c), h = u.add(f), p = u.sub(f), m = or(h).concat(or(p)), v = _r(h).concat(_r(p));
31038
+ return wn(m, v).as1D();
31018
31039
  }, t.prototype.fourierTransformByMatmul = function(n, r, o) {
31019
31040
  for (var a = new Float32Array(2 * r), i = 0; i < r; i++) {
31020
31041
  for (var s = 0, u = 0, l = 0; l < r; l++) {
@@ -31124,7 +31145,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
31124
31145
  return this.scatter(n, r, o, d, l, u, s, c, a, !1);
31125
31146
  }, t.prototype.gatherND = function(n, r) {
31126
31147
  var o = r.shape, a = o[o.length - 1], i = vg(n, r), s = i[0], u = i[1], l = i[2], c = i[3];
31127
- if (u === 0) return xn([], s, n.dtype);
31148
+ if (u === 0) return Cn([], s, n.dtype);
31128
31149
  for (var d = new vi([u, l], n.dtype), f = this.readSync(r.dataId), h = this.readSync(n.dataId), p = 0; p < u; p++) {
31129
31150
  for (var m = [], v = 0, y = 0; y < a; y++) {
31130
31151
  var w = f[p * a + y];
@@ -31150,7 +31171,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
31150
31171
  return kg(n, r, o);
31151
31172
  }, t.prototype.scatter = function(n, r, o, a, i, s, u, l, c, d) {
31152
31173
  var f = [a / i, i], h = this.readSync(n.dataId), p = this.readSync(r.dataId);
31153
- if (a === 0) return xn([], o, r.dtype);
31174
+ if (a === 0) return Cn([], o, r.dtype);
31154
31175
  var m = new vi(f, r.dtype);
31155
31176
  m.values.fill(this.readSync(c.dataId)[0]);
31156
31177
  for (var v = 0; v < s; v++) {
@@ -31211,7 +31232,7 @@ for (var Jl = 0, Bp = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu",
31211
31232
  Km(Bp[Jl]);
31212
31233
  var ia, d6 = function(e) {
31213
31234
  this.variableNames = ["A"];
31214
- var t = Tn(), n = e[0], r = e[1];
31235
+ var t = In(), n = e[0], r = e[1];
31215
31236
  this.outputShape = e, this.userCode = `
31216
31237
  void main() {
31217
31238
  ivec3 coords = getOutputCoords();
@@ -31237,7 +31258,7 @@ var ia, d6 = function(e) {
31237
31258
  `;
31238
31259
  }, f6 = function(e) {
31239
31260
  this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0;
31240
- var t = Tn(), n = e[0], r = e[1];
31261
+ var t = In(), n = e[0], r = e[1];
31241
31262
  this.outputShape = e, this.userCode = `
31242
31263
  void main() {
31243
31264
  ivec3 coords = getOutputCoords();
@@ -31379,7 +31400,7 @@ function g0(e, t) {
31379
31400
  }
31380
31401
  r += d * x;
31381
31402
  }
31382
- n[u] = xn(f, c, l);
31403
+ n[u] = Cn(f, c, l);
31383
31404
  }, a = 0, i = t; a < i.length; a++)
31384
31405
  o(i[a]);
31385
31406
  return n;
@@ -32805,14 +32826,14 @@ function nt(e, t) {
32805
32826
  }
32806
32827
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
32807
32828
  }
32808
- var Sn = function() {
32809
- return Sn = Object.assign || function(t) {
32829
+ var En = function() {
32830
+ return En = Object.assign || function(t) {
32810
32831
  for (var n, r = 1, o = arguments.length; r < o; r++) {
32811
32832
  n = arguments[r];
32812
32833
  for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
32813
32834
  }
32814
32835
  return t;
32815
- }, Sn.apply(this, arguments);
32836
+ }, En.apply(this, arguments);
32816
32837
  };
32817
32838
  function Le(e, t, n, r) {
32818
32839
  function o(a) {
@@ -33595,7 +33616,7 @@ function A0() {
33595
33616
  }, o = global.fetch || function() {
33596
33617
  throw new Error("fetch - missing fetch implementation for nodejs environment");
33597
33618
  }, a = I0();
33598
- return Sn({
33619
+ return En({
33599
33620
  Canvas: e || /** @class */
33600
33621
  /* @__PURE__ */ function() {
33601
33622
  function i() {
@@ -33931,7 +33952,7 @@ var ou = (
33931
33952
  }, e;
33932
33953
  }()
33933
33954
  );
33934
- function mn(e) {
33955
+ function gn(e) {
33935
33956
  return Le(this, void 0, void 0, function() {
33936
33957
  var t, n, r;
33937
33958
  return qe(this, function(o) {
@@ -33966,7 +33987,7 @@ function $u(e, t) {
33966
33987
  return qe(this, function(l) {
33967
33988
  switch (l.label) {
33968
33989
  case 0:
33969
- return n = Mn.getEnv().Canvas, r = e, e instanceof n ? [3, 5] : [4, mn(e)];
33990
+ return n = Mn.getEnv().Canvas, r = e, e instanceof n ? [3, 5] : [4, gn(e)];
33970
33991
  case 1:
33971
33992
  if (o = l.sent(), o.batchSize > 1)
33972
33993
  throw new Error("extractFaces - batchSize > 1 not supported");
@@ -34134,7 +34155,7 @@ var Yr = (
34134
34155
  }, e.prototype.freeze = function() {
34135
34156
  var t = this;
34136
34157
  this.getTrainableParams().forEach(function(n) {
34137
- var r = n.path, o = n.tensor, a = xn(o.dataSync());
34158
+ var r = n.path, o = n.tensor, a = Cn(o.dataSync());
34138
34159
  o.dispose(), t.reassignParamFromPath(r, a);
34139
34160
  });
34140
34161
  }, e.prototype.dispose = function(t) {
@@ -34397,7 +34418,7 @@ var V0 = (
34397
34418
  return qe(this, function(o) {
34398
34419
  switch (o.label) {
34399
34420
  case 0:
34400
- return r = this.forwardInput, [4, mn(n)];
34421
+ return r = this.forwardInput, [4, gn(n)];
34401
34422
  case 1:
34402
34423
  return [2, r.apply(this, [o.sent()])];
34403
34424
  }
@@ -34519,7 +34540,7 @@ var $0 = (
34519
34540
  return qe(this, function(o) {
34520
34541
  switch (o.label) {
34521
34542
  case 0:
34522
- return r = this.forwardInput, [4, mn(n)];
34543
+ return r = this.forwardInput, [4, gn(n)];
34523
34544
  case 1:
34524
34545
  return [2, r.apply(this, [o.sent()])];
34525
34546
  }
@@ -34531,7 +34552,7 @@ var $0 = (
34531
34552
  return qe(this, function(u) {
34532
34553
  switch (u.label) {
34533
34554
  case 0:
34534
- return [4, mn(n)];
34555
+ return [4, gn(n)];
34535
34556
  case 1:
34536
34557
  return r = u.sent(), [4, this.forwardInput(r)];
34537
34558
  case 2:
@@ -34721,7 +34742,7 @@ var xA = (
34721
34742
  return qe(this, function(o) {
34722
34743
  switch (o.label) {
34723
34744
  case 0:
34724
- return r = this.forwardInput, [4, mn(n)];
34745
+ return r = this.forwardInput, [4, gn(n)];
34725
34746
  case 1:
34726
34747
  return [2, r.apply(this, [o.sent()])];
34727
34748
  }
@@ -34798,7 +34819,7 @@ var _A = (
34798
34819
  return qe(this, function(o) {
34799
34820
  switch (o.label) {
34800
34821
  case 0:
34801
- return r = this.forwardInput, [4, mn(n)];
34822
+ return r = this.forwardInput, [4, gn(n)];
34802
34823
  case 1:
34803
34824
  return [2, r.apply(this, [o.sent()])];
34804
34825
  }
@@ -34810,7 +34831,7 @@ var _A = (
34810
34831
  return qe(this, function(c) {
34811
34832
  switch (c.label) {
34812
34833
  case 0:
34813
- return [4, mn(n)];
34834
+ return [4, gn(n)];
34814
34835
  case 1:
34815
34836
  return r = c.sent(), [4, this.forwardInput(r)];
34816
34837
  case 2:
@@ -34911,7 +34932,7 @@ var _A = (
34911
34932
  return qe(this, function(o) {
34912
34933
  switch (o.label) {
34913
34934
  case 0:
34914
- return r = this.forwardInput, [4, mn(n)];
34935
+ return r = this.forwardInput, [4, gn(n)];
34915
34936
  case 1:
34916
34937
  return [2, r.apply(this, [o.sent()])];
34917
34938
  }
@@ -34923,7 +34944,7 @@ var _A = (
34923
34944
  return qe(this, function(s) {
34924
34945
  switch (s.label) {
34925
34946
  case 0:
34926
- return [4, mn(n)];
34947
+ return [4, gn(n)];
34927
34948
  case 1:
34928
34949
  return r = s.sent(), o = Re(function() {
34929
34950
  return an(i.forwardInput(r));
@@ -35012,7 +35033,7 @@ var RA = (
35012
35033
  return qe(this, function(o) {
35013
35034
  switch (o.label) {
35014
35035
  case 0:
35015
- return r = this.forwardInput, [4, mn(n)];
35036
+ return r = this.forwardInput, [4, gn(n)];
35016
35037
  case 1:
35017
35038
  return [2, r.apply(this, [o.sent()])];
35018
35039
  }
@@ -35176,15 +35197,15 @@ function br(e, t) {
35176
35197
  function ds(e, t) {
35177
35198
  var n = K0(e, t.conv1);
35178
35199
  n = G0(n, t.conv2);
35179
- var r = qi(e, 2, 2, "valid"), o = Vt(r.shape), a = r.shape[3] !== n.shape[3], i = r.shape[1] !== n.shape[1] || r.shape[2] !== n.shape[2];
35200
+ var r = qi(e, 2, 2, "valid"), o = zt(r.shape), a = r.shape[3] !== n.shape[3], i = r.shape[1] !== n.shape[1] || r.shape[2] !== n.shape[2];
35180
35201
  if (i) {
35181
35202
  var s = si(n.shape);
35182
35203
  s[1] = 1;
35183
- var u = Vt(s);
35204
+ var u = zt(s);
35184
35205
  n = on([n, u], 1);
35185
35206
  var l = si(n.shape);
35186
35207
  l[2] = 1;
35187
- var c = Vt(l);
35208
+ var c = zt(l);
35188
35209
  n = on([n, c], 2);
35189
35210
  }
35190
35211
  return r = a ? on([r, o], 3) : r, n = ft(r, n), n = Ut(n), n;
@@ -35212,7 +35233,7 @@ var BA = (
35212
35233
  return qe(this, function(o) {
35213
35234
  switch (o.label) {
35214
35235
  case 0:
35215
- return r = this.forwardInput, [4, mn(n)];
35236
+ return r = this.forwardInput, [4, gn(n)];
35216
35237
  case 1:
35217
35238
  return [2, r.apply(this, [o.sent()])];
35218
35239
  }
@@ -35224,7 +35245,7 @@ var BA = (
35224
35245
  return qe(this, function(s) {
35225
35246
  switch (s.label) {
35226
35247
  case 0:
35227
- return [4, mn(n)];
35248
+ return [4, gn(n)];
35228
35249
  case 1:
35229
35250
  return r = s.sent(), o = Re(function() {
35230
35251
  return an(i.forwardInput(r));
@@ -35681,7 +35702,7 @@ var Uu = (
35681
35702
  return qe(this, function(o) {
35682
35703
  switch (o.label) {
35683
35704
  case 0:
35684
- return r = this.forwardInput, [4, mn(n)];
35705
+ return r = this.forwardInput, [4, gn(n)];
35685
35706
  case 1:
35686
35707
  return [2, r.apply(this, [o.sent()])];
35687
35708
  }
@@ -35693,7 +35714,7 @@ var Uu = (
35693
35714
  return qe(this, function(R) {
35694
35715
  switch (R.label) {
35695
35716
  case 0:
35696
- return o = new Uu(r), a = o.maxResults, i = o.minConfidence, [4, mn(n)];
35717
+ return o = new Uu(r), a = o.maxResults, i = o.minConfidence, [4, gn(n)];
35697
35718
  case 1:
35698
35719
  for (s = R.sent(), u = this.forwardInput(s), l = u.boxes, c = u.scores, d = l[0], f = c[0], h = 1; h < l.length; h++)
35699
35720
  l[h].dispose(), c[h].dispose();
@@ -35942,7 +35963,7 @@ var xf = (
35942
35963
  return qe(this, function(a) {
35943
35964
  switch (a.label) {
35944
35965
  case 0:
35945
- return o = this.forwardInput, [4, mn(n)];
35966
+ return o = this.forwardInput, [4, gn(n)];
35946
35967
  case 1:
35947
35968
  return [4, o.apply(this, [a.sent(), r])];
35948
35969
  case 2:
@@ -35956,7 +35977,7 @@ var xf = (
35956
35977
  return qe(this, function(b) {
35957
35978
  switch (b.label) {
35958
35979
  case 0:
35959
- return o = new xf(r), a = o.inputSize, i = o.scoreThreshold, [4, mn(n)];
35980
+ return o = new xf(r), a = o.inputSize, i = o.scoreThreshold, [4, gn(n)];
35960
35981
  case 1:
35961
35982
  return s = b.sent(), [4, this.forwardInput(s, a)];
35962
35983
  case 2:
@@ -36019,7 +36040,7 @@ var xf = (
36019
36040
  case 7:
36020
36041
  F = { classScore: 1, label: 0 }, H.label = 8;
36021
36042
  case 8:
36022
- D = F, O = D.classScore, z = D.label, v.push(Sn({ box: new Lu(I, A, I + R, A + k), score: C, classScore: C * O, label: z }, q)), H.label = 9;
36043
+ D = F, O = D.classScore, z = D.label, v.push(En({ box: new Lu(I, A, I + R, A + k), score: C, classScore: C * O, label: z }, q)), H.label = 9;
36023
36044
  case 9:
36024
36045
  return x++, [3, 5];
36025
36046
  case 10:
@@ -36214,15 +36235,15 @@ function lD(e, t) {
36214
36235
  }
36215
36236
  function i() {
36216
36237
  var l = a([3, 10, 16, 32], "pnet"), c = n(32, 2, 1, "pnet/conv4_1"), d = n(32, 4, 1, "pnet/conv4_2");
36217
- return Sn(Sn({}, l), { conv4_1: c, conv4_2: d });
36238
+ return En(En({}, l), { conv4_1: c, conv4_2: d });
36218
36239
  }
36219
36240
  function s() {
36220
36241
  var l = a([3, 28, 48, 64], "rnet", !0), c = r(576, 128, "rnet/fc1"), d = o(128, "rnet/prelu4_alpha"), f = r(128, 2, "rnet/fc2_1"), h = r(128, 4, "rnet/fc2_2");
36221
- return Sn(Sn({}, l), { fc1: c, prelu4_alpha: d, fc2_1: f, fc2_2: h });
36242
+ return En(En({}, l), { fc1: c, prelu4_alpha: d, fc2_1: f, fc2_2: h });
36222
36243
  }
36223
36244
  function u() {
36224
36245
  var l = a([3, 32, 64, 64], "onet"), c = n(64, 128, 2, "onet/conv4"), d = o(128, "onet/prelu4_alpha"), f = r(1152, 256, "onet/fc1"), h = o(256, "onet/prelu5_alpha"), p = r(256, 2, "onet/fc2_1"), m = r(256, 4, "onet/fc2_2"), v = r(256, 10, "onet/fc2_3");
36225
- return Sn(Sn({}, l), { conv4: c, prelu4_alpha: d, fc1: f, prelu5_alpha: h, fc2_1: p, fc2_2: m, fc2_3: v });
36246
+ return En(En({}, l), { conv4: c, prelu4_alpha: d, fc1: f, prelu5_alpha: h, fc2_1: p, fc2_2: m, fc2_3: v });
36226
36247
  }
36227
36248
  return {
36228
36249
  extractPNetParams: i,
@@ -36255,15 +36276,15 @@ function dD(e, t) {
36255
36276
  }
36256
36277
  function s() {
36257
36278
  var c = i("pnet"), d = r("pnet/conv4_1"), f = r("pnet/conv4_2");
36258
- return Sn(Sn({}, c), { conv4_1: d, conv4_2: f });
36279
+ return En(En({}, c), { conv4_1: d, conv4_2: f });
36259
36280
  }
36260
36281
  function u() {
36261
36282
  var c = i("rnet"), d = o("rnet/fc1"), f = a("rnet/prelu4_alpha"), h = o("rnet/fc2_1"), p = o("rnet/fc2_2");
36262
- return Sn(Sn({}, c), { fc1: d, prelu4_alpha: f, fc2_1: h, fc2_2: p });
36283
+ return En(En({}, c), { fc1: d, prelu4_alpha: f, fc2_1: h, fc2_2: p });
36263
36284
  }
36264
36285
  function l() {
36265
36286
  var c = i("onet"), d = r("onet/conv4"), f = a("onet/prelu4_alpha"), h = o("onet/fc1"), p = a("onet/prelu5_alpha"), m = o("onet/fc2_1"), v = o("onet/fc2_2"), y = o("onet/fc2_3");
36266
- return Sn(Sn({}, c), { conv4: d, prelu4_alpha: f, fc1: h, prelu5_alpha: p, fc2_1: m, fc2_2: v, fc2_3: y });
36287
+ return En(En({}, c), { conv4: d, prelu4_alpha: f, fc1: h, prelu5_alpha: p, fc2_1: m, fc2_2: v, fc2_3: y });
36267
36288
  }
36268
36289
  return {
36269
36290
  extractPNetParams: s,
@@ -36588,7 +36609,7 @@ var CD = (
36588
36609
  return qe(this, function(a) {
36589
36610
  switch (a.label) {
36590
36611
  case 0:
36591
- return o = this.forwardInput, [4, mn(n)];
36612
+ return o = this.forwardInput, [4, gn(n)];
36592
36613
  case 1:
36593
36614
  return [4, o.apply(this, [
36594
36615
  a.sent(),
@@ -36605,7 +36626,7 @@ var CD = (
36605
36626
  return qe(this, function(a) {
36606
36627
  switch (a.label) {
36607
36628
  case 0:
36608
- return o = this.forwardInput, [4, mn(n)];
36629
+ return o = this.forwardInput, [4, gn(n)];
36609
36630
  case 1:
36610
36631
  return [2, o.apply(this, [
36611
36632
  a.sent(),
@@ -37376,7 +37397,7 @@ function VM(e) {
37376
37397
  n.value = 1, await r(t.value, n.value);
37377
37398
  },
37378
37399
  { deep: !0 }
37379
- ), vn(() => r(t.value, n.value)), {
37400
+ ), mn(() => r(t.value, n.value)), {
37380
37401
  search: t,
37381
37402
  currentPage: n,
37382
37403
  loading: e.loading,
@@ -37483,7 +37504,7 @@ const UM = (e, t) => {
37483
37504
  }
37484
37505
  };
37485
37506
  export {
37486
- gn as ApiService,
37507
+ yn as ApiService,
37487
37508
  yc as AppButton,
37488
37509
  OD as AppCheckbox,
37489
37510
  QD as AppConfirmDialog,