shared-ritm 1.2.87 → 1.2.89

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.
@@ -1,7 +1,7 @@
1
1
  var $0 = Object.defineProperty;
2
2
  var H0 = (e, n, t) => n in e ? $0(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var xf = (e, n, t) => H0(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { markRaw as Pp, defineComponent as Pt, reactive as ia, h as T, withDirectives as qn, computed as k, ref as Y, getCurrentInstance as Ye, nextTick as _t, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as Bp, Teleport as U0, onDeactivated as ho, unref as Er, Transition as Hn, useCssVars as qo, createBlock as Pe, openBlock as Q, mergeProps as Bc, withCtx as ve, renderSlot as nn, createCommentVNode as tt, createTextVNode as Wt, toDisplayString as mt, toRaw as eo, normalizeClass as Ke, createElementBlock as be, createVNode as _e, createElementVNode as fe, onBeforeUpdate as Op, inject as co, onActivated as Ta, mergeModels as _f, useModel as j0, createSlots as Aa, provide as Xs, normalizeStyle as cs, getCurrentScope as G0, onScopeDispose as K0, createStaticVNode as dr, resolveDynamicComponent as X0, Fragment as Ar, renderList as $r, vShow as Np, onBeforeMount as Oc, onUpdated as Y0, useSlots as Lp, shallowReactive as Q0, resolveComponent as Z0, withModifiers as Ys, normalizeProps as J0, toHandlers as e1 } from "vue";
4
+ import { markRaw as Pp, defineComponent as Pt, reactive as ia, h as T, withDirectives as qn, computed as k, ref as Y, getCurrentInstance as Ye, nextTick as _t, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as Bp, Teleport as U0, onDeactivated as ho, unref as Er, Transition as Hn, useCssVars as qo, createBlock as Pe, openBlock as Q, mergeProps as Bc, withCtx as ve, renderSlot as nn, createCommentVNode as tt, createTextVNode as Wt, toDisplayString as mt, toRaw as eo, normalizeClass as Ke, createElementBlock as be, createVNode as _e, createElementVNode as fe, onBeforeUpdate as Op, inject as co, onActivated as Ta, mergeModels as _f, useModel as j0, createSlots as Aa, provide as Xs, normalizeStyle as ni, getCurrentScope as G0, onScopeDispose as K0, createStaticVNode as dr, resolveDynamicComponent as X0, Fragment as Ar, renderList as $r, vShow as Np, onBeforeMount as Oc, onUpdated as Y0, useSlots as Lp, shallowReactive as Q0, resolveComponent as Z0, withModifiers as Ys, normalizeProps as J0, toHandlers as e1 } from "vue";
5
5
  function nr(e, n, t, r) {
6
6
  return Object.defineProperty(e, n, {
7
7
  get: t,
@@ -406,7 +406,7 @@ function $p(e, n) {
406
406
  changeScrollEvent: o
407
407
  };
408
408
  }
409
- function ns(e) {
409
+ function rs(e) {
410
410
  if (Object(e.$parent) === e.$parent)
411
411
  return e.$parent;
412
412
  let { parent: n } = e.$;
@@ -422,19 +422,19 @@ function Vc(e) {
422
422
  function Js(e) {
423
423
  return e.isUnmounted === !0 || e.isDeactivated === !0;
424
424
  }
425
- const vi = {
425
+ const mi = {
426
426
  modelValue: {
427
427
  type: Boolean,
428
428
  default: null
429
429
  },
430
430
  "onUpdate:modelValue": [Function, Array]
431
- }, mi = [
431
+ }, gi = [
432
432
  "beforeShow",
433
433
  "show",
434
434
  "beforeHide",
435
435
  "hide"
436
436
  ];
437
- function gi({
437
+ function yi({
438
438
  showing: e,
439
439
  canShow: n,
440
440
  // optional
@@ -483,18 +483,18 @@ function gi({
483
483
  const g = { show: f, hide: p, toggle: d };
484
484
  return Object.assign(l, g), g;
485
485
  }
486
- let So = [], ni = [];
486
+ let So = [], ri = [];
487
487
  function Hp(e) {
488
- ni = ni.filter((n) => n !== e);
488
+ ri = ri.filter((n) => n !== e);
489
489
  }
490
490
  function d1(e) {
491
- Hp(e), ni.push(e);
491
+ Hp(e), ri.push(e);
492
492
  }
493
493
  function kf(e) {
494
- Hp(e), ni.length === 0 && So.length !== 0 && (So[So.length - 1](), So = []);
494
+ Hp(e), ri.length === 0 && So.length !== 0 && (So[So.length - 1](), So = []);
495
495
  }
496
- function yi(e) {
497
- ni.length === 7 ? e() : So.push(e);
496
+ function bi(e) {
497
+ ri.length === 7 ? e() : So.push(e);
498
498
  }
499
499
  function f1(e) {
500
500
  So = So.filter((n) => n !== e);
@@ -522,12 +522,12 @@ function Up(e, n) {
522
522
  do {
523
523
  if (e.$options.name === "QMenu") {
524
524
  if (e.hide(n), e.$props.separateClosePopup === !0)
525
- return ns(e);
525
+ return rs(e);
526
526
  } else if (e.__qPortal === !0) {
527
- const t = ns(e);
527
+ const t = rs(e);
528
528
  return (t == null ? void 0 : t.$options.name) === "QPopupProxy" ? (e.hide(n), t) : e;
529
529
  }
530
- e = ns(e);
530
+ e = rs(e);
531
531
  } while (e != null);
532
532
  }
533
533
  function y1(e, n, t) {
@@ -539,7 +539,7 @@ function y1(e, n, t) {
539
539
  }
540
540
  e.hide(n);
541
541
  }
542
- e = ns(e);
542
+ e = rs(e);
543
543
  }
544
544
  }
545
545
  const b1 = Ge({
@@ -740,10 +740,10 @@ function Pu(e, n, t) {
740
740
  }
741
741
  Kl(e, n);
742
742
  }
743
- let Pi;
744
- function rs() {
745
- if (Pi !== void 0)
746
- return Pi;
743
+ let Bi;
744
+ function os() {
745
+ if (Bi !== void 0)
746
+ return Bi;
747
747
  const e = document.createElement("p"), n = document.createElement("div");
748
748
  jl(e, {
749
749
  width: "100%",
@@ -760,7 +760,7 @@ function rs() {
760
760
  const t = e.offsetWidth;
761
761
  n.style.overflow = "scroll";
762
762
  let r = e.offsetWidth;
763
- return t === r && (r = n.clientWidth), n.remove(), Pi = t - r, Pi;
763
+ return t === r && (r = n.clientWidth), n.remove(), Bi = t - r, Bi;
764
764
  }
765
765
  function C1(e, n = !0) {
766
766
  return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : n ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
@@ -925,7 +925,7 @@ function Uc(e, n = 0) {
925
925
  }, x.maxHeight !== void 0 && (b.maxHeight = x.maxHeight + "px", p.height > x.maxHeight && (b.minHeight = b.maxHeight)), x.maxWidth !== void 0 && (b.maxWidth = x.maxWidth + "px", p.width > x.maxWidth && (b.minWidth = b.maxWidth)), Object.assign(t.style, b), t.scrollTop !== h && (t.scrollTop = h), t.scrollLeft !== f && (t.scrollLeft = f);
926
926
  }
927
927
  function Bu(e, n, t, r, o) {
928
- const a = t.bottom, i = t.right, s = rs(), u = window.innerHeight - s, l = document.body.clientWidth;
928
+ const a = t.bottom, i = t.right, s = os(), u = window.innerHeight - s, l = document.body.clientWidth;
929
929
  if (e.top < 0 || e.top + a > u)
930
930
  if (o.vertical === "center")
931
931
  e.top = n[r.vertical] > u / 2 ? Math.max(0, u - a) : 0, e.maxHeight = Math.min(a, u);
@@ -960,7 +960,7 @@ const gs = Ge({
960
960
  inheritAttrs: !1,
961
961
  props: {
962
962
  ...zp,
963
- ...vi,
963
+ ...mi,
964
964
  ...ua,
965
965
  maxHeight: {
966
966
  type: String,
@@ -1005,11 +1005,11 @@ const gs = Ge({
1005
1005
  persistent: Boolean
1006
1006
  },
1007
1007
  emits: [
1008
- ...mi
1008
+ ...gi
1009
1009
  ],
1010
1010
  setup(e, { slots: n, emit: t, attrs: r }) {
1011
1011
  let o, a;
1012
- const i = Ye(), { proxy: { $q: s } } = i, u = Y(null), l = Y(!1), c = k(() => ms(e.anchor, s.lang.rtl)), d = k(() => ms(e.self, s.lang.rtl)), f = k(() => e.persistent !== !0), { registerTick: h, removeTick: p } = la(), { registerTimeout: v } = wa(), { transitionProps: m, transitionStyle: g } = Wc(e), { localScrollTarget: w, changeScrollEvent: b, unconfigureScrollTarget: y } = $p(e, G), { anchorEl: x, canShow: _, anchorEvents: E } = qc({ showing: l, configureAnchorEl: j }), { show: R, hide: C } = gi({
1012
+ const i = Ye(), { proxy: { $q: s } } = i, u = Y(null), l = Y(!1), c = k(() => ms(e.anchor, s.lang.rtl)), d = k(() => ms(e.self, s.lang.rtl)), f = k(() => e.persistent !== !0), { registerTick: h, removeTick: p } = la(), { registerTimeout: v } = wa(), { transitionProps: m, transitionStyle: g } = Wc(e), { localScrollTarget: w, changeScrollEvent: b, unconfigureScrollTarget: y } = $p(e, G), { anchorEl: x, canShow: _, anchorEvents: E } = qc({ showing: l, configureAnchorEl: j }), { show: R, hide: C } = yi({
1013
1013
  showing: l,
1014
1014
  canShow: _,
1015
1015
  handleShow: W,
@@ -1344,7 +1344,7 @@ function Ff(e, { modifiers: n, value: t, arg: r }) {
1344
1344
  keyCodes: [].concat(o.keyCodes || 13)
1345
1345
  };
1346
1346
  }
1347
- const bi = Nc(
1347
+ const wi = Nc(
1348
1348
  {
1349
1349
  name: "ripple",
1350
1350
  beforeMount(e, n) {
@@ -1813,7 +1813,7 @@ const St = Ge({
1813
1813
  B
1814
1814
  ),
1815
1815
  [[
1816
- bi,
1816
+ wi,
1817
1817
  w.value,
1818
1818
  void 0,
1819
1819
  b.value
@@ -2214,7 +2214,7 @@ function Lf(e, n, t) {
2214
2214
  function ny(e) {
2215
2215
  return ry(e) === 0;
2216
2216
  }
2217
- function os(e, n) {
2217
+ function as(e, n) {
2218
2218
  return n <= 6 ? 31 : n <= 11 || ny(e) ? 30 : 29;
2219
2219
  }
2220
2220
  function ry(e) {
@@ -2716,7 +2716,7 @@ function Xa(e, n, t, r, o) {
2716
2716
  if (c.D !== void 0) {
2717
2717
  if (a.day = parseInt(d[c.D], 10), a.year === null || a.month === null || a.day < 1)
2718
2718
  return a;
2719
- const h = r !== "persian" ? new Date(a.year, a.month, 0).getDate() : os(a.year, a.month);
2719
+ const h = r !== "persian" ? new Date(a.year, a.month, 0).getDate() : as(a.year, a.month);
2720
2720
  if (a.day > h)
2721
2721
  return a;
2722
2722
  }
@@ -2759,7 +2759,7 @@ function Lr(e, n, t) {
2759
2759
  }
2760
2760
  return r;
2761
2761
  }
2762
- function Bi(e, n, t) {
2762
+ function Oi(e, n, t) {
2763
2763
  return (e.getTime() - e.getTimezoneOffset() * ec - (n.getTime() - n.getTimezoneOffset() * ec)) / t;
2764
2764
  }
2765
2765
  function xv(e, n, t = "days") {
@@ -2774,16 +2774,16 @@ function xv(e, n, t = "days") {
2774
2774
  case "days":
2775
2775
  case "day":
2776
2776
  case "date":
2777
- return Bi(Lr(r, "day"), Lr(o, "day"), yv);
2777
+ return Oi(Lr(r, "day"), Lr(o, "day"), yv);
2778
2778
  case "hours":
2779
2779
  case "hour":
2780
- return Bi(Lr(r, "hour"), Lr(o, "hour"), sy);
2780
+ return Oi(Lr(r, "hour"), Lr(o, "hour"), sy);
2781
2781
  case "minutes":
2782
2782
  case "minute":
2783
- return Bi(Lr(r, "minute"), Lr(o, "minute"), ec);
2783
+ return Oi(Lr(r, "minute"), Lr(o, "minute"), ec);
2784
2784
  case "seconds":
2785
2785
  case "second":
2786
- return Bi(Lr(r, "second"), Lr(o, "second"), 1e3);
2786
+ return Oi(Lr(r, "second"), Lr(o, "second"), 1e3);
2787
2787
  }
2788
2788
  }
2789
2789
  function Vu(e) {
@@ -3115,7 +3115,7 @@ const Cv = Ge({
3115
3115
  return $ > 0 ? P.slice($, 7).concat(P.slice(0, $)) : P;
3116
3116
  }), oe = k(() => {
3117
3117
  const P = y.value;
3118
- return e.calendar !== "persian" ? new Date(P.year, P.month, 0).getDate() : os(P.year, P.month);
3118
+ return e.calendar !== "persian" ? new Date(P.year, P.month, 0).getDate() : as(P.year, P.month);
3119
3119
  }), ze = k(() => typeof e.eventColor == "function" ? e.eventColor : () => e.eventColor), ge = k(() => {
3120
3120
  if (e.navigationMinYearMonth === void 0)
3121
3121
  return null;
@@ -3198,7 +3198,7 @@ const Cv = Ge({
3198
3198
  const ke = Lf(ne, ye, 1);
3199
3199
  P = new Date(ke.gy, ke.gm - 1, ke.gd);
3200
3200
  let dt = ye - 1, Te = ne;
3201
- dt === 0 && (dt = 12, Te--), $ = os(Te, dt);
3201
+ dt === 0 && (dt = 12, Te--), $ = as(Te, dt);
3202
3202
  }
3203
3203
  return {
3204
3204
  days: P.getDay() - de.value - 1,
@@ -3426,7 +3426,7 @@ const Cv = Ge({
3426
3426
  const $ = L.value[0] !== void 0 && L.value[0].dateHash !== null ? { ...L.value[0] } : { ...y.value };
3427
3427
  _t(() => {
3428
3428
  $.year = y.value.year, $.month = y.value.month;
3429
- const ne = e.calendar !== "persian" ? new Date($.year, $.month, 0).getDate() : os($.year, $.month);
3429
+ const ne = e.calendar !== "persian" ? new Date($.year, $.month, 0).getDate() : as($.year, $.month);
3430
3430
  $.day = Math.min(Math.max(1, $.day), ne);
3431
3431
  const ye = ir($), { details: ke } = Uo("", $);
3432
3432
  pe(ye), t("update:modelValue", ye, P, ke);
@@ -3861,7 +3861,7 @@ function hy(e) {
3861
3861
  function Kf(e) {
3862
3862
  e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
3863
3863
  }
3864
- function Oi(e) {
3864
+ function Ni(e) {
3865
3865
  Hu !== !0 && (Hu = !0, requestAnimationFrame(() => {
3866
3866
  Hu = !1;
3867
3867
  const { height: n } = e.target, { clientHeight: t, scrollTop: r } = document.scrollingElement;
@@ -3872,9 +3872,9 @@ function Xf(e) {
3872
3872
  const n = document.body, t = window.visualViewport !== void 0;
3873
3873
  if (e === "add") {
3874
3874
  const { overflowY: r, overflowX: o } = window.getComputedStyle(n);
3875
- Wu = Hc(window), $u = $c(window), Uf = n.style.left, jf = n.style.top, Gf = window.location.href, n.style.left = `-${Wu}px`, n.style.top = `-${$u}px`, o !== "hidden" && (o === "scroll" || n.scrollWidth > window.innerWidth) && n.classList.add("q-body--force-scrollbar-x"), r !== "hidden" && (r === "scroll" || n.scrollHeight > window.innerHeight) && n.classList.add("q-body--force-scrollbar-y"), n.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, hn.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Oi, Yt.passiveCapture), window.visualViewport.addEventListener("scroll", Oi, Yt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Kf, Yt.passiveCapture));
3875
+ Wu = Hc(window), $u = $c(window), Uf = n.style.left, jf = n.style.top, Gf = window.location.href, n.style.left = `-${Wu}px`, n.style.top = `-${$u}px`, o !== "hidden" && (o === "scroll" || n.scrollWidth > window.innerWidth) && n.classList.add("q-body--force-scrollbar-x"), r !== "hidden" && (r === "scroll" || n.scrollHeight > window.innerHeight) && n.classList.add("q-body--force-scrollbar-y"), n.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, hn.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Ni, Yt.passiveCapture), window.visualViewport.addEventListener("scroll", Ni, Yt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Kf, Yt.passiveCapture));
3876
3876
  }
3877
- hn.is.desktop === !0 && hn.is.mac === !0 && window[`${e}EventListener`]("wheel", fy, Yt.notPassive), e === "remove" && (hn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Oi, Yt.passiveCapture), window.visualViewport.removeEventListener("scroll", Oi, Yt.passiveCapture)) : window.removeEventListener("scroll", Kf, Yt.passiveCapture)), n.classList.remove("q-body--prevent-scroll"), n.classList.remove("q-body--force-scrollbar-x"), n.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, n.style.left = Uf, n.style.top = jf, window.location.href === Gf && window.scrollTo(Wu, $u), Ya = void 0);
3877
+ hn.is.desktop === !0 && hn.is.mac === !0 && window[`${e}EventListener`]("wheel", fy, Yt.notPassive), e === "remove" && (hn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Ni, Yt.passiveCapture), window.visualViewport.removeEventListener("scroll", Ni, Yt.passiveCapture)) : window.removeEventListener("scroll", Kf, Yt.passiveCapture)), n.classList.remove("q-body--prevent-scroll"), n.classList.remove("q-body--force-scrollbar-x"), n.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, n.style.left = Uf, n.style.top = jf, window.location.href === Gf && window.scrollTo(Wu, $u), Ya = void 0);
3878
3878
  }
3879
3879
  function py(e) {
3880
3880
  let n = "add";
@@ -3935,7 +3935,7 @@ function tc(e) {
3935
3935
  const n = Mo.indexOf(e);
3936
3936
  n !== -1 && (Mo.splice(n, 1), Mo.length === 0 && document.body.removeEventListener("focusin", Iv));
3937
3937
  }
3938
- let Ni = 0;
3938
+ let Li = 0;
3939
3939
  const yy = {
3940
3940
  standard: "fixed-full flex-center",
3941
3941
  top: "fixed-top justify-center",
@@ -3952,7 +3952,7 @@ const yy = {
3952
3952
  name: "QDialog",
3953
3953
  inheritAttrs: !1,
3954
3954
  props: {
3955
- ...vi,
3955
+ ...mi,
3956
3956
  ...ua,
3957
3957
  transitionShow: String,
3958
3958
  // override useTransitionProps
@@ -3980,7 +3980,7 @@ const yy = {
3980
3980
  }
3981
3981
  },
3982
3982
  emits: [
3983
- ...mi,
3983
+ ...gi,
3984
3984
  "shake",
3985
3985
  "click",
3986
3986
  "escapeKey"
@@ -3999,7 +3999,7 @@ const yy = {
3999
3999
  a,
4000
4000
  X,
4001
4001
  "dialog"
4002
- ), { hide: R } = gi({
4002
+ ), { hide: R } = yi({
4003
4003
  showing: i,
4004
4004
  hideOnRouteChange: f,
4005
4005
  handleShow: W,
@@ -4040,7 +4040,7 @@ const yy = {
4040
4040
  }, e.transitionDuration);
4041
4041
  }
4042
4042
  function B(ae) {
4043
- yi(() => {
4043
+ bi(() => {
4044
4044
  let le = a.value;
4045
4045
  if (le !== null) {
4046
4046
  if (ae !== void 0) {
@@ -4068,7 +4068,7 @@ const yy = {
4068
4068
  u !== null && (clearTimeout(u), u = null), (ae === !0 || i.value === !0) && (j(!1), e.seamless !== !0 && (h(!1), tc(N), bs(L))), ae !== !0 && (l = null);
4069
4069
  }
4070
4070
  function j(ae) {
4071
- ae === !0 ? c !== !0 && (Ni < 1 && document.body.classList.add("q-body--dialog"), Ni++, c = !0) : c === !0 && (Ni < 2 && document.body.classList.remove("q-body--dialog"), Ni--, c = !1);
4071
+ ae === !0 ? c !== !0 && (Li < 1 && document.body.classList.add("q-body--dialog"), Li++, c = !0) : c === !0 && (Li < 2 && document.body.classList.remove("q-body--dialog"), Li--, c = !1);
4072
4072
  }
4073
4073
  function G(ae) {
4074
4074
  d !== !0 && (R(ae), t("click", ae));
@@ -4120,12 +4120,12 @@ const yy = {
4120
4120
  }
4121
4121
  return E;
4122
4122
  }
4123
- }), wi = Ge({
4123
+ }), xi = Ge({
4124
4124
  name: "QMenu",
4125
4125
  inheritAttrs: !1,
4126
4126
  props: {
4127
4127
  ...Wp,
4128
- ...vi,
4128
+ ...mi,
4129
4129
  ...xn,
4130
4130
  ...ua,
4131
4131
  persistent: Boolean,
@@ -4162,7 +4162,7 @@ const yy = {
4162
4162
  }
4163
4163
  },
4164
4164
  emits: [
4165
- ...mi,
4165
+ ...gi,
4166
4166
  "click",
4167
4167
  "escapeKey"
4168
4168
  ],
@@ -4170,7 +4170,7 @@ const yy = {
4170
4170
  let o = null, a, i, s;
4171
4171
  const u = Ye(), { proxy: l } = u, { $q: c } = l, d = Y(null), f = Y(!1), h = k(
4172
4172
  () => e.persistent !== !0 && e.noRouteDismiss !== !0
4173
- ), p = _n(e, c), { registerTick: v, removeTick: m } = la(), { registerTimeout: g } = wa(), { transitionProps: w, transitionStyle: b } = Wc(e), { localScrollTarget: y, changeScrollEvent: x, unconfigureScrollTarget: _ } = $p(e, X), { anchorEl: E, canShow: R } = qc({ showing: f }), { hide: C } = gi({
4173
+ ), p = _n(e, c), { registerTick: v, removeTick: m } = la(), { registerTimeout: g } = wa(), { transitionProps: w, transitionStyle: b } = Wc(e), { localScrollTarget: y, changeScrollEvent: x, unconfigureScrollTarget: _ } = $p(e, X), { anchorEl: E, canShow: R } = qc({ showing: f }), { hide: C } = yi({
4174
4174
  showing: f,
4175
4175
  canShow: R,
4176
4176
  handleShow: G,
@@ -4199,7 +4199,7 @@ const yy = {
4199
4199
  oe === !0 ? (Rv(se), Xp(W)) : (bs(se), ps(W));
4200
4200
  });
4201
4201
  function j() {
4202
- yi(() => {
4202
+ bi(() => {
4203
4203
  let oe = d.value;
4204
4204
  oe && oe.contains(document.activeElement) !== !0 && (oe = oe.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || oe.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || oe.querySelector("[autofocus], [data-autofocus]") || oe, oe.focus({ preventScroll: !0 }));
4205
4205
  });
@@ -4328,7 +4328,7 @@ const yy = {
4328
4328
  onHide: p
4329
4329
  };
4330
4330
  let m;
4331
- return d.value === "dialog" ? m = Pa : (m = wi, Object.assign(v, {
4331
+ return d.value === "dialog" ? m = Pa : (m = xi, Object.assign(v, {
4332
4332
  target: e.target,
4333
4333
  contextMenu: e.contextMenu,
4334
4334
  noParentEvent: !0,
@@ -5057,7 +5057,7 @@ const Ry = Ge({
5057
5057
  };
5058
5058
  }
5059
5059
  });
5060
- let ju, Li = 0;
5060
+ let ju, qi = 0;
5061
5061
  const gn = new Array(256);
5062
5062
  for (let e = 0; e < 256; e++)
5063
5063
  gn[e] = (e + 256).toString(16).substring(1);
@@ -5080,8 +5080,8 @@ const Iy = (() => {
5080
5080
  };
5081
5081
  })(), Jf = 4096;
5082
5082
  function ws() {
5083
- (ju === void 0 || Li + 16 > Jf) && (Li = 0, ju = Iy(Jf));
5084
- const e = Array.prototype.slice.call(ju, Li, Li += 16);
5083
+ (ju === void 0 || qi + 16 > Jf) && (qi = 0, ju = Iy(Jf));
5084
+ const e = Array.prototype.slice.call(ju, qi, qi += 16);
5085
5085
  return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, gn[e[0]] + gn[e[1]] + gn[e[2]] + gn[e[3]] + "-" + gn[e[4]] + gn[e[5]] + "-" + gn[e[6]] + gn[e[7]] + "-" + gn[e[8]] + gn[e[9]] + "-" + gn[e[10]] + gn[e[11]] + gn[e[12]] + gn[e[13]] + gn[e[14]] + gn[e[15]];
5086
5086
  }
5087
5087
  function Ty(e) {
@@ -5117,7 +5117,7 @@ function Ay() {
5117
5117
  }
5118
5118
  return Op(r), r(), t;
5119
5119
  }
5120
- const Dy = "_q_", xi = "_q_l_", Dv = "_q_pc_", Mv = "_q_fo_", Fv = "_q_tabs_";
5120
+ const Dy = "_q_", _i = "_q_l_", Dv = "_q_pc_", Mv = "_q_fo_", Fv = "_q_tabs_";
5121
5121
  function dn() {
5122
5122
  }
5123
5123
  function My({ validate: e, resetValidation: n, requiresQForm: t }) {
@@ -5133,7 +5133,7 @@ function My({ validate: e, resetValidation: n, requiresQForm: t }) {
5133
5133
  });
5134
5134
  } else t === !0 && console.error("Parent QForm not found on useFormChild()!");
5135
5135
  }
5136
- const nh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, rh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, oh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, qi = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Vi = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, Gu = {
5136
+ const nh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, rh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, oh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, Vi = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, zi = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, Gu = {
5137
5137
  date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
5138
5138
  time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
5139
5139
  fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
@@ -5148,12 +5148,12 @@ const nh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, rh = /^#[0-9a-fA-F]{4}([0-9a-fA
5148
5148
  hexColor: (e) => nh.test(e),
5149
5149
  hexaColor: (e) => rh.test(e),
5150
5150
  hexOrHexaColor: (e) => oh.test(e),
5151
- rgbColor: (e) => qi.test(e),
5152
- rgbaColor: (e) => Vi.test(e),
5153
- rgbOrRgbaColor: (e) => qi.test(e) || Vi.test(e),
5154
- hexOrRgbColor: (e) => nh.test(e) || qi.test(e),
5155
- hexaOrRgbaColor: (e) => rh.test(e) || Vi.test(e),
5156
- anyColor: (e) => oh.test(e) || qi.test(e) || Vi.test(e)
5151
+ rgbColor: (e) => Vi.test(e),
5152
+ rgbaColor: (e) => zi.test(e),
5153
+ rgbOrRgbaColor: (e) => Vi.test(e) || zi.test(e),
5154
+ hexOrRgbColor: (e) => nh.test(e) || Vi.test(e),
5155
+ hexaOrRgbaColor: (e) => rh.test(e) || zi.test(e),
5156
+ anyColor: (e) => oh.test(e) || Vi.test(e) || zi.test(e)
5157
5157
  };
5158
5158
  function ed(e, n = 250, t) {
5159
5159
  let r = null;
@@ -5245,7 +5245,7 @@ function By(e, n) {
5245
5245
  resetValidation: p
5246
5246
  };
5247
5247
  }
5248
- function ri(e) {
5248
+ function oi(e) {
5249
5249
  return e != null && ("" + e).length !== 0;
5250
5250
  }
5251
5251
  const Oy = {
@@ -5327,7 +5327,7 @@ function nd({ requiredForAttr: e = !0, tagProp: n, changeEvent: t = !1 } = {}) {
5327
5327
  function rd(e) {
5328
5328
  const { props: n, emit: t, slots: r, attrs: o, proxy: a } = Ye(), { $q: i } = a;
5329
5329
  let s = null;
5330
- e.hasValue === void 0 && (e.hasValue = k(() => ri(n.modelValue))), e.emitValue === void 0 && (e.emitValue = (q) => {
5330
+ e.hasValue === void 0 && (e.hasValue = k(() => oi(n.modelValue))), e.emitValue === void 0 && (e.emitValue = (q) => {
5331
5331
  t("update:modelValue", q);
5332
5332
  }), e.controlEvents === void 0 && (e.controlEvents = {
5333
5333
  onFocusin: C,
@@ -5377,7 +5377,7 @@ function rd(e) {
5377
5377
  j && (q === null || q.id !== e.targetUid.value) && (j.hasAttribute("tabindex") === !0 || (j = j.querySelector("[tabindex]")), j !== q && (j == null || j.focus({ preventScroll: !0 })));
5378
5378
  }
5379
5379
  function E() {
5380
- yi(_);
5380
+ bi(_);
5381
5381
  }
5382
5382
  function R() {
5383
5383
  f1(_);
@@ -5875,7 +5875,7 @@ const Ba = Ge({
5875
5875
  onMaskedClick: w
5876
5876
  } = qy(e, n, V, d), b = Vy(
5877
5877
  e
5878
- ), y = k(() => ri(h.value)), x = Bv(D), _ = nd({ changeEvent: !0 }), E = k(
5878
+ ), y = k(() => oi(h.value)), x = Bv(D), _ = nd({ changeEvent: !0 }), E = k(
5879
5879
  () => e.type === "textarea" || e.autogrow === !0
5880
5880
  ), R = k(
5881
5881
  () => E.value === !0 || ["text", "search", "url", "tel", "password"].includes(e.type)
@@ -5923,7 +5923,7 @@ const Ba = Ge({
5923
5923
  e.autogrow === !0 && _t(L);
5924
5924
  });
5925
5925
  function M() {
5926
- yi(() => {
5926
+ bi(() => {
5927
5927
  const N = document.activeElement;
5928
5928
  d.value !== null && d.value !== N && (N === null || N.id !== _.targetUid.value) && d.value.focus({ preventScroll: !0 });
5929
5929
  });
@@ -6006,7 +6006,7 @@ const Ba = Ge({
6006
6006
  emitValue: V,
6007
6007
  hasValue: y,
6008
6008
  floatingLabel: k(
6009
- () => y.value === !0 && (e.type !== "number" || isNaN(h.value) === !1) || ri(e.displayValue)
6009
+ () => y.value === !0 && (e.type !== "number" || isNaN(h.value) === !1) || oi(e.displayValue)
6010
6010
  ),
6011
6011
  getControl: () => T(E.value === !0 ? "textarea" : "input", {
6012
6012
  ref: d,
@@ -6549,7 +6549,7 @@ const Uy = { class: "app-input-new" }, jy = {
6549
6549
  }, AA = /* @__PURE__ */ Fe(t2, [["__cssModules", r2]]), o2 = Ge({
6550
6550
  name: "QPageContainer",
6551
6551
  setup(e, { slots: n }) {
6552
- const { proxy: { $q: t } } = Ye(), r = co(xi, dn);
6552
+ const { proxy: { $q: t } } = Ye(), r = co(_i, dn);
6553
6553
  if (r === dn)
6554
6554
  return console.error("QPageContainer needs to be child of QLayout"), dn;
6555
6555
  Xs(Dv, !0);
@@ -6715,7 +6715,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6715
6715
  onResize: Function
6716
6716
  },
6717
6717
  setup(e, { slots: n, emit: t }) {
6718
- const { proxy: { $q: r } } = Ye(), o = Y(null), a = Y(r.screen.height), i = Y(e.container === !0 ? 0 : r.screen.width), s = Y({ position: 0, direction: "down", inflectionPoint: 0 }), u = Y(0), l = Y(Oo.value === !0 ? 0 : rs()), c = k(
6718
+ const { proxy: { $q: r } } = Ye(), o = Y(null), a = Y(r.screen.height), i = Y(e.container === !0 ? 0 : r.screen.width), s = Y({ position: 0, direction: "down", inflectionPoint: 0 }), u = Y(0), l = Y(Oo.value === !0 ? 0 : os()), c = k(
6719
6719
  () => "q-layout q-layout--" + (e.container === !0 ? "containerized" : "standard")
6720
6720
  ), d = k(() => e.container === !1 ? { minHeight: r.screen.height + "px" } : null), f = k(() => l.value !== 0 ? { [r.lang.rtl === !0 ? "left" : "right"]: `${l.value}px` } : null), h = k(() => l.value !== 0 ? {
6721
6721
  [r.lang.rtl === !0 ? "right" : "left"]: 0,
@@ -6744,7 +6744,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6744
6744
  }
6745
6745
  function g() {
6746
6746
  if (e.container === !0) {
6747
- const y = a.value > u.value ? rs() : 0;
6747
+ const y = a.value > u.value ? os() : 0;
6748
6748
  l.value !== y && (l.value = y);
6749
6749
  }
6750
6750
  }
@@ -6780,7 +6780,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6780
6780
  b[y][x] = _;
6781
6781
  }
6782
6782
  };
6783
- if (Xs(xi, b), rs() > 0) {
6783
+ if (Xs(_i, b), os() > 0) {
6784
6784
  let y = function() {
6785
6785
  E = null, R.classList.remove("hide-scrollbar");
6786
6786
  }, x = function() {
@@ -6892,7 +6892,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6892
6892
  ], 2)) : tt("", !0),
6893
6893
  nn(a.$slots, "drawer"),
6894
6894
  nn(a.$slots, "header", {
6895
- style: cs(r.value)
6895
+ style: ni(r.value)
6896
6896
  }),
6897
6897
  _e(o2, {
6898
6898
  class: Ke({ container: a.container }),
@@ -6900,7 +6900,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
6900
6900
  }, {
6901
6901
  default: ve(() => [
6902
6902
  nn(a.$slots, "content", {
6903
- style: cs(r.value)
6903
+ style: ni(r.value)
6904
6904
  })
6905
6905
  ]),
6906
6906
  _: 3
@@ -7070,7 +7070,7 @@ const qv = typeof ResizeObserver < "u", uh = qv === !0 ? {} : {
7070
7070
  },
7071
7071
  emits: ["reveal", "focusin"],
7072
7072
  setup(e, { slots: n, emit: t }) {
7073
- const { proxy: { $q: r } } = Ye(), o = co(xi, dn);
7073
+ const { proxy: { $q: r } } = Ye(), o = co(_i, dn);
7074
7074
  if (o === dn)
7075
7075
  return console.error("QHeader needs to be child of QLayout"), dn;
7076
7076
  const a = Y(parseInt(e.heightHint, 10)), i = Y(!0), s = k(
@@ -7183,7 +7183,7 @@ function Vv(e) {
7183
7183
  }
7184
7184
  const zv = typeof window < "u" && typeof document < "u";
7185
7185
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7186
- const b2 = Object.prototype.toString, w2 = (e) => b2.call(e) === "[object Object]", as = () => {
7186
+ const b2 = Object.prototype.toString, w2 = (e) => b2.call(e) === "[object Object]", is = () => {
7187
7187
  }, x2 = /* @__PURE__ */ _2();
7188
7188
  function _2() {
7189
7189
  var e, n;
@@ -7198,7 +7198,7 @@ const Wv = zv ? window : void 0;
7198
7198
  function Xu(...e) {
7199
7199
  let n, t, r, o;
7200
7200
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, r, o] = e, n = Wv) : [n, t, r, o] = e, !n)
7201
- return as;
7201
+ return is;
7202
7202
  Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
7203
7203
  const a = [], i = () => {
7204
7204
  a.forEach((c) => c()), a.length = 0;
@@ -7222,8 +7222,8 @@ let ch = !1;
7222
7222
  function C2(e, n, t = {}) {
7223
7223
  const { window: r = Wv, ignore: o = [], capture: a = !0, detectIframe: i = !1 } = t;
7224
7224
  if (!r)
7225
- return as;
7226
- x2 && !ch && (ch = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", as)), r.document.documentElement.addEventListener("click", as));
7225
+ return is;
7226
+ x2 && !ch && (ch = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", is)), r.document.documentElement.addEventListener("click", is));
7227
7227
  let s = !0;
7228
7228
  const u = (f) => o.some((h) => {
7229
7229
  if (typeof h == "string")
@@ -8179,7 +8179,7 @@ const jw = /* @__PURE__ */ Fe($w, [["render", Uw]]), Gw = /* @__PURE__ */ Pt({
8179
8179
  size: "28px",
8180
8180
  name: "setting-icon"
8181
8181
  }),
8182
- _e(wi, {
8182
+ _e(xi, {
8183
8183
  "max-height": "160px",
8184
8184
  offset: [-18, 4],
8185
8185
  class: Ke(d.$style["settings-menu"])
@@ -8247,7 +8247,7 @@ const jw = /* @__PURE__ */ Fe($w, [["render", Uw]]), Gw = /* @__PURE__ */ Pt({
8247
8247
  styleFn: Function
8248
8248
  },
8249
8249
  setup(e, { slots: n }) {
8250
- const { proxy: { $q: t } } = Ye(), r = co(xi, dn);
8250
+ const { proxy: { $q: t } } = Ye(), r = co(_i, dn);
8251
8251
  if (r === dn)
8252
8252
  return console.error("QPage needs to be a deep child of QLayout"), dn;
8253
8253
  if (co(Dv, dn) === dn)
@@ -8388,7 +8388,7 @@ const FA = /* @__PURE__ */ Fe(cx, [["render", dx], ["__scopeId", "data-v-51e4160
8388
8388
  v(),
8389
8389
  "ripple",
8390
8390
  e.ripple !== !1 && e.disable !== !0,
8391
- () => [[bi, e.ripple]]
8391
+ () => [[wi, e.ripple]]
8392
8392
  );
8393
8393
  };
8394
8394
  }
@@ -8446,7 +8446,7 @@ const FA = /* @__PURE__ */ Fe(cx, [["render", dx], ["__scopeId", "data-v-51e4160
8446
8446
  }, kt(n.default));
8447
8447
  }
8448
8448
  });
8449
- let oi = !1;
8449
+ let ai = !1;
8450
8450
  {
8451
8451
  const e = document.createElement("div");
8452
8452
  e.setAttribute("dir", "rtl"), Object.assign(e.style, {
@@ -8458,7 +8458,7 @@ let oi = !1;
8458
8458
  Object.assign(n.style, {
8459
8459
  width: "1000px",
8460
8460
  height: "1px"
8461
- }), document.body.appendChild(e), e.appendChild(n), e.scrollLeft = -1e3, oi = e.scrollLeft >= 0, e.remove();
8461
+ }), document.body.appendChild(e), e.appendChild(n), e.scrollLeft = -1e3, ai = e.scrollLeft >= 0, e.remove();
8462
8462
  }
8463
8463
  const sr = 1e3, px = [
8464
8464
  "start",
@@ -8490,7 +8490,7 @@ function Yu(e, n, t, r, o, a, i, s) {
8490
8490
  offsetStart: -i,
8491
8491
  offsetEnd: -s
8492
8492
  };
8493
- if (o === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = u.scrollLeft, c.scrollViewSize += u.clientWidth), c.scrollMaxSize = u.scrollWidth, a === !0 && (c.scrollStart = (oi === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = u.scrollTop, c.scrollViewSize += u.clientHeight), c.scrollMaxSize = u.scrollHeight), t !== null)
8493
+ if (o === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = u.scrollLeft, c.scrollViewSize += u.clientWidth), c.scrollMaxSize = u.scrollWidth, a === !0 && (c.scrollStart = (ai === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = u.scrollTop, c.scrollViewSize += u.clientHeight), c.scrollMaxSize = u.scrollHeight), t !== null)
8494
8494
  for (let d = t.previousElementSibling; d !== null; d = d.previousElementSibling)
8495
8495
  d.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetStart += d[l]);
8496
8496
  if (r !== null)
@@ -8503,7 +8503,7 @@ function Yu(e, n, t, r, o, a, i, s) {
8503
8503
  return c;
8504
8504
  }
8505
8505
  function dh(e, n, t, r) {
8506
- n === "end" && (n = (e === window ? document.body : e)[t === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? t === !0 ? (r === !0 && (n = (oi === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - n), window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n) : t === !0 ? (r === !0 && (n = (oi === !0 ? e.scrollWidth - e.offsetWidth : 0) - n), e.scrollLeft = n) : e.scrollTop = n;
8506
+ n === "end" && (n = (e === window ? document.body : e)[t === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? t === !0 ? (r === !0 && (n = (ai === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - n), window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n) : t === !0 ? (r === !0 && (n = (ai === !0 ? e.scrollWidth - e.offsetWidth : 0) - n), e.scrollLeft = n) : e.scrollTop = n;
8507
8507
  }
8508
8508
  function Wa(e, n, t, r) {
8509
8509
  if (t >= r)
@@ -8946,7 +8946,7 @@ const sd = Ge({
8946
8946
  const Ie = e[Se];
8947
8947
  Ie !== void 0 && (H[Se] = Ie);
8948
8948
  }), H;
8949
- }), ae = k(() => e.optionsDark === null ? O.isDark.value : e.optionsDark), le = k(() => ri(N.value)), se = k(() => {
8949
+ }), ae = k(() => e.optionsDark === null ? O.isDark.value : e.optionsDark), le = k(() => oi(N.value)), se = k(() => {
8950
8950
  let H = "q-field__input q-placeholder col";
8951
8951
  return e.hideSelected === !0 || N.value.length === 0 ? [H, e.inputClass] : (H += " q-field__input--padding", e.inputClass === void 0 ? H : [H, e.inputClass]);
8952
8952
  }), de = k(
@@ -9313,7 +9313,7 @@ const sd = Ge({
9313
9313
  );
9314
9314
  }
9315
9315
  function rt() {
9316
- return T(wi, {
9316
+ return T(xi, {
9317
9317
  ref: E,
9318
9318
  class: de.value,
9319
9319
  style: e.popupContentStyle,
@@ -9489,7 +9489,7 @@ const sd = Ge({
9489
9489
  hasValue: le,
9490
9490
  showPopup: Qe,
9491
9491
  floatingLabel: k(
9492
- () => e.hideSelected !== !0 && le.value === !0 || typeof u.value == "number" || u.value.length !== 0 || ri(e.displayValue)
9492
+ () => e.hideSelected !== !0 && le.value === !0 || typeof u.value == "number" || u.value.length !== 0 || oi(e.displayValue)
9493
9493
  ),
9494
9494
  getControlChild: () => {
9495
9495
  if (O.editable.value !== !1 && (i.value === !0 || xe.value !== !0 || n["no-option"] !== void 0))
@@ -9898,7 +9898,7 @@ function Ox(e, n, t, r) {
9898
9898
  };
9899
9899
  return qn(
9900
9900
  T(b, x, m()),
9901
- [[bi, l.value]]
9901
+ [[wi, l.value]]
9902
9902
  );
9903
9903
  }
9904
9904
  return { renderTab: w, $tabs: o };
@@ -9973,7 +9973,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
9973
9973
  () => `q-tabs row no-wrap items-center q-tabs--${v.value === !0 ? "" : "not-"}scrollable q-tabs--${e.vertical === !0 ? "vertical" : "horizontal"} q-tabs__arrows--${e.outsideArrows === !0 ? "outside" : "inside"} q-tabs--mobile-with${e.mobileArrows === !0 ? "" : "out"}-arrows` + (e.dense === !0 ? " q-tabs--dense" : "") + (e.shrink === !0 ? " col-shrink" : "") + (e.stretch === !0 ? " self-stretch" : "")
9974
9974
  ), W = k(
9975
9975
  () => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + M.value + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")
9976
- ), D = k(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), B = k(() => e.vertical !== !0 && o.lang.rtl === !0), V = k(() => oi === !1 && B.value === !0);
9976
+ ), D = k(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), B = k(() => e.vertical !== !0 && o.lang.rtl === !0), V = k(() => ai === !1 && B.value === !0);
9977
9977
  me(B, N), me(() => e.modelValue, (Z) => {
9978
9978
  L({ name: Z, setCurrent: !0, skipEmit: !0 });
9979
9979
  }), me(() => e.outsideArrows, q);
@@ -10224,7 +10224,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10224
10224
  }, Xx = /* @__PURE__ */ Pt({
10225
10225
  __name: "AppSheetNew",
10226
10226
  props: {
10227
- dialogRef: {},
10227
+ modelValue: { type: Boolean, default: !1 },
10228
10228
  loading: { type: Boolean, default: !1 },
10229
10229
  title: { default: "" },
10230
10230
  tabsTitle: { default: "" },
@@ -10235,48 +10235,39 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10235
10235
  sidebarWidth: { default: "" },
10236
10236
  persistent: { type: Boolean, default: !1 }
10237
10237
  },
10238
- emits: ["update:dialogRef", "update:tabId", "close", "before-hide"],
10238
+ emits: ["update:modelValue", "update:tabId", "close", "before-hide"],
10239
10239
  setup(e, { emit: n }) {
10240
- qo((s) => ({
10241
- "92d85226": s.width
10240
+ qo((i) => ({
10241
+ f4c19a7e: i.width
10242
10242
  }));
10243
10243
  const t = e, r = n, o = Lp(), a = k({
10244
10244
  get() {
10245
- return t.dialogRef;
10246
- },
10247
- set(s) {
10248
- r("update:dialogRef", s);
10249
- }
10250
- }), i = k({
10251
- get() {
10252
- var s, u;
10253
- return (u = (s = t.tabs) == null ? void 0 : s.find((l) => l.id === t.tabId)) == null ? void 0 : u.title;
10245
+ var i, s;
10246
+ return (s = (i = t.tabs) == null ? void 0 : i.find((u) => u.id === t.tabId)) == null ? void 0 : s.title;
10254
10247
  },
10255
- set(s) {
10256
- var l, c;
10257
- const u = (c = (l = t.tabs) == null ? void 0 : l.find((d) => d.title === s)) == null ? void 0 : c.id;
10258
- r("update:tabId", u);
10248
+ set(i) {
10249
+ var u, l;
10250
+ const s = (l = (u = t.tabs) == null ? void 0 : u.find((c) => c.title === i)) == null ? void 0 : l.id;
10251
+ r("update:tabId", s);
10259
10252
  }
10260
10253
  });
10261
- return (s, u) => (Q(), Pe(Er(Pa), {
10262
- ref_key: "DialogRef",
10263
- ref: a,
10264
- "model-value": !0,
10254
+ return (i, s) => (Q(), Pe(Er(Pa), {
10255
+ "model-value": i.modelValue,
10265
10256
  position: "right",
10266
- class: Ke(s.$style["sheet-dialog"]),
10267
- persistent: s.persistent,
10257
+ class: Ke(i.$style["sheet-dialog"]),
10258
+ persistent: i.persistent,
10268
10259
  "no-shake": "",
10269
10260
  "no-esc-dismiss": "",
10270
10261
  "full-height": "",
10271
10262
  "full-width": "",
10272
- onBeforeHide: u[2] || (u[2] = (l) => r("before-hide"))
10263
+ "onUpdate:modelValue": s[2] || (s[2] = (u) => r("update:modelValue", u))
10273
10264
  }, {
10274
10265
  default: ve(() => {
10275
- var l;
10266
+ var u;
10276
10267
  return [
10277
- s.loading ? (Q(), be("div", zx, [
10268
+ i.loading ? (Q(), be("div", zx, [
10278
10269
  fe("div", Wx, [
10279
- s.loading ? (Q(), Pe(Cs, {
10270
+ i.loading ? (Q(), Pe(Cs, {
10280
10271
  key: 0,
10281
10272
  class: "loader-spinner",
10282
10273
  size: "md",
@@ -10285,15 +10276,15 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10285
10276
  })) : tt("", !0)
10286
10277
  ])
10287
10278
  ])) : (Q(), be("div", $x, [
10288
- (l = s.tabs) != null && l.length ? (Q(), be("div", {
10279
+ (u = i.tabs) != null && u.length ? (Q(), be("div", {
10289
10280
  key: 0,
10290
- class: Ke(["sidebar", { noTitle: !s.tabsTitle }]),
10291
- style: cs({ width: s.sidebarWidth })
10281
+ class: Ke(["sidebar", { noTitle: !i.tabsTitle }]),
10282
+ style: ni({ width: i.sidebarWidth })
10292
10283
  }, [
10293
- s.tabsTitle ? (Q(), be("h5", Hx, mt(s.tabsTitle), 1)) : tt("", !0),
10284
+ i.tabsTitle ? (Q(), be("h5", Hx, mt(i.tabsTitle), 1)) : tt("", !0),
10294
10285
  _e(Vx, {
10295
- modelValue: i.value,
10296
- "onUpdate:modelValue": u[0] || (u[0] = (c) => i.value = c),
10286
+ modelValue: a.value,
10287
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => a.value = l),
10297
10288
  vertical: "",
10298
10289
  align: "justify",
10299
10290
  "inline-label": "",
@@ -10303,53 +10294,53 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10303
10294
  "no-caps": ""
10304
10295
  }, {
10305
10296
  default: ve(() => [
10306
- (Q(!0), be(Ar, null, $r(s.tabs, (c) => (Q(), Pe(Nx, {
10307
- key: c.id,
10308
- class: Ke(s.$style.tab),
10309
- name: c.title,
10297
+ (Q(!0), be(Ar, null, $r(i.tabs, (l) => (Q(), Pe(Nx, {
10298
+ key: l.id,
10299
+ class: Ke(i.$style.tab),
10300
+ name: l.title,
10310
10301
  icon: "radio_button_unchecked",
10311
- label: c.title
10302
+ label: l.title
10312
10303
  }, null, 8, ["class", "name", "label"]))), 128))
10313
10304
  ]),
10314
10305
  _: 1
10315
10306
  }, 8, ["modelValue"])
10316
10307
  ], 6)) : tt("", !0),
10317
10308
  fe("div", Ux, [
10318
- s.title ? (Q(), be("div", jx, [
10309
+ i.title ? (Q(), be("div", jx, [
10319
10310
  fe("h2", {
10320
10311
  class: "ellipsis",
10321
- title: s.title
10322
- }, mt(s.title), 9, Gx),
10312
+ title: i.title
10313
+ }, mt(i.title), 9, Gx),
10323
10314
  qn(_e(St, {
10324
10315
  dense: "",
10325
10316
  flat: "",
10326
10317
  icon: "close",
10327
- onClick: u[1] || (u[1] = (c) => r("close"))
10318
+ onClick: s[1] || (s[1] = (l) => r("close"))
10328
10319
  }, null, 512), [
10329
- [ou, !s.persistent]
10320
+ [ou, !i.persistent]
10330
10321
  ])
10331
10322
  ])) : tt("", !0),
10332
- nn(s.$slots, "default", {}, void 0, !0),
10323
+ nn(i.$slots, "default", {}, void 0, !0),
10333
10324
  "actions" in Er(o) ? (Q(), be("div", Kx, [
10334
- nn(s.$slots, "actions", {}, void 0, !0)
10325
+ nn(i.$slots, "actions", {}, void 0, !0)
10335
10326
  ])) : tt("", !0)
10336
10327
  ])
10337
10328
  ]))
10338
10329
  ];
10339
10330
  }),
10340
10331
  _: 3
10341
- }, 8, ["class", "persistent"]));
10332
+ }, 8, ["model-value", "class", "persistent"]));
10342
10333
  }
10343
10334
  }), Yx = "_tab_2ayur_9", Qx = {
10344
10335
  "sheet-dialog": "_sheet-dialog_2ayur_1",
10345
10336
  tab: Yx
10346
10337
  }, Zx = {
10347
10338
  $style: Qx
10348
- }, OA = /* @__PURE__ */ Fe(Xx, [["__cssModules", Zx], ["__scopeId", "data-v-352e8f88"]]), hh = 150, Jx = Ge({
10339
+ }, OA = /* @__PURE__ */ Fe(Xx, [["__cssModules", Zx], ["__scopeId", "data-v-aee25542"]]), hh = 150, Jx = Ge({
10349
10340
  name: "QDrawer",
10350
10341
  inheritAttrs: !1,
10351
10342
  props: {
10352
- ...vi,
10343
+ ...mi,
10353
10344
  ...xn,
10354
10345
  side: {
10355
10346
  type: String,
@@ -10386,12 +10377,12 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10386
10377
  noSwipeBackdrop: Boolean
10387
10378
  },
10388
10379
  emits: [
10389
- ...mi,
10380
+ ...gi,
10390
10381
  "onLayout",
10391
10382
  "miniState"
10392
10383
  ],
10393
10384
  setup(e, { slots: n, emit: t, attrs: r }) {
10394
- const o = Ye(), { proxy: { $q: a } } = o, i = _n(e, a), { preventBodyScroll: s } = Sv(), { registerTimeout: u, removeTimeout: l } = wa(), c = co(xi, dn);
10385
+ const o = Ye(), { proxy: { $q: a } } = o, i = _n(e, a), { preventBodyScroll: s } = Sv(), { registerTimeout: u, removeTimeout: l } = wa(), c = co(_i, dn);
10395
10386
  if (c === dn)
10396
10387
  return console.error("QDrawer needs to be child of QLayout"), dn;
10397
10388
  let d, f = null, h;
@@ -10419,7 +10410,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10419
10410
  t("hide", ue);
10420
10411
  }, hh) : l();
10421
10412
  }
10422
- const { show: x, hide: _ } = gi({
10413
+ const { show: x, hide: _ } = yi({
10423
10414
  showing: g,
10424
10415
  hideOnRouteChange: w,
10425
10416
  handleShow: b,
@@ -10701,7 +10692,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10701
10692
  name: "QExpansionItem",
10702
10693
  props: {
10703
10694
  ...Xc,
10704
- ...vi,
10695
+ ...mi,
10705
10696
  ...xn,
10706
10697
  icon: String,
10707
10698
  label: String,
@@ -10728,7 +10719,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10728
10719
  headerClass: [Array, String, Object]
10729
10720
  },
10730
10721
  emits: [
10731
- ...mi,
10722
+ ...gi,
10732
10723
  "click",
10733
10724
  "afterShow",
10734
10725
  "afterHide"
@@ -10736,7 +10727,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
10736
10727
  setup(e, { slots: n, emit: t }) {
10737
10728
  const { proxy: { $q: r } } = Ye(), o = _n(e, r), a = Y(
10738
10729
  e.modelValue !== null ? e.modelValue : e.defaultOpened
10739
- ), i = Y(null), s = Jc(), { show: u, hide: l, toggle: c } = gi({ showing: a });
10730
+ ), i = Y(null), s = Jc(), { show: u, hide: l, toggle: c } = yi({ showing: a });
10740
10731
  let d, f;
10741
10732
  const h = k(
10742
10733
  () => `q-expansion-item q-item-type q-expansion-item--${a.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${e.popup === !0 ? "popup" : "standard"}`
@@ -11014,7 +11005,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
11014
11005
  ]),
11015
11006
  _: 1
11016
11007
  }, 8, ["class", "active", "to", "data-test"])), [
11017
- [bi]
11008
+ [wi]
11018
11009
  ]) : tt("", !0);
11019
11010
  };
11020
11011
  }
@@ -11194,7 +11185,7 @@ const qx = ["left", "center", "right", "justify"], Vx = Ge({
11194
11185
  ]),
11195
11186
  _: 1
11196
11187
  }, 8, ["class"])), [
11197
- [bi]
11188
+ [wi]
11198
11189
  ])
11199
11190
  ]),
11200
11191
  _: 1
@@ -11535,7 +11526,7 @@ const z_ = Ge({
11535
11526
  })
11536
11527
  ];
11537
11528
  return e.disableDropdown !== !0 && y.push(
11538
- T(wi, {
11529
+ T(xi, {
11539
11530
  ref: a,
11540
11531
  id: i.value,
11541
11532
  class: e.contentClass,
@@ -11798,7 +11789,7 @@ const z_ = Ge({
11798
11789
  });
11799
11790
  }
11800
11791
  function d() {
11801
- yi(() => {
11792
+ bi(() => {
11802
11793
  if (o.value === null) return;
11803
11794
  const h = o.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || o.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || o.value.querySelector("[autofocus], [data-autofocus]") || Array.prototype.find.call(o.value.querySelectorAll("[tabindex]"), (p) => p.tabIndex !== -1);
11804
11795
  h == null || h.focus({ preventScroll: !0 });
@@ -12045,7 +12036,7 @@ const z_ = Ge({
12045
12036
  key: 0,
12046
12037
  removable: "",
12047
12038
  tabindex: w.tabindex,
12048
- style: cs({ backgroundColor: v.chipColor }),
12039
+ style: ni({ backgroundColor: v.chipColor }),
12049
12040
  "icon-remove": "close",
12050
12041
  "text-color": "secondary",
12051
12042
  onRemove: (b) => w.removeAtIndex(w.index)
@@ -12062,7 +12053,7 @@ const z_ = Ge({
12062
12053
  ], 64);
12063
12054
  };
12064
12055
  }
12065
- }), iC = /* @__PURE__ */ Fe(aC, [["__scopeId", "data-v-2e33c030"]]), sC = { class: "modal-title" }, uC = {
12056
+ }), iC = /* @__PURE__ */ Fe(aC, [["__scopeId", "data-v-d70e00a1"]]), sC = { class: "modal-title" }, uC = {
12066
12057
  key: 0,
12067
12058
  class: "field-label"
12068
12059
  }, lC = {
@@ -12075,7 +12066,8 @@ const z_ = Ge({
12075
12066
  title: {},
12076
12067
  mode: {},
12077
12068
  fields: {},
12078
- initialData: {}
12069
+ initialData: {},
12070
+ loading: { type: Boolean }
12079
12071
  },
12080
12072
  emits: ["update:modelValue", "submit", "edit", "delete"],
12081
12073
  setup(e, { emit: n }) {
@@ -12233,27 +12225,31 @@ const z_ = Ge({
12233
12225
  class: "remove",
12234
12226
  flat: "",
12235
12227
  label: "Удалить",
12228
+ loading: h.loading,
12236
12229
  onClick: p[0] || (p[0] = (v) => r("delete"))
12237
- })) : tt("", !0),
12230
+ }, null, 8, ["loading"])) : tt("", !0),
12238
12231
  h.mode !== "view" ? (Q(), Pe(St, {
12239
12232
  key: 1,
12240
12233
  class: "confirm",
12241
12234
  flat: "",
12242
12235
  label: h.mode === "edit" ? "Сохранить" : "Создать",
12243
12236
  disable: u.value,
12237
+ loading: h.loading,
12244
12238
  onClick: l
12245
- }, null, 8, ["label", "disable"])) : (Q(), Pe(St, {
12239
+ }, null, 8, ["label", "disable", "loading"])) : (Q(), Pe(St, {
12246
12240
  key: 2,
12247
12241
  class: "confirm",
12248
12242
  flat: "",
12249
12243
  label: "Редактировать",
12244
+ disable: h.loading,
12250
12245
  onClick: p[1] || (p[1] = (v) => h.$emit("edit"))
12251
- })),
12246
+ }, null, 8, ["disable"])),
12252
12247
  qn(_e(St, {
12253
12248
  class: "cancel",
12254
12249
  flat: "",
12255
- label: "Закрыть"
12256
- }, null, 512), [
12250
+ label: "Закрыть",
12251
+ disable: h.loading
12252
+ }, null, 8, ["disable"]), [
12257
12253
  [ou]
12258
12254
  ])
12259
12255
  ]),
@@ -12266,7 +12262,7 @@ const z_ = Ge({
12266
12262
  _: 1
12267
12263
  }, 8, ["model-value"]));
12268
12264
  }
12269
- }), WA = /* @__PURE__ */ Fe(cC, [["__scopeId", "data-v-61118cdf"]]), ph = Ge({
12265
+ }), WA = /* @__PURE__ */ Fe(cC, [["__scopeId", "data-v-26f3d43f"]]), ph = Ge({
12270
12266
  name: "QTd",
12271
12267
  props: {
12272
12268
  props: Object,
@@ -13287,7 +13283,7 @@ function zC(e, n, t) {
13287
13283
  computedColspan: i
13288
13284
  };
13289
13285
  }
13290
- const zi = "q-table__bottom row items-center", Yv = {};
13286
+ const Wi = "q-table__bottom row items-center", Yv = {};
13291
13287
  Uv.forEach((e) => {
13292
13288
  Yv[e] = {};
13293
13289
  });
@@ -13730,11 +13726,11 @@ const WC = Ge({
13730
13726
  }),
13731
13727
  $e
13732
13728
  ];
13733
- return T("div", { class: zi + " q-table__bottom--nodata" }, rt);
13729
+ return T("div", { class: Wi + " q-table__bottom--nodata" }, rt);
13734
13730
  }
13735
13731
  const ee = n.bottom;
13736
13732
  if (ee !== void 0)
13737
- return T("div", { class: zi }, [ee(he.value)]);
13733
+ return T("div", { class: Wi }, [ee(he.value)]);
13738
13734
  const Ce = e.hideSelectedBanner !== !0 && M.value === !0 && V.value > 0 ? [
13739
13735
  T("div", { class: "q-table__control" }, [
13740
13736
  T("div", [
@@ -13744,10 +13740,10 @@ const WC = Ge({
13744
13740
  ] : [];
13745
13741
  if (e.hidePagination !== !0)
13746
13742
  return T("div", {
13747
- class: zi + " justify-end"
13743
+ class: Wi + " justify-end"
13748
13744
  }, Uo(Ce));
13749
13745
  if (Ce.length !== 0)
13750
- return T("div", { class: zi }, Ce);
13746
+ return T("div", { class: Wi }, Ce);
13751
13747
  }
13752
13748
  function vr(ee) {
13753
13749
  b({
@@ -14105,7 +14101,8 @@ const jC = /* @__PURE__ */ Fe($C, [["render", UC]]), GC = {
14105
14101
  fn: ve((h) => [
14106
14102
  _e(Kv, {
14107
14103
  props: h,
14108
- class: Ke({ "cursor-pointer": f.filterType, actions: f.name === "actions" })
14104
+ class: Ke({ "cursor-pointer": f.filterType, actions: f.name === "actions" }),
14105
+ style: ni(f.style)
14109
14106
  }, {
14110
14107
  default: ve(() => {
14111
14108
  var p, v;
@@ -14119,7 +14116,7 @@ const jC = /* @__PURE__ */ Fe($C, [["render", UC]]), GC = {
14119
14116
  fe("span", null, mt(f.label), 1),
14120
14117
  ["multi", "single"].includes(f.filterType) && ((p = c.columnFilters.value[f.name]) != null && p.length) ? (Q(), be("div", XC, " - " + mt(f.filterType === "multi" ? (v = c.columnFilters.value[f.name]) == null ? void 0 : v.length : 1), 1)) : tt("", !0)
14121
14118
  ], 8, KC)) : (Q(), be("div", YC, mt(f.label), 1)),
14122
- f.filterType ? (Q(), Pe(wi, {
14119
+ f.filterType ? (Q(), Pe(xi, {
14123
14120
  key: 2,
14124
14121
  "model-value": c.filterMenus.value[f.name],
14125
14122
  fit: "",
@@ -14198,13 +14195,13 @@ const jC = /* @__PURE__ */ Fe($C, [["render", UC]]), GC = {
14198
14195
  ];
14199
14196
  }),
14200
14197
  _: 2
14201
- }, 1032, ["props", "class"])
14198
+ }, 1032, ["props", "class", "style"])
14202
14199
  ])
14203
14200
  }))
14204
14201
  ]), 1032, ["selected", "rows", "columns", "selection"])
14205
14202
  ]));
14206
14203
  }
14207
- }), rk = /* @__PURE__ */ Fe(nk, [["__scopeId", "data-v-8d1cf9b0"]]), ok = {
14204
+ }), rk = /* @__PURE__ */ Fe(nk, [["__scopeId", "data-v-a1ebe3a5"]]), ok = {
14208
14205
  key: 0,
14209
14206
  class: "table-controls"
14210
14207
  }, ak = { class: "table-wrapper" }, ik = {
@@ -14284,16 +14281,16 @@ function Qv(e, n) {
14284
14281
  const { toString: uk } = Object.prototype, { getPrototypeOf: cd } = Object, { iterator: au, toStringTag: Zv } = Symbol, iu = /* @__PURE__ */ ((e) => (n) => {
14285
14282
  const t = uk.call(n);
14286
14283
  return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
14287
- })(/* @__PURE__ */ Object.create(null)), fr = (e) => (e = e.toLowerCase(), (n) => iu(n) === e), su = (e) => (n) => typeof n === e, { isArray: Oa } = Array, ai = su("undefined");
14284
+ })(/* @__PURE__ */ Object.create(null)), fr = (e) => (e = e.toLowerCase(), (n) => iu(n) === e), su = (e) => (n) => typeof n === e, { isArray: Oa } = Array, ii = su("undefined");
14288
14285
  function lk(e) {
14289
- return e !== null && !ai(e) && e.constructor !== null && !ai(e.constructor) && On(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14286
+ return e !== null && !ii(e) && e.constructor !== null && !ii(e.constructor) && On(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14290
14287
  }
14291
14288
  const Jv = fr("ArrayBuffer");
14292
14289
  function ck(e) {
14293
14290
  let n;
14294
14291
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(e) : n = e && e.buffer && Jv(e.buffer), n;
14295
14292
  }
14296
- const dk = su("string"), On = su("function"), em = su("number"), uu = (e) => e !== null && typeof e == "object", fk = (e) => e === !0 || e === !1, is = (e) => {
14293
+ const dk = su("string"), On = su("function"), em = su("number"), uu = (e) => e !== null && typeof e == "object", fk = (e) => e === !0 || e === !1, ss = (e) => {
14297
14294
  if (iu(e) !== "object")
14298
14295
  return !1;
14299
14296
  const n = cd(e);
@@ -14303,7 +14300,7 @@ const dk = su("string"), On = su("function"), em = su("number"), uu = (e) => e !
14303
14300
  return e && (typeof FormData == "function" && e instanceof FormData || On(e.append) && ((n = iu(e)) === "formdata" || // detect form-data instance
14304
14301
  n === "object" && On(e.toString) && e.toString() === "[object FormData]"));
14305
14302
  }, bk = fr("URLSearchParams"), [wk, xk, _k, Ck] = ["ReadableStream", "Request", "Response", "Headers"].map(fr), kk = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
14306
- function _i(e, n, { allOwnKeys: t = !1 } = {}) {
14303
+ function Ci(e, n, { allOwnKeys: t = !1 } = {}) {
14307
14304
  if (e === null || typeof e > "u")
14308
14305
  return;
14309
14306
  let r, o;
@@ -14326,17 +14323,17 @@ function tm(e, n) {
14326
14323
  return o;
14327
14324
  return null;
14328
14325
  }
14329
- const Eo = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nm = (e) => !ai(e) && e !== Eo;
14326
+ const Eo = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nm = (e) => !ii(e) && e !== Eo;
14330
14327
  function ic() {
14331
14328
  const { caseless: e } = nm(this) && this || {}, n = {}, t = (r, o) => {
14332
14329
  const a = e && tm(n, o) || o;
14333
- is(n[a]) && is(r) ? n[a] = ic(n[a], r) : is(r) ? n[a] = ic({}, r) : Oa(r) ? n[a] = r.slice() : n[a] = r;
14330
+ ss(n[a]) && ss(r) ? n[a] = ic(n[a], r) : ss(r) ? n[a] = ic({}, r) : Oa(r) ? n[a] = r.slice() : n[a] = r;
14334
14331
  };
14335
14332
  for (let r = 0, o = arguments.length; r < o; r++)
14336
- arguments[r] && _i(arguments[r], t);
14333
+ arguments[r] && Ci(arguments[r], t);
14337
14334
  return n;
14338
14335
  }
14339
- const Sk = (e, n, t, { allOwnKeys: r } = {}) => (_i(n, (o, a) => {
14336
+ const Sk = (e, n, t, { allOwnKeys: r } = {}) => (Ci(n, (o, a) => {
14340
14337
  t && On(o) ? e[a] = Qv(o, t) : e[a] = o;
14341
14338
  }, { allOwnKeys: r }), e), Ek = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Rk = (e, n, t, r) => {
14342
14339
  e.prototype = Object.create(n.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
@@ -14385,7 +14382,7 @@ const Sk = (e, n, t, { allOwnKeys: r } = {}) => (_i(n, (o, a) => {
14385
14382
  }
14386
14383
  ), xh = (({ hasOwnProperty: e }) => (n, t) => e.call(n, t))(Object.prototype), Ok = fr("RegExp"), rm = (e, n) => {
14387
14384
  const t = Object.getOwnPropertyDescriptors(e), r = {};
14388
- _i(t, (o, a) => {
14385
+ Ci(t, (o, a) => {
14389
14386
  let i;
14390
14387
  (i = n(o, a, e)) !== !1 && (r[a] = i || o);
14391
14388
  }), Object.defineProperties(e, r);
@@ -14424,9 +14421,9 @@ const Wk = (e) => {
14424
14421
  if (!("toJSON" in r)) {
14425
14422
  n[o] = r;
14426
14423
  const a = Oa(r) ? [] : {};
14427
- return _i(r, (i, s) => {
14424
+ return Ci(r, (i, s) => {
14428
14425
  const u = t(i, o + 1);
14429
- !ai(u) && (a[s] = u);
14426
+ !ii(u) && (a[s] = u);
14430
14427
  }), n[o] = void 0, a;
14431
14428
  }
14432
14429
  }
@@ -14450,12 +14447,12 @@ const Wk = (e) => {
14450
14447
  isNumber: em,
14451
14448
  isBoolean: fk,
14452
14449
  isObject: uu,
14453
- isPlainObject: is,
14450
+ isPlainObject: ss,
14454
14451
  isReadableStream: wk,
14455
14452
  isRequest: xk,
14456
14453
  isResponse: _k,
14457
14454
  isHeaders: Ck,
14458
- isUndefined: ai,
14455
+ isUndefined: ii,
14459
14456
  isDate: hk,
14460
14457
  isFile: pk,
14461
14458
  isBlob: vk,
@@ -14465,7 +14462,7 @@ const Wk = (e) => {
14465
14462
  isURLSearchParams: bk,
14466
14463
  isTypedArray: Dk,
14467
14464
  isFileList: mk,
14468
- forEach: _i,
14465
+ forEach: Ci,
14469
14466
  merge: ic,
14470
14467
  extend: Sk,
14471
14468
  trim: kk,
@@ -14797,7 +14794,7 @@ function u3(e, n, t) {
14797
14794
  }
14798
14795
  return (t || JSON.stringify)(e);
14799
14796
  }
14800
- const Ci = {
14797
+ const ki = {
14801
14798
  transitional: cm,
14802
14799
  adapter: ["xhr", "http", "fetch"],
14803
14800
  transformRequest: [function(n, t) {
@@ -14826,7 +14823,7 @@ const Ci = {
14826
14823
  return a || o ? (t.setContentType("application/json", !1), u3(n)) : n;
14827
14824
  }],
14828
14825
  transformResponse: [function(n) {
14829
- const t = this.transitional || Ci.transitional, r = t && t.forcedJSONParsing, o = this.responseType === "json";
14826
+ const t = this.transitional || ki.transitional, r = t && t.forcedJSONParsing, o = this.responseType === "json";
14830
14827
  if (te.isResponse(n) || te.isReadableStream(n))
14831
14828
  return n;
14832
14829
  if (n && te.isString(n) && (r && !this.responseType || o)) {
@@ -14864,7 +14861,7 @@ const Ci = {
14864
14861
  }
14865
14862
  };
14866
14863
  te.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
14867
- Ci.headers[e] = {};
14864
+ ki.headers[e] = {};
14868
14865
  });
14869
14866
  const l3 = te.toObjectSet([
14870
14867
  "age",
@@ -14895,8 +14892,8 @@ const l3 = te.toObjectSet([
14895
14892
  function Ha(e) {
14896
14893
  return e && String(e).trim().toLowerCase();
14897
14894
  }
14898
- function ss(e) {
14899
- return e === !1 || e == null ? e : te.isArray(e) ? e.map(ss) : String(e);
14895
+ function us(e) {
14896
+ return e === !1 || e == null ? e : te.isArray(e) ? e.map(us) : String(e);
14900
14897
  }
14901
14898
  function d3(e) {
14902
14899
  const n = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -14941,7 +14938,7 @@ let Nn = class {
14941
14938
  if (!c)
14942
14939
  throw new Error("header name must be a non-empty string");
14943
14940
  const d = te.findKey(o, c);
14944
- (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || u] = ss(s));
14941
+ (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || u] = us(s));
14945
14942
  }
14946
14943
  const i = (s, u) => te.forEach(s, (l, c) => a(l, c, u));
14947
14944
  if (te.isPlainObject(n) || n instanceof this.constructor)
@@ -15009,11 +15006,11 @@ let Nn = class {
15009
15006
  return te.forEach(this, (o, a) => {
15010
15007
  const i = te.findKey(r, a);
15011
15008
  if (i) {
15012
- t[i] = ss(o), delete t[a];
15009
+ t[i] = us(o), delete t[a];
15013
15010
  return;
15014
15011
  }
15015
15012
  const s = n ? h3(a) : String(a).trim();
15016
- s !== a && delete t[a], t[s] = ss(o), r[s] = !0;
15013
+ s !== a && delete t[a], t[s] = us(o), r[s] = !0;
15017
15014
  }), this;
15018
15015
  }
15019
15016
  concat(...n) {
@@ -15068,7 +15065,7 @@ te.reduceDescriptors(Nn.prototype, ({ value: e }, n) => {
15068
15065
  });
15069
15066
  te.freezeMethods(Nn);
15070
15067
  function el(e, n) {
15071
- const t = this || Ci, r = n || t, o = Nn.from(r.headers);
15068
+ const t = this || ki, r = n || t, o = Nn.from(r.headers);
15072
15069
  let a = r.data;
15073
15070
  return te.forEach(e, function(s) {
15074
15071
  a = s.call(t, a, o.normalize(), n ? n.status : void 0);
@@ -15595,7 +15592,7 @@ function Mh(e) {
15595
15592
  return tl(e), e.headers = Nn.from(e.headers), e.data = el.call(
15596
15593
  e,
15597
15594
  e.transformRequest
15598
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ym.getAdapter(e.adapter || Ci.adapter)(e).then(function(r) {
15595
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ym.getAdapter(e.adapter || ki.adapter)(e).then(function(r) {
15599
15596
  return tl(e), r.data = el.call(
15600
15597
  e,
15601
15598
  e.transformResponse,
@@ -15654,10 +15651,10 @@ function P3(e, n, t) {
15654
15651
  throw new ut("Unknown option " + a, ut.ERR_BAD_OPTION);
15655
15652
  }
15656
15653
  }
15657
- const us = {
15654
+ const ls = {
15658
15655
  assertOptions: P3,
15659
15656
  validators: du
15660
- }, mr = us.validators;
15657
+ }, mr = ls.validators;
15661
15658
  let Fo = class {
15662
15659
  constructor(n) {
15663
15660
  this.defaults = n || {}, this.interceptors = {
@@ -15693,16 +15690,16 @@ let Fo = class {
15693
15690
  _request(n, t) {
15694
15691
  typeof n == "string" ? (t = t || {}, t.url = n) : t = n || {}, t = No(this.defaults, t);
15695
15692
  const { transitional: r, paramsSerializer: o, headers: a } = t;
15696
- r !== void 0 && us.assertOptions(r, {
15693
+ r !== void 0 && ls.assertOptions(r, {
15697
15694
  silentJSONParsing: mr.transitional(mr.boolean),
15698
15695
  forcedJSONParsing: mr.transitional(mr.boolean),
15699
15696
  clarifyTimeoutError: mr.transitional(mr.boolean)
15700
15697
  }, !1), o != null && (te.isFunction(o) ? t.paramsSerializer = {
15701
15698
  serialize: o
15702
- } : us.assertOptions(o, {
15699
+ } : ls.assertOptions(o, {
15703
15700
  encode: mr.function,
15704
15701
  serialize: mr.function
15705
- }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), us.assertOptions(t, {
15702
+ }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), ls.assertOptions(t, {
15706
15703
  baseUrl: mr.spelling("baseURL"),
15707
15704
  withXsrfToken: mr.spelling("withXSRFToken")
15708
15705
  }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
@@ -15937,7 +15934,7 @@ function xm(e) {
15937
15934
  return xm(No(e, o));
15938
15935
  }, t;
15939
15936
  }
15940
- const Zt = xm(Ci);
15937
+ const Zt = xm(ki);
15941
15938
  Zt.Axios = Fo;
15942
15939
  Zt.CanceledError = Na;
15943
15940
  Zt.CancelToken = B3;
@@ -16036,13 +16033,14 @@ class Zn {
16036
16033
  throw this.handleError(a), o;
16037
16034
  }
16038
16035
  }
16039
- // protected patch<T1, T2>(url: string, payload: T1, type: ApiServiceType, options?: AxiosRequestConfig): Promise<T2> {
16040
- // return axios
16041
- // .patch<T1, AxiosResponse<T2>>(apiServiceUrls[type] + url, payload, options)
16042
- // .catch((err: AxiosError) => processError401<T2>(err))
16043
- // .then(extractData)
16044
- // }
16045
- //
16036
+ async patch(n, t, r) {
16037
+ try {
16038
+ return (await this.axiosInstance.patch(n, t, r)).data;
16039
+ } catch (o) {
16040
+ const a = o;
16041
+ throw this.handleError(a), o;
16042
+ }
16043
+ }
16046
16044
  async put(n, t, r) {
16047
16045
  try {
16048
16046
  return (await this.axiosInstance.put(n, t, r)).data;
@@ -16428,8 +16426,32 @@ class j3 extends Zn {
16428
16426
  async deleteUser(n) {
16429
16427
  return await this.delete(`/admin/users/${n}`);
16430
16428
  }
16431
- getRoles(n) {
16432
- return this.get("/search/roles", { params: n });
16429
+ async getRoles(n) {
16430
+ return await this.get("/search/roles", { params: n });
16431
+ }
16432
+ async getPositions(n) {
16433
+ return await this.get("/search/positions", { params: n });
16434
+ }
16435
+ async createPosition(n) {
16436
+ return await this.post("/admin/positions", n);
16437
+ }
16438
+ async editPosition(n, t) {
16439
+ return await this.put(`/admin/positions/${n}`, t);
16440
+ }
16441
+ async deletePosition(n) {
16442
+ return await this.delete(`/admin/positions/${n}`);
16443
+ }
16444
+ async getTeams(n) {
16445
+ return await this.get("/search/teams", { params: n });
16446
+ }
16447
+ async createTeam(n) {
16448
+ return await this.post("/teams", n);
16449
+ }
16450
+ async editTeam(n, t) {
16451
+ return await this.patch(`/teams/${n}`, t);
16452
+ }
16453
+ async deleteTeam(n) {
16454
+ return await this.delete(`/teams/${n}`);
16433
16455
  }
16434
16456
  }
16435
16457
  let cl;
@@ -16828,7 +16850,7 @@ function ko(e, n) {
16828
16850
  }
16829
16851
  return { newShape: t, keptDims: r };
16830
16852
  }
16831
- function ii(e, n) {
16853
+ function si(e, n) {
16832
16854
  var t = null;
16833
16855
  if (e == null || e === "float32") t = new Float32Array(n);
16834
16856
  else if (e === "int32") t = new Int32Array(n);
@@ -16886,8 +16908,8 @@ function uS(e) {
16886
16908
  function lS(e) {
16887
16909
  return typeof e == "number";
16888
16910
  }
16889
- function ki(e) {
16890
- return Array.isArray(e) ? ki(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : lS(e) ? "float32" : hd(e) ? "string" : uS(e) ? "bool" : "float32";
16911
+ function Si(e) {
16912
+ return Array.isArray(e) ? Si(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : lS(e) ? "float32" : hd(e) ? "string" : uS(e) ? "bool" : "float32";
16891
16913
  }
16892
16914
  function vc(e) {
16893
16915
  return !!(e && e.constructor && e.call && e.apply);
@@ -16938,10 +16960,10 @@ function Oh(e, n) {
16938
16960
  }(0, e, n);
16939
16961
  }
16940
16962
  function Am(e, n) {
16941
- for (var t = Si(e, n), r = 0; r < t.length; r++) t[r] = 1;
16963
+ for (var t = Ei(e, n), r = 0; r < t.length; r++) t[r] = 1;
16942
16964
  return t;
16943
16965
  }
16944
- function Si(e, n) {
16966
+ function Ei(e, n) {
16945
16967
  if (n == null || n === "float32" || n === "complex64") return new Float32Array(e);
16946
16968
  if (n === "int32") return new Int32Array(e);
16947
16969
  if (n === "bool") return new Uint8Array(e);
@@ -17069,7 +17091,7 @@ function Ga(e) {
17069
17091
  for (var n = [], t = 0; t < e.length; t += 2) n.push([e[t], e[t + 1]]);
17070
17092
  return n;
17071
17093
  }
17072
- var si = function() {
17094
+ var ui = function() {
17073
17095
  function e(n, t, r) {
17074
17096
  var o = this;
17075
17097
  if (this.dtype = t, this.shape = n.slice(), this.size = Be(n), r != null) {
@@ -17837,7 +17859,7 @@ var gl, Vh = function() {
17837
17859
  u != null && (o = u.gradFunc), o != null && (s.gradient = function(l) {
17838
17860
  return l = l.map(function(c, d) {
17839
17861
  if (c == null) {
17840
- var f = r[d], h = Si(f.size, f.dtype);
17862
+ var f = r[d], h = Ei(f.size, f.dtype);
17841
17863
  return i.makeTensor(h, f.shape, f.dtype);
17842
17864
  }
17843
17865
  return c;
@@ -18060,7 +18082,7 @@ Or.registerFlag("DEBUG", function() {
18060
18082
  }), Or.registerFlag("IS_TEST", function() {
18061
18083
  return !1;
18062
18084
  });
18063
- var ui, jn, $n, _o = {}, yl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
18085
+ var li, jn, $n, _o = {}, yl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
18064
18086
  function yS(e, n) {
18065
18087
  _o[e] = n;
18066
18088
  }
@@ -18086,7 +18108,7 @@ function Ja(e) {
18086
18108
  var n = Be(e);
18087
18109
  return pc(Math.ceil(n / 4));
18088
18110
  }
18089
- function Ei(e, n) {
18111
+ function Ri(e, n) {
18090
18112
  return [Math.max(1, Math.ceil(n / 2)), Math.max(1, Math.ceil(e / 2))];
18091
18113
  }
18092
18114
  function pd(e, n) {
@@ -18102,7 +18124,7 @@ function Ne(e, n, t) {
18102
18124
  }
18103
18125
  (function(e) {
18104
18126
  e[e.DENSE = 0] = "DENSE", e[e.SHARED_BATCH = 1] = "SHARED_BATCH";
18105
- })(ui || (ui = {})), function(e) {
18127
+ })(li || (li = {})), function(e) {
18106
18128
  e[e.RENDER = 0] = "RENDER", e[e.UPLOAD = 1] = "UPLOAD", e[e.PIXELS = 2] = "PIXELS", e[e.DOWNLOAD = 3] = "DOWNLOAD";
18107
18129
  }(jn || (jn = {})), function(e) {
18108
18130
  e[e.UNPACKED_FLOAT16 = 0] = "UNPACKED_FLOAT16", e[e.UNPACKED_FLOAT32 = 1] = "UNPACKED_FLOAT32", e[e.PACKED_4X1_UNSIGNED_BYTE = 2] = "PACKED_4X1_UNSIGNED_BYTE", e[e.PACKED_2X2_FLOAT32 = 3] = "PACKED_2X2_FLOAT32", e[e.PACKED_2X2_FLOAT16 = 4] = "PACKED_2X2_FLOAT16";
@@ -18131,7 +18153,7 @@ function _S(e, n) {
18131
18153
  return "Unknown error code " + n;
18132
18154
  }
18133
18155
  }
18134
- function Wi(e, n, t) {
18156
+ function $i(e, n, t) {
18135
18157
  return Ur(e, n, function() {
18136
18158
  return e.getExtension(t);
18137
18159
  }, 'Extension "' + t + '" not supported on this browser.');
@@ -18271,7 +18293,7 @@ function Wh(e, n, t) {
18271
18293
  return e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, null, 0);
18272
18294
  });
18273
18295
  }
18274
- function $i(e) {
18296
+ function Hi(e) {
18275
18297
  var n = e.checkFramebufferStatus(e.FRAMEBUFFER);
18276
18298
  if (n !== e.FRAMEBUFFER_COMPLETE) throw new Error("Error binding framebuffer: " + NS(e, n));
18277
18299
  }
@@ -18336,16 +18358,16 @@ function qS(e, n) {
18336
18358
  }
18337
18359
  return pc(a);
18338
18360
  }
18339
- function Hi(e) {
18361
+ function Ui(e) {
18340
18362
  return e % 2 == 0;
18341
18363
  }
18342
- function Ui(e, n) {
18364
+ function ji(e, n) {
18343
18365
  if (pn(e = e.slice(-2), n = n.slice(-2)) || !e.length || !n.length || e[0] === 0 || e[1] === 0 || n[0] === 0 || n[1] === 0) return !0;
18344
18366
  if (e.length !== n.length) {
18345
18367
  var t = e.slice(-1)[0], r = n.slice(-1)[0];
18346
- if (t === r || Hi(t) && Hi(r) && (e[0] === 1 || n[0] === 1)) return !0;
18368
+ if (t === r || Ui(t) && Ui(r) && (e[0] === 1 || n[0] === 1)) return !0;
18347
18369
  }
18348
- return e[1] === n[1] && Hi(e[0]) && Hi(n[0]);
18370
+ return e[1] === n[1] && Ui(e[0]) && Ui(n[0]);
18349
18371
  }
18350
18372
  function VS(e) {
18351
18373
  if (bl == null) {
@@ -18457,7 +18479,7 @@ function Hh(e, n, t, r) {
18457
18479
  }
18458
18480
  function A(e, n, t, r) {
18459
18481
  if (r === void 0 && (r = "numeric"), e instanceof $t) return Hh(r, e.dtype, n, t), e;
18460
- var o = ki(e);
18482
+ var o = Si(e);
18461
18483
  if (o !== "string" && ["bool", "int32", "float32"].indexOf(r) >= 0 && (o = r), Hh(r, o, n, t), e == null || !Cr(e) && !Array.isArray(e) && typeof e != "number" && typeof e != "boolean" && typeof e != "string") {
18462
18484
  var a = e == null ? "null" : e.constructor.name;
18463
18485
  throw new Error("Argument '" + n + "' passed to '" + t + "' must be a Tensor or TensorLike, but got '" + a + "'");
@@ -18627,7 +18649,7 @@ function wn(e, n, t) {
18627
18649
  return vo(e, n, po(e, t), t);
18628
18650
  }
18629
18651
  function vo(e, n, t, r) {
18630
- if (r == null && (r = ki(e)), r === "complex64") throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
18652
+ if (r == null && (r = Si(e)), r === "complex64") throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
18631
18653
  if (!Cr(e) && !Array.isArray(e) && typeof e != "number" && typeof e != "boolean" && typeof e != "string") throw new Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");
18632
18654
  if (n != null) {
18633
18655
  Dm(n);
@@ -18706,7 +18728,7 @@ function Vt(e, n) {
18706
18728
  var t = Vt(e, "float32"), r = Vt(e, "float32");
18707
18729
  return yn(t, r);
18708
18730
  }
18709
- var o = Si(Be(e), n);
18731
+ var o = Ei(Be(e), n);
18710
18732
  return U.makeTensor(o, e, n);
18711
18733
  }
18712
18734
  function Sr(e, n, t) {
@@ -18723,7 +18745,7 @@ function ZS(e, n, t) {
18723
18745
  function Ps(e, n, t, r) {
18724
18746
  if (t === void 0 && (t = 1), r === void 0 && (r = "float32"), t === 0) throw new Error("Cannot have a step of zero");
18725
18747
  if (e === n || e < n && t < 0 || n < e && t > 1) return Vt([0], r);
18726
- var o = Si(Math.abs(Math.ceil((n - e) / t)), r);
18748
+ var o = Ei(Math.abs(Math.ceil((n - e) / t)), r);
18727
18749
  n < e && t === 1 && (t = -1), o[0] = e;
18728
18750
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + t;
18729
18751
  return en(o, r);
@@ -19114,7 +19136,7 @@ var hu = Co.alea, yd = function() {
19114
19136
  }, e;
19115
19137
  }();
19116
19138
  function ot(e, n, t) {
19117
- return n === void 0 && (n = "float32"), n = n || "float32", Dm(e), new si(e, n, t);
19139
+ return n === void 0 && (n = "float32"), n = n || "float32", Dm(e), new ui(e, n, t);
19118
19140
  }
19119
19141
  function d4(e, n) {
19120
19142
  n === void 0 && (n = !1), console.log(e.toString(n));
@@ -19412,7 +19434,7 @@ var qm = z({ batchToSpaceND_: function(e, n, t) {
19412
19434
  return o = f.sent(), [4, r.data()];
19413
19435
  case 2:
19414
19436
  for (a = f.sent(), i = new Set(a), s = 0, c = 0; c < o.length; c++) i.has(o[c]) || s++;
19415
- for (u = new si([s], t.dtype), l = new si([s], "int32"), c = 0, d = 0; c < o.length; c++) i.has(o[c]) || (u.values[d] = o[c], l.values[d] = c, d++);
19437
+ for (u = new ui([s], t.dtype), l = new ui([s], "int32"), c = 0, d = 0; c < o.length; c++) i.has(o[c]) || (u.values[d] = o[c], l.values[d] = c, d++);
19416
19438
  return [2, [u.toTensor(), l.toTensor()]];
19417
19439
  }
19418
19440
  });
@@ -19952,7 +19974,7 @@ function pt(e, n) {
19952
19974
  }
19953
19975
  return t;
19954
19976
  }
19955
- function li(e, n, t, r, o, a, i) {
19977
+ function ci(e, n, t, r, o, a, i) {
19956
19978
  i === void 0 && (i = "channelsLast");
19957
19979
  var s, u = zs(n), l = u[0], c = u[1];
19958
19980
  if (i === "channelsLast") s = [l, c, e[3], e[3]];
@@ -20109,7 +20131,7 @@ function kc(e, n) {
20109
20131
  return U.makeTensorFromDataId(e.dataId, n, e.dtype);
20110
20132
  }
20111
20133
  function eg(e, n, t) {
20112
- var r = (n - e) / (t - 1), o = Si(t, "float32");
20134
+ var r = (n - e) / (t - 1), o = Ei(t, "float32");
20113
20135
  o[0] = e;
20114
20136
  for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + r;
20115
20137
  return en(o, "float32");
@@ -20205,7 +20227,7 @@ function rg(e, n) {
20205
20227
  return o.toTensor();
20206
20228
  }
20207
20229
  function og(e, n, t, r, o) {
20208
- for (var a = n[n.length - 1], i = [e.length / a, a], s = i[0], u = i[1], l = ii(t, s * r), c = ii("int32", s * r), d = 0; d < s; d++) {
20230
+ for (var a = n[n.length - 1], i = [e.length / a, a], s = i[0], u = i[1], l = si(t, s * r), c = si("int32", s * r), d = 0; d < s; d++) {
20209
20231
  for (var f = d * u, h = e.subarray(f, f + u), p = [], v = 0; v < h.length; v++) p.push({ value: h[v], index: v });
20210
20232
  p.sort(function(y, x) {
20211
20233
  return x.value - y.value;
@@ -21632,15 +21654,15 @@ var K4 = function(e, n, t, r) {
21632
21654
  f += `
21633
21655
  if (` + l + " < " + s[u] + " && " + l + " >= " + s[u - 1] + `) {
21634
21656
  return getChannel(
21635
- getT` + u + "(" + ji(i, l, h) + `),
21636
- vec2(` + ji(c, l, h) + `));
21657
+ getT` + u + "(" + Gi(i, l, h) + `),
21658
+ vec2(` + Gi(c, l, h) + `));
21637
21659
  }`;
21638
21660
  }
21639
21661
  var p = s.length, v = s[s.length - 1];
21640
21662
  f += `
21641
21663
  return getChannel(
21642
- getT` + p + "(" + ji(i, l, v) + `),
21643
- vec2(` + ji(c, l, v) + "));", this.userCode = `
21664
+ getT` + p + "(" + Gi(i, l, v) + `),
21665
+ vec2(` + Gi(c, l, v) + "));", this.userCode = `
21644
21666
  float getValue(` + i.map(function(m) {
21645
21667
  return "int " + m;
21646
21668
  }) + `) {
@@ -21670,7 +21692,7 @@ var K4 = function(e, n, t, r) {
21670
21692
  }
21671
21693
  `;
21672
21694
  };
21673
- function ji(e, n, t) {
21695
+ function Gi(e, n, t) {
21674
21696
  var r = e.indexOf(n);
21675
21697
  return e.map(function(o, a) {
21676
21698
  return a === r ? o + " - " + t : o;
@@ -22537,7 +22559,7 @@ function Jh(e, n) {
22537
22559
  throw Error("Cumulative sum for rank " + e + " is not yet supported");
22538
22560
  }
22539
22561
  var vE = function(e) {
22540
- this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outPackingScheme = ui.DENSE;
22562
+ this.variableNames = ["A"], this.packedInputs = !1, this.packedOutput = !0, this.outPackingScheme = li.DENSE;
22541
22563
  var n = Ja(e), t = En();
22542
22564
  this.outputShape = e, this.userCode = `
22543
22565
  ivec3 outCoordsFromFlatIndex(int index) {
@@ -22562,7 +22584,7 @@ var vE = function(e) {
22562
22584
  }
22563
22585
  `;
22564
22586
  }, mE = function(e) {
22565
- this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outPackingScheme = ui.DENSE;
22587
+ this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outPackingScheme = li.DENSE;
22566
22588
  var n = Ja(e), t = En();
22567
22589
  this.outputShape = e, this.userCode = `
22568
22590
  ivec3 outCoordsFromFlatIndex(int index) {
@@ -22849,7 +22871,7 @@ function TE(e, n) {
22849
22871
  function AE(e, n) {
22850
22872
  return TS(e, n, new Uint16Array([0, 1, 2, 2, 1, 3]));
22851
22873
  }
22852
- function Ri(e, n, t, r, o, a, i) {
22874
+ function Ii(e, n, t, r, o, a, i) {
22853
22875
  DS(t, r);
22854
22876
  var s = AS(e, n), u = e.TEXTURE_2D;
22855
22877
  return Ne(e, n, function() {
@@ -22870,23 +22892,23 @@ function Ri(e, n, t, r, o, a, i) {
22870
22892
  }
22871
22893
  function DE(e, n, t, r, o) {
22872
22894
  var a = fu(t, r);
22873
- return Ri(e, n, a[0], a[1], o.internalFormatFloat, o.textureFormatFloat, e.FLOAT);
22895
+ return Ii(e, n, a[0], a[1], o.internalFormatFloat, o.textureFormatFloat, e.FLOAT);
22874
22896
  }
22875
22897
  function ME(e, n, t, r, o) {
22876
22898
  var a = fu(t, r);
22877
- return Ri(e, n, a[0], a[1], o.internalFormatHalfFloat, o.textureFormatFloat, o.textureTypeHalfFloat);
22899
+ return Ii(e, n, a[0], a[1], o.internalFormatHalfFloat, o.textureFormatFloat, o.textureTypeHalfFloat);
22878
22900
  }
22879
22901
  function FE(e, n, t, r, o) {
22880
22902
  var a = fu(t, r);
22881
- return Ri(e, n, a[0], a[1], e.RGBA, e.RGBA, e.UNSIGNED_BYTE);
22903
+ return Ii(e, n, a[0], a[1], e.RGBA, e.RGBA, e.UNSIGNED_BYTE);
22882
22904
  }
22883
22905
  function PE(e, n, t, r, o) {
22884
- var a = Ei(t, r);
22885
- return Ri(e, n, a[0], a[1], o.internalFormatPackedFloat, e.RGBA, e.FLOAT);
22906
+ var a = Ri(t, r);
22907
+ return Ii(e, n, a[0], a[1], o.internalFormatPackedFloat, e.RGBA, e.FLOAT);
22886
22908
  }
22887
22909
  function BE(e, n, t, r, o) {
22888
- var a = Ei(t, r);
22889
- return Ri(e, n, a[0], a[1], o.internalFormatPackedHalfFloat, e.RGBA, o.textureTypeHalfFloat);
22910
+ var a = Ri(t, r);
22911
+ return Ii(e, n, a[0], a[1], o.internalFormatPackedHalfFloat, e.RGBA, o.textureTypeHalfFloat);
22890
22912
  }
22891
22913
  function OE(e, n, t, r) {
22892
22914
  return Ne(e, n, function() {
@@ -22940,7 +22962,7 @@ function zE(e, n, t, r, o) {
22940
22962
  }
22941
22963
  function WE(e, n, t, r, o, a, i, s) {
22942
22964
  var u = e, l = new Float32Array(function(c, d) {
22943
- var f = Ei(c, d);
22965
+ var f = Ri(c, d);
22944
22966
  return f[0] * f[1] * 4;
22945
22967
  }(a, i));
22946
22968
  return u.bindBuffer(u.PIXEL_PACK_BUFFER, n), u.getBufferSubData(u.PIXEL_PACK_BUFFER, 0, l), u.bindBuffer(u.PIXEL_PACK_BUFFER, null), l;
@@ -22958,9 +22980,9 @@ var HE = function() {
22958
22980
  n != null ? (this.gl = n, yS(t, n)) : this.gl = Dr(t);
22959
22981
  var r = "WEBGL_color_buffer_float";
22960
22982
  if (ie().getNumber("WEBGL_VERSION") === 1) {
22961
- if (this.textureFloatExtension = Wi(this.gl, this.debug, "OES_texture_float"), or(this.gl, "OES_texture_half_float")) this.textureHalfFloatExtension = Wi(this.gl, this.debug, "OES_texture_half_float");
22983
+ if (this.textureFloatExtension = $i(this.gl, this.debug, "OES_texture_float"), or(this.gl, "OES_texture_half_float")) this.textureHalfFloatExtension = $i(this.gl, this.debug, "OES_texture_half_float");
22962
22984
  else if (ie().get("WEBGL_FORCE_F16_TEXTURES")) throw new Error("GL context does not support half float textures, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");
22963
- if (this.colorBufferFloatExtension = this.gl.getExtension(r), or(this.gl, "EXT_color_buffer_half_float")) this.colorBufferHalfFloatExtension = Wi(this.gl, this.debug, "EXT_color_buffer_half_float");
22985
+ if (this.colorBufferFloatExtension = this.gl.getExtension(r), or(this.gl, "EXT_color_buffer_half_float")) this.colorBufferHalfFloatExtension = $i(this.gl, this.debug, "EXT_color_buffer_half_float");
22964
22986
  else if (ie().get("WEBGL_FORCE_F16_TEXTURES")) throw new Error("GL context does not support color renderable half floats, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");
22965
22987
  } else if (r = "EXT_color_buffer_float", or(this.gl, r)) this.colorBufferFloatExtension = this.gl.getExtension(r);
22966
22988
  else {
@@ -23077,14 +23099,14 @@ var HE = function() {
23077
23099
  this.setOutputMatrixTextureDriver(n, r, t);
23078
23100
  }, e.prototype.setOutputPackedMatrixTexture = function(n, t, r) {
23079
23101
  this.throwIfDisposed();
23080
- var o = Ei(t, r), a = o[0], i = o[1];
23102
+ var o = Ri(t, r), a = o[0], i = o[1];
23081
23103
  this.setOutputMatrixTextureDriver(n, a, i);
23082
23104
  }, e.prototype.setOutputMatrixWriteRegion = function(n, t, r, o) {
23083
23105
  this.setOutputMatrixWriteRegionDriver(r, n, o, t);
23084
23106
  }, e.prototype.setOutputPackedMatrixWriteRegion = function(n, t, r, o) {
23085
23107
  throw new Error("setOutputPackedMatrixWriteRegion not implemented.");
23086
23108
  }, e.prototype.debugValidate = function() {
23087
- this.program != null && xl(this.gl, this.debug, this.program), $i(this.gl);
23109
+ this.program != null && xl(this.gl, this.debug, this.program), Hi(this.gl);
23088
23110
  }, e.prototype.executeProgram = function() {
23089
23111
  this.throwIfDisposed(), this.throwIfNoProgram();
23090
23112
  var n = this.gl;
@@ -23097,7 +23119,7 @@ var HE = function() {
23097
23119
  return n.gl.finish();
23098
23120
  });
23099
23121
  }, e.prototype.getQueryTimerExtension = function() {
23100
- return this.disjointQueryTimerExtension == null && (this.disjointQueryTimerExtension = Wi(this.gl, this.debug, ie().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION") === 2 ? "EXT_disjoint_timer_query_webgl2" : "EXT_disjoint_timer_query")), this.disjointQueryTimerExtension;
23122
+ return this.disjointQueryTimerExtension == null && (this.disjointQueryTimerExtension = $i(this.gl, this.debug, ie().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION") === 2 ? "EXT_disjoint_timer_query_webgl2" : "EXT_disjoint_timer_query")), this.disjointQueryTimerExtension;
23101
23123
  }, e.prototype.getQueryTimerExtensionWebGL2 = function() {
23102
23124
  return this.getQueryTimerExtension();
23103
23125
  }, e.prototype.getQueryTimerExtensionWebGL1 = function() {
@@ -23171,9 +23193,9 @@ var HE = function() {
23171
23193
  return r.pollItems(), r.itemsToPoll.length === 0;
23172
23194
  });
23173
23195
  }, e.prototype.bindTextureToFrameBuffer = function(n) {
23174
- this.throwIfDisposed(), _l(this.gl, this.debug, n, this.framebuffer), this.debug && $i(this.gl);
23196
+ this.throwIfDisposed(), _l(this.gl, this.debug, n, this.framebuffer), this.debug && Hi(this.gl);
23175
23197
  }, e.prototype.unbindTextureToFrameBuffer = function() {
23176
- this.outputTexture != null ? (_l(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && $i(this.gl)) : Wh(this.gl, this.debug, this.framebuffer);
23198
+ this.outputTexture != null ? (_l(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && Hi(this.gl)) : Wh(this.gl, this.debug, this.framebuffer);
23177
23199
  }, e.prototype.downloadMatrixDriver = function(n, t) {
23178
23200
  this.bindTextureToFrameBuffer(n);
23179
23201
  var r = t();
@@ -23181,7 +23203,7 @@ var HE = function() {
23181
23203
  }, e.prototype.setOutputMatrixTextureDriver = function(n, t, r) {
23182
23204
  this.throwIfDisposed();
23183
23205
  var o = this.gl;
23184
- _l(o, this.debug, n, this.framebuffer), this.debug && $i(o), this.outputTexture = n, Ne(o, this.debug, function() {
23206
+ _l(o, this.debug, n, this.framebuffer), this.debug && Hi(o), this.outputTexture = n, Ne(o, this.debug, function() {
23185
23207
  return o.viewport(0, 0, t, r);
23186
23208
  }), Ne(o, this.debug, function() {
23187
23209
  return o.scissor(0, 0, t, r);
@@ -23659,7 +23681,7 @@ var UE = function(e, n, t) {
23659
23681
  }
23660
23682
  `;
23661
23683
  }
23662
- }, eR = function(e, n, t) {
23684
+ }, e5 = function(e, n, t) {
23663
23685
  this.variableNames = ["x"], this.outputShape = n.map(function(u, l) {
23664
23686
  return u[0] + e[l] + u[1];
23665
23687
  });
@@ -23694,7 +23716,7 @@ var UE = function(e, n, t) {
23694
23716
  }
23695
23717
  }
23696
23718
  `;
23697
- }, tR = function(e, n, t) {
23719
+ }, t5 = function(e, n, t) {
23698
23720
  this.variableNames = ["x"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n.map(function(m, g) {
23699
23721
  return m[0] + e[g] + m[1];
23700
23722
  });
@@ -24057,7 +24079,7 @@ var UE = function(e, n, t) {
24057
24079
  }
24058
24080
  `;
24059
24081
  }
24060
- }, nR = function(e, n) {
24082
+ }, n5 = function(e, n) {
24061
24083
  this.variableNames = ["x"];
24062
24084
  var t = e.windowSize, r = e.batchSize, o = e.inSize, a = Math.ceil(o / t);
24063
24085
  this.outputShape = [r, a];
@@ -24154,7 +24176,7 @@ var UE = function(e, n, t) {
24154
24176
  setOutput(` + u + `);
24155
24177
  }
24156
24178
  `;
24157
- }, rR = function(e, n) {
24179
+ }, r5 = function(e, n) {
24158
24180
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = e;
24159
24181
  for (var t = "", r = 0; r < 4; r++) {
24160
24182
  var o = "thisRC = rc;";
@@ -24194,7 +24216,7 @@ var UE = function(e, n, t) {
24194
24216
  setOutput(result);
24195
24217
  }
24196
24218
  `;
24197
- }, oR = function(e, n, t) {
24219
+ }, o5 = function(e, n, t) {
24198
24220
  this.variableNames = ["dy"], this.outputShape = [], this.outputShape = n.shape;
24199
24221
  var r = n.shape, o = r[1], a = r[2], i = e.shape, s = i[1], u = i[2], l = [t && s > 1 ? o - 1 : o, t && u > 1 ? a - 1 : a], c = [t && s > 1 ? s - 1 : s, t && u > 1 ? u - 1 : u], d = l[0] / c[0], f = l[1] / c[1], h = 1 / d, p = 1 / f, v = 2 * Math.ceil(h) + 2, m = 2 * Math.ceil(p) + 2;
24200
24222
  this.userCode = `
@@ -24279,7 +24301,7 @@ var UE = function(e, n, t) {
24279
24301
  setOutput(accumulator);
24280
24302
  }
24281
24303
  `;
24282
- }, aR = function(e, n, t, r) {
24304
+ }, a5 = function(e, n, t, r) {
24283
24305
  this.variableNames = ["A"], this.outputShape = [];
24284
24306
  var o = e[0], a = e[1], i = e[2], s = e[3];
24285
24307
  this.outputShape = [o, n, t, s];
@@ -24318,7 +24340,7 @@ var UE = function(e, n, t) {
24318
24340
  setOutput(newValue);
24319
24341
  }
24320
24342
  `;
24321
- }, iR = function(e, n, t, r) {
24343
+ }, i5 = function(e, n, t, r) {
24322
24344
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = [];
24323
24345
  var o = e[0], a = e[1], i = e[2], s = e[3];
24324
24346
  this.outputShape = [o, n, t, s];
@@ -24401,7 +24423,7 @@ var UE = function(e, n, t) {
24401
24423
  setOutput(newValue);
24402
24424
  }
24403
24425
  `;
24404
- }, sR = function(e, n, t) {
24426
+ }, s5 = function(e, n, t) {
24405
24427
  this.variableNames = ["dy"], this.outputShape = [], this.outputShape = n.shape;
24406
24428
  var r = n.shape, o = r[1], a = r[2], i = e.shape, s = i[1], u = i[2], l = [t && s > 1 ? o - 1 : o, t && u > 1 ? a - 1 : a], c = [t && s > 1 ? s - 1 : s, t && u > 1 ? u - 1 : u], d = l[0] / c[0], f = l[1] / c[1], h = 1 / d, p = 1 / f, v = 2 * Math.ceil(h) + 2, m = 2 * Math.ceil(p) + 2;
24407
24429
  this.userCode = `
@@ -24475,7 +24497,7 @@ var UE = function(e, n, t) {
24475
24497
  setOutput(accumulator);
24476
24498
  }
24477
24499
  `;
24478
- }, uR = function(e, n, t, r) {
24500
+ }, u5 = function(e, n, t, r) {
24479
24501
  this.variableNames = ["A"], this.outputShape = [];
24480
24502
  var o = e[0], a = e[1], i = e[2], s = e[3];
24481
24503
  this.outputShape = [o, n, t, s];
@@ -24504,7 +24526,7 @@ var UE = function(e, n, t) {
24504
24526
  setOutput(newValue);
24505
24527
  }
24506
24528
  `;
24507
- }, lR = function(e, n) {
24529
+ }, l5 = function(e, n) {
24508
24530
  this.variableNames = ["x"];
24509
24531
  var t = e.length;
24510
24532
  if (t > 4) throw new Error("WebGL backend: Reverse of rank-" + t + " tensor is not yet supported");
@@ -24526,7 +24548,7 @@ var UE = function(e, n, t) {
24526
24548
  setOutput(getX(` + e[0] + ` - coord - 1));
24527
24549
  }
24528
24550
  `;
24529
- }, cR = function(e, n) {
24551
+ }, c5 = function(e, n) {
24530
24552
  this.variableNames = ["x"], this.packedInputs = !0, this.packedOutput = !0;
24531
24553
  var t = e.length;
24532
24554
  if (t > 4) throw new Error("WebGL backend: Reverse of rank-" + t + " tensor is not yet supported");
@@ -24605,7 +24627,7 @@ var UE = function(e, n, t) {
24605
24627
  setOutput(mix(getDefaultValue(), sum, float(found)));
24606
24628
  }
24607
24629
  `;
24608
- }, dR = function(e, n) {
24630
+ }, d5 = function(e, n) {
24609
24631
  this.variableNames = ["x", "segmentIds"];
24610
24632
  var t = e.windowSize, r = e.batchSize, o = e.inSize, a = e.numSegments, i = a * Math.ceil(o / t);
24611
24633
  this.outputShape = [r, i];
@@ -24719,7 +24741,7 @@ var UE = function(e, n, t) {
24719
24741
  setOutput(sumValue);
24720
24742
  }
24721
24743
  `;
24722
- }, fR = function(e, n, t) {
24744
+ }, f5 = function(e, n, t) {
24723
24745
  var r, o;
24724
24746
  if (this.variableNames = ["c", "a", "b"], this.outputShape = n, t > 4) throw Error("Where for rank " + t + " is not yet supported");
24725
24747
  if (t === 1) o = "resRC", r = "resRC";
@@ -24739,7 +24761,7 @@ var UE = function(e, n, t) {
24739
24761
  }
24740
24762
  }
24741
24763
  `;
24742
- }, hR = function() {
24764
+ }, h5 = function() {
24743
24765
  function e(n) {
24744
24766
  this.variableNames = ["source"], this.outputShape = n, this.rank = n.length;
24745
24767
  var t, r = Lt(this.rank), o = "uniform int start[" + this.rank + "];", a = function(i) {
@@ -24771,7 +24793,7 @@ var UE = function(e, n, t) {
24771
24793
  t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
24772
24794
  };
24773
24795
  }, e;
24774
- }(), Al = ["x", "y", "z", "w", "u", "v"], pR = function() {
24796
+ }(), Al = ["x", "y", "z", "w", "u", "v"], p5 = function() {
24775
24797
  function e(n) {
24776
24798
  this.variableNames = ["source"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n, this.rank = n.length;
24777
24799
  var t = Lt(this.rank), r = Pn("coords", this.rank), o = Pn("sourceLoc", this.rank), a = this.rank === 1 ? "sourceLoc" : "vec2(" + o.slice(-2).join() + ")", i = "getChannel(getSource(" + o.join() + "), " + a + ")", s = `
@@ -24818,7 +24840,7 @@ var UE = function(e, n, t) {
24818
24840
  t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
24819
24841
  };
24820
24842
  }, e;
24821
- }(), vR = function(e, n, t) {
24843
+ }(), v5 = function(e, n, t) {
24822
24844
  this.variableNames = ["x"], this.outputShape = t;
24823
24845
  var r = t.length, o = Lt(t.length), a = Lt(t.length), i = "";
24824
24846
  if (r === 1) i = "coords * strides + begin";
@@ -24837,7 +24859,7 @@ var UE = function(e, n, t) {
24837
24859
  setOutput(getX(` + i + `));
24838
24860
  }
24839
24861
  `;
24840
- }, mR = function() {
24862
+ }, m5 = function() {
24841
24863
  function e(n) {
24842
24864
  this.gpgpu = n, this.numUsedTextures = 0, this.numFreeTextures = 0, this.freeTextures = {}, this.logEnabled = !1, this.usedTextures = {};
24843
24865
  }
@@ -24890,7 +24912,7 @@ function rp(e, n) {
24890
24912
  function op(e, n, t) {
24891
24913
  return e[0] + "_" + e[1] + "_" + n + "_" + t;
24892
24914
  }
24893
- var gR = function(e, n) {
24915
+ var g5 = function(e, n) {
24894
24916
  this.variableNames = ["A"];
24895
24917
  for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[r] * n[r];
24896
24918
  this.outputShape = t, this.rank = t.length;
@@ -24907,7 +24929,7 @@ var gR = function(e, n) {
24907
24929
  setOutput(getA(` + a + `));
24908
24930
  }
24909
24931
  `;
24910
- }, yR = function(e, n) {
24932
+ }, y5 = function(e, n) {
24911
24933
  this.variableNames = ["A"];
24912
24934
  for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[n[r]];
24913
24935
  this.outputShape = t, this.rank = t.length;
@@ -24923,7 +24945,7 @@ var gR = function(e, n) {
24923
24945
  setOutput(getA(` + a + `));
24924
24946
  }
24925
24947
  `;
24926
- }, bR = function(e, n) {
24948
+ }, b5 = function(e, n) {
24927
24949
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !0;
24928
24950
  for (var t = new Array(e.length), r = 0; r < t.length; r++) t[r] = e[n[r]];
24929
24951
  if (this.outputShape = t, this.rank = t.length, this.rank > 6) throw Error("Packed transpose for rank " + this.rank + " is not yet supported.");
@@ -24961,37 +24983,37 @@ var gR = function(e, n) {
24961
24983
  setOutput(y);
24962
24984
  }
24963
24985
  `;
24964
- }, pr = "if (isnan(x)) return x;", wR = "return x;", ap = "return abs(x);", cg = pr + `
24986
+ }, pr = "if (isnan(x)) return x;", w5 = "return x;", ap = "return abs(x);", cg = pr + `
24965
24987
  return (x < 0.0) ? 0.0 : x;
24966
24988
  `, dg = pr + `
24967
24989
  return (x < 0.0) ? 0.0 : min(6.0, x);
24968
- `, fg = "return (x >= 0.0) ? x : (exp(x) - 1.0);", xR = `
24990
+ `, fg = "return (x >= 0.0) ? x : (exp(x) - 1.0);", x5 = `
24969
24991
  // Stable and Attracting Fixed Point (0, 1) for Normalized Weights.
24970
24992
  // see: https://arxiv.org/abs/1706.02515
24971
24993
  float scaleAlpha = ` + Sd + `;
24972
24994
  float scale = ` + Ed + `;
24973
24995
  return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);
24974
- `, ip = "return -x;", sp = "return ceil(x);", up = "return floor(x);", lp = "return exp(x);", cp = "return exp(x) - 1.0;", _R = pr + `
24996
+ `, ip = "return -x;", sp = "return ceil(x);", up = "return floor(x);", lp = "return exp(x);", cp = "return exp(x) - 1.0;", _5 = pr + `
24975
24997
  return sin(x);
24976
- `, CR = pr + `
24998
+ `, C5 = pr + `
24977
24999
  return cos(x);
24978
- `, kR = pr + `
25000
+ `, k5 = pr + `
24979
25001
  if (abs(x) > 1.) {
24980
25002
  return NAN;
24981
25003
  }
24982
25004
  return asin(x);
24983
- `, SR = pr + `
25005
+ `, S5 = pr + `
24984
25006
  if (abs(x) > 1.) {
24985
25007
  return NAN;
24986
25008
  }
24987
25009
  return acos(x);
24988
- `, ER = pr + `
25010
+ `, E5 = pr + `
24989
25011
  return atan(x);
24990
- `, RR = pr + "return log(x + sqrt(x * x + 1.0));", IR = pr + `
25012
+ `, R5 = pr + "return log(x + sqrt(x * x + 1.0));", I5 = pr + `
24991
25013
  if (x < 1.0) return NAN;
24992
- return log(x + sqrt(x * x - 1.0));`, TR = pr + `
25014
+ return log(x + sqrt(x * x - 1.0));`, T5 = pr + `
24993
25015
  if ((x < -1.0) || (x > 1.0)) return NAN;
24994
- return (log(1.0 + x) - log(1.0 - x)) / 2.0;`, Gi = "return x;", AR = "return x;", hg = `
25016
+ return (log(1.0 + x) - log(1.0 - x)) / 2.0;`, Ki = "return x;", A5 = "return x;", hg = `
24995
25017
  vec4 result = x * vec4(greaterThanEqual(x, vec4(0.0)));
24996
25018
  bvec4 isNaN = isnan(x);
24997
25019
 
@@ -25033,7 +25055,7 @@ var gR = function(e, n) {
25033
25055
  setOutput(y);
25034
25056
  }
25035
25057
  `;
25036
- }, DR = function(e) {
25058
+ }, D5 = function(e) {
25037
25059
  this.variableNames = ["A"], this.packedInputs = !0, this.packedOutput = !1, this.outputShape = e;
25038
25060
  var n = e.length, t = Pn("rc", n), r = Lt(n), o = function(s, u) {
25039
25061
  if (s === 1) return "rc";
@@ -25048,24 +25070,24 @@ var gR = function(e, n) {
25048
25070
  setOutput(getChannel(packedInput, ` + i + `));
25049
25071
  }
25050
25072
  `;
25051
- }, Ki = {};
25052
- function Xi(e, n) {
25053
- if (n === void 0 && (n = !1), e === "linear") return n ? AR : wR;
25073
+ }, Xi = {};
25074
+ function Yi(e, n) {
25075
+ if (n === void 0 && (n = !1), e === "linear") return n ? A5 : w5;
25054
25076
  if (e === "relu") return n ? hg : cg;
25055
25077
  if (e === "elu") return n ? vg : fg;
25056
25078
  if (e === "relu6") return n ? pg : dg;
25057
25079
  if (e === "prelu") return n ? lg : ug;
25058
25080
  throw new Error("Activation " + e + " has not been implemented for the WebGL backend.");
25059
25081
  }
25060
- var MR = 600, FR = function(e) {
25082
+ var M5 = 600, F5 = function(e) {
25061
25083
  function n(t) {
25062
25084
  var r, o = e.call(this) || this;
25063
25085
  if (o.pendingRead = /* @__PURE__ */ new WeakMap(), o.pendingDisposal = /* @__PURE__ */ new WeakSet(), o.dataRefCount = /* @__PURE__ */ new WeakMap(), o.numBytesInGPU = 0, o.uploadWaitMs = 0, o.downloadWaitMs = 0, o.warnedAboutMemory = !1, o.pendingDeletes = 0, o.disposed = !1, !ie().getBool("HAS_WEBGL")) throw new Error("WebGL is not supported on this device");
25064
25086
  if (t == null) {
25065
25087
  var a = Dr(ie().getNumber("WEBGL_VERSION"));
25066
- o.binaryCache = ((r = ie().getNumber("WEBGL_VERSION")) in Ki || (Ki[r] = {}), Ki[r]), o.gpgpu = new HE(a), o.canvas = a.canvas, o.gpgpuCreatedLocally = !0;
25088
+ o.binaryCache = ((r = ie().getNumber("WEBGL_VERSION")) in Xi || (Xi[r] = {}), Xi[r]), o.gpgpu = new HE(a), o.canvas = a.canvas, o.gpgpuCreatedLocally = !0;
25067
25089
  } else o.gpgpu = t, o.binaryCache = {}, o.gpgpuCreatedLocally = !1, o.canvas = t.gl.canvas;
25068
- return o.textureManager = new mR(o.gpgpu), o.numMBBeforeWarning = ie().global.screen == null ? 1024 : ie().global.screen.height * ie().global.screen.width * window.devicePixelRatio * MR / 1024 / 1024, o.texData = new Ym(o, U), o;
25090
+ return o.textureManager = new m5(o.gpgpu), o.numMBBeforeWarning = ie().global.screen == null ? 1024 : ie().global.screen.height * ie().global.screen.width * window.devicePixelRatio * M5 / 1024 / 1024, o.texData = new Ym(o, U), o;
25069
25091
  }
25070
25092
  return hr(n, e), n.prototype.numDataIds = function() {
25071
25093
  return this.texData.numDataIds() + (this.cpuBackend ? this.cpuBackend.numDataIds() : 0) - this.pendingDeletes;
@@ -25080,7 +25102,7 @@ var MR = 600, FR = function(e) {
25080
25102
  var r = this.texData.get(t), o = r.values, a = r.dtype, i = r.complexTensors, s = r.slice, u = r.shape, l = r.isPacked;
25081
25103
  if (s != null) {
25082
25104
  var c = void 0;
25083
- c = l ? new Ka(u, Gi) : new lt(u, Gi);
25105
+ c = l ? new Ka(u, Ki) : new lt(u, Ki);
25084
25106
  var d = this.runWebGLProgram(c, [{ dataId: t, shape: u, dtype: a }], a), f = this.readSync(d.dataId);
25085
25107
  return this.disposeData(d.dataId), f;
25086
25108
  }
@@ -25097,7 +25119,7 @@ var MR = 600, FR = function(e) {
25097
25119
  if (this.pendingRead.has(t)) return r = this.pendingRead.get(t), [2, new Promise(function(S) {
25098
25120
  return r.push(S);
25099
25121
  })];
25100
- if (o = this.texData.get(t), a = o.values, i = o.shape, s = o.slice, u = o.dtype, l = o.complexTensors, c = o.isPacked, s != null) return d = void 0, d = c ? new Ka(i, Gi) : new lt(i, Gi), f = this.runWebGLProgram(d, [{ dataId: t, shape: i, dtype: u }], u), h = this.read(f.dataId), this.disposeData(f.dataId), [2, h];
25122
+ if (o = this.texData.get(t), a = o.values, i = o.shape, s = o.slice, u = o.dtype, l = o.complexTensors, c = o.isPacked, s != null) return d = void 0, d = c ? new Ka(i, Ki) : new lt(i, Ki), f = this.runWebGLProgram(d, [{ dataId: t, shape: i, dtype: u }], u), h = this.read(f.dataId), this.disposeData(f.dataId), [2, h];
25101
25123
  if (a != null) return [2, this.convertAndCacheOnCPU(t)];
25102
25124
  if (!ie().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED") && ie().getNumber("WEBGL_VERSION") === 2) throw new Error("tensor.data() with WEBGL_DOWNLOAD_FLOAT_ENABLED=false and WEBGL_VERSION=2 not yet supported.");
25103
25125
  return p = null, u !== "complex64" && ie().get("WEBGL_BUFFER_SUPPORTED") && (v = this.decode(t), m = this.texData.get(v.dataId), p = (R = this.gpgpu).createBufferFromTexture.apply(R, [m.texture].concat(Ja(i)))), this.pendingRead.set(t, []), u === "complex64" ? [3, 2] : [4, this.gpgpu.createAndWaitForFence()];
@@ -25212,7 +25234,7 @@ var MR = 600, FR = function(e) {
25212
25234
  if (Be(o) === 0) return wn([], o, t.dtype);
25213
25235
  var a = this.texData.get(t.dataId).isPacked, i = Km(t.shape, r, o);
25214
25236
  if (a || !i) {
25215
- var s = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new pR(o) : new hR(o), u = s.getCustomSetupFunc(r);
25237
+ var s = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new p5(o) : new h5(o), u = s.getCustomSetupFunc(r);
25216
25238
  return this.compileAndRun(s, [t], null, u);
25217
25239
  }
25218
25240
  return this.uploadToGPU(t.dataId), this.shallowSlice(t, r, o);
@@ -25229,10 +25251,10 @@ var MR = 600, FR = function(e) {
25229
25251
  if (i.some(function(u) {
25230
25252
  return u === 0;
25231
25253
  })) return wn([], i);
25232
- var s = new vR(r, a, i);
25254
+ var s = new v5(r, a, i);
25233
25255
  return this.compileAndRun(s, [t]);
25234
25256
  }, n.prototype.reverse = function(t, r) {
25235
- var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new cR(t.shape, r) : new lR(t.shape, r);
25257
+ var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new c5(t.shape, r) : new l5(t.shape, r);
25236
25258
  return this.compileAndRun(o, [t]);
25237
25259
  }, n.prototype.concat = function(t, r) {
25238
25260
  if (t[0].dtype === "complex64") {
@@ -25278,7 +25300,7 @@ var MR = 600, FR = function(e) {
25278
25300
  var h = bn(t.dtype, r.dtype), p = new Rl(t.shape, [l, i, s], o, a);
25279
25301
  return this.compileAndRun(p, [t, r], h);
25280
25302
  }, n.prototype.fusedBatchMatMul = function(t) {
25281
- var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = bn(r.dtype, o.dtype), p = s != null, v = l != null, m = u ? Xi(u, !0) : null, g = new Rl(r.shape, [f, c, d], a, i, p, m, v), w = [r, o];
25303
+ var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = bn(r.dtype, o.dtype), p = s != null, v = l != null, m = u ? Yi(u, !0) : null, g = new Rl(r.shape, [f, c, d], a, i, p, m, v), w = [r, o];
25282
25304
  return s && w.push(s), l && w.push(l), this.compileAndRun(g, w, h);
25283
25305
  }, n.prototype.multiply = function(t, r) {
25284
25306
  if (t.dtype === "complex64") {
@@ -25312,14 +25334,14 @@ var MR = 600, FR = function(e) {
25312
25334
  });
25313
25335
  return rg(ot(t.shape, t.dtype, o), r);
25314
25336
  }
25315
- var a = new gR(t.shape, r);
25337
+ var a = new g5(t.shape, r);
25316
25338
  return this.compileAndRun(a, [t]);
25317
25339
  }, n.prototype.pad = function(t, r, o) {
25318
- var a = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new tR(t.shape, r, o) : new eR(t.shape, r, o);
25340
+ var a = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new t5(t.shape, r, o) : new e5(t.shape, r, o);
25319
25341
  return this.compileAndRun(a, [t]);
25320
25342
  }, n.prototype.transpose = function(t, r) {
25321
25343
  if (this.shouldExecuteOnCPU([t])) return this.cpuBackend.transpose(t, r);
25322
- var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new bR(t.shape, r) : new yR(t.shape, r);
25344
+ var o = ie().getBool("WEBGL_PACK_ARRAY_OPERATIONS") ? new b5(t.shape, r) : new y5(t.shape, r);
25323
25345
  return this.compileAndRun(o, [t]);
25324
25346
  }, n.prototype.gather = function(t, r, o) {
25325
25347
  if (this.shouldExecuteOnCPU([t, r])) return this.cpuBackend.gather(t, r, o);
@@ -25345,7 +25367,7 @@ var MR = 600, FR = function(e) {
25345
25367
  var u = t.pad(i), l = Bs(u.shape, r, a, !1), c = Os(l.length, r.length, !1), d = Ns(u.shape, r, a, !1);
25346
25368
  return u.reshape(l).transpose(c).reshape(d);
25347
25369
  }, n.prototype.reduce = function(t, r, o) {
25348
- var a = t.shape[0], i = t.shape[1], s = kl(i), u = new nR({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
25370
+ var a = t.shape[0], i = t.shape[1], s = kl(i), u = new n5({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
25349
25371
  return l.shape[1] === 1 ? l : this.reduce(l, r, o);
25350
25372
  }, n.prototype.argReduce = function(t, r, o) {
25351
25373
  o === void 0 && (o = null);
@@ -25380,7 +25402,7 @@ var MR = 600, FR = function(e) {
25380
25402
  var p, v = !1;
25381
25403
  for (f <= Gm ? (p = f, v = !0) : p = mc(f, Math.floor(Math.sqrt(f))); !v; ) p > h || p === f ? v = !0 : p = mc(f, p + 1);
25382
25404
  return p;
25383
- }(u, i), c = new dR({ windowSize: l, inSize: u, batchSize: s, numSegments: i }), d = this.compileAndRun(c, [t, o], a);
25405
+ }(u, i), c = new d5({ windowSize: l, inSize: u, batchSize: s, numSegments: i }), d = this.compileAndRun(c, [t, o], a);
25384
25406
  return d.shape[1] === i ? d : (o = Ps(0, i).tile([u / l]), this.segOpCompute(d, r, o, a, i));
25385
25407
  }, n.prototype.argMinMaxReduce = function(t, r, o) {
25386
25408
  var a = [r];
@@ -25456,7 +25478,7 @@ var MR = 600, FR = function(e) {
25456
25478
  var o = new Gt("return float(a >= 1.0 || b >= 1.0);", t.shape, r.shape);
25457
25479
  return this.compileAndRun(o, [t, r], "bool");
25458
25480
  }, n.prototype.select = function(t, r, o) {
25459
- var a = new fR(t.rank, r.shape, r.rank);
25481
+ var a = new f5(t.rank, r.shape, r.rank);
25460
25482
  return this.compileAndRun(a, [t, r, o], bn(r.dtype, o.dtype));
25461
25483
  }, n.prototype.where = function(t) {
25462
25484
  Ms("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");
@@ -25775,7 +25797,7 @@ return (round(mod(b, 2.0)) != 1) ?
25775
25797
  `, t.shape, r.shape) : new Gt("return (b >= 1.0) ? a : a * (b + 1.0);", t.shape, r.shape);
25776
25798
  return this.compileAndRun(o, [t, r]);
25777
25799
  }, n.prototype.selu = function(t) {
25778
- var r = new lt(t.shape, xR);
25800
+ var r = new lt(t.shape, x5);
25779
25801
  return this.compileAndRun(r, [t]);
25780
25802
  }, n.prototype.int = function(t) {
25781
25803
  var r = new lt(t.shape, "return float(int(x));");
@@ -25818,22 +25840,22 @@ return (round(mod(b, 2.0)) != 1) ?
25818
25840
  `);
25819
25841
  return this.compileAndRun(r, [t]);
25820
25842
  }, n.prototype.sin = function(t) {
25821
- var r = new lt(t.shape, _R);
25843
+ var r = new lt(t.shape, _5);
25822
25844
  return this.compileAndRun(r, [t]);
25823
25845
  }, n.prototype.cos = function(t) {
25824
- var r = new lt(t.shape, CR);
25846
+ var r = new lt(t.shape, C5);
25825
25847
  return this.compileAndRun(r, [t]);
25826
25848
  }, n.prototype.tan = function(t) {
25827
25849
  var r = new lt(t.shape, "return tan(x);");
25828
25850
  return this.compileAndRun(r, [t]);
25829
25851
  }, n.prototype.asin = function(t) {
25830
- var r = new lt(t.shape, kR);
25852
+ var r = new lt(t.shape, k5);
25831
25853
  return this.compileAndRun(r, [t]);
25832
25854
  }, n.prototype.acos = function(t) {
25833
- var r = new lt(t.shape, SR);
25855
+ var r = new lt(t.shape, S5);
25834
25856
  return this.compileAndRun(r, [t]);
25835
25857
  }, n.prototype.atan = function(t) {
25836
- var r = new lt(t.shape, ER);
25858
+ var r = new lt(t.shape, E5);
25837
25859
  return this.compileAndRun(r, [t]);
25838
25860
  }, n.prototype.atan2 = function(t, r) {
25839
25861
  var o = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr(`
@@ -25872,13 +25894,13 @@ return (round(mod(b, 2.0)) != 1) ?
25872
25894
  `);
25873
25895
  return this.compileAndRun(r, [t]);
25874
25896
  }, n.prototype.asinh = function(t) {
25875
- var r = new lt(t.shape, RR);
25897
+ var r = new lt(t.shape, R5);
25876
25898
  return this.compileAndRun(r, [t]);
25877
25899
  }, n.prototype.acosh = function(t) {
25878
- var r = new lt(t.shape, IR);
25900
+ var r = new lt(t.shape, I5);
25879
25901
  return this.compileAndRun(r, [t]);
25880
25902
  }, n.prototype.atanh = function(t) {
25881
- var r = new lt(t.shape, TR);
25903
+ var r = new lt(t.shape, T5);
25882
25904
  return this.compileAndRun(r, [t]);
25883
25905
  }, n.prototype.erf = function(t) {
25884
25906
  var r = new lt(t.shape, `
@@ -25912,7 +25934,7 @@ return (round(mod(b, 2.0)) != 1) ?
25912
25934
  return this.reshape(this.fusedBatchMatMul({ a: g, b: w, transposeA: !1, transposeB: !1, bias: a, activation: i, preluActivationWeights: s }), o.outShape);
25913
25935
  }
25914
25936
  var b = h ? u[0] * u[1] * (u[2] + 1) : u[0] * u[2] * (u[3] + 1), y = { dataId: t.dataId, shape: [1, b, o.inChannels], dtype: t.dtype }, x = l.shape;
25915
- l.shape = l.shape.slice(), l.shape[l.shape.length - 2]++, F(Ui(l.shape, y.shape), function() {
25937
+ l.shape = l.shape.slice(), l.shape[l.shape.length - 2]++, F(ji(l.shape, y.shape), function() {
25916
25938
  return "packed reshape " + l.shape + " to " + y.shape + " isn't free";
25917
25939
  });
25918
25940
  var _ = this.reshape(r, [1, o.inChannels, o.outChannels]), E = this.fusedBatchMatMul({ a: y, b: _, transposeA: !1, transposeB: !1, bias: a, activation: i, preluActivationWeights: s }), R = this.texData.get(E.dataId);
@@ -25920,7 +25942,7 @@ return (round(mod(b, 2.0)) != 1) ?
25920
25942
  return "batchMatMul result is expected to be packed";
25921
25943
  }), l.shape = x, R.shape = o.outShape, U.makeTensorFromDataId(E.dataId, o.outShape, E.dtype);
25922
25944
  }, n.prototype.conv2dWithIm2Row = function(t, r, o, a, i, s) {
25923
- var u = o.filterWidth, l = o.filterHeight, c = o.inChannels, d = o.outWidth, f = o.outHeight, h = o.dataFormat === "channelsLast", p = u * l * c, v = f * d, m = [p, v], g = t.squeeze([0]), w = r.reshape([1, p, -1]), b = new UE(m, g.shape, o), y = this.compileAndRun(b, [g]).reshape([1, m[0], m[1]]), x = a != null, _ = s != null, E = i ? Xi(i, !0) : null, R = new Rl(y.shape, [1, v, o.outChannels], !0, !1, x, E, _), C = [y, w];
25945
+ var u = o.filterWidth, l = o.filterHeight, c = o.inChannels, d = o.outWidth, f = o.outHeight, h = o.dataFormat === "channelsLast", p = u * l * c, v = f * d, m = [p, v], g = t.squeeze([0]), w = r.reshape([1, p, -1]), b = new UE(m, g.shape, o), y = this.compileAndRun(b, [g]).reshape([1, m[0], m[1]]), x = a != null, _ = s != null, E = i ? Yi(i, !0) : null, R = new Rl(y.shape, [1, v, o.outChannels], !0, !1, x, E, _), C = [y, w];
25924
25946
  a && C.push(a), _ && C.push(s);
25925
25947
  var S = this.compileAndRun(R, C);
25926
25948
  return h ? S.reshape([1, f, d, o.outChannels]) : S.reshape([1, o.outChannels, f, d]);
@@ -25928,7 +25950,7 @@ return (round(mod(b, 2.0)) != 1) ?
25928
25950
  var r = t.input, o = t.filter, a = t.convInfo, i = t.bias, s = t.activation, u = t.preluActivationWeights;
25929
25951
  if (a.filterHeight === 1 && a.filterWidth === 1 && a.dilationHeight === 1 && a.dilationWidth === 1 && a.strideHeight === 1 && a.strideWidth === 1 && (a.padInfo.type === "SAME" || a.padInfo.type === "VALID")) return this.conv2dByMatMul(r, o, a, i, s, u);
25930
25952
  if (ie().getBool("WEBGL_CONV_IM2COL") && r.shape[0] === 1) return this.conv2dWithIm2Row(r, o, a, i, s, u);
25931
- var l = i != null, c = u != null, d = s ? Xi(s, !1) : null, f = new Yh(a, l, d, c), h = [r, o];
25953
+ var l = i != null, c = u != null, d = s ? Yi(s, !1) : null, f = new Yh(a, l, d, c), h = [r, o];
25932
25954
  return i && h.push(i), u && h.push(u), this.compileAndRun(f, h);
25933
25955
  }, n.prototype.conv2d = function(t, r, o) {
25934
25956
  if (o.filterHeight === 1 && o.filterWidth === 1 && o.dilationHeight === 1 && o.dilationWidth === 1 && o.strideHeight === 1 && o.strideWidth === 1 && (o.padInfo.type === "SAME" || o.padInfo.type === "VALID")) return this.conv2dByMatMul(t, r, o);
@@ -25942,7 +25964,7 @@ return (round(mod(b, 2.0)) != 1) ?
25942
25964
  var a = new iE(o);
25943
25965
  return this.compileAndRun(a, [t, r]);
25944
25966
  }, n.prototype.fusedDepthwiseConv2D = function(t) {
25945
- var r, o = t.input, a = t.filter, i = t.convInfo, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = ie().getBool("WEBGL_PACK_DEPTHWISECONV") && i.strideWidth <= 2 && i.outChannels / i.inChannels == 1, d = u ? Xi(u, c) : null, f = [o, a], h = s != null, p = l != null;
25967
+ var r, o = t.input, a = t.filter, i = t.convInfo, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = ie().getBool("WEBGL_PACK_DEPTHWISECONV") && i.strideWidth <= 2 && i.outChannels / i.inChannels == 1, d = u ? Yi(u, c) : null, f = [o, a], h = s != null, p = l != null;
25946
25968
  return h && f.push(s), p && f.push(l), c ? (r = new Zh(i, h, d, p), this.compileAndRun(r, f)) : (r = new Qh(i, h, d, p), this.compileAndRun(r, f));
25947
25969
  }, n.prototype.depthwiseConv2D = function(t, r, o) {
25948
25970
  var a;
@@ -25997,22 +26019,22 @@ return (round(mod(b, 2.0)) != 1) ?
25997
26019
  return s.dispose(), l;
25998
26020
  }, n.prototype.reshape = function(t, r) {
25999
26021
  var o = this.texData.get(t.dataId);
26000
- if (o.isPacked && !Ui(t.shape, r) && (o.texture === null || !Ui(o.shape, r))) {
26022
+ if (o.isPacked && !ji(t.shape, r) && (o.texture === null || !ji(o.shape, r))) {
26001
26023
  var a = this.packedReshape(t, r);
26002
26024
  return U.makeTensorFromDataId(a.dataId, a.shape, a.dtype);
26003
26025
  }
26004
26026
  return kc(t, r);
26005
26027
  }, n.prototype.resizeBilinear = function(t, r, o, a) {
26006
- var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new iR(t.shape, r, o, a) : new aR(t.shape, r, o, a);
26028
+ var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new i5(t.shape, r, o, a) : new a5(t.shape, r, o, a);
26007
26029
  return this.compileAndRun(i, [t], "float32");
26008
26030
  }, n.prototype.resizeBilinearBackprop = function(t, r, o) {
26009
- var a = new oR(t, r, o);
26031
+ var a = new o5(t, r, o);
26010
26032
  return this.compileAndRun(a, [t]);
26011
26033
  }, n.prototype.resizeNearestNeighbor = function(t, r, o, a) {
26012
- var i = new uR(t.shape, r, o, a);
26034
+ var i = new u5(t.shape, r, o, a);
26013
26035
  return this.compileAndRun(i, [t]);
26014
26036
  }, n.prototype.resizeNearestNeighborBackprop = function(t, r, o) {
26015
- var a = new sR(t, r, o);
26037
+ var a = new s5(t, r, o);
26016
26038
  return this.compileAndRun(a, [t]);
26017
26039
  }, n.prototype.multinomial = function(t, r, o, a) {
26018
26040
  var i = r ? t : jr(t), s = i.shape[0], u = i.shape[1], l = new QE(s, u, o), c = l.getCustomSetupFunc(a);
@@ -26055,7 +26077,7 @@ return (round(mod(b, 2.0)) != 1) ?
26055
26077
  var o = r.shape, a = o[o.length - 1], i = jm(t, r), s = i[0], u = i[1], l = i[2], c = i[3], d = r.reshape([u, a]), f = t.reshape([t.size / l, l]), h = new RE(a, c, [u, l]);
26056
26078
  return this.compileAndRun(h, [f, d]).reshape(s);
26057
26079
  }, n.prototype.fill = function(t, r, o) {
26058
- if ((o = o || ki(r)) === "string") {
26080
+ if ((o = o || Si(r)) === "string") {
26059
26081
  var a = Is(o, Be(t));
26060
26082
  return a.fill(r), U.makeTensor(a, t, o, this);
26061
26083
  }
@@ -26075,13 +26097,13 @@ return (round(mod(b, 2.0)) != 1) ?
26075
26097
  var o = this.makeTensorInfo(t, r).dataId;
26076
26098
  return U.makeTensorFromDataId(o, t, r, this);
26077
26099
  }, n.prototype.unpackTensor = function(t) {
26078
- var r = new DR(t.shape);
26100
+ var r = new D5(t.shape);
26079
26101
  return this.runWebGLProgram(r, [t], t.dtype);
26080
26102
  }, n.prototype.packTensor = function(t) {
26081
26103
  var r = new JE(t.shape);
26082
26104
  return this.runWebGLProgram(r, [t], t.dtype, null, !0);
26083
26105
  }, n.prototype.packedReshape = function(t, r) {
26084
- var o = [As(t.shape)].concat(Ds(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [As(r)].concat(Ds(r)), s = new rR(i, o), u = this.runWebGLProgram(s, [a], t.dtype, null, !0);
26106
+ var o = [As(t.shape)].concat(Ds(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [As(r)].concat(Ds(r)), s = new r5(i, o), u = this.runWebGLProgram(s, [a], t.dtype, null, !0);
26085
26107
  return { dataId: u.dataId, shape: r, dtype: u.dtype };
26086
26108
  }, n.prototype.decode = function(t) {
26087
26109
  var r, o = this.texData.get(t), a = o.isPacked, i = o.shape, s = o.dtype, u = Cl(i);
@@ -26090,13 +26112,13 @@ return (round(mod(b, 2.0)) != 1) ?
26090
26112
  var s = this;
26091
26113
  i === void 0 && (i = !1);
26092
26114
  var u = this.makeTensorInfo(t.outputShape, o), l = this.texData.get(u.dataId);
26093
- if (t.packedOutput && (l.isPacked = !0), t.outPackingScheme === ui.DENSE) {
26115
+ if (t.packedOutput && (l.isPacked = !0), t.outPackingScheme === li.DENSE) {
26094
26116
  var c = Ja(t.outputShape);
26095
26117
  l.texShape = c.map(function(b) {
26096
26118
  return 2 * b;
26097
26119
  });
26098
26120
  }
26099
- if (t.outTexUsage != null && (l.usage = t.outTexUsage), Be(u.shape) === 0) return l.values = ii(u.dtype, 0), u;
26121
+ if (t.outTexUsage != null && (l.usage = t.outTexUsage), Be(u.shape) === 0) return l.values = si(u.dtype, 0), u;
26100
26122
  var d = [], f = r.map(function(b) {
26101
26123
  if (b.dtype === "complex64") throw new Error("GPGPUProgram does not support complex64 input. For complex64 dtypes, please separate the program into real and imaginary parts.");
26102
26124
  var y = s.texData.get(b.dataId);
@@ -26104,7 +26126,7 @@ return (round(mod(b, 2.0)) != 1) ?
26104
26126
  if (!t.packedInputs && Be(b.shape) <= ie().getNumber("WEBGL_SIZE_UPLOAD_UNIFORM")) return { shape: b.shape, texData: null, isUniform: !0, uniformValues: y.values };
26105
26127
  t.packedInputs && (y.isPacked = !0, y.shape = b.shape);
26106
26128
  } else if (!!y.isPacked != !!t.packedInputs) b = y.isPacked ? s.unpackTensor(b) : s.packTensor(b), d.push(b), y = s.texData.get(b.dataId);
26107
- else if (y.isPacked && !Ui(y.shape, b.shape)) {
26129
+ else if (y.isPacked && !ji(y.shape, b.shape)) {
26108
26130
  var x = b, _ = b.shape;
26109
26131
  b.shape = y.shape, b = s.packedReshape(b, _), d.push(b), y = s.texData.get(b.dataId), x.shape = _;
26110
26132
  }
@@ -26188,7 +26210,7 @@ return (round(mod(b, 2.0)) != 1) ?
26188
26210
  var h = o.texShape;
26189
26211
  if (h == null && (h = qS(a, c), o.texShape = h), s != null) {
26190
26212
  var p = Cl(a), v = void 0, m = h[1], g = h[0], w = s instanceof Uint8Array;
26191
- c ? (m = (r = Ei(h[0], h[1]))[0], g = r[1], v = new _E(p, [g, m], w)) : v = new xE(p, [g, m], w);
26213
+ c ? (m = (r = Ri(h[0], h[1]))[0], g = r[1], v = new _E(p, [g, m], w)) : v = new xE(p, [g, m], w);
26192
26214
  var b = this.makeTensorInfo([g, m], i);
26193
26215
  this.texData.get(b.dataId).usage = w ? jn.PIXELS : jn.UPLOAD, this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(b.dataId), m, g, s);
26194
26216
  var y = this.runWebGLProgram(v, [b], i, null, !0), x = this.texData.get(y.dataId);
@@ -26219,14 +26241,14 @@ return (round(mod(b, 2.0)) != 1) ?
26219
26241
  }, n;
26220
26242
  }(Qm);
26221
26243
  Bm() && U.registerBackend("webgl", function() {
26222
- return new FR();
26244
+ return new F5();
26223
26245
  }, 2);
26224
- var PR = z({ square_: function(e) {
26246
+ var P5 = z({ square_: function(e) {
26225
26247
  var n = A(e, "x", "square"), t = [n];
26226
26248
  return U.runKernelFunc(function(r, o) {
26227
26249
  return o([n]), r.square(n);
26228
26250
  }, { x: n }, null, "Square", {}, t, []);
26229
- } }), ci = "SquaredDifference", mg = z({ squaredDifference_: function(e, n) {
26251
+ } }), di = "SquaredDifference", mg = z({ squaredDifference_: function(e, n) {
26230
26252
  var t, r = A(e, "a", "squaredDifference"), o = A(n, "b", "squaredDifference");
26231
26253
  t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape);
26232
26254
  var a = { a: r, b: o }, i = [r, o];
@@ -26240,8 +26262,8 @@ var PR = z({ square_: function(e) {
26240
26262
  }, b: function() {
26241
26263
  return s.mul(c.sub(l).mul(d));
26242
26264
  } };
26243
- }, ci, {}, i, []);
26244
- } }), BR = z({ abs_: function(e) {
26265
+ }, di, {}, i, []);
26266
+ } }), B5 = z({ abs_: function(e) {
26245
26267
  var n = A(e, "x", "abs");
26246
26268
  return n.dtype === "complex64" ? U.runKernelFunc(function(t) {
26247
26269
  return t.complexAbs(n);
@@ -26254,7 +26276,7 @@ var PR = z({ square_: function(e) {
26254
26276
  return t.mul(o.toFloat().step(-1));
26255
26277
  } };
26256
26278
  }, "Abs");
26257
- } }), OR = z({ acos_: function(e) {
26279
+ } }), O5 = z({ acos_: function(e) {
26258
26280
  var n = A(e, "x", "acos");
26259
26281
  return U.runKernelFunc(function(t, r) {
26260
26282
  var o = t.acos(n);
@@ -26265,7 +26287,7 @@ var PR = z({ square_: function(e) {
26265
26287
  return t.divStrict(we(1).sub(o.toFloat().square()).sqrt()).neg();
26266
26288
  } };
26267
26289
  });
26268
- } }), NR = z({ acosh_: function(e) {
26290
+ } }), N5 = z({ acosh_: function(e) {
26269
26291
  var n = A(e, "x", "acosh");
26270
26292
  return U.runKernelFunc(function(t, r) {
26271
26293
  var o = t.acosh(n);
@@ -26276,7 +26298,7 @@ var PR = z({ square_: function(e) {
26276
26298
  return t.divStrict(o.toFloat().square().sub(1).sqrt());
26277
26299
  } };
26278
26300
  });
26279
- } }), LR = z({ asin_: function(e) {
26301
+ } }), L5 = z({ asin_: function(e) {
26280
26302
  var n = A(e, "x", "asin");
26281
26303
  return U.runKernelFunc(function(t, r) {
26282
26304
  var o = t.asin(n);
@@ -26287,7 +26309,7 @@ var PR = z({ square_: function(e) {
26287
26309
  return t.divStrict(we(1).sub(o.toFloat().square()).sqrt());
26288
26310
  } };
26289
26311
  });
26290
- } }), qR = z({ asinh_: function(e) {
26312
+ } }), q5 = z({ asinh_: function(e) {
26291
26313
  var n = A(e, "x", "asinh");
26292
26314
  return U.runKernelFunc(function(t, r) {
26293
26315
  var o = t.asinh(n);
@@ -26298,7 +26320,7 @@ var PR = z({ square_: function(e) {
26298
26320
  return t.divStrict(we(1).add(o.toFloat().square()).sqrt());
26299
26321
  } };
26300
26322
  });
26301
- } }), VR = z({ atan_: function(e) {
26323
+ } }), V5 = z({ atan_: function(e) {
26302
26324
  var n = A(e, "x", "atan");
26303
26325
  return U.runKernelFunc(function(t, r) {
26304
26326
  var o = t.atan(n);
@@ -26309,7 +26331,7 @@ var PR = z({ square_: function(e) {
26309
26331
  return t.div(o.toFloat().square().add(1));
26310
26332
  } };
26311
26333
  });
26312
- } }), zR = z({ atanh_: function(e) {
26334
+ } }), z5 = z({ atanh_: function(e) {
26313
26335
  var n = A(e, "x", "atanh");
26314
26336
  return U.runKernelFunc(function(t, r) {
26315
26337
  var o = t.atanh(n);
@@ -26320,7 +26342,7 @@ var PR = z({ square_: function(e) {
26320
26342
  return t.div(we(1).sub(o.toFloat().square()));
26321
26343
  } };
26322
26344
  });
26323
- } }), WR = z({ ceil_: function(e) {
26345
+ } }), W5 = z({ ceil_: function(e) {
26324
26346
  var n = A(e, "x", "ceil");
26325
26347
  return U.runKernelFunc(function(t) {
26326
26348
  return t.ceil(n);
@@ -26344,7 +26366,7 @@ var PR = z({ square_: function(e) {
26344
26366
  return i.where(u.greaterEqual(n).logicalAnd(u.lessEqual(t)), yt(i));
26345
26367
  } };
26346
26368
  }, "ClipByValue", a, o);
26347
- } }), $R = z({ cos_: function(e) {
26369
+ } }), $5 = z({ cos_: function(e) {
26348
26370
  var n = A(e, "x", "cos"), t = [n];
26349
26371
  return U.runKernelFunc(function(r, o) {
26350
26372
  var a = r.cos(n);
@@ -26355,7 +26377,7 @@ var PR = z({ square_: function(e) {
26355
26377
  return a.toFloat().sin().neg().mul(r);
26356
26378
  } };
26357
26379
  }, "Cos", {}, t);
26358
- } }), HR = z({ cosh_: function(e) {
26380
+ } }), H5 = z({ cosh_: function(e) {
26359
26381
  var n = A(e, "x", "cosh");
26360
26382
  return U.runKernelFunc(function(t, r) {
26361
26383
  var o = t.cosh(n);
@@ -26366,7 +26388,7 @@ var PR = z({ square_: function(e) {
26366
26388
  return o.toFloat().sinh().mulStrict(t);
26367
26389
  } };
26368
26390
  });
26369
- } }), UR = z({ erf_: function(e) {
26391
+ } }), U5 = z({ erf_: function(e) {
26370
26392
  var n = A(e, "x", "erf");
26371
26393
  return F(n.dtype === "int32" || n.dtype === "float32", function() {
26372
26394
  return "Input dtype must be `int32` or `float32`.";
@@ -26389,7 +26411,7 @@ var PR = z({ square_: function(e) {
26389
26411
  return t.mulStrict(r[0]);
26390
26412
  } };
26391
26413
  }, "Exp", {}, [], [!0]);
26392
- } }), jR = z({ expm1_: function(e) {
26414
+ } }), j5 = z({ expm1_: function(e) {
26393
26415
  var n = A(e, "x", "expm1");
26394
26416
  return U.runKernelFunc(function(t, r) {
26395
26417
  var o = t.expm1(n);
@@ -26400,7 +26422,7 @@ var PR = z({ square_: function(e) {
26400
26422
  return t.mul(o.exp());
26401
26423
  } };
26402
26424
  });
26403
- } }), GR = z({ floor_: function(e) {
26425
+ } }), G5 = z({ floor_: function(e) {
26404
26426
  var n = A(e, "x", "floor");
26405
26427
  return U.runKernelFunc(function(t) {
26406
26428
  return t.floor(n);
@@ -26409,7 +26431,7 @@ var PR = z({ square_: function(e) {
26409
26431
  return yt(t);
26410
26432
  } };
26411
26433
  });
26412
- } }), KR = z({ log_: function(e) {
26434
+ } }), K5 = z({ log_: function(e) {
26413
26435
  var n = A(e, "x", "log"), t = [n];
26414
26436
  return U.runKernelFunc(function(r, o) {
26415
26437
  var a = r.log(n);
@@ -26420,7 +26442,7 @@ var PR = z({ square_: function(e) {
26420
26442
  return r.div(a.toFloat());
26421
26443
  } };
26422
26444
  }, "Log", {}, t);
26423
- } }), XR = z({ log1p_: function(e) {
26445
+ } }), X5 = z({ log1p_: function(e) {
26424
26446
  var n = A(e, "x", "log1p");
26425
26447
  return U.runKernelFunc(function(t, r) {
26426
26448
  var o = t.log1p(n);
@@ -26431,7 +26453,7 @@ var PR = z({ square_: function(e) {
26431
26453
  return t.div(o.add(1));
26432
26454
  } };
26433
26455
  });
26434
- } }), YR = z({ logSigmoid_: function(e) {
26456
+ } }), Y5 = z({ logSigmoid_: function(e) {
26435
26457
  var n = A(e, "x", "logSigmoid");
26436
26458
  return U.runKernelFunc(function(t, r) {
26437
26459
  var o = t.softplus(n.neg()).neg();
@@ -26451,7 +26473,7 @@ var PR = z({ square_: function(e) {
26451
26473
  return r.neg();
26452
26474
  } };
26453
26475
  }, "Neg", {}, t);
26454
- } }), QR = z({ reciprocal_: function(e) {
26476
+ } }), Q5 = z({ reciprocal_: function(e) {
26455
26477
  var n = A(e, "x", "reciprocal");
26456
26478
  return U.runKernelFunc(function(t, r) {
26457
26479
  var o = t.reciprocal(n);
@@ -26462,7 +26484,7 @@ var PR = z({ square_: function(e) {
26462
26484
  return t.div(o.square().neg());
26463
26485
  } };
26464
26486
  });
26465
- } }), ZR = z({ round_: function(e) {
26487
+ } }), Z5 = z({ round_: function(e) {
26466
26488
  var n = A(e, "x", "round");
26467
26489
  return U.runKernelFunc(function(t) {
26468
26490
  return t.round(n);
@@ -26493,7 +26515,7 @@ var PR = z({ square_: function(e) {
26493
26515
  return t.mul(o.mul(we(1).sub(o)));
26494
26516
  } };
26495
26517
  }, "Sigmoid");
26496
- } }), JR = z({ sign_: function(e) {
26518
+ } }), J5 = z({ sign_: function(e) {
26497
26519
  var n = A(e, "x", "sign");
26498
26520
  return U.runKernelFunc(function(t) {
26499
26521
  return t.sign(n);
@@ -26502,7 +26524,7 @@ var PR = z({ square_: function(e) {
26502
26524
  return yt(t);
26503
26525
  } };
26504
26526
  });
26505
- } }), e5 = z({ isNaN_: function(e) {
26527
+ } }), eR = z({ isNaN_: function(e) {
26506
26528
  var n = A(e, "x", "isNaN");
26507
26529
  return U.runKernelFunc(function(t) {
26508
26530
  return t.isNaN(n);
@@ -26511,7 +26533,7 @@ var PR = z({ square_: function(e) {
26511
26533
  return yt(t);
26512
26534
  } };
26513
26535
  });
26514
- } }), t5 = z({ isInf_: function(e) {
26536
+ } }), tR = z({ isInf_: function(e) {
26515
26537
  var n = A(e, "x", "isInf");
26516
26538
  return U.runKernelFunc(function(t) {
26517
26539
  return t.isInf(n);
@@ -26520,7 +26542,7 @@ var PR = z({ square_: function(e) {
26520
26542
  return yt(t);
26521
26543
  } };
26522
26544
  });
26523
- } }), n5 = z({ isFinite_: function(e) {
26545
+ } }), nR = z({ isFinite_: function(e) {
26524
26546
  var n = A(e, "x", "isFinite");
26525
26547
  return U.runKernelFunc(function(t) {
26526
26548
  return t.isFinite(n);
@@ -26529,7 +26551,7 @@ var PR = z({ square_: function(e) {
26529
26551
  return yt(t);
26530
26552
  } };
26531
26553
  });
26532
- } }), r5 = z({ sin_: function(e) {
26554
+ } }), rR = z({ sin_: function(e) {
26533
26555
  var n = A(e, "x", "sin"), t = [n];
26534
26556
  return U.runKernelFunc(function(r, o) {
26535
26557
  var a = r.sin(n);
@@ -26540,7 +26562,7 @@ var PR = z({ square_: function(e) {
26540
26562
  return a.toFloat().cos().mul(r);
26541
26563
  } };
26542
26564
  }, "Sin", {}, t);
26543
- } }), o5 = z({ sinh_: function(e) {
26565
+ } }), oR = z({ sinh_: function(e) {
26544
26566
  var n = A(e, "x", "sinh");
26545
26567
  return U.runKernelFunc(function(t, r) {
26546
26568
  var o = t.sinh(n);
@@ -26551,7 +26573,7 @@ var PR = z({ square_: function(e) {
26551
26573
  return o.toFloat().cosh().mulStrict(t);
26552
26574
  } };
26553
26575
  });
26554
- } }), a5 = z({ softplus_: function(e) {
26576
+ } }), aR = z({ softplus_: function(e) {
26555
26577
  var n = A(e, "x", "softplus");
26556
26578
  return U.runKernelFunc(function(t, r) {
26557
26579
  var o = t.softplus(n);
@@ -26562,7 +26584,7 @@ var PR = z({ square_: function(e) {
26562
26584
  return t.mul(o.sigmoid());
26563
26585
  } };
26564
26586
  });
26565
- } }), i5 = z({ sqrt_: function(e) {
26587
+ } }), iR = z({ sqrt_: function(e) {
26566
26588
  var n = A(e, "x", "sqrt");
26567
26589
  return U.runKernelFunc(function(t, r) {
26568
26590
  var o = t.sqrt(n);
@@ -26573,7 +26595,7 @@ var PR = z({ square_: function(e) {
26573
26595
  return t.div(o.toFloat().sqrt().mul(2));
26574
26596
  } };
26575
26597
  });
26576
- } }), s5 = z({ step_: function(e, n) {
26598
+ } }), sR = z({ step_: function(e, n) {
26577
26599
  n === void 0 && (n = 0);
26578
26600
  var t = A(e, "x", "step");
26579
26601
  return U.runKernelFunc(function(r) {
@@ -26583,7 +26605,7 @@ var PR = z({ square_: function(e) {
26583
26605
  return yt(r);
26584
26606
  } };
26585
26607
  });
26586
- } }), u5 = z({ tan_: function(e) {
26608
+ } }), uR = z({ tan_: function(e) {
26587
26609
  var n = A(e, "x", "tan");
26588
26610
  return U.runKernelFunc(function(t, r) {
26589
26611
  var o = t.tan(n);
@@ -26594,7 +26616,7 @@ var PR = z({ square_: function(e) {
26594
26616
  return t.div(o.cos().square());
26595
26617
  } };
26596
26618
  });
26597
- } }), l5 = z({ tanh_: function(e) {
26619
+ } }), lR = z({ tanh_: function(e) {
26598
26620
  var n = A(e, "x", "tanh");
26599
26621
  return U.runKernelFunc(function(t, r) {
26600
26622
  var o = t.tanh(n);
@@ -26618,7 +26640,7 @@ function bg(e, n, t, r, o, a) {
26618
26640
  return "Error in batchNorm2D: scale must be rank 2 or rank 1 but got rank " + i.rank + ".";
26619
26641
  }), s != null && F(s.rank === 2 || s.rank === 1, function() {
26620
26642
  return "Error in batchNorm2D: offset must be rank 2 or rank 1 but got rank " + s.rank + ".";
26621
- }), Ii(u, l, c, s, i, a);
26643
+ }), Ti(u, l, c, s, i, a);
26622
26644
  }
26623
26645
  function wg(e, n, t, r, o, a) {
26624
26646
  var i, s, u = A(e, "x", "batchNorm"), l = A(n, "mean", "batchNorm"), c = A(t, "variance", "batchNorm");
@@ -26632,7 +26654,7 @@ function wg(e, n, t, r, o, a) {
26632
26654
  return "Error in batchNorm3D: scale must be rank 3 or rank 1 but got rank " + i.rank + ".";
26633
26655
  }), s != null && F(s.rank === 3 || s.rank === 1, function() {
26634
26656
  return "Error in batchNorm3D: offset must be rank 3 or rank 1 but got rank " + s.rank + ".";
26635
- }), Ii(u, l, c, s, i, a);
26657
+ }), Ti(u, l, c, s, i, a);
26636
26658
  }
26637
26659
  function xg(e, n, t, r, o, a) {
26638
26660
  var i, s, u = A(e, "x", "batchNorm"), l = A(n, "mean", "batchNorm"), c = A(t, "variance", "batchNorm");
@@ -26646,9 +26668,9 @@ function xg(e, n, t, r, o, a) {
26646
26668
  return "Error in batchNorm4D: scale must be rank 4 or rank 1 but got rank " + i.rank + ".";
26647
26669
  }), s != null && F(s.rank === 4 || s.rank === 1, function() {
26648
26670
  return "Error in batchNorm4D: offset must be rank 4 or rank 1 but got rank " + s.rank + ".";
26649
- }), Ii(u, l, c, s, i, a);
26671
+ }), Ti(u, l, c, s, i, a);
26650
26672
  }
26651
- function Ii(e, n, t, r, o, a) {
26673
+ function Ti(e, n, t, r, o, a) {
26652
26674
  a == null && (a = 1e-3);
26653
26675
  var i, s, u, l = A(e, "x", "batchNorm"), c = A(n, "mean", "batchNorm"), d = A(t, "variance", "batchNorm");
26654
26676
  o != null && (i = A(o, "scale", "batchNorm")), r != null && (s = A(r, "offset", "batchNorm")), F(c.rank === d.rank, function() {
@@ -26660,7 +26682,7 @@ function Ii(e, n, t, r, o, a) {
26660
26682
  }), u = l.rank === 0 || l.rank === 1 ? l.as4D(1, 1, 1, l.size) : l.rank === 2 ? l.as4D(1, 1, l.shape[0], l.shape[1]) : l.rank === 3 ? l.as4D(1, l.shape[0], l.shape[1], l.shape[2]) : l;
26661
26683
  var f = [l, c, d, i];
26662
26684
  return U.runKernelFunc(function(h, p) {
26663
- var v = h.batchNormalization(u, Yi(c), Yi(d), a, Yi(i), Yi(s));
26685
+ var v = h.batchNormalization(u, Qi(c), Qi(d), a, Qi(i), Qi(s));
26664
26686
  return p([l, c, d, i]), v;
26665
26687
  }, { x: l, mean: c, variance: d, scale: i, offset: s }, function(h, p) {
26666
26688
  var v = p, m = v[0], g = v[1], w = v[2], b = v[3], y = b ?? we(1), x = an(g.shape, u.shape), _ = [];
@@ -26686,26 +26708,26 @@ function Ii(e, n, t, r, o, a) {
26686
26708
  } };
26687
26709
  }, "BatchNormalization", { varianceEpsilon: a }, f).reshape(l.shape);
26688
26710
  }
26689
- function Yi(e) {
26711
+ function Qi(e) {
26690
26712
  return e == null ? null : e.rank === 0 ? e.as1D() : e.rank === 1 ? e : e.rank === 2 ? e.as4D(1, 1, e.shape[0], e.shape[1]) : e.rank === 3 ? e.as4D(1, e.shape[0], e.shape[1], e.shape[2]) : e;
26691
26713
  }
26692
26714
  function vu() {
26693
26715
  Om("tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon");
26694
26716
  }
26695
- var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26717
+ var cR = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26696
26718
  return r === void 0 && (r = 1e-3), vu(), bg(e, n, t, a, o, r);
26697
- } }), d5 = z({ batchNormalization3d_: function(e, n, t, r, o, a) {
26719
+ } }), dR = z({ batchNormalization3d_: function(e, n, t, r, o, a) {
26698
26720
  return r === void 0 && (r = 1e-3), vu(), wg(e, n, t, a, o, r);
26699
- } }), f5 = z({ batchNormalization4d_: function(e, n, t, r, o, a) {
26721
+ } }), fR = z({ batchNormalization4d_: function(e, n, t, r, o, a) {
26700
26722
  return r === void 0 && (r = 1e-3), vu(), xg(e, n, t, a, o, r);
26701
- } }), h5 = z({ batchNormalization_: function(e, n, t, r, o, a) {
26702
- return r === void 0 && (r = 1e-3), vu(), Ii(e, n, t, a, o, r);
26703
- } }), _g = z({ batchNorm_: Ii }), p5 = z({ batchNorm2d_: bg }), v5 = z({ batchNorm3d_: wg }), m5 = z({ batchNorm4d_: xg }), mu = z({ logicalAnd_: function(e, n) {
26723
+ } }), hR = z({ batchNormalization_: function(e, n, t, r, o, a) {
26724
+ return r === void 0 && (r = 1e-3), vu(), Ti(e, n, t, a, o, r);
26725
+ } }), _g = z({ batchNorm_: Ti }), pR = z({ batchNorm2d_: bg }), vR = z({ batchNorm3d_: wg }), mR = z({ batchNorm4d_: xg }), mu = z({ logicalAnd_: function(e, n) {
26704
26726
  var t = A(e, "a", "logicalAnd", "bool"), r = A(n, "b", "logicalAnd", "bool");
26705
26727
  return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
26706
26728
  return o.logicalAnd(t, r);
26707
26729
  }, { a: t, b: r }, null, "LogicalAnd");
26708
- } }), g5 = z({ logicalNot_: function(e) {
26730
+ } }), gR = z({ logicalNot_: function(e) {
26709
26731
  var n = A(e, "x", "logicalNot", "bool");
26710
26732
  return U.runKernelFunc(function(t) {
26711
26733
  return t.logicalNot(n);
@@ -26715,7 +26737,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26715
26737
  return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
26716
26738
  return o.logicalOr(t, r);
26717
26739
  }, { $a: t, $b: r });
26718
- } }), y5 = z({ logicalXor_: function(e, n) {
26740
+ } }), yR = z({ logicalXor_: function(e, n) {
26719
26741
  var t = A(e, "a", "logicalXor", "bool"), r = A(n, "b", "logicalXor", "bool");
26720
26742
  return pt(t.shape, r.shape), Cg(e, n).logicalAnd(mu(e, n).logicalNot());
26721
26743
  } }), Lo = z({ where_: function(e, n, t) {
@@ -26762,7 +26784,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26762
26784
  return u.length > 0 && (s = s.sum(u)), s.reshape(o.shape);
26763
26785
  } };
26764
26786
  }, "Add");
26765
- } }), b5 = z({ addN_: function(e) {
26787
+ } }), bR = z({ addN_: function(e) {
26766
26788
  F(Array.isArray(e), function() {
26767
26789
  return "The argument passed to tf.addN() must be a list of tensors";
26768
26790
  }), F(e.length >= 1, function() {
@@ -26787,10 +26809,10 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26787
26809
  };
26788
26810
  }), a;
26789
26811
  }, "AddN");
26790
- } }), w5 = z({ addStrict_: function(e, n) {
26812
+ } }), wR = z({ addStrict_: function(e, n) {
26791
26813
  var t = A(e, "a", "addStrict"), r = A(n, "b", "addStrict");
26792
26814
  return Rt(t.shape, r.shape, "Error in addStrict: "), t.add(r);
26793
- } }), x5 = z({ atan2_: function(e, n) {
26815
+ } }), xR = z({ atan2_: function(e, n) {
26794
26816
  var t, r = A(e, "a", "atan2"), o = A(n, "b", "atan2");
26795
26817
  t = Ut(r, o), r = t[0], o = t[1];
26796
26818
  var a = pt(r.shape, o.shape);
@@ -26826,12 +26848,12 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26826
26848
  return c.div(f.toFloat()).neg();
26827
26849
  } };
26828
26850
  }, "Div");
26829
- } }), _5 = z({ divNoNan_: function(e, n) {
26851
+ } }), _R = z({ divNoNan_: function(e, n) {
26830
26852
  var t, r = A(e, "a", "div"), o = A(n, "b", "div");
26831
26853
  r = (t = Ut(r, o))[0], o = t[1];
26832
26854
  var a = ur(r, o), i = yt(a), s = o.equal(i);
26833
26855
  return Lo(s, i, a);
26834
- } }), C5 = z({ divStrict_: function(e, n) {
26856
+ } }), CR = z({ divStrict_: function(e, n) {
26835
26857
  var t = A(e, "a", "div"), r = A(n, "b", "div");
26836
26858
  return Rt(t.shape, r.shape, "Error in divideStrict: "), t.div(r);
26837
26859
  } }), Sg = z({ floorDiv_: function(e, n) {
@@ -26866,7 +26888,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26866
26888
  return a.mul(s.less(u).toFloat());
26867
26889
  } };
26868
26890
  }, "Maximum");
26869
- } }), k5 = z({ maximumStrict_: function(e, n) {
26891
+ } }), kR = z({ maximumStrict_: function(e, n) {
26870
26892
  var t = A(e, "a", "maximumStrict"), r = A(n, "b", "maximumStrict");
26871
26893
  return Rt(t.shape, r.shape, "Error in maximumStrict: "), t.maximum(r);
26872
26894
  } }), Eg = z({ minimum_: function(e, n) {
@@ -26882,10 +26904,10 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26882
26904
  return a.mul(s.greater(u).toFloat());
26883
26905
  } };
26884
26906
  }, "Minimum");
26885
- } }), S5 = z({ minimumStrict_: function(e, n) {
26907
+ } }), SR = z({ minimumStrict_: function(e, n) {
26886
26908
  var t = A(e, "a", "minimumStrict"), r = A(n, "b", "minimumStrict");
26887
26909
  return Rt(t.shape, r.shape, "Error in minimumStrict: "), t.minimum(r);
26888
- } }), E5 = z({ mod_: function(e, n) {
26910
+ } }), ER = z({ mod_: function(e, n) {
26889
26911
  var t, r = A(e, "a", "mod"), o = A(n, "b", "mod");
26890
26912
  t = Ut(r, o), r = t[0], o = t[1];
26891
26913
  var a = pt(r.shape, o.shape);
@@ -26902,7 +26924,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26902
26924
  return d.length > 0 ? c.sum(d).reshape(l.shape) : c;
26903
26925
  } };
26904
26926
  });
26905
- } }), R5 = z({ modStrict_: function(e, n) {
26927
+ } }), RR = z({ modStrict_: function(e, n) {
26906
26928
  var t = A(e, "a", "modStrict"), r = A(n, "b", "modStrict");
26907
26929
  return Rt(t.shape, r.shape, "Error in modStrict: "), t.mod(r);
26908
26930
  } }), In = z({ mul_: function(e, n) {
@@ -26922,7 +26944,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26922
26944
  return d.length > 0 ? c.sum(d).reshape(l.shape) : c;
26923
26945
  } };
26924
26946
  }, "Mul");
26925
- } }), I5 = z({ mulStrict_: function(e, n) {
26947
+ } }), IR = z({ mulStrict_: function(e, n) {
26926
26948
  var t = A(e, "a", "mul"), r = A(n, "b", "mul");
26927
26949
  return Rt(t.shape, r.shape, "Error in multiplyStrict: "), t.mul(r);
26928
26950
  } }), $s = z({ pow_: function(e, n) {
@@ -26942,9 +26964,9 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26942
26964
  return v.length > 0 && (p = p.sum(v)), p.reshape(c.shape);
26943
26965
  } };
26944
26966
  }, "Pow", {}, i, [!0]);
26945
- } }), T5 = z({ powStrict_: function(e, n) {
26967
+ } }), TR = z({ powStrict_: function(e, n) {
26946
26968
  return Rt(e.shape, n.shape, "Error in powStrict: "), e.pow(n);
26947
- } }), A5 = z({ squaredDifferenceStrict_: function(e, n) {
26969
+ } }), AR = z({ squaredDifferenceStrict_: function(e, n) {
26948
26970
  var t = A(e, "a", "squaredDifferenceStrict"), r = A(n, "b", "squaredDifferenceStrict");
26949
26971
  return Rt(t.shape, r.shape, "Error in squaredDifferenceStrict: "), t.squaredDifference(r);
26950
26972
  } }), sn = z({ sub_: function(e, n) {
@@ -26962,7 +26984,7 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26962
26984
  return u.length > 0 && (s = s.sum(u)), s.neg().reshape(o.shape);
26963
26985
  } };
26964
26986
  }, "Sub");
26965
- } }), D5 = z({ subStrict_: function(e, n) {
26987
+ } }), DR = z({ subStrict_: function(e, n) {
26966
26988
  var t = A(e, "a", "subStrict"), r = A(n, "b", "subStrict");
26967
26989
  return Rt(t.shape, r.shape, "Error in subStrict: "), t.sub(r);
26968
26990
  } }), Rg = z({ equal_: function(e, n) {
@@ -26970,10 +26992,10 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26970
26992
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
26971
26993
  return a.equal(r, o);
26972
26994
  }, { $a: r, $b: o });
26973
- } }), M5 = z({ equalStrict_: function(e, n) {
26995
+ } }), MR = z({ equalStrict_: function(e, n) {
26974
26996
  var t = A(e, "a", "equalStrict"), r = A(n, "b", "equalStrict");
26975
26997
  return Rt(t.shape, r.shape, "Error in equalStrict: "), t.equal(r);
26976
- } }), F5 = z({ greater_: function(e, n) {
26998
+ } }), FR = z({ greater_: function(e, n) {
26977
26999
  var t, r = A(e, "a", "greater"), o = A(n, "b", "greater");
26978
27000
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
26979
27001
  return a.greater(r, o);
@@ -26991,35 +27013,35 @@ var c5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
26991
27013
  return yt(u);
26992
27014
  } };
26993
27015
  }, "GreaterEqual");
26994
- } }), P5 = z({ greaterEqualStrict_: function(e, n) {
27016
+ } }), PR = z({ greaterEqualStrict_: function(e, n) {
26995
27017
  var t = A(e, "a", "greaterEqualStrict"), r = A(n, "b", "greaterEqualStrict");
26996
27018
  return Rt(t.shape, r.shape, "Error in greaterEqualStrict: "), t.greaterEqual(r);
26997
- } }), B5 = z({ greaterStrict_: function(e, n) {
27019
+ } }), BR = z({ greaterStrict_: function(e, n) {
26998
27020
  var t = A(e, "a", "greaterStrict"), r = A(n, "b", "greaterStrict");
26999
27021
  return Rt(t.shape, r.shape, "Error in greaterStrict: "), t.greater(r);
27000
- } }), O5 = z({ less_: function(e, n) {
27022
+ } }), OR = z({ less_: function(e, n) {
27001
27023
  var t, r = A(e, "a", "less"), o = A(n, "b", "less");
27002
27024
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27003
27025
  return a.less(r, o);
27004
27026
  }, { a: r, b: o }, null, "Less");
27005
- } }), N5 = z({ lessEqual_: function(e, n) {
27027
+ } }), NR = z({ lessEqual_: function(e, n) {
27006
27028
  var t, r = A(e, "a", "lessEqual"), o = A(n, "b", "lessEqual");
27007
27029
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a, i) {
27008
27030
  var s = a.lessEqual(r, o);
27009
27031
  return i([r, o]), s;
27010
27032
  }, { a: r, b: o }, null, "LessEqual");
27011
- } }), L5 = z({ lessEqualStrict_: function(e, n) {
27033
+ } }), LR = z({ lessEqualStrict_: function(e, n) {
27012
27034
  var t = A(e, "a", "lessEqualStrict"), r = A(n, "b", "lessEqualStrict");
27013
27035
  return Rt(t.shape, r.shape, "Error in lessEqualStrict: "), t.lessEqual(r);
27014
- } }), q5 = z({ lessStrict_: function(e, n) {
27036
+ } }), qR = z({ lessStrict_: function(e, n) {
27015
27037
  var t = A(e, "a", "lessStrict"), r = A(n, "b", "lessStrict");
27016
27038
  return Rt(t.shape, r.shape, "Error in lessStrict: "), t.less(r);
27017
- } }), V5 = z({ notEqual_: function(e, n) {
27039
+ } }), VR = z({ notEqual_: function(e, n) {
27018
27040
  var t, r = A(e, "a", "notEqual"), o = A(n, "b", "notEqual");
27019
27041
  return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27020
27042
  return a.notEqual(r, o);
27021
27043
  }, { a: r, b: o }, null, "NotEqual");
27022
- } }), z5 = z({ notEqualStrict_: function(e, n) {
27044
+ } }), zR = z({ notEqualStrict_: function(e, n) {
27023
27045
  var t = A(e, "a", "notEqualStrict"), r = A(n, "b", "notEqualStrict");
27024
27046
  return Rt(t.shape, r.shape, "Error in notEqualStrict: "), t.notEqual(r);
27025
27047
  } });
@@ -27071,7 +27093,7 @@ var Td = z({ gather_: function(e, n, t) {
27071
27093
  }(a, s);
27072
27094
  } };
27073
27095
  });
27074
- } }), W5 = function(e, n, t) {
27096
+ } }), WR = function(e, n, t) {
27075
27097
  return Ae(this, void 0, void 0, function() {
27076
27098
  var r, o, a, i, s, u, l, c, d, f, h, p, v;
27077
27099
  return De(this, function(m) {
@@ -27149,7 +27171,7 @@ function Dg(e, n, t, r, o) {
27149
27171
  }, { dy5D: i });
27150
27172
  return s ? d.as4D(d.shape[1], d.shape[2], d.shape[3], d.shape[4]) : d;
27151
27173
  }
27152
- var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27174
+ var $R = z({ conv1d_: function(e, n, t, r, o, a, i) {
27153
27175
  o === void 0 && (o = "NWC"), a === void 0 && (a = 1);
27154
27176
  var s = A(e, "x", "conv1d"), u = A(n, "filter", "conv1d"), l = s, c = !1;
27155
27177
  s.rank === 2 && (c = !0, l = s.as3D(1, s.shape[0], s.shape[1])), F(l.rank === 3, function() {
@@ -27197,7 +27219,7 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27197
27219
  } };
27198
27220
  }, "Conv2D", h, p);
27199
27221
  return c ? v.as3D(v.shape[1], v.shape[2], v.shape[3]) : v;
27200
- } }), H5 = z({ conv3d_: function(e, n, t, r, o, a) {
27222
+ } }), HR = z({ conv3d_: function(e, n, t, r, o, a) {
27201
27223
  o === void 0 && (o = "NDHWC"), a === void 0 && (a = [1, 1, 1]);
27202
27224
  var i = A(e, "x", "conv3d"), s = A(n, "filter", "conv3d"), u = i, l = !1;
27203
27225
  i.rank === 4 && (l = !0, u = i.as5D(1, i.shape[0], i.shape[1], i.shape[2], i.shape[3])), F(u.rank === 5, function() {
@@ -27335,9 +27357,9 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27335
27357
  });
27336
27358
  var p = gu(c, u, r, o, i, a), v = ar(p, l, 1, "valid", i);
27337
27359
  return d ? v.as3D(v.shape[1], v.shape[2], v.shape[3]) : v;
27338
- } }), U5 = z({ conv2dTranspose_: function(e, n, t, r, o, a) {
27360
+ } }), UR = z({ conv2dTranspose_: function(e, n, t, r, o, a) {
27339
27361
  return Ag(t, A(e, "x", "conv2dTranspose"), A(n, "filter", "conv2dTranspose"), r, o, "NHWC", a);
27340
- } }), j5 = z({ conv3dTranspose_: function(e, n, t, r, o) {
27362
+ } }), jR = z({ conv3dTranspose_: function(e, n, t, r, o) {
27341
27363
  return Dg(t, A(e, "x", "conv3dTranspose"), A(n, "filter", "conv3dTranspose"), r, o);
27342
27364
  } }), yu = z({ matMul_: function(e, n, t, r) {
27343
27365
  var o;
@@ -27376,7 +27398,7 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27376
27398
  return _.matMul(b, !0, !1);
27377
27399
  } };
27378
27400
  }, "BatchMatMul", w).reshape(v);
27379
- } }), G5 = z({ dot_: function(e, n) {
27401
+ } }), GR = z({ dot_: function(e, n) {
27380
27402
  var t = A(e, "t1", "dot"), r = A(n, "t2", "dot");
27381
27403
  F(!(t.rank !== 1 && t.rank !== 2 || r.rank !== 1 && r.rank !== 2), function() {
27382
27404
  return "Error in dot: inputs must all be rank 1 or 2, but got ranks " + t.rank + " and " + r.rank + ".";
@@ -27385,12 +27407,12 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27385
27407
  return F(o === a, function() {
27386
27408
  return "Error in dot: inner dimensions of inputs must match, but got " + o + " and " + a + ".";
27387
27409
  }), t.rank === 1 && r.rank === 1 ? t.as2D(1, -1).matMul(r.as2D(-1, 1)).asScalar() : t.rank === 1 && r.rank === 2 ? t.as2D(1, -1).matMul(r.as2D(r.shape[0], r.shape[1])).as1D() : t.rank === 2 && r.rank === 1 ? t.matMul(r.as2D(-1, 1)).as1D() : t.matMul(r.as2D(r.shape[0], r.shape[1]));
27388
- } }), K5 = z({ outerProduct_: function(e, n) {
27410
+ } }), KR = z({ outerProduct_: function(e, n) {
27389
27411
  var t = A(e, "v1", "outerProduct"), r = A(n, "v2", "outerProduct");
27390
27412
  return F(t.rank === 1 && r.rank === 1, function() {
27391
27413
  return "Error in outerProduct: inputs must be rank 1, but got ranks " + t.rank + " and " + r.rank + ".";
27392
27414
  }), t.as2D(-1, 1).matMul(r.as2D(1, -1));
27393
- } }), Ti = z({ reverse_: function(e, n) {
27415
+ } }), Ai = z({ reverse_: function(e, n) {
27394
27416
  var t = A(e, "x", "reverse");
27395
27417
  if (t.rank === 0) return t.clone();
27396
27418
  var r = un(n, t.shape);
@@ -27401,26 +27423,26 @@ var $5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27401
27423
  return o.reverse(r);
27402
27424
  } };
27403
27425
  }).reshapeAs(t);
27404
- } }), X5 = z({ reverse1d_: function(e) {
27426
+ } }), XR = z({ reverse1d_: function(e) {
27405
27427
  var n = A(e, "x", "reverse");
27406
27428
  return F(n.rank === 1, function() {
27407
27429
  return "Error in reverse1D: x must be rank 1 but got rank " + n.rank + ".";
27408
- }), Ti(n, 0);
27409
- } }), Y5 = z({ reverse2d_: function(e, n) {
27430
+ }), Ai(n, 0);
27431
+ } }), YR = z({ reverse2d_: function(e, n) {
27410
27432
  var t = A(e, "x", "reverse");
27411
27433
  return F(t.rank === 2, function() {
27412
27434
  return "Error in reverse2D: x must be rank 2 but got rank " + t.rank + ".";
27413
- }), Ti(t, n);
27414
- } }), Q5 = z({ reverse3d_: function(e, n) {
27435
+ }), Ai(t, n);
27436
+ } }), QR = z({ reverse3d_: function(e, n) {
27415
27437
  var t = A(e, "x", "reverse");
27416
27438
  return F(t.rank === 3, function() {
27417
27439
  return "Error in reverse3D: x must be rank 3 but got rank " + t.rank + ".";
27418
- }), Ti(t, n);
27419
- } }), Z5 = z({ reverse4d_: function(e, n) {
27440
+ }), Ai(t, n);
27441
+ } }), ZR = z({ reverse4d_: function(e, n) {
27420
27442
  var t = A(e, "x", "reverse");
27421
27443
  return F(t.rank === 4, function() {
27422
27444
  return "Error in reverse4D: x must be rank 4 but got rank " + t.rank + ".";
27423
- }), Ti(t, n);
27445
+ }), Ai(t, n);
27424
27446
  } });
27425
27447
  function Bg(e, n, t, r, o, a) {
27426
27448
  var i = A(e, "x", "maxPool"), s = i, u = !1;
@@ -27431,7 +27453,7 @@ function Bg(e, n, t, r, o, a) {
27431
27453
  }), a != null && F(Qt(o), function() {
27432
27454
  return "Error in maxPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
27433
27455
  });
27434
- var l = li(s.shape, n, t, r, o, a);
27456
+ var l = ci(s.shape, n, t, r, o, a);
27435
27457
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
27436
27458
  var c = [s], d = U.runKernelFunc(function(f, h) {
27437
27459
  var p = f.maxPool(s, l);
@@ -27450,7 +27472,7 @@ function Bg(e, n, t, r, o, a) {
27450
27472
  }), F(C.rank === 4, function() {
27451
27473
  return "Error in maxPoolBackprop: input must be rank 4 but got rank " + C.rank + ".";
27452
27474
  });
27453
- var M = li(C.shape, b, y, x, _, E);
27475
+ var M = ci(C.shape, b, y, x, _, E);
27454
27476
  return U.runKernelFunc(function(I) {
27455
27477
  return I.maxPoolBackprop(R, C, S, M);
27456
27478
  }, { $dy: R, $input: C });
@@ -27470,7 +27492,7 @@ function Og(e, n, t, r, o, a) {
27470
27492
  }), a != null && F(Qt(o), function() {
27471
27493
  return "Error in avgPool: pad must be an integer when using, dimRoundingMode " + a + " but got pad " + o + ".";
27472
27494
  });
27473
- var l = li(s.shape, n, t, r, o, a);
27495
+ var l = ci(s.shape, n, t, r, o, a);
27474
27496
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
27475
27497
  var c = U.runKernelFunc(function(d) {
27476
27498
  return d.avgPool(s, l);
@@ -27489,7 +27511,7 @@ function Og(e, n, t, r, o, a) {
27489
27511
  }), F(y.rank === 4, function() {
27490
27512
  return "Error in avgPoolBackprop: input must be rank 4 but got rank " + y.rank + ".";
27491
27513
  });
27492
- var E = li(y.shape, p, v, m, g), R = U.runKernelFunc(function(C) {
27514
+ var E = ci(y.shape, p, v, m, g), R = U.runKernelFunc(function(C) {
27493
27515
  return C.avgPoolBackprop(x, y, E);
27494
27516
  }, { dy4D: x, input4D: y });
27495
27517
  return _ ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
@@ -27500,15 +27522,15 @@ function Og(e, n, t, r, o, a) {
27500
27522
  }
27501
27523
  var cn = z({ maxPool_: function(e, n, t, r, o) {
27502
27524
  return Bg(e, n, t, 1, r, o);
27503
- } }), Ai = z({ avgPool_: function(e, n, t, r, o) {
27525
+ } }), Di = z({ avgPool_: function(e, n, t, r, o) {
27504
27526
  return Og(e, n, t, 1, r, o);
27505
- } }), J5 = z({ pool_: function(e, n, t, r, o, a) {
27527
+ } }), JR = z({ pool_: function(e, n, t, r, o, a) {
27506
27528
  o == null && (o = [1, 1]), a == null && (a = 1), r === 0 && (r = "valid");
27507
27529
  var i = A(e, "x", "maxPool"), s = i, u = !1;
27508
27530
  i.rank === 3 && (u = !0, s = i.as4D(1, i.shape[0], i.shape[1], i.shape[2])), F(zn(a, o), function() {
27509
27531
  return "Error in pool: Either strides or dilations must be 1. Got strides " + a + " and dilations '" + o + "'";
27510
27532
  });
27511
- var l, c = li(s.shape, n, a, o, r), d = [c.dilationHeight, c.dilationWidth];
27533
+ var l, c = ci(s.shape, n, a, o, r), d = [c.dilationHeight, c.dilationWidth];
27512
27534
  l = r === "same" ? function(y, x) {
27513
27535
  var _ = y.map(function(C, S) {
27514
27536
  return C + (C - 1) * (x[S] - 1);
@@ -28136,7 +28158,7 @@ var Pd = z({ hannWindow_: function(e) {
28136
28158
  case 1:
28137
28159
  return i = g.sent(), [4, o.data()];
28138
28160
  case 2:
28139
- for (s = g.sent(), u = [i.length / a, a], c = u[1], d = ii("bool", l = u[0]), f = 0; f < l; f++) {
28161
+ for (s = g.sent(), u = [i.length / a, a], c = u[1], d = si("bool", l = u[0]), f = 0; f < l; f++) {
28140
28162
  for (h = f * c, p = i.subarray(h, h + c), v = [], m = 0; m < p.length; m++) v.push({ value: p[m], index: m });
28141
28163
  for (v.sort(function(w, b) {
28142
28164
  return b.value - w.value;
@@ -28580,7 +28602,7 @@ var $I = z({ resizeBilinear_: function(e, n, t) {
28580
28602
  } }, B);
28581
28603
  }, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, E, [!0]);
28582
28604
  return w ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
28583
- } }), JI = Object.freeze({ matMul: YI, conv2d: QI, depthwiseConv2d: ZI }), eT = Object.freeze({ image: Od, linalg: WI, losses: LI, spectral: CI, fused: JI, signal: II, square: PR, squaredDifference: mg, conv1d: $5, conv2d: ar, conv3d: H5, depthwiseConv2d: gu, separableConv2d: Dd, conv2dTranspose: U5, conv3dTranspose: j5, op: z, batchNormalization2d: c5, batchNormalization3d: d5, batchNormalization4d: f5, batchNormalization: h5, batchNorm: _g, batchNorm2d: p5, batchNorm3d: v5, batchNorm4d: m5, booleanMaskAsync: W5, complex: yn, real: rr, imag: xr, concat: rn, concat1d: JS, concat2d: e4, concat3d: t4, concat4d: n4, split: gd, matMul: yu, dot: G5, outerProduct: K5, reverse: Ti, reverse1d: X5, reverse2d: Y5, reverse3d: Q5, reverse4d: Z5, maxPool: cn, avgPool: Ai, pool: J5, maxPool3d: eI, avgPool3d: tI, slice: Rr, slice1d: nI, slice2d: rI, slice3d: Ng, slice4d: oI, abs: BR, acos: OR, acosh: NR, asin: LR, asinh: qR, atan: VR, atanh: zR, ceil: WR, clipByValue: Rd, cos: $R, cosh: HR, erf: UR, exp: Ec, expm1: jR, floor: GR, log: KR, log1p: XR, logSigmoid: YR, neg: Ws, reciprocal: QR, round: ZR, rsqrt: gg, sigmoid: yg, sign: JR, isNaN: e5, isInf: t5, isFinite: n5, sin: r5, sinh: o5, softplus: a5, sqrt: i5, step: s5, tan: u5, tanh: l5, all: aI, any: iI, argMax: sI, argMin: uI, logSumExp: lI, max: bu, mean: cI, min: dI, moments: fI, sum: qg, prod: hI, equal: Rg, equalStrict: M5, greater: F5, greaterEqual: Ig, greaterEqualStrict: P5, greaterStrict: B5, less: O5, lessEqual: N5, lessEqualStrict: L5, lessStrict: q5, notEqual: V5, notEqualStrict: z5, add: ft, addN: b5, addStrict: w5, atan2: x5, div: ur, divNoNan: _5, divStrict: C5, floorDiv: Sg, maximum: Id, maximumStrict: k5, minimum: Eg, minimumStrict: S5, mod: E5, modStrict: R5, mul: In, mulStrict: I5, pow: $s, powStrict: T5, squaredDifferenceStrict: A5, sub: sn, subStrict: D5, elu: Vg, leakyRelu: pI, prelu: zg, relu: Ht, relu6: Wg, selu: vI, logicalAnd: mu, logicalNot: g5, logicalOr: Cg, logicalXor: y5, where: Lo, whereAsync: kg, buffer: ot, print: d4, batchToSpaceND: qm, broadcastTo: f4, cast: h4, clone: p4, cumsum: v4, depthToSpace: m4, expandDims: tr, eye: Vm, multinomial: g4, oneHot: _c, pad: zo, pad1d: y4, pad2d: b4, pad3d: w4, pad4d: x4, rand: _4, randomNormal: C4, randomGamma: k4, randomUniform: zm, reshape: lr, spaceToBatchND: Wm, squeeze: $m, stack: Yn, tile: ha, truncatedNormal: S4, unstack: on, setdiff1dAsync: E4, fill: Sr, linspace: ZS, ones: qa, range: Ps, scalar: we, tensor: wn, tensor1d: en, tensor2d: so, tensor3d: md, tensor4d: Fn, tensor5d: XS, tensor6d: YS, variable: QS, zeros: Vt, onesLike: Lm, zerosLike: yt, transpose: fo, softmax: jr, logSoftmax: F4, localResponseNormalization: mI, norm: $g, gather: Td, unsortedSegmentSum: Tg, basicLSTMCell: gI, multiRNNCell: yI, movingAverage: bI, stridedSlice: wI, topk: xI, scatterND: _I, fft: Md, ifft: Hs, rfft: Fd, irfft: Hg, sparseToDense: kI, gatherND: SI, diag: EI, dropout: RI, hannWindow: Pd, hammingWindow: jg, frame: Bd, stft: Gg, inTopKAsync: TI });
28605
+ } }), JI = Object.freeze({ matMul: YI, conv2d: QI, depthwiseConv2d: ZI }), eT = Object.freeze({ image: Od, linalg: WI, losses: LI, spectral: CI, fused: JI, signal: II, square: P5, squaredDifference: mg, conv1d: $R, conv2d: ar, conv3d: HR, depthwiseConv2d: gu, separableConv2d: Dd, conv2dTranspose: UR, conv3dTranspose: jR, op: z, batchNormalization2d: cR, batchNormalization3d: dR, batchNormalization4d: fR, batchNormalization: hR, batchNorm: _g, batchNorm2d: pR, batchNorm3d: vR, batchNorm4d: mR, booleanMaskAsync: WR, complex: yn, real: rr, imag: xr, concat: rn, concat1d: JS, concat2d: e4, concat3d: t4, concat4d: n4, split: gd, matMul: yu, dot: GR, outerProduct: KR, reverse: Ai, reverse1d: XR, reverse2d: YR, reverse3d: QR, reverse4d: ZR, maxPool: cn, avgPool: Di, pool: JR, maxPool3d: eI, avgPool3d: tI, slice: Rr, slice1d: nI, slice2d: rI, slice3d: Ng, slice4d: oI, abs: B5, acos: O5, acosh: N5, asin: L5, asinh: q5, atan: V5, atanh: z5, ceil: W5, clipByValue: Rd, cos: $5, cosh: H5, erf: U5, exp: Ec, expm1: j5, floor: G5, log: K5, log1p: X5, logSigmoid: Y5, neg: Ws, reciprocal: Q5, round: Z5, rsqrt: gg, sigmoid: yg, sign: J5, isNaN: eR, isInf: tR, isFinite: nR, sin: rR, sinh: oR, softplus: aR, sqrt: iR, step: sR, tan: uR, tanh: lR, all: aI, any: iI, argMax: sI, argMin: uI, logSumExp: lI, max: bu, mean: cI, min: dI, moments: fI, sum: qg, prod: hI, equal: Rg, equalStrict: MR, greater: FR, greaterEqual: Ig, greaterEqualStrict: PR, greaterStrict: BR, less: OR, lessEqual: NR, lessEqualStrict: LR, lessStrict: qR, notEqual: VR, notEqualStrict: zR, add: ft, addN: bR, addStrict: wR, atan2: xR, div: ur, divNoNan: _R, divStrict: CR, floorDiv: Sg, maximum: Id, maximumStrict: kR, minimum: Eg, minimumStrict: SR, mod: ER, modStrict: RR, mul: In, mulStrict: IR, pow: $s, powStrict: TR, squaredDifferenceStrict: AR, sub: sn, subStrict: DR, elu: Vg, leakyRelu: pI, prelu: zg, relu: Ht, relu6: Wg, selu: vI, logicalAnd: mu, logicalNot: gR, logicalOr: Cg, logicalXor: yR, where: Lo, whereAsync: kg, buffer: ot, print: d4, batchToSpaceND: qm, broadcastTo: f4, cast: h4, clone: p4, cumsum: v4, depthToSpace: m4, expandDims: tr, eye: Vm, multinomial: g4, oneHot: _c, pad: zo, pad1d: y4, pad2d: b4, pad3d: w4, pad4d: x4, rand: _4, randomNormal: C4, randomGamma: k4, randomUniform: zm, reshape: lr, spaceToBatchND: Wm, squeeze: $m, stack: Yn, tile: ha, truncatedNormal: S4, unstack: on, setdiff1dAsync: E4, fill: Sr, linspace: ZS, ones: qa, range: Ps, scalar: we, tensor: wn, tensor1d: en, tensor2d: so, tensor3d: md, tensor4d: Fn, tensor5d: XS, tensor6d: YS, variable: QS, zeros: Vt, onesLike: Lm, zerosLike: yt, transpose: fo, softmax: jr, logSoftmax: F4, localResponseNormalization: mI, norm: $g, gather: Td, unsortedSegmentSum: Tg, basicLSTMCell: gI, multiRNNCell: yI, movingAverage: bI, stridedSlice: wI, topk: xI, scatterND: _I, fft: Md, ifft: Hs, rfft: Fd, irfft: Hg, sparseToDense: kI, gatherND: SI, diag: EI, dropout: RI, hannWindow: Pd, hammingWindow: jg, frame: Bd, stft: Gg, inTopKAsync: TI });
28584
28606
  function ce(e, n) {
28585
28607
  Array.isArray(e) || (e = [e]), e.forEach(function(t) {
28586
28608
  t != null && F(t.dtype !== "complex64", function() {
@@ -29686,7 +29708,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29686
29708
  }, n.prototype.gatherND = function(t, r) {
29687
29709
  var o = r.shape, a = o[o.length - 1], i = jm(t, r), s = i[0], u = i[1], l = i[2], c = i[3];
29688
29710
  if (u === 0) return wn([], s, t.dtype);
29689
- for (var d = new si([u, l], t.dtype), f = this.readSync(r.dataId), h = this.readSync(t.dataId), p = 0; p < u; p++) {
29711
+ for (var d = new ui([u, l], t.dtype), f = this.readSync(r.dataId), h = this.readSync(t.dataId), p = 0; p < u; p++) {
29690
29712
  for (var v = [], m = 0, g = 0; g < a; g++) {
29691
29713
  var w = f[p * a + g];
29692
29714
  m += w * c[g], v.push(w);
@@ -29699,7 +29721,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29699
29721
  var a = Ls(0, t, o), i = a.sliceRank, s = a.numUpdates, u = a.sliceSize, l = a.strides, c = a.outputSize, d = we(0);
29700
29722
  return this.scatter(t, r, o, c, u, s, i, l, d, !0);
29701
29723
  }, n.prototype.fill = function(t, r, o) {
29702
- var a = Is(o = o || ki(r), Be(t));
29724
+ var a = Is(o = o || Si(r), Be(t));
29703
29725
  return a.fill(r), U.makeTensor(a, t, o, this);
29704
29726
  }, n.prototype.onesLike = function(t) {
29705
29727
  if (t.dtype === "string") throw new Error("onesLike is not supported for string tensors");
@@ -29712,7 +29734,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29712
29734
  }, n.prototype.scatter = function(t, r, o, a, i, s, u, l, c, d) {
29713
29735
  var f = [a / i, i], h = this.readSync(t.dataId), p = this.readSync(r.dataId);
29714
29736
  if (a === 0) return wn([], o, r.dtype);
29715
- var v = new si(f, r.dtype);
29737
+ var v = new ui(f, r.dtype);
29716
29738
  v.values.fill(this.readSync(c.dataId)[0]);
29717
29739
  for (var m = 0; m < s; m++) {
29718
29740
  for (var g = [], w = 0, b = 0; b < u; b++) {
@@ -29741,11 +29763,11 @@ for (var Fl = 0, pp = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu",
29741
29763
  i[s] = u * u;
29742
29764
  }
29743
29765
  return { dataId: o.write(i, r.shape, r.dtype), shape: r.shape, dtype: r.dtype };
29744
- } }, { kernelName: ci, backendName: "cpu", kernelFunc: function(e) {
29766
+ } }, { kernelName: di, backendName: "cpu", kernelFunc: function(e) {
29745
29767
  var n = e.inputs, t = e.backend, r = n, o = r.a, a = r.b, i = t;
29746
- ce([o, a], ci);
29768
+ ce([o, a], di);
29747
29769
  var s = i.data.get(o.dataId).values, u = i.data.get(a.dataId).values, l = function(f, h, p, v, m, g) {
29748
- var w = pt(f, h), b = w.length, y = kr(w), x = ii(m, Be(w)), _ = f.length, E = h.length, R = kr(f), C = kr(h), S = oo(f, w), M = oo(h, w);
29770
+ var w = pt(f, h), b = w.length, y = kr(w), x = si(m, Be(w)), _ = f.length, E = h.length, R = kr(f), C = kr(h), S = oo(f, w), M = oo(h, w);
29749
29771
  if (S.length + M.length === 0) for (var I = 0; I < x.length; ++I) x[I] = g(p[I % p.length], v[I % v.length]);
29750
29772
  else {
29751
29773
  var W = function(D) {
@@ -29850,7 +29872,7 @@ for (var Pl = 0, vp = [{ kernelName: "FromPixels", backendName: "webgl", kernelF
29850
29872
  } }, { kernelName: "Square", backendName: "webgl", kernelFunc: function(e) {
29851
29873
  var n = e.inputs, t = e.backend, r = n.x, o = t, a = new lt(r.shape, "return x * x;");
29852
29874
  return o.runWebGLProgram(a, [r], r.dtype);
29853
- } }, { kernelName: ci, backendName: "webgl", kernelFunc: function(e) {
29875
+ } }, { kernelName: di, backendName: "webgl", kernelFunc: function(e) {
29854
29876
  var n = e.inputs, t = e.backend, r = n, o = r.a, a = r.b, i = t, s = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr("return (a - b) * (a - b);", o.shape, a.shape) : new Gt("return (a - b) * (a - b);", o.shape, a.shape);
29855
29877
  return i.compileAndRun(s, [o, a]);
29856
29878
  } }]; Pl < vp.length; Pl++)
@@ -29860,7 +29882,7 @@ for (var Bl = 0, mp = [{ kernelName: "Square", gradFunc: function(e, n) {
29860
29882
  return { x: function() {
29861
29883
  return e.mul(t.toFloat().mul(2));
29862
29884
  } };
29863
- } }, { kernelName: ci, gradFunc: function(e, n) {
29885
+ } }, { kernelName: di, gradFunc: function(e, n) {
29864
29886
  var t = n[0], r = n[1], o = we(2);
29865
29887
  return { a: function() {
29866
29888
  return In(e, In(o, sn(t, r)));
@@ -29975,7 +29997,7 @@ function yp(e) {
29975
29997
  var n = e.split("/");
29976
29998
  return n[n.length - 1];
29977
29999
  }
29978
- function Di(e) {
30000
+ function Mi(e) {
29979
30001
  if (e.modelTopology instanceof ArrayBuffer) throw new Error("Expected JSON model topology, received ArrayBuffer.");
29980
30002
  return { dateSaved: /* @__PURE__ */ new Date(), modelTopologyType: "JSON", modelTopologyBytes: e.modelTopology == null ? 0 : gp(JSON.stringify(e.modelTopology)), weightSpecsBytes: e.weightSpecs == null ? 0 : gp(JSON.stringify(e.weightSpecs)), weightDataBytes: e.weightData == null ? 0 : e.weightData.byteLength };
29981
30003
  }
@@ -30024,7 +30046,7 @@ var Gn = function() {
30024
30046
  return Object.keys(this.getInstance().managers);
30025
30047
  }, e;
30026
30048
  }();
30027
- function ls(e) {
30049
+ function cs(e) {
30028
30050
  if (e.indexOf(va) === -1) throw new Error("The url string provided does not contain a scheme. Supported schemes are: " + uo.getSchemes().join(","));
30029
30051
  return { scheme: e.split(va)[0], path: e.split(va)[1] };
30030
30052
  }
@@ -30044,7 +30066,7 @@ function bp(e, n, t) {
30044
30066
  return "Copying failed because no save handler is found for destination URL " + n + ".";
30045
30067
  }), F(a.length < 2, function() {
30046
30068
  return "Copying failed because more than one (" + r.length + ") save handlers for destination URL " + n + ".";
30047
- }), i = a[0], s = ls(e).scheme, u = ls(e).path, l = s === ls(e).scheme, [4, o.load()];
30069
+ }), i = a[0], s = cs(e).scheme, u = cs(e).path, l = s === cs(e).scheme, [4, o.load()];
30048
30070
  case 1:
30049
30071
  return c = f.sent(), t && l ? [4, uo.getManager(s).removeModel(u)] : [3, 3];
30050
30072
  case 2:
@@ -30109,7 +30131,7 @@ var ma = function() {
30109
30131
  return s.close();
30110
30132
  };
30111
30133
  } else {
30112
- var c, d = Di(t), f = s.transaction(ao, "readwrite"), h = f.objectStore(ao), p = h.put({ modelPath: r.modelPath, modelArtifactsInfo: d });
30134
+ var c, d = Mi(t), f = s.transaction(ao, "readwrite"), h = f.objectStore(ao), p = h.put({ modelPath: r.modelPath, modelArtifactsInfo: d });
30113
30135
  p.onsuccess = function() {
30114
30136
  var v = (c = s.transaction(Io, "readwrite")).objectStore(Io).put({ modelPath: r.modelPath, modelArtifacts: t, modelArtifactsInfo: d });
30115
30137
  v.onsuccess = function() {
@@ -30234,7 +30256,7 @@ var ga = function() {
30234
30256
  var t, r, o;
30235
30257
  return De(this, function(a) {
30236
30258
  if (n.modelTopology instanceof ArrayBuffer) throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");
30237
- t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = Di(n);
30259
+ t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = Mi(n);
30238
30260
  try {
30239
30261
  return this.LS.setItem(this.keys.info, JSON.stringify(o)), this.LS.setItem(this.keys.topology, t), this.LS.setItem(this.keys.weightSpecs, r), this.LS.setItem(this.keys.weightData, function(i) {
30240
30262
  if (Ic) return Buffer.from(i).toString("base64");
@@ -30334,7 +30356,7 @@ var Nl = function() {
30334
30356
  case 3:
30335
30357
  u.sent(), u.label = 4;
30336
30358
  case 4:
30337
- return [2, { modelArtifactsInfo: Di(n) }];
30359
+ return [2, { modelArtifactsInfo: Mi(n) }];
30338
30360
  }
30339
30361
  });
30340
30362
  });
@@ -30531,7 +30553,7 @@ var Jg = function() {
30531
30553
  if (n.modelTopology instanceof ArrayBuffer) throw new Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");
30532
30554
  return (t = Object.assign({ method: this.DEFAULT_METHOD }, this.requestInit)).body = new FormData(), r = [{ paths: ["./model.weights.bin"], weights: n.weightSpecs }], o = { modelTopology: n.modelTopology, format: n.format, generatedBy: n.generatedBy, convertedBy: n.convertedBy, userDefinedMetadata: n.userDefinedMetadata, weightsManifest: r }, t.body.append("model.json", new Blob([JSON.stringify(o)], { type: "application/json" }), "model.json"), n.weightData != null && t.body.append("model.weights.bin", new Blob([n.weightData], { type: "application/octet-stream" }), "model.weights.bin"), [4, this.fetch(this.path, t)];
30533
30555
  case 1:
30534
- if ((a = i.sent()).ok) return [2, { modelArtifactsInfo: Di(n), responses: [a] }];
30556
+ if ((a = i.sent()).ok) return [2, { modelArtifactsInfo: Mi(n), responses: [a] }];
30535
30557
  throw new Error("BrowserHTTPRequest.save() failed due to HTTP response status " + a.status + ".");
30536
30558
  }
30537
30559
  });
@@ -30665,7 +30687,7 @@ var Ll = function() {
30665
30687
  return arguments.length === 1 ? e.modelTopology != null || e.weightSpecs != null ? new Ll(e) : (console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."), new Ll({ modelTopology: e })) : (console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."), new Ll({ modelTopology: e, weightSpecs: n, weightData: t, trainingConfig: r }));
30666
30688
  }, getLoadHandlers: function(e, n) {
30667
30689
  return Gn.getLoadHandlers(e, n);
30668
- }, getModelArtifactsInfoForJSON: Di, getSaveHandlers: function(e) {
30690
+ }, getModelArtifactsInfoForJSON: Mi, getSaveHandlers: function(e) {
30669
30691
  return Gn.getSaveHandlers(e);
30670
30692
  }, http: Dc, isHTTPScheme: Ac, loadWeights: function(e, n, t, r) {
30671
30693
  return n === void 0 && (n = ""), Ae(this, void 0, void 0, function() {
@@ -30716,7 +30738,7 @@ var Ll = function() {
30716
30738
  return Ae(this, void 0, void 0, function() {
30717
30739
  var n;
30718
30740
  return De(this, function(t) {
30719
- return n = ls(e), [2, uo.getManager(n.scheme).removeModel(n.path)];
30741
+ return n = cs(e), [2, uo.getManager(n.scheme).removeModel(n.path)];
30720
30742
  });
30721
30743
  });
30722
30744
  } }), ea;
@@ -31529,7 +31551,7 @@ function Hd(e) {
31529
31551
  return n.add(t);
31530
31552
  }, new Ct(0, 0)).div(new Ct(e.length, e.length));
31531
31553
  }
31532
- function di(e, n, t) {
31554
+ function fi(e, n, t) {
31533
31555
  return Array(e).fill(0).map(function(r, o) {
31534
31556
  return n + o * t;
31535
31557
  });
@@ -31818,7 +31840,7 @@ function FT(e) {
31818
31840
  }, 0);
31819
31841
  return new Cu(r, o, a, i);
31820
31842
  }
31821
- function fi(e, n, t, r) {
31843
+ function hi(e, n, t, r) {
31822
31844
  r === void 0 && (r = !0);
31823
31845
  for (var o = n.map(function(s, u) {
31824
31846
  return { score: s, boxIndex: u };
@@ -31840,7 +31862,7 @@ function fi(e, n, t, r) {
31840
31862
  i();
31841
31863
  return a;
31842
31864
  }
31843
- function Mi(e, n) {
31865
+ function Fi(e, n) {
31844
31866
  return Re(function() {
31845
31867
  var t = n[0], r = n[1], o = n[2], a = Sr(ti(e.shape.slice(0, 3), [1]), t), i = Sr(ti(e.shape.slice(0, 3), [1]), r), s = Sr(ti(e.shape.slice(0, 3), [1]), o), u = rn([a, i, s], 3);
31846
31868
  return sn(e, u);
@@ -32032,7 +32054,7 @@ var ku = (
32032
32054
  configurable: !0
32033
32055
  }), n;
32034
32056
  }(Ir)
32035
- ), Qi = (
32057
+ ), Zi = (
32036
32058
  /** @class */
32037
32059
  function() {
32038
32060
  function e(n, t) {
@@ -32094,10 +32116,10 @@ var ku = (
32094
32116
  configurable: !0
32095
32117
  }), n;
32096
32118
  })(Ap);
32097
- function hi(e) {
32119
+ function pi(e) {
32098
32120
  return e.detection instanceof Qn;
32099
32121
  }
32100
- function pi(e, n) {
32122
+ function vi(e, n) {
32101
32123
  var t = { detection: n };
32102
32124
  return Object.assign({}, e, t);
32103
32125
  }
@@ -32328,7 +32350,7 @@ var l0 = (
32328
32350
  function $T(e, n) {
32329
32351
  var t = Array.isArray(n) ? n : [n];
32330
32352
  t.forEach(function(r) {
32331
- var o = r instanceof Qn ? r.score : hi(r) ? r.detection.score : void 0, a = r instanceof Qn ? r.box : hi(r) ? r.detection.box : new Ir(r), i = o ? "" + $d(o) : void 0;
32353
+ var o = r instanceof Qn ? r.score : pi(r) ? r.detection.score : void 0, a = r instanceof Qn ? r.box : pi(r) ? r.detection.box : new Ir(r), i = o ? "" + $d(o) : void 0;
32332
32354
  new WT(a, { label: i }).draw(e);
32333
32355
  });
32334
32356
  }
@@ -32453,7 +32475,7 @@ var js = (
32453
32475
  }), Object.defineProperty(e.prototype, "reshapedInputDimensions", {
32454
32476
  get: function() {
32455
32477
  var n = this;
32456
- return di(this.batchSize, 0, 1).map(function(t, r) {
32478
+ return fi(this.batchSize, 0, 1).map(function(t, r) {
32457
32479
  return n.getReshapedInputDimensions(r);
32458
32480
  });
32459
32481
  },
@@ -32475,7 +32497,7 @@ var js = (
32475
32497
  }, e.prototype.toBatchTensor = function(n, t) {
32476
32498
  var r = this;
32477
32499
  return t === void 0 && (t = !0), this._inputSize = n, Re(function() {
32478
- var o = di(r.batchSize, 0, 1).map(function(i) {
32500
+ var o = fi(r.batchSize, 0, 1).map(function(i) {
32479
32501
  var s = r.getInput(i);
32480
32502
  if (s instanceof $t) {
32481
32503
  var u = lo(s) ? s : s.expandDims();
@@ -32802,7 +32824,7 @@ function Vl(e, n, t) {
32802
32824
  return Ht(ft(r, ft(o, i)));
32803
32825
  });
32804
32826
  }
32805
- function Zi(e, n, t, r) {
32827
+ function Ji(e, n, t, r) {
32806
32828
  return t === void 0 && (t = !1), r === void 0 && (r = !0), Re(function() {
32807
32829
  var o = Ht(t ? ft(ar(e, n.conv0.filters, r ? [2, 2] : [1, 1], "same"), n.conv0.bias) : Kn(e, n.conv0, r ? [2, 2] : [1, 1])), a = Kn(o, n.conv1, [1, 1]), i = Ht(ft(o, a)), s = Kn(i, n.conv2, [1, 1]), u = Ht(ft(o, ft(a, s))), l = Kn(u, n.conv3, [1, 1]);
32808
32830
  return Ht(ft(o, ft(a, ft(s, l))));
@@ -32949,8 +32971,8 @@ var g0 = (
32949
32971
  if (!r)
32950
32972
  throw new Error("FaceFeatureExtractor - load model before inference");
32951
32973
  return Re(function() {
32952
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(255)), s = Zi(i, r.dense0, !0);
32953
- return s = Zi(s, r.dense1), s = Zi(s, r.dense2), s = Zi(s, r.dense3), s = Ai(s, [7, 7], [2, 2], "valid"), s;
32974
+ var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Fi(o, a).div(we(255)), s = Ji(i, r.dense0, !0);
32975
+ return s = Ji(s, r.dense1), s = Ji(s, r.dense2), s = Ji(s, r.dense3), s = Di(s, [7, 7], [2, 2], "valid"), s;
32954
32976
  });
32955
32977
  }, n.prototype.forward = function(t) {
32956
32978
  return Le(this, void 0, void 0, function() {
@@ -33141,14 +33163,14 @@ function r6(e, n, t, r) {
33141
33163
  throw new Error("drawFaceExpressions - expected faceExpressions to be FaceExpressions | WithFaceExpressions<{}> or array thereof");
33142
33164
  var s = i.asSortedArray(), u = s.filter(function(d) {
33143
33165
  return d.probability > t;
33144
- }), l = hi(a) ? a.detection.box.bottomLeft : new Ct(0, 0), c = new c0(u.map(function(d) {
33166
+ }), l = pi(a) ? a.detection.box.bottomLeft : new Ct(0, 0), c = new c0(u.map(function(d) {
33145
33167
  return d.expression + " (" + $d(d.probability) + ")";
33146
33168
  }), l);
33147
33169
  c.draw(e);
33148
33170
  });
33149
33171
  }
33150
33172
  function Jd(e) {
33151
- return hi(e) && e.landmarks instanceof Ia && e.unshiftedLandmarks instanceof Ia && e.alignedRect instanceof Qn;
33173
+ return pi(e) && e.landmarks instanceof Ia && e.unshiftedLandmarks instanceof Ia && e.alignedRect instanceof Qn;
33152
33174
  }
33153
33175
  function Tu(e, n) {
33154
33176
  var t = e.detection.box, r = n.shiftBy(t.x, t.y), o = r.align(), a = e.detection.imageDims, i = new Qn(e.detection.score, o.rescale(a.reverse()), a), s = {
@@ -33218,7 +33240,7 @@ function u6(e, n) {
33218
33240
  reduction_block_0: f,
33219
33241
  reduction_block_1: h
33220
33242
  }, v = {};
33221
- di(n, 0, 1).forEach(function(b) {
33243
+ fi(n, 0, 1).forEach(function(b) {
33222
33244
  v["main_block_" + b] = c(128, "middle_flow/main_block_" + b);
33223
33245
  });
33224
33246
  var m = l(128, 256, "exit_flow/reduction_block"), g = u(256, 512, "exit_flow/separable_conv"), w = {
@@ -33255,7 +33277,7 @@ function c6(e, n) {
33255
33277
  reduction_block_0: l,
33256
33278
  reduction_block_1: c
33257
33279
  }, f = {};
33258
- di(n, 0, 1).forEach(function(m) {
33280
+ fi(n, 0, 1).forEach(function(m) {
33259
33281
  f["main_block_" + m] = s("middle_flow/main_block_" + m);
33260
33282
  });
33261
33283
  var h = i("exit_flow/reduction_block"), p = a("exit_flow/separable_conv"), v = {
@@ -33289,8 +33311,8 @@ var f6 = (
33289
33311
  if (!o)
33290
33312
  throw new Error("TinyXception - load model before inference");
33291
33313
  return Re(function() {
33292
- var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = Mi(a, i).div(we(256)), u = Ht(x0(s, o.entry_flow.conv_in, [2, 2]));
33293
- return u = zl(u, o.entry_flow.reduction_block_0, !1), u = zl(u, o.entry_flow.reduction_block_1), di(r._numMainBlocks, 0, 1).forEach(function(l) {
33314
+ var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = Fi(a, i).div(we(256)), u = Ht(x0(s, o.entry_flow.conv_in, [2, 2]));
33315
+ return u = zl(u, o.entry_flow.reduction_block_0, !1), u = zl(u, o.entry_flow.reduction_block_1), fi(r._numMainBlocks, 0, 1).forEach(function(l) {
33294
33316
  u = d6(u, o.middle_flow["main_block_" + l]);
33295
33317
  }), u = zl(u, o.exit_flow.reduction_block), u = Ht(Kn(u, o.exit_flow.separable_conv, [1, 1])), u;
33296
33318
  });
@@ -33362,7 +33384,7 @@ var v6 = (
33362
33384
  if (!o)
33363
33385
  throw new Error(this._name + " - load model before inference");
33364
33386
  return Re(function() {
33365
- var a = t instanceof js ? r.faceFeatureExtractor.forwardInput(t) : t, i = Ai(a, [7, 7], [2, 2], "valid").as2D(a.shape[0], -1), s = _r(i, o.fc.age).as1D(), u = _r(i, o.fc.gender);
33387
+ var a = t instanceof js ? r.faceFeatureExtractor.forwardInput(t) : t, i = Di(a, [7, 7], [2, 2], "valid").as2D(a.shape[0], -1), s = _r(i, o.fc.age).as1D(), u = _r(i, o.fc.gender);
33366
33388
  return { age: s, gender: u };
33367
33389
  });
33368
33390
  }, n.prototype.forwardInput = function(t) {
@@ -33582,8 +33604,8 @@ var y6 = (
33582
33604
  if (!r)
33583
33605
  throw new Error("TinyFaceFeatureExtractor - load model before inference");
33584
33606
  return Re(function() {
33585
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(255)), s = Vl(i, r.dense0, !0);
33586
- return s = Vl(s, r.dense1), s = Vl(s, r.dense2), s = Ai(s, [14, 14], [2, 2], "valid"), s;
33607
+ var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Fi(o, a).div(we(255)), s = Vl(i, r.dense0, !0);
33608
+ return s = Vl(s, r.dense1), s = Vl(s, r.dense2), s = Di(s, [14, 14], [2, 2], "valid"), s;
33587
33609
  });
33588
33610
  }, n.prototype.forward = function(t) {
33589
33611
  return Le(this, void 0, void 0, function() {
@@ -33752,10 +33774,10 @@ function gr(e, n) {
33752
33774
  var t = x6(e, n.conv1);
33753
33775
  return t = k0(t, n.conv2), t = ft(t, e), t = Ht(t), t;
33754
33776
  }
33755
- function Ji(e, n) {
33777
+ function es(e, n) {
33756
33778
  var t = S0(e, n.conv1);
33757
33779
  t = k0(t, n.conv2);
33758
- var r = Ai(e, 2, 2, "valid"), o = Vt(r.shape), a = r.shape[3] !== t.shape[3], i = r.shape[1] !== t.shape[1] || r.shape[2] !== t.shape[2];
33780
+ var r = Di(e, 2, 2, "valid"), o = Vt(r.shape), a = r.shape[3] !== t.shape[3], i = r.shape[1] !== t.shape[1] || r.shape[2] !== t.shape[2];
33759
33781
  if (i) {
33760
33782
  var s = ti(t.shape);
33761
33783
  s[1] = 1;
@@ -33780,8 +33802,8 @@ var E6 = (
33780
33802
  if (!r)
33781
33803
  throw new Error("FaceRecognitionNet - load model before inference");
33782
33804
  return Re(function() {
33783
- var o = t.toBatchTensor(150, !0).toFloat(), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(256)), s = S0(i, r.conv32_down);
33784
- s = cn(s, 3, 2, "valid"), s = gr(s, r.conv32_1), s = gr(s, r.conv32_2), s = gr(s, r.conv32_3), s = Ji(s, r.conv64_down), s = gr(s, r.conv64_1), s = gr(s, r.conv64_2), s = gr(s, r.conv64_3), s = Ji(s, r.conv128_down), s = gr(s, r.conv128_1), s = gr(s, r.conv128_2), s = Ji(s, r.conv256_down), s = gr(s, r.conv256_1), s = gr(s, r.conv256_2), s = Ji(s, r.conv256_down_out);
33805
+ var o = t.toBatchTensor(150, !0).toFloat(), a = [122.782, 117.001, 104.298], i = Fi(o, a).div(we(256)), s = S0(i, r.conv32_down);
33806
+ s = cn(s, 3, 2, "valid"), s = gr(s, r.conv32_1), s = gr(s, r.conv32_2), s = gr(s, r.conv32_3), s = es(s, r.conv64_down), s = gr(s, r.conv64_1), s = gr(s, r.conv64_2), s = gr(s, r.conv64_3), s = es(s, r.conv128_down), s = gr(s, r.conv128_1), s = gr(s, r.conv128_2), s = es(s, r.conv256_down), s = gr(s, r.conv256_1), s = gr(s, r.conv256_2), s = es(s, r.conv256_down_out);
33785
33807
  var u = s.mean([1, 2]), l = yu(u, r.fc);
33786
33808
  return l;
33787
33809
  });
@@ -34326,7 +34348,7 @@ var z6 = 0.4, W6 = [
34326
34348
  new Ct(2.882459, 3.518061),
34327
34349
  new Ct(4.266906, 5.178857),
34328
34350
  new Ct(9.041765, 10.66308)
34329
- ], H6 = [117.001, 114.697, 97.404], U6 = "tiny_yolov2_model", j6 = "tiny_yolov2_separable_conv_model", es = function(e) {
34351
+ ], H6 = [117.001, 114.697, 97.404], U6 = "tiny_yolov2_model", j6 = "tiny_yolov2_separable_conv_model", ts = function(e) {
34330
34352
  return typeof e == "number";
34331
34353
  };
34332
34354
  function G6(e) {
@@ -34334,7 +34356,7 @@ function G6(e) {
34334
34356
  throw new Error("invalid config: " + e);
34335
34357
  if (typeof e.withSeparableConvs != "boolean")
34336
34358
  throw new Error("config.withSeparableConvs has to be a boolean, have: " + e.withSeparableConvs);
34337
- if (!es(e.iouThreshold) || e.iouThreshold < 0 || e.iouThreshold > 1)
34359
+ if (!ts(e.iouThreshold) || e.iouThreshold < 0 || e.iouThreshold > 1)
34338
34360
  throw new Error("config.iouThreshold has to be a number between [0, 1], have: " + e.iouThreshold);
34339
34361
  if (!Array.isArray(e.classes) || !e.classes.length || !e.classes.every(function(n) {
34340
34362
  return typeof n == "string";
@@ -34343,10 +34365,10 @@ function G6(e) {
34343
34365
  if (!Array.isArray(e.anchors) || !e.anchors.length || !e.anchors.map(function(n) {
34344
34366
  return n || {};
34345
34367
  }).every(function(n) {
34346
- return es(n.x) && es(n.y);
34368
+ return ts(n.x) && ts(n.y);
34347
34369
  }))
34348
34370
  throw new Error("config.anchors has to be an array of { x: number, y: number }, have: " + JSON.stringify(e.anchors));
34349
- if (e.meanRgb && (!Array.isArray(e.meanRgb) || e.meanRgb.length !== 3 || !e.meanRgb.every(es)))
34371
+ if (e.meanRgb && (!Array.isArray(e.meanRgb) || e.meanRgb.length !== 3 || !e.meanRgb.every(ts)))
34350
34372
  throw new Error("config.meanRgb has to be an array of shape [number, number, number], have: " + JSON.stringify(e.meanRgb));
34351
34373
  }
34352
34374
  function tf(e) {
@@ -34513,7 +34535,7 @@ var nf = (
34513
34535
  throw new Error("TinyYolov2 - load model before inference");
34514
34536
  return Re(function() {
34515
34537
  var i = t.toBatchTensor(r, !1).toFloat();
34516
- return i = o.config.meanRgb ? Mi(i, o.config.meanRgb) : i, i = i.div(we(256)), o.config.withSeparableConvs ? o.runMobilenet(i, a) : o.runTinyYolov2(i, a);
34538
+ return i = o.config.meanRgb ? Fi(i, o.config.meanRgb) : i, i = i.div(we(256)), o.config.withSeparableConvs ? o.runMobilenet(i, a) : o.runTinyYolov2(i, a);
34517
34539
  });
34518
34540
  }, n.prototype.forward = function(t, r) {
34519
34541
  return Le(this, void 0, void 0, function() {
@@ -34554,7 +34576,7 @@ var nf = (
34554
34576
  return y.classScore;
34555
34577
  }), v = d.map(function(y) {
34556
34578
  return w.config.classes[y.label];
34557
- }), m = fi(f.map(function(y) {
34579
+ }), m = hi(f.map(function(y) {
34558
34580
  return y.rescale(a);
34559
34581
  }), h, this.config.iouThreshold, !0), g = m.map(function(y) {
34560
34582
  return new n0(h[y], p[y], v[y], f[y], c);
@@ -34704,7 +34726,7 @@ var nf = (
34704
34726
  }
34705
34727
  return n;
34706
34728
  }(nf)
34707
- ), Fi = (
34729
+ ), Pi = (
34708
34730
  /** @class */
34709
34731
  function() {
34710
34732
  function e() {
@@ -34779,7 +34801,7 @@ function J6(e) {
34779
34801
  return Yn(on(e, 3).reverse(), 3);
34780
34802
  });
34781
34803
  }
34782
- var ts = 2, Ks = 12;
34804
+ var ns = 2, Ks = 12;
34783
34805
  function eA(e, n) {
34784
34806
  var t = Iu(e, n), r = Xd(e, n);
34785
34807
  function o(l, c) {
@@ -34909,7 +34931,7 @@ function sA(e, n, t, r) {
34909
34931
  for (var s = 0; s < e.shape[1]; s++)
34910
34932
  a[i][s] >= r && o.push(new Ct(s, i));
34911
34933
  var u = o.map(function(l) {
34912
- var c = new Cu(Math.round((l.y * ts + 1) / t), Math.round((l.x * ts + 1) / t), Math.round((l.y * ts + Ks) / t), Math.round((l.x * ts + Ks) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new of(f[l.y][l.x][0], f[l.y][l.x][1], f[l.y][l.x][2], f[l.y][l.x][3]);
34934
+ var c = new Cu(Math.round((l.y * ns + 1) / t), Math.round((l.x * ns + 1) / t), Math.round((l.y * ns + Ks) / t), Math.round((l.x * ns + Ks) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new of(f[l.y][l.x][0], f[l.y][l.x][1], f[l.y][l.x][2], f[l.y][l.x][3]);
34913
34935
  return {
34914
34936
  cell: c,
34915
34937
  score: d,
@@ -34936,7 +34958,7 @@ function uA(e, n, t, r, o) {
34936
34958
  var h = f.scoresTensor, p = f.regionsTensor, v = f.scale, m = f.statsForScale, g = sA(h, p, v, t);
34937
34959
  if (h.dispose(), p.dispose(), !g.length)
34938
34960
  return o.stage1.push(m), [];
34939
- var w = Date.now(), b = fi(g.map(function(y) {
34961
+ var w = Date.now(), b = hi(g.map(function(y) {
34940
34962
  return y.cell;
34941
34963
  }), g.map(function(y) {
34942
34964
  return y.score;
@@ -34948,7 +34970,7 @@ function uA(e, n, t, r, o) {
34948
34970
  return f.concat(h);
34949
34971
  }, []), u = [], l = [];
34950
34972
  if (s.length > 0) {
34951
- var c = Date.now(), d = fi(s.map(function(f) {
34973
+ var c = Date.now(), d = hi(s.map(function(f) {
34952
34974
  return f.cell;
34953
34975
  }), s.map(function(f) {
34954
34976
  return f.score;
@@ -35032,7 +35054,7 @@ function cA(e, n, t, r, o) {
35032
35054
  return n[y];
35033
35055
  }), p = f.map(function(y) {
35034
35056
  return l[y];
35035
- }), v = [], m = [], h.length > 0 && (a = Date.now(), g = fi(h, p, 0.7), o.stage2_nms = Date.now() - a, w = g.map(function(y) {
35057
+ }), v = [], m = [], h.length > 0 && (a = Date.now(), g = hi(h, p, 0.7), o.stage2_nms = Date.now() - a, w = g.map(function(y) {
35036
35058
  var x = s[f[y]].regions.arraySync();
35037
35059
  return new of(x[0][0], x[0][1], x[0][2], x[0][3]);
35038
35060
  }), m = g.map(function(y) {
@@ -35086,7 +35108,7 @@ function fA(e, n, t, r, o) {
35086
35108
  return n[x].calibrate(h[_]);
35087
35109
  }), v = f.map(function(x) {
35088
35110
  return l[x];
35089
- }), m = [], g = [], w = [], p.length > 0 && (a = Date.now(), b = fi(p, v, 0.7, !1), o.stage3_nms = Date.now() - a, m = b.map(function(x) {
35111
+ }), m = [], g = [], w = [], p.length > 0 && (a = Date.now(), b = hi(p, v, 0.7, !1), o.stage3_nms = Date.now() - a, m = b.map(function(x) {
35090
35112
  return p[x];
35091
35113
  }), g = b.map(function(x) {
35092
35114
  return v[x];
@@ -35151,7 +35173,7 @@ var hA = (
35151
35173
  return _ = C.sent(), i.total_stage2 = Date.now() - y, _.boxes.length ? (i.stage3_numInputBoxes = _.boxes.length, y = Date.now(), [4, fA(a, _.boxes, g[2], o.onet, i)]) : [2, l({ results: [], stats: i })];
35152
35174
  case 3:
35153
35175
  return E = C.sent(), i.total_stage3 = Date.now() - y, R = E.boxes.map(function(S, M) {
35154
- return Tu(pi({}, new Qn(E.scores[M], new ku(S.left / f, S.top / d, S.width / f, S.height / d), {
35176
+ return Tu(vi({}, new Qn(E.scores[M], new ku(S.left / f, S.top / d, S.width / f, S.height / d), {
35155
35177
  height: d,
35156
35178
  width: f
35157
35179
  })), new LT(E.points[M].map(function(I) {
@@ -35268,7 +35290,7 @@ var hA = (
35268
35290
  return a.parentTask = t, a.input = r, a.extractedFaces = o, a;
35269
35291
  }
35270
35292
  return n;
35271
- }(Fi)
35293
+ }(Pi)
35272
35294
  ), sf = (
35273
35295
  /** @class */
35274
35296
  function(e) {
@@ -35374,7 +35396,7 @@ var hA = (
35374
35396
  return a.parentTask = t, a.input = r, a.extractedFaces = o, a;
35375
35397
  }
35376
35398
  return n;
35377
- }(Fi)
35399
+ }(Pi)
35378
35400
  ), df = (
35379
35401
  /** @class */
35380
35402
  function(e) {
@@ -35481,7 +35503,7 @@ var hA = (
35481
35503
  return o.parentTask = t, o.input = r, o;
35482
35504
  }
35483
35505
  return n;
35484
- }(Fi)
35506
+ }(Pi)
35485
35507
  ), vf = (
35486
35508
  /** @class */
35487
35509
  function(e) {
@@ -35566,7 +35588,7 @@ var hA = (
35566
35588
  enumerable: !0,
35567
35589
  configurable: !0
35568
35590
  }), n;
35569
- }(Fi)
35591
+ }(Pi)
35570
35592
  ), yA = (
35571
35593
  /** @class */
35572
35594
  function(e) {
@@ -35664,7 +35686,7 @@ var hA = (
35664
35686
  return o.input = t, o.options = r, o;
35665
35687
  }
35666
35688
  return n;
35667
- }(Fi)
35689
+ }(Pi)
35668
35690
  ), V0 = (
35669
35691
  /** @class */
35670
35692
  function(e) {
@@ -35707,7 +35729,7 @@ var hA = (
35707
35729
  return [4, this.run()];
35708
35730
  case 1:
35709
35731
  return o = a.sent(), [2, r(o.map(function(i) {
35710
- return pi({}, i);
35732
+ return vi({}, i);
35711
35733
  }))];
35712
35734
  }
35713
35735
  });
@@ -35751,7 +35773,7 @@ var hA = (
35751
35773
  case 0:
35752
35774
  return [4, this.run()];
35753
35775
  case 1:
35754
- return o = a.sent(), [2, r(o ? pi({}, o) : void 0)];
35776
+ return o = a.sent(), [2, r(o ? vi({}, o) : void 0)];
35755
35777
  }
35756
35778
  });
35757
35779
  });
@@ -35787,12 +35809,12 @@ function xA(e, n) {
35787
35809
  return "person " + o++;
35788
35810
  };
35789
35811
  this._labeledDescriptors = r.map(function(i) {
35790
- if (i instanceof Qi)
35812
+ if (i instanceof Zi)
35791
35813
  return i;
35792
35814
  if (i instanceof Float32Array)
35793
- return new Qi(a(), [i]);
35815
+ return new Zi(a(), [i]);
35794
35816
  if (i.descriptor && i.descriptor instanceof Float32Array)
35795
- return new Qi(a(), [i.descriptor]);
35817
+ return new Zi(a(), [i.descriptor]);
35796
35818
  throw new Error("FaceRecognizer.constructor - expected inputs to be of type LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array | Array<LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array>");
35797
35819
  });
35798
35820
  }
@@ -35834,7 +35856,7 @@ function xA(e, n) {
35834
35856
  };
35835
35857
  }, e.fromJSON = function(n) {
35836
35858
  var t = n.labeledDescriptors.map(function(r) {
35837
- return Qi.fromJSON(r);
35859
+ return Zi.fromJSON(r);
35838
35860
  });
35839
35861
  return new e(t, n.distanceThreshold);
35840
35862
  }, e;
@@ -35849,9 +35871,9 @@ function z0(e, n) {
35849
35871
  });
35850
35872
  if (Jd(e)) {
35851
35873
  var a = e.detection.forSize(r, o), i = e.unshiftedLandmarks.forSize(a.box.width, a.box.height);
35852
- return Tu(pi(e, a), i);
35874
+ return Tu(vi(e, a), i);
35853
35875
  }
35854
- return hi(e) ? pi(e, e.detection.forSize(r, o)) : e instanceof Ia || e instanceof Qn ? e.forSize(r, o) : e;
35876
+ return pi(e) ? vi(e, e.detection.forSize(r, o)) : e instanceof Ia || e instanceof Qn ? e.forSize(r, o) : e;
35855
35877
  }
35856
35878
  class _A {
35857
35879
  // async getFaceSnapshot(inputImage: any, box: any) {
@@ -35950,7 +35972,9 @@ function _D(e) {
35950
35972
  };
35951
35973
  return me(
35952
35974
  () => e.columnFilters.value,
35953
- () => r(n.value, t.value),
35975
+ async () => {
35976
+ t.value = 1, await r(n.value, t.value);
35977
+ },
35954
35978
  { deep: !0 }
35955
35979
  ), vn(() => r(n.value, t.value)), {
35956
35980
  search: n,