shared-ritm 1.2.134 → 1.2.136

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
- var U0 = Object.defineProperty;
2
- var G0 = (e, n, t) => n in e ? U0(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
1
+ var j0 = Object.defineProperty;
2
+ var G0 = (e, n, t) => n in e ? j0(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var Sf = (e, n, t) => G0(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { markRaw as Lp, defineComponent as Bt, reactive as ia, h as T, withDirectives as Zn, computed as k, ref as Q, getCurrentInstance as Qe, nextTick as _t, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as qp, Teleport as K0, onDeactivated as ho, unref as Yn, Transition as jn, useCssVars as Ta, createBlock as Ae, openBlock as X, mergeProps as ds, withCtx as ve, renderSlot as Qt, createCommentVNode as Xe, createTextVNode as $t, toDisplayString as mt, toRaw as eo, normalizeClass as He, createElementBlock as ye, createVNode as Se, createElementVNode as fe, onBeforeUpdate as Vp, inject as co, onActivated as Aa, mergeModels as Kl, useModel as zp, createSlots as Da, provide as Qs, normalizeStyle as To, getCurrentScope as X0, onScopeDispose as Y0, createStaticVNode as fr, resolveDynamicComponent as Q0, Fragment as Ar, renderList as Wr, vShow as $p, onBeforeMount as Vc, onUpdated as Z0, useSlots as zc, shallowReactive as J0, resolveComponent as e1, withModifiers as Zs, normalizeProps as Ef, toHandlers as t1 } from "vue";
4
+ import { markRaw as Lp, defineComponent as Bt, reactive as ia, h as T, withDirectives as Zn, computed as k, ref as Q, getCurrentInstance as Qe, nextTick as _t, watch as me, onMounted as vn, onBeforeUnmount as Tt, onUnmounted as qp, Teleport as K0, onDeactivated as ho, unref as Yn, Transition as Un, useCssVars as Ta, createBlock as Ae, openBlock as X, mergeProps as ds, withCtx as ve, renderSlot as Qt, createCommentVNode as Xe, createTextVNode as $t, toDisplayString as mt, toRaw as eo, normalizeClass as He, createElementBlock as ye, createVNode as Se, createElementVNode as fe, onBeforeUpdate as Vp, inject as co, onActivated as Aa, mergeModels as Kl, useModel as zp, createSlots as Da, provide as Qs, normalizeStyle as To, getCurrentScope as X0, onScopeDispose as Y0, createStaticVNode as fr, resolveDynamicComponent as Q0, Fragment as Ar, renderList as Wr, vShow as $p, onBeforeMount as Vc, onUpdated as Z0, useSlots as zc, shallowReactive as J0, resolveComponent as e1, withModifiers as Zs, normalizeProps as Ef, toHandlers as t1 } from "vue";
5
5
  function rr(e, n, t, r) {
6
6
  return Object.defineProperty(e, n, {
7
7
  get: t,
@@ -278,15 +278,15 @@ function eu(e) {
278
278
  function Hr(e, n) {
279
279
  return eu(e) === !0 ? !1 : [].concat(n).includes(e.keyCode);
280
280
  }
281
- const jp = {
281
+ const Up = {
282
282
  /* SSR does not know about Element */
283
283
  target: {
284
284
  type: [Boolean, String, Element],
285
285
  default: !0
286
286
  },
287
287
  noParentEvent: Boolean
288
- }, Up = {
289
- ...jp,
288
+ }, jp = {
289
+ ...Up,
290
290
  contextMenu: Boolean
291
291
  };
292
292
  function Hc({
@@ -416,7 +416,7 @@ function ns(e) {
416
416
  n = n.parent;
417
417
  }
418
418
  }
419
- function jc(e) {
419
+ function Uc(e) {
420
420
  return e.appContext.config.globalProperties.$router !== void 0;
421
421
  }
422
422
  function tu(e) {
@@ -475,7 +475,7 @@ function gi({
475
475
  function v(b) {
476
476
  s.disable === !0 && b === !0 ? s["onUpdate:modelValue"] !== void 0 && u("update:modelValue", !1) : b === !0 !== e.value && (b === !0 ? h : m)(c);
477
477
  }
478
- me(() => s.modelValue, v), t !== void 0 && jc(i) === !0 && me(() => l.$route.fullPath, () => {
478
+ me(() => s.modelValue, v), t !== void 0 && Uc(i) === !0 && me(() => l.$route.fullPath, () => {
479
479
  t.value === !0 && e.value === !0 && p();
480
480
  }), a === !0 && vn(() => {
481
481
  v(s.modelValue);
@@ -558,7 +558,7 @@ function x1(e) {
558
558
  }
559
559
  return !1;
560
560
  }
561
- function Uc(e, n, t, r) {
561
+ function jc(e, n, t, r) {
562
562
  const o = Q(!1), a = Q(!1);
563
563
  let i = null;
564
564
  const s = {}, u = r === "dialog" && x1(e);
@@ -959,7 +959,7 @@ const ys = Ke({
959
959
  name: "QTooltip",
960
960
  inheritAttrs: !1,
961
961
  props: {
962
- ...jp,
962
+ ...Up,
963
963
  ...vi,
964
964
  ...ua,
965
965
  maxHeight: {
@@ -1009,7 +1009,7 @@ const ys = Ke({
1009
1009
  ],
1010
1010
  setup(e, { slots: n, emit: t, attrs: r }) {
1011
1011
  let o, a;
1012
- const i = Qe(), { proxy: { $q: s } } = i, u = Q(null), l = Q(!1), c = k(() => gs(e.anchor, s.lang.rtl)), d = k(() => gs(e.self, s.lang.rtl)), f = k(() => e.persistent !== !0), { registerTick: h, removeTick: p } = la(), { registerTimeout: m } = wa(), { transitionProps: v, transitionStyle: y } = Gc(e), { localScrollTarget: b, changeScrollEvent: w, unconfigureScrollTarget: g } = Gp(e, G), { anchorEl: x, canShow: _, anchorEvents: E } = Hc({ showing: l, configureAnchorEl: U }), { show: R, hide: C } = gi({
1012
+ const i = Qe(), { proxy: { $q: s } } = i, u = Q(null), l = Q(!1), c = k(() => gs(e.anchor, s.lang.rtl)), d = k(() => gs(e.self, s.lang.rtl)), f = k(() => e.persistent !== !0), { registerTick: h, removeTick: p } = la(), { registerTimeout: m } = wa(), { transitionProps: v, transitionStyle: y } = Gc(e), { localScrollTarget: b, changeScrollEvent: w, unconfigureScrollTarget: g } = Gp(e, G), { anchorEl: x, canShow: _, anchorEvents: E } = Hc({ showing: l, configureAnchorEl: j }), { show: R, hide: C } = gi({
1013
1013
  showing: l,
1014
1014
  canShow: _,
1015
1015
  handleShow: $,
@@ -1018,7 +1018,7 @@ const ys = Ke({
1018
1018
  processOnMount: !0
1019
1019
  });
1020
1020
  Object.assign(E, { delayShow: L, delayHide: q });
1021
- const { showPortal: S, hidePortal: M, renderPortal: I } = Uc(i, u, N, "tooltip");
1021
+ const { showPortal: S, hidePortal: M, renderPortal: I } = jc(i, u, N, "tooltip");
1022
1022
  if (s.platform.is.mobile === !0) {
1023
1023
  const Y = {
1024
1024
  anchorEl: x,
@@ -1085,7 +1085,7 @@ const ys = Ke({
1085
1085
  C(Y);
1086
1086
  }, e.hideDelay);
1087
1087
  }
1088
- function U() {
1088
+ function j() {
1089
1089
  if (e.noParentEvent === !0 || x.value === null) return;
1090
1090
  const Y = s.platform.is.mobile === !0 ? [
1091
1091
  [x.value, "touchstart", "delayShow", "passive"]
@@ -1118,7 +1118,7 @@ const ys = Ke({
1118
1118
  }, Ct(n.default)) : null;
1119
1119
  }
1120
1120
  function N() {
1121
- return T(jn, v.value, O);
1121
+ return T(Un, v.value, O);
1122
1122
  }
1123
1123
  return Tt(F), Object.assign(i.proxy, { updatePosition: V }), I;
1124
1124
  }
@@ -1456,7 +1456,7 @@ const sv = {
1456
1456
  }
1457
1457
  };
1458
1458
  function uv({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
1459
- const t = Qe(), { props: r, proxy: o, emit: a } = t, i = jc(t), s = k(() => r.disable !== !0 && r.href !== void 0), u = n === !0 ? k(
1459
+ const t = Qe(), { props: r, proxy: o, emit: a } = t, i = Uc(t), s = k(() => r.disable !== !0 && r.href !== void 0), u = n === !0 ? k(
1460
1460
  () => i === !0 && r.disable !== !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
1461
1461
  ) : k(
1462
1462
  () => i === !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
@@ -1599,11 +1599,11 @@ const td = {
1599
1599
  default: null
1600
1600
  },
1601
1601
  disable: Boolean
1602
- }, j1 = {
1602
+ }, U1 = {
1603
1603
  ...td,
1604
1604
  round: Boolean
1605
1605
  };
1606
- function U1(e) {
1606
+ function j1(e) {
1607
1607
  const n = Pa(e, V1), t = iv(e), { hasRouterLink: r, hasLink: o, linkTag: a, linkAttrs: i, navigateOnClick: s } = uv({
1608
1608
  fallbackTag: "button"
1609
1609
  }), u = k(() => {
@@ -1649,7 +1649,7 @@ let Go = null, Ko = null, Xo = null;
1649
1649
  const Et = Ke({
1650
1650
  name: "QBtn",
1651
1651
  props: {
1652
- ...j1,
1652
+ ...U1,
1653
1653
  percentage: Number,
1654
1654
  darkPercentage: Boolean,
1655
1655
  onTouchstart: [Function, Array]
@@ -1665,7 +1665,7 @@ const Et = Ke({
1665
1665
  linkTag: l,
1666
1666
  navigateOnClick: c,
1667
1667
  isActionable: d
1668
- } = U1(e), f = Q(null), h = Q(null);
1668
+ } = j1(e), f = Q(null), h = Q(null);
1669
1669
  let p = null, m, v = null;
1670
1670
  const y = k(
1671
1671
  () => e.label !== void 0 && e.label !== null && e.label !== ""
@@ -1798,7 +1798,7 @@ const Et = Ke({
1798
1798
  class: "q-btn__content text-center col items-center q-anchor--skip " + i.value
1799
1799
  }, D)
1800
1800
  ), e.loading !== null && F.push(
1801
- T(jn, {
1801
+ T(Un, {
1802
1802
  name: "q-transition--fade"
1803
1803
  }, () => e.loading === !0 ? [
1804
1804
  T("span", {
@@ -2224,7 +2224,7 @@ function oy(e) {
2224
2224
  throw new Error("Invalid Jalaali year " + e);
2225
2225
  for (s = 1; s < n && (r = ro[s], o = r - t, !(e < r)); s += 1)
2226
2226
  t = r;
2227
- return i = e - t, o - i < 6 && (i = i - o + zt(o + 4, 33) * 33), a = Un(Un(i + 1, 33) - 1, 4), a === -1 && (a = 4), a;
2227
+ return i = e - t, o - i < 6 && (i = i - o + zt(o + 4, 33) * 33), a = jn(jn(i + 1, 33) - 1, 4), a === -1 && (a = 4), a;
2228
2228
  }
2229
2229
  function gv(e, n) {
2230
2230
  const t = ro.length, r = e + 621;
@@ -2232,10 +2232,10 @@ function gv(e, n) {
2232
2232
  if (e < a || e >= ro[t - 1])
2233
2233
  throw new Error("Invalid Jalaali year " + e);
2234
2234
  for (c = 1; c < t && (i = ro[c], s = i - a, !(e < i)); c += 1)
2235
- o = o + zt(s, 33) * 8 + zt(Un(s, 33), 4), a = i;
2236
- l = e - a, o = o + zt(l, 33) * 8 + zt(Un(l, 33) + 3, 4), Un(s, 33) === 4 && s - l === 4 && (o += 1);
2235
+ o = o + zt(s, 33) * 8 + zt(jn(s, 33), 4), a = i;
2236
+ l = e - a, o = o + zt(l, 33) * 8 + zt(jn(l, 33) + 3, 4), jn(s, 33) === 4 && s - l === 4 && (o += 1);
2237
2237
  const d = zt(r, 4) - zt((zt(r, 100) + 1) * 3, 4) - 150, f = 20 + o - d;
2238
- return n || (s - l < 6 && (l = l - s + zt(s + 4, 33) * 33), u = Un(Un(l + 1, 33) - 1, 4), u === -1 && (u = 4)), {
2238
+ return n || (s - l < 6 && (l = l - s + zt(s + 4, 33) * 33), u = jn(jn(l + 1, 33) - 1, 4), u === -1 && (u = 4)), {
2239
2239
  leap: u,
2240
2240
  gy: r,
2241
2241
  march: f
@@ -2251,7 +2251,7 @@ function iy(e) {
2251
2251
  const i = gv(t, !1), s = nd(n, 3, i.march);
2252
2252
  if (a = e - s, a >= 0) {
2253
2253
  if (a <= 185)
2254
- return o = 1 + zt(a, 31), r = Un(a, 31) + 1, {
2254
+ return o = 1 + zt(a, 31), r = jn(a, 31) + 1, {
2255
2255
  jy: t,
2256
2256
  jm: o,
2257
2257
  jd: r
@@ -2259,20 +2259,20 @@ function iy(e) {
2259
2259
  a -= 186;
2260
2260
  } else
2261
2261
  t -= 1, a += 179, i.leap === 1 && (a += 1);
2262
- return o = 7 + zt(a, 30), r = Un(a, 30) + 1, {
2262
+ return o = 7 + zt(a, 30), r = jn(a, 30) + 1, {
2263
2263
  jy: t,
2264
2264
  jm: o,
2265
2265
  jd: r
2266
2266
  };
2267
2267
  }
2268
2268
  function nd(e, n, t) {
2269
- let r = zt((e + zt(n - 8, 6) + 100100) * 1461, 4) + zt(153 * Un(n + 9, 12) + 2, 5) + t - 34840408;
2269
+ let r = zt((e + zt(n - 8, 6) + 100100) * 1461, 4) + zt(153 * jn(n + 9, 12) + 2, 5) + t - 34840408;
2270
2270
  return r = r - zt(zt(e + 100100 + zt(n - 8, 6), 100) * 3, 4) + 752, r;
2271
2271
  }
2272
2272
  function yv(e) {
2273
2273
  let n = 4 * e + 139361631;
2274
2274
  n = n + zt(zt(4 * e + 183187720, 146097) * 3, 4) * 4 - 3908;
2275
- const t = zt(Un(n, 1461), 4) * 5 + 308, r = zt(Un(t, 153), 5) + 1, o = Un(zt(t, 153), 12) + 1;
2275
+ const t = zt(jn(n, 1461), 4) * 5 + 308, r = zt(jn(t, 153), 5) + 1, o = jn(zt(t, 153), 12) + 1;
2276
2276
  return {
2277
2277
  gy: zt(n, 1461) - 100100 + zt(8 - o, 6),
2278
2278
  gm: o,
@@ -2282,7 +2282,7 @@ function yv(e) {
2282
2282
  function zt(e, n) {
2283
2283
  return ~~(e / n);
2284
2284
  }
2285
- function Un(e, n) {
2285
+ function jn(e, n) {
2286
2286
  return e - ~~(e / n) * n;
2287
2287
  }
2288
2288
  function Vr(e, n, t) {
@@ -2540,7 +2540,7 @@ const ac = {
2540
2540
  noResults: "No matching nodes found"
2541
2541
  }
2542
2542
  };
2543
- function jf() {
2543
+ function Uf() {
2544
2544
  const e = Array.isArray(navigator.languages) === !0 && navigator.languages.length !== 0 ? navigator.languages[0] : navigator.language;
2545
2545
  if (typeof e == "string")
2546
2546
  return e.split(/[-_]/).map((n, t) => t === 0 ? n.toLowerCase() : t > 1 || n.length < 4 ? n.toUpperCase() : n[0].toUpperCase() + n.slice(1).toLowerCase()).join("-");
@@ -2550,12 +2550,12 @@ const to = r1({
2550
2550
  }, {
2551
2551
  // props: object
2552
2552
  // __langConfig: object
2553
- getLocale: jf,
2553
+ getLocale: Uf,
2554
2554
  set(e = ac, n) {
2555
2555
  const t = {
2556
2556
  ...e,
2557
2557
  rtl: e.rtl === !0,
2558
- getLocale: jf
2558
+ getLocale: Uf
2559
2559
  };
2560
2560
  {
2561
2561
  if (t.set = to.set, to.__langConfig === void 0 || to.__langConfig.noHtmlAttrs !== !0) {
@@ -2672,7 +2672,7 @@ function dy(e, n) {
2672
2672
  function kv(e, n) {
2673
2673
  return e !== void 0 ? e : n !== void 0 ? n.date : ac.date;
2674
2674
  }
2675
- function Uf(e, n = "") {
2675
+ function jf(e, n = "") {
2676
2676
  const t = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.floor(r / 60), a = r % 60;
2677
2677
  return t + wt(o) + n + wt(a);
2678
2678
  }
@@ -2960,12 +2960,12 @@ const Gf = {
2960
2960
  // Timezone: -01:00, +00:00, ... +12:00
2961
2961
  Z(e, n, t, r) {
2962
2962
  const o = r ?? e.getTimezoneOffset();
2963
- return Uf(o, ":");
2963
+ return jf(o, ":");
2964
2964
  },
2965
2965
  // Timezone: -0100, +0000, ... +1200
2966
2966
  ZZ(e, n, t, r) {
2967
2967
  const o = r ?? e.getTimezoneOffset();
2968
- return Uf(o);
2968
+ return jf(o);
2969
2969
  },
2970
2970
  // Seconds timestamp: 512969520
2971
2971
  X(e) {
@@ -3059,7 +3059,7 @@ const Rv = Ke({
3059
3059
  ), q = k(() => {
3060
3060
  const B = (W) => It(W, m.value, v.value);
3061
3061
  return V.value.filter((W) => xv(W) === !0 && W.from !== void 0 && W.to !== void 0).map((W) => ({ from: B(W.from), to: B(W.to) })).filter((W) => W.from.dateHash !== null && W.to.dateHash !== null && W.from.dateHash < W.to.dateHash);
3062
- }), U = k(() => e.calendar !== "persian" ? (B) => new Date(B.year, B.month - 1, B.day) : (B) => {
3062
+ }), j = k(() => e.calendar !== "persian" ? (B) => new Date(B.year, B.month - 1, B.day) : (B) => {
3063
3063
  const W = $f(B.year, B.month, B.day);
3064
3064
  return new Date(W.gy, W.gm - 1, W.gd);
3065
3065
  }), G = k(() => e.calendar === "persian" ? Nr : (B, W, ne) => Ev(
@@ -3079,8 +3079,8 @@ const Rv = Ke({
3079
3079
  )), O = k(
3080
3080
  () => L.value.length + q.value.reduce(
3081
3081
  (B, W) => B + 1 + Sv(
3082
- U.value(W.to),
3083
- U.value(W.from)
3082
+ j.value(W.to),
3083
+ j.value(W.from)
3084
3084
  ),
3085
3085
  0
3086
3086
  )
@@ -3088,14 +3088,14 @@ const Rv = Ke({
3088
3088
  if (e.title !== void 0 && e.title !== null && e.title.length !== 0)
3089
3089
  return e.title;
3090
3090
  if (M.value !== null) {
3091
- const ne = M.value.init, be = U.value(ne);
3091
+ const ne = M.value.init, be = j.value(ne);
3092
3092
  return v.value.daysShort[be.getDay()] + ", " + v.value.monthsShort[ne.month - 1] + " " + ne.day + Qo + "?";
3093
3093
  }
3094
3094
  if (O.value === 0)
3095
3095
  return Qo;
3096
3096
  if (O.value > 1)
3097
3097
  return `${O.value} ${v.value.pluralDay}`;
3098
- const B = L.value[0], W = U.value(B);
3098
+ const B = L.value[0], W = j.value(B);
3099
3099
  return isNaN(W.valueOf()) === !0 ? Qo : v.value.headerTitle !== void 0 ? v.value.headerTitle(W, B) : v.value.daysShort[W.getDay()] + ", " + v.value.monthsShort[B.month - 1] + " " + B.day;
3100
3100
  }), Y = k(() => L.value.concat(q.value.map((W) => W.from)).sort((W, ne) => W.year - ne.year || W.month - ne.month)[0]), ae = k(() => L.value.concat(q.value.map((W) => W.to)).sort((W, ne) => ne.year - W.year || ne.month - W.month)[0]), le = k(() => {
3101
3101
  if (e.subtitle !== void 0 && e.subtitle !== null && e.subtitle.length !== 0)
@@ -3286,7 +3286,7 @@ const Rv = Ke({
3286
3286
  d = 0;
3287
3287
  else {
3288
3288
  const W = re(m.value, v.value);
3289
- Ut(W.year, W.month, W);
3289
+ jt(W.year, W.month, W);
3290
3290
  }
3291
3291
  }), me(x, () => {
3292
3292
  p.value !== null && r.$el.contains(document.activeElement) === !0 && p.value.focus();
@@ -3310,7 +3310,7 @@ const Rv = Ke({
3310
3310
  month: W,
3311
3311
  day: ne
3312
3312
  }, Ce = et.value[Qr(be)];
3313
- (Ce === void 0 || Ce.includes(be.day) === !1) && go(be), je(be.year, be.month);
3313
+ (Ce === void 0 || Ce.includes(be.day) === !1) && go(be), Ue(be.year, be.month);
3314
3314
  }
3315
3315
  function st(B) {
3316
3316
  Kf(B) === !0 && (x.value = B);
@@ -3318,10 +3318,10 @@ const Rv = Ke({
3318
3318
  function vt(B, W) {
3319
3319
  ["month", "year"].includes(B) && (B === "month" ? Ve : Ge)(W === !0 ? -1 : 1);
3320
3320
  }
3321
- function je(B, W) {
3322
- x.value = "Calendar", Ut(B, W);
3323
- }
3324
3321
  function Ue(B, W) {
3322
+ x.value = "Calendar", jt(B, W);
3323
+ }
3324
+ function je(B, W) {
3325
3325
  if (e.range === !1 || !B) {
3326
3326
  M.value = null;
3327
3327
  return;
@@ -3332,7 +3332,7 @@ const Rv = Ke({
3332
3332
  initHash: Nr(ne),
3333
3333
  final: be,
3334
3334
  finalHash: Nr(be)
3335
- }, je(ne.year, ne.month);
3335
+ }, Ue(ne.year, ne.month);
3336
3336
  }
3337
3337
  function xt() {
3338
3338
  return e.calendar === "persian" ? "YYYY/MM/DD" : e.mask;
@@ -3384,17 +3384,17 @@ const Rv = Ke({
3384
3384
  }
3385
3385
  function Ve(B) {
3386
3386
  let W = g.value.year, ne = Number(g.value.month) + B;
3387
- ne === 13 ? (ne = 1, W++) : ne === 0 && (ne = 12, W--), Ut(W, ne), F.value === !0 && mr("month");
3387
+ ne === 13 ? (ne = 1, W++) : ne === 0 && (ne = 12, W--), jt(W, ne), F.value === !0 && mr("month");
3388
3388
  }
3389
3389
  function Ge(B) {
3390
3390
  const W = Number(g.value.year) + B;
3391
- Ut(W, g.value.month), F.value === !0 && mr("year");
3391
+ jt(W, g.value.month), F.value === !0 && mr("year");
3392
3392
  }
3393
3393
  function at(B) {
3394
- Ut(B, g.value.month), x.value = e.defaultView === "Years" ? "Months" : "Calendar", F.value === !0 && mr("year");
3394
+ jt(B, g.value.month), x.value = e.defaultView === "Years" ? "Months" : "Calendar", F.value === !0 && mr("year");
3395
3395
  }
3396
3396
  function ln(B) {
3397
- Ut(g.value.year, B), x.value = "Calendar", F.value === !0 && mr("month");
3397
+ jt(g.value.year, B), x.value = "Calendar", F.value === !0 && mr("month");
3398
3398
  }
3399
3399
  function it(B, W) {
3400
3400
  const ne = et.value[W];
@@ -3403,7 +3403,7 @@ const Rv = Ke({
3403
3403
  function Mt(B) {
3404
3404
  return { year: B.year, month: B.month, day: B.day };
3405
3405
  }
3406
- function Ut(B, W, ne) {
3406
+ function jt(B, W, ne) {
3407
3407
  if (ge.value !== null && B <= ge.value.year && ((W < ge.value.month || B < ge.value.year) && (W = ge.value.month), B = ge.value.year), Ee.value !== null && B >= Ee.value.year && ((W > Ee.value.month || B > Ee.value.year) && (W = Ee.value.month), B = Ee.value.year), ne !== void 0) {
3408
3408
  const { hour: Ce, minute: dt, second: Te, millisecond: Ze, timezoneOffset: bt, timeHash: er } = ne;
3409
3409
  Object.assign(g.value, { hour: Ce, minute: dt, second: Te, millisecond: Ze, timezoneOffset: bt, timeHash: er });
@@ -3419,7 +3419,7 @@ const Rv = Ke({
3419
3419
  }));
3420
3420
  }
3421
3421
  function Br(B, W, ne) {
3422
- const be = B !== null && B.length === 1 && e.multiple === !1 ? B[0] : B, { reason: Ce, details: dt } = jo(W, ne);
3422
+ const be = B !== null && B.length === 1 && e.multiple === !1 ? B[0] : B, { reason: Ce, details: dt } = Uo(W, ne);
3423
3423
  pe(be), t("update:modelValue", be, Ce, dt);
3424
3424
  }
3425
3425
  function mr(B) {
@@ -3428,11 +3428,11 @@ const Rv = Ke({
3428
3428
  W.year = g.value.year, W.month = g.value.month;
3429
3429
  const ne = e.calendar !== "persian" ? new Date(W.year, W.month, 0).getDate() : os(W.year, W.month);
3430
3430
  W.day = Math.min(Math.max(1, W.day), ne);
3431
- const be = sr(W), { details: Ce } = jo("", W);
3431
+ const be = sr(W), { details: Ce } = Uo("", W);
3432
3432
  pe(be), t("update:modelValue", be, B, Ce);
3433
3433
  });
3434
3434
  }
3435
- function jo(B, W) {
3435
+ function Uo(B, W) {
3436
3436
  return W.from !== void 0 ? {
3437
3437
  reason: `${B}-range`,
3438
3438
  details: {
@@ -3485,7 +3485,7 @@ const Rv = Ke({
3485
3485
  T("div", {
3486
3486
  class: "relative-position"
3487
3487
  }, [
3488
- T(jn, {
3488
+ T(Un, {
3489
3489
  name: "q-transition--fade"
3490
3490
  }, () => T("div", {
3491
3491
  key: "h-yr-" + le.value,
@@ -3507,7 +3507,7 @@ const Rv = Ke({
3507
3507
  T("div", {
3508
3508
  class: "relative-position col"
3509
3509
  }, [
3510
- T(jn, {
3510
+ T(Un, {
3511
3511
  name: "q-transition--fade"
3512
3512
  }, () => T("div", {
3513
3513
  key: "h-sub" + N.value,
@@ -3558,7 +3558,7 @@ const Rv = Ke({
3558
3558
  T("div", {
3559
3559
  class: "relative-position overflow-hidden flex flex-center" + Te
3560
3560
  }, [
3561
- T(jn, {
3561
+ T(Un, {
3562
3562
  name: "q-transition--jump-" + be
3563
3563
  }, () => T("div", { key: ne }, [
3564
3564
  T(Et, {
@@ -3623,7 +3623,7 @@ const Rv = Ke({
3623
3623
  T("div", {
3624
3624
  class: "q-date__calendar-days-container relative-position overflow-hidden"
3625
3625
  }, [
3626
- T(jn, {
3626
+ T(Un, {
3627
3627
  name: "q-transition--slide-" + E.value
3628
3628
  }, () => T("div", {
3629
3629
  key: ct.value,
@@ -3804,14 +3804,14 @@ const Rv = Ke({
3804
3804
  setToday: Pe,
3805
3805
  setView: st,
3806
3806
  offsetCalendar: vt,
3807
- setCalendarTo: je,
3808
- setEditingRange: Ue
3807
+ setCalendarTo: Ue,
3808
+ setEditingRange: je
3809
3809
  }), () => {
3810
3810
  const B = [
3811
3811
  T("div", {
3812
3812
  class: "q-date__content col relative-position"
3813
3813
  }, [
3814
- T(jn, {
3814
+ T(Un, {
3815
3815
  name: "q-transition--fade"
3816
3816
  }, rt[x.value])
3817
3817
  ])
@@ -3843,7 +3843,7 @@ function Iv(e, n, t) {
3843
3843
  }
3844
3844
  };
3845
3845
  }
3846
- let za = 0, Wu, Hu, Qa, ju = !1, Xf, Yf, Qf, yo = null;
3846
+ let za = 0, Wu, Hu, Qa, Uu = !1, Xf, Yf, Qf, yo = null;
3847
3847
  function hy(e) {
3848
3848
  py(e) && Pt(e);
3849
3849
  }
@@ -3862,8 +3862,8 @@ function Zf(e) {
3862
3862
  e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
3863
3863
  }
3864
3864
  function Oi(e) {
3865
- ju !== !0 && (ju = !0, requestAnimationFrame(() => {
3866
- ju = !1;
3865
+ Uu !== !0 && (Uu = !0, requestAnimationFrame(() => {
3866
+ Uu = !1;
3867
3867
  const { height: n } = e.target, { clientHeight: t, scrollTop: r } = document.scrollingElement;
3868
3868
  (Qa === void 0 || n !== window.innerHeight) && (Qa = t - n, document.scrollingElement.scrollTop = r), r > Qa && (document.scrollingElement.scrollTop -= Math.ceil((r - Qa) / 8));
3869
3869
  }));
@@ -3994,7 +3994,7 @@ const by = {
3994
3994
  e,
3995
3995
  () => eh[e.position][0],
3996
3996
  () => eh[e.position][1]
3997
- ), w = k(() => b.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: g, hidePortal: x, portalIsAccessible: _, renderPortal: E } = Uc(
3997
+ ), w = k(() => b.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: g, hidePortal: x, portalIsAccessible: _, renderPortal: E } = jc(
3998
3998
  o,
3999
3999
  a,
4000
4000
  Y,
@@ -4014,13 +4014,13 @@ const by = {
4014
4014
  r.class
4015
4015
  ]);
4016
4016
  me(() => e.maximized, (ae) => {
4017
- i.value === !0 && U(ae);
4017
+ i.value === !0 && j(ae);
4018
4018
  }), me(S, (ae) => {
4019
4019
  h(ae), ae === !0 ? (Pv(N), Dv(L)) : (sc(N), ws(L));
4020
4020
  });
4021
4021
  function $(ae) {
4022
4022
  var le;
4023
- l = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, U(e.maximized), g(), s.value = !0, e.noFocus !== !0 ? ((le = document.activeElement) == null || le.blur(), m(F)) : v(), p(() => {
4023
+ l = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, j(e.maximized), g(), s.value = !0, e.noFocus !== !0 ? ((le = document.activeElement) == null || le.blur(), m(F)) : v(), p(() => {
4024
4024
  if (o.proxy.$q.platform.is.ios === !0) {
4025
4025
  if (e.seamless !== !0 && document.activeElement) {
4026
4026
  const { top: se, bottom: de } = document.activeElement.getBoundingClientRect(), { innerHeight: xe } = window, oe = window.visualViewport !== void 0 ? window.visualViewport.height : xe;
@@ -4065,9 +4065,9 @@ const by = {
4065
4065
  e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && V() : (t("escapeKey"), R()));
4066
4066
  }
4067
4067
  function q(ae) {
4068
- u !== null && (clearTimeout(u), u = null), (ae === !0 || i.value === !0) && (U(!1), e.seamless !== !0 && (h(!1), sc(N), ws(L))), ae !== !0 && (l = null);
4068
+ u !== null && (clearTimeout(u), u = null), (ae === !0 || i.value === !0) && (j(!1), e.seamless !== !0 && (h(!1), sc(N), ws(L))), ae !== !0 && (l = null);
4069
4069
  }
4070
- function U(ae) {
4070
+ function j(ae) {
4071
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);
4072
4072
  }
4073
4073
  function G(ae) {
@@ -4095,7 +4095,7 @@ const by = {
4095
4095
  ...r,
4096
4096
  class: I.value
4097
4097
  }, [
4098
- T(jn, {
4098
+ T(Un, {
4099
4099
  name: "q-transition--fade",
4100
4100
  appear: !0
4101
4101
  }, () => S.value === !0 ? T("div", {
@@ -4106,7 +4106,7 @@ const by = {
4106
4106
  onClick: O
4107
4107
  }) : null),
4108
4108
  T(
4109
- jn,
4109
+ Un,
4110
4110
  y.value,
4111
4111
  () => i.value === !0 ? T("div", {
4112
4112
  ref: a,
@@ -4124,7 +4124,7 @@ const by = {
4124
4124
  name: "QMenu",
4125
4125
  inheritAttrs: !1,
4126
4126
  props: {
4127
- ...Up,
4127
+ ...jp,
4128
4128
  ...vi,
4129
4129
  ...xn,
4130
4130
  ...ua,
@@ -4177,7 +4177,7 @@ const by = {
4177
4177
  handleHide: O,
4178
4178
  hideOnRouteChange: h,
4179
4179
  processOnMount: !0
4180
- }), { showPortal: S, hidePortal: M, renderPortal: I } = Uc(u, d, xe, "menu"), $ = {
4180
+ }), { showPortal: S, hidePortal: M, renderPortal: I } = jc(u, d, xe, "menu"), $ = {
4181
4181
  anchorEl: E,
4182
4182
  innerRef: d,
4183
4183
  onClickOutside(oe) {
@@ -4198,7 +4198,7 @@ const by = {
4198
4198
  me(q, (oe) => {
4199
4199
  oe === !0 ? (Dv(se), Jp($)) : (ws(se), vs($));
4200
4200
  });
4201
- function U() {
4201
+ function j() {
4202
4202
  yi(() => {
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 }));
@@ -4216,7 +4216,7 @@ const by = {
4216
4216
  () => c.screen.width + "|" + c.screen.height + "|" + e.self + "|" + e.anchor + "|" + c.lang.rtl,
4217
4217
  de
4218
4218
  )), e.noFocus !== !0 && document.activeElement.blur(), m(() => {
4219
- de(), e.noFocus !== !0 && U();
4219
+ de(), e.noFocus !== !0 && j();
4220
4220
  }), y(() => {
4221
4221
  c.platform.is.ios === !0 && (s = e.autoClose, d.value.click()), de(), S(!0), t("show", oe);
4222
4222
  }, e.transitionDuration);
@@ -4237,7 +4237,7 @@ const by = {
4237
4237
  s !== !0 ? (Xp(l, oe), t("click", oe)) : s = !1;
4238
4238
  }
4239
4239
  function le(oe) {
4240
- q.value === !0 && e.noFocus !== !0 && Yp(d.value, oe.target) !== !0 && U();
4240
+ q.value === !0 && e.noFocus !== !0 && Yp(d.value, oe.target) !== !0 && j();
4241
4241
  }
4242
4242
  function se(oe) {
4243
4243
  e.noEscDismiss !== !0 && (t("escapeKey"), C(oe));
@@ -4258,7 +4258,7 @@ const by = {
4258
4258
  }
4259
4259
  function xe() {
4260
4260
  return T(
4261
- jn,
4261
+ Un,
4262
4262
  b.value,
4263
4263
  () => f.value === !0 ? T("div", {
4264
4264
  role: "menu",
@@ -4277,12 +4277,12 @@ const by = {
4277
4277
  }, Ct(n.default)) : null
4278
4278
  );
4279
4279
  }
4280
- return Tt(N), Object.assign(l, { focus: U, updatePosition: de }), I;
4280
+ return Tt(N), Object.assign(l, { focus: j, updatePosition: de }), I;
4281
4281
  }
4282
4282
  }), Bv = Ke({
4283
4283
  name: "QPopupProxy",
4284
4284
  props: {
4285
- ...Up,
4285
+ ...jp,
4286
4286
  breakpoint: {
4287
4287
  type: [String, Number],
4288
4288
  default: 450
@@ -4424,7 +4424,7 @@ const ky = ["INPUT", "TEXTAREA"];
4424
4424
  function nh(e, n) {
4425
4425
  return n.event === void 0 && e.target !== void 0 && e.target.draggable !== !0 && typeof n.handler == "function" && ky.includes(e.target.nodeName.toUpperCase()) === !1 && (e.qClonedBy === void 0 || e.qClonedBy.indexOf(n.uid) === -1);
4426
4426
  }
4427
- function Uu(e, n, t) {
4427
+ function ju(e, n, t) {
4428
4428
  const r = ba(e);
4429
4429
  let o, a = r.left - n.event.x, i = r.top - n.event.y, s = Math.abs(a), u = Math.abs(i);
4430
4430
  const l = n.direction;
@@ -4542,7 +4542,7 @@ const ca = $c(
4542
4542
  };
4543
4543
  if (o.event.detected === !0) {
4544
4544
  o.event.isFirst !== !0 && r(a, o.event.mouse);
4545
- const { payload: h, synthetic: p } = Uu(a, o, !1);
4545
+ const { payload: h, synthetic: p } = ju(a, o, !1);
4546
4546
  h !== void 0 && (o.handler(h) === !1 ? o.end(a) : (o.styleCleanup === void 0 && o.event.isFirst === !0 && c(), o.event.lastX = h.position.left, o.event.lastY = h.position.top, o.event.lastDir = p === !0 ? void 0 : h.direction, o.event.isFirst = !1));
4547
4547
  return;
4548
4548
  }
@@ -4559,8 +4559,8 @@ const ca = $c(
4559
4559
  if (Ao(o, "temp"), hn.is.firefox === !0 && Bu(e, !1), i === !0)
4560
4560
  (s = o.styleCleanup) == null || s.call(o), o.event.detected !== !0 && o.initialEvent !== void 0 && o.initialEvent.target.dispatchEvent(o.initialEvent.event);
4561
4561
  else if (o.event.detected === !0) {
4562
- o.event.isFirst === !0 && o.handler(Uu(a === void 0 ? o.lastEvt : a, o).payload);
4563
- const { payload: u } = Uu(a === void 0 ? o.lastEvt : a, o, !0), l = () => {
4562
+ o.event.isFirst === !0 && o.handler(ju(a === void 0 ? o.lastEvt : a, o).payload);
4563
+ const { payload: u } = ju(a === void 0 ? o.lastEvt : a, o, !0), l = () => {
4564
4564
  o.handler(u);
4565
4565
  };
4566
4566
  o.styleCleanup !== void 0 ? o.styleCleanup(l) : l();
@@ -4674,14 +4674,14 @@ const Iy = Ke({
4674
4674
  case "second":
4675
4675
  return L.value;
4676
4676
  }
4677
- }), U = k(() => {
4677
+ }), j = k(() => {
4678
4678
  let re, he, Ve = 0, Ge = 1;
4679
4679
  const at = q.value !== null ? q.value.values : void 0;
4680
4680
  w.value === "hour" ? R.value === !0 ? (re = 0, he = 23) : (re = 0, he = 11, x.value === !1 && (Ve = 12)) : (re = 0, he = 55, Ge = 5);
4681
4681
  const ln = [];
4682
4682
  for (let it = re, Mt = re; it <= he; it += Ge, Mt++) {
4683
- const Ut = it + Ve, Br = (at == null ? void 0 : at.includes(Ut)) === !1, mr = w.value === "hour" && it === 0 ? R.value === !0 ? "00" : "12" : it;
4684
- ln.push({ val: Ut, index: Mt, disable: Br, label: mr });
4683
+ const jt = it + Ve, Br = (at == null ? void 0 : at.includes(jt)) === !1, mr = w.value === "hour" && it === 0 ? R.value === !0 ? "00" : "12" : it;
4684
+ ln.push({ val: jt, index: Mt, disable: Br, label: mr });
4685
4685
  }
4686
4686
  return ln;
4687
4687
  }), G = k(() => [[
@@ -4705,7 +4705,7 @@ const Iy = Ke({
4705
4705
  (he.dateHash !== g.value.dateHash || he.timeHash !== g.value.timeHash) && (g.value = he, he.hour === null ? w.value = "hour" : x.value = he.hour < 12);
4706
4706
  }), me([m, v], () => {
4707
4707
  _t(() => {
4708
- Ue();
4708
+ je();
4709
4709
  });
4710
4710
  });
4711
4711
  function O() {
@@ -4713,7 +4713,7 @@ const Iy = Ke({
4713
4713
  ...l(),
4714
4714
  ...Ry()
4715
4715
  };
4716
- Ue(re), Object.assign(g.value, re), w.value = "hour";
4716
+ je(re), Object.assign(g.value, re), w.value = "hour";
4717
4717
  }
4718
4718
  function N(re, he, Ve) {
4719
4719
  const Ge = Array.apply(null, { length: he + 1 }).map((at, ln) => {
@@ -4740,7 +4740,7 @@ const Iy = Ke({
4740
4740
  return he;
4741
4741
  if (re < he || re > Ve)
4742
4742
  return Y(re, he, at) <= Y(re, Ve, at) ? he : Ve;
4743
- const ln = Ge.findIndex((Ut) => re <= Ut), it = Ge[ln - 1], Mt = Ge[ln];
4743
+ const ln = Ge.findIndex((jt) => re <= jt), it = Ge[ln - 1], Mt = Ge[ln];
4744
4744
  return re - it <= Mt - re ? it : Mt;
4745
4745
  }
4746
4746
  function le() {
@@ -4783,10 +4783,10 @@ const Iy = Ke({
4783
4783
  let it, Mt = Math.asin(at / ln) * (180 / Math.PI);
4784
4784
  if (Ge.top < he.top ? Mt = he.left < Ge.left ? 90 - Mt : 270 + Mt : Mt = he.left < Ge.left ? Mt + 90 : 270 - Mt, w.value === "hour") {
4785
4785
  if (it = Mt / 30, F.value !== null) {
4786
- const Ut = R.value !== !0 ? x.value === !0 : F.value.am.values.length !== 0 && F.value.pm.values.length !== 0 ? ln >= he.dist : F.value.am.values.length !== 0;
4786
+ const jt = R.value !== !0 ? x.value === !0 : F.value.am.values.length !== 0 && F.value.pm.values.length !== 0 ? ln >= he.dist : F.value.am.values.length !== 0;
4787
4787
  it = ae(
4788
- it + (Ut === !0 ? 0 : 12),
4789
- F.value[Ut === !0 ? "am" : "pm"]
4788
+ it + (jt === !0 ? 0 : 12),
4789
+ F.value[jt === !0 ? "am" : "pm"]
4790
4790
  );
4791
4791
  } else
4792
4792
  it = Math.round(it), R.value === !0 ? ln < he.dist ? it < 12 && (it += 12) : it === 12 && (it = 0) : x.value === !0 && it === 12 ? it = 0 : x.value === !1 && it !== 12 && (it += 12);
@@ -4879,13 +4879,13 @@ const Iy = Ke({
4879
4879
  }
4880
4880
  }
4881
4881
  function Dt(re) {
4882
- g.value.hour !== re && (g.value.hour = re, je());
4882
+ g.value.hour !== re && (g.value.hour = re, Ue());
4883
4883
  }
4884
4884
  function ue(re) {
4885
- g.value.minute !== re && (g.value.minute = re, je());
4885
+ g.value.minute !== re && (g.value.minute = re, Ue());
4886
4886
  }
4887
4887
  function Z(re) {
4888
- g.value.second !== re && (g.value.second = re, je());
4888
+ g.value.second !== re && (g.value.second = re, Ue());
4889
4889
  }
4890
4890
  const pe = {
4891
4891
  hour: Dt,
@@ -4893,16 +4893,16 @@ const Iy = Ke({
4893
4893
  second: Z
4894
4894
  };
4895
4895
  function Pe() {
4896
- x.value === !1 && (x.value = !0, g.value.hour !== null && (g.value.hour -= 12, je()));
4896
+ x.value === !1 && (x.value = !0, g.value.hour !== null && (g.value.hour -= 12, Ue()));
4897
4897
  }
4898
4898
  function st() {
4899
- x.value === !0 && (x.value = !1, g.value.hour !== null && (g.value.hour += 12, je()));
4899
+ x.value === !0 && (x.value = !1, g.value.hour !== null && (g.value.hour += 12, Ue()));
4900
4900
  }
4901
4901
  function vt(re) {
4902
4902
  const he = e.modelValue;
4903
4903
  w.value !== re && he !== void 0 && he !== null && he !== "" && typeof he != "string" && (w.value = re);
4904
4904
  }
4905
- function je() {
4905
+ function Ue() {
4906
4906
  if (I.value !== null && I.value(g.value.hour) !== !0) {
4907
4907
  g.value = Ya(), vt("hour");
4908
4908
  return;
@@ -4915,9 +4915,9 @@ const Iy = Ke({
4915
4915
  g.value.second = null, vt("second");
4916
4916
  return;
4917
4917
  }
4918
- g.value.hour === null || g.value.minute === null || e.withSeconds === !0 && g.value.second === null || Ue();
4918
+ g.value.hour === null || g.value.minute === null || e.withSeconds === !0 && g.value.second === null || je();
4919
4919
  }
4920
- function Ue(re) {
4920
+ function je(re) {
4921
4921
  const he = Object.assign({ ...g.value }, re), Ve = e.calendar === "persian" ? wt(he.hour) + ":" + wt(he.minute) + (e.withSeconds === !0 ? ":" + wt(he.second) : "") : Ev(
4922
4922
  new Date(
4923
4923
  he.year,
@@ -5000,7 +5000,7 @@ const Iy = Ke({
5000
5000
  return T("div", {
5001
5001
  class: "q-time__content col relative-position"
5002
5002
  }, [
5003
- T(jn, {
5003
+ T(Un, {
5004
5004
  name: "q-transition--scale"
5005
5005
  }, () => T("div", {
5006
5006
  key: "clock" + w.value,
@@ -5021,7 +5021,7 @@ const Iy = Ke({
5021
5021
  class: "q-time__clock-pointer" + (g.value[w.value] === null ? " hidden" : e.color !== void 0 ? ` text-${e.color}` : ""),
5022
5022
  style: C.value
5023
5023
  }),
5024
- U.value.map((he) => T("div", {
5024
+ j.value.map((he) => T("div", {
5025
5025
  class: `q-time__clock-position row flex-center q-time__clock-pos-${he.index}` + (he.val === re ? " q-time__clock-position--active " + s.value : he.disable === !0 ? " q-time__clock-position--disable" : "")
5026
5026
  }, [T("span", he.label)]))
5027
5027
  ])
@@ -5339,8 +5339,8 @@ function ud(e) {
5339
5339
  focus: E
5340
5340
  }), e.computedCounter === void 0 && (e.computedCounter = k(() => {
5341
5341
  if (n.counter !== !1) {
5342
- const q = typeof n.modelValue == "string" || typeof n.modelValue == "number" ? ("" + n.modelValue).length : Array.isArray(n.modelValue) === !0 ? n.modelValue.length : 0, U = n.maxlength !== void 0 ? n.maxlength : n.maxValues;
5343
- return q + (U !== void 0 ? " / " + U : "");
5342
+ const q = typeof n.modelValue == "string" || typeof n.modelValue == "number" ? ("" + n.modelValue).length : Array.isArray(n.modelValue) === !0 ? n.modelValue.length : 0, j = n.maxlength !== void 0 ? n.maxlength : n.maxValues;
5343
+ return q + (j !== void 0 ? " / " + j : "");
5344
5344
  }
5345
5345
  }));
5346
5346
  const {
@@ -5373,8 +5373,8 @@ function ud(e) {
5373
5373
  function _() {
5374
5374
  var G;
5375
5375
  const q = document.activeElement;
5376
- let U = (G = e.targetRef) == null ? void 0 : G.value;
5377
- U && (q === null || q.id !== e.targetUid.value) && (U.hasAttribute("tabindex") === !0 || (U = U.querySelector("[tabindex]")), U !== q && (U == null || U.focus({ preventScroll: !0 })));
5376
+ let j = (G = e.targetRef) == null ? void 0 : G.value;
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
5380
  yi(_);
@@ -5387,14 +5387,14 @@ function ud(e) {
5387
5387
  function C(q) {
5388
5388
  s !== null && (clearTimeout(s), s = null), e.editable.value === !0 && e.focused.value === !1 && (e.focused.value = !0, t("focus", q));
5389
5389
  }
5390
- function S(q, U) {
5390
+ function S(q, j) {
5391
5391
  s !== null && clearTimeout(s), s = setTimeout(() => {
5392
- s = null, !(document.hasFocus() === !0 && (e.hasPopupOpen === !0 || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement) !== !1)) && (e.focused.value === !0 && (e.focused.value = !1, t("blur", q)), U == null || U());
5392
+ s = null, !(document.hasFocus() === !0 && (e.hasPopupOpen === !0 || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement) !== !1)) && (e.focused.value === !0 && (e.focused.value = !1, t("blur", q)), j == null || j());
5393
5393
  });
5394
5394
  }
5395
5395
  function M(q) {
5396
- var U;
5397
- Pt(q), i.platform.is.mobile !== !0 ? (((U = e.targetRef) == null ? void 0 : U.value) || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), n.type === "file" && (e.inputRef.value.value = null), t("update:modelValue", null), e.changeEvent === !0 && t("change", null), t("clear", n.modelValue), _t(() => {
5396
+ var j;
5397
+ Pt(q), i.platform.is.mobile !== !0 ? (((j = e.targetRef) == null ? void 0 : j.value) || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), n.type === "file" && (e.inputRef.value.value = null), t("update:modelValue", null), e.changeEvent === !0 && t("change", null), t("clear", n.modelValue), _t(() => {
5398
5398
  const G = u.value;
5399
5399
  f(), u.value = G;
5400
5400
  });
@@ -5475,29 +5475,29 @@ function ud(e) {
5475
5475
  ), q.concat(Ct(r.default));
5476
5476
  }
5477
5477
  function F() {
5478
- let q, U;
5479
- c.value === !0 ? d.value !== null ? (q = [T("div", { role: "alert" }, d.value)], U = `q--slot-error-${d.value}`) : (q = Ct(r.error), U = "q--slot-error") : (n.hideHint !== !0 || e.focused.value === !0) && (n.hint !== void 0 ? (q = [T("div", n.hint)], U = `q--slot-hint-${n.hint}`) : (q = Ct(r.hint), U = "q--slot-hint"));
5478
+ let q, j;
5479
+ c.value === !0 ? d.value !== null ? (q = [T("div", { role: "alert" }, d.value)], j = `q--slot-error-${d.value}`) : (q = Ct(r.error), j = "q--slot-error") : (n.hideHint !== !0 || e.focused.value === !0) && (n.hint !== void 0 ? (q = [T("div", n.hint)], j = `q--slot-hint-${n.hint}`) : (q = Ct(r.hint), j = "q--slot-hint"));
5480
5480
  const G = n.counter === !0 || r.counter !== void 0;
5481
5481
  if (n.hideBottomSpace === !0 && G === !1 && q === void 0) return;
5482
5482
  const O = T("div", {
5483
- key: U,
5483
+ key: j,
5484
5484
  class: "q-field__messages col"
5485
5485
  }, q);
5486
5486
  return T("div", {
5487
5487
  class: "q-field__bottom row items-start q-field__bottom--" + (n.hideBottomSpace !== !0 ? "animated" : "stale"),
5488
5488
  onClick: Dn
5489
5489
  }, [
5490
- n.hideBottomSpace === !0 ? O : T(jn, { name: "q-transition--field-message" }, () => O),
5490
+ n.hideBottomSpace === !0 ? O : T(Un, { name: "q-transition--field-message" }, () => O),
5491
5491
  G === !0 ? T("div", {
5492
5492
  class: "q-field__counter"
5493
5493
  }, r.counter !== void 0 ? r.counter() : e.computedCounter.value) : null
5494
5494
  ]);
5495
5495
  }
5496
- function V(q, U) {
5497
- return U === null ? null : T("div", {
5496
+ function V(q, j) {
5497
+ return j === null ? null : T("div", {
5498
5498
  key: q,
5499
5499
  class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
5500
- }, U);
5500
+ }, j);
5501
5501
  }
5502
5502
  let L = !1;
5503
5503
  return ho(() => {
@@ -5509,7 +5509,7 @@ function ud(e) {
5509
5509
  }), Tt(() => {
5510
5510
  s !== null && clearTimeout(s);
5511
5511
  }), Object.assign(a, { focus: E, blur: R }), function() {
5512
- const U = e.getControl === void 0 && r.control === void 0 ? {
5512
+ const j = e.getControl === void 0 && r.control === void 0 ? {
5513
5513
  ...e.splitAttrs.attributes.value,
5514
5514
  "data-autofocus": n.autofocus === !0 || void 0,
5515
5515
  ...x.value
@@ -5521,7 +5521,7 @@ function ud(e) {
5521
5521
  o.class
5522
5522
  ],
5523
5523
  style: o.style,
5524
- ...U
5524
+ ...j
5525
5525
  }, [
5526
5526
  r.before !== void 0 ? T("div", {
5527
5527
  class: "q-field__before q-field__marginal row no-wrap items-center",
@@ -5627,7 +5627,7 @@ function Vy(e, n, t, r) {
5627
5627
  });
5628
5628
  const q = new RegExp(
5629
5629
  "^" + I.join("") + "(" + (V === "" ? "." : "[^" + V + "]") + "+)?" + (V === "" ? "" : "[" + V + "]*") + "$"
5630
- ), U = $.length - 1, G = $.map((O, N) => N === 0 && e.reverseFillMask === !0 ? new RegExp("^" + M + "*" + O) : N === U ? new RegExp(
5630
+ ), j = $.length - 1, G = $.map((O, N) => N === 0 && e.reverseFillMask === !0 ? new RegExp("^" + M + "*" + O) : N === j ? new RegExp(
5631
5631
  "^" + O + "(" + (L === "" ? "." : L) + "+)?" + (e.reverseFillMask === !0 ? "$" : M + "*")
5632
5632
  ) : new RegExp("^" + O));
5633
5633
  i = D, s = (O) => {
@@ -5682,8 +5682,8 @@ function Vy(e, n, t, r) {
5682
5682
  b.right(I, G);
5683
5683
  }
5684
5684
  });
5685
- const U = e.unmaskedValue === !0 ? E(L) : L;
5686
- String(e.modelValue) !== U && (e.modelValue !== null || U !== "") && t(U, !0);
5685
+ const j = e.unmaskedValue === !0 ? E(L) : L;
5686
+ String(e.modelValue) !== j && (e.modelValue !== null || j !== "") && t(j, !0);
5687
5687
  }
5688
5688
  function y(C, S, M) {
5689
5689
  const I = x(E(C.value));
@@ -5826,13 +5826,13 @@ function zy(e, n) {
5826
5826
  return t();
5827
5827
  });
5828
5828
  }
5829
- const $y = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/, Wy = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u, Hy = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/, jy = /[a-z0-9_ -]$/i;
5829
+ const $y = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/, Wy = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u, Hy = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/, Uy = /[a-z0-9_ -]$/i;
5830
5830
  function qv(e) {
5831
5831
  return function(t) {
5832
5832
  if (t.type === "compositionend" || t.type === "change") {
5833
5833
  if (t.target.qComposing !== !0) return;
5834
5834
  t.target.qComposing = !1, e(t);
5835
- } else t.type === "compositionupdate" && t.target.qComposing !== !0 && typeof t.data == "string" && (hn.is.firefox === !0 ? jy.test(t.data) === !1 : $y.test(t.data) === !0 || Wy.test(t.data) === !0 || Hy.test(t.data) === !0) === !0 && (t.target.qComposing = !0);
5835
+ } else t.type === "compositionupdate" && t.target.qComposing !== !0 && typeof t.data == "string" && (hn.is.firefox === !0 ? Uy.test(t.data) === !1 : $y.test(t.data) === !0 || Wy.test(t.data) === !0 || Hy.test(t.data) === !0) === !0 && (t.target.qComposing = !0);
5836
5836
  };
5837
5837
  }
5838
5838
  const Oa = Ke({
@@ -5889,7 +5889,7 @@ const Oa = Ke({
5889
5889
  // this also fixes the issue where some browsers e.g. iOS Chrome
5890
5890
  // fires "change" instead of "input" on autocomplete.
5891
5891
  onChange: q,
5892
- onBlur: U,
5892
+ onBlur: j,
5893
5893
  onFocus: Mn
5894
5894
  };
5895
5895
  return N.onCompositionstart = N.onCompositionupdate = N.onCompositionend = x, p.value === !0 && (N.onKeydown = y, N.onClick = b), e.autogrow === !0 && (N.onAnimationend = F), N;
@@ -5982,7 +5982,7 @@ const Oa = Ke({
5982
5982
  function q(N) {
5983
5983
  x(N), l !== null && (clearTimeout(l), l = null), c == null || c(), n("change", N.target.value);
5984
5984
  }
5985
- function U(N) {
5985
+ function j(N) {
5986
5986
  N !== void 0 && Mn(N), l !== null && (clearTimeout(l), l = null), c == null || c(), s = !1, u = !1, delete a.value, e.type !== "file" && setTimeout(() => {
5987
5987
  d.value !== null && (d.value.value = h.value !== void 0 ? h.value : "");
5988
5988
  });
@@ -5991,7 +5991,7 @@ const Oa = Ke({
5991
5991
  return a.hasOwnProperty("value") === !0 ? a.value : h.value !== void 0 ? h.value : "";
5992
5992
  }
5993
5993
  Tt(() => {
5994
- U();
5994
+ j();
5995
5995
  }), vn(() => {
5996
5996
  e.autogrow === !0 && L();
5997
5997
  }), Object.assign(_, {
@@ -6066,7 +6066,7 @@ const zv = (e, n) => ({
6066
6066
  function ld() {
6067
6067
  return co(My);
6068
6068
  }
6069
- const Uy = { class: "app-input-new" }, Gy = {
6069
+ const jy = { class: "app-input-new" }, Gy = {
6070
6070
  key: 0,
6071
6071
  class: "app-input-new__label"
6072
6072
  }, Ky = {
@@ -6143,7 +6143,7 @@ const Uy = { class: "app-input-new" }, Gy = {
6143
6143
  o.notify(zv("success", "Данные скопированы"));
6144
6144
  });
6145
6145
  };
6146
- return (c, d) => (X(), ye("div", Uy, [
6146
+ return (c, d) => (X(), ye("div", jy, [
6147
6147
  c.label ? (X(), ye("label", Gy, [
6148
6148
  $t(mt(c.label) + " ", 1),
6149
6149
  c.required ? (X(), ye("span", Ky, "*")) : Xe("", !0)
@@ -7191,23 +7191,23 @@ function bb(e) {
7191
7191
  function Hv(e) {
7192
7192
  return typeof e == "function" ? e() : Yn(e);
7193
7193
  }
7194
- const jv = typeof window < "u" && typeof document < "u";
7194
+ const Uv = typeof window < "u" && typeof document < "u";
7195
7195
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7196
7196
  const wb = Object.prototype.toString, xb = (e) => wb.call(e) === "[object Object]", is = () => {
7197
7197
  }, _b = /* @__PURE__ */ Cb();
7198
7198
  function Cb() {
7199
7199
  var e, n;
7200
- return jv && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
7200
+ return Uv && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
7201
7201
  }
7202
7202
  function Za(e) {
7203
7203
  var n;
7204
7204
  const t = Hv(e);
7205
7205
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
7206
7206
  }
7207
- const Uv = jv ? window : void 0;
7207
+ const jv = Uv ? window : void 0;
7208
7208
  function Yu(...e) {
7209
7209
  let n, t, r, o;
7210
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, r, o] = e, n = Uv) : [n, t, r, o] = e, !n)
7210
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, r, o] = e, n = jv) : [n, t, r, o] = e, !n)
7211
7211
  return is;
7212
7212
  Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
7213
7213
  const a = [], i = () => {
@@ -7230,7 +7230,7 @@ function Yu(...e) {
7230
7230
  }
7231
7231
  let ph = !1;
7232
7232
  function kb(e, n, t = {}) {
7233
- const { window: r = Uv, ignore: o = [], capture: a = !0, detectIframe: i = !1 } = t;
7233
+ const { window: r = jv, ignore: o = [], capture: a = !0, detectIframe: i = !1 } = t;
7234
7234
  if (!r)
7235
7235
  return is;
7236
7236
  _b && !ph && (ph = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", is)), r.document.documentElement.addEventListener("click", is));
@@ -7402,7 +7402,7 @@ function Wb(e, n) {
7402
7402
  }, null, -1)
7403
7403
  ]));
7404
7404
  }
7405
- const Hb = /* @__PURE__ */ Be(zb, [["render", Wb]]), jb = {}, Ub = {
7405
+ const Hb = /* @__PURE__ */ Be(zb, [["render", Wb]]), Ub = {}, jb = {
7406
7406
  width: "28",
7407
7407
  height: "28",
7408
7408
  viewBox: "0 0 24 24",
@@ -7410,7 +7410,7 @@ const Hb = /* @__PURE__ */ Be(zb, [["render", Wb]]), jb = {}, Ub = {
7410
7410
  xmlns: "http://www.w3.org/2000/svg"
7411
7411
  };
7412
7412
  function Gb(e, n) {
7413
- return X(), ye("svg", Ub, n[0] || (n[0] = [
7413
+ return X(), ye("svg", jb, n[0] || (n[0] = [
7414
7414
  fe("path", {
7415
7415
  "fill-rule": "evenodd",
7416
7416
  "clip-rule": "evenodd",
@@ -7419,7 +7419,7 @@ function Gb(e, n) {
7419
7419
  }, null, -1)
7420
7420
  ]));
7421
7421
  }
7422
- const Kb = /* @__PURE__ */ Be(jb, [["render", Gb]]), Xb = {}, Yb = {
7422
+ const Kb = /* @__PURE__ */ Be(Ub, [["render", Gb]]), Xb = {}, Yb = {
7423
7423
  xmlns: "http://www.w3.org/2000/svg",
7424
7424
  width: "currentWidth",
7425
7425
  height: "currentHeight",
@@ -7724,7 +7724,7 @@ function H2(e, n) {
7724
7724
  }, null, -1)
7725
7725
  ]));
7726
7726
  }
7727
- const j2 = /* @__PURE__ */ Be($2, [["render", H2]]), U2 = {}, G2 = {
7727
+ const U2 = /* @__PURE__ */ Be($2, [["render", H2]]), j2 = {}, G2 = {
7728
7728
  width: "24",
7729
7729
  height: "24",
7730
7730
  viewBox: "0 0 24 24",
@@ -7749,7 +7749,7 @@ function K2(e, n) {
7749
7749
  }, null, -1)
7750
7750
  ]));
7751
7751
  }
7752
- const X2 = /* @__PURE__ */ Be(U2, [["render", K2]]), Y2 = {}, Q2 = {
7752
+ const X2 = /* @__PURE__ */ Be(j2, [["render", K2]]), Y2 = {}, Q2 = {
7753
7753
  width: "24",
7754
7754
  height: "24",
7755
7755
  viewBox: "0 0 24 30",
@@ -8035,15 +8035,15 @@ function $w(e, n) {
8035
8035
  }, null, -1)
8036
8036
  ]));
8037
8037
  }
8038
- const Ww = /* @__PURE__ */ Be(Vw, [["render", $w]]), Hw = {}, jw = {
8038
+ const Ww = /* @__PURE__ */ Be(Vw, [["render", $w]]), Hw = {}, Uw = {
8039
8039
  xmlns: "http://www.w3.org/2000/svg",
8040
8040
  width: "24",
8041
8041
  height: "24",
8042
8042
  viewBox: "0 0 24 24",
8043
8043
  fill: "none"
8044
8044
  };
8045
- function Uw(e, n) {
8046
- return X(), ye("svg", jw, n[0] || (n[0] = [
8045
+ function jw(e, n) {
8046
+ return X(), ye("svg", Uw, n[0] || (n[0] = [
8047
8047
  fe("path", {
8048
8048
  d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",
8049
8049
  stroke: "currentStroke",
@@ -8061,7 +8061,7 @@ function Uw(e, n) {
8061
8061
  }, null, -1)
8062
8062
  ]));
8063
8063
  }
8064
- const Gw = /* @__PURE__ */ Be(Hw, [["render", Uw]]), Kw = /* @__PURE__ */ Bt({
8064
+ const Gw = /* @__PURE__ */ Be(Hw, [["render", jw]]), Kw = /* @__PURE__ */ Bt({
8065
8065
  __name: "AppIcon",
8066
8066
  props: {
8067
8067
  size: {},
@@ -8098,7 +8098,7 @@ const Gw = /* @__PURE__ */ Be(Hw, [["render", Uw]]), Kw = /* @__PURE__ */ Bt({
8098
8098
  OrderIcon: P2,
8099
8099
  ModulesIcon: N2,
8100
8100
  NotificationsIcon: z2,
8101
- VideozonesIcon: j2,
8101
+ VideozonesIcon: U2,
8102
8102
  InstrumentWorkZoneIcon: X2,
8103
8103
  WorkshopIcon: J2,
8104
8104
  WarehousesIcon: rw,
@@ -8725,7 +8725,7 @@ function Yv({
8725
8725
  }
8726
8726
  c = -1, l = void 0, p.value = Wa(f, h, 0, g.value.from), m.value = Wa(f, h, g.value.to, e.value), O >= 0 ? ($(g.value.from), _t(() => {
8727
8727
  S(O);
8728
- })) : U();
8728
+ })) : j();
8729
8729
  }
8730
8730
  function V(O) {
8731
8731
  if (O === void 0 && typeof window < "u") {
@@ -8812,7 +8812,7 @@ function Yv({
8812
8812
  }), c = O);
8813
8813
  }
8814
8814
  V();
8815
- const U = ad(
8815
+ const j = ad(
8816
8816
  M,
8817
8817
  u.platform.is.ios === !0 ? 120 : 35
8818
8818
  );
@@ -8832,12 +8832,12 @@ function Yv({
8832
8832
  u.lang.rtl
8833
8833
  ) : S(c);
8834
8834
  }), Tt(() => {
8835
- U.cancel();
8835
+ j.cancel();
8836
8836
  }), Object.assign(s, { scrollTo: S, reset: R, refresh: C }), {
8837
8837
  virtualScrollSliceRange: g,
8838
8838
  virtualScrollSliceSizeComputed: v,
8839
8839
  setVirtualScrollSize: V,
8840
- onVirtualScrollEvt: U,
8840
+ onVirtualScrollEvt: j,
8841
8841
  localResetVirtualScroll: F,
8842
8842
  padVirtualScroll: L,
8843
8843
  scrollTo: S,
@@ -8946,7 +8946,7 @@ const hd = Ke({
8946
8946
  localResetVirtualScroll: V,
8947
8947
  padVirtualScroll: L,
8948
8948
  onVirtualScrollEvt: q,
8949
- scrollTo: U,
8949
+ scrollTo: j,
8950
8950
  setVirtualScrollSize: G
8951
8951
  } = Yv({
8952
8952
  virtualScrollLength: I,
@@ -8993,7 +8993,7 @@ const hd = Ke({
8993
8993
  opt: H,
8994
8994
  html: ge.value(H),
8995
8995
  selected: !0,
8996
- removeAtIndex: Ue,
8996
+ removeAtIndex: je,
8997
8997
  toggleOption: It,
8998
8998
  tabindex: Oe.value
8999
8999
  }))), ct = k(() => {
@@ -9042,7 +9042,7 @@ const hd = Ke({
9042
9042
  // this also fixes the issue where some browsers e.g. iOS Chrome
9043
9043
  // fires "change" instead of "input" on autocomplete.
9044
9044
  onChange: M,
9045
- onKeydown: Ut,
9045
+ onKeydown: jt,
9046
9046
  onKeyup: it,
9047
9047
  onKeypress: Mt,
9048
9048
  onFocus: at,
@@ -9054,11 +9054,11 @@ const hd = Ke({
9054
9054
  });
9055
9055
  me(N, (H) => {
9056
9056
  h = H, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && O.innerLoading.value !== !0 && (i.value !== !0 && a.value !== !0 || le.value !== !0) && (m !== !0 && er(), (i.value === !0 || a.value === !0) && $e(""));
9057
- }, { immediate: !0 }), me(() => e.fillInput, er), me(a, Pu), me(I, j0);
9057
+ }, { immediate: !0 }), me(() => e.fillInput, er), me(a, Pu), me(I, U0);
9058
9058
  function vt(H) {
9059
9059
  return e.emitValue === !0 ? ue.value(H) : H;
9060
9060
  }
9061
- function je(H) {
9061
+ function Ue(H) {
9062
9062
  if (H !== -1 && H < N.value.length)
9063
9063
  if (e.multiple === !0) {
9064
9064
  const ke = e.modelValue.slice();
@@ -9066,8 +9066,8 @@ const hd = Ke({
9066
9066
  } else
9067
9067
  t("update:modelValue", null);
9068
9068
  }
9069
- function Ue(H) {
9070
- je(H), O.focus();
9069
+ function je(H) {
9070
+ Ue(H), O.focus();
9071
9071
  }
9072
9072
  function xt(H, ke) {
9073
9073
  const Ie = vt(H);
@@ -9129,7 +9129,7 @@ const hd = Ke({
9129
9129
  I.value - 1
9130
9130
  );
9131
9131
  while (Ie !== -1 && Ie !== s.value && pe.value(e.options[Ie]) === !0);
9132
- s.value !== Ie && (re(Ie), U(Ie), ke !== !0 && e.useInput === !0 && e.fillInput === !0 && _e(
9132
+ s.value !== Ie && (re(Ie), j(Ie), ke !== !0 && e.useInput === !0 && e.fillInput === !0 && _e(
9133
9133
  Ie >= 0 ? Z.value(e.options[Ie]) : y,
9134
9134
  !0
9135
9135
  ));
@@ -9169,7 +9169,7 @@ const hd = Ke({
9169
9169
  function Mt(H) {
9170
9170
  t("keypress", H);
9171
9171
  }
9172
- function Ut(H) {
9172
+ function jt(H) {
9173
9173
  if (t("keydown", H), eu(H) === !0) return;
9174
9174
  const ke = u.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), Ie = H.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (s.value !== -1 || ke === !0);
9175
9175
  if (H.keyCode === 27) {
@@ -9186,7 +9186,7 @@ const hd = Ke({
9186
9186
  return;
9187
9187
  }
9188
9188
  if (H.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && u.value.length === 0) {
9189
- e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? je(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && t("update:modelValue", null);
9189
+ e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? Ue(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && t("update:modelValue", null);
9190
9190
  return;
9191
9191
  }
9192
9192
  (H.keyCode === 35 || H.keyCode === 36) && (typeof u.value != "string" || u.value.length === 0) && (Pt(H), s.value = -1, he(H.keyCode === 36 ? 1 : -1, e.multiple)), (H.keyCode === 33 || H.keyCode === 34) && F.value !== void 0 && (Pt(H), s.value = Math.max(
@@ -9201,14 +9201,14 @@ const hd = Ke({
9201
9201
  a.value !== !0 && Ze(H);
9202
9202
  const Ot = H.key.toLocaleLowerCase(), Kt = w.length === 1 && w[0] === Ot;
9203
9203
  g = Date.now() + 1500, Kt === !1 && (Pt(H), w += Ot);
9204
- const Nt = new RegExp("^" + w.split("").map((Uo) => gx.indexOf(Uo) !== -1 ? "\\" + Uo : Uo).join(".*"), "i");
9204
+ const Nt = new RegExp("^" + w.split("").map((jo) => gx.indexOf(jo) !== -1 ? "\\" + jo : jo).join(".*"), "i");
9205
9205
  let Xt = s.value;
9206
9206
  if (Kt === !0 || Xt < 0 || Nt.test(Z.value(e.options[Xt])) !== !0)
9207
9207
  do
9208
9208
  Xt = Wf(Xt + 1, -1, ht - 1);
9209
9209
  while (Xt !== s.value && (pe.value(e.options[Xt]) === !0 || Nt.test(Z.value(e.options[Xt])) !== !0));
9210
9210
  s.value !== Xt && _t(() => {
9211
- re(Xt), U(Xt), Xt >= 0 && e.useInput === !0 && e.fillInput === !0 && _e(Z.value(e.options[Xt]), !0);
9211
+ re(Xt), j(Xt), Xt >= 0 && e.useInput === !0 && e.fillInput === !0 && _e(Z.value(e.options[Xt]), !0);
9212
9212
  });
9213
9213
  return;
9214
9214
  }
@@ -9219,13 +9219,13 @@ const hd = Ke({
9219
9219
  }
9220
9220
  if (ke === !0) {
9221
9221
  const Ot = (Kt, Nt) => {
9222
- var Uo;
9222
+ var jo;
9223
9223
  if (Nt) {
9224
9224
  if (mh(Nt) !== !0) return;
9225
9225
  } else
9226
9226
  Nt = e.newValueMode;
9227
9227
  if (We("", e.multiple !== !0, !0), Kt == null) return;
9228
- (Nt === "toggle" ? It : xt)(Kt, Nt === "add-unique"), e.multiple !== !0 && ((Uo = _.value) == null || Uo.focus(), bt());
9228
+ (Nt === "toggle" ? It : xt)(Kt, Nt === "add-unique"), e.multiple !== !0 && ((jo = _.value) == null || jo.focus(), bt());
9229
9229
  };
9230
9230
  if (e.onNewValue !== void 0 ? t("newValue", u.value, Ot) : Ot(u.value), e.multiple !== !0) return;
9231
9231
  }
@@ -9238,7 +9238,7 @@ const hd = Ke({
9238
9238
  function mr() {
9239
9239
  return Br();
9240
9240
  }
9241
- function jo() {
9241
+ function Uo() {
9242
9242
  return e.hideSelected === !0 ? [] : n["selected-item"] !== void 0 ? Ye.value.map((H) => n["selected-item"](H)).slice() : n.selected !== void 0 ? [].concat(n.selected()) : e.useChips === !0 ? Ye.value.map((H, ke) => T(fd, {
9243
9243
  key: "option-" + ke,
9244
9244
  removable: O.editable.value === !0 && pe.value(H.opt) !== !0,
@@ -9463,7 +9463,7 @@ const hd = Ke({
9463
9463
  }
9464
9464
  re(ke);
9465
9465
  }
9466
- function j0(H, ke) {
9466
+ function U0(H, ke) {
9467
9467
  a.value === !0 && O.innerLoading.value === !1 && (V(-1, !0), _t(() => {
9468
9468
  a.value === !0 && O.innerLoading.value === !1 && (H > ke ? V() : Pu(!0));
9469
9469
  }));
@@ -9485,7 +9485,7 @@ const hd = Ke({
9485
9485
  }), Object.assign(r, {
9486
9486
  showPopup: Ze,
9487
9487
  hidePopup: bt,
9488
- removeAtIndex: je,
9488
+ removeAtIndex: Ue,
9489
9489
  add: xt,
9490
9490
  toggleOption: It,
9491
9491
  getOptionIndex: () => s.value,
@@ -9535,7 +9535,7 @@ const hd = Ke({
9535
9535
  }
9536
9536
  },
9537
9537
  getControl: (H) => {
9538
- const ke = jo(), Ie = H === !0 || i.value !== !0 || p !== !0;
9538
+ const ke = Uo(), Ie = H === !0 || i.value !== !0 || p !== !0;
9539
9539
  if (e.useInput === !0)
9540
9540
  ke.push(go(H, Ie));
9541
9541
  else if (O.editable.value === !0) {
@@ -9550,7 +9550,7 @@ const hd = Ke({
9550
9550
  readonly: !0,
9551
9551
  "data-autofocus": H === !0 || e.autofocus === !0 || void 0,
9552
9552
  ...Ot,
9553
- onKeydown: Ut,
9553
+ onKeydown: jt,
9554
9554
  onKeyup: ln,
9555
9555
  onKeypress: Mt
9556
9556
  })
@@ -10002,19 +10002,19 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10002
10002
  }
10003
10003
  function q() {
10004
10004
  a(() => {
10005
- f.value && U({
10005
+ f.value && j({
10006
10006
  width: f.value.offsetWidth,
10007
10007
  height: f.value.offsetHeight
10008
10008
  });
10009
10009
  });
10010
10010
  }
10011
- function U(Z) {
10011
+ function j(Z) {
10012
10012
  if (D.value === void 0 || h.value === null) return;
10013
10013
  const pe = Z[D.value.container], Pe = Math.min(
10014
10014
  h.value[D.value.scroll],
10015
10015
  Array.prototype.reduce.call(
10016
10016
  h.value.children,
10017
- (vt, je) => vt + (je[D.value.content] || 0),
10017
+ (vt, Ue) => vt + (Ue[D.value.content] || 0),
10018
10018
  0
10019
10019
  )
10020
10020
  ), st = pe > 0 && Pe > pe;
@@ -10025,25 +10025,25 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10025
10025
  if (ue === !0)
10026
10026
  ue = !1;
10027
10027
  else if (Pe && st) {
10028
- const vt = Pe.tabIndicatorRef.value, je = st.tabIndicatorRef.value;
10029
- _ !== null && (clearTimeout(_), _ = null), vt.style.transition = "none", vt.style.transform = "none", je.style.transition = "none", je.style.transform = "none";
10030
- const Ue = vt.getBoundingClientRect(), xt = je.getBoundingClientRect();
10031
- je.style.transform = e.vertical === !0 ? `translate3d(0,${Ue.top - xt.top}px,0) scale3d(1,${xt.height ? Ue.height / xt.height : 1},1)` : `translate3d(${Ue.left - xt.left}px,0,0) scale3d(${xt.width ? Ue.width / xt.width : 1},1,1)`, s(() => {
10028
+ const vt = Pe.tabIndicatorRef.value, Ue = st.tabIndicatorRef.value;
10029
+ _ !== null && (clearTimeout(_), _ = null), vt.style.transition = "none", vt.style.transform = "none", Ue.style.transition = "none", Ue.style.transform = "none";
10030
+ const je = vt.getBoundingClientRect(), xt = Ue.getBoundingClientRect();
10031
+ Ue.style.transform = e.vertical === !0 ? `translate3d(0,${je.top - xt.top}px,0) scale3d(1,${xt.height ? je.height / xt.height : 1},1)` : `translate3d(${je.left - xt.left}px,0,0) scale3d(${xt.width ? je.width / xt.width : 1},1,1)`, s(() => {
10032
10032
  _ = setTimeout(() => {
10033
- _ = null, je.style.transition = "transform .25s cubic-bezier(.4, 0, .2, 1)", je.style.transform = "none";
10033
+ _ = null, Ue.style.transition = "transform .25s cubic-bezier(.4, 0, .2, 1)", Ue.style.transform = "none";
10034
10034
  }, 70);
10035
10035
  });
10036
10036
  }
10037
10037
  st && m.value === !0 && O(st.rootRef.value);
10038
10038
  }
10039
10039
  function O(Z) {
10040
- const { left: pe, width: Pe, top: st, height: vt } = h.value.getBoundingClientRect(), je = Z.getBoundingClientRect();
10041
- let Ue = e.vertical === !0 ? je.top - st : je.left - pe;
10042
- if (Ue < 0) {
10043
- h.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(Ue), N();
10040
+ const { left: pe, width: Pe, top: st, height: vt } = h.value.getBoundingClientRect(), Ue = Z.getBoundingClientRect();
10041
+ let je = e.vertical === !0 ? Ue.top - st : Ue.left - pe;
10042
+ if (je < 0) {
10043
+ h.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(je), N();
10044
10044
  return;
10045
10045
  }
10046
- Ue += e.vertical === !0 ? je.height - vt : je.width - Pe, Ue > 0 && (h.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(Ue), N());
10046
+ je += e.vertical === !0 ? Ue.height - vt : Ue.width - Pe, je > 0 && (h.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(je), N());
10047
10047
  }
10048
10048
  function N() {
10049
10049
  const Z = h.value;
@@ -10075,9 +10075,9 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10075
10075
  return O(Pe[0]), Pe[0].focus(), !0;
10076
10076
  if (Z === 35)
10077
10077
  return O(Pe[st - 1]), Pe[st - 1].focus(), !0;
10078
- const vt = Z === (e.vertical === !0 ? 38 : 37), je = Z === (e.vertical === !0 ? 40 : 39), Ue = vt === !0 ? -1 : je === !0 ? 1 : void 0;
10079
- if (Ue !== void 0) {
10080
- const xt = F.value === !0 ? -1 : 1, It = Pe.indexOf(pe) + Ue * xt;
10078
+ const vt = Z === (e.vertical === !0 ? 38 : 37), Ue = Z === (e.vertical === !0 ? 40 : 39), je = vt === !0 ? -1 : Ue === !0 ? 1 : void 0;
10079
+ if (je !== void 0) {
10080
+ const xt = F.value === !0 ? -1 : 1, It = Pe.indexOf(pe) + je * xt;
10081
10081
  return It >= 0 && It < st && (O(Pe[It]), Pe[It].focus({ preventScroll: !0 })), !0;
10082
10082
  }
10083
10083
  }
@@ -10090,9 +10090,9 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10090
10090
  } });
10091
10091
  function oe(Z) {
10092
10092
  const pe = h.value, { get: Pe, set: st } = xe.value;
10093
- let vt = !1, je = Pe(pe);
10094
- const Ue = Z < je ? -1 : 1;
10095
- return je += Ue * 5, je < 0 ? (vt = !0, je = 0) : (Ue === -1 && je <= Z || Ue === 1 && je >= Z) && (vt = !0, je = Z), st(pe, je), N(), vt;
10093
+ let vt = !1, Ue = Pe(pe);
10094
+ const je = Z < Ue ? -1 : 1;
10095
+ return Ue += je * 5, Ue < 0 ? (vt = !0, Ue = 0) : (je === -1 && Ue <= Z || je === 1 && Ue >= Z) && (vt = !0, Ue = Z), st(pe, Ue), N(), vt;
10096
10096
  }
10097
10097
  function ze(Z, pe) {
10098
10098
  for (const Pe in Z)
@@ -10102,40 +10102,40 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10102
10102
  }
10103
10103
  function ge() {
10104
10104
  let Z = null, pe = { matchedLen: 0, queryDiff: 9999, hrefLen: 0 };
10105
- const Pe = w.filter((Ue) => {
10105
+ const Pe = w.filter((je) => {
10106
10106
  var xt;
10107
- return ((xt = Ue.routeData) == null ? void 0 : xt.hasRouterLink.value) === !0;
10108
- }), { hash: st, query: vt } = r.$route, je = Object.keys(vt).length;
10109
- for (const Ue of Pe) {
10110
- const xt = Ue.routeData.exact.value === !0;
10111
- if (Ue.routeData[xt === !0 ? "linkIsExactActive" : "linkIsActive"].value !== !0)
10107
+ return ((xt = je.routeData) == null ? void 0 : xt.hasRouterLink.value) === !0;
10108
+ }), { hash: st, query: vt } = r.$route, Ue = Object.keys(vt).length;
10109
+ for (const je of Pe) {
10110
+ const xt = je.routeData.exact.value === !0;
10111
+ if (je.routeData[xt === !0 ? "linkIsExactActive" : "linkIsActive"].value !== !0)
10112
10112
  continue;
10113
- const { hash: It, query: re, matched: he, href: Ve } = Ue.routeData.resolvedLink.value, Ge = Object.keys(re).length;
10113
+ const { hash: It, query: re, matched: he, href: Ve } = je.routeData.resolvedLink.value, Ge = Object.keys(re).length;
10114
10114
  if (xt === !0) {
10115
- if (It !== st || Ge !== je || ze(vt, re) === !1)
10115
+ if (It !== st || Ge !== Ue || ze(vt, re) === !1)
10116
10116
  continue;
10117
- Z = Ue.name.value;
10117
+ Z = je.name.value;
10118
10118
  break;
10119
10119
  }
10120
10120
  if (It !== "" && It !== st || Ge !== 0 && ze(re, vt) === !1)
10121
10121
  continue;
10122
10122
  const at = {
10123
10123
  matchedLen: he.length,
10124
- queryDiff: je - Ge,
10124
+ queryDiff: Ue - Ge,
10125
10125
  hrefLen: Ve.length - It.length
10126
10126
  };
10127
10127
  if (at.matchedLen > pe.matchedLen) {
10128
- Z = Ue.name.value, pe = at;
10128
+ Z = je.name.value, pe = at;
10129
10129
  continue;
10130
10130
  } else if (at.matchedLen !== pe.matchedLen)
10131
10131
  continue;
10132
10132
  if (at.queryDiff < pe.queryDiff)
10133
- Z = Ue.name.value, pe = at;
10133
+ Z = je.name.value, pe = at;
10134
10134
  else if (at.queryDiff !== pe.queryDiff)
10135
10135
  continue;
10136
- at.hrefLen > pe.hrefLen && (Z = Ue.name.value, pe = at);
10136
+ at.hrefLen > pe.hrefLen && (Z = je.name.value, pe = at);
10137
10137
  }
10138
- if (Z === null && w.some((Ue) => Ue.routeData === void 0 && Ue.name.value === p.value) === !0) {
10138
+ if (Z === null && w.some((je) => je.routeData === void 0 && je.name.value === p.value) === !0) {
10139
10139
  ue = !1;
10140
10140
  return;
10141
10141
  }
@@ -10203,7 +10203,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10203
10203
  onFocusin: Ee,
10204
10204
  onFocusout: Oe
10205
10205
  }, [
10206
- T(_a, { onResize: U }),
10206
+ T(_a, { onResize: j }),
10207
10207
  T("div", {
10208
10208
  ref: h,
10209
10209
  class: $.value,
@@ -10229,10 +10229,10 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10229
10229
  })
10230
10230
  ]);
10231
10231
  }
10232
- }), $x = { class: "loader" }, Wx = { key: 0 }, Hx = { class: "content" }, jx = {
10232
+ }), $x = { class: "loader" }, Wx = { key: 0 }, Hx = { class: "content" }, Ux = {
10233
10233
  key: 0,
10234
10234
  class: "content-header"
10235
- }, Ux = ["title"], Gx = {
10235
+ }, jx = ["title"], Gx = {
10236
10236
  key: 1,
10237
10237
  class: "app-sheet-actions"
10238
10238
  }, Kx = /* @__PURE__ */ Bt({
@@ -10324,11 +10324,11 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10324
10324
  }, 8, ["modelValue"])
10325
10325
  ], 6)) : Xe("", !0),
10326
10326
  fe("div", Hx, [
10327
- i.title ? (X(), ye("div", jx, [
10327
+ i.title ? (X(), ye("div", Ux, [
10328
10328
  fe("h2", {
10329
10329
  class: "ellipsis",
10330
10330
  title: i.title
10331
- }, mt(i.title), 9, Ux),
10331
+ }, mt(i.title), 9, jx),
10332
10332
  Zn(Se(Et, {
10333
10333
  dense: "",
10334
10334
  flat: "",
@@ -10449,7 +10449,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10449
10449
  () => e.overlay === !1 && y.value === !0 && p.value === !1
10450
10450
  ), q = k(
10451
10451
  () => e.overlay === !0 && y.value === !0 && p.value === !1
10452
- ), U = k(
10452
+ ), j = k(
10453
10453
  () => "fullscreen q-drawer__backdrop" + (y.value === !1 && M.value === !1 ? " hidden" : "")
10454
10454
  ), G = k(() => ({
10455
10455
  backgroundColor: `rgba(0,0,0,${S.value * 0.4})`
@@ -10618,7 +10618,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10618
10618
  "div",
10619
10619
  {
10620
10620
  ref: "backdrop",
10621
- class: U.value,
10621
+ class: j.value,
10622
10622
  style: G.value,
10623
10623
  "aria-hidden": "true",
10624
10624
  onClick: _
@@ -10699,7 +10699,7 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10699
10699
  }
10700
10700
  return Tt(() => {
10701
10701
  r === !0 && c();
10702
- }), () => T(jn, {
10702
+ }), () => T(Un, {
10703
10703
  css: !1,
10704
10704
  appear: e.appear,
10705
10705
  onEnter: h,
@@ -10787,8 +10787,8 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10787
10787
  L.keyCode === 13 && R(L, !0);
10788
10788
  }
10789
10789
  function R(L, q) {
10790
- var U;
10791
- q !== !0 && L.qAvoidFocus !== !0 && ((U = i.value) == null || U.focus()), c(L), Pt(L);
10790
+ var j;
10791
+ q !== !0 && L.qAvoidFocus !== !0 && ((j = i.value) == null || j.focus()), c(L), Pt(L);
10792
10792
  }
10793
10793
  function C() {
10794
10794
  t("afterShow");
@@ -10798,12 +10798,12 @@ const Vx = ["left", "center", "right", "justify"], zx = Ke({
10798
10798
  }
10799
10799
  function M() {
10800
10800
  d === void 0 && (d = xs()), a.value === !0 && (bo[e.group] = d);
10801
- const L = me(a, (U) => {
10802
- U === !0 ? bo[e.group] = d : bo[e.group] === d && delete bo[e.group];
10801
+ const L = me(a, (j) => {
10802
+ j === !0 ? bo[e.group] = d : bo[e.group] === d && delete bo[e.group];
10803
10803
  }), q = me(
10804
10804
  () => bo[e.group],
10805
- (U, G) => {
10806
- G === d && U !== void 0 && U !== d && l();
10805
+ (j, G) => {
10806
+ G === d && j !== void 0 && j !== d && l();
10807
10807
  }
10808
10808
  );
10809
10809
  f = () => {
@@ -11646,7 +11646,7 @@ const V_ = Ke({
11646
11646
  _: 3
11647
11647
  }, 8, ["modelValue", "color", "content-style"]));
11648
11648
  }
11649
- }), jA = /* @__PURE__ */ Be(z_, [["__scopeId", "data-v-85d0f555"]]), $_ = { class: "table-pagination" }, W_ = ["disabled"], H_ = { class: "pages" }, j_ = ["disabled", "onClick"], U_ = ["disabled"], G_ = /* @__PURE__ */ Bt({
11649
+ }), UA = /* @__PURE__ */ Be(z_, [["__scopeId", "data-v-85d0f555"]]), $_ = { class: "table-pagination" }, W_ = ["disabled"], H_ = { class: "pages" }, U_ = ["disabled", "onClick"], j_ = ["disabled"], G_ = /* @__PURE__ */ Bt({
11650
11650
  __name: "TablePagination",
11651
11651
  props: {
11652
11652
  modelValue: {},
@@ -11697,7 +11697,7 @@ const V_ = Ke({
11697
11697
  class: He(["page-button", { selected: d === l.modelValue, ellipsis: d === "..." }]),
11698
11698
  disabled: d === l.modelValue || d === "...",
11699
11699
  onClick: (f) => i(d)
11700
- }, mt(d), 11, j_))), 128))
11700
+ }, mt(d), 11, U_))), 128))
11701
11701
  ]),
11702
11702
  fe("button", {
11703
11703
  class: "arrow-button",
@@ -11708,7 +11708,7 @@ const V_ = Ke({
11708
11708
  name: "mdi-chevron-right",
11709
11709
  color: l.modelValue >= l.totalPages ? "grey-4" : "primary"
11710
11710
  }, null, 8, ["color"])
11711
- ], 8, U_)
11711
+ ], 8, j_)
11712
11712
  ]));
11713
11713
  }
11714
11714
  }), K_ = /* @__PURE__ */ Be(G_, [["__scopeId", "data-v-9db9f6f7"]]), X_ = /* @__PURE__ */ Bt({
@@ -12317,7 +12317,7 @@ const V_ = Ke({
12317
12317
  _: 1
12318
12318
  }, 8, ["model-value"]));
12319
12319
  }
12320
- }), UA = /* @__PURE__ */ Be(lC, [["__scopeId", "data-v-b137510f"]]), yh = Ke({
12320
+ }), jA = /* @__PURE__ */ Be(lC, [["__scopeId", "data-v-b137510f"]]), yh = Ke({
12321
12321
  name: "QTd",
12322
12322
  props: {
12323
12323
  props: Object,
@@ -12631,14 +12631,14 @@ const V_ = Ke({
12631
12631
  } else if (o.value !== !0)
12632
12632
  return;
12633
12633
  D.isFinal === !0 && (o.value = !1);
12634
- const L = Ju[F], q = (V.size.value - i[F].value) / (i[F + "Inner"].value - V.thumbSize.value), U = D.distance[L.dist], G = d + (D.direction === L.dir ? 1 : -1) * U * q;
12634
+ const L = Ju[F], q = (V.size.value - i[F].value) / (i[F + "Inner"].value - V.thumbSize.value), j = D.distance[L.dist], G = d + (D.direction === L.dir ? 1 : -1) * j * q;
12635
12635
  R(G, F);
12636
12636
  }
12637
12637
  function _(D, F) {
12638
12638
  const V = s[F];
12639
12639
  if (V.thumbHidden.value !== !0) {
12640
- const L = F === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], q = D[Ju[F].offset] - L, U = V.thumbStart.value - L;
12641
- if (q < U || q > U + V.thumbSize.value) {
12640
+ const L = F === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], q = D[Ju[F].offset] - L, j = V.thumbStart.value - L;
12641
+ if (q < j || q > j + V.thumbSize.value) {
12642
12642
  const G = q - V.thumbSize.value / 2, O = Vr(G / (i[F + "Inner"].value - V.thumbSize.value), 0, 1);
12643
12643
  R(O * Math.max(0, V.size.value - i[F].value), F);
12644
12644
  }
@@ -13008,7 +13008,7 @@ function CC() {
13008
13008
  const e = Qe(), { props: n, emit: t, proxy: r } = e;
13009
13009
  let o, a;
13010
13010
  const i = Q(!1);
13011
- jc(e) === !0 && me(() => r.$route.fullPath, () => {
13011
+ Uc(e) === !0 && me(() => r.$route.fullPath, () => {
13012
13012
  n.noRouteFullscreenExit !== !0 && l();
13013
13013
  }), me(() => n.fullscreen, (c) => {
13014
13014
  i.value !== c && s();
@@ -13468,7 +13468,7 @@ const zC = Ke({
13468
13468
  rowsSelectedNumber: V,
13469
13469
  isRowSelected: L,
13470
13470
  clearSelection: q,
13471
- updateSelection: U
13471
+ updateSelection: j
13472
13472
  } = FC(e, t, S, u), { colList: G, computedCols: O, computedColsMap: N, computedColspan: Y } = VC(e, v, M), { columnToSort: ae, computedSortMethod: le, sort: se } = EC(e, v, G, w), {
13473
13473
  firstRowIndex: de,
13474
13474
  lastRowIndex: xe,
@@ -13567,12 +13567,12 @@ const zC = Ke({
13567
13567
  ne && (W.__trClass = `${ne} ${W.__trClass}`);
13568
13568
  }
13569
13569
  return _e(
13570
- je(W)
13570
+ Ue(W)
13571
13571
  );
13572
13572
  }
13573
13573
  const qt = n["body-cell"], Ft = O.value.map((W) => {
13574
13574
  const ne = n[`body-cell-${W.name}`], be = ne !== void 0 ? ne : qt;
13575
- return be !== void 0 ? be(Ue({ key: $e, row: ee, pageIndex: We, col: W })) : T("td", {
13575
+ return be !== void 0 ? be(je({ key: $e, row: ee, pageIndex: We, col: W })) : T("td", {
13576
13576
  class: W.__tdClass(ee),
13577
13577
  style: W.__tdStyle(ee)
13578
13578
  }, re(W, ee));
@@ -13585,7 +13585,7 @@ const zC = Ke({
13585
13585
  dark: a.value,
13586
13586
  dense: e.dense,
13587
13587
  "onUpdate:modelValue": (be, Ce) => {
13588
- U([$e], [ee], be, Ce);
13588
+ j([$e], [ee], be, Ce);
13589
13589
  }
13590
13590
  })
13591
13591
  ];
@@ -13613,12 +13613,12 @@ const zC = Ke({
13613
13613
  );
13614
13614
  return _e !== void 0 && ($e = _e({ cols: O.value }).concat($e)), We !== void 0 && ($e = $e.concat(We({ cols: O.value }))), T("tbody", $e);
13615
13615
  }
13616
- function je(ee) {
13616
+ function Ue(ee) {
13617
13617
  return It(ee), ee.cols = ee.cols.map(
13618
13618
  (_e) => rr({ ..._e }, "value", () => re(_e, ee.row))
13619
13619
  ), ee;
13620
13620
  }
13621
- function Ue(ee) {
13621
+ function je(ee) {
13622
13622
  return It(ee), rr(ee, "value", () => re(ee.col, ee.row)), ee;
13623
13623
  }
13624
13624
  function xt(ee) {
@@ -13638,7 +13638,7 @@ const zC = Ke({
13638
13638
  "selected",
13639
13639
  () => L(ee.key),
13640
13640
  (_e, We) => {
13641
- U([ee.key], [ee.row], _e, We);
13641
+ j([ee.key], [ee.row], _e, We);
13642
13642
  }
13643
13643
  ), rr(
13644
13644
  ee,
@@ -13755,13 +13755,13 @@ const zC = Ke({
13755
13755
  ), ee;
13756
13756
  }
13757
13757
  function Mt(ee) {
13758
- F.value === !0 && (ee = !1), U(
13758
+ F.value === !0 && (ee = !1), j(
13759
13759
  S.value.map(u.value),
13760
13760
  S.value,
13761
13761
  ee
13762
13762
  );
13763
13763
  }
13764
- const Ut = k(() => {
13764
+ const jt = k(() => {
13765
13765
  const ee = [
13766
13766
  e.iconFirstPage || o.iconSet.table.firstPage,
13767
13767
  e.iconPrevPage || o.iconSet.table.prevPage,
@@ -13796,7 +13796,7 @@ const zC = Ke({
13796
13796
  if (e.hidePagination !== !0)
13797
13797
  return T("div", {
13798
13798
  class: zi + " justify-end"
13799
- }, jo(_e));
13799
+ }, Uo(_e));
13800
13800
  if (_e.length !== 0)
13801
13801
  return T("div", { class: zi }, _e);
13802
13802
  }
@@ -13806,7 +13806,7 @@ const zC = Ke({
13806
13806
  rowsPerPage: ee.value
13807
13807
  });
13808
13808
  }
13809
- function jo(ee) {
13809
+ function Uo(ee) {
13810
13810
  let _e;
13811
13811
  const { rowsPerPage: We } = v.value, $e = e.paginationLabel || o.lang.table.pagination, rt = n.pagination, qt = e.rowsPerPageOptions.length > 1;
13812
13812
  if (ee.push(
@@ -13847,7 +13847,7 @@ const zC = Ke({
13847
13847
  T(Et, {
13848
13848
  key: "pgFirst",
13849
13849
  ...Ft,
13850
- icon: Ut.value[0],
13850
+ icon: jt.value[0],
13851
13851
  disable: oe.value,
13852
13852
  ariaLabel: o.lang.pagination.first,
13853
13853
  onClick: et
@@ -13856,7 +13856,7 @@ const zC = Ke({
13856
13856
  T(Et, {
13857
13857
  key: "pgPrev",
13858
13858
  ...Ft,
13859
- icon: Ut.value[1],
13859
+ icon: jt.value[1],
13860
13860
  disable: oe.value,
13861
13861
  ariaLabel: o.lang.pagination.prev,
13862
13862
  onClick: tt
@@ -13864,7 +13864,7 @@ const zC = Ke({
13864
13864
  T(Et, {
13865
13865
  key: "pgNext",
13866
13866
  ...Ft,
13867
- icon: Ut.value[2],
13867
+ icon: jt.value[2],
13868
13868
  disable: ze.value,
13869
13869
  ariaLabel: o.lang.pagination.next,
13870
13870
  onClick: Ye
@@ -13873,7 +13873,7 @@ const zC = Ke({
13873
13873
  T(Et, {
13874
13874
  key: "pgLast",
13875
13875
  ...Ft,
13876
- icon: Ut.value[3],
13876
+ icon: jt.value[3],
13877
13877
  disable: ze.value,
13878
13878
  ariaLabel: o.lang.pagination.last,
13879
13879
  onClick: ct
@@ -13908,7 +13908,7 @@ const zC = Ke({
13908
13908
  dark: a.value,
13909
13909
  dense: e.dense,
13910
13910
  "onUpdate:modelValue": (Ft, B) => {
13911
- U([_e.key], [_e.row], Ft, B);
13911
+ j([_e.key], [_e.row], Ft, B);
13912
13912
  }
13913
13913
  })
13914
13914
  ];
@@ -13946,7 +13946,7 @@ const zC = Ke({
13946
13946
  e.cardContainerClass
13947
13947
  ],
13948
13948
  style: e.cardContainerStyle
13949
- }, S.value.map((_e, We) => ee(je({
13949
+ }, S.value.map((_e, We) => ee(Ue({
13950
13950
  key: u.value(_e),
13951
13951
  row: _e,
13952
13952
  pageIndex: We
@@ -14017,7 +14017,7 @@ function HC(e, n) {
14017
14017
  }, null, -1)
14018
14018
  ]));
14019
14019
  }
14020
- const jC = /* @__PURE__ */ Be($C, [["render", HC]]), UC = {
14020
+ const UC = /* @__PURE__ */ Be($C, [["render", HC]]), jC = {
14021
14021
  class: "flex flex-col",
14022
14022
  style: { height: "100%", "min-height": "100%" }
14023
14023
  }, GC = ["onClick"], KC = {
@@ -14066,7 +14066,7 @@ const jC = /* @__PURE__ */ Be($C, [["render", HC]]), UC = {
14066
14066
  r("update:selectedRows", c);
14067
14067
  },
14068
14068
  { deep: !0 }
14069
- ), (c, d) => (X(), ye("div", UC, [
14069
+ ), (c, d) => (X(), ye("div", jC, [
14070
14070
  Se(zC, {
14071
14071
  selected: a.value,
14072
14072
  "onUpdate:selected": d[0] || (d[0] = (f) => a.value = f),
@@ -14158,7 +14158,7 @@ const jC = /* @__PURE__ */ Be($C, [["render", HC]]), UC = {
14158
14158
  class: "row items-center no-wrap",
14159
14159
  onClick: Zs((v) => r("open-filter-menu", f.name, !c.filterMenus.value[f.name]), ["stop"])
14160
14160
  }, [
14161
- Se(jC, { class: "q-mr-xs" }),
14161
+ Se(UC, { class: "q-mr-xs" }),
14162
14162
  fe("span", null, mt(f.label), 1),
14163
14163
  ["multi", "single"].includes(f.filterType) && ((p = c.columnFilters.value[f.name]) != null && p.length) ? (X(), ye("div", KC, " - " + mt(f.filterType === "multi" ? (m = c.columnFilters.value[f.name]) == null ? void 0 : m.length : 1), 1)) : Xe("", !0)
14164
14164
  ], 8, GC)) : (X(), ye("div", XC, mt(f.label), 1)),
@@ -14595,7 +14595,7 @@ ut.from = (e, n, t, r, o, a) => {
14595
14595
  return u !== Error.prototype;
14596
14596
  }, (s) => s !== "isAxiosError"), ut.call(i, e.message, n, t, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
14597
14597
  };
14598
- const jk = null;
14598
+ const Uk = null;
14599
14599
  function fc(e) {
14600
14600
  return te.isPlainObject(e) || te.isArray(e);
14601
14601
  }
@@ -14607,7 +14607,7 @@ function Eh(e, n, t) {
14607
14607
  return o = dm(o), !t && a ? "[" + o + "]" : o;
14608
14608
  }).join(t ? "." : "") : n;
14609
14609
  }
14610
- function Uk(e) {
14610
+ function jk(e) {
14611
14611
  return te.isArray(e) && !e.some(fc);
14612
14612
  }
14613
14613
  const Gk = te.toFlatObject(te, {}, null, function(n) {
@@ -14641,7 +14641,7 @@ function cu(e, n, t) {
14641
14641
  if (p && !v && typeof p == "object") {
14642
14642
  if (te.endsWith(m, "{}"))
14643
14643
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
14644
- else if (te.isArray(p) && Uk(p) || (te.isFileList(p) || te.endsWith(m, "[]")) && (y = te.toArray(p)))
14644
+ else if (te.isArray(p) && jk(p) || (te.isFileList(p) || te.endsWith(m, "[]")) && (y = te.toArray(p)))
14645
14645
  return m = dm(m), y.forEach(function(w, g) {
14646
14646
  !(te.isUndefined(w) || w === null) && n.append(
14647
14647
  // eslint-disable-next-line no-nested-ternary
@@ -14940,7 +14940,7 @@ const s3 = te.toObjectSet([
14940
14940
  o = i.indexOf(":"), t = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!t || n[t] && s3[t]) && (t === "set-cookie" ? n[t] ? n[t].push(r) : n[t] = [r] : n[t] = n[t] ? n[t] + ", " + r : r);
14941
14941
  }), n;
14942
14942
  }, Th = Symbol("internals");
14943
- function ja(e) {
14943
+ function Ua(e) {
14944
14944
  return e && String(e).trim().toLowerCase();
14945
14945
  }
14946
14946
  function us(e) {
@@ -14985,7 +14985,7 @@ let qn = class {
14985
14985
  set(n, t, r) {
14986
14986
  const o = this;
14987
14987
  function a(s, u, l) {
14988
- const c = ja(u);
14988
+ const c = Ua(u);
14989
14989
  if (!c)
14990
14990
  throw new Error("header name must be a non-empty string");
14991
14991
  const d = te.findKey(o, c);
@@ -15009,7 +15009,7 @@ let qn = class {
15009
15009
  return this;
15010
15010
  }
15011
15011
  get(n, t) {
15012
- if (n = ja(n), n) {
15012
+ if (n = Ua(n), n) {
15013
15013
  const r = te.findKey(this, n);
15014
15014
  if (r) {
15015
15015
  const o = this[r];
@@ -15026,7 +15026,7 @@ let qn = class {
15026
15026
  }
15027
15027
  }
15028
15028
  has(n, t) {
15029
- if (n = ja(n), n) {
15029
+ if (n = Ua(n), n) {
15030
15030
  const r = te.findKey(this, n);
15031
15031
  return !!(r && this[r] !== void 0 && (!t || el(this, this[r], r, t)));
15032
15032
  }
@@ -15036,7 +15036,7 @@ let qn = class {
15036
15036
  const r = this;
15037
15037
  let o = !1;
15038
15038
  function a(i) {
15039
- if (i = ja(i), i) {
15039
+ if (i = Ua(i), i) {
15040
15040
  const s = te.findKey(r, i);
15041
15041
  s && (!t || el(r, r[s], s, t)) && (delete r[s], o = !0);
15042
15042
  }
@@ -15098,7 +15098,7 @@ let qn = class {
15098
15098
  accessors: {}
15099
15099
  }).accessors, o = this.prototype;
15100
15100
  function a(i) {
15101
- const s = ja(i);
15101
+ const s = Ua(i);
15102
15102
  r[s] || (f3(o, i), r[s] = !0);
15103
15103
  }
15104
15104
  return te.isArray(n) ? n.forEach(a) : a(n), this;
@@ -15591,7 +15591,7 @@ const I3 = async (e) => {
15591
15591
  ) : ut.from(y, y && y.code, e, p);
15592
15592
  }
15593
15593
  }), vc = {
15594
- http: jk,
15594
+ http: Uk,
15595
15595
  xhr: x3,
15596
15596
  fetch: A3
15597
15597
  };
@@ -16543,6 +16543,9 @@ class H3 extends Cn {
16543
16543
  async getUser(n) {
16544
16544
  return await this.get(`/admin/users/${n}`);
16545
16545
  }
16546
+ async getUserWarehouses(n) {
16547
+ return await this.get("users/get_warehouse_list_by_user", { params: n });
16548
+ }
16546
16549
  async createUser(n) {
16547
16550
  return await this.post("/admin/users", n);
16548
16551
  }
@@ -16604,7 +16607,7 @@ let dl;
16604
16607
  function wD() {
16605
16608
  return dl || (dl = new H3()), dl;
16606
16609
  }
16607
- class j3 extends Cn {
16610
+ class U3 extends Cn {
16608
16611
  async fetchUserInstrumentsHistory(n, t) {
16609
16612
  const r = {
16610
16613
  status: "issued",
@@ -16641,9 +16644,9 @@ class j3 extends Cn {
16641
16644
  }
16642
16645
  let fl;
16643
16646
  function xD() {
16644
- return fl || (fl = new j3()), fl;
16647
+ return fl || (fl = new U3()), fl;
16645
16648
  }
16646
- class U3 extends Cn {
16649
+ class j3 extends Cn {
16647
16650
  fetchControlZones(n) {
16648
16651
  return this.get("/frame/list", { params: n });
16649
16652
  }
@@ -16701,7 +16704,7 @@ class U3 extends Cn {
16701
16704
  }
16702
16705
  let hl;
16703
16706
  function _D() {
16704
- return hl || (hl = new U3()), hl;
16707
+ return hl || (hl = new j3()), hl;
16705
16708
  }
16706
16709
  class G3 extends Cn {
16707
16710
  fetchSearchUsers(n) {
@@ -16800,6 +16803,11 @@ class Z3 extends Cn {
16800
16803
  fetchScheduleTable(n) {
16801
16804
  return this.get(`schedule/${n}/get_brigades_table`);
16802
16805
  }
16806
+ fetchBrigadesToSwap(n, t) {
16807
+ return this.get(`schedule/${n}/selection_brigades_for_swap_shift_template`, {
16808
+ params: t
16809
+ });
16810
+ }
16803
16811
  completeBrigadeSchedule(n, t) {
16804
16812
  return this.post(
16805
16813
  `schedule/${n}/complete_brigade_schedule`,
@@ -17318,7 +17326,7 @@ var pS = function() {
17318
17326
  }
17319
17327
  console.log("%c" + u + " %c" + s + " %c" + l + "D " + d + " %c" + c + " %c" + f + " %c" + i, "font-weight:bold", "color:red", "color:blue", "color: orange", "color: green", "color: steelblue");
17320
17328
  }, e;
17321
- }(), $h = 20, Ua = 3, wl = 7;
17329
+ }(), $h = 20, ja = 3, wl = 7;
17322
17330
  function mS(e, n, t, r) {
17323
17331
  var o = Sr(n), a = function(l, c, d, f) {
17324
17332
  var h = Fe(c), p = f[f.length - 1], m = new Array(p).fill(0), v = c.length, y = d === "complex64" ? Ka(l) : l;
@@ -17331,11 +17339,11 @@ function mS(e, n, t, r) {
17331
17339
  return f === "complex64" ? [Ga(Ka(c)[0], 0, f)] : f === "bool" ? [Om(c[0])] : [c[0].toString()];
17332
17340
  if (b === 1) {
17333
17341
  if (y > $h) {
17334
- var w = Ua * v, g = Array.from(c.slice(0, w)), x = Array.from(c.slice((y - Ua) * v, y * v));
17342
+ var w = ja * v, g = Array.from(c.slice(0, w)), x = Array.from(c.slice((y - ja) * v, y * v));
17335
17343
  return f === "complex64" && (g = Ka(g), x = Ka(x)), ["[" + g.map(function(F, V) {
17336
17344
  return Ga(F, p[V], f);
17337
17345
  }).join(", ") + ", ..., " + x.map(function(F, V) {
17338
- return Ga(F, p[y - Ua + V], f);
17346
+ return Ga(F, p[y - ja + V], f);
17339
17347
  }).join(", ") + "]"];
17340
17348
  }
17341
17349
  return ["[" + (f === "complex64" ? Ka(c) : Array.from(c)).map(function(F, V) {
@@ -17344,11 +17352,11 @@ function mS(e, n, t, r) {
17344
17352
  }
17345
17353
  var _ = d.slice(1), E = h.slice(1), R = h[0] * v, C = [];
17346
17354
  if (y > $h) {
17347
- for (var S = 0; S < Ua; S++) {
17355
+ for (var S = 0; S < ja; S++) {
17348
17356
  var M = (I = S * R) + R;
17349
17357
  C.push.apply(C, l(c.slice(I, M), _, f, E, p, !1));
17350
17358
  }
17351
- for (C.push("..."), S = y - Ua; S < y; S++)
17359
+ for (C.push("..."), S = y - ja; S < y; S++)
17352
17360
  M = (I = S * R) + R, C.push.apply(C, l(c.slice(I, M), _, f, E, p, S === y - 1));
17353
17361
  } else for (S = 0; S < y; S++) {
17354
17362
  var I;
@@ -17854,7 +17862,7 @@ function bn(e, n) {
17854
17862
  function xl(e) {
17855
17863
  return bn(e, "int32");
17856
17864
  }
17857
- function jt(e, n) {
17865
+ function Ut(e, n) {
17858
17866
  if (e.dtype === n.dtype) return [e, n];
17859
17867
  var t = bn(e.dtype, n.dtype);
17860
17868
  return [e.cast(t), n.cast(t)];
@@ -18226,7 +18234,7 @@ var _l, Hh = function() {
18226
18234
  if (!o && s.length === 0 && t.length > 0) throw new Error("Cannot compute gradient of y=f(x) with respect to x. Make sure that the f you passed encloses all operations that lead from x to y.");
18227
18235
  return this.tidy("backward", function() {
18228
18236
  var u, l, c = {};
18229
- c[i.id] = r ?? (u = i.shape, l = Bm(Fe(u), "float32"), j.makeTensor(l, u, "float32")), function(f, h, p) {
18237
+ c[i.id] = r ?? (u = i.shape, l = Bm(Fe(u), "float32"), U.makeTensor(l, u, "float32")), function(f, h, p) {
18230
18238
  for (var m = function(y) {
18231
18239
  var b = h[y], w = [];
18232
18240
  if (b.outputs.forEach(function(E) {
@@ -18321,7 +18329,7 @@ var _l, Hh = function() {
18321
18329
  for (var n in this.pendingBackendInitId++, this.state.dispose(), this.ENV.reset(), this.state = new Hh(), this.registry) this.disposeRegisteredKernels(n), this.registry[n].dispose(), delete this.registry[n];
18322
18330
  this.backendName = null, this.backendInstance = null, this.pendingBackendInit = null;
18323
18331
  }, e.nextTensorId = 0, e.nextVariableId = 0, e;
18324
- }(), j = function() {
18332
+ }(), U = function() {
18325
18333
  var e = function() {
18326
18334
  if (_l == null) {
18327
18335
  var t = void 0;
@@ -18441,12 +18449,12 @@ function kS(e, n) {
18441
18449
  }
18442
18450
  }
18443
18451
  function $i(e, n, t) {
18444
- return jr(e, n, function() {
18452
+ return Ur(e, n, function() {
18445
18453
  return e.getExtension(t);
18446
18454
  }, 'Extension "' + t + '" not supported on this browser.');
18447
18455
  }
18448
18456
  function SS(e, n, t) {
18449
- var r = jr(e, n, function() {
18457
+ var r = Ur(e, n, function() {
18450
18458
  return e.createShader(e.VERTEX_SHADER);
18451
18459
  }, "Unable to create vertex WebGLShader.");
18452
18460
  if (Ne(e, n, function() {
@@ -18457,7 +18465,7 @@ function SS(e, n, t) {
18457
18465
  return r;
18458
18466
  }
18459
18467
  function ES(e, n, t) {
18460
- var r = jr(e, n, function() {
18468
+ var r = Ur(e, n, function() {
18461
18469
  return e.createShader(e.FRAGMENT_SHADER);
18462
18470
  }, "Unable to create fragment WebGLShader.");
18463
18471
  if (Ne(e, n, function() {
@@ -18481,7 +18489,7 @@ function ES(e, n, t) {
18481
18489
  }
18482
18490
  var kl, Sl, RS = /ERROR: [0-9]+:([0-9]+):/g;
18483
18491
  function IS(e, n) {
18484
- return jr(e, n, function() {
18492
+ return Ur(e, n, function() {
18485
18493
  return e.createProgram();
18486
18494
  }, "Unable to create WebGLProgram.");
18487
18495
  }
@@ -18496,7 +18504,7 @@ function El(e, n, t) {
18496
18504
  }), e.getProgramParameter(t, e.VALIDATE_STATUS) === !1) throw console.log(e.getProgramInfoLog(t)), new Error("Shader program validation failed.");
18497
18505
  }
18498
18506
  function AS(e, n, t) {
18499
- var r = jr(e, n, function() {
18507
+ var r = Ur(e, n, function() {
18500
18508
  return e.createBuffer();
18501
18509
  }, "Unable to create WebGLBuffer");
18502
18510
  return Ne(e, n, function() {
@@ -18506,7 +18514,7 @@ function AS(e, n, t) {
18506
18514
  }), r;
18507
18515
  }
18508
18516
  function DS(e, n, t) {
18509
- var r = jr(e, n, function() {
18517
+ var r = Ur(e, n, function() {
18510
18518
  return e.createBuffer();
18511
18519
  }, "Unable to create WebGLBuffer");
18512
18520
  return Ne(e, n, function() {
@@ -18516,7 +18524,7 @@ function DS(e, n, t) {
18516
18524
  }), r;
18517
18525
  }
18518
18526
  function MS(e, n) {
18519
- return jr(e, n, function() {
18527
+ return Ur(e, n, function() {
18520
18528
  return e.createTexture();
18521
18529
  }, "Unable to create WebGLTexture.");
18522
18530
  }
@@ -18530,11 +18538,11 @@ function PS(e, n) {
18530
18538
  throw r = "[" + e + "x" + n + "]", new Error("Requested texture size " + r + " greater than WebGL maximum on this browser / GPU " + ("[" + t + "x" + t + "]") + ".");
18531
18539
  }
18532
18540
  function BS(e, n) {
18533
- return jr(e, n, function() {
18541
+ return Ur(e, n, function() {
18534
18542
  return e.createFramebuffer();
18535
18543
  }, "Unable to create WebGLFramebuffer.");
18536
18544
  }
18537
- function jh(e, n, t, r, o, a, i, s) {
18545
+ function Uh(e, n, t, r, o, a, i, s) {
18538
18546
  var u = e.getAttribLocation(t, r);
18539
18547
  return u !== -1 && (Ne(e, n, function() {
18540
18548
  return e.bindBuffer(e.ARRAY_BUFFER, o);
@@ -18552,7 +18560,7 @@ function FS(e, n, t, r) {
18552
18560
  });
18553
18561
  }
18554
18562
  function OS(e, n, t, r) {
18555
- return jr(e, n, function() {
18563
+ return Ur(e, n, function() {
18556
18564
  return e.getUniformLocation(t, r);
18557
18565
  }, 'uniform "' + r + '" not present in program.');
18558
18566
  }
@@ -18573,7 +18581,7 @@ function Rl(e, n, t, r) {
18573
18581
  return e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, t, 0);
18574
18582
  });
18575
18583
  }
18576
- function Uh(e, n, t) {
18584
+ function jh(e, n, t) {
18577
18585
  Ne(e, n, function() {
18578
18586
  return e.bindFramebuffer(e.FRAMEBUFFER, t);
18579
18587
  }), Ne(e, n, function() {
@@ -18598,7 +18606,7 @@ function qS(e, n) {
18598
18606
  return "unknown error " + n;
18599
18607
  }
18600
18608
  }
18601
- function jr(e, n, t, r) {
18609
+ function Ur(e, n, t, r) {
18602
18610
  var o = Ne(e, n, function() {
18603
18611
  return t();
18604
18612
  });
@@ -18648,7 +18656,7 @@ function zS(e, n) {
18648
18656
  function Hi(e) {
18649
18657
  return e % 2 == 0;
18650
18658
  }
18651
- function ji(e, n) {
18659
+ function Ui(e, n) {
18652
18660
  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;
18653
18661
  if (e.length !== n.length) {
18654
18662
  var t = e.slice(-1)[0], r = n.slice(-1)[0];
@@ -18686,7 +18694,7 @@ function Gh(e) {
18686
18694
  }
18687
18695
  return !1;
18688
18696
  }
18689
- function jS(e) {
18697
+ function US(e) {
18690
18698
  if (e === 0) return !1;
18691
18699
  var n = Dr(e);
18692
18700
  if (e === 1) {
@@ -18694,7 +18702,7 @@ function jS(e) {
18694
18702
  } else if (!ar(n, "EXT_color_buffer_float")) return !1;
18695
18703
  return Ec(n);
18696
18704
  }
18697
- function US(e) {
18705
+ function jS(e) {
18698
18706
  if (e === 0) return !1;
18699
18707
  var n = Dr(e);
18700
18708
  if (e !== 1) {
@@ -18730,7 +18738,7 @@ function Vm(e) {
18730
18738
  ie().getBool("DEPRECATION_WARNINGS_ENABLED") && console.warn(e + " You can disable deprecation warnings with tf.disableDeprecationWarnings().");
18731
18739
  }
18732
18740
  function Re(e, n) {
18733
- return j.tidy(e, n);
18741
+ return U.tidy(e, n);
18734
18742
  }
18735
18743
  function Vn(e) {
18736
18744
  Lm(e).forEach(function(n) {
@@ -18738,7 +18746,7 @@ function Vn(e) {
18738
18746
  });
18739
18747
  }
18740
18748
  function KS(e) {
18741
- return j.keep(e);
18749
+ return U.keep(e);
18742
18750
  }
18743
18751
  function Ps() {
18744
18752
  for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
@@ -18774,7 +18782,7 @@ function A(e, n, t, r) {
18774
18782
  var i = po(e, o);
18775
18783
  kr(e) || Array.isArray(e) || (e = [e]);
18776
18784
  var s = o !== "string" ? Pm(e, o, ie().getBool("DEBUG")) : ka(e, [], !0);
18777
- return j.makeTensor(s, i, o);
18785
+ return U.makeTensor(s, i, o);
18778
18786
  }
18779
18787
  function Bs(e, n, t, r) {
18780
18788
  if (r === void 0 && (r = "numeric"), !Array.isArray(e)) throw new Error("Argument " + n + " passed to " + t + " must be a `Tensor[]` or `TensorLike[]`");
@@ -18853,12 +18861,12 @@ function z(e) {
18853
18861
  t.endsWith("_") && (t = t.substring(0, t.length - 1));
18854
18862
  var o = function() {
18855
18863
  for (var a = [], i = 0; i < arguments.length; i++) a[i] = arguments[i];
18856
- j.startScope(t);
18864
+ U.startScope(t);
18857
18865
  try {
18858
18866
  var s = r.apply(void 0, a);
18859
- return s instanceof Promise && console.error("Cannot return a Promise inside of tidy."), j.endScope(s), s;
18867
+ return s instanceof Promise && console.error("Cannot return a Promise inside of tidy."), U.endScope(s), s;
18860
18868
  } catch (u) {
18861
- throw j.endScope(null), u;
18869
+ throw U.endScope(null), u;
18862
18870
  }
18863
18871
  };
18864
18872
  return Object.defineProperty(o, "name", { value: t, configurable: !0 }), o;
@@ -18906,11 +18914,11 @@ Je.registerFlag("HAS_WEBGL", function() {
18906
18914
  return Je.getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION") > 0 && (e = navigator.userAgent || navigator.vendor || window.opera, !(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0, 4))));
18907
18915
  var e;
18908
18916
  }), Je.registerFlag("WEBGL_RENDER_FLOAT32_CAPABLE", function() {
18909
- return jS(Je.getNumber("WEBGL_VERSION"));
18917
+ return US(Je.getNumber("WEBGL_VERSION"));
18910
18918
  }), Je.registerFlag("WEBGL_RENDER_FLOAT32_ENABLED", function() {
18911
18919
  return !Je.getBool("WEBGL_FORCE_F16_TEXTURES") && Je.getBool("WEBGL_RENDER_FLOAT32_CAPABLE");
18912
18920
  }), Je.registerFlag("WEBGL_DOWNLOAD_FLOAT_ENABLED", function() {
18913
- return US(Je.getNumber("WEBGL_VERSION"));
18921
+ return jS(Je.getNumber("WEBGL_VERSION"));
18914
18922
  }), Je.registerFlag("WEBGL_FENCE_API_ENABLED", function() {
18915
18923
  return GS(Je.getNumber("WEBGL_VERSION"));
18916
18924
  }), Je.registerFlag("WEBGL_SIZE_UPLOAD_UNIFORM", function() {
@@ -18918,17 +18926,17 @@ Je.registerFlag("HAS_WEBGL", function() {
18918
18926
  }), Nm = Vm;
18919
18927
  var yn = z({ complex_: function(e, n) {
18920
18928
  var t = A(e, "real", "complex"), r = A(n, "imag", "complex");
18921
- return Rt(t.shape, r.shape, "real and imag shapes, " + t.shape + " and " + r.shape + ", must match in call to tf.complex()."), j.runKernelFunc(function(o) {
18929
+ return Rt(t.shape, r.shape, "real and imag shapes, " + t.shape + " and " + r.shape + ", must match in call to tf.complex()."), U.runKernelFunc(function(o) {
18922
18930
  return o.complex(t, r);
18923
18931
  }, { $real: t, $imag: r });
18924
18932
  } }), or = z({ real_: function(e) {
18925
18933
  var n = A(e, "input", "real");
18926
- return j.runKernelFunc(function(t) {
18934
+ return U.runKernelFunc(function(t) {
18927
18935
  return t.real(n);
18928
18936
  }, { $input: n });
18929
18937
  } }), _r = z({ imag_: function(e) {
18930
18938
  var n = A(e, "input", "imag");
18931
- return j.runKernelFunc(function(t) {
18939
+ return U.runKernelFunc(function(t) {
18932
18940
  return t.imag(n);
18933
18941
  }, { $input: n });
18934
18942
  } });
@@ -18951,7 +18959,7 @@ function vo(e, n, t, r) {
18951
18959
  });
18952
18960
  }
18953
18961
  }
18954
- return kr(e) || Array.isArray(e) || (e = [e]), n = n || t, e = r !== "string" ? Pm(e, r, ie().getBool("DEBUG")) : ka(e, [], !0), j.makeTensor(e, n, r);
18962
+ return kr(e) || Array.isArray(e) || (e = [e]), n = n || t, e = r !== "string" ? Pm(e, r, ie().getBool("DEBUG")) : ka(e, [], !0), U.makeTensor(e, n, r);
18955
18963
  }
18956
18964
  function we(e, n) {
18957
18965
  if ((kr(e) && n !== "string" || Array.isArray(e)) && n !== "complex64") throw new Error("Error creating a new Scalar: value must be a primitive (number|boolean|string)");
@@ -19000,7 +19008,7 @@ function ZS(e, n, t) {
19000
19008
  return vo(e, n = n || r, r, t);
19001
19009
  }
19002
19010
  function JS(e, n, t, r) {
19003
- return n === void 0 && (n = !0), j.makeVariable(e, n, t, r);
19011
+ return n === void 0 && (n = !0), U.makeVariable(e, n, t, r);
19004
19012
  }
19005
19013
  function Va(e, n) {
19006
19014
  if (n === void 0 && (n = "float32"), n === "complex64") {
@@ -19008,7 +19016,7 @@ function Va(e, n) {
19008
19016
  return yn(t, r);
19009
19017
  }
19010
19018
  var o = Bm(Fe(e), n);
19011
- return j.makeTensor(o, e, n);
19019
+ return U.makeTensor(o, e, n);
19012
19020
  }
19013
19021
  function Vt(e, n) {
19014
19022
  if (n === void 0 && (n = "float32"), n === "complex64") {
@@ -19016,16 +19024,16 @@ function Vt(e, n) {
19016
19024
  return yn(t, r);
19017
19025
  }
19018
19026
  var o = Si(Fe(e), n);
19019
- return j.makeTensor(o, e, n);
19027
+ return U.makeTensor(o, e, n);
19020
19028
  }
19021
19029
  function Er(e, n, t) {
19022
- return j.runKernelFunc(function(r) {
19030
+ return U.runKernelFunc(function(r) {
19023
19031
  return r.fill(e, n, t);
19024
19032
  }, {});
19025
19033
  }
19026
19034
  function e4(e, n, t) {
19027
19035
  if (t <= 0) throw new Error("The number of values should be positive.");
19028
- return j.runKernelFunc(function(r) {
19036
+ return U.runKernelFunc(function(r) {
19029
19037
  return r.linspace(e, n, t);
19030
19038
  }, {});
19031
19039
  }
@@ -19043,7 +19051,7 @@ var $m = z({ onesLike_: function(e) {
19043
19051
  var t = $m(or(n)), r = yt(_r(n));
19044
19052
  return yn(t, r);
19045
19053
  }
19046
- return j.runKernelFunc(function(o) {
19054
+ return U.runKernelFunc(function(o) {
19047
19055
  return o.onesLike(n);
19048
19056
  }, { $x: n }, function(o, a) {
19049
19057
  return { $x: function() {
@@ -19052,7 +19060,7 @@ var $m = z({ onesLike_: function(e) {
19052
19060
  });
19053
19061
  } }), yt = z({ zerosLike_: function(e) {
19054
19062
  var n = A(e, "x", "zerosLike");
19055
- return j.runKernelFunc(function(t) {
19063
+ return U.runKernelFunc(function(t) {
19056
19064
  return t.zerosLike(n);
19057
19065
  }, { $x: n }, function(t, r) {
19058
19066
  return { $x: function() {
@@ -19080,7 +19088,7 @@ var $m = z({ onesLike_: function(e) {
19080
19088
  });
19081
19089
  YS(o, n);
19082
19090
  var a = t, i = { axis: n };
19083
- return j.runKernelFunc(function(s) {
19091
+ return U.runKernelFunc(function(s) {
19084
19092
  return s.concat(t, n);
19085
19093
  }, a, function(s) {
19086
19094
  var u = o.map(function(l) {
@@ -19109,7 +19117,7 @@ var $m = z({ onesLike_: function(e) {
19109
19117
  return a + i;
19110
19118
  }), function() {
19111
19119
  return "The sum of sizes must match the size of the axis dimension.";
19112
- }), r = n), j.runKernelFunc(function(a) {
19120
+ }), r = n), U.runKernelFunc(function(a) {
19113
19121
  return a.split(o, r, t);
19114
19122
  }, { $x: o }, function(a) {
19115
19123
  return { $x: function() {
@@ -19438,7 +19446,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19438
19446
  return "crops.length is " + t.length + " but should be equal to blockShape.length " + n.length;
19439
19447
  }), P(r.shape[0] % o == 0, function() {
19440
19448
  return "input tensor batch is " + r.shape[0] + " but is not divisible by the product of the elements of blockShape " + n.join(" * ") + " === " + o;
19441
- }), j.runKernelFunc(function(a) {
19449
+ }), U.runKernelFunc(function(a) {
19442
19450
  return a.batchToSpaceND(r, n, t);
19443
19451
  }, { $x: r }, function(a) {
19444
19452
  return { $x: function() {
@@ -19462,7 +19470,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19462
19470
  }).filter(function(u) {
19463
19471
  return u >= 0;
19464
19472
  });
19465
- return s.length === 0 ? t.clone() : j.runKernelFunc(function(u) {
19473
+ return s.length === 0 ? t.clone() : U.runKernelFunc(function(u) {
19466
19474
  return u.tile(t, a);
19467
19475
  }, { input: t }, function(u) {
19468
19476
  return { input: function() {
@@ -19474,7 +19482,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19474
19482
  if (!sS(n)) throw new Error("Failed to cast to unknown dtype " + n);
19475
19483
  if (n === "string" && t.dtype !== "string" || n !== "string" && t.dtype === "string") throw new Error("Only strings can be casted to strings");
19476
19484
  var r = { dtype: n };
19477
- return j.runKernelFunc(function(o) {
19485
+ return U.runKernelFunc(function(o) {
19478
19486
  return o.cast(t, n);
19479
19487
  }, { x: t }, function(o) {
19480
19488
  return { x: function() {
@@ -19483,8 +19491,8 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19483
19491
  }, "Cast", r);
19484
19492
  } }), m4 = z({ clone_: function(e) {
19485
19493
  var n = A(e, "x", "clone", null);
19486
- return j.runKernelFunc(function() {
19487
- return j.makeTensorFromDataId(n.dataId, n.shape, n.dtype);
19494
+ return U.runKernelFunc(function() {
19495
+ return U.makeTensorFromDataId(n.dataId, n.shape, n.dtype);
19488
19496
  }, { $x: n }, function(t) {
19489
19497
  return { $x: function() {
19490
19498
  return t.toFloat();
@@ -19494,7 +19502,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19494
19502
  n === void 0 && (n = 0), t === void 0 && (t = !1), r === void 0 && (r = !1);
19495
19503
  var o = A(e, "x", "cumsum"), a = Mr([n |= 0], o.rank), i = o;
19496
19504
  a != null && (i = o.transpose(a));
19497
- var s = Pr(1, o.rank)[0], u = j.runKernelFunc(function(l) {
19505
+ var s = Pr(1, o.rank)[0], u = U.runKernelFunc(function(l) {
19498
19506
  return l.cumsum(i, s, t, r);
19499
19507
  }, { permutedX: i }, function(l) {
19500
19508
  return { permutedX: function() {
@@ -19515,7 +19523,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19515
19523
  ` + r.shape;
19516
19524
  }), P(i % (n * n) == 0, function() {
19517
19525
  return "Dimension size must be evenly divisible by " + n * n + " but is " + i + " for depthToSpace with input shape " + r.shape;
19518
- }), j.runKernelFunc(function(s) {
19526
+ }), U.runKernelFunc(function(s) {
19519
19527
  return s.depthToSpace(r, n, t);
19520
19528
  }, { $x: r });
19521
19529
  } }), nr = z({ expandDims_: function(e, n) {
@@ -19543,14 +19551,14 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19543
19551
  if (a < 2) throw new Error("Error in multinomial: you need at least 2 outcomes, but got " + a + ".");
19544
19552
  if (i > 2) throw new Error("Rank of probabilities must be 1 or 2, but is " + i);
19545
19553
  t = t || Math.random();
19546
- var s = i === 1 ? o.as2D(1, -1) : o, u = j.runKernelFunc(function(l) {
19554
+ var s = i === 1 ? o.as2D(1, -1) : o, u = U.runKernelFunc(function(l) {
19547
19555
  return l.multinomial(s, r, n, t);
19548
19556
  }, { logits2D: s });
19549
19557
  return i === 1 ? u.as1D() : u;
19550
19558
  } }), Rc = z({ oneHot_: function(e, n, t, r) {
19551
19559
  if (t === void 0 && (t = 1), r === void 0 && (r = 0), n < 2) throw new Error("Error in oneHot: depth must be >=2, but it is " + n);
19552
19560
  var o = A(e, "indices", "oneHot", "int32"), a = o.shape.concat([n]);
19553
- return o = o.flatten(), j.runKernelFunc(function(i) {
19561
+ return o = o.flatten(), U.runKernelFunc(function(i) {
19554
19562
  return i.oneHot(o, n, t, r);
19555
19563
  }, { $indices: o }, function(i) {
19556
19564
  return { $indices: function() {
@@ -19562,7 +19570,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19562
19570
  var r = A(e, "x", "pad");
19563
19571
  if (r.rank === 0) throw new Error("pad(scalar) is not defined. Pass non-scalar to pad");
19564
19572
  var o = { paddings: n, constantValue: t };
19565
- return j.runKernelFunc(function(a) {
19573
+ return U.runKernelFunc(function(a) {
19566
19574
  return a.pad(r, n, t);
19567
19575
  }, { x: r }, function(a) {
19568
19576
  var i = n.map(function(s) {
@@ -19597,7 +19605,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19597
19605
  o = new Uint8Array(r);
19598
19606
  }
19599
19607
  for (var a = 0; a < r; a++) o[a] = n();
19600
- return j.makeTensor(o, e, t);
19608
+ return U.makeTensor(o, e, t);
19601
19609
  } }), S4 = z({ randomNormal_: function(e, n, t, r, o) {
19602
19610
  if (n === void 0 && (n = 0), t === void 0 && (t = 1), r != null && r === "bool") throw new Error("Unsupported data type " + r);
19603
19611
  for (var a = new kd(n, t, r, !1, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
@@ -19606,7 +19614,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19606
19614
  if (t === void 0 && (t = 1), r === void 0 && (r = "float32"), t == null && (t = 1), r == null && (r = "float32"), r !== "float32" && r !== "int32") throw new Error("Unsupported data type " + r);
19607
19615
  for (var a = new d4(n, t, r, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
19608
19616
  return i.toTensor();
19609
- } }), jm = z({ randomUniform_: function(e, n, t, r, o) {
19617
+ } }), Um = z({ randomUniform_: function(e, n, t, r, o) {
19610
19618
  n === void 0 && (n = 0), t === void 0 && (t = 1), r === void 0 && (r = "float32");
19611
19619
  for (var a = ot(e, r), i = new f4(n, t, null, o), s = 0; s < a.values.length; s++) a.values[s] = i.nextValue();
19612
19620
  return a.toTensor();
@@ -19616,14 +19624,14 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19616
19624
  return "new shape and old shape must have the same number of elements.";
19617
19625
  });
19618
19626
  var r = { shape: n };
19619
- return j.runKernelFunc(function(o) {
19627
+ return U.runKernelFunc(function(o) {
19620
19628
  return o.reshape(t, n);
19621
19629
  }, { x: t }, function(o) {
19622
19630
  return { x: function() {
19623
19631
  return o.reshape(t.shape);
19624
19632
  } };
19625
19633
  }, "Reshape", r);
19626
- } }), Um = z({ spaceToBatchND_: function(e, n, t) {
19634
+ } }), jm = z({ spaceToBatchND_: function(e, n, t) {
19627
19635
  var r = A(e, "x", "spaceToBatchND");
19628
19636
  return P(r.rank >= 1 + n.length, function() {
19629
19637
  return "input rank " + r.rank + " should be > than [blockShape] " + n.length;
@@ -19633,7 +19641,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19633
19641
  return i > 0 && i <= n.length ? o && (a + t[i - 1][0] + t[i - 1][1]) % n[i - 1] == 0 : o;
19634
19642
  }, !0), function() {
19635
19643
  return "input spatial dimensions " + r.shape.slice(1) + " with paddings " + t.toString() + " must be divisible by blockShapes " + n.toString();
19636
- }), j.runKernelFunc(function(o) {
19644
+ }), U.runKernelFunc(function(o) {
19637
19645
  return o.spaceToBatchND(r, n, t);
19638
19646
  }, { $x: r }, function(o) {
19639
19647
  return { $x: function() {
@@ -19669,7 +19677,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19669
19677
  return "Error in transpose: rank of input " + t.rank + " must match length of reps " + n + ".";
19670
19678
  });
19671
19679
  var r = [t], o = { reps: n };
19672
- return j.runKernelFunc(function(a, i) {
19680
+ return U.runKernelFunc(function(a, i) {
19673
19681
  var s = a.tile(t, n);
19674
19682
  return i([t]), s;
19675
19683
  }, { x: t }, function(a, i) {
@@ -19697,7 +19705,7 @@ var Wm = z({ batchToSpaceND_: function(e, n, t) {
19697
19705
  return "Axis = " + n + " is not in [-" + t.shape.length + ", " + t.shape.length + ")";
19698
19706
  }), n < 0 && (n += t.shape.length);
19699
19707
  var r = { axis: n };
19700
- return j.runKernelFunc(function(o) {
19708
+ return U.runKernelFunc(function(o) {
19701
19709
  return o.unstack(t, n);
19702
19710
  }, { x: t }, function(o) {
19703
19711
  return { x: function() {
@@ -19863,7 +19871,7 @@ function B4(e, n) {
19863
19871
  return "The varList passed in variableGrads(f, varList) must be an array of variables";
19864
19872
  });
19865
19873
  var t = n != null;
19866
- if (!t) for (var r in n = [], j.registeredVariables) n.push(j.registeredVariables[r]);
19874
+ if (!t) for (var r in n = [], U.registeredVariables) n.push(U.registeredVariables[r]);
19867
19875
  var o = t ? n.filter(function(c) {
19868
19876
  return !c.trainable;
19869
19877
  }) : null, a = n.length;
@@ -19872,7 +19880,7 @@ function B4(e, n) {
19872
19880
  })).length > 0, function() {
19873
19881
  return "variableGrads() expects at least one of the input variables to be trainable, but none of the " + a + " variables is trainable.";
19874
19882
  });
19875
- var i = j.gradients(e, n, null, !0), s = i.value, u = i.grads;
19883
+ var i = U.gradients(e, n, null, !0), s = i.value, u = i.grads;
19876
19884
  P(u.some(function(c) {
19877
19885
  return c != null;
19878
19886
  }), function() {
@@ -19888,13 +19896,13 @@ function B4(e, n) {
19888
19896
  }), { value: s, grads: l };
19889
19897
  }
19890
19898
  function vu(e) {
19891
- return j.customGrad(e);
19899
+ return U.customGrad(e);
19892
19900
  }
19893
- var Ur = z({ softmax_: function(e, n) {
19901
+ var jr = z({ softmax_: function(e, n) {
19894
19902
  n === void 0 && (n = -1);
19895
19903
  var t = A(e, "logits", "softmax", "float32");
19896
19904
  if (n === -1 && (n = t.rank - 1), n !== t.rank - 1) throw Error("Softmax along a non-last dimension is not yet supported. Logits was rank " + t.rank + " and dim was " + n);
19897
- return j.runKernelFunc(function(r, o) {
19905
+ return U.runKernelFunc(function(r, o) {
19898
19906
  var a = r.softmax(t, n);
19899
19907
  return o([a]), a;
19900
19908
  }, { logits: t }, function(r, o) {
@@ -20289,7 +20297,7 @@ function $o(e, n, t, r, o, a, i, s) {
20289
20297
  if (s !== "channelsFirst") throw new Error("Unknown dataFormat " + s);
20290
20298
  l = e[0], f = e[1], c = e[2], d = e[3];
20291
20299
  }
20292
- var h, p = n[0], m = n[1], v = n[3], y = $s(t), b = y[0], w = y[1], g = $s(r), x = g[0], _ = g[1], E = pa(p, x), R = pa(m, _), C = function(D, F, V, L, q, U, G, O) {
20300
+ var h, p = n[0], m = n[1], v = n[3], y = $s(t), b = y[0], w = y[1], g = $s(r), x = g[0], _ = g[1], E = pa(p, x), R = pa(m, _), C = function(D, F, V, L, q, j, G, O) {
20293
20301
  var N, Y, ae;
20294
20302
  if (typeof D == "number") {
20295
20303
  N = { top: D, bottom: D, left: D, right: D, type: D === 0 ? "VALID" : "NUMBER" };
@@ -20303,15 +20311,15 @@ function $o(e, n, t, r, o, a, i, s) {
20303
20311
  return P(Zt(At), function() {
20304
20312
  return "The output # of columns (" + At + ") must be an integer. Change the stride and/or zero pad parameters";
20305
20313
  }), [gt, At];
20306
- }([F, V], U, L, D, O);
20314
+ }([F, V], j, L, D, O);
20307
20315
  Y = le[0], ae = le[1];
20308
20316
  } else if (D === "same") {
20309
20317
  Y = Math.ceil(F / L), ae = Math.ceil(V / q);
20310
- var se = Math.max(0, (Y - 1) * L + U - F), de = Math.max(0, (ae - 1) * q + G - V), xe = Math.floor(se / 2), oe = se - xe, ze = Math.floor(de / 2);
20318
+ var se = Math.max(0, (Y - 1) * L + j - F), de = Math.max(0, (ae - 1) * q + G - V), xe = Math.floor(se / 2), oe = se - xe, ze = Math.floor(de / 2);
20311
20319
  N = { top: xe, bottom: oe, left: ze, right: de - ze, type: "SAME" };
20312
20320
  } else {
20313
20321
  if (D !== "valid") throw Error("Unknown padding parameter: " + D);
20314
- N = { top: 0, bottom: 0, left: 0, right: 0, type: "VALID" }, Y = Math.ceil((F - U + 1) / L), ae = Math.ceil((V - G + 1) / q);
20322
+ N = { top: 0, bottom: 0, left: 0, right: 0, type: "VALID" }, Y = Math.ceil((F - j + 1) / L), ae = Math.ceil((V - G + 1) / q);
20315
20323
  }
20316
20324
  return { padInfo: N, outHeight: Y, outWidth: ae };
20317
20325
  }(o, c, d, b, w, E, R, a), S = C.padInfo, M = C.outHeight, I = C.outWidth, $ = i ? v * f : v;
@@ -20329,17 +20337,17 @@ function zs(e, n, t, r, o, a, i, s) {
20329
20337
  var ge, Ee, Oe, et;
20330
20338
  if (typeof G == "number") {
20331
20339
  ge = { top: G, bottom: G, left: G, right: G, front: G, back: G, type: G === 0 ? "VALID" : "NUMBER" };
20332
- var tt = function(Pe, st, vt, je, Ue, xt) {
20333
- Ue == null && (Ue = ng(Pe, st, je));
20334
- var It = Pe[0], re = Pe[1], he = Pe[2], Ve = ti((It - st + 2 * Ue) / je + 1, xt);
20340
+ var tt = function(Pe, st, vt, Ue, je, xt) {
20341
+ je == null && (je = ng(Pe, st, Ue));
20342
+ var It = Pe[0], re = Pe[1], he = Pe[2], Ve = ti((It - st + 2 * je) / Ue + 1, xt);
20335
20343
  P(Zt(Ve), function() {
20336
20344
  return "The output # of depths (" + Ve + ") must be an integer. Change the stride and/or zero pad parameters";
20337
20345
  });
20338
- var Ge = ti((re - st + 2 * Ue) / je + 1, xt);
20346
+ var Ge = ti((re - st + 2 * je) / Ue + 1, xt);
20339
20347
  P(Zt(Ge), function() {
20340
20348
  return "The output # of rows (" + Ge + ") must be an integer. Change the stride and/or zero pad parameters";
20341
20349
  });
20342
- var at = ti((he - st + 2 * Ue) / je + 1, xt);
20350
+ var at = ti((he - st + 2 * je) / Ue + 1, xt);
20343
20351
  return P(Zt(at), function() {
20344
20352
  return "The output # of columns (" + at + ") must be an integer. Change the stride and/or zero pad parameters";
20345
20353
  }), [Ve, Ge, at, vt];
@@ -20354,8 +20362,8 @@ function zs(e, n, t, r, o, a, i, s) {
20354
20362
  ge = { top: 0, bottom: 0, left: 0, right: 0, front: 0, back: 0, type: "VALID" }, Ee = Math.ceil((O - de + 1) / ae), Oe = Math.ceil((N - xe + 1) / le), et = Math.ceil((Y - oe + 1) / se);
20355
20363
  }
20356
20364
  return { padInfo: ge, outDepth: Ee, outHeight: Oe, outWidth: et };
20357
- }(o, c, d, f, g, x, _, M, I, $, s), F = D.padInfo, V = D.outDepth, L = D.outHeight, q = D.outWidth, U = a ? b * h : b;
20358
- return i === "channelsFirst" ? p = [l, U, V, L, q] : i === "channelsLast" && (p = [l, V, L, q, U]), { batchSize: l, dataFormat: i, inDepth: c, inHeight: d, inWidth: f, inChannels: h, outDepth: V, outHeight: L, outWidth: q, outChannels: U, padInfo: F, strideDepth: g, strideHeight: x, strideWidth: _, filterDepth: m, filterHeight: v, filterWidth: y, effectiveFilterDepth: M, effectiveFilterHeight: I, effectiveFilterWidth: $, dilationDepth: R, dilationHeight: C, dilationWidth: S, inShape: e, outShape: p, filterShape: n };
20365
+ }(o, c, d, f, g, x, _, M, I, $, s), F = D.padInfo, V = D.outDepth, L = D.outHeight, q = D.outWidth, j = a ? b * h : b;
20366
+ return i === "channelsFirst" ? p = [l, j, V, L, q] : i === "channelsLast" && (p = [l, V, L, q, j]), { batchSize: l, dataFormat: i, inDepth: c, inHeight: d, inWidth: f, inChannels: h, outDepth: V, outHeight: L, outWidth: q, outChannels: j, padInfo: F, strideDepth: g, strideHeight: x, strideWidth: _, filterDepth: m, filterHeight: v, filterWidth: y, effectiveFilterDepth: M, effectiveFilterHeight: I, effectiveFilterWidth: $, dilationDepth: R, dilationHeight: C, dilationWidth: S, inShape: e, outShape: p, filterShape: n };
20359
20367
  }
20360
20368
  function ng(e, n, t, r) {
20361
20369
  r === void 0 && (r = 1);
@@ -20402,7 +20410,7 @@ function rg(e, n, t) {
20402
20410
  var r = Vt(e.shape), o = e.toFloat(), a = t.complex(o, r);
20403
20411
  return r.dispose(), o.dispose(), a;
20404
20412
  }
20405
- if (!uS(e.dtype, n)) return j.makeTensorFromDataId(e.dataId, e.shape, n);
20413
+ if (!uS(e.dtype, n)) return U.makeTensorFromDataId(e.dataId, e.shape, n);
20406
20414
  if (e.dtype === "complex64") {
20407
20415
  var i = t.real(e);
20408
20416
  return a = i.cast(n), i.dispose(), a;
@@ -20415,7 +20423,7 @@ function rg(e, n, t) {
20415
20423
  throw new Error("Error in Cast: failed to cast " + e.dtype + " to " + n);
20416
20424
  }
20417
20425
  function Tc(e, n) {
20418
- return j.makeTensorFromDataId(e.dataId, n, e.dtype);
20426
+ return U.makeTensorFromDataId(e.dataId, n, e.dtype);
20419
20427
  }
20420
20428
  function og(e, n, t) {
20421
20429
  var r = (n - e) / (t - 1), o = Si(t, "float32");
@@ -20715,7 +20723,7 @@ var cg = `
20715
20723
  return c / 255.0;
20716
20724
  }
20717
20725
  `;
20718
- function j4(e, n, t, r) {
20726
+ function U4(e, n, t, r) {
20719
20727
  var o = [];
20720
20728
  e.forEach(function(h) {
20721
20729
  var p = Fe(h.shapeInfo.logicalShape);
@@ -20738,9 +20746,9 @@ function j4(e, n, t, r) {
20738
20746
  V = M < 2 && S > 0 ? "coords" : g.shapeInfo.logicalShape.map(function(N, Y) {
20739
20747
  return "coords." + F[Y + D];
20740
20748
  }).join(", ");
20741
- var L = "return outputValue;", q = Fe(g.shapeInfo.logicalShape) === 1, U = Fe(x.logicalShape) === 1;
20742
- if (S !== 1 || q || U) {
20743
- if (q && !U) L = M === 1 ? `
20749
+ var L = "return outputValue;", q = Fe(g.shapeInfo.logicalShape) === 1, j = Fe(x.logicalShape) === 1;
20750
+ if (S !== 1 || q || j) {
20751
+ if (q && !j) L = M === 1 ? `
20744
20752
  return vec4(outputValue.x, outputValue.x, 0., 0.);
20745
20753
  ` : `
20746
20754
  return vec4(outputValue.x);
@@ -20768,12 +20776,12 @@ function j4(e, n, t, r) {
20768
20776
  }
20769
20777
  `;
20770
20778
  var $, D = Lt(I), F = oo(g.shapeInfo.logicalShape, x.logicalShape), V = I - M, L = ["x", "y", "z", "w", "u", "v"];
20771
- $ = M === 0 ? "" : I < 2 && F.length >= 1 ? "coords = 0;" : F.map(function(U) {
20772
- return "coords." + L[U + V] + " = 0;";
20779
+ $ = M === 0 ? "" : I < 2 && F.length >= 1 ? "coords = 0;" : F.map(function(j) {
20780
+ return "coords." + L[j + V] + " = 0;";
20773
20781
  }).join(`
20774
20782
  `);
20775
20783
  var q = "";
20776
- return q = I < 2 && M > 0 ? "coords" : g.shapeInfo.logicalShape.map(function(U, G) {
20784
+ return q = I < 2 && M > 0 ? "coords" : g.shapeInfo.logicalShape.map(function(j, G) {
20777
20785
  return "coords." + L[G + V];
20778
20786
  }).join(", "), `
20779
20787
  float ` + R + `() {
@@ -20847,7 +20855,7 @@ function j4(e, n, t, r) {
20847
20855
  return fract((p3.x + p3.y) * p3.z);
20848
20856
  }
20849
20857
 
20850
- ` + U4 + `
20858
+ ` + j4 + `
20851
20859
  ` + G4 + `
20852
20860
  ` + K4 + `
20853
20861
  `;
@@ -21476,7 +21484,7 @@ function dg(e) {
21476
21484
  }(e);
21477
21485
  }
21478
21486
  }
21479
- var U4 = `
21487
+ var j4 = `
21480
21488
  vec2 uvFromFlat(int texNumR, int texNumC, int index) {
21481
21489
  int texR = index / texNumC;
21482
21490
  int texC = index - texR * texNumC;
@@ -21941,15 +21949,15 @@ var Y4 = function(e, n, t, r) {
21941
21949
  f += `
21942
21950
  if (` + l + " < " + s[u] + " && " + l + " >= " + s[u - 1] + `) {
21943
21951
  return getChannel(
21944
- getT` + u + "(" + Ui(i, l, h) + `),
21945
- vec2(` + Ui(c, l, h) + `));
21952
+ getT` + u + "(" + ji(i, l, h) + `),
21953
+ vec2(` + ji(c, l, h) + `));
21946
21954
  }`;
21947
21955
  }
21948
21956
  var p = s.length, m = s[s.length - 1];
21949
21957
  f += `
21950
21958
  return getChannel(
21951
- getT` + p + "(" + Ui(i, l, m) + `),
21952
- vec2(` + Ui(c, l, m) + "));", this.userCode = `
21959
+ getT` + p + "(" + ji(i, l, m) + `),
21960
+ vec2(` + ji(c, l, m) + "));", this.userCode = `
21953
21961
  float getValue(` + i.map(function(v) {
21954
21962
  return "int " + v;
21955
21963
  }) + `) {
@@ -21979,7 +21987,7 @@ var Y4 = function(e, n, t, r) {
21979
21987
  }
21980
21988
  `;
21981
21989
  };
21982
- function Ui(e, n, t) {
21990
+ function ji(e, n, t) {
21983
21991
  var r = e.indexOf(n);
21984
21992
  return e.map(function(o, a) {
21985
21993
  return a === r ? o + " - " + t : o;
@@ -23200,7 +23208,7 @@ function NE(e, n, t, r, o) {
23200
23208
  function LE(e, n, t, r) {
23201
23209
  return Ne(e, n, function() {
23202
23210
  return e.bindBuffer(e.ARRAY_BUFFER, r);
23203
- }), jh(e, n, t, "clipSpacePos", r, 3, 20, 0) && jh(e, n, t, "uv", r, 2, 20, 12);
23211
+ }), Uh(e, n, t, "clipSpacePos", r, 3, 20, 0) && Uh(e, n, t, "uv", r, 2, 20, 12);
23204
23212
  }
23205
23213
  function qE(e, n, t, r, o, a, i) {
23206
23214
  var s, u, l;
@@ -23254,13 +23262,13 @@ function HE(e, n, t, r, o, a, i, s) {
23254
23262
  }(a, i));
23255
23263
  return u.bindBuffer(u.PIXEL_PACK_BUFFER, n), u.getBufferSubData(u.PIXEL_PACK_BUFFER, 0, l), u.bindBuffer(u.PIXEL_PACK_BUFFER, null), l;
23256
23264
  }
23257
- function jE(e, n, t, r) {
23265
+ function UE(e, n, t, r) {
23258
23266
  var o = new Float32Array(t * r * 4);
23259
23267
  return Ne(e, n, function() {
23260
23268
  return e.readPixels(0, 0, r, t, e.RGBA, e.FLOAT, o);
23261
23269
  }), o;
23262
23270
  }
23263
- var UE = function() {
23271
+ var jE = function() {
23264
23272
  function e(n) {
23265
23273
  this.outputTexture = null, this.program = null, this.disposed = !1, this.vertexAttrsAreBound = !1, this.itemsToPoll = [];
23266
23274
  var t = ie().getNumber("WEBGL_VERSION");
@@ -23315,7 +23323,7 @@ var UE = function() {
23315
23323
  return this.throwIfDisposed(), OE(this.gl, this.debug, n, t, this.textureConfig);
23316
23324
  }, e.prototype.deleteMatrixTexture = function(n) {
23317
23325
  var t = this;
23318
- this.throwIfDisposed(), this.outputTexture === n && (Uh(this.gl, this.debug, this.framebuffer), this.outputTexture = null), Ne(this.gl, this.debug, function() {
23326
+ this.throwIfDisposed(), this.outputTexture === n && (jh(this.gl, this.debug, this.framebuffer), this.outputTexture = null), Ne(this.gl, this.debug, function() {
23319
23327
  return t.gl.deleteTexture(n);
23320
23328
  });
23321
23329
  }, e.prototype.downloadByteEncodedFloatMatrixFromOutputTexture = function(n, t, r) {
@@ -23351,7 +23359,7 @@ var UE = function() {
23351
23359
  }, e.prototype.downloadMatrixFromPackedTexture = function(n, t, r) {
23352
23360
  var o = this;
23353
23361
  return this.downloadMatrixDriver(n, function() {
23354
- return jE(o.gl, o.debug, t, r);
23362
+ return UE(o.gl, o.debug, t, r);
23355
23363
  });
23356
23364
  }, e.prototype.createProgram = function(n) {
23357
23365
  this.throwIfDisposed();
@@ -23482,7 +23490,7 @@ var UE = function() {
23482
23490
  }, e.prototype.bindTextureToFrameBuffer = function(n) {
23483
23491
  this.throwIfDisposed(), Rl(this.gl, this.debug, n, this.framebuffer), this.debug && Wi(this.gl);
23484
23492
  }, e.prototype.unbindTextureToFrameBuffer = function() {
23485
- this.outputTexture != null ? (Rl(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && Wi(this.gl)) : Uh(this.gl, this.debug, this.framebuffer);
23493
+ this.outputTexture != null ? (Rl(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && Wi(this.gl)) : jh(this.gl, this.debug, this.framebuffer);
23486
23494
  }, e.prototype.downloadMatrixDriver = function(n, t) {
23487
23495
  this.bindTextureToFrameBuffer(n);
23488
23496
  var r = t();
@@ -25372,9 +25380,9 @@ var BR = 600, FR = function(e) {
25372
25380
  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");
25373
25381
  if (t == null) {
25374
25382
  var a = Dr(ie().getNumber("WEBGL_VERSION"));
25375
- o.binaryCache = ((r = ie().getNumber("WEBGL_VERSION")) in Ki || (Ki[r] = {}), Ki[r]), o.gpgpu = new UE(a), o.canvas = a.canvas, o.gpgpuCreatedLocally = !0;
25383
+ o.binaryCache = ((r = ie().getNumber("WEBGL_VERSION")) in Ki || (Ki[r] = {}), Ki[r]), o.gpgpu = new jE(a), o.canvas = a.canvas, o.gpgpuCreatedLocally = !0;
25376
25384
  } else o.gpgpu = t, o.binaryCache = {}, o.gpgpuCreatedLocally = !1, o.canvas = t.gl.canvas;
25377
- return o.textureManager = new yR(o.gpgpu), o.numMBBeforeWarning = ie().global.screen == null ? 1024 : ie().global.screen.height * ie().global.screen.width * window.devicePixelRatio * BR / 1024 / 1024, o.texData = new eg(o, j), o;
25385
+ return o.textureManager = new yR(o.gpgpu), o.numMBBeforeWarning = ie().global.screen == null ? 1024 : ie().global.screen.height * ie().global.screen.width * window.devicePixelRatio * BR / 1024 / 1024, o.texData = new eg(o, U), o;
25378
25386
  }
25379
25387
  return pr(n, e), n.prototype.numDataIds = function() {
25380
25388
  return this.texData.numDataIds() + (this.cpuBackend ? this.cpuBackend.numDataIds() : 0) - this.pendingDeletes;
@@ -25501,7 +25509,7 @@ var BR = 600, FR = function(e) {
25501
25509
  }, n.prototype.getDataInfo = function(t) {
25502
25510
  return this.texData.get(t);
25503
25511
  }, n.prototype.getCPUBackend = function() {
25504
- return ie().getBool("WEBGL_CPU_FORWARD") ? (this.cpuBackend == null && (this.cpuBackend = j.findBackend("cpu")), this.cpuBackend) : null;
25512
+ return ie().getBool("WEBGL_CPU_FORWARD") ? (this.cpuBackend == null && (this.cpuBackend = U.findBackend("cpu")), this.cpuBackend) : null;
25505
25513
  }, n.prototype.shouldExecuteOnCPU = function(t, r) {
25506
25514
  var o = this;
25507
25515
  return r === void 0 && (r = 128), this.getCPUBackend() != null && t.every(function(a) {
@@ -25511,7 +25519,7 @@ var BR = 600, FR = function(e) {
25511
25519
  return this.gpgpu;
25512
25520
  }, n.prototype.complex = function(t, r) {
25513
25521
  var o = this.makeOutput(t.shape, "complex64");
25514
- return this.texData.get(o.dataId).complexTensors = { real: j.keep(t.clone()), imag: j.keep(r.clone()) }, o;
25522
+ return this.texData.get(o.dataId).complexTensors = { real: U.keep(t.clone()), imag: U.keep(r.clone()) }, o;
25515
25523
  }, n.prototype.real = function(t) {
25516
25524
  return this.texData.get(t.dataId).complexTensors.real.clone();
25517
25525
  }, n.prototype.imag = function(t) {
@@ -26221,13 +26229,13 @@ return (round(mod(b, 2.0)) != 1) ?
26221
26229
  return this.reshape(this.fusedBatchMatMul({ a: y, b, transposeA: !1, transposeB: !1, bias: a, activation: i, preluActivationWeights: s }), o.outShape);
26222
26230
  }
26223
26231
  var w = h ? u[0] * u[1] * (u[2] + 1) : u[0] * u[2] * (u[3] + 1), g = { dataId: t.dataId, shape: [1, w, o.inChannels], dtype: t.dtype }, x = l.shape;
26224
- l.shape = l.shape.slice(), l.shape[l.shape.length - 2]++, P(ji(l.shape, g.shape), function() {
26232
+ l.shape = l.shape.slice(), l.shape[l.shape.length - 2]++, P(Ui(l.shape, g.shape), function() {
26225
26233
  return "packed reshape " + l.shape + " to " + g.shape + " isn't free";
26226
26234
  });
26227
26235
  var _ = this.reshape(r, [1, o.inChannels, o.outChannels]), E = this.fusedBatchMatMul({ a: g, b: _, transposeA: !1, transposeB: !1, bias: a, activation: i, preluActivationWeights: s }), R = this.texData.get(E.dataId);
26228
26236
  return P(R.isPacked, function() {
26229
26237
  return "batchMatMul result is expected to be packed";
26230
- }), l.shape = x, R.shape = o.outShape, j.makeTensorFromDataId(E.dataId, o.outShape, E.dtype);
26238
+ }), l.shape = x, R.shape = o.outShape, U.makeTensorFromDataId(E.dataId, o.outShape, E.dtype);
26231
26239
  }, n.prototype.conv2dWithIm2Row = function(t, r, o, a, i, s) {
26232
26240
  var u = o.filterWidth, l = o.filterHeight, c = o.inChannels, d = o.outWidth, f = o.outHeight, h = o.dataFormat === "channelsLast", p = u * l * c, m = f * d, v = [p, m], y = t.squeeze([0]), b = r.reshape([1, p, -1]), w = new GE(v, y.shape, o), g = this.compileAndRun(w, [y]).reshape([1, v[0], v[1]]), x = a != null, _ = s != null, E = i ? Xi(i, !0) : null, R = new Ml(g.shape, [1, m, o.outChannels], !0, !1, x, E, _), C = [g, b];
26233
26241
  a && C.push(a), _ && C.push(s);
@@ -26306,9 +26314,9 @@ return (round(mod(b, 2.0)) != 1) ?
26306
26314
  return s.dispose(), l;
26307
26315
  }, n.prototype.reshape = function(t, r) {
26308
26316
  var o = this.texData.get(t.dataId);
26309
- if (o.isPacked && !ji(t.shape, r) && (o.texture === null || !ji(o.shape, r))) {
26317
+ if (o.isPacked && !Ui(t.shape, r) && (o.texture === null || !Ui(o.shape, r))) {
26310
26318
  var a = this.packedReshape(t, r);
26311
- return j.makeTensorFromDataId(a.dataId, a.shape, a.dtype);
26319
+ return U.makeTensorFromDataId(a.dataId, a.shape, a.dtype);
26312
26320
  }
26313
26321
  return Tc(t, r);
26314
26322
  }, n.prototype.resizeBilinear = function(t, r, o, a) {
@@ -26324,7 +26332,7 @@ return (round(mod(b, 2.0)) != 1) ?
26324
26332
  var a = new lR(t, r, o);
26325
26333
  return this.compileAndRun(a, [t]);
26326
26334
  }, n.prototype.multinomial = function(t, r, o, a) {
26327
- var i = r ? t : Ur(t), s = i.shape[0], u = i.shape[1], l = new JE(s, u, o), c = l.getCustomSetupFunc(a);
26335
+ var i = r ? t : jr(t), s = i.shape[0], u = i.shape[1], l = new JE(s, u, o), c = l.getCustomSetupFunc(a);
26328
26336
  return this.compileAndRun(l, [i], "int32", c);
26329
26337
  }, n.prototype.oneHot = function(t, r, o, a) {
26330
26338
  var i = new eR(t.size, r, o, a);
@@ -26366,7 +26374,7 @@ return (round(mod(b, 2.0)) != 1) ?
26366
26374
  }, n.prototype.fill = function(t, r, o) {
26367
26375
  if ((o = o || ki(r)) === "string") {
26368
26376
  var a = Ts(o, Fe(t));
26369
- return a.fill(r), j.makeTensor(a, t, o, this);
26377
+ return a.fill(r), U.makeTensor(a, t, o, this);
26370
26378
  }
26371
26379
  var i = new RE(t, r), s = i.getCustomSetupFunc(r);
26372
26380
  return this.compileAndRun(i, [], o, s);
@@ -26382,7 +26390,7 @@ return (round(mod(b, 2.0)) != 1) ?
26382
26390
  return this.texData.get(o).usage = null, { dataId: o, shape: t, dtype: r };
26383
26391
  }, n.prototype.makeOutput = function(t, r) {
26384
26392
  var o = this.makeTensorInfo(t, r).dataId;
26385
- return j.makeTensorFromDataId(o, t, r, this);
26393
+ return U.makeTensorFromDataId(o, t, r, this);
26386
26394
  }, n.prototype.unpackTensor = function(t) {
26387
26395
  var r = new PR(t.shape);
26388
26396
  return this.runWebGLProgram(r, [t], t.dtype);
@@ -26413,7 +26421,7 @@ return (round(mod(b, 2.0)) != 1) ?
26413
26421
  if (!t.packedInputs && Fe(w.shape) <= ie().getNumber("WEBGL_SIZE_UPLOAD_UNIFORM")) return { shape: w.shape, texData: null, isUniform: !0, uniformValues: g.values };
26414
26422
  t.packedInputs && (g.isPacked = !0, g.shape = w.shape);
26415
26423
  } else if (!!g.isPacked != !!t.packedInputs) w = g.isPacked ? s.unpackTensor(w) : s.packTensor(w), d.push(w), g = s.texData.get(w.dataId);
26416
- else if (g.isPacked && !ji(g.shape, w.shape)) {
26424
+ else if (g.isPacked && !Ui(g.shape, w.shape)) {
26417
26425
  var x = w, _ = w.shape;
26418
26426
  w.shape = g.shape, w = s.packedReshape(w, _), d.push(w), g = s.texData.get(w.dataId), x.shape = _;
26419
26427
  }
@@ -26430,12 +26438,12 @@ return (round(mod(b, 2.0)) != 1) ?
26430
26438
  return R += "_" + _ + "_" + E;
26431
26439
  }(t, f, p), v = this.getAndSaveBinary(m, function() {
26432
26440
  return function(w, g, x, _) {
26433
- var E = g.userCode, R = x.map(function(q, U) {
26441
+ var E = g.userCode, R = x.map(function(q, j) {
26434
26442
  var G = { logicalShape: q.shape, texShape: q.isUniform ? null : q.texData.texShape, isUniform: q.isUniform, isPacked: !q.isUniform && q.texData.isPacked, flatOffset: null };
26435
- return q.texData != null && q.texData.slice != null && q.texData.slice.flatOffset > 0 && (G.flatOffset = q.texData.slice.flatOffset), { name: g.variableNames[U], shapeInfo: G };
26443
+ return q.texData != null && q.texData.slice != null && q.texData.slice.flatOffset > 0 && (G.flatOffset = q.texData.slice.flatOffset), { name: g.variableNames[j], shapeInfo: G };
26436
26444
  }), C = R.map(function(q) {
26437
26445
  return q.shapeInfo;
26438
- }), S = { logicalShape: _.shape, texShape: _.texData.texShape, isUniform: !1, isPacked: _.texData.isPacked, flatOffset: null }, M = j4(R, S, E, g.packedInputs), I = w.createProgram(M), $ = null, D = w.getUniformLocation(I, "NAN", !1);
26446
+ }), S = { logicalShape: _.shape, texShape: _.texData.texShape, isUniform: !1, isPacked: _.texData.isPacked, flatOffset: null }, M = U4(R, S, E, g.packedInputs), I = w.createProgram(M), $ = null, D = w.getUniformLocation(I, "NAN", !1);
26439
26447
  ie().getNumber("WEBGL_VERSION") === 1 && ($ = w.getUniformLocation(I, "INFINITY", !1));
26440
26448
  for (var F = {}, V = 0; V < g.variableNames.length; V++) {
26441
26449
  var L = g.variableNames[V];
@@ -26466,7 +26474,7 @@ return (round(mod(b, 2.0)) != 1) ?
26466
26474
  }, n.prototype.compileAndRun = function(t, r, o, a, i) {
26467
26475
  i === void 0 && (i = !1), o = o || r[0].dtype;
26468
26476
  var s = this.runWebGLProgram(t, r, o, a, i);
26469
- return j.makeTensorFromDataId(s.dataId, s.shape, s.dtype);
26477
+ return U.makeTensorFromDataId(s.dataId, s.shape, s.dtype);
26470
26478
  }, n.prototype.getAndSaveBinary = function(t, r) {
26471
26479
  return t in this.binaryCache || (this.binaryCache[t] = r()), this.binaryCache[t];
26472
26480
  }, n.prototype.getTextureManager = function() {
@@ -26527,19 +26535,19 @@ return (round(mod(b, 2.0)) != 1) ?
26527
26535
  return t[0] * t[1] * Mm(r);
26528
26536
  }, n;
26529
26537
  }(tg);
26530
- qm() && j.registerBackend("webgl", function() {
26538
+ qm() && U.registerBackend("webgl", function() {
26531
26539
  return new FR();
26532
26540
  }, 2);
26533
26541
  var OR = z({ square_: function(e) {
26534
26542
  var n = A(e, "x", "square"), t = [n];
26535
- return j.runKernelFunc(function(r, o) {
26543
+ return U.runKernelFunc(function(r, o) {
26536
26544
  return o([n]), r.square(n);
26537
26545
  }, { x: n }, null, "Square", {}, t, []);
26538
26546
  } }), di = "SquaredDifference", wg = z({ squaredDifference_: function(e, n) {
26539
26547
  var t, r = A(e, "a", "squaredDifference"), o = A(n, "b", "squaredDifference");
26540
- t = jt(r, o), r = t[0], o = t[1], pt(r.shape, o.shape);
26548
+ t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape);
26541
26549
  var a = { a: r, b: o }, i = [r, o];
26542
- return j.runKernelFunc(function(s, u) {
26550
+ return U.runKernelFunc(function(s, u) {
26543
26551
  var l = s.squaredDifference(r, o);
26544
26552
  return u([r, o]), l;
26545
26553
  }, a, function(s, u) {
@@ -26552,9 +26560,9 @@ var OR = z({ square_: function(e) {
26552
26560
  }, di, {}, i, []);
26553
26561
  } }), NR = z({ abs_: function(e) {
26554
26562
  var n = A(e, "x", "abs");
26555
- return n.dtype === "complex64" ? j.runKernelFunc(function(t) {
26563
+ return n.dtype === "complex64" ? U.runKernelFunc(function(t) {
26556
26564
  return t.complexAbs(n);
26557
- }, { $x: n }) : j.runKernelFunc(function(t, r) {
26565
+ }, { $x: n }) : U.runKernelFunc(function(t, r) {
26558
26566
  var o = t.abs(n);
26559
26567
  return r([n]), o;
26560
26568
  }, { x: n }, function(t, r) {
@@ -26565,7 +26573,7 @@ var OR = z({ square_: function(e) {
26565
26573
  }, "Abs");
26566
26574
  } }), LR = z({ acos_: function(e) {
26567
26575
  var n = A(e, "x", "acos");
26568
- return j.runKernelFunc(function(t, r) {
26576
+ return U.runKernelFunc(function(t, r) {
26569
26577
  var o = t.acos(n);
26570
26578
  return r([n]), o;
26571
26579
  }, { $x: n }, function(t, r) {
@@ -26576,7 +26584,7 @@ var OR = z({ square_: function(e) {
26576
26584
  });
26577
26585
  } }), qR = z({ acosh_: function(e) {
26578
26586
  var n = A(e, "x", "acosh");
26579
- return j.runKernelFunc(function(t, r) {
26587
+ return U.runKernelFunc(function(t, r) {
26580
26588
  var o = t.acosh(n);
26581
26589
  return r([n]), o;
26582
26590
  }, { $x: n }, function(t, r) {
@@ -26587,7 +26595,7 @@ var OR = z({ square_: function(e) {
26587
26595
  });
26588
26596
  } }), VR = z({ asin_: function(e) {
26589
26597
  var n = A(e, "x", "asin");
26590
- return j.runKernelFunc(function(t, r) {
26598
+ return U.runKernelFunc(function(t, r) {
26591
26599
  var o = t.asin(n);
26592
26600
  return r([n]), o;
26593
26601
  }, { $x: n }, function(t, r) {
@@ -26598,7 +26606,7 @@ var OR = z({ square_: function(e) {
26598
26606
  });
26599
26607
  } }), zR = z({ asinh_: function(e) {
26600
26608
  var n = A(e, "x", "asinh");
26601
- return j.runKernelFunc(function(t, r) {
26609
+ return U.runKernelFunc(function(t, r) {
26602
26610
  var o = t.asinh(n);
26603
26611
  return r([n]), o;
26604
26612
  }, { $x: n }, function(t, r) {
@@ -26609,7 +26617,7 @@ var OR = z({ square_: function(e) {
26609
26617
  });
26610
26618
  } }), $R = z({ atan_: function(e) {
26611
26619
  var n = A(e, "x", "atan");
26612
- return j.runKernelFunc(function(t, r) {
26620
+ return U.runKernelFunc(function(t, r) {
26613
26621
  var o = t.atan(n);
26614
26622
  return r([n]), o;
26615
26623
  }, { $x: n }, function(t, r) {
@@ -26620,7 +26628,7 @@ var OR = z({ square_: function(e) {
26620
26628
  });
26621
26629
  } }), WR = z({ atanh_: function(e) {
26622
26630
  var n = A(e, "x", "atanh");
26623
- return j.runKernelFunc(function(t, r) {
26631
+ return U.runKernelFunc(function(t, r) {
26624
26632
  var o = t.atanh(n);
26625
26633
  return r([n]), o;
26626
26634
  }, { $x: n }, function(t, r) {
@@ -26631,7 +26639,7 @@ var OR = z({ square_: function(e) {
26631
26639
  });
26632
26640
  } }), HR = z({ ceil_: function(e) {
26633
26641
  var n = A(e, "x", "ceil");
26634
- return j.runKernelFunc(function(t) {
26642
+ return U.runKernelFunc(function(t) {
26635
26643
  return t.ceil(n);
26636
26644
  }, { $x: n }, function(t) {
26637
26645
  return { $x: function() {
@@ -26644,7 +26652,7 @@ var OR = z({ square_: function(e) {
26644
26652
  return "Error in clip: min (" + n + ") must be less than or equal to max (" + t + ").";
26645
26653
  });
26646
26654
  var o = [r], a = { min: n, max: t };
26647
- return j.runKernelFunc(function(i, s) {
26655
+ return U.runKernelFunc(function(i, s) {
26648
26656
  var u = i.clip(r, n, t);
26649
26657
  return s([r]), u;
26650
26658
  }, { x: r }, function(i, s) {
@@ -26653,9 +26661,9 @@ var OR = z({ square_: function(e) {
26653
26661
  return i.where(u.greaterEqual(n).logicalAnd(u.lessEqual(t)), yt(i));
26654
26662
  } };
26655
26663
  }, "ClipByValue", a, o);
26656
- } }), jR = z({ cos_: function(e) {
26664
+ } }), UR = z({ cos_: function(e) {
26657
26665
  var n = A(e, "x", "cos"), t = [n];
26658
- return j.runKernelFunc(function(r, o) {
26666
+ return U.runKernelFunc(function(r, o) {
26659
26667
  var a = r.cos(n);
26660
26668
  return o([n]), a;
26661
26669
  }, { x: n }, function(r, o) {
@@ -26664,9 +26672,9 @@ var OR = z({ square_: function(e) {
26664
26672
  return a.toFloat().sin().neg().mul(r);
26665
26673
  } };
26666
26674
  }, "Cos", {}, t);
26667
- } }), UR = z({ cosh_: function(e) {
26675
+ } }), jR = z({ cosh_: function(e) {
26668
26676
  var n = A(e, "x", "cosh");
26669
- return j.runKernelFunc(function(t, r) {
26677
+ return U.runKernelFunc(function(t, r) {
26670
26678
  var o = t.cosh(n);
26671
26679
  return r([n]), o;
26672
26680
  }, { $x: n }, function(t, r) {
@@ -26679,7 +26687,7 @@ var OR = z({ square_: function(e) {
26679
26687
  var n = A(e, "x", "erf");
26680
26688
  return P(n.dtype === "int32" || n.dtype === "float32", function() {
26681
26689
  return "Input dtype must be `int32` or `float32`.";
26682
- }), n.dtype === "int32" && (n = n.toFloat()), j.runKernelFunc(function(t, r) {
26690
+ }), n.dtype === "int32" && (n = n.toFloat()), U.runKernelFunc(function(t, r) {
26683
26691
  var o = t.erf(n);
26684
26692
  return r([n]), o;
26685
26693
  }, { $x: n }, function(t, r) {
@@ -26690,7 +26698,7 @@ var OR = z({ square_: function(e) {
26690
26698
  });
26691
26699
  } }), Dc = z({ exp_: function(e) {
26692
26700
  var n = A(e, "x", "exp");
26693
- return j.runKernelFunc(function(t, r) {
26701
+ return U.runKernelFunc(function(t, r) {
26694
26702
  var o = t.exp(n);
26695
26703
  return r([o]), o;
26696
26704
  }, { x: n }, function(t, r) {
@@ -26700,7 +26708,7 @@ var OR = z({ square_: function(e) {
26700
26708
  }, "Exp", {}, [], [!0]);
26701
26709
  } }), KR = z({ expm1_: function(e) {
26702
26710
  var n = A(e, "x", "expm1");
26703
- return j.runKernelFunc(function(t, r) {
26711
+ return U.runKernelFunc(function(t, r) {
26704
26712
  var o = t.expm1(n);
26705
26713
  return r([n]), o;
26706
26714
  }, { $x: n }, function(t, r) {
@@ -26711,7 +26719,7 @@ var OR = z({ square_: function(e) {
26711
26719
  });
26712
26720
  } }), XR = z({ floor_: function(e) {
26713
26721
  var n = A(e, "x", "floor");
26714
- return j.runKernelFunc(function(t) {
26722
+ return U.runKernelFunc(function(t) {
26715
26723
  return t.floor(n);
26716
26724
  }, { $x: n }, function(t) {
26717
26725
  return { $x: function() {
@@ -26720,7 +26728,7 @@ var OR = z({ square_: function(e) {
26720
26728
  });
26721
26729
  } }), YR = z({ log_: function(e) {
26722
26730
  var n = A(e, "x", "log"), t = [n];
26723
- return j.runKernelFunc(function(r, o) {
26731
+ return U.runKernelFunc(function(r, o) {
26724
26732
  var a = r.log(n);
26725
26733
  return o([n]), a;
26726
26734
  }, { x: n }, function(r, o) {
@@ -26731,7 +26739,7 @@ var OR = z({ square_: function(e) {
26731
26739
  }, "Log", {}, t);
26732
26740
  } }), QR = z({ log1p_: function(e) {
26733
26741
  var n = A(e, "x", "log1p");
26734
- return j.runKernelFunc(function(t, r) {
26742
+ return U.runKernelFunc(function(t, r) {
26735
26743
  var o = t.log1p(n);
26736
26744
  return r([n]), o;
26737
26745
  }, { $x: n }, function(t, r) {
@@ -26742,7 +26750,7 @@ var OR = z({ square_: function(e) {
26742
26750
  });
26743
26751
  } }), ZR = z({ logSigmoid_: function(e) {
26744
26752
  var n = A(e, "x", "logSigmoid");
26745
- return j.runKernelFunc(function(t, r) {
26753
+ return U.runKernelFunc(function(t, r) {
26746
26754
  var o = t.softplus(n.neg()).neg();
26747
26755
  return r([n]), o;
26748
26756
  }, { $x: n }, function(t, r) {
@@ -26753,7 +26761,7 @@ var OR = z({ square_: function(e) {
26753
26761
  });
26754
26762
  } }), Ws = z({ neg_: function(e) {
26755
26763
  var n = A(e, "x", "neg"), t = [n];
26756
- return j.runKernelFunc(function(r) {
26764
+ return U.runKernelFunc(function(r) {
26757
26765
  return r.neg(n);
26758
26766
  }, { x: n }, function(r) {
26759
26767
  return { x: function() {
@@ -26762,7 +26770,7 @@ var OR = z({ square_: function(e) {
26762
26770
  }, "Neg", {}, t);
26763
26771
  } }), JR = z({ reciprocal_: function(e) {
26764
26772
  var n = A(e, "x", "reciprocal");
26765
- return j.runKernelFunc(function(t, r) {
26773
+ return U.runKernelFunc(function(t, r) {
26766
26774
  var o = t.reciprocal(n);
26767
26775
  return r([n]), o;
26768
26776
  }, { $x: n }, function(t, r) {
@@ -26773,7 +26781,7 @@ var OR = z({ square_: function(e) {
26773
26781
  });
26774
26782
  } }), e5 = z({ round_: function(e) {
26775
26783
  var n = A(e, "x", "round");
26776
- return j.runKernelFunc(function(t) {
26784
+ return U.runKernelFunc(function(t) {
26777
26785
  return t.round(n);
26778
26786
  }, { $x: n }, function(t) {
26779
26787
  return { $x: function() {
@@ -26782,7 +26790,7 @@ var OR = z({ square_: function(e) {
26782
26790
  });
26783
26791
  } }), xg = z({ rsqrt_: function(e) {
26784
26792
  var n = A(e, "x", "rsqrt"), t = [n];
26785
- return j.runKernelFunc(function(r, o) {
26793
+ return U.runKernelFunc(function(r, o) {
26786
26794
  var a = r.rsqrt(n);
26787
26795
  return o([n]), a;
26788
26796
  }, { x: n }, function(r, o) {
@@ -26793,7 +26801,7 @@ var OR = z({ square_: function(e) {
26793
26801
  }, "Rsqrt", {}, t);
26794
26802
  } }), _g = z({ sigmoid_: function(e) {
26795
26803
  var n = A(e, "x", "sigmoid");
26796
- return j.runKernelFunc(function(t, r) {
26804
+ return U.runKernelFunc(function(t, r) {
26797
26805
  var o = t.sigmoid(n);
26798
26806
  return r([o]), o;
26799
26807
  }, { x: n }, function(t, r) {
@@ -26804,7 +26812,7 @@ var OR = z({ square_: function(e) {
26804
26812
  }, "Sigmoid");
26805
26813
  } }), t5 = z({ sign_: function(e) {
26806
26814
  var n = A(e, "x", "sign");
26807
- return j.runKernelFunc(function(t) {
26815
+ return U.runKernelFunc(function(t) {
26808
26816
  return t.sign(n);
26809
26817
  }, { $x: n }, function(t) {
26810
26818
  return { $x: function() {
@@ -26813,7 +26821,7 @@ var OR = z({ square_: function(e) {
26813
26821
  });
26814
26822
  } }), n5 = z({ isNaN_: function(e) {
26815
26823
  var n = A(e, "x", "isNaN");
26816
- return j.runKernelFunc(function(t) {
26824
+ return U.runKernelFunc(function(t) {
26817
26825
  return t.isNaN(n);
26818
26826
  }, { $x: n }, function(t) {
26819
26827
  return { $x: function() {
@@ -26822,7 +26830,7 @@ var OR = z({ square_: function(e) {
26822
26830
  });
26823
26831
  } }), r5 = z({ isInf_: function(e) {
26824
26832
  var n = A(e, "x", "isInf");
26825
- return j.runKernelFunc(function(t) {
26833
+ return U.runKernelFunc(function(t) {
26826
26834
  return t.isInf(n);
26827
26835
  }, { $x: n }, function(t) {
26828
26836
  return { $x: function() {
@@ -26831,7 +26839,7 @@ var OR = z({ square_: function(e) {
26831
26839
  });
26832
26840
  } }), o5 = z({ isFinite_: function(e) {
26833
26841
  var n = A(e, "x", "isFinite");
26834
- return j.runKernelFunc(function(t) {
26842
+ return U.runKernelFunc(function(t) {
26835
26843
  return t.isFinite(n);
26836
26844
  }, { $x: n }, function(t) {
26837
26845
  return { $x: function() {
@@ -26840,7 +26848,7 @@ var OR = z({ square_: function(e) {
26840
26848
  });
26841
26849
  } }), a5 = z({ sin_: function(e) {
26842
26850
  var n = A(e, "x", "sin"), t = [n];
26843
- return j.runKernelFunc(function(r, o) {
26851
+ return U.runKernelFunc(function(r, o) {
26844
26852
  var a = r.sin(n);
26845
26853
  return o([n]), a;
26846
26854
  }, { x: n }, function(r, o) {
@@ -26851,7 +26859,7 @@ var OR = z({ square_: function(e) {
26851
26859
  }, "Sin", {}, t);
26852
26860
  } }), i5 = z({ sinh_: function(e) {
26853
26861
  var n = A(e, "x", "sinh");
26854
- return j.runKernelFunc(function(t, r) {
26862
+ return U.runKernelFunc(function(t, r) {
26855
26863
  var o = t.sinh(n);
26856
26864
  return r([n]), o;
26857
26865
  }, { $x: n }, function(t, r) {
@@ -26862,7 +26870,7 @@ var OR = z({ square_: function(e) {
26862
26870
  });
26863
26871
  } }), s5 = z({ softplus_: function(e) {
26864
26872
  var n = A(e, "x", "softplus");
26865
- return j.runKernelFunc(function(t, r) {
26873
+ return U.runKernelFunc(function(t, r) {
26866
26874
  var o = t.softplus(n);
26867
26875
  return r([n]), o;
26868
26876
  }, { $x: n }, function(t, r) {
@@ -26873,7 +26881,7 @@ var OR = z({ square_: function(e) {
26873
26881
  });
26874
26882
  } }), u5 = z({ sqrt_: function(e) {
26875
26883
  var n = A(e, "x", "sqrt");
26876
- return j.runKernelFunc(function(t, r) {
26884
+ return U.runKernelFunc(function(t, r) {
26877
26885
  var o = t.sqrt(n);
26878
26886
  return r([n]), o;
26879
26887
  }, { $x: n }, function(t, r) {
@@ -26885,7 +26893,7 @@ var OR = z({ square_: function(e) {
26885
26893
  } }), l5 = z({ step_: function(e, n) {
26886
26894
  n === void 0 && (n = 0);
26887
26895
  var t = A(e, "x", "step");
26888
- return j.runKernelFunc(function(r) {
26896
+ return U.runKernelFunc(function(r) {
26889
26897
  return r.step(t, n);
26890
26898
  }, { $x: t }, function(r) {
26891
26899
  return { $x: function() {
@@ -26894,7 +26902,7 @@ var OR = z({ square_: function(e) {
26894
26902
  });
26895
26903
  } }), c5 = z({ tan_: function(e) {
26896
26904
  var n = A(e, "x", "tan");
26897
- return j.runKernelFunc(function(t, r) {
26905
+ return U.runKernelFunc(function(t, r) {
26898
26906
  var o = t.tan(n);
26899
26907
  return r([n]), o;
26900
26908
  }, { $x: n }, function(t, r) {
@@ -26905,7 +26913,7 @@ var OR = z({ square_: function(e) {
26905
26913
  });
26906
26914
  } }), d5 = z({ tanh_: function(e) {
26907
26915
  var n = A(e, "x", "tanh");
26908
- return j.runKernelFunc(function(t, r) {
26916
+ return U.runKernelFunc(function(t, r) {
26909
26917
  var o = t.tanh(n);
26910
26918
  return r([o]), o;
26911
26919
  }, { x: n }, function(t, r) {
@@ -26968,7 +26976,7 @@ function Ii(e, n, t, r, o, a) {
26968
26976
  return "Batch normalization gradient requires mean and scale to have equal ranks.";
26969
26977
  }), 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;
26970
26978
  var f = [l, c, d, i];
26971
- return j.runKernelFunc(function(h, p) {
26979
+ return U.runKernelFunc(function(h, p) {
26972
26980
  var m = h.batchNormalization(u, Yi(c), Yi(d), a, Yi(i), Yi(s));
26973
26981
  return p([l, c, d, i]), m;
26974
26982
  }, { x: l, mean: c, variance: d, scale: i, offset: s }, function(h, p) {
@@ -27011,17 +27019,17 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27011
27019
  return r === void 0 && (r = 1e-3), mu(), Ii(e, n, t, a, o, r);
27012
27020
  } }), Eg = z({ batchNorm_: Ii }), m5 = z({ batchNorm2d_: Cg }), g5 = z({ batchNorm3d_: kg }), y5 = z({ batchNorm4d_: Sg }), gu = z({ logicalAnd_: function(e, n) {
27013
27021
  var t = A(e, "a", "logicalAnd", "bool"), r = A(n, "b", "logicalAnd", "bool");
27014
- return pt(t.shape, r.shape), j.runKernelFunc(function(o) {
27022
+ return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
27015
27023
  return o.logicalAnd(t, r);
27016
27024
  }, { a: t, b: r }, null, "LogicalAnd");
27017
27025
  } }), b5 = z({ logicalNot_: function(e) {
27018
27026
  var n = A(e, "x", "logicalNot", "bool");
27019
- return j.runKernelFunc(function(t) {
27027
+ return U.runKernelFunc(function(t) {
27020
27028
  return t.logicalNot(n);
27021
27029
  }, { $x: n });
27022
27030
  } }), Rg = z({ logicalOr_: function(e, n) {
27023
27031
  var t = A(e, "a", "logicalOr", "bool"), r = A(n, "b", "logicalOr", "bool");
27024
- return pt(t.shape, r.shape), j.runKernelFunc(function(o) {
27032
+ return pt(t.shape, r.shape), U.runKernelFunc(function(o) {
27025
27033
  return o.logicalOr(t, r);
27026
27034
  }, { $a: t, $b: r });
27027
27035
  } }), w5 = z({ logicalXor_: function(e, n) {
@@ -27031,7 +27039,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27031
27039
  var r = A(n, "a", "where"), o = A(t, "b", "where"), a = A(e, "condition", "where", "bool");
27032
27040
  return Rt(r.shape, o.shape, "Error in where: "), a.rank === 1 ? P(a.shape[0] === r.shape[0], function() {
27033
27041
  return "The first dimension of `a` must match the size of `condition`.";
27034
- }) : Rt(a.shape, o.shape, "Error in where: "), j.runKernelFunc(function(i, s) {
27042
+ }) : Rt(a.shape, o.shape, "Error in where: "), U.runKernelFunc(function(i, s) {
27035
27043
  var u = i.select(a, r, o);
27036
27044
  return s([a]), u;
27037
27045
  }, { $condition: a, $a: r, $b: o }, function(i, s) {
@@ -27058,9 +27066,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27058
27066
  });
27059
27067
  }, ft = z({ add_: function(e, n) {
27060
27068
  var t, r = A(e, "a", "add"), o = A(n, "b", "add");
27061
- t = jt(r, o), r = t[0], o = t[1];
27069
+ t = Ut(r, o), r = t[0], o = t[1];
27062
27070
  var a = pt(r.shape, o.shape);
27063
- return j.runKernelFunc(function(i) {
27071
+ return U.runKernelFunc(function(i) {
27064
27072
  return i.add(r, o);
27065
27073
  }, { a: r, b: o }, function(i) {
27066
27074
  return { a: function() {
@@ -27086,7 +27094,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27086
27094
  if (!pn(o.shape, t.shape)) throw new Error("All tensors passed to tf.addN() must have the same shape");
27087
27095
  });
27088
27096
  var r = n;
27089
- return j.runKernelFunc(function(o) {
27097
+ return U.runKernelFunc(function(o) {
27090
27098
  return o.addN(n);
27091
27099
  }, r, function(o) {
27092
27100
  var a = {};
@@ -27101,9 +27109,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27101
27109
  return Rt(t.shape, r.shape, "Error in addStrict: "), t.add(r);
27102
27110
  } }), C5 = z({ atan2_: function(e, n) {
27103
27111
  var t, r = A(e, "a", "atan2"), o = A(n, "b", "atan2");
27104
- t = jt(r, o), r = t[0], o = t[1];
27112
+ t = Ut(r, o), r = t[0], o = t[1];
27105
27113
  var a = pt(r.shape, o.shape);
27106
- return j.runKernelFunc(function(i, s) {
27114
+ return U.runKernelFunc(function(i, s) {
27107
27115
  var u = i.atan2(r, o);
27108
27116
  return s([r, o]), u;
27109
27117
  }, { $a: r, $b: o }, function(i, s) {
@@ -27118,9 +27126,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27118
27126
  });
27119
27127
  } }), lr = z({ div_: function(e, n) {
27120
27128
  var t, r = A(e, "a", "div"), o = A(n, "b", "div");
27121
- if (t = jt(r, o), r = t[0], o = t[1], r.dtype === "int32" && o.dtype === "int32") return Tg(r, o);
27129
+ if (t = Ut(r, o), r = t[0], o = t[1], r.dtype === "int32" && o.dtype === "int32") return Tg(r, o);
27122
27130
  var a = pt(r.shape, o.shape);
27123
- return j.runKernelFunc(function(i, s) {
27131
+ return U.runKernelFunc(function(i, s) {
27124
27132
  var u = i.realDivide(r, o);
27125
27133
  return s([r, o]), u;
27126
27134
  }, { a: r, b: o }, function(i, s) {
@@ -27137,7 +27145,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27137
27145
  }, "Div");
27138
27146
  } }), k5 = z({ divNoNan_: function(e, n) {
27139
27147
  var t, r = A(e, "a", "div"), o = A(n, "b", "div");
27140
- r = (t = jt(r, o))[0], o = t[1];
27148
+ r = (t = Ut(r, o))[0], o = t[1];
27141
27149
  var a = lr(r, o), i = yt(a), s = o.equal(i);
27142
27150
  return qo(s, i, a);
27143
27151
  } }), S5 = z({ divStrict_: function(e, n) {
@@ -27145,9 +27153,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27145
27153
  return Rt(t.shape, r.shape, "Error in divideStrict: "), t.div(r);
27146
27154
  } }), Tg = z({ floorDiv_: function(e, n) {
27147
27155
  var t, r = A(e, "a", "floorDiv"), o = A(n, "b", "floorDiv");
27148
- t = jt(r, o), r = t[0], o = t[1];
27156
+ t = Ut(r, o), r = t[0], o = t[1];
27149
27157
  var a = pt(r.shape, o.shape);
27150
- return j.runKernelFunc(function(i, s) {
27158
+ return U.runKernelFunc(function(i, s) {
27151
27159
  var u = i.floorDiv(r, o);
27152
27160
  return s([r, o]), u;
27153
27161
  }, { a: r, b: o }, function(i, s) {
@@ -27164,7 +27172,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27164
27172
  }, "FloorDiv");
27165
27173
  } }), Bd = z({ maximum_: function(e, n) {
27166
27174
  var t, r = A(e, "a", "maximum"), o = A(n, "b", "maximum");
27167
- return t = jt(r, o), r = t[0], o = t[1], r.dtype === "bool" && (r = r.toInt(), o = o.toInt()), pt(r.shape, o.shape), j.runKernelFunc(function(a, i) {
27175
+ return t = Ut(r, o), r = t[0], o = t[1], r.dtype === "bool" && (r = r.toInt(), o = o.toInt()), pt(r.shape, o.shape), U.runKernelFunc(function(a, i) {
27168
27176
  var s = a.maximum(r, o);
27169
27177
  return i([r, o]), s;
27170
27178
  }, { a: r, b: o }, function(a, i) {
@@ -27180,7 +27188,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27180
27188
  return Rt(t.shape, r.shape, "Error in maximumStrict: "), t.maximum(r);
27181
27189
  } }), Ag = z({ minimum_: function(e, n) {
27182
27190
  var t, r = A(e, "a", "minimum"), o = A(n, "b", "minimum");
27183
- return t = jt(r, o), r = t[0], o = t[1], r.dtype === "bool" && (r = r.toInt(), o = o.toInt()), pt(r.shape, o.shape), j.runKernelFunc(function(a, i) {
27191
+ return t = Ut(r, o), r = t[0], o = t[1], r.dtype === "bool" && (r = r.toInt(), o = o.toInt()), pt(r.shape, o.shape), U.runKernelFunc(function(a, i) {
27184
27192
  var s = a.minimum(r, o);
27185
27193
  return i([r, o]), s;
27186
27194
  }, { a: r, b: o }, function(a, i) {
@@ -27196,9 +27204,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27196
27204
  return Rt(t.shape, r.shape, "Error in minimumStrict: "), t.minimum(r);
27197
27205
  } }), I5 = z({ mod_: function(e, n) {
27198
27206
  var t, r = A(e, "a", "mod"), o = A(n, "b", "mod");
27199
- t = jt(r, o), r = t[0], o = t[1];
27207
+ t = Ut(r, o), r = t[0], o = t[1];
27200
27208
  var a = pt(r.shape, o.shape);
27201
- return j.runKernelFunc(function(i, s) {
27209
+ return U.runKernelFunc(function(i, s) {
27202
27210
  var u = i.mod(r, o);
27203
27211
  return s([r, o]), u;
27204
27212
  }, { $a: r, $b: o }, function(i, s) {
@@ -27216,9 +27224,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27216
27224
  return Rt(t.shape, r.shape, "Error in modStrict: "), t.mod(r);
27217
27225
  } }), Tn = z({ mul_: function(e, n) {
27218
27226
  var t, r = A(e, "a", "mul"), o = A(n, "b", "mul");
27219
- t = jt(r, o), r = t[0], o = t[1];
27227
+ t = Ut(r, o), r = t[0], o = t[1];
27220
27228
  var a = pt(r.shape, o.shape);
27221
- return j.runKernelFunc(function(i, s) {
27229
+ return U.runKernelFunc(function(i, s) {
27222
27230
  var u = i.multiply(r, o);
27223
27231
  return s([r, o]), u;
27224
27232
  }, { a: r, b: o }, function(i, s) {
@@ -27236,9 +27244,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27236
27244
  return Rt(t.shape, r.shape, "Error in multiplyStrict: "), t.mul(r);
27237
27245
  } }), Hs = z({ pow_: function(e, n) {
27238
27246
  var t, r = A(e, "base", "pow"), o = A(n, "exp", "pow");
27239
- t = jt(r, o), r = t[0], o = t[1];
27247
+ t = Ut(r, o), r = t[0], o = t[1];
27240
27248
  var a = pt(r.shape, o.shape), i = [r, o];
27241
- return j.runKernelFunc(function(s, u) {
27249
+ return U.runKernelFunc(function(s, u) {
27242
27250
  var l = s.pow(r, o);
27243
27251
  return u([r, o, l]), l;
27244
27252
  }, { a: r, b: o }, function(s, u) {
@@ -27258,9 +27266,9 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27258
27266
  return Rt(t.shape, r.shape, "Error in squaredDifferenceStrict: "), t.squaredDifference(r);
27259
27267
  } }), sn = z({ sub_: function(e, n) {
27260
27268
  var t, r = A(e, "a", "sub"), o = A(n, "b", "sub");
27261
- t = jt(r, o), r = t[0], o = t[1];
27269
+ t = Ut(r, o), r = t[0], o = t[1];
27262
27270
  var a = pt(r.shape, o.shape);
27263
- return j.runKernelFunc(function(i) {
27271
+ return U.runKernelFunc(function(i) {
27264
27272
  return i.subtract(r, o);
27265
27273
  }, { a: r, b: o }, function(i) {
27266
27274
  return { a: function() {
@@ -27276,7 +27284,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27276
27284
  return Rt(t.shape, r.shape, "Error in subStrict: "), t.sub(r);
27277
27285
  } }), Dg = z({ equal_: function(e, n) {
27278
27286
  var t, r = A(e, "a", "equal"), o = A(n, "b", "equal");
27279
- return t = jt(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), j.runKernelFunc(function(a) {
27287
+ return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27280
27288
  return a.equal(r, o);
27281
27289
  }, { $a: r, $b: o });
27282
27290
  } }), B5 = z({ equalStrict_: function(e, n) {
@@ -27284,12 +27292,12 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27284
27292
  return Rt(t.shape, r.shape, "Error in equalStrict: "), t.equal(r);
27285
27293
  } }), F5 = z({ greater_: function(e, n) {
27286
27294
  var t, r = A(e, "a", "greater"), o = A(n, "b", "greater");
27287
- return t = jt(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), j.runKernelFunc(function(a) {
27295
+ return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27288
27296
  return a.greater(r, o);
27289
27297
  }, { a: r, b: o }, null, "Greater");
27290
27298
  } }), Mg = z({ greaterEqual_: function(e, n) {
27291
27299
  var t, r = A(e, "a", "greaterEqual"), o = A(n, "b", "greaterEqual");
27292
- return t = jt(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), j.runKernelFunc(function(a, i) {
27300
+ return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a, i) {
27293
27301
  var s = a.greaterEqual(r, o);
27294
27302
  return i([r, o]), s;
27295
27303
  }, { a: r, b: o }, function(a, i) {
@@ -27308,12 +27316,12 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27308
27316
  return Rt(t.shape, r.shape, "Error in greaterStrict: "), t.greater(r);
27309
27317
  } }), L5 = z({ less_: function(e, n) {
27310
27318
  var t, r = A(e, "a", "less"), o = A(n, "b", "less");
27311
- return t = jt(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), j.runKernelFunc(function(a) {
27319
+ return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27312
27320
  return a.less(r, o);
27313
27321
  }, { a: r, b: o }, null, "Less");
27314
27322
  } }), q5 = z({ lessEqual_: function(e, n) {
27315
27323
  var t, r = A(e, "a", "lessEqual"), o = A(n, "b", "lessEqual");
27316
- return t = jt(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), j.runKernelFunc(function(a, i) {
27324
+ return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a, i) {
27317
27325
  var s = a.lessEqual(r, o);
27318
27326
  return i([r, o]), s;
27319
27327
  }, { a: r, b: o }, null, "LessEqual");
@@ -27325,7 +27333,7 @@ var f5 = z({ batchNormalization2d_: function(e, n, t, r, o, a) {
27325
27333
  return Rt(t.shape, r.shape, "Error in lessStrict: "), t.less(r);
27326
27334
  } }), $5 = z({ notEqual_: function(e, n) {
27327
27335
  var t, r = A(e, "a", "notEqual"), o = A(n, "b", "notEqual");
27328
- return t = jt(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), j.runKernelFunc(function(a) {
27336
+ return t = Ut(r, o), r = t[0], o = t[1], pt(r.shape, o.shape), U.runKernelFunc(function(a) {
27329
27337
  return a.notEqual(r, o);
27330
27338
  }, { a: r, b: o }, null, "NotEqual");
27331
27339
  } }), W5 = z({ notEqualStrict_: function(e, n) {
@@ -27350,7 +27358,7 @@ var Fd = z({ gather_: function(e, n, t) {
27350
27358
  for (h = u + 1; h < i.rank; h++) c.push(i.shape[h]), f *= i.shape[h];
27351
27359
  return { batchSize: d, sliceSize: f, dimSize: l, outputShape: c };
27352
27360
  }(r, o, t);
27353
- return j.runKernelFunc(function(i, s) {
27361
+ return U.runKernelFunc(function(i, s) {
27354
27362
  var u = i.gather(r, o.flatten(), t);
27355
27363
  return s([o]), u;
27356
27364
  }, { x: r, indices: o }, function(i, s) {
@@ -27366,7 +27374,7 @@ var Fd = z({ gather_: function(e, n, t) {
27366
27374
  var r = A(e, "x", "unsortedSegmentSum"), o = A(n, "segmentIds", "unsortedSegmentSum", "int32");
27367
27375
  return P(Zt(t), function() {
27368
27376
  return "numSegments must be of dtype int";
27369
- }), j.runKernelFunc(function(a, i) {
27377
+ }), U.runKernelFunc(function(a, i) {
27370
27378
  var s = a.unsortedSegmentSum(r, o, t);
27371
27379
  return i([o]), s;
27372
27380
  }, { $x: r }, function(a, i) {
@@ -27416,7 +27424,7 @@ function Bg(e, n, t, r, o, a, i) {
27416
27424
  }), i != null && P(Zt(o), function() {
27417
27425
  return "Error in conv2dDerInput: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
27418
27426
  });
27419
- var f = Ed(a), h = $o(s, t.shape, r, 1, o, i, !1, f), p = j.runKernelFunc(function(m, v) {
27427
+ var f = Ed(a), h = $o(s, t.shape, r, 1, o, i, !1, f), p = U.runKernelFunc(function(m, v) {
27420
27428
  var y = m.conv2dDerInput(u, t, h);
27421
27429
  return v([t, u]), y;
27422
27430
  }, { dy4D: u, filter: t }, function(m, v) {
@@ -27453,12 +27461,12 @@ function Fg(e, n, t, r, o) {
27453
27461
  }), P(l === t.shape[4], function() {
27454
27462
  return "Error in conv3dDerInput: depth of output (" + l + ") must match output depth for filter " + t.shape[4] + ".";
27455
27463
  });
27456
- var c = zs(a, t.shape, r, 1, o), d = j.runKernelFunc(function(f) {
27464
+ var c = zs(a, t.shape, r, 1, o), d = U.runKernelFunc(function(f) {
27457
27465
  return f.conv3dDerInput(i, t, c);
27458
27466
  }, { dy5D: i });
27459
27467
  return s ? d.as4D(d.shape[1], d.shape[2], d.shape[3], d.shape[4]) : d;
27460
27468
  }
27461
- var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27469
+ var U5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27462
27470
  o === void 0 && (o = "NWC"), a === void 0 && (a = 1);
27463
27471
  var s = A(e, "x", "conv1d"), u = A(n, "filter", "conv1d"), l = s, c = !1;
27464
27472
  s.rank === 2 && (c = !0, l = s.as3D(1, s.shape[0], s.shape[1])), P(l.rank === 3, function() {
@@ -27492,7 +27500,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27492
27500
  }), P($n(t, a), function() {
27493
27501
  return "Error in conv2D: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + a + "'";
27494
27502
  });
27495
- var f = Ed(o), h = $o(l.shape, u.shape, t, a, r, i, !1, f), p = [u, l], m = j.runKernelFunc(function(v, y) {
27503
+ var f = Ed(o), h = $o(l.shape, u.shape, t, a, r, i, !1, f), p = [u, l], m = U.runKernelFunc(function(v, y) {
27496
27504
  var b = v.conv2d(l, u, h);
27497
27505
  return y([u, l]), b;
27498
27506
  }, { x: l, filter: u }, function(v, y) {
@@ -27506,7 +27514,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27506
27514
  } };
27507
27515
  }, "Conv2D", h, p);
27508
27516
  return c ? m.as3D(m.shape[1], m.shape[2], m.shape[3]) : m;
27509
- } }), U5 = z({ conv3d_: function(e, n, t, r, o, a) {
27517
+ } }), j5 = z({ conv3d_: function(e, n, t, r, o, a) {
27510
27518
  o === void 0 && (o = "NDHWC"), a === void 0 && (a = [1, 1, 1]);
27511
27519
  var i = A(e, "x", "conv3d"), s = A(n, "filter", "conv3d"), u = i, l = !1;
27512
27520
  i.rank === 4 && (l = !0, u = i.as5D(1, i.shape[0], i.shape[1], i.shape[2], i.shape[3])), P(u.rank === 5, function() {
@@ -27522,7 +27530,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27522
27530
  }), P(o === "NDHWC", function() {
27523
27531
  return "Error in conv3d: got dataFormat of " + o + " but only NDHWC is currently supported.";
27524
27532
  });
27525
- var c = zs(u.shape, s.shape, t, a, r), d = j.runKernelFunc(function(f, h) {
27533
+ var c = zs(u.shape, s.shape, t, a, r), d = U.runKernelFunc(function(f, h) {
27526
27534
  var p = f.conv3d(u, s, c);
27527
27535
  return h([u, s]), p;
27528
27536
  }, { x: u, $filter: s }, function(f, h) {
@@ -27549,7 +27557,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27549
27557
  return "Error in conv3dDerFilter: depth of dy (" + _.shape[4] + ") must match output depth for filter (" + b[4] + ").";
27550
27558
  });
27551
27559
  var E = zs(x.shape, b, w, 1, g);
27552
- return j.runKernelFunc(function(R) {
27560
+ return U.runKernelFunc(function(R) {
27553
27561
  return R.conv3dDerFilter(x, _, E);
27554
27562
  }, { x5D: x, dy5D: _ });
27555
27563
  }(p, f, m.shape, t, r);
@@ -27577,7 +27585,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27577
27585
  return "Error in conv2dDerFilter: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
27578
27586
  });
27579
27587
  var d = Ed(a), f = $o(s.shape, t, r, 1, o, i, !1, d);
27580
- return j.runKernelFunc(function(h) {
27588
+ return U.runKernelFunc(function(h) {
27581
27589
  return h.conv2dDerFilter(s, u, f);
27582
27590
  }, { x4D: s, dy4D: u });
27583
27591
  } }), Og = z({ conv2dDerInput_: Bg }), yu = z({ depthwiseConv2d_: function(e, n, t, r, o, a, i) {
@@ -27594,7 +27602,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27594
27602
  }), i != null && P(Zt(r), function() {
27595
27603
  return "Error in depthwiseConv2d: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + r + ".";
27596
27604
  });
27597
- var d = $o(l.shape, u.shape, t, a, r, i, !0), f = [l, u], h = j.runKernelFunc(function(p, m) {
27605
+ var d = $o(l.shape, u.shape, t, a, r, i, !0), f = [l, u], h = U.runKernelFunc(function(p, m) {
27598
27606
  var v = p.depthwiseConv2D(l, u, d);
27599
27607
  return m([l, u]), v;
27600
27608
  }, { x: l, filter: u }, function(p, m) {
@@ -27612,7 +27620,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27612
27620
  } }), Ng = z({ depthwiseConv2dDerInput_: function(e, n, t, r) {
27613
27621
  var o = n, a = !1;
27614
27622
  n.rank === 3 && (a = !0, o = n.as4D(1, n.shape[0], n.shape[1], n.shape[2]));
27615
- var i = j.runKernelFunc(function(s) {
27623
+ var i = U.runKernelFunc(function(s) {
27616
27624
  return s.depthwiseConv2DDerInput(o, t, r);
27617
27625
  }, { dy4D: o });
27618
27626
  return a ? i.as3D(i.shape[1], i.shape[2], i.shape[3]) : i;
@@ -27620,7 +27628,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27620
27628
  var o = e;
27621
27629
  e.rank === 3 && (o = e.as4D(1, e.shape[0], e.shape[1], e.shape[2]));
27622
27630
  var a = n;
27623
- return a.rank === 3 && (a = n.as4D(1, n.shape[0], n.shape[1], n.shape[2])), j.runKernelFunc(function(i) {
27631
+ return a.rank === 3 && (a = n.as4D(1, n.shape[0], n.shape[1], n.shape[2])), U.runKernelFunc(function(i) {
27624
27632
  return i.depthwiseConv2DDerFilter(o, a, r);
27625
27633
  }, { x4D: o, dy4D: a });
27626
27634
  } }), Nd = z({ separableConv2d_: function(e, n, t, r, o, a, i) {
@@ -27652,7 +27660,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27652
27660
  var o;
27653
27661
  t === void 0 && (t = !1), r === void 0 && (r = !1);
27654
27662
  var a = A(e, "a", "matMul"), i = A(n, "b", "matMul");
27655
- o = jt(a, i), a = o[0], i = o[1];
27663
+ o = Ut(a, i), a = o[0], i = o[1];
27656
27664
  var s = t ? a.shape[a.rank - 2] : a.shape[a.rank - 1], u = r ? i.shape[i.rank - 1] : i.shape[i.rank - 2], l = t ? a.shape[a.rank - 1] : a.shape[a.rank - 2], c = r ? i.shape[i.rank - 2] : i.shape[i.rank - 1], d = a.shape.slice(0, -2), f = i.shape.slice(0, -2), h = Fe(d), p = Fe(f);
27657
27665
  P(a.rank >= 2 && i.rank >= 2 && a.rank === i.rank, function() {
27658
27666
  return "Error in matMul: inputs must have the same rank of at least 2, got ranks " + a.rank + " and " + i.rank + ".";
@@ -27662,7 +27670,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27662
27670
  return "Error in matMul: inner shapes (" + s + ") and (" + u + ") of Tensors with shapes " + a.shape + " and " + i.shape + " and transposeA=" + t + " and transposeB=" + r + " must match.";
27663
27671
  });
27664
27672
  var m = a.shape.slice(0, -2).concat([l, c]), v = t ? a.as3D(h, s, l) : a.as3D(h, l, s), y = r ? i.as3D(p, c, u) : i.as3D(p, u, c), b = { transposeA: t, transposeB: r };
27665
- return j.runKernelFunc(function(w, g) {
27673
+ return U.runKernelFunc(function(w, g) {
27666
27674
  var x = w.batchMatMul(v, y, t, r);
27667
27675
  return g([v, y]), x;
27668
27676
  }, { a: v, b: y }, function(w, g) {
@@ -27703,7 +27711,7 @@ var j5 = z({ conv1d_: function(e, n, t, r, o, a, i) {
27703
27711
  var t = A(e, "x", "reverse");
27704
27712
  if (t.rank === 0) return t.clone();
27705
27713
  var r = un(n, t.shape);
27706
- return j.runKernelFunc(function(o) {
27714
+ return U.runKernelFunc(function(o) {
27707
27715
  return o.reverse(t, r);
27708
27716
  }, { $x: t }, function(o) {
27709
27717
  return { $x: function() {
@@ -27742,7 +27750,7 @@ function qg(e, n, t, r, o, a) {
27742
27750
  });
27743
27751
  var l = ci(s.shape, n, t, r, o, a);
27744
27752
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
27745
- var c = [s], d = j.runKernelFunc(function(f, h) {
27753
+ var c = [s], d = U.runKernelFunc(function(f, h) {
27746
27754
  var p = f.maxPool(s, l);
27747
27755
  return h([s, p]), p;
27748
27756
  }, { x: s }, function(f, h) {
@@ -27760,7 +27768,7 @@ function qg(e, n, t, r, o, a) {
27760
27768
  return "Error in maxPoolBackprop: input must be rank 4 but got rank " + C.rank + ".";
27761
27769
  });
27762
27770
  var M = ci(C.shape, w, g, x, _, E);
27763
- return j.runKernelFunc(function(I) {
27771
+ return U.runKernelFunc(function(I) {
27764
27772
  return I.maxPoolBackprop(R, C, S, M);
27765
27773
  }, { $dy: R, $input: C });
27766
27774
  }(f, p, m, n, t, r, o);
@@ -27781,7 +27789,7 @@ function Vg(e, n, t, r, o, a) {
27781
27789
  });
27782
27790
  var l = ci(s.shape, n, t, r, o, a);
27783
27791
  if (l.filterWidth === 1 && l.filterHeight === 1 && pn(l.inShape, l.outShape)) return i.clone();
27784
- var c = j.runKernelFunc(function(d) {
27792
+ var c = U.runKernelFunc(function(d) {
27785
27793
  return d.avgPool(s, l);
27786
27794
  }, { x: s }, function(d) {
27787
27795
  return { x: function() {
@@ -27798,7 +27806,7 @@ function Vg(e, n, t, r, o, a) {
27798
27806
  }), P(g.rank === 4, function() {
27799
27807
  return "Error in avgPoolBackprop: input must be rank 4 but got rank " + g.rank + ".";
27800
27808
  });
27801
- var E = ci(g.shape, p, m, v, y), R = j.runKernelFunc(function(C) {
27809
+ var E = ci(g.shape, p, m, v, y), R = U.runKernelFunc(function(C) {
27802
27810
  return C.avgPoolBackprop(x, g, E);
27803
27811
  }, { dy4D: x, input4D: g });
27804
27812
  return _ ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
@@ -27847,7 +27855,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27847
27855
  return [0, S[F]];
27848
27856
  });
27849
27857
  return [I, $];
27850
- }([c.inHeight, c.inWidth], d, l), p = h[0], m = h[1], v = f ? r : "valid", y = f ? s : Um(s, d, p), b = (t === "avg" ? function() {
27858
+ }([c.inHeight, c.inWidth], d, l), p = h[0], m = h[1], v = f ? r : "valid", y = f ? s : jm(s, d, p), b = (t === "avg" ? function() {
27851
27859
  return Vg(y, n, a, 1, v);
27852
27860
  } : function() {
27853
27861
  return qg(y, n, a, 1, v);
@@ -27865,7 +27873,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27865
27873
  }), o != null && P(Zt(r), function() {
27866
27874
  return "Error in maxPool3d: pad must be an integer when using, dimRoundingMode " + o + " but got pad " + r + ".";
27867
27875
  });
27868
- var c = Vs(u.shape, n, t, i, r, o, a), d = j.runKernelFunc(function(f, h) {
27876
+ var c = Vs(u.shape, n, t, i, r, o, a), d = U.runKernelFunc(function(f, h) {
27869
27877
  var p = f.maxPool3d(u, c);
27870
27878
  return h([u, p]), p;
27871
27879
  }, { x: u }, function(f, h) {
@@ -27884,7 +27892,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27884
27892
  }), E != null && P(Zt(_), function() {
27885
27893
  return "Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode " + E + " but got pad " + _ + ".";
27886
27894
  });
27887
- var F = Vs(I.shape, w, g, x, _, E), V = j.runKernelFunc(function(L) {
27895
+ var F = Vs(I.shape, w, g, x, _, E), V = U.runKernelFunc(function(L) {
27888
27896
  return L.maxPool3dBackprop(M, I, $, F);
27889
27897
  }, { dy5D: M, input5D: I });
27890
27898
  return D ? V.as4D(V.shape[1], V.shape[2], V.shape[3], V.shape[4]) : V;
@@ -27904,7 +27912,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27904
27912
  }), o != null && P(Zt(r), function() {
27905
27913
  return "Error in avgPool3d: pad must be an integer when using, dimRoundingMode " + o + " but got pad " + r + ".";
27906
27914
  });
27907
- var c = Vs(u.shape, n, t, i, r, o, a), d = j.runKernelFunc(function(f) {
27915
+ var c = Vs(u.shape, n, t, i, r, o, a), d = U.runKernelFunc(function(f) {
27908
27916
  return f.avgPool3d(u, c);
27909
27917
  }, { x: u }, function(f) {
27910
27918
  return { x: function() {
@@ -27919,7 +27927,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27919
27927
  }), w != null && P(Zt(b), function() {
27920
27928
  return "Error in maxPool3dBackprop: pad must be an integer when using, dimRoundingMode " + w + " but got pad " + b + ".";
27921
27929
  });
27922
- var C = Vs(E.shape, m, v, y, b, w), S = j.runKernelFunc(function(M) {
27930
+ var C = Vs(E.shape, m, v, y, b, w), S = U.runKernelFunc(function(M) {
27923
27931
  return M.avgPool3dBackprop(_, E, C);
27924
27932
  }, { dy5D: _, input5D: E });
27925
27933
  return R ? S.as4D(S.shape[1], S.shape[2], S.shape[3], S.shape[4]) : S;
@@ -27940,7 +27948,7 @@ var cn = z({ maxPool_: function(e, n, t, r, o) {
27940
27948
  }), a.shape[l] - r[l]);
27941
27949
  }), D4(a, r, o);
27942
27950
  var i = a.shape, s = { begin: r, size: o };
27943
- return j.runKernelFunc(function(u) {
27951
+ return U.runKernelFunc(function(u) {
27944
27952
  return u.slice(a, r, o);
27945
27953
  }, { x: a }, function(u) {
27946
27954
  for (var l = [], c = 0; c < u.rank; c++) l.push([r[c], i[c] - r[c] - o[c]]);
@@ -27979,7 +27987,7 @@ var sI = z({ all_: function(e, n, t) {
27979
27987
  n === void 0 && (n = null), t === void 0 && (t = !1);
27980
27988
  var r = A(e, "x", "all", "bool"), o = un(n, r.shape), a = o, i = Mr(a, r.rank);
27981
27989
  i != null && (r = r.transpose(i), a = Pr(a.length, r.rank));
27982
- var s = j.runKernelFunc(function(l) {
27990
+ var s = U.runKernelFunc(function(l) {
27983
27991
  return l.all(r, a);
27984
27992
  }, { $x: r });
27985
27993
  if (t) {
@@ -27991,7 +27999,7 @@ var sI = z({ all_: function(e, n, t) {
27991
27999
  n === void 0 && (n = null), t === void 0 && (t = !1);
27992
28000
  var r = A(e, "x", "any", "bool"), o = un(n, r.shape), a = o, i = Mr(a, r.rank);
27993
28001
  i != null && (r = r.transpose(i), a = Pr(a.length, r.rank));
27994
- var s = j.runKernelFunc(function(l) {
28002
+ var s = U.runKernelFunc(function(l) {
27995
28003
  return l.any(r, a);
27996
28004
  }, { $x: r });
27997
28005
  if (t) {
@@ -28006,7 +28014,7 @@ var sI = z({ all_: function(e, n, t) {
28006
28014
  var r = un(n, t.shape), o = Mr(r, t.rank);
28007
28015
  o != null && (t = t.transpose(o), r = Pr(r.length, t.rank));
28008
28016
  var a = { axis: r[0] }, i = [t];
28009
- return j.runKernelFunc(function(s, u) {
28017
+ return U.runKernelFunc(function(s, u) {
28010
28018
  var l = s.argMax(t, r[0]);
28011
28019
  return u([t]), l;
28012
28020
  }, { x: t }, function(s, u) {
@@ -28020,7 +28028,7 @@ var sI = z({ all_: function(e, n, t) {
28020
28028
  var t = A(e, "x", "argMin");
28021
28029
  n == null && (n = 0);
28022
28030
  var r = un(n, t.shape), o = Mr(r, t.rank);
28023
- return o != null && (t = t.transpose(o), r = Pr(r.length, t.rank)), j.runKernelFunc(function(a, i) {
28031
+ return o != null && (t = t.transpose(o), r = Pr(r.length, t.rank)), U.runKernelFunc(function(a, i) {
28024
28032
  var s = a.argMin(t, r[0]);
28025
28033
  return i([t]), s;
28026
28034
  }, { $x: t }, function(a, i) {
@@ -28041,7 +28049,7 @@ var sI = z({ all_: function(e, n, t) {
28041
28049
  n === void 0 && (n = null), t === void 0 && (t = !1);
28042
28050
  var r = A(e, "x", "max"), o = r, a = un(n, r.shape), i = a, s = Mr(i, r.rank);
28043
28051
  s != null && (r = r.transpose(s), i = Pr(i.length, r.rank));
28044
- var u = [r], l = j.runKernelFunc(function(d, f) {
28052
+ var u = [r], l = U.runKernelFunc(function(d, f) {
28045
28053
  var h = d.max(r, i);
28046
28054
  return f([o, h]), h;
28047
28055
  }, { x: r }, function(d, f) {
@@ -28068,7 +28076,7 @@ var sI = z({ all_: function(e, n, t) {
28068
28076
  n === void 0 && (n = null), t === void 0 && (t = !1);
28069
28077
  var r = A(e, "x", "min"), o = r, a = un(n, r.shape), i = a, s = Mr(i, r.rank);
28070
28078
  s != null && (r = r.transpose(s), i = Pr(i.length, r.rank));
28071
- var u = [r], l = j.runKernelFunc(function(d, f) {
28079
+ var u = [r], l = U.runKernelFunc(function(d, f) {
28072
28080
  var h = d.min(r, i);
28073
28081
  return f([o, h]), h;
28074
28082
  }, { x: r }, function(d, f) {
@@ -28098,7 +28106,7 @@ var sI = z({ all_: function(e, n, t) {
28098
28106
  return o.forEach(function(m) {
28099
28107
  p[m] = 1;
28100
28108
  }), h.reshape(p).mul(Va(a.shape, "float32"));
28101
- }, c = { axes: s }, d = j.runKernelFunc(function(h) {
28109
+ }, c = { axes: s }, d = U.runKernelFunc(function(h) {
28102
28110
  return h.sum(u, s);
28103
28111
  }, { x: u }, function(h) {
28104
28112
  return { x: function() {
@@ -28117,7 +28125,7 @@ var sI = z({ all_: function(e, n, t) {
28117
28125
  r.dtype === "bool" && (r = r.toInt());
28118
28126
  var o = un(n, r.shape), a = Mr(o, r.rank), i = o, s = r;
28119
28127
  a != null && (s = r.transpose(a), i = Pr(i.length, r.rank));
28120
- var u = j.runKernelFunc(function(c) {
28128
+ var u = U.runKernelFunc(function(c) {
28121
28129
  return c.prod(s, i);
28122
28130
  }, { permutedX: s });
28123
28131
  if (t) {
@@ -28127,13 +28135,13 @@ var sI = z({ all_: function(e, n, t) {
28127
28135
  return u;
28128
28136
  } }), Hg = z({ elu_: function(e) {
28129
28137
  var n = A(e, "x", "elu");
28130
- return j.runKernelFunc(function(t, r) {
28138
+ return U.runKernelFunc(function(t, r) {
28131
28139
  var o = t.elu(n);
28132
28140
  return r([o]), o;
28133
28141
  }, { $x: n }, function(t, r) {
28134
28142
  var o = r[0];
28135
28143
  return { $x: function() {
28136
- return j.runKernelFunc(function(a) {
28144
+ return U.runKernelFunc(function(a) {
28137
28145
  return a.eluDer(t, o);
28138
28146
  }, { dy: t, y: o });
28139
28147
  } };
@@ -28142,9 +28150,9 @@ var sI = z({ all_: function(e, n, t) {
28142
28150
  n === void 0 && (n = 0.2);
28143
28151
  var t = A(e, "x", "leakyRelu");
28144
28152
  return Bd(we(n).mul(t), t);
28145
- } }), jg = z({ prelu_: function(e, n) {
28153
+ } }), Ug = z({ prelu_: function(e, n) {
28146
28154
  var t = A(e, "x", "prelu"), r = A(n, "alpha", "prelu");
28147
- return j.runKernelFunc(function(o, a) {
28155
+ return U.runKernelFunc(function(o, a) {
28148
28156
  var i = o.prelu(t, r);
28149
28157
  return a([t, r]), i;
28150
28158
  }, { x: t, alpha: r }, function(o, a) {
@@ -28158,7 +28166,7 @@ var sI = z({ all_: function(e, n, t) {
28158
28166
  }, "Prelu");
28159
28167
  } }), Ht = z({ relu_: function(e) {
28160
28168
  var n = A(e, "x", "relu");
28161
- return n.dtype === "bool" ? n.toInt() : j.runKernelFunc(function(t, r) {
28169
+ return n.dtype === "bool" ? n.toInt() : U.runKernelFunc(function(t, r) {
28162
28170
  var o = t.relu(n);
28163
28171
  return r([n]), o;
28164
28172
  }, { x: n }, function(t, r) {
@@ -28167,9 +28175,9 @@ var sI = z({ all_: function(e, n, t) {
28167
28175
  return t.mulStrict(o.step().toFloat());
28168
28176
  } };
28169
28177
  }, "Relu");
28170
- } }), Ug = z({ relu6_: function(e) {
28178
+ } }), jg = z({ relu6_: function(e) {
28171
28179
  var n = A(e, "x", "relu6");
28172
- return n.dtype === "bool" ? n.toInt() : j.runKernelFunc(function(t, r) {
28180
+ return n.dtype === "bool" ? n.toInt() : U.runKernelFunc(function(t, r) {
28173
28181
  var o = t.relu6(n);
28174
28182
  return r([n]), o;
28175
28183
  }, { x: n }, function(t, r) {
@@ -28180,7 +28188,7 @@ var sI = z({ all_: function(e, n, t) {
28180
28188
  }, "Relu6");
28181
28189
  } }), gI = z({ selu_: function(e) {
28182
28190
  var n = A(e, "x", "selu");
28183
- return j.runKernelFunc(function(t, r) {
28191
+ return U.runKernelFunc(function(t, r) {
28184
28192
  var o = t.selu(n);
28185
28193
  return r([n]), o;
28186
28194
  }, { $x: n }, function(t, r) {
@@ -28202,7 +28210,7 @@ var sI = z({ all_: function(e, n, t) {
28202
28210
  });
28203
28211
  }), t.rank <= 1) return t.clone();
28204
28212
  var r = { perm: n };
28205
- return j.runKernelFunc(function(o) {
28213
+ return U.runKernelFunc(function(o) {
28206
28214
  return o.transpose(t, n);
28207
28215
  }, { x: t }, function(o) {
28208
28216
  var a = xd(n);
@@ -28221,13 +28229,13 @@ var sI = z({ all_: function(e, n, t) {
28221
28229
  });
28222
28230
  var i = a, s = !1;
28223
28231
  a.rank === 3 && (s = !0, i = a.as4D(1, a.shape[0], a.shape[1], a.shape[2]));
28224
- var u = j.runKernelFunc(function(l, c) {
28232
+ var u = U.runKernelFunc(function(l, c) {
28225
28233
  var d = l.localResponseNormalization4D(i, n, t, r, o);
28226
28234
  return c([i, d]), d;
28227
28235
  }, { x4D: i }, function(l, c) {
28228
28236
  var d = c[0], f = c[1];
28229
28237
  return { x4D: function() {
28230
- return j.runKernelFunc(function(h) {
28238
+ return U.runKernelFunc(function(h) {
28231
28239
  return h.LRNGrad(l, d, f, n, t, r, o);
28232
28240
  }, {});
28233
28241
  } };
@@ -28301,7 +28309,7 @@ var sI = z({ all_: function(e, n, t) {
28301
28309
  });
28302
28310
  return r.every(function(v) {
28303
28311
  return v === 1;
28304
- }) ? Rr(l, n, p).reshape(m) : j.runKernelFunc(function(v) {
28312
+ }) ? Rr(l, n, p).reshape(m) : U.runKernelFunc(function(v) {
28305
28313
  return v.stridedSlice(l, n, t, r);
28306
28314
  }, { $x: l }).reshape(m);
28307
28315
  } }), CI = z({ topk_: function(e, n, t) {
@@ -28310,13 +28318,13 @@ var sI = z({ all_: function(e, n, t) {
28310
28318
  if (r.rank === 0) throw new Error("topk() expects the input to be of rank 1 or higher");
28311
28319
  var o = r.shape[r.shape.length - 1];
28312
28320
  if (n > o) throw new Error("'k' passed to topk() must be <= the last dimension (" + o + ") but got " + n);
28313
- var a = j.runKernelFunc(function(i) {
28321
+ var a = U.runKernelFunc(function(i) {
28314
28322
  return i.topk(r, n, t);
28315
28323
  }, { $x: r });
28316
28324
  return { values: a[0], indices: a[1] };
28317
28325
  } }), kI = z({ scatterND_: function(e, n, t) {
28318
28326
  var r = A(e, "indices", "scatterND", "int32"), o = A(n, "updates", "scatterND");
28319
- return A4(o, r, t), j.runKernelFunc(function(a) {
28327
+ return A4(o, r, t), U.runKernelFunc(function(a) {
28320
28328
  return a.scatterND(r, o, t);
28321
28329
  }, { indices: r, updates: o }, null, "ScatterNd", { shape: t });
28322
28330
  } }), Ld = z({ fft_: function(e) {
@@ -28324,15 +28332,15 @@ var sI = z({ all_: function(e, n, t) {
28324
28332
  return "The dtype for tf.spectral.fft() must be complex64 but got " + e.dtype + ".";
28325
28333
  });
28326
28334
  var n = e.shape[e.shape.length - 1], t = e.size / n, r = e.as2D(t, n);
28327
- return j.runKernelFunc(function(o) {
28335
+ return U.runKernelFunc(function(o) {
28328
28336
  return o.fft(r);
28329
28337
  }, { input: e }).reshape(e.shape);
28330
- } }), js = z({ ifft_: function(e) {
28338
+ } }), Us = z({ ifft_: function(e) {
28331
28339
  P(e.dtype === "complex64", function() {
28332
28340
  return "The dtype for tf.spectral.ifft() must be complex64 but got " + e.dtype + ".";
28333
28341
  });
28334
28342
  var n = e.shape[e.shape.length - 1], t = e.size / n, r = e.as2D(t, n);
28335
- return j.runKernelFunc(function(o) {
28343
+ return U.runKernelFunc(function(o) {
28336
28344
  return o.ifft(r);
28337
28345
  }, { input: e }).reshape(e.shape);
28338
28346
  } }), qd = z({ rfft_: function(e, n) {
@@ -28358,12 +28366,12 @@ var sI = z({ all_: function(e, n, t) {
28358
28366
  } }), Kg = z({ irfft_: function(e) {
28359
28367
  var n = e.shape[e.shape.length - 1], t = e.size / n;
28360
28368
  if (n <= 2) {
28361
- var r = e.as2D(t, n), o = js(r);
28369
+ var r = e.as2D(t, n), o = Us(r);
28362
28370
  return or(o);
28363
28371
  }
28364
28372
  var a = [t, 2 * (n - 1)], i = or(e).as2D(t, n), s = _r(e).as2D(t, n), u = i.slice([0, 1], [t, n - 2]).reverse(1), l = s.slice([0, 1], [t, n - 2]).reverse(1).mul(we(-1)), c = i.concat(u, 1), d = s.concat(l, 1);
28365
- return r = yn(c, d).as2D(a[0], a[1]), o = js(r), or(o);
28366
- } }), SI = Object.freeze({ fft: Ld, ifft: js, rfft: qd, irfft: Kg }), EI = z({ sparseToDense_: function(e, n, t, r) {
28373
+ return r = yn(c, d).as2D(a[0], a[1]), o = Us(r), or(o);
28374
+ } }), SI = Object.freeze({ fft: Ld, ifft: Us, rfft: qd, irfft: Kg }), EI = z({ sparseToDense_: function(e, n, t, r) {
28367
28375
  r === void 0 && (r = 0);
28368
28376
  var o = A(e, "sparseIndices", "sparseToDense", "int32"), a = A(n, "sparseValues", "sparseToDense"), i = A(r, "defaultValue", "sparseToDense", a.dtype);
28369
28377
  return function(s, u, l, c) {
@@ -28374,17 +28382,17 @@ var sI = z({ all_: function(e, n, t) {
28374
28382
  var h = u.size;
28375
28383
  if (u.rank !== 0 && (u.rank !== 1 || h !== d)) throw new Error("sparseValues has incorrect shape " + u.shape + ", should be [] or [" + d + "]");
28376
28384
  if (u.dtype !== c.dtype) throw new Error("sparseValues.dtype must match defaultValues.dtype");
28377
- }(o, a, t, i), j.runKernelFunc(function(s) {
28385
+ }(o, a, t, i), U.runKernelFunc(function(s) {
28378
28386
  return s.sparseToDense(o, a, t, i);
28379
28387
  }, { $sparseIndices: o, $sparseValues: a, $defaultValue: i });
28380
28388
  } }), RI = z({ gatherND_: function(e, n) {
28381
28389
  var t = A(n, "indices", "gatherND", "int32"), r = A(e, "x", "gatherND");
28382
- return j.runKernelFunc(function(o) {
28390
+ return U.runKernelFunc(function(o) {
28383
28391
  return o.gatherND(r, t);
28384
28392
  }, { x: r, indices: t }, null, "GatherNd");
28385
28393
  } }), II = z({ diag_: function(e) {
28386
28394
  var n = A(e, "x", "diag").flatten(), t = e.shape.concat(e.shape);
28387
- return j.runKernelFunc(function(r) {
28395
+ return U.runKernelFunc(function(r) {
28388
28396
  return r.diag(n);
28389
28397
  }, { $x: n }).reshape(t);
28390
28398
  } }), TI = z({ dropout_: function(e, n, t, r) {
@@ -28402,7 +28410,7 @@ var sI = z({ all_: function(e, n, t) {
28402
28410
  return c;
28403
28411
  }
28404
28412
  return l;
28405
- }(o, t), i = 1 - n, s = jm(a, 0, 1, "float32", r).add(i).floor().div(i);
28413
+ }(o, t), i = 1 - n, s = Um(a, 0, 1, "float32", r).add(i).floor().div(i);
28406
28414
  return o.mul(s);
28407
28415
  } });
28408
28416
  function Xg(e, n, t) {
@@ -28554,11 +28562,11 @@ var MI = z({ absoluteDifference_: function(e, n, t, r) {
28554
28562
  return In;
28555
28563
  }, absoluteDifference: MI, computeWeightedLoss: Gr, cosineDistance: PI, hingeLoss: BI, huberLoss: FI, logLoss: OI, meanSquaredError: NI, sigmoidCrossEntropy: LI, softmaxCrossEntropy: qI });
28556
28564
  function gp(e, n) {
28557
- return n === void 0 && (n = !1), j.tidy(function() {
28565
+ return n === void 0 && (n = !1), U.tidy(function() {
28558
28566
  if (e.shape.length !== 2) throw new Error("qr2d() requires a 2D Tensor, but got a " + e.shape.length + "D Tensor.");
28559
28567
  for (var t = e.shape[0], r = e.shape[1], o = Hm(t), a = e.clone(), i = so([[1]], [1, 1]), s = i.clone(), u = t >= r ? r : t, l = function(d) {
28560
28568
  var f, h = a, p = s, m = o;
28561
- f = j.tidy(function() {
28569
+ f = U.tidy(function() {
28562
28570
  var v = a.slice([d, d], [t - d, 1]), y = v.norm(), b = a.slice([d, d], [1, 1]), w = so([[-1]]).where(b.greater(0), so([[1]])), g = b.sub(w.mul(y)), x = v.div(g);
28563
28571
  s = x.shape[0] === 1 ? i.clone() : i.concat(x.slice([1, 0], [x.shape[0] - 1, x.shape[1]]), 0);
28564
28572
  var _ = w.matMul(g).div(y).neg(), E = a.slice([d, 0], [t - d, r]), R = _.mul(s);
@@ -28610,7 +28618,7 @@ var zI = z({ bandPart_: function(e, n, t) {
28610
28618
  return "Gram-Schmidt: Number of vectors (" + e.length + ") exceeds number of dimensions (" + e[0].shape[0] + ").";
28611
28619
  });
28612
28620
  var a = [], i = e, s = function(u) {
28613
- a.push(j.tidy(function() {
28621
+ a.push(U.tidy(function() {
28614
28622
  var l = i[u];
28615
28623
  if (u > 0) for (var c = 0; c < u; ++c) {
28616
28624
  var d = Wg(a[c].mulStrict(l)).mul(a[c]);
@@ -28649,7 +28657,7 @@ function xu(e, n, t, r, o, a) {
28649
28657
  return "softNmsSigma must be in [0, 1], but was '" + a + "'";
28650
28658
  }), { maxOutputSize: t, iouThreshold: r, scoreThreshold: o, softNmsSigma: a };
28651
28659
  }
28652
- var jI = z({ resizeBilinear_: function(e, n, t) {
28660
+ var UI = z({ resizeBilinear_: function(e, n, t) {
28653
28661
  t === void 0 && (t = !1);
28654
28662
  var r = A(e, "images", "resizeBilinear");
28655
28663
  P(r.rank === 3 || r.rank === 4, function() {
@@ -28659,17 +28667,17 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28659
28667
  });
28660
28668
  var o = r, a = !1;
28661
28669
  r.rank === 3 && (a = !0, o = r.as4D(1, r.shape[0], r.shape[1], r.shape[2]));
28662
- var i = n[0], s = n[1], u = j.runKernelFunc(function(l, c) {
28670
+ var i = n[0], s = n[1], u = U.runKernelFunc(function(l, c) {
28663
28671
  return c([o]), l.resizeBilinear(o, i, s, t);
28664
28672
  }, { x: o }, function(l, c) {
28665
28673
  return { x: function() {
28666
- return j.runKernelFunc(function(d) {
28674
+ return U.runKernelFunc(function(d) {
28667
28675
  return d.resizeBilinearBackprop(l, c[0], t);
28668
28676
  }, {});
28669
28677
  } };
28670
28678
  }, "ResizeBilinear", { alignCorners: t, newHeight: i, newWidth: s });
28671
28679
  return a ? u.as3D(u.shape[1], u.shape[2], u.shape[3]) : u;
28672
- } }), UI = z({ resizeNearestNeighbor_: function(e, n, t) {
28680
+ } }), jI = z({ resizeNearestNeighbor_: function(e, n, t) {
28673
28681
  t === void 0 && (t = !1);
28674
28682
  var r = A(e, "images", "resizeNearestNeighbor");
28675
28683
  P(r.rank === 3 || r.rank === 4, function() {
@@ -28681,11 +28689,11 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28681
28689
  });
28682
28690
  var o = r, a = !1;
28683
28691
  r.rank === 3 && (a = !0, o = r.as4D(1, r.shape[0], r.shape[1], r.shape[2]));
28684
- var i = n[0], s = n[1], u = j.runKernelFunc(function(l, c) {
28692
+ var i = n[0], s = n[1], u = U.runKernelFunc(function(l, c) {
28685
28693
  return c([o]), l.resizeNearestNeighbor(o, i, s, t);
28686
28694
  }, { batchImages: o }, function(l, c) {
28687
28695
  return { batchImages: function() {
28688
- return j.runKernelFunc(function(d) {
28696
+ return U.runKernelFunc(function(d) {
28689
28697
  return d.resizeNearestNeighborBackprop(l, c[0], t);
28690
28698
  }, {});
28691
28699
  } };
@@ -28696,7 +28704,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28696
28704
  var a = A(e, "boxes", "nonMaxSuppression"), i = A(n, "scores", "nonMaxSuppression"), s = xu(a, i, t, r, o);
28697
28705
  t = s.maxOutputSize, r = s.iouThreshold, o = s.scoreThreshold;
28698
28706
  var u = { maxOutputSize: t, iouThreshold: r, scoreThreshold: o };
28699
- return j.runKernelFunc(function(l) {
28707
+ return U.runKernelFunc(function(l) {
28700
28708
  return l.nonMaxSuppression(a, i, t, r, o);
28701
28709
  }, { boxes: a, scores: i }, null, "NonMaxSuppressionV3", u);
28702
28710
  } }), KI = function(e, n, t, r, o) {
@@ -28713,7 +28721,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28713
28721
  });
28714
28722
  }, XI = z({ nonMaxSuppressionWithScore_: function(e, n, t, r, o, a) {
28715
28723
  r === void 0 && (r = 0.5), o === void 0 && (o = Number.NEGATIVE_INFINITY), a === void 0 && (a = 0);
28716
- var i = A(e, "boxes", "nonMaxSuppression"), s = A(n, "scores", "nonMaxSuppression"), u = xu(i, s, t, r, o, a), l = { maxOutputSize: t = u.maxOutputSize, iouThreshold: r = u.iouThreshold, scoreThreshold: o = u.scoreThreshold, softNmsSigma: a = u.softNmsSigma }, c = j.runKernel("NonMaxSuppressionV5", { boxes: i, scores: s }, l);
28724
+ var i = A(e, "boxes", "nonMaxSuppression"), s = A(n, "scores", "nonMaxSuppression"), u = xu(i, s, t, r, o, a), l = { maxOutputSize: t = u.maxOutputSize, iouThreshold: r = u.iouThreshold, scoreThreshold: o = u.scoreThreshold, softNmsSigma: a = u.softNmsSigma }, c = U.runKernel("NonMaxSuppressionV5", { boxes: i, scores: s }, l);
28717
28725
  return { selectedIndices: c[0], selectedScores: c[1] };
28718
28726
  } }), YI = function(e, n, t, r, o, a) {
28719
28727
  return r === void 0 && (r = 0.5), o === void 0 && (o = Number.NEGATIVE_INFINITY), a === void 0 && (a = 0), De(this, void 0, void 0, function() {
@@ -28743,33 +28751,33 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28743
28751
  return "cropSize must be atleast [1,1], but was " + r;
28744
28752
  }), P(o === "bilinear" || o === "nearest", function() {
28745
28753
  return "method must be bilinear or nearest, but was " + o;
28746
- }), j.runKernelFunc(function(c, d) {
28754
+ }), U.runKernelFunc(function(c, d) {
28747
28755
  return c.cropAndResize(i, s, u, r, o, a);
28748
28756
  }, { images: i, boxes: s, boxInd: u }, null, "CropAndResize", { method: o, extrapolationValue: a, cropSize: r });
28749
- } }), $d = Object.freeze({ resizeBilinear: jI, resizeNearestNeighbor: UI, nonMaxSuppression: GI, nonMaxSuppressionAsync: KI, nonMaxSuppressionWithScore: XI, nonMaxSuppressionWithScoreAsync: YI, cropAndResize: QI }), Wd = function(e, n) {
28757
+ } }), $d = Object.freeze({ resizeBilinear: UI, resizeNearestNeighbor: jI, nonMaxSuppression: GI, nonMaxSuppressionAsync: KI, nonMaxSuppressionWithScore: XI, nonMaxSuppressionWithScoreAsync: YI, cropAndResize: QI }), Wd = function(e, n) {
28750
28758
  return !(e > 0) || n === "linear";
28751
28759
  }, Hd = function(e, n, t) {
28752
28760
  if (t == null || t === "linear") return e;
28753
28761
  if (t === "relu") return e.mul(n.step());
28754
28762
  throw new Error("Gradient for activation " + t + " has not been implemented yet.");
28755
- }, jd = function(e, n) {
28763
+ }, Ud = function(e, n) {
28756
28764
  var t = n, r = an(e.shape, n.shape);
28757
28765
  return r.length > 0 && (t = t.sum(r)), t.reshape(e.shape);
28758
- }, Ud = function(e, n, t) {
28766
+ }, jd = function(e, n, t) {
28759
28767
  if (n === "linear") return e;
28760
28768
  if (n === "relu") return Ht(e);
28761
28769
  if (n === "elu") return Hg(e);
28762
- if (n === "relu6") return Ug(e);
28763
- if (n === "prelu") return jg(e, t);
28770
+ if (n === "relu6") return jg(e);
28771
+ if (n === "prelu") return Ug(e, t);
28764
28772
  throw new Error("Unknown fused activation " + n + ".");
28765
28773
  }, ZI = z({ fusedMatMul_: function(e) {
28766
28774
  var n, t = e.a, r = e.b, o = e.transposeA, a = o !== void 0 && o, i = e.transposeB, s = i !== void 0 && i, u = e.bias, l = e.activation, c = l === void 0 ? "linear" : l, d = e.preluActivationWeights;
28767
- if (Wd(j.state.gradientDepth, c) === !1) {
28775
+ if (Wd(U.state.gradientDepth, c) === !1) {
28768
28776
  var f = bu(t, r, a, s);
28769
- return u != null && (f = ft(f, u)), Ud(f, c, d);
28777
+ return u != null && (f = ft(f, u)), jd(f, c, d);
28770
28778
  }
28771
28779
  var h = A(t, "a", "fused matMul"), p = A(r, "b", "fused matMul");
28772
- n = jt(h, p), h = n[0], p = n[1];
28780
+ n = Ut(h, p), h = n[0], p = n[1];
28773
28781
  var m = a ? h.shape[h.rank - 2] : h.shape[h.rank - 1], v = s ? p.shape[p.rank - 1] : p.shape[p.rank - 2], y = a ? h.shape[h.rank - 1] : h.shape[h.rank - 2], b = s ? p.shape[p.rank - 2] : p.shape[p.rank - 1], w = h.shape.slice(0, -2), g = p.shape.slice(0, -2), x = Fe(w), _ = Fe(g);
28774
28782
  P(h.rank >= 2 && p.rank >= 2 && h.rank === p.rank, function() {
28775
28783
  return "Error in fused matMul: inputs must have the same rank of at least 2, got ranks " + h.rank + " and " + p.rank + ".";
@@ -28779,40 +28787,40 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28779
28787
  return "Error in fused matMul: inner shapes (" + m + ") and (" + v + ") of Tensors with shapes " + h.shape + " and " + p.shape + " and transposeA=" + a + " and transposeB=" + s + " must match.";
28780
28788
  });
28781
28789
  var E, R, C = h.shape.slice(0, -2).concat([y, b]), S = a ? h.as3D(x, m, y) : h.as3D(x, y, m), M = s ? p.as3D(_, b, v) : p.as3D(_, v, b);
28782
- u != null && pt(C, (E = jt(E = A(u, "bias", "fused matMul"), h)[0]).shape), d != null && (R = A(d, "prelu weights", "fused matMul"));
28790
+ u != null && pt(C, (E = Ut(E = A(u, "bias", "fused matMul"), h)[0]).shape), d != null && (R = A(d, "prelu weights", "fused matMul"));
28783
28791
  var I = { a: S, b: M };
28784
28792
  u != null && (I.bias = E), d != null && (I.preluActivationWeights = R);
28785
28793
  var $ = [S, M];
28786
- return j.runKernelFunc(function(D, F) {
28794
+ return U.runKernelFunc(function(D, F) {
28787
28795
  var V = D.fusedBatchMatMul({ a: S, b: M, transposeA: a, transposeB: s, bias: E, activation: c, preluActivationWeights: R });
28788
28796
  return F([S, M, V]), V;
28789
28797
  }, I, function(D, F) {
28790
- var V = F[0], L = F[1], q = F[2], U = Hd(D, q, c), G = {};
28798
+ var V = F[0], L = F[1], q = F[2], j = Hd(D, q, c), G = {};
28791
28799
  return u != null && (G = { bias: function() {
28792
- return jd(E, U);
28800
+ return Ud(E, j);
28793
28801
  } }), Object.assign(a || s ? !a && s ? { a: function() {
28794
- return U.matMul(L, !1, !1);
28802
+ return j.matMul(L, !1, !1);
28795
28803
  }, b: function() {
28796
- return U.matMul(V, !0, !1);
28804
+ return j.matMul(V, !0, !1);
28797
28805
  } } : a && !s ? { a: function() {
28798
- return L.matMul(U, !1, !0);
28806
+ return L.matMul(j, !1, !0);
28799
28807
  }, b: function() {
28800
- return V.matMul(U, !1, !1);
28808
+ return V.matMul(j, !1, !1);
28801
28809
  } } : { a: function() {
28802
- return L.matMul(U, !0, !0);
28810
+ return L.matMul(j, !0, !0);
28803
28811
  }, b: function() {
28804
- return U.matMul(V, !0, !0);
28812
+ return j.matMul(V, !0, !0);
28805
28813
  } } : { a: function() {
28806
- return U.matMul(L, !1, !0);
28814
+ return j.matMul(L, !1, !0);
28807
28815
  }, b: function() {
28808
- return V.matMul(U, !0, !1);
28816
+ return V.matMul(j, !0, !1);
28809
28817
  } }, G);
28810
28818
  }, "_FusedMatMul", { transposeA: a, transposeB: s, activation: c }, $, [!0]).reshape(C);
28811
28819
  } }), JI = z({ fusedConv2d_: function(e) {
28812
28820
  var n = e.x, t = e.filter, r = e.strides, o = e.pad, a = e.dataFormat, i = a === void 0 ? "NHWC" : a, s = e.dilations, u = s === void 0 ? [1, 1] : s, l = e.dimRoundingMode, c = e.bias, d = e.activation, f = d === void 0 ? "linear" : d, h = e.preluActivationWeights;
28813
- if (f = f || "linear", Wd(j.state.gradientDepth, f) === !1) {
28821
+ if (f = f || "linear", Wd(U.state.gradientDepth, f) === !1) {
28814
28822
  var p = ir(n, t, r, o, i, u, l);
28815
- return c != null && (p = ft(p, c)), Ud(p, f, h);
28823
+ return c != null && (p = ft(p, c)), jd(p, f, h);
28816
28824
  }
28817
28825
  var m = A(n, "x", "conv2d"), v = A(t, "filter", "conv2d"), y = m, b = !1;
28818
28826
  m.rank === 3 && (b = !0, y = m.as4D(1, m.shape[0], m.shape[1], m.shape[2])), P(y.rank === 4, function() {
@@ -28829,10 +28837,10 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28829
28837
  return "Error in conv2d: got dataFormat of " + i + " but only NHWC is currently supported.";
28830
28838
  });
28831
28839
  var w, g, x = $o(y.shape, v.shape, r, u, o, l);
28832
- c != null && (w = jt(w = A(c, "bias", "fused conv2d"), m)[0], pt(x.outShape, w.shape)), h != null && (g = A(h, "prelu weights", "fused conv2d"));
28840
+ c != null && (w = Ut(w = A(c, "bias", "fused conv2d"), m)[0], pt(x.outShape, w.shape)), h != null && (g = A(h, "prelu weights", "fused conv2d"));
28833
28841
  var _ = { x: y, filter: v };
28834
28842
  c != null && (_.bias = w), h != null && (_.preluActivationWeights = g);
28835
- var E = [v, y], R = j.runKernelFunc(function(C, S) {
28843
+ var E = [v, y], R = U.runKernelFunc(function(C, S) {
28836
28844
  var M = C.fusedConv2d({ input: y, filter: v, convInfo: x, bias: w, activation: f, preluActivationWeights: g });
28837
28845
  return S([v, y, M]), M;
28838
28846
  }, _, function(C, S) {
@@ -28842,7 +28850,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28842
28850
  });
28843
28851
  var V = {};
28844
28852
  return c != null && (V = { bias: function() {
28845
- return jd(w, F);
28853
+ return Ud(w, F);
28846
28854
  } }), Object.assign({ x: function() {
28847
28855
  return Og($.shape, F, I, r, o);
28848
28856
  }, filter: function() {
@@ -28852,9 +28860,9 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28852
28860
  return b ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
28853
28861
  } }), eT = z({ fusedDepthwiseConv2d_: function(e) {
28854
28862
  var n = e.x, t = e.filter, r = e.strides, o = e.pad, a = e.dataFormat, i = a === void 0 ? "NHWC" : a, s = e.dilations, u = s === void 0 ? [1, 1] : s, l = e.dimRoundingMode, c = e.bias, d = e.activation, f = d === void 0 ? "linear" : d, h = e.preluActivationWeights;
28855
- if (Wd(j.state.gradientDepth, f) === !1) {
28863
+ if (Wd(U.state.gradientDepth, f) === !1) {
28856
28864
  var p = yu(n, t, r, o, i, u, l);
28857
- return c != null && (p = ft(p, c)), Ud(p, f, h);
28865
+ return c != null && (p = ft(p, c)), jd(p, f, h);
28858
28866
  }
28859
28867
  var m = A(n, "x", "depthwiseConv2d"), v = A(t, "filter", "depthwiseConv2d"), y = m, b = !1;
28860
28868
  m.rank === 3 && (b = !0, y = m.as4D(1, m.shape[0], m.shape[1], m.shape[2])), P(y.rank === 4, function() {
@@ -28869,10 +28877,10 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28869
28877
  return "Error in fused depthwiseConv2d: pad must be an integer when using dimRoundingMode " + l + " but got pad " + o + ".";
28870
28878
  });
28871
28879
  var w, g, x = $o(y.shape, v.shape, r, u, o, l, !0);
28872
- c != null && (w = jt(w = A(c, "bias", "fused conv2d"), m)[0], pt(x.outShape, w.shape)), h != null && (g = A(h, "prelu weights", "fused depthwiseConv2d"));
28880
+ c != null && (w = Ut(w = A(c, "bias", "fused conv2d"), m)[0], pt(x.outShape, w.shape)), h != null && (g = A(h, "prelu weights", "fused depthwiseConv2d"));
28873
28881
  var _ = { x: y, filter: v };
28874
28882
  c != null && (_.bias = w), h != null && (_.preluActivationWeights = g);
28875
- var E = [v, y], R = j.runKernelFunc(function(C, S) {
28883
+ var E = [v, y], R = U.runKernelFunc(function(C, S) {
28876
28884
  var M = C.fusedDepthwiseConv2D({ input: y, filter: v, convInfo: x, bias: w, activation: f, preluActivationWeights: g });
28877
28885
  return S([v, y, M]), M;
28878
28886
  }, _, function(C, S) {
@@ -28881,7 +28889,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28881
28889
  });
28882
28890
  var M = S[0], I = S[1], $ = S[2], D = Hd(C, $, f), F = {};
28883
28891
  return c != null && (F = { bias: function() {
28884
- return jd(w, D);
28892
+ return Ud(w, D);
28885
28893
  } }), Object.assign({ x: function() {
28886
28894
  return Ng(I.shape, D, M, x);
28887
28895
  }, filter: function() {
@@ -28889,7 +28897,7 @@ var jI = z({ resizeBilinear_: function(e, n, t) {
28889
28897
  } }, F);
28890
28898
  }, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, E, [!0]);
28891
28899
  return b ? R.as3D(R.shape[1], R.shape[2], R.shape[3]) : R;
28892
- } }), tT = Object.freeze({ matMul: ZI, conv2d: JI, depthwiseConv2d: eT }), nT = Object.freeze({ image: $d, linalg: HI, losses: VI, spectral: SI, fused: tT, signal: AI, square: OR, squaredDifference: wg, conv1d: j5, conv2d: ir, conv3d: U5, depthwiseConv2d: yu, separableConv2d: Nd, conv2dTranspose: G5, conv3dTranspose: K5, op: z, batchNormalization2d: f5, batchNormalization3d: h5, batchNormalization4d: p5, batchNormalization: v5, batchNorm: Eg, batchNorm2d: m5, batchNorm3d: g5, batchNorm4d: y5, booleanMaskAsync: H5, complex: yn, real: or, imag: _r, concat: rn, concat1d: t4, concat2d: n4, concat3d: r4, concat4d: o4, split: Cd, matMul: bu, dot: X5, outerProduct: Y5, reverse: Ti, reverse1d: Q5, reverse2d: Z5, reverse3d: J5, reverse4d: eI, maxPool: cn, avgPool: Ai, pool: tI, maxPool3d: nI, avgPool3d: rI, slice: Rr, slice1d: oI, slice2d: aI, slice3d: zg, slice4d: iI, abs: NR, acos: LR, acosh: qR, asin: VR, asinh: zR, atan: $R, atanh: WR, ceil: HR, clipByValue: Pd, cos: jR, cosh: UR, erf: GR, exp: Dc, expm1: KR, floor: XR, log: YR, log1p: QR, logSigmoid: ZR, neg: Ws, reciprocal: JR, round: e5, rsqrt: xg, sigmoid: _g, sign: t5, isNaN: n5, isInf: r5, isFinite: o5, sin: a5, sinh: i5, softplus: s5, sqrt: u5, step: l5, tan: c5, tanh: d5, all: sI, any: uI, argMax: lI, argMin: cI, logSumExp: dI, max: wu, mean: fI, min: hI, moments: pI, sum: Wg, prod: vI, equal: Dg, equalStrict: B5, greater: F5, greaterEqual: Mg, greaterEqualStrict: O5, greaterStrict: N5, less: L5, lessEqual: q5, lessEqualStrict: V5, lessStrict: z5, notEqual: $5, notEqualStrict: W5, add: ft, addN: x5, addStrict: _5, atan2: C5, div: lr, divNoNan: k5, divStrict: S5, floorDiv: Tg, maximum: Bd, maximumStrict: E5, minimum: Ag, minimumStrict: R5, mod: I5, modStrict: T5, mul: Tn, mulStrict: A5, pow: Hs, powStrict: D5, squaredDifferenceStrict: M5, sub: sn, subStrict: P5, elu: Hg, leakyRelu: mI, prelu: jg, relu: Ht, relu6: Ug, selu: gI, logicalAnd: gu, logicalNot: b5, logicalOr: Rg, logicalXor: w5, where: qo, whereAsync: Ig, buffer: ot, print: h4, batchToSpaceND: Wm, broadcastTo: p4, cast: v4, clone: m4, cumsum: g4, depthToSpace: y4, expandDims: nr, eye: Hm, multinomial: b4, oneHot: Rc, pad: zo, pad1d: w4, pad2d: x4, pad3d: _4, pad4d: C4, rand: k4, randomNormal: S4, randomGamma: E4, randomUniform: jm, reshape: cr, spaceToBatchND: Um, squeeze: Gm, stack: Qn, tile: ha, truncatedNormal: R4, unstack: on, setdiff1dAsync: I4, fill: Er, linspace: e4, ones: Va, range: Fs, scalar: we, tensor: wn, tensor1d: tn, tensor2d: so, tensor3d: _d, tensor4d: Pn, tensor5d: QS, tensor6d: ZS, variable: JS, zeros: Vt, onesLike: $m, zerosLike: yt, transpose: fo, softmax: Ur, logSoftmax: F4, localResponseNormalization: yI, norm: Gg, gather: Fd, unsortedSegmentSum: Pg, basicLSTMCell: bI, multiRNNCell: wI, movingAverage: xI, stridedSlice: _I, topk: CI, scatterND: kI, fft: Ld, ifft: js, rfft: qd, irfft: Kg, sparseToDense: EI, gatherND: RI, diag: II, dropout: TI, hannWindow: Vd, hammingWindow: Yg, frame: zd, stft: Qg, inTopKAsync: DI });
28900
+ } }), tT = Object.freeze({ matMul: ZI, conv2d: JI, depthwiseConv2d: eT }), nT = Object.freeze({ image: $d, linalg: HI, losses: VI, spectral: SI, fused: tT, signal: AI, square: OR, squaredDifference: wg, conv1d: U5, conv2d: ir, conv3d: j5, depthwiseConv2d: yu, separableConv2d: Nd, conv2dTranspose: G5, conv3dTranspose: K5, op: z, batchNormalization2d: f5, batchNormalization3d: h5, batchNormalization4d: p5, batchNormalization: v5, batchNorm: Eg, batchNorm2d: m5, batchNorm3d: g5, batchNorm4d: y5, booleanMaskAsync: H5, complex: yn, real: or, imag: _r, concat: rn, concat1d: t4, concat2d: n4, concat3d: r4, concat4d: o4, split: Cd, matMul: bu, dot: X5, outerProduct: Y5, reverse: Ti, reverse1d: Q5, reverse2d: Z5, reverse3d: J5, reverse4d: eI, maxPool: cn, avgPool: Ai, pool: tI, maxPool3d: nI, avgPool3d: rI, slice: Rr, slice1d: oI, slice2d: aI, slice3d: zg, slice4d: iI, abs: NR, acos: LR, acosh: qR, asin: VR, asinh: zR, atan: $R, atanh: WR, ceil: HR, clipByValue: Pd, cos: UR, cosh: jR, erf: GR, exp: Dc, expm1: KR, floor: XR, log: YR, log1p: QR, logSigmoid: ZR, neg: Ws, reciprocal: JR, round: e5, rsqrt: xg, sigmoid: _g, sign: t5, isNaN: n5, isInf: r5, isFinite: o5, sin: a5, sinh: i5, softplus: s5, sqrt: u5, step: l5, tan: c5, tanh: d5, all: sI, any: uI, argMax: lI, argMin: cI, logSumExp: dI, max: wu, mean: fI, min: hI, moments: pI, sum: Wg, prod: vI, equal: Dg, equalStrict: B5, greater: F5, greaterEqual: Mg, greaterEqualStrict: O5, greaterStrict: N5, less: L5, lessEqual: q5, lessEqualStrict: V5, lessStrict: z5, notEqual: $5, notEqualStrict: W5, add: ft, addN: x5, addStrict: _5, atan2: C5, div: lr, divNoNan: k5, divStrict: S5, floorDiv: Tg, maximum: Bd, maximumStrict: E5, minimum: Ag, minimumStrict: R5, mod: I5, modStrict: T5, mul: Tn, mulStrict: A5, pow: Hs, powStrict: D5, squaredDifferenceStrict: M5, sub: sn, subStrict: P5, elu: Hg, leakyRelu: mI, prelu: Ug, relu: Ht, relu6: jg, selu: gI, logicalAnd: gu, logicalNot: b5, logicalOr: Rg, logicalXor: w5, where: qo, whereAsync: Ig, buffer: ot, print: h4, batchToSpaceND: Wm, broadcastTo: p4, cast: v4, clone: m4, cumsum: g4, depthToSpace: y4, expandDims: nr, eye: Hm, multinomial: b4, oneHot: Rc, pad: zo, pad1d: w4, pad2d: x4, pad3d: _4, pad4d: C4, rand: k4, randomNormal: S4, randomGamma: E4, randomUniform: Um, reshape: cr, spaceToBatchND: jm, squeeze: Gm, stack: Qn, tile: ha, truncatedNormal: R4, unstack: on, setdiff1dAsync: I4, fill: Er, linspace: e4, ones: Va, range: Fs, scalar: we, tensor: wn, tensor1d: tn, tensor2d: so, tensor3d: _d, tensor4d: Pn, tensor5d: QS, tensor6d: ZS, variable: JS, zeros: Vt, onesLike: $m, zerosLike: yt, transpose: fo, softmax: jr, logSoftmax: F4, localResponseNormalization: yI, norm: Gg, gather: Fd, unsortedSegmentSum: Pg, basicLSTMCell: bI, multiRNNCell: wI, movingAverage: xI, stridedSlice: _I, topk: CI, scatterND: kI, fft: Ld, ifft: Us, rfft: qd, irfft: Kg, sparseToDense: EI, gatherND: RI, diag: II, dropout: TI, hannWindow: Vd, hammingWindow: Yg, frame: zd, stft: Qg, inTopKAsync: DI });
28893
28901
  function ce(e, n) {
28894
28902
  Array.isArray(e) || (e = [e]), e.forEach(function(t) {
28895
28903
  t != null && P(t.dtype !== "complex64", function() {
@@ -28908,7 +28916,7 @@ function Nl(e, n, t, r) {
28908
28916
  var rT = function(e) {
28909
28917
  function n() {
28910
28918
  var t = e.call(this) || this;
28911
- return t.blockSize = 48, t.firstUse = !0, t.data = new eg(t, j), t;
28919
+ return t.blockSize = 48, t.firstUse = !0, t.data = new eg(t, U), t;
28912
28920
  }
28913
28921
  return pr(n, e), n.prototype.write = function(t, r, o) {
28914
28922
  this.firstUse && (this.firstUse = !1, ie().get("IS_NODE") && Ps(`
@@ -28942,7 +28950,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
28942
28950
  return ot(t.shape, t.dtype, o);
28943
28951
  }, n.prototype.makeOutput = function(t, r, o) {
28944
28952
  var a = this.write(t, r, o);
28945
- return j.makeTensorFromDataId(a, r, o, this);
28953
+ return U.makeTensorFromDataId(a, r, o, this);
28946
28954
  }, n.prototype.disposeData = function(t) {
28947
28955
  if (this.data.has(t)) {
28948
28956
  var r = this.data.get(t).complexTensors;
@@ -28959,7 +28967,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
28959
28967
  return { unreliable: !0, reasons: ["The reported memory is an upper bound. Due to automatic garbage collection, the true allocated memory may be less."] };
28960
28968
  }, n.prototype.complex = function(t, r) {
28961
28969
  var o = this.makeOutput(null, t.shape, "complex64");
28962
- return this.data.get(o.dataId).complexTensors = { real: j.keep(t.clone()), imag: j.keep(r.clone()) }, o;
28970
+ return this.data.get(o.dataId).complexTensors = { real: U.keep(t.clone()), imag: U.keep(r.clone()) }, o;
28963
28971
  }, n.prototype.real = function(t) {
28964
28972
  return this.data.get(t.dataId).complexTensors.real.clone();
28965
28973
  }, n.prototype.imag = function(t) {
@@ -29465,10 +29473,10 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29465
29473
  ce([t, r], "conv2d");
29466
29474
  for (var a = o.filterHeight, i = o.filterWidth, s = o.dilationHeight, u = o.dilationWidth, l = o.padInfo.left, c = o.padInfo.top, d = o.dataFormat === "channelsLast", f = ot(o.outShape, t.dtype), h = t.strides[0], p = d ? t.strides[1] : t.strides[2], m = d ? t.strides[2] : 1, v = d ? 1 : t.strides[1], y = f.strides[0], b = d ? f.strides[1] : f.strides[2], w = d ? f.strides[2] : 1, g = d ? 1 : f.strides[1], x = this.readSync(t.dataId), _ = this.readSync(r.dataId), E = f.values, R = 0; R < o.batchSize; ++R) for (var C = R * h, S = R * y, M = 0; M < o.outHeight; ++M) for (var I = S + M * b, $ = M * o.strideHeight - c, D = 0; D < a; D++) {
29467
29475
  var F = $ + D * s;
29468
- if (!(F < 0 || F >= o.inHeight)) for (var V = D * r.strides[0], L = C + F * p, q = 0; q < o.outWidth; ++q) for (var U = I + q * w, G = q * o.strideWidth - l, O = 0; O < i; O++) {
29476
+ if (!(F < 0 || F >= o.inHeight)) for (var V = D * r.strides[0], L = C + F * p, q = 0; q < o.outWidth; ++q) for (var j = I + q * w, G = q * o.strideWidth - l, O = 0; O < i; O++) {
29469
29477
  var N = G + O * u;
29470
29478
  if (!(N < 0 || N >= o.inWidth)) for (var Y = L + N * m, ae = V + O * r.strides[1], le = 0; le < o.inChannels; ++le) {
29471
- for (var se = x[Y + le * v], de = 0; de < o.outChannels; ++de) E[U + de * g] += se * _[ae + de];
29479
+ for (var se = x[Y + le * v], de = 0; de < o.outChannels; ++de) E[j + de * g] += se * _[ae + de];
29472
29480
  ae += o.outChannels;
29473
29481
  }
29474
29482
  }
@@ -29479,7 +29487,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29479
29487
  var C = E + R * u;
29480
29488
  if (!(C < 0 || C >= o.inDepth)) for (var S = R * r.strides[0], M = w + C * t.strides[1], I = 0; I < o.outHeight; ++I) for (var $ = _ + I * p.strides[2], D = I * o.strideHeight - h, F = 0; F < i; F++) {
29481
29489
  var V = D + F * l;
29482
- if (!(V < 0 || V >= o.inHeight)) for (var L = S + F * r.strides[1], q = M + V * t.strides[2], U = 0; U < o.outWidth; ++U) for (var G = $ + U * o.outChannels, O = U * o.strideWidth - f, N = 0; N < s; N++) {
29490
+ if (!(V < 0 || V >= o.inHeight)) for (var L = S + F * r.strides[1], q = M + V * t.strides[2], j = 0; j < o.outWidth; ++j) for (var G = $ + j * o.outChannels, O = j * o.strideWidth - f, N = 0; N < s; N++) {
29483
29491
  var Y = O + N * c;
29484
29492
  if (!(Y < 0 || Y >= o.inWidth)) for (var ae = L + N * r.strides[2], le = q + Y * o.inChannels, se = ae, de = 0; de < o.inChannels; ++de) {
29485
29493
  for (var xe = m[le + de], oe = 0; oe < o.outChannels; ++oe) y[G + oe] += xe * v[se + oe];
@@ -29491,16 +29499,16 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29491
29499
  return p.toTensor();
29492
29500
  }, n.prototype.conv2dDerInput = function(t, r, o) {
29493
29501
  ce([t, r], "conv2dDerInput");
29494
- for (var a = ot(o.inShape, "float32"), i = a.values, s = this.readSync(t.dataId), u = this.readSync(r.dataId), l = r.strides, c = l[0], d = l[1], f = l[2], h = o.batchSize, p = o.filterHeight, m = o.filterWidth, v = o.inChannels, y = o.inHeight, b = o.inWidth, w = o.outChannels, g = o.outHeight, x = o.outWidth, _ = o.strideHeight, E = o.strideWidth, R = o.dataFormat, C = p - 1 - o.padInfo.top, S = m - 1 - o.padInfo.left, M = R === "channelsLast", I = a.strides[0], $ = M ? a.strides[1] : a.strides[2], D = M ? a.strides[2] : 1, F = M ? 1 : a.strides[1], V = t.strides[0], L = M ? t.strides[1] : t.strides[2], q = M ? t.strides[2] : 1, U = M ? 1 : t.strides[1], G = 0; G < h; ++G) for (var O = 0; O < v; ++O) for (var N = 0; N < y; ++N) for (var Y = N - C, ae = Math.max(0, Math.ceil(Y / _)), le = Math.min(g, (p + Y) / _), se = 0; se < b; ++se) {
29502
+ for (var a = ot(o.inShape, "float32"), i = a.values, s = this.readSync(t.dataId), u = this.readSync(r.dataId), l = r.strides, c = l[0], d = l[1], f = l[2], h = o.batchSize, p = o.filterHeight, m = o.filterWidth, v = o.inChannels, y = o.inHeight, b = o.inWidth, w = o.outChannels, g = o.outHeight, x = o.outWidth, _ = o.strideHeight, E = o.strideWidth, R = o.dataFormat, C = p - 1 - o.padInfo.top, S = m - 1 - o.padInfo.left, M = R === "channelsLast", I = a.strides[0], $ = M ? a.strides[1] : a.strides[2], D = M ? a.strides[2] : 1, F = M ? 1 : a.strides[1], V = t.strides[0], L = M ? t.strides[1] : t.strides[2], q = M ? t.strides[2] : 1, j = M ? 1 : t.strides[1], G = 0; G < h; ++G) for (var O = 0; O < v; ++O) for (var N = 0; N < y; ++N) for (var Y = N - C, ae = Math.max(0, Math.ceil(Y / _)), le = Math.min(g, (p + Y) / _), se = 0; se < b; ++se) {
29495
29503
  for (var de = se - S, xe = Math.max(0, Math.ceil(de / E)), oe = Math.min(x, (m + de) / E), ze = 0, ge = ae; ge < le; ++ge) for (var Ee = ge * _ - Y, Oe = xe; Oe < oe; ++Oe) for (var et = V * G + L * ge + q * Oe, tt = c * (p - 1 - Ee) + d * (m - 1 - (Oe * E - de)) + f * O, Ye = 0; Ye < w; ++Ye)
29496
- ze += s[et + U * Ye] * u[tt + Ye];
29504
+ ze += s[et + j * Ye] * u[tt + Ye];
29497
29505
  i[I * G + $ * N + D * se + F * O] = ze;
29498
29506
  }
29499
29507
  return a.toTensor();
29500
29508
  }, n.prototype.conv3dDerInput = function(t, r, o) {
29501
- for (var a = ot(o.inShape, "float32"), i = a.values, s = a.strides, u = s[0], l = s[1], c = s[2], d = s[3], f = this.readSync(t.dataId), h = t.strides, p = h[0], m = h[1], v = h[2], y = h[3], b = this.readSync(r.dataId), w = r.strides, g = w[0], x = w[1], _ = w[2], E = w[3], R = o.batchSize, C = o.filterDepth, S = o.filterHeight, M = o.filterWidth, I = o.inChannels, $ = o.inDepth, D = o.inHeight, F = o.inWidth, V = o.outChannels, L = o.outDepth, q = o.outHeight, U = o.outWidth, G = o.strideDepth, O = o.strideHeight, N = o.strideWidth, Y = C - 1 - o.padInfo.front, ae = S - 1 - o.padInfo.top, le = M - 1 - o.padInfo.left, se = 0; se < R; ++se) for (var de = 0; de < I; ++de) for (var xe = 0; xe < $; ++xe) for (var oe = xe - Y, ze = Math.max(0, Math.ceil(oe / G)), ge = Math.min(L, (C + oe) / G), Ee = 0; Ee < D; ++Ee) for (var Oe = Ee - ae, et = Math.max(0, Math.ceil(Oe / O)), tt = Math.min(q, (S + Oe) / O), Ye = 0; Ye < F; ++Ye) {
29502
- for (var ct = Ye - le, gt = Math.max(0, Math.ceil(ct / N)), At = Math.min(U, (M + ct) / N), Dt = 0, ue = ze; ue < ge; ++ue) for (var Z = ue * G - oe, pe = et; pe < tt; ++pe) for (var Pe = pe * O - Oe, st = gt; st < At; ++st) for (var vt = p * se + m * ue + v * pe + y * st, je = g * (C - 1 - Z) + x * (S - 1 - Pe) + _ * (M - 1 - (st * N - ct)) + E * de, Ue = 0; Ue < V; ++Ue)
29503
- Dt += f[vt + Ue] * b[je + Ue];
29509
+ for (var a = ot(o.inShape, "float32"), i = a.values, s = a.strides, u = s[0], l = s[1], c = s[2], d = s[3], f = this.readSync(t.dataId), h = t.strides, p = h[0], m = h[1], v = h[2], y = h[3], b = this.readSync(r.dataId), w = r.strides, g = w[0], x = w[1], _ = w[2], E = w[3], R = o.batchSize, C = o.filterDepth, S = o.filterHeight, M = o.filterWidth, I = o.inChannels, $ = o.inDepth, D = o.inHeight, F = o.inWidth, V = o.outChannels, L = o.outDepth, q = o.outHeight, j = o.outWidth, G = o.strideDepth, O = o.strideHeight, N = o.strideWidth, Y = C - 1 - o.padInfo.front, ae = S - 1 - o.padInfo.top, le = M - 1 - o.padInfo.left, se = 0; se < R; ++se) for (var de = 0; de < I; ++de) for (var xe = 0; xe < $; ++xe) for (var oe = xe - Y, ze = Math.max(0, Math.ceil(oe / G)), ge = Math.min(L, (C + oe) / G), Ee = 0; Ee < D; ++Ee) for (var Oe = Ee - ae, et = Math.max(0, Math.ceil(Oe / O)), tt = Math.min(q, (S + Oe) / O), Ye = 0; Ye < F; ++Ye) {
29510
+ for (var ct = Ye - le, gt = Math.max(0, Math.ceil(ct / N)), At = Math.min(j, (M + ct) / N), Dt = 0, ue = ze; ue < ge; ++ue) for (var Z = ue * G - oe, pe = et; pe < tt; ++pe) for (var Pe = pe * O - Oe, st = gt; st < At; ++st) for (var vt = p * se + m * ue + v * pe + y * st, Ue = g * (C - 1 - Z) + x * (S - 1 - Pe) + _ * (M - 1 - (st * N - ct)) + E * de, je = 0; je < V; ++je)
29511
+ Dt += f[vt + je] * b[Ue + je];
29504
29512
  i[u * se + l * xe + c * Ee + d * Ye + de] = Dt;
29505
29513
  }
29506
29514
  return a.toTensor();
@@ -29515,8 +29523,8 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29515
29523
  }
29516
29524
  return c.toTensor();
29517
29525
  }, n.prototype.conv3dDerFilter = function(t, r, o) {
29518
- for (var a = o.strideDepth, i = o.strideHeight, s = o.strideWidth, u = o.filterDepth, l = o.filterHeight, c = o.filterWidth, d = ot(o.filterShape, "float32"), f = d.values, h = d.strides, p = h[0], m = h[1], v = h[2], y = h[3], b = this.readSync(r.dataId), w = r.strides, g = w[0], x = w[1], _ = w[2], E = w[3], R = this.readSync(t.dataId), C = t.strides, S = C[0], M = C[1], I = C[2], $ = C[3], D = o.padInfo.front, F = o.padInfo.left, V = o.padInfo.top, L = 0; L < u; ++L) for (var q = Math.max(0, Math.ceil((D - L) / a)), U = Math.min(o.outDepth, (o.inDepth + D - L) / a), G = L * p, O = 0; O < l; ++O) for (var N = Math.max(0, Math.ceil((V - O) / i)), Y = Math.min(o.outHeight, (o.inHeight + V - O) / i), ae = O * m + G, le = 0; le < c; ++le) for (var se = Math.max(0, Math.ceil((F - le) / s)), de = Math.min(o.outWidth, (o.inWidth + F - le) / s), xe = le * v + ae, oe = 0; oe < o.inChannels; ++oe) for (var ze = oe * y + xe, ge = 0; ge < o.outChannels; ++ge) {
29519
- for (var Ee = 0, Oe = 0; Oe < o.batchSize; ++Oe) for (var et = Oe * S, tt = Oe * g, Ye = q; Ye < U; ++Ye) for (var ct = (L + Ye * a - D) * M + et, gt = Ye * x + tt, At = N; At < Y; ++At) for (var Dt = (O + At * i - V) * I + ct, ue = At * _ + gt, Z = se; Z < de; ++Z) {
29526
+ for (var a = o.strideDepth, i = o.strideHeight, s = o.strideWidth, u = o.filterDepth, l = o.filterHeight, c = o.filterWidth, d = ot(o.filterShape, "float32"), f = d.values, h = d.strides, p = h[0], m = h[1], v = h[2], y = h[3], b = this.readSync(r.dataId), w = r.strides, g = w[0], x = w[1], _ = w[2], E = w[3], R = this.readSync(t.dataId), C = t.strides, S = C[0], M = C[1], I = C[2], $ = C[3], D = o.padInfo.front, F = o.padInfo.left, V = o.padInfo.top, L = 0; L < u; ++L) for (var q = Math.max(0, Math.ceil((D - L) / a)), j = Math.min(o.outDepth, (o.inDepth + D - L) / a), G = L * p, O = 0; O < l; ++O) for (var N = Math.max(0, Math.ceil((V - O) / i)), Y = Math.min(o.outHeight, (o.inHeight + V - O) / i), ae = O * m + G, le = 0; le < c; ++le) for (var se = Math.max(0, Math.ceil((F - le) / s)), de = Math.min(o.outWidth, (o.inWidth + F - le) / s), xe = le * v + ae, oe = 0; oe < o.inChannels; ++oe) for (var ze = oe * y + xe, ge = 0; ge < o.outChannels; ++ge) {
29527
+ for (var Ee = 0, Oe = 0; Oe < o.batchSize; ++Oe) for (var et = Oe * S, tt = Oe * g, Ye = q; Ye < j; ++Ye) for (var ct = (L + Ye * a - D) * M + et, gt = Ye * x + tt, At = N; At < Y; ++At) for (var Dt = (O + At * i - V) * I + ct, ue = At * _ + gt, Z = se; Z < de; ++Z) {
29520
29528
  var pe = Z * E + ue;
29521
29529
  Ee += R[(le + Z * s - F) * $ + Dt + oe] * b[pe + ge];
29522
29530
  }
@@ -29532,8 +29540,8 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29532
29540
  var E = x + _ * s;
29533
29541
  if (!(E < 0 || E >= o.inHeight)) for (var R = _ * r.strides[0], C = y + E * t.strides[1], S = 0; S < o.outWidth; ++S) for (var M = g + S * f.strides[2], I = S * o.strideWidth - c, $ = 0; $ < i; ++$) {
29534
29542
  var D = I + $ * u;
29535
- if (!(D < 0 || D >= o.inWidth)) for (var F = R + $ * r.strides[1], V = C + D * o.inChannels, L = M, q = F, U = 0; U < o.inChannels; ++U) {
29536
- for (var G = h[V + U], O = 0; O < d; ++O) m[L + O] += G * p[q + O];
29543
+ if (!(D < 0 || D >= o.inWidth)) for (var F = R + $ * r.strides[1], V = C + D * o.inChannels, L = M, q = F, j = 0; j < o.inChannels; ++j) {
29544
+ for (var G = h[V + j], O = 0; O < d; ++O) m[L + O] += G * p[q + O];
29537
29545
  L += d, q += d;
29538
29546
  }
29539
29547
  }
@@ -29541,10 +29549,10 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29541
29549
  return f.toTensor();
29542
29550
  }, n.prototype.depthwiseConv2DDerInput = function(t, r, o) {
29543
29551
  ce([t, r], "depthwiseConv2DDerInput");
29544
- for (var a = ot(o.inShape, "float32"), i = a.values, s = a.strides, u = s[0], l = s[1], c = s[2], d = this.readSync(t.dataId), f = t.strides, h = f[0], p = f[1], m = f[2], v = this.readSync(r.dataId), y = r.strides, b = y[0], w = y[1], g = y[2], x = o.batchSize, _ = o.filterHeight, E = o.filterWidth, R = o.inChannels, C = o.inHeight, S = o.inWidth, M = o.outChannels, I = o.outHeight, $ = o.outWidth, D = o.strideHeight, F = o.strideWidth, V = _ - 1 - o.padInfo.top, L = E - 1 - o.padInfo.left, q = M / R, U = 0; U < x; ++U) for (var G = 0; G < R; ++G) for (var O = 0; O < C; ++O) for (var N = O - V, Y = Math.max(0, Math.ceil(N / D)), ae = Math.min(I, (_ + N) / D), le = 0; le < S; ++le) {
29545
- for (var se = le - L, de = Math.max(0, Math.ceil(se / F)), xe = Math.min($, (E + se) / F), oe = 0, ze = Y; ze < ae; ++ze) for (var ge = ze * D - N, Ee = de; Ee < xe; ++Ee) for (var Oe = h * U + p * ze + m * Ee, et = b * (_ - 1 - ge) + w * (E - 1 - (Ee * F - se)) + g * G, tt = 0; tt < q; ++tt)
29552
+ for (var a = ot(o.inShape, "float32"), i = a.values, s = a.strides, u = s[0], l = s[1], c = s[2], d = this.readSync(t.dataId), f = t.strides, h = f[0], p = f[1], m = f[2], v = this.readSync(r.dataId), y = r.strides, b = y[0], w = y[1], g = y[2], x = o.batchSize, _ = o.filterHeight, E = o.filterWidth, R = o.inChannels, C = o.inHeight, S = o.inWidth, M = o.outChannels, I = o.outHeight, $ = o.outWidth, D = o.strideHeight, F = o.strideWidth, V = _ - 1 - o.padInfo.top, L = E - 1 - o.padInfo.left, q = M / R, j = 0; j < x; ++j) for (var G = 0; G < R; ++G) for (var O = 0; O < C; ++O) for (var N = O - V, Y = Math.max(0, Math.ceil(N / D)), ae = Math.min(I, (_ + N) / D), le = 0; le < S; ++le) {
29553
+ for (var se = le - L, de = Math.max(0, Math.ceil(se / F)), xe = Math.min($, (E + se) / F), oe = 0, ze = Y; ze < ae; ++ze) for (var ge = ze * D - N, Ee = de; Ee < xe; ++Ee) for (var Oe = h * j + p * ze + m * Ee, et = b * (_ - 1 - ge) + w * (E - 1 - (Ee * F - se)) + g * G, tt = 0; tt < q; ++tt)
29546
29554
  oe += d[Oe + (G * q + tt)] * v[et + tt];
29547
- i[u * U + l * O + c * le + G] = oe;
29555
+ i[u * j + l * O + c * le + G] = oe;
29548
29556
  }
29549
29557
  return a.toTensor();
29550
29558
  }, n.prototype.depthwiseConv2DDerFilter = function(t, r, o) {
@@ -29613,14 +29621,14 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29613
29621
  }, n.prototype.pool = function(t, r, o) {
29614
29622
  ce(t, "pool");
29615
29623
  for (var a = r.strideHeight, i = r.strideWidth, s = r.dilationHeight, u = r.dilationWidth, l = r.effectiveFilterHeight, c = r.effectiveFilterWidth, d = r.padInfo.top, f = r.padInfo.left, h = o === "max" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, p = this.readSync(t.dataId), m = ot(r.outShape, t.dtype), v = m.values, y = r.outShape[1] * r.outShape[2] * r.outShape[3], b = r.outShape[2] * r.outShape[3], w = r.outShape[3], g = 0; g < r.batchSize; ++g) for (var x = g * y, _ = g * t.strides[0], E = 0; E < r.inChannels; ++E) for (var R = 0; R < r.outHeight; ++R) for (var C = R * a - d, S = Math.max(0, C), M = Math.min(r.inHeight, l + C), I = x + R * b, $ = 0; $ < r.outWidth; ++$) {
29616
- for (var D = $ * i - f, F = Math.max(0, D), V = Math.min(r.inWidth, c + D), L = h, q = 0, U = 0, G = S; G < M; G += s) {
29624
+ for (var D = $ * i - f, F = Math.max(0, D), V = Math.min(r.inWidth, c + D), L = h, q = 0, j = 0, G = S; G < M; G += s) {
29617
29625
  for (var O = _ + G * t.strides[1], N = F; N < V; N += u) {
29618
29626
  var Y = p[O + N * t.strides[2] + E];
29619
- o === "max" && Y > L ? L = Y : o === "avg" && (q += Y, U++);
29627
+ o === "max" && Y > L ? L = Y : o === "avg" && (q += Y, j++);
29620
29628
  }
29621
29629
  if (isNaN(L)) break;
29622
29630
  }
29623
- v[I + $ * w + E] = o === "avg" ? q / U : L;
29631
+ v[I + $ * w + E] = o === "avg" ? q / j : L;
29624
29632
  }
29625
29633
  return m.toTensor();
29626
29634
  }, n.prototype.maxPool = function(t, r) {
@@ -29672,8 +29680,8 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29672
29680
  for (var a = r.strideDepth, i = r.strideHeight, s = r.strideWidth, u = r.dilationDepth, l = r.dilationHeight, c = r.dilationWidth, d = r.effectiveFilterDepth, f = r.effectiveFilterHeight, h = r.effectiveFilterWidth, p = r.padInfo.front, m = r.padInfo.top, v = r.padInfo.left, y = o === "max" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, b = this.readSync(t.dataId), w = ot(r.outShape, t.dtype), g = w.values, x = r.outShape[1] * r.outShape[2] * r.outShape[3] * r.outShape[4], _ = r.outShape[2] * r.outShape[3] * r.outShape[4], E = r.outShape[3] * r.outShape[4], R = r.outShape[4], C = 0; C < r.batchSize; ++C) for (var S = C * x, M = C * t.strides[0], I = 0; I < r.inChannels; ++I) for (var $ = 0; $ < r.outDepth; ++$) {
29673
29681
  for (var D = $ * a - p, F = D; F < 0; ) F += u;
29674
29682
  for (var V = Math.min(r.inDepth, d + D), L = S + $ * _, q = 0; q < r.outHeight; ++q) {
29675
- for (var U = q * i - m, G = U; G < 0; ) G += l;
29676
- for (var O = Math.min(r.inHeight, f + U), N = L + q * E, Y = 0; Y < r.outWidth; ++Y) {
29683
+ for (var j = q * i - m, G = j; G < 0; ) G += l;
29684
+ for (var O = Math.min(r.inHeight, f + j), N = L + q * E, Y = 0; Y < r.outWidth; ++Y) {
29677
29685
  for (var ae = Y * s - v, le = ae; le < 0; ) le += c;
29678
29686
  for (var se = Math.min(r.inWidth, h + ae), de = N + Y * R, xe = y, oe = 0, ze = 0, ge = F; ge < V; ge += u) {
29679
29687
  for (var Ee = M + ge * t.strides[1], Oe = G; Oe < O; Oe += l) {
@@ -29698,10 +29706,10 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29698
29706
  for (var I = C - y, $ = S - w, D = M - b, F = 0, V = 0; V < p; V += d) {
29699
29707
  var L = (I + V) / a;
29700
29708
  if (!(L < 0 || L >= o.outDepth || Math.floor(L) !== L)) for (var q = 0; q < m; q += f) {
29701
- var U = ($ + q) / i;
29702
- if (!(U < 0 || U >= o.outHeight || Math.floor(U) !== U)) for (var G = 0; G < v; G += h) {
29709
+ var j = ($ + q) / i;
29710
+ if (!(j < 0 || j >= o.outHeight || Math.floor(j) !== j)) for (var G = 0; G < v; G += h) {
29703
29711
  var O = (D + G) / s;
29704
- O < 0 || O >= o.outWidth || Math.floor(O) !== O || (F += _.get(E, L, U, O, R));
29712
+ O < 0 || O >= o.outWidth || Math.floor(O) !== O || (F += _.get(E, L, j, O, R));
29705
29713
  }
29706
29714
  }
29707
29715
  }
@@ -29717,9 +29725,9 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29717
29725
  for (var C = R * i - m, S = C; S < 0; ) S += l;
29718
29726
  for (var M = Math.min(r.inHeight, f + C), I = 0; I < r.outWidth; ++I) {
29719
29727
  for (var $ = I * s - v, D = $; D < 0; ) D += c;
29720
- for (var F = Math.min(r.inWidth, h + $), V = Number.NEGATIVE_INFINITY, L = -1, q = _; q < E; q += u) for (var U = q - x, G = S; G < M; G += l) for (var O = G - C, N = D; N < F; N += c) {
29728
+ for (var F = Math.min(r.inWidth, h + $), V = Number.NEGATIVE_INFINITY, L = -1, q = _; q < E; q += u) for (var j = q - x, G = S; G < M; G += l) for (var O = G - C, N = D; N < F; N += c) {
29721
29729
  var Y = N - $, ae = y.get(b, q, G, N, w);
29722
- ae >= V && (V = ae, L = U * f * h + O * f + Y);
29730
+ ae >= V && (V = ae, L = j * f * h + O * f + Y);
29723
29731
  }
29724
29732
  o.set(L, b, g, R, I, w);
29725
29733
  }
@@ -29733,10 +29741,10 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29733
29741
  var V = (M + F) / s;
29734
29742
  if (!(V < 0 || V >= a.outDepth || Math.floor(V) !== V)) for (var L = 0; L < p; L += d) {
29735
29743
  var q = (I + L) / u;
29736
- if (!(q < 0 || q >= a.outHeight || Math.floor(q) !== q)) for (var U = 0; U < m; U += f) {
29737
- var G = ($ + U) / l;
29744
+ if (!(q < 0 || q >= a.outHeight || Math.floor(q) !== q)) for (var j = 0; j < m; j += f) {
29745
+ var G = ($ + j) / l;
29738
29746
  if (!(G < 0 || G >= a.outWidth || Math.floor(G) !== G)) {
29739
- var O = h * p * m - 1 - g.get(_, V, q, G, E) === F * p * m + L * m + U ? 1 : 0;
29747
+ var O = h * p * m - 1 - g.get(_, V, q, G, E) === F * p * m + L * m + j ? 1 : 0;
29740
29748
  O !== 0 && (D += x.get(_, V, q, G, E) * O);
29741
29749
  }
29742
29750
  }
@@ -29753,14 +29761,14 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29753
29761
  return ce(t, "avgPool"), this.pool(t, r, "avg").toFloat();
29754
29762
  }, n.prototype.resizeBilinear = function(t, r, o, a) {
29755
29763
  ce(t, "resizeBilinear");
29756
- for (var i = t.shape, s = i[0], u = i[1], l = i[2], c = i[3], d = this.readSync(t.dataId), f = new Float32Array(Fe([s, r, o, c])), h = [a && r > 1 ? u - 1 : u, a && o > 1 ? l - 1 : l], p = [a && r > 1 ? r - 1 : r, a && o > 1 ? o - 1 : o], m = 0, v = h[0] / p[0], y = h[1] / p[1], b = 0; b < s; b++) for (var w = 0; w < r; w++) for (var g = v * w, x = Math.floor(g), _ = g - x, E = Math.min(u - 1, Math.ceil(g)), R = b * t.strides[0] + x * t.strides[1], C = b * t.strides[0] + E * t.strides[1], S = 0; S < o; S++) for (var M = y * S, I = Math.floor(M), $ = M - I, D = Math.min(l - 1, Math.ceil(M)), F = R + I * t.strides[2], V = C + I * t.strides[2], L = R + D * t.strides[2], q = C + D * t.strides[2], U = 0; U < c; U++) {
29757
- var G = d[F + U], O = d[V + U], N = G + (d[L + U] - G) * $, Y = N + (O + (d[q + U] - O) * $ - N) * _;
29764
+ for (var i = t.shape, s = i[0], u = i[1], l = i[2], c = i[3], d = this.readSync(t.dataId), f = new Float32Array(Fe([s, r, o, c])), h = [a && r > 1 ? u - 1 : u, a && o > 1 ? l - 1 : l], p = [a && r > 1 ? r - 1 : r, a && o > 1 ? o - 1 : o], m = 0, v = h[0] / p[0], y = h[1] / p[1], b = 0; b < s; b++) for (var w = 0; w < r; w++) for (var g = v * w, x = Math.floor(g), _ = g - x, E = Math.min(u - 1, Math.ceil(g)), R = b * t.strides[0] + x * t.strides[1], C = b * t.strides[0] + E * t.strides[1], S = 0; S < o; S++) for (var M = y * S, I = Math.floor(M), $ = M - I, D = Math.min(l - 1, Math.ceil(M)), F = R + I * t.strides[2], V = C + I * t.strides[2], L = R + D * t.strides[2], q = C + D * t.strides[2], j = 0; j < c; j++) {
29765
+ var G = d[F + j], O = d[V + j], N = G + (d[L + j] - G) * $, Y = N + (O + (d[q + j] - O) * $ - N) * _;
29758
29766
  f[m++] = Y;
29759
29767
  }
29760
29768
  return wn(f, [s, r, o, c]);
29761
29769
  }, n.prototype.resizeBilinearBackprop = function(t, r, o) {
29762
29770
  ce([t, r], "resizeBilinearBackprop");
29763
- for (var a = r.shape, i = a[0], s = a[1], u = a[2], l = a[3], c = t.shape, d = c[1], f = c[2], h = new Float32Array(i * s * u * l), p = [o && d > 1 ? s - 1 : s, o && f > 1 ? u - 1 : u], m = [o && d > 1 ? d - 1 : d, o && f > 1 ? f - 1 : f], v = p[0] / m[0], y = p[1] / m[1], b = this.readSync(t.dataId), w = 0, g = 0; g < i; g++) for (var x = g * r.strides[0], _ = 0; _ < d; _++) for (var E = _ * v, R = Math.floor(E), C = Math.min(Math.ceil(E), s - 1), S = x + R * r.strides[1], M = x + C * r.strides[1], I = E - R, $ = 1 - I, D = 0; D < f; D++) for (var F = D * y, V = Math.floor(F), L = Math.min(Math.ceil(F), u - 1), q = F - V, U = 1 - q, G = S + V * r.strides[2], O = S + L * r.strides[2], N = M + V * r.strides[2], Y = M + L * r.strides[2], ae = $ * U, le = $ * q, se = I * U, de = I * q, xe = 0; xe < l; xe++) {
29771
+ for (var a = r.shape, i = a[0], s = a[1], u = a[2], l = a[3], c = t.shape, d = c[1], f = c[2], h = new Float32Array(i * s * u * l), p = [o && d > 1 ? s - 1 : s, o && f > 1 ? u - 1 : u], m = [o && d > 1 ? d - 1 : d, o && f > 1 ? f - 1 : f], v = p[0] / m[0], y = p[1] / m[1], b = this.readSync(t.dataId), w = 0, g = 0; g < i; g++) for (var x = g * r.strides[0], _ = 0; _ < d; _++) for (var E = _ * v, R = Math.floor(E), C = Math.min(Math.ceil(E), s - 1), S = x + R * r.strides[1], M = x + C * r.strides[1], I = E - R, $ = 1 - I, D = 0; D < f; D++) for (var F = D * y, V = Math.floor(F), L = Math.min(Math.ceil(F), u - 1), q = F - V, j = 1 - q, G = S + V * r.strides[2], O = S + L * r.strides[2], N = M + V * r.strides[2], Y = M + L * r.strides[2], ae = $ * j, le = $ * q, se = I * j, de = I * q, xe = 0; xe < l; xe++) {
29764
29772
  var oe = b[w++];
29765
29773
  h[G + xe] += oe * ae, h[O + xe] += oe * le, h[N + xe] += oe * se, h[Y + xe] += oe * de;
29766
29774
  }
@@ -29775,8 +29783,8 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29775
29783
  }, n.prototype.resizeNearestNeighborBackprop = function(t, r, o) {
29776
29784
  ce([t, r], "resizeNearestNeighborBackprop");
29777
29785
  for (var a = r.shape, i = a[0], s = a[1], u = a[2], l = a[3], c = t.shape, d = c[1], f = c[2], h = new Float32Array(i * s * u * l), p = this.readSync(t.dataId), m = [o && d > 1 ? s - 1 : s, o && f > 1 ? u - 1 : u], v = [o && d > 1 ? d - 1 : d, o && f > 1 ? f - 1 : f], y = m[0] / v[0], b = m[1] / v[1], w = 1 / y, g = 1 / b, x = 2 * Math.ceil(w) + 2, _ = 2 * Math.ceil(g) + 2, E = 0; E < i; E++) for (var R = E * r.strides[0], C = 0; C < s; C++) for (var S = R + C * r.strides[1], M = Math.floor(C * w), I = Math.floor(M - x / 2), $ = 0; $ < u; $++) for (var D = S + $ * r.strides[2], F = Math.floor($ * g), V = Math.floor(F - _ / 2), L = 0; L < l; L++) {
29778
- for (var q = 0, U = 0; U < x; U++) {
29779
- var G = U + I;
29786
+ for (var q = 0, j = 0; j < x; j++) {
29787
+ var G = j + I;
29780
29788
  if (!(G < 0 || G >= d)) {
29781
29789
  var O = R + G * t.strides[1], N = G * y;
29782
29790
  if (C === Math.min(s - 1, o ? Math.round(N) : Math.floor(N))) for (var Y = 0; Y < _; Y++) {
@@ -29822,7 +29830,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29822
29830
  return Pn(h, t.shape);
29823
29831
  }, n.prototype.multinomial = function(t, r, o, a) {
29824
29832
  ce(t, "multinomial");
29825
- for (var i = r ? t : Ur(t), s = i.shape[0], u = i.shape[1], l = Vt([s, o], "int32"), c = this.readSync(l.dataId), d = this.readSync(i.dataId), f = 0; f < s; ++f) {
29833
+ for (var i = r ? t : jr(t), s = i.shape[0], u = i.shape[1], l = Vt([s, o], "int32"), c = this.readSync(l.dataId), d = this.readSync(i.dataId), f = 0; f < s; ++f) {
29826
29834
  var h = f * u, p = new Float32Array(u - 1);
29827
29835
  p[0] = d[h];
29828
29836
  for (var m = 1; m < p.length; ++m) p[m] = p[m - 1] + d[h + m];
@@ -29959,25 +29967,25 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
29959
29967
  if (!(I >= l)) for (var $ = p > 1 ? (S - R) * (c - 1) / (p - 1) : 0, D = m > 1 ? (M - C) * (d - 1) / (m - 1) : 0, F = 0; F < p; F++) {
29960
29968
  var V = p > 1 ? R * (c - 1) + F * $ : 0.5 * (R + S) * (c - 1);
29961
29969
  if (V < 0 || V > c - 1) for (var L = 0; L < m; L++) for (var q = 0; q < f; q++) {
29962
- var U = q + L * x[2] + F * x[1] + _ * x[0];
29963
- v.values[U] = s;
29970
+ var j = q + L * x[2] + F * x[1] + _ * x[0];
29971
+ v.values[j] = s;
29964
29972
  }
29965
29973
  else if (i === "bilinear") {
29966
29974
  var G = Math.floor(V), O = Math.ceil(V), N = V - G;
29967
29975
  for (L = 0; L < m; L++)
29968
29976
  if ((ge = m > 1 ? C * (d - 1) + L * D : 0.5 * (C + M) * (d - 1)) < 0 || ge > d - 1) for (q = 0; q < f; q++)
29969
- U = q + L * x[2] + F * x[1] + _ * x[0], v.values[U] = s;
29977
+ j = q + L * x[2] + F * x[1] + _ * x[0], v.values[j] = s;
29970
29978
  else {
29971
29979
  var Y = Math.floor(ge), ae = Math.ceil(ge), le = ge - Y;
29972
29980
  for (q = 0; q < f; q++) {
29973
- var se = w[U = q + Y * g[2] + G * g[1] + I * g[0]], de = w[U = q + ae * g[2] + G * g[1] + I * g[0]], xe = w[U = q + Y * g[2] + O * g[1] + I * g[0]], oe = se + (de - se) * le, ze = xe + (w[U = q + ae * g[2] + O * g[1] + I * g[0]] - xe) * le;
29974
- U = q + L * x[2] + F * x[1] + _ * x[0], v.values[U] = oe + (ze - oe) * N;
29981
+ var se = w[j = q + Y * g[2] + G * g[1] + I * g[0]], de = w[j = q + ae * g[2] + G * g[1] + I * g[0]], xe = w[j = q + Y * g[2] + O * g[1] + I * g[0]], oe = se + (de - se) * le, ze = xe + (w[j = q + ae * g[2] + O * g[1] + I * g[0]] - xe) * le;
29982
+ j = q + L * x[2] + F * x[1] + _ * x[0], v.values[j] = oe + (ze - oe) * N;
29975
29983
  }
29976
29984
  }
29977
29985
  } else for (L = 0; L < m; ++L) {
29978
29986
  var ge;
29979
29987
  if ((ge = m > 1 ? C * (d - 1) + L * D : 0.5 * (C + M) * (d - 1)) < 0 || ge > d - 1) for (q = 0; q < f; q++)
29980
- U = q + L * x[2] + F * x[1] + _ * x[0], v.values[U] = s;
29988
+ j = q + L * x[2] + F * x[1] + _ * x[0], v.values[j] = s;
29981
29989
  else {
29982
29990
  var Ee = Math.round(ge), Oe = Math.round(V);
29983
29991
  for (q = 0; q < f; q++) {
@@ -30009,7 +30017,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30009
30017
  return this.scatter(t, r, o, c, u, s, i, l, d, !0);
30010
30018
  }, n.prototype.fill = function(t, r, o) {
30011
30019
  var a = Ts(o = o || ki(r), Fe(t));
30012
- return a.fill(r), j.makeTensor(a, t, o, this);
30020
+ return a.fill(r), U.makeTensor(a, t, o, this);
30013
30021
  }, n.prototype.onesLike = function(t) {
30014
30022
  if (t.dtype === "string") throw new Error("onesLike is not supported for string tensors");
30015
30023
  return this.fill(t.shape, 1, t.dtype);
@@ -30034,7 +30042,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
30034
30042
  return m.toTensor().reshape(o);
30035
30043
  }, n;
30036
30044
  }(tg);
30037
- j.registerBackend("cpu", function() {
30045
+ U.registerBackend("cpu", function() {
30038
30046
  return new rT();
30039
30047
  }, 1);
30040
30048
  for (var Ll = 0, yp = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu", kernelFunc: function(e) {
@@ -30066,8 +30074,8 @@ for (var Ll = 0, yp = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu",
30066
30074
  M.forEach(function(G) {
30067
30075
  return q[G] = 0;
30068
30076
  });
30069
- var U = zh(q, E, C);
30070
- x[D] = y(p[L], m[U]);
30077
+ var j = zh(q, E, C);
30078
+ x[D] = y(p[L], m[j]);
30071
30079
  };
30072
30080
  for (I = 0; I < x.length; ++I) $(I);
30073
30081
  }
@@ -30212,7 +30220,7 @@ var zl, sT = function() {
30212
30220
  }, e;
30213
30221
  }();
30214
30222
  ie().get("IS_NODE") && ie().setPlatform("node", new uT());
30215
- var Mc = { float32: 4, int32: 4, uint16: 2, uint8: 1, bool: 1 }, Us = 4;
30223
+ var Mc = { float32: 4, int32: 4, uint16: 2, uint8: 1, bool: 1 }, js = 4;
30216
30224
  function Zg(e, n) {
30217
30225
  for (var t = {}, r = 0, o = function(s) {
30218
30226
  var u = s.name, l = s.dtype, c = s.shape, d = Fe(c), f = void 0;
@@ -30234,8 +30242,8 @@ function Zg(e, n) {
30234
30242
  var y = Fe(s.shape);
30235
30243
  f = [];
30236
30244
  for (var b = 0; b < y; b++) {
30237
- var w = new Uint32Array(e.slice(r, r + Us))[0];
30238
- r += Us;
30245
+ var w = new Uint32Array(e.slice(r, r + js))[0];
30246
+ r += js;
30239
30247
  var g = new Uint8Array(e.slice(r, r + w));
30240
30248
  f.push(g), r += w;
30241
30249
  }
@@ -30954,7 +30962,7 @@ var Wl = function() {
30954
30962
  case 1:
30955
30963
  for (m = _.sent(), v = m.reduce(function(E, R) {
30956
30964
  return E + R.length;
30957
- }, 0) + Us * m.length, y = new Uint8Array(v), b = 0, w = 0; w < m.length; w++) g = m[w], x = new Uint8Array(new Uint32Array([g.length]).buffer), y.set(x, b), b += Us, y.set(g, b), b += g.length;
30965
+ }, 0) + js * m.length, y = new Uint8Array(v), b = 0, w = 0; w < m.length; w++) g = m[w], x = new Uint8Array(new Uint32Array([g.length]).buffer), y.set(x, b), b += js, y.set(g, b), b += g.length;
30958
30966
  return p(y), [2];
30959
30967
  }
30960
30968
  });
@@ -31059,7 +31067,7 @@ var _T = z({ fromPixels_: function(e, n) {
31059
31067
  }
31060
31068
  if (o && o && e.readyState < 2)
31061
31069
  throw new Error("The video element has not loaded data yet. Please wait for `loadeddata` event on the <video> element.");
31062
- if (Im("FromPixels", j.backendName) != null) return j.runKernel("FromPixels", { pixels: e }, { numChannels: n });
31070
+ if (Im("FromPixels", U.backendName) != null) return U.runKernel("FromPixels", { pixels: e }, { numChannels: n });
31063
31071
  var s, u, l = o ? [e.videoWidth, e.videoHeight] : [e.width, e.height], c = l[0], d = l[1];
31064
31072
  if (i ? s = e.getContext("2d").getImageData(0, 0, c, d).data : r || t ? s = e.data : (a || o) && (ea == null && (ea = document.createElement("canvas").getContext("2d")), ea.canvas.width = c, ea.canvas.height = d, ea.drawImage(e, 0, 0, c, d), s = ea.getImageData(0, 0, c, d).data), n === 4) u = new Int32Array(s);
31065
31073
  else {
@@ -31179,14 +31187,14 @@ var ST = function(e) {
31179
31187
  function n(t, r, o) {
31180
31188
  o === void 0 && (o = null);
31181
31189
  var a = e.call(this) || this;
31182
- return a.learningRate = t, a.rho = r, a.epsilon = o, a.accumulatedGrads = [], a.accumulatedUpdates = [], o == null && (a.epsilon = j.backend.epsilon()), a;
31190
+ return a.learningRate = t, a.rho = r, a.epsilon = o, a.accumulatedGrads = [], a.accumulatedUpdates = [], o == null && (a.epsilon = U.backend.epsilon()), a;
31183
31191
  }
31184
31192
  return pr(n, e), n.prototype.applyGradients = function(t) {
31185
31193
  var r = this;
31186
31194
  (Array.isArray(t) ? t.map(function(o) {
31187
31195
  return o.name;
31188
31196
  }) : Object.keys(t)).forEach(function(o, a) {
31189
- var i = j.registeredVariables[o];
31197
+ var i = U.registeredVariables[o];
31190
31198
  r.accumulatedGrads[a] == null && (r.accumulatedGrads[a] = { originalName: o + "/accum_grad", variable: Re(function() {
31191
31199
  return yt(i).variable(!1);
31192
31200
  }) }), r.accumulatedUpdates[a] == null && (r.accumulatedUpdates[a] = { originalName: o + "/accum_var", variable: Re(function() {
@@ -31257,7 +31265,7 @@ var ET = function(e) {
31257
31265
  (Array.isArray(t) ? t.map(function(o) {
31258
31266
  return o.name;
31259
31267
  }) : Object.keys(t)).forEach(function(o, a) {
31260
- var i = j.registeredVariables[o];
31268
+ var i = U.registeredVariables[o];
31261
31269
  r.accumulatedGrads[a] == null && (r.accumulatedGrads[a] = { originalName: o + "/accumulator", variable: Re(function() {
31262
31270
  return Er(i.shape, r.initialAccumulatorValue).variable(!1);
31263
31271
  }) });
@@ -31267,7 +31275,7 @@ var ET = function(e) {
31267
31275
  Re(function() {
31268
31276
  var l = u.add(s.square());
31269
31277
  u.assign(l);
31270
- var c = s.div(l.add(j.backend.epsilon()).sqrt()).mul(-r.learningRate).add(i);
31278
+ var c = s.div(l.add(U.backend.epsilon()).sqrt()).mul(-r.learningRate).add(i);
31271
31279
  i.assign(c);
31272
31280
  });
31273
31281
  }
@@ -31315,7 +31323,7 @@ var RT = function(e) {
31315
31323
  var i = e.call(this) || this;
31316
31324
  return i.learningRate = t, i.beta1 = r, i.beta2 = o, i.epsilon = a, i.accumulatedFirstMoment = [], i.accumulatedSecondMoment = [], Re(function() {
31317
31325
  i.accBeta1 = we(r).variable(), i.accBeta2 = we(o).variable();
31318
- }), a == null && (i.epsilon = j.backend.epsilon()), i;
31326
+ }), a == null && (i.epsilon = U.backend.epsilon()), i;
31319
31327
  }
31320
31328
  return pr(n, e), n.prototype.applyGradients = function(t) {
31321
31329
  var r = this, o = Array.isArray(t) ? t.map(function(a) {
@@ -31324,7 +31332,7 @@ var RT = function(e) {
31324
31332
  Re(function() {
31325
31333
  var a = sn(1, r.accBeta1), i = sn(1, r.accBeta2);
31326
31334
  o.forEach(function(s, u) {
31327
- var l = j.registeredVariables[s];
31335
+ var l = U.registeredVariables[s];
31328
31336
  r.accumulatedFirstMoment[u] == null && (r.accumulatedFirstMoment[u] = { originalName: s + "/m", variable: Re(function() {
31329
31337
  return yt(l).variable(!1);
31330
31338
  }) }), r.accumulatedSecondMoment[u] == null && (r.accumulatedSecondMoment[u] = { originalName: s + "/v", variable: Re(function() {
@@ -31390,7 +31398,7 @@ var IT = function(e) {
31390
31398
  var s = e.call(this) || this;
31391
31399
  return s.learningRate = t, s.beta1 = r, s.beta2 = o, s.epsilon = a, s.decay = i, s.accumulatedFirstMoment = [], s.accumulatedWeightedInfNorm = [], Re(function() {
31392
31400
  s.iteration = we(0).variable(), s.accBeta1 = we(r).variable();
31393
- }), a == null && (s.epsilon = j.backend.epsilon()), s;
31401
+ }), a == null && (s.epsilon = U.backend.epsilon()), s;
31394
31402
  }
31395
31403
  return pr(n, e), n.prototype.applyGradients = function(t) {
31396
31404
  var r = this, o = Array.isArray(t) ? t.map(function(a) {
@@ -31399,7 +31407,7 @@ var IT = function(e) {
31399
31407
  Re(function() {
31400
31408
  var a = sn(1, r.accBeta1), i = lr(-r.learningRate, r.iteration.mul(r.decay).add(1));
31401
31409
  o.forEach(function(s, u) {
31402
- var l = j.registeredVariables[s];
31410
+ var l = U.registeredVariables[s];
31403
31411
  r.accumulatedFirstMoment[u] == null && (r.accumulatedFirstMoment[u] = { originalName: s + "/m", variable: yt(l).variable(!1) }), r.accumulatedWeightedInfNorm[u] == null && (r.accumulatedWeightedInfNorm[u] = { originalName: s + "/v", variable: yt(l).variable(!1) });
31404
31412
  var c = Array.isArray(t) ? t[u].tensor : t[s];
31405
31413
  if (c != null) {
@@ -31447,7 +31455,7 @@ var a0 = function(e) {
31447
31455
  }) : Object.keys(t)).forEach(function(o, a) {
31448
31456
  var i = Array.isArray(t) ? t[a].tensor : t[o];
31449
31457
  if (i != null) {
31450
- var s = j.registeredVariables[o];
31458
+ var s = U.registeredVariables[o];
31451
31459
  Re(function() {
31452
31460
  var u = r.c.mul(i).add(s);
31453
31461
  s.assign(u);
@@ -31499,7 +31507,7 @@ var TT = function(e) {
31499
31507
  (Array.isArray(t) ? t.map(function(o) {
31500
31508
  return o.name;
31501
31509
  }) : Object.keys(t)).forEach(function(o, a) {
31502
- var i = j.registeredVariables[o];
31510
+ var i = U.registeredVariables[o];
31503
31511
  r.accumulations[a] == null && (r.accumulations[a] = { originalName: o + "/momentum", variable: Re(function() {
31504
31512
  return yt(i).variable(!1);
31505
31513
  }) });
@@ -31552,7 +31560,7 @@ var AT = function(e) {
31552
31560
  function n(t, r, o, a, i) {
31553
31561
  r === void 0 && (r = 0.9), o === void 0 && (o = 0), a === void 0 && (a = null), i === void 0 && (i = !1);
31554
31562
  var s = e.call(this) || this;
31555
- if (s.learningRate = t, s.decay = r, s.momentum = o, s.epsilon = a, s.accumulatedMeanSquares = [], s.accumulatedMoments = [], s.accumulatedMeanGrads = [], s.centered = i, a == null && (s.epsilon = j.backend.epsilon()), t == null) throw new Error("learningRate for RMSPropOptimizer must be defined.");
31563
+ if (s.learningRate = t, s.decay = r, s.momentum = o, s.epsilon = a, s.accumulatedMeanSquares = [], s.accumulatedMoments = [], s.accumulatedMeanGrads = [], s.centered = i, a == null && (s.epsilon = U.backend.epsilon()), t == null) throw new Error("learningRate for RMSPropOptimizer must be defined.");
31556
31564
  return s;
31557
31565
  }
31558
31566
  return pr(n, e), n.prototype.applyGradients = function(t) {
@@ -31560,7 +31568,7 @@ var AT = function(e) {
31560
31568
  (Array.isArray(t) ? t.map(function(o) {
31561
31569
  return o.name;
31562
31570
  }) : Object.keys(t)).forEach(function(o, a) {
31563
- var i = j.registeredVariables[o];
31571
+ var i = U.registeredVariables[o];
31564
31572
  r.accumulatedMeanSquares[a] == null && (r.accumulatedMeanSquares[a] = { originalName: o + "/rms", variable: Re(function() {
31565
31573
  return yt(i).variable(!1);
31566
31574
  }) }), r.accumulatedMoments[a] == null && (r.accumulatedMoments[a] = { originalName: o + "/momentum", variable: Re(function() {
@@ -32620,7 +32628,7 @@ var p0 = (
32620
32628
  }
32621
32629
  return e;
32622
32630
  }()
32623
- ), jT = (
32631
+ ), UT = (
32624
32632
  /** @class */
32625
32633
  function() {
32626
32634
  function e(n, t) {
@@ -32634,11 +32642,11 @@ var p0 = (
32634
32642
  }, e;
32635
32643
  }()
32636
32644
  );
32637
- function UT(e, n) {
32645
+ function jT(e, n) {
32638
32646
  var t = Array.isArray(n) ? n : [n];
32639
32647
  t.forEach(function(r) {
32640
32648
  var o = r instanceof Jn ? r.score : Gs(r) ? r.detection.score : void 0, a = r instanceof Jn ? r.box : Gs(r) ? r.detection.box : new Ir(r), i = o ? "" + i0(o) : void 0;
32641
- new jT(a, { label: i }).draw(e);
32649
+ new UT(a, { label: i }).draw(e);
32642
32650
  });
32643
32651
  }
32644
32652
  function v0(e) {
@@ -33105,7 +33113,7 @@ function Xn(e, n, t) {
33105
33113
  return r = ft(r, n.bias), r;
33106
33114
  });
33107
33115
  }
33108
- function jl(e, n, t) {
33116
+ function Ul(e, n, t) {
33109
33117
  return t === void 0 && (t = !1), Re(function() {
33110
33118
  var r = Ht(t ? ft(ir(e, n.conv0.filters, [2, 2], "same"), n.conv0.bias) : Xn(e, n.conv0, [2, 2])), o = Xn(r, n.conv1, [1, 1]), a = Ht(ft(r, o)), i = Xn(a, n.conv2, [1, 1]);
33111
33119
  return Ht(ft(r, ft(o, i)));
@@ -33381,7 +33389,7 @@ var C0 = (
33381
33389
  return n.prototype.forwardInput = function(t) {
33382
33390
  var r = this;
33383
33391
  return Re(function() {
33384
- return Ur(r.runNet(t));
33392
+ return jr(r.runNet(t));
33385
33393
  });
33386
33394
  }, n.prototype.forward = function(t) {
33387
33395
  return Le(this, void 0, void 0, function() {
@@ -33558,7 +33566,7 @@ function f6(e, n) {
33558
33566
  function S0(e, n, t) {
33559
33567
  return ft(ir(e, n.filters, t, "same"), n.bias);
33560
33568
  }
33561
- function Ul(e, n, t) {
33569
+ function jl(e, n, t) {
33562
33570
  t === void 0 && (t = !0);
33563
33571
  var r = t ? Ht(e) : e;
33564
33572
  return r = Xn(r, n.separable_conv0, [1, 1]), r = Xn(Ht(r), n.separable_conv1, [1, 1]), r = cn(r, [3, 3], [2, 2], "same"), r = ft(r, S0(e, n.expansion_conv, [2, 2])), r;
@@ -33581,9 +33589,9 @@ var p6 = (
33581
33589
  throw new Error("TinyXception - load model before inference");
33582
33590
  return Re(function() {
33583
33591
  var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = Mi(a, i).div(we(256)), u = Ht(S0(s, o.entry_flow.conv_in, [2, 2]));
33584
- return u = Ul(u, o.entry_flow.reduction_block_0, !1), u = Ul(u, o.entry_flow.reduction_block_1), fi(r._numMainBlocks, 0, 1).forEach(function(l) {
33592
+ return u = jl(u, o.entry_flow.reduction_block_0, !1), u = jl(u, o.entry_flow.reduction_block_1), fi(r._numMainBlocks, 0, 1).forEach(function(l) {
33585
33593
  u = h6(u, o.middle_flow["main_block_" + l]);
33586
- }), u = Ul(u, o.exit_flow.reduction_block), u = Ht(Xn(u, o.exit_flow.separable_conv, [1, 1])), u;
33594
+ }), u = jl(u, o.exit_flow.reduction_block), u = Ht(Xn(u, o.exit_flow.separable_conv, [1, 1])), u;
33587
33595
  });
33588
33596
  }, n.prototype.forward = function(t) {
33589
33597
  return Le(this, void 0, void 0, function() {
@@ -33660,7 +33668,7 @@ var g6 = (
33660
33668
  var r = this;
33661
33669
  return Re(function() {
33662
33670
  var o = r.runNet(t), a = o.age, i = o.gender;
33663
- return { age: a, gender: Ur(i) };
33671
+ return { age: a, gender: jr(i) };
33664
33672
  });
33665
33673
  }, n.prototype.forward = function(t) {
33666
33674
  return Le(this, void 0, void 0, function() {
@@ -33873,8 +33881,8 @@ var w6 = (
33873
33881
  if (!r)
33874
33882
  throw new Error("TinyFaceFeatureExtractor - load model before inference");
33875
33883
  return Re(function() {
33876
- var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(255)), s = jl(i, r.dense0, !0);
33877
- return s = jl(s, r.dense1), s = jl(s, r.dense2), s = Ai(s, [14, 14], [2, 2], "valid"), s;
33884
+ var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = Mi(o, a).div(we(255)), s = Ul(i, r.dense0, !0);
33885
+ return s = Ul(s, r.dense1), s = Ul(s, r.dense2), s = Ai(s, [14, 14], [2, 2], "valid"), s;
33878
33886
  });
33879
33887
  }, n.prototype.forward = function(t) {
33880
33888
  return Le(this, void 0, void 0, function() {
@@ -34611,13 +34619,13 @@ var W6 = 0.4, H6 = [
34611
34619
  new kt(4.30971, 7.04493),
34612
34620
  new kt(10.246, 4.59428),
34613
34621
  new kt(12.6868, 11.8741)
34614
- ], j6 = [
34622
+ ], U6 = [
34615
34623
  new kt(1.603231, 2.094468),
34616
34624
  new kt(6.041143, 7.080126),
34617
34625
  new kt(2.882459, 3.518061),
34618
34626
  new kt(4.266906, 5.178857),
34619
34627
  new kt(9.041765, 10.66308)
34620
- ], U6 = [117.001, 114.697, 97.404], G6 = "tiny_yolov2_model", K6 = "tiny_yolov2_separable_conv_model", es = function(e) {
34628
+ ], j6 = [117.001, 114.697, 97.404], G6 = "tiny_yolov2_model", K6 = "tiny_yolov2_separable_conv_model", es = function(e) {
34621
34629
  return typeof e == "number";
34622
34630
  };
34623
34631
  function X6(e) {
@@ -34865,31 +34873,31 @@ var sf = (
34865
34873
  }, n.prototype.extractBoxes = function(t, r, o) {
34866
34874
  return Le(this, void 0, void 0, function() {
34867
34875
  var a, i, s, u, l, c, d, f, h, p, m, v, y, b, w, g, x, _, E, R, C, S, M, I, $, D, F, V, L, q = this;
34868
- return qe(this, function(U) {
34869
- switch (U.label) {
34876
+ return qe(this, function(j) {
34877
+ switch (j.label) {
34870
34878
  case 0:
34871
34879
  return a = r.width, i = r.height, s = Math.max(a, i), u = s / a, l = s / i, c = t.shape[1], d = this.config.anchors.length, f = Re(function() {
34872
- var G = t.reshape([c, c, d, q.boxEncodingSize]), O = G.slice([0, 0, 0, 0], [c, c, d, 4]), N = G.slice([0, 0, 0, 4], [c, c, d, 1]), Y = q.withClassScores ? Ur(G.slice([0, 0, 0, 5], [c, c, d, q.config.classes.length]), 3) : we(0);
34880
+ var G = t.reshape([c, c, d, q.boxEncodingSize]), O = G.slice([0, 0, 0, 0], [c, c, d, 4]), N = G.slice([0, 0, 0, 4], [c, c, d, 1]), Y = q.withClassScores ? jr(G.slice([0, 0, 0, 5], [c, c, d, q.config.classes.length]), 3) : we(0);
34873
34881
  return [O, N, Y];
34874
34882
  }), h = f[0], p = f[1], m = f[2], v = [], [4, p.array()];
34875
34883
  case 1:
34876
- return y = U.sent(), [4, h.array()];
34884
+ return y = j.sent(), [4, h.array()];
34877
34885
  case 2:
34878
- b = U.sent(), w = 0, U.label = 3;
34886
+ b = j.sent(), w = 0, j.label = 3;
34879
34887
  case 3:
34880
34888
  if (!(w < c)) return [3, 12];
34881
- g = 0, U.label = 4;
34889
+ g = 0, j.label = 4;
34882
34890
  case 4:
34883
34891
  if (!(g < c)) return [3, 11];
34884
- x = 0, U.label = 5;
34892
+ x = 0, j.label = 5;
34885
34893
  case 5:
34886
34894
  return x < d ? (_ = Hl(y[w][g][x][0]), !o || _ > o ? (E = (g + Hl(b[w][g][x][0])) / c * u, R = (w + Hl(b[w][g][x][1])) / c * l, C = Math.exp(b[w][g][x][2]) * this.config.anchors[x].x / c * u, S = Math.exp(b[w][g][x][3]) * this.config.anchors[x].y / c * l, M = E - C / 2, I = R - S / 2, $ = { row: w, col: g, anchor: x }, this.withClassScores ? [4, this.extractPredictedClass(m, $)] : [3, 7]) : [3, 9]) : [3, 10];
34887
34895
  case 6:
34888
- return L = U.sent(), [3, 8];
34896
+ return L = j.sent(), [3, 8];
34889
34897
  case 7:
34890
- L = { classScore: 1, label: 0 }, U.label = 8;
34898
+ L = { classScore: 1, label: 0 }, j.label = 8;
34891
34899
  case 8:
34892
- D = L, F = D.classScore, V = D.label, v.push(Sn({ box: new ku(M, I, M + C, I + S), score: _, classScore: _ * F, label: V }, $)), U.label = 9;
34900
+ D = L, F = D.classScore, V = D.label, v.push(Sn({ box: new ku(M, I, M + C, I + S), score: _, classScore: _ * F, label: V }, $)), j.label = 9;
34893
34901
  case 9:
34894
34902
  return x++, [3, 5];
34895
34903
  case 10:
@@ -34945,8 +34953,8 @@ var sf = (
34945
34953
  iouThreshold: W6,
34946
34954
  classes: ["face"]
34947
34955
  }, t ? {
34948
- anchors: j6,
34949
- meanRgb: U6
34956
+ anchors: U6,
34957
+ meanRgb: j6
34950
34958
  } : {
34951
34959
  anchors: H6,
34952
34960
  withClassScores: !0
@@ -35185,7 +35193,7 @@ function cf(e, n, t) {
35185
35193
  }
35186
35194
  function sA(e, n) {
35187
35195
  return Re(function() {
35188
- var t = cf(e, n, !0), r = dr(t, n.conv4_1, "valid"), o = nr(wu(r, 3), 3), a = Ur(sn(r, o), 3), i = dr(t, n.conv4_2, "valid");
35196
+ var t = cf(e, n, !0), r = dr(t, n.conv4_1, "valid"), o = nr(wu(r, 3), 3), a = jr(sn(r, o), 3), i = dr(t, n.conv4_2, "valid");
35189
35197
  return { prob: a, regions: i };
35190
35198
  });
35191
35199
  }
@@ -35293,7 +35301,7 @@ function L0(e, n, t) {
35293
35301
  }
35294
35302
  function dA(e, n) {
35295
35303
  return Re(function() {
35296
- var t = cf(e, n), r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Cr(r, n.fc1), a = ya(o, n.prelu4_alpha), i = Cr(a, n.fc2_1), s = nr(wu(i, 1), 1), u = Ur(sn(i, s), 1), l = Cr(a, n.fc2_2), c = on(u, 1)[1];
35304
+ var t = cf(e, n), r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Cr(r, n.fc1), a = ya(o, n.prelu4_alpha), i = Cr(a, n.fc2_1), s = nr(wu(i, 1), 1), u = jr(sn(i, s), 1), l = Cr(a, n.fc2_2), c = on(u, 1)[1];
35297
35305
  return { scores: c, regions: l };
35298
35306
  });
35299
35307
  }
@@ -35344,7 +35352,7 @@ function hA(e, n) {
35344
35352
  return Re(function() {
35345
35353
  var t = cf(e, n);
35346
35354
  t = cn(t, [2, 2], [2, 2], "same"), t = dr(t, n.conv4, "valid"), t = ya(t, n.prelu4_alpha);
35347
- var r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Cr(r, n.fc1), a = ya(o, n.prelu5_alpha), i = Cr(a, n.fc2_1), s = nr(wu(i, 1), 1), u = Ur(sn(i, s), 1), l = Cr(a, n.fc2_2), c = Cr(a, n.fc2_3), d = on(u, 1)[1];
35355
+ var r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Cr(r, n.fc1), a = ya(o, n.prelu5_alpha), i = Cr(a, n.fc2_1), s = nr(wu(i, 1), 1), u = jr(sn(i, s), 1), l = Cr(a, n.fc2_2), c = Cr(a, n.fc2_3), d = on(u, 1)[1];
35348
35356
  return { scores: d, regions: l, points: c };
35349
35357
  });
35350
35358
  }
@@ -36208,7 +36216,7 @@ class EA {
36208
36216
  width: o,
36209
36217
  height: a
36210
36218
  });
36211
- r.clearRect(0, 0, o, a), UT(n, i), u6(n, i);
36219
+ r.clearRect(0, 0, o, a), jT(n, i), u6(n, i);
36212
36220
  }
36213
36221
  async getFaceSnapshot(n, t) {
36214
36222
  const r = [new Su(t.x, t.y, t.width, t.height)], o = await Iu(n, r);
@@ -36328,7 +36336,7 @@ export {
36328
36336
  HA as AppConfirmDialog,
36329
36337
  AA as AppDatePicker,
36330
36338
  MA as AppDatepicker,
36331
- jA as AppDropdown,
36339
+ UA as AppDropdown,
36332
36340
  PA as AppInput,
36333
36341
  Yy as AppInputNew,
36334
36342
  BA as AppInputSearch,
@@ -36343,7 +36351,7 @@ export {
36343
36351
  zA as AppSidebar,
36344
36352
  tk as AppTable,
36345
36353
  GA as AppTableLayout,
36346
- UA as AppTableModal,
36354
+ jA as AppTableModal,
36347
36355
  K_ as AppTablePagination,
36348
36356
  Y_ as AppTableSearch,
36349
36357
  $A as AppToggle,