shared-ritm 1.3.43 → 1.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/shared-ritm.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var a1 = Object.defineProperty;
|
|
2
2
|
var i1 = (e, n, t) => n in e ? a1(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
-
var
|
|
4
|
-
import { markRaw as Xp, defineComponent as Dt, reactive as da, h as I, withDirectives as Jn, computed as _, ref as X, getCurrentInstance as Xe, nextTick as Ct, watch as me, onMounted as vn, onBeforeUnmount as At, onUnmounted as Qp, Teleport as s1, onDeactivated as po, unref as An, Transition as jn, useCssVars as Oa, createBlock as Ae, openBlock as Y, mergeProps as Cs, withCtx as pe, renderSlot as $t, createCommentVNode as We, createTextVNode as Wt, toDisplayString as pt, toRaw as eo, normalizeClass as Ue, createElementBlock as ye, createVNode as xe, createElementVNode as fe, onBeforeUpdate as Zp, inject as fo, onActivated as Na, mergeModels as si, useModel as
|
|
3
|
+
var Uu = (e, n, t) => i1(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { markRaw as Xp, defineComponent as Dt, reactive as da, h as I, withDirectives as Jn, computed as _, ref as X, getCurrentInstance as Xe, nextTick as Ct, watch as me, onMounted as vn, onBeforeUnmount as At, onUnmounted as Qp, Teleport as s1, onDeactivated as po, unref as An, Transition as jn, useCssVars as Oa, createBlock as Ae, openBlock as Y, mergeProps as Cs, withCtx as pe, renderSlot as $t, createCommentVNode as We, createTextVNode as Wt, toDisplayString as pt, toRaw as eo, normalizeClass as Ue, createElementBlock as ye, createVNode as xe, createElementVNode as fe, onBeforeUpdate as Zp, inject as fo, onActivated as Na, mergeModels as si, useModel as Kc, createSlots as La, provide as au, normalizeStyle as so, getCurrentScope as u1, onScopeDispose as l1, createStaticVNode as fr, resolveDynamicComponent as c1, Fragment as hr, renderList as Wr, vShow as Jp, onBeforeMount as Yc, onUpdated as d1, useSlots as iu, shallowReactive as f1, resolveComponent as h1, withModifiers as Ao, normalizeProps as Pf, toHandlers as p1 } from "vue";
|
|
5
5
|
function Gn(e, n, t, r) {
|
|
6
6
|
return Object.defineProperty(e, n, {
|
|
7
7
|
get: t,
|
|
@@ -17,7 +17,7 @@ function v1(e, n) {
|
|
|
17
17
|
function je(e) {
|
|
18
18
|
return Xp(Dt(e));
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Xc(e) {
|
|
21
21
|
return Xp(e);
|
|
22
22
|
}
|
|
23
23
|
const m1 = (e, n) => {
|
|
@@ -36,7 +36,7 @@ const m1 = (e, n) => {
|
|
|
36
36
|
function kt(e, n) {
|
|
37
37
|
return e !== void 0 && e() || n;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Qc(e, n) {
|
|
40
40
|
if (e !== void 0) {
|
|
41
41
|
const t = e();
|
|
42
42
|
if (t != null)
|
|
@@ -50,7 +50,7 @@ function On(e, n) {
|
|
|
50
50
|
function g1(e, n) {
|
|
51
51
|
return e === void 0 ? n : n !== void 0 ? n.concat(e()) : e();
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ac(e, n, t, r, o, a) {
|
|
54
54
|
n.key = r + o;
|
|
55
55
|
const i = I(e, n, t);
|
|
56
56
|
return o === !0 ? Jn(i, a()) : i;
|
|
@@ -86,7 +86,7 @@ const y1 = ["top", "middle", "bottom"], ev = je({
|
|
|
86
86
|
}), Lo = X(
|
|
87
87
|
!1
|
|
88
88
|
);
|
|
89
|
-
let
|
|
89
|
+
let ic;
|
|
90
90
|
function b1(e, n) {
|
|
91
91
|
const t = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
|
|
92
92
|
return {
|
|
@@ -141,7 +141,7 @@ function x1(e) {
|
|
|
141
141
|
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
142
142
|
o.bex = !0;
|
|
143
143
|
else {
|
|
144
|
-
if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"), Lo.value === !0 && (
|
|
144
|
+
if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"), Lo.value === !0 && (ic = { is: { ...o } }), tv === !0 && o.mac === !0 && (o.desktop === !0 && o.safari === !0 || o.nativeMobile === !0 && o.android !== !0 && o.ios !== !0 && o.ipad !== !0)) {
|
|
145
145
|
delete o.mac, delete o.desktop;
|
|
146
146
|
const i = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
147
147
|
Object.assign(o, {
|
|
@@ -170,7 +170,7 @@ const Bf = navigator.userAgent || navigator.vendor || window.opera, C1 = {
|
|
|
170
170
|
within: {
|
|
171
171
|
iframe: window.self !== window.top
|
|
172
172
|
}
|
|
173
|
-
},
|
|
173
|
+
}, sc = {
|
|
174
174
|
install(e) {
|
|
175
175
|
const { $q: n } = e;
|
|
176
176
|
Lo.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
@@ -189,12 +189,12 @@ const Bf = navigator.userAgent || navigator.vendor || window.opera, C1 = {
|
|
|
189
189
|
} catch {
|
|
190
190
|
}
|
|
191
191
|
return e = !1, !1;
|
|
192
|
-
}), Object.assign(
|
|
192
|
+
}), Object.assign(sc, rn), Lo.value === !0 && (Object.assign(sc, ic, C1), ic = null);
|
|
193
193
|
}
|
|
194
194
|
function ks() {
|
|
195
195
|
if (window.getSelection !== void 0) {
|
|
196
196
|
const e = window.getSelection();
|
|
197
|
-
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(),
|
|
197
|
+
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), sc.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
198
198
|
} else document.selection !== void 0 && document.selection.empty();
|
|
199
199
|
}
|
|
200
200
|
const Qt = {
|
|
@@ -250,7 +250,7 @@ function En(e) {
|
|
|
250
250
|
function Tt(e) {
|
|
251
251
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function ju(e, n) {
|
|
254
254
|
if (e === void 0 || n === !0 && e.__dragPrevented === !0)
|
|
255
255
|
return;
|
|
256
256
|
const t = n === !0 ? (r) => {
|
|
@@ -289,7 +289,7 @@ const nv = {
|
|
|
289
289
|
...nv,
|
|
290
290
|
contextMenu: Boolean
|
|
291
291
|
};
|
|
292
|
-
function
|
|
292
|
+
function Zc({
|
|
293
293
|
showing: e,
|
|
294
294
|
avoidEmit: n,
|
|
295
295
|
// required for QPopupProxy (true)
|
|
@@ -416,7 +416,7 @@ function ds(e) {
|
|
|
416
416
|
n = n.parent;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Jc(e) {
|
|
420
420
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
421
421
|
}
|
|
422
422
|
function lu(e) {
|
|
@@ -475,7 +475,7 @@ function Ci({
|
|
|
475
475
|
function v(w) {
|
|
476
476
|
s.disable === !0 && w === !0 ? s["onUpdate:modelValue"] !== void 0 && u("update:modelValue", !1) : w === !0 !== e.value && (w === !0 ? h : m)(c);
|
|
477
477
|
}
|
|
478
|
-
me(() => s.modelValue, v), t !== void 0 &&
|
|
478
|
+
me(() => s.modelValue, v), t !== void 0 && Jc(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 P1(e) {
|
|
|
558
558
|
}
|
|
559
559
|
return !1;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function ed(e, n, t, r) {
|
|
562
562
|
const o = X(!1), a = X(!1);
|
|
563
563
|
let i = null;
|
|
564
564
|
const s = {}, u = r === "dialog" && P1(e);
|
|
@@ -599,7 +599,7 @@ const pa = {
|
|
|
599
599
|
default: 300
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function td(e, n = () => {
|
|
603
603
|
}, t = () => {
|
|
604
604
|
}) {
|
|
605
605
|
return {
|
|
@@ -648,7 +648,7 @@ function Ea() {
|
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function uc(e, n) {
|
|
652
652
|
const t = e.style;
|
|
653
653
|
for (const r in n)
|
|
654
654
|
t[r] = n[r];
|
|
@@ -684,42 +684,42 @@ function du(e, n) {
|
|
|
684
684
|
}
|
|
685
685
|
return O1.includes(t) ? window : t;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function nd(e) {
|
|
688
688
|
return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function rd(e) {
|
|
691
691
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
692
692
|
}
|
|
693
693
|
function uv(e, n, t = 0) {
|
|
694
|
-
const r = arguments[3] === void 0 ? performance.now() : arguments[3], o =
|
|
694
|
+
const r = arguments[3] === void 0 ? performance.now() : arguments[3], o = nd(e);
|
|
695
695
|
if (t <= 0) {
|
|
696
|
-
o !== n &&
|
|
696
|
+
o !== n && lc(e, n);
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
699
|
requestAnimationFrame((a) => {
|
|
700
700
|
const i = a - r, s = o + (n - o) / Math.max(i, t) * i;
|
|
701
|
-
|
|
701
|
+
lc(e, s), s !== n && uv(e, n, t - i, a);
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
function lv(e, n, t = 0) {
|
|
705
|
-
const r = arguments[3] === void 0 ? performance.now() : arguments[3], o =
|
|
705
|
+
const r = arguments[3] === void 0 ? performance.now() : arguments[3], o = rd(e);
|
|
706
706
|
if (t <= 0) {
|
|
707
|
-
o !== n &&
|
|
707
|
+
o !== n && cc(e, n);
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
710
|
requestAnimationFrame((a) => {
|
|
711
711
|
const i = a - r, s = o + (n - o) / Math.max(i, t) * i;
|
|
712
|
-
|
|
712
|
+
cc(e, s), s !== n && lv(e, n, t - i, a);
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function lc(e, n) {
|
|
716
716
|
if (e === window) {
|
|
717
717
|
window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, n);
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
720
|
e.scrollTop = n;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function cc(e, n) {
|
|
723
723
|
if (e === window) {
|
|
724
724
|
window.scrollTo(n, window.pageYOffset || window.scrollY || document.body.scrollTop || 0);
|
|
725
725
|
return;
|
|
@@ -731,24 +731,24 @@ function Lf(e, n, t) {
|
|
|
731
731
|
uv(e, n, t);
|
|
732
732
|
return;
|
|
733
733
|
}
|
|
734
|
-
|
|
734
|
+
lc(e, n);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Gu(e, n, t) {
|
|
737
737
|
if (t) {
|
|
738
738
|
lv(e, n, t);
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
|
-
|
|
741
|
+
cc(e, n);
|
|
742
742
|
}
|
|
743
743
|
let zi;
|
|
744
744
|
function fs() {
|
|
745
745
|
if (zi !== void 0)
|
|
746
746
|
return zi;
|
|
747
747
|
const e = document.createElement("p"), n = document.createElement("div");
|
|
748
|
-
|
|
748
|
+
uc(e, {
|
|
749
749
|
width: "100%",
|
|
750
750
|
height: "200px"
|
|
751
|
-
}),
|
|
751
|
+
}), uc(n, {
|
|
752
752
|
position: "absolute",
|
|
753
753
|
top: "0px",
|
|
754
754
|
left: "0px",
|
|
@@ -804,20 +804,20 @@ function Rs(e) {
|
|
|
804
804
|
function dv(e) {
|
|
805
805
|
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
806
806
|
}
|
|
807
|
-
const
|
|
807
|
+
const dc = {
|
|
808
808
|
"start#ltr": "left",
|
|
809
809
|
"start#rtl": "right",
|
|
810
810
|
"end#ltr": "right",
|
|
811
811
|
"end#rtl": "left"
|
|
812
812
|
};
|
|
813
813
|
["left", "middle", "right"].forEach((e) => {
|
|
814
|
-
|
|
814
|
+
dc[`${e}#ltr`] = e, dc[`${e}#rtl`] = e;
|
|
815
815
|
});
|
|
816
816
|
function Is(e, n) {
|
|
817
817
|
const t = e.split(" ");
|
|
818
818
|
return {
|
|
819
819
|
vertical: t[0],
|
|
820
|
-
horizontal:
|
|
820
|
+
horizontal: dc[`${t[1]}#${n === !0 ? "rtl" : "ltr"}`]
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
823
|
function L1(e, n) {
|
|
@@ -862,11 +862,11 @@ function zf(e, n, t, r) {
|
|
|
862
862
|
left: e[t.horizontal] - n[r.horizontal]
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function od(e, n = 0) {
|
|
866
866
|
if (e.targetEl === null || e.anchorEl === null || n > 5) return;
|
|
867
867
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
868
868
|
setTimeout(() => {
|
|
869
|
-
|
|
869
|
+
od(e, n + 1);
|
|
870
870
|
}, 10);
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
@@ -902,10 +902,10 @@ function rd(e, n = 0) {
|
|
|
902
902
|
const g = V1(y, w);
|
|
903
903
|
let x = zf(p, g, a, i);
|
|
904
904
|
if (s === void 0 || r === void 0)
|
|
905
|
-
|
|
905
|
+
Ku(x, p, g, a, i);
|
|
906
906
|
else {
|
|
907
907
|
const { top: C, left: S } = x;
|
|
908
|
-
|
|
908
|
+
Ku(x, p, g, a, i);
|
|
909
909
|
let E = !1;
|
|
910
910
|
if (x.top !== C) {
|
|
911
911
|
E = !0;
|
|
@@ -917,14 +917,14 @@ function rd(e, n = 0) {
|
|
|
917
917
|
const R = 2 * r[0];
|
|
918
918
|
p.middle = p.left -= R, p.right -= R + 2;
|
|
919
919
|
}
|
|
920
|
-
E === !0 && (x = zf(p, g, a, i),
|
|
920
|
+
E === !0 && (x = zf(p, g, a, i), Ku(x, p, g, a, i));
|
|
921
921
|
}
|
|
922
922
|
b = {
|
|
923
923
|
top: x.top + "px",
|
|
924
924
|
left: x.left + "px"
|
|
925
925
|
}, x.maxHeight !== void 0 && (b.maxHeight = x.maxHeight + "px", p.height > x.maxHeight && (b.minHeight = b.maxHeight)), x.maxWidth !== void 0 && (b.maxWidth = x.maxWidth + "px", p.width > x.maxWidth && (b.minWidth = b.maxWidth)), Object.assign(t.style, b), t.scrollTop !== h && (t.scrollTop = h), t.scrollLeft !== f && (t.scrollLeft = f);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Ku(e, n, t, r, o) {
|
|
928
928
|
const a = t.bottom, i = t.right, s = fs(), u = window.innerHeight - s, l = document.body.clientWidth;
|
|
929
929
|
if (e.top < 0 || e.top + a > u)
|
|
930
930
|
if (o.vertical === "center")
|
|
@@ -1009,7 +1009,7 @@ const Ts = je({
|
|
|
1009
1009
|
],
|
|
1010
1010
|
setup(e, { slots: n, emit: t, attrs: r }) {
|
|
1011
1011
|
let o, a;
|
|
1012
|
-
const i = Xe(), { proxy: { $q: s } } = i, u = X(null), l = X(!1), c = _(() => Is(e.anchor, s.lang.rtl)), d = _(() => Is(e.self, s.lang.rtl)), f = _(() => e.persistent !== !0), { registerTick: h, removeTick: p } = va(), { registerTimeout: m } = Ea(), { transitionProps: v, transitionStyle: y } =
|
|
1012
|
+
const i = Xe(), { proxy: { $q: s } } = i, u = X(null), l = X(!1), c = _(() => Is(e.anchor, s.lang.rtl)), d = _(() => Is(e.self, s.lang.rtl)), f = _(() => e.persistent !== !0), { registerTick: h, removeTick: p } = va(), { registerTimeout: m } = Ea(), { transitionProps: v, transitionStyle: y } = td(e), { localScrollTarget: w, changeScrollEvent: b, unconfigureScrollTarget: g } = ov(e, K), { anchorEl: x, canShow: C, anchorEvents: S } = Zc({ showing: l, configureAnchorEl: H }), { show: E, hide: R } = Ci({
|
|
1013
1013
|
showing: l,
|
|
1014
1014
|
canShow: C,
|
|
1015
1015
|
handleShow: q,
|
|
@@ -1018,7 +1018,7 @@ const Ts = je({
|
|
|
1018
1018
|
processOnMount: !0
|
|
1019
1019
|
});
|
|
1020
1020
|
Object.assign(S, { delayShow: F, delayHide: P });
|
|
1021
|
-
const { showPortal: k, hidePortal: T, renderPortal: A } =
|
|
1021
|
+
const { showPortal: k, hidePortal: T, renderPortal: A } = ed(i, u, V, "tooltip");
|
|
1022
1022
|
if (s.platform.is.mobile === !0) {
|
|
1023
1023
|
const G = {
|
|
1024
1024
|
anchorEl: x,
|
|
@@ -1058,7 +1058,7 @@ const Ts = je({
|
|
|
1058
1058
|
a !== void 0 && (a.disconnect(), a = void 0), o !== void 0 && (o(), o = void 0), g(), Do(S, "tooltipTemp");
|
|
1059
1059
|
}
|
|
1060
1060
|
function z() {
|
|
1061
|
-
|
|
1061
|
+
od({
|
|
1062
1062
|
targetEl: u.value,
|
|
1063
1063
|
offset: e.offset,
|
|
1064
1064
|
anchorEl: x.value,
|
|
@@ -1122,7 +1122,7 @@ const Ts = je({
|
|
|
1122
1122
|
}
|
|
1123
1123
|
return At(O), Object.assign(i.proxy, { updatePosition: z }), A;
|
|
1124
1124
|
}
|
|
1125
|
-
}),
|
|
1125
|
+
}), fc = {
|
|
1126
1126
|
xs: 18,
|
|
1127
1127
|
sm: 24,
|
|
1128
1128
|
md: 32,
|
|
@@ -1131,22 +1131,22 @@ const Ts = je({
|
|
|
1131
1131
|
}, qa = {
|
|
1132
1132
|
size: String
|
|
1133
1133
|
};
|
|
1134
|
-
function Va(e, n =
|
|
1134
|
+
function Va(e, n = fc) {
|
|
1135
1135
|
return _(() => e.size !== void 0 ? { fontSize: e.size in n ? `${n[e.size]}px` : e.size } : null);
|
|
1136
1136
|
}
|
|
1137
|
-
const $f = "0 0 24 24",
|
|
1137
|
+
const $f = "0 0 24 24", Yu = (e) => e, Xu = (e) => `ionicons ${e}`, fv = {
|
|
1138
1138
|
"mdi-": (e) => `mdi ${e}`,
|
|
1139
|
-
"icon-":
|
|
1139
|
+
"icon-": Yu,
|
|
1140
1140
|
// fontawesome equiv
|
|
1141
1141
|
"bt-": (e) => `bt ${e}`,
|
|
1142
1142
|
"eva-": (e) => `eva ${e}`,
|
|
1143
|
-
"ion-md":
|
|
1144
|
-
"ion-ios":
|
|
1145
|
-
"ion-logo":
|
|
1146
|
-
"iconfont ":
|
|
1143
|
+
"ion-md": Xu,
|
|
1144
|
+
"ion-ios": Xu,
|
|
1145
|
+
"ion-logo": Xu,
|
|
1146
|
+
"iconfont ": Yu,
|
|
1147
1147
|
"ti-": (e) => `themify-icon ${e}`,
|
|
1148
1148
|
"bi-": (e) => `bootstrap-icons ${e}`,
|
|
1149
|
-
"i-":
|
|
1149
|
+
"i-": Yu
|
|
1150
1150
|
// UnoCSS pure icons
|
|
1151
1151
|
}, hv = {
|
|
1152
1152
|
o_: "-outlined",
|
|
@@ -1257,32 +1257,32 @@ const $f = "0 0 24 24", Ku = (e) => e, Yu = (e) => `ionicons ${e}`, fv = {
|
|
|
1257
1257
|
])));
|
|
1258
1258
|
};
|
|
1259
1259
|
}
|
|
1260
|
-
}),
|
|
1260
|
+
}), ad = {
|
|
1261
1261
|
size: {
|
|
1262
1262
|
type: [String, Number],
|
|
1263
1263
|
default: "1em"
|
|
1264
1264
|
},
|
|
1265
1265
|
color: String
|
|
1266
1266
|
};
|
|
1267
|
-
function
|
|
1267
|
+
function id(e) {
|
|
1268
1268
|
return {
|
|
1269
|
-
cSize: _(() => e.size in
|
|
1269
|
+
cSize: _(() => e.size in fc ? `${fc[e.size]}px` : e.size),
|
|
1270
1270
|
classes: _(
|
|
1271
1271
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
1272
1272
|
)
|
|
1273
1273
|
};
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const sd = je({
|
|
1276
1276
|
name: "QSpinner",
|
|
1277
1277
|
props: {
|
|
1278
|
-
...
|
|
1278
|
+
...ad,
|
|
1279
1279
|
thickness: {
|
|
1280
1280
|
type: Number,
|
|
1281
1281
|
default: 5
|
|
1282
1282
|
}
|
|
1283
1283
|
},
|
|
1284
1284
|
setup(e) {
|
|
1285
|
-
const { cSize: n, classes: t } =
|
|
1285
|
+
const { cSize: n, classes: t } = id(e);
|
|
1286
1286
|
return () => I("svg", {
|
|
1287
1287
|
class: t.value + " q-spinner-mat",
|
|
1288
1288
|
width: n.value,
|
|
@@ -1316,7 +1316,7 @@ function Hf(e, n, t, r) {
|
|
|
1316
1316
|
let a = t.modifiers.center;
|
|
1317
1317
|
a = a === !0 || r === !0;
|
|
1318
1318
|
const i = document.createElement("span"), s = document.createElement("span"), u = Sa(e), { left: l, top: c, width: d, height: f } = n.getBoundingClientRect(), h = Math.sqrt(d * d + f * f), p = h / 2, m = `${(d - h) / 2}px`, v = a ? m : `${u.left - l - p}px`, y = `${(f - h) / 2}px`, w = a ? y : `${u.top - c - p}px`;
|
|
1319
|
-
s.className = "q-ripple__inner",
|
|
1319
|
+
s.className = "q-ripple__inner", uc(s, {
|
|
1320
1320
|
height: `${h}px`,
|
|
1321
1321
|
width: `${h}px`,
|
|
1322
1322
|
transform: `translate3d(${v},${w},0) scale3d(.2,.2,1)`,
|
|
@@ -1344,7 +1344,7 @@ function Uf(e, { modifiers: n, value: t, arg: r }) {
|
|
|
1344
1344
|
keyCodes: [].concat(o.keyCodes || 13)
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
const _i =
|
|
1347
|
+
const _i = Xc(
|
|
1348
1348
|
{
|
|
1349
1349
|
name: "ripple",
|
|
1350
1350
|
beforeMount(e, n) {
|
|
@@ -1442,7 +1442,7 @@ const yv = {
|
|
|
1442
1442
|
target: String,
|
|
1443
1443
|
// state
|
|
1444
1444
|
disable: Boolean
|
|
1445
|
-
},
|
|
1445
|
+
}, ud = {
|
|
1446
1446
|
...yv,
|
|
1447
1447
|
// router-link
|
|
1448
1448
|
exact: Boolean,
|
|
@@ -1456,7 +1456,7 @@ const yv = {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
};
|
|
1458
1458
|
function bv({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
|
|
1459
|
-
const t = Xe(), { props: r, proxy: o, emit: a } = t, i =
|
|
1459
|
+
const t = Xe(), { props: r, proxy: o, emit: a } = t, i = Jc(t), s = _(() => r.disable !== !0 && r.href !== void 0), u = n === !0 ? _(
|
|
1460
1460
|
() => i === !0 && r.disable !== !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
|
|
1461
1461
|
) : _(
|
|
1462
1462
|
() => i === !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
|
|
@@ -1557,7 +1557,7 @@ function ry(e) {
|
|
|
1557
1557
|
const n = wv(e);
|
|
1558
1558
|
return n !== void 0 ? { [n]: !0 } : {};
|
|
1559
1559
|
}
|
|
1560
|
-
const
|
|
1560
|
+
const ld = {
|
|
1561
1561
|
...qa,
|
|
1562
1562
|
...yv,
|
|
1563
1563
|
type: {
|
|
@@ -1600,7 +1600,7 @@ const ud = {
|
|
|
1600
1600
|
},
|
|
1601
1601
|
disable: Boolean
|
|
1602
1602
|
}, oy = {
|
|
1603
|
-
...
|
|
1603
|
+
...ld,
|
|
1604
1604
|
round: Boolean
|
|
1605
1605
|
};
|
|
1606
1606
|
function ay(e) {
|
|
@@ -1804,7 +1804,7 @@ const Et = je({
|
|
|
1804
1804
|
I("span", {
|
|
1805
1805
|
key: "loading",
|
|
1806
1806
|
class: "absolute-full flex flex-center"
|
|
1807
|
-
}, n.loading !== void 0 ? n.loading() : [I(
|
|
1807
|
+
}, n.loading !== void 0 ? n.loading() : [I(sd)])
|
|
1808
1808
|
] : null)
|
|
1809
1809
|
), Jn(
|
|
1810
1810
|
I(
|
|
@@ -1934,7 +1934,7 @@ const Et = je({
|
|
|
1934
1934
|
return t;
|
|
1935
1935
|
}, ly = {
|
|
1936
1936
|
$style: uy
|
|
1937
|
-
},
|
|
1937
|
+
}, hc = /* @__PURE__ */ De(iy, [["__cssModules", ly]]), xn = {
|
|
1938
1938
|
dark: {
|
|
1939
1939
|
type: Boolean,
|
|
1940
1940
|
default: null
|
|
@@ -1978,7 +1978,7 @@ function fu(e = {}) {
|
|
|
1978
1978
|
);
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function cd(e) {
|
|
1982
1982
|
return _(() => e.name || e.for);
|
|
1983
1983
|
}
|
|
1984
1984
|
const kv = {
|
|
@@ -2206,7 +2206,7 @@ const ro = [
|
|
|
2206
2206
|
3178
|
|
2207
2207
|
];
|
|
2208
2208
|
function vy(e, n, t) {
|
|
2209
|
-
return Object.prototype.toString.call(e) === "[object Date]" && (t = e.getDate(), n = e.getMonth() + 1, e = e.getFullYear()), by(
|
|
2209
|
+
return Object.prototype.toString.call(e) === "[object Date]" && (t = e.getDate(), n = e.getMonth() + 1, e = e.getFullYear()), by(dd(e, n, t));
|
|
2210
2210
|
}
|
|
2211
2211
|
function Xf(e, n, t) {
|
|
2212
2212
|
return Iv(yy(e, n, t));
|
|
@@ -2243,12 +2243,12 @@ function Rv(e, n) {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
function yy(e, n, t) {
|
|
2245
2245
|
const r = Rv(e, !0);
|
|
2246
|
-
return
|
|
2246
|
+
return dd(r.gy, 3, r.march) + (n - 1) * 31 - zt(n, 7) * (n - 7) + t - 1;
|
|
2247
2247
|
}
|
|
2248
2248
|
function by(e) {
|
|
2249
2249
|
const n = Iv(e).gy;
|
|
2250
2250
|
let t = n - 621, r, o, a;
|
|
2251
|
-
const i = Rv(t, !1), s =
|
|
2251
|
+
const i = Rv(t, !1), s = dd(n, 3, i.march);
|
|
2252
2252
|
if (a = e - s, a >= 0) {
|
|
2253
2253
|
if (a <= 185)
|
|
2254
2254
|
return o = 1 + zt(a, 31), r = Kn(a, 31) + 1, {
|
|
@@ -2265,7 +2265,7 @@ function by(e) {
|
|
|
2265
2265
|
jd: r
|
|
2266
2266
|
};
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function dd(e, n, t) {
|
|
2269
2269
|
let r = zt((e + zt(n - 8, 6) + 100100) * 1461, 4) + zt(153 * Kn(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
|
}
|
|
@@ -2444,10 +2444,10 @@ function Dv(e) {
|
|
|
2444
2444
|
function Ds(e) {
|
|
2445
2445
|
return Object.prototype.toString.call(e) === "[object Date]";
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function pc(e) {
|
|
2448
2448
|
return typeof e == "number" && isFinite(e);
|
|
2449
2449
|
}
|
|
2450
|
-
const
|
|
2450
|
+
const vc = {
|
|
2451
2451
|
isoName: "en-US",
|
|
2452
2452
|
nativeName: "English (US)",
|
|
2453
2453
|
label: {
|
|
@@ -2561,7 +2561,7 @@ const to = m1({
|
|
|
2561
2561
|
// props: object
|
|
2562
2562
|
// __langConfig: object
|
|
2563
2563
|
getLocale: Jf,
|
|
2564
|
-
set(e =
|
|
2564
|
+
set(e = vc, n) {
|
|
2565
2565
|
const t = {
|
|
2566
2566
|
...e,
|
|
2567
2567
|
rtl: e.rtl === !0,
|
|
@@ -2583,13 +2583,13 @@ const to = m1({
|
|
|
2583
2583
|
ownKeys(r) {
|
|
2584
2584
|
return Reflect.ownKeys(r).filter((o) => o !== "set" && o !== "getLocale");
|
|
2585
2585
|
}
|
|
2586
|
-
}), this.set(n ||
|
|
2586
|
+
}), this.set(n || vc));
|
|
2587
2587
|
}
|
|
2588
|
-
}), Mv = 864e5, ky = 36e5,
|
|
2588
|
+
}), Mv = 864e5, ky = 36e5, mc = 6e4, Fv = "YYYY-MM-DDTHH:mm:ss.SSSZ", _y = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, Sy = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, Qu = {};
|
|
2589
2589
|
function Ey(e, n) {
|
|
2590
2590
|
const t = "(" + n.days.join("|") + ")", r = e + t;
|
|
2591
|
-
if (
|
|
2592
|
-
return
|
|
2591
|
+
if (Qu[r] !== void 0)
|
|
2592
|
+
return Qu[r];
|
|
2593
2593
|
const o = "(" + n.daysShort.join("|") + ")", a = "(" + n.months.join("|") + ")", i = "(" + n.monthsShort.join("|") + ")", s = {};
|
|
2594
2594
|
let u = 0;
|
|
2595
2595
|
const l = e.replace(Sy, (d) => {
|
|
@@ -2677,10 +2677,10 @@ function Ey(e, n) {
|
|
|
2677
2677
|
return u--, d[0] === "[" && (d = d.substring(1, d.length - 1)), d.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2678
2678
|
}
|
|
2679
2679
|
}), c = { map: s, regex: new RegExp("^" + l) };
|
|
2680
|
-
return
|
|
2680
|
+
return Qu[r] = c, c;
|
|
2681
2681
|
}
|
|
2682
2682
|
function Pv(e, n) {
|
|
2683
|
-
return e !== void 0 ? e : n !== void 0 ? n.date :
|
|
2683
|
+
return e !== void 0 ? e : n !== void 0 ? n.date : vc.date;
|
|
2684
2684
|
}
|
|
2685
2685
|
function eh(e, n = "") {
|
|
2686
2686
|
const t = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.floor(r / 60), a = r % 60;
|
|
@@ -2689,13 +2689,13 @@ function eh(e, n = "") {
|
|
|
2689
2689
|
function Ry(e, n, t) {
|
|
2690
2690
|
let r = e.getFullYear(), o = e.getMonth();
|
|
2691
2691
|
const a = e.getDate();
|
|
2692
|
-
return n.year !== void 0 && (r += t * n.year, delete n.year), n.month !== void 0 && (o += t * n.month, delete n.month), e.setDate(1), e.setMonth(2), e.setFullYear(r), e.setMonth(o), e.setDate(Math.min(a,
|
|
2692
|
+
return n.year !== void 0 && (r += t * n.year, delete n.year), n.month !== void 0 && (o += t * n.month, delete n.month), e.setDate(1), e.setMonth(2), e.setFullYear(r), e.setMonth(o), e.setDate(Math.min(a, pd(e))), n.date !== void 0 && (e.setDate(e.getDate() + t * n.date), delete n.date), e;
|
|
2693
2693
|
}
|
|
2694
2694
|
function Iy(e, n, t) {
|
|
2695
2695
|
const r = n.year !== void 0 ? n.year : e[`get${t}FullYear`](), o = n.month !== void 0 ? n.month - 1 : e[`get${t}Month`](), a = new Date(r, o + 1, 0).getDate(), i = Math.min(a, n.date !== void 0 ? n.date : e[`get${t}Date`]());
|
|
2696
2696
|
return e[`set${t}Date`](1), e[`set${t}Month`](2), e[`set${t}FullYear`](r), e[`set${t}Month`](o), e[`set${t}Date`](i), delete n.year, delete n.month, delete n.date, e;
|
|
2697
2697
|
}
|
|
2698
|
-
function
|
|
2698
|
+
function fd(e, n, t) {
|
|
2699
2699
|
const r = Bv(n), o = new Date(e), a = r.year !== void 0 || r.month !== void 0 || r.date !== void 0 ? Ry(o, r, t) : o;
|
|
2700
2700
|
for (const i in r) {
|
|
2701
2701
|
const s = xy(i);
|
|
@@ -2725,7 +2725,7 @@ function Ty(e, n, t) {
|
|
|
2725
2725
|
r.second,
|
|
2726
2726
|
r.millisecond
|
|
2727
2727
|
), a = o.getTimezoneOffset();
|
|
2728
|
-
return r.timezoneOffset === null || r.timezoneOffset === a ? o :
|
|
2728
|
+
return r.timezoneOffset === null || r.timezoneOffset === a ? o : fd(o, { minutes: r.timezoneOffset - a }, 1);
|
|
2729
2729
|
}
|
|
2730
2730
|
function fa(e, n, t, r, o) {
|
|
2731
2731
|
const a = {
|
|
@@ -2798,19 +2798,19 @@ function ps(e) {
|
|
|
2798
2798
|
function Fy(e) {
|
|
2799
2799
|
return e.getFullYear() * 1e4 + e.getMonth() * 100 + e.getDate();
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2801
|
+
function Zu(e, n) {
|
|
2802
2802
|
const t = new Date(e);
|
|
2803
2803
|
return n === !0 ? Fy(t) : t.getTime();
|
|
2804
2804
|
}
|
|
2805
2805
|
function Py(e, n, t, r = {}) {
|
|
2806
|
-
const o =
|
|
2806
|
+
const o = Zu(n, r.onlyDate), a = Zu(t, r.onlyDate), i = Zu(e, r.onlyDate);
|
|
2807
2807
|
return (i > o || r.inclusiveFrom === !0 && i === o) && (i < a || r.inclusiveTo === !0 && i === a);
|
|
2808
2808
|
}
|
|
2809
2809
|
function By(e, n) {
|
|
2810
|
-
return
|
|
2810
|
+
return fd(e, n, 1);
|
|
2811
2811
|
}
|
|
2812
2812
|
function Oy(e, n) {
|
|
2813
|
-
return
|
|
2813
|
+
return fd(e, n, -1);
|
|
2814
2814
|
}
|
|
2815
2815
|
function wr(e, n, t) {
|
|
2816
2816
|
const r = new Date(e), o = `set${t === !0 ? "UTC" : ""}`;
|
|
@@ -2845,7 +2845,7 @@ function Ny(e, n, t) {
|
|
|
2845
2845
|
r[`${o}Month`](11);
|
|
2846
2846
|
case "month":
|
|
2847
2847
|
case "months":
|
|
2848
|
-
r[`${o}Date`](
|
|
2848
|
+
r[`${o}Date`](pd(r));
|
|
2849
2849
|
case "day":
|
|
2850
2850
|
case "days":
|
|
2851
2851
|
case "date":
|
|
@@ -2875,9 +2875,9 @@ function qy(e) {
|
|
|
2875
2875
|
}), n;
|
|
2876
2876
|
}
|
|
2877
2877
|
function $i(e, n, t) {
|
|
2878
|
-
return (e.getTime() - e.getTimezoneOffset() *
|
|
2878
|
+
return (e.getTime() - e.getTimezoneOffset() * mc - (n.getTime() - n.getTimezoneOffset() * mc)) / t;
|
|
2879
2879
|
}
|
|
2880
|
-
function
|
|
2880
|
+
function hd(e, n, t = "days") {
|
|
2881
2881
|
const r = new Date(e), o = new Date(n);
|
|
2882
2882
|
switch (t) {
|
|
2883
2883
|
case "years":
|
|
@@ -2895,14 +2895,14 @@ function fd(e, n, t = "days") {
|
|
|
2895
2895
|
return $i(wr(r, "hour"), wr(o, "hour"), ky);
|
|
2896
2896
|
case "minutes":
|
|
2897
2897
|
case "minute":
|
|
2898
|
-
return $i(wr(r, "minute"), wr(o, "minute"),
|
|
2898
|
+
return $i(wr(r, "minute"), wr(o, "minute"), mc);
|
|
2899
2899
|
case "seconds":
|
|
2900
2900
|
case "second":
|
|
2901
2901
|
return $i(wr(r, "second"), wr(o, "second"), 1e3);
|
|
2902
2902
|
}
|
|
2903
2903
|
}
|
|
2904
2904
|
function vs(e) {
|
|
2905
|
-
return
|
|
2905
|
+
return hd(e, wr(e, "year"), "days") + 1;
|
|
2906
2906
|
}
|
|
2907
2907
|
function Vy(e) {
|
|
2908
2908
|
return Ds(e) === !0 ? "date" : typeof e == "number" ? "number" : "string";
|
|
@@ -2957,7 +2957,7 @@ function $y(e, n, t) {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
return !0;
|
|
2959
2959
|
}
|
|
2960
|
-
function
|
|
2960
|
+
function pd(e) {
|
|
2961
2961
|
return new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
2962
2962
|
}
|
|
2963
2963
|
function ea(e) {
|
|
@@ -3147,7 +3147,7 @@ const th = {
|
|
|
3147
3147
|
return e.getTime();
|
|
3148
3148
|
}
|
|
3149
3149
|
};
|
|
3150
|
-
function
|
|
3150
|
+
function vd(e, n, t, r, o) {
|
|
3151
3151
|
if (e !== 0 && !e || e === 1 / 0 || e === -1 / 0) return;
|
|
3152
3152
|
const a = new Date(e);
|
|
3153
3153
|
if (isNaN(a)) return;
|
|
@@ -3175,15 +3175,15 @@ const Hy = {
|
|
|
3175
3175
|
endOfDate: Ny,
|
|
3176
3176
|
getMaxDate: Ly,
|
|
3177
3177
|
getMinDate: qy,
|
|
3178
|
-
getDateDiff:
|
|
3178
|
+
getDateDiff: hd,
|
|
3179
3179
|
getDayOfYear: vs,
|
|
3180
3180
|
inferDateFormat: Vy,
|
|
3181
3181
|
getDateBetween: zy,
|
|
3182
3182
|
isSameDate: $y,
|
|
3183
|
-
daysInMonth:
|
|
3184
|
-
formatDate:
|
|
3183
|
+
daysInMonth: pd,
|
|
3184
|
+
formatDate: vd,
|
|
3185
3185
|
clone: Wy
|
|
3186
|
-
}, Or = 20, Uy = ["Calendar", "Years", "Months"], nh = (e) => Uy.includes(e),
|
|
3186
|
+
}, Or = 20, Uy = ["Calendar", "Years", "Months"], nh = (e) => Uy.includes(e), Ju = (e) => /^-?[\d]+\/[0-1]\d$/.test(e), ta = " — ";
|
|
3187
3187
|
function Qr(e) {
|
|
3188
3188
|
return e.year + "/" + wt(e.month);
|
|
3189
3189
|
}
|
|
@@ -3209,7 +3209,7 @@ const Nv = je({
|
|
|
3209
3209
|
},
|
|
3210
3210
|
defaultYearMonth: {
|
|
3211
3211
|
type: String,
|
|
3212
|
-
validator:
|
|
3212
|
+
validator: Ju
|
|
3213
3213
|
},
|
|
3214
3214
|
yearsInMonthView: Boolean,
|
|
3215
3215
|
events: [Array, Function],
|
|
@@ -3218,11 +3218,11 @@ const Nv = je({
|
|
|
3218
3218
|
options: [Array, Function],
|
|
3219
3219
|
navigationMinYearMonth: {
|
|
3220
3220
|
type: String,
|
|
3221
|
-
validator:
|
|
3221
|
+
validator: Ju
|
|
3222
3222
|
},
|
|
3223
3223
|
navigationMaxYearMonth: {
|
|
3224
3224
|
type: String,
|
|
3225
|
-
validator:
|
|
3225
|
+
validator: Ju
|
|
3226
3226
|
},
|
|
3227
3227
|
noUnset: Boolean,
|
|
3228
3228
|
firstDayOfWeek: [String, Number],
|
|
@@ -3258,7 +3258,7 @@ const Nv = je({
|
|
|
3258
3258
|
}), H = _(() => e.calendar !== "persian" ? (N) => new Date(N.year, N.month - 1, N.day) : (N) => {
|
|
3259
3259
|
const W = Xf(N.year, N.month, N.day);
|
|
3260
3260
|
return new Date(W.gy, W.gm - 1, W.gd);
|
|
3261
|
-
}), K = _(() => e.calendar === "persian" ? Lr : (N, W, re) =>
|
|
3261
|
+
}), K = _(() => e.calendar === "persian" ? Lr : (N, W, re) => vd(
|
|
3262
3262
|
new Date(
|
|
3263
3263
|
N.year,
|
|
3264
3264
|
N.month - 1,
|
|
@@ -3274,7 +3274,7 @@ const Nv = je({
|
|
|
3274
3274
|
N.timezoneOffset
|
|
3275
3275
|
)), L = _(
|
|
3276
3276
|
() => F.value.length + P.value.reduce(
|
|
3277
|
-
(N, W) => N + 1 +
|
|
3277
|
+
(N, W) => N + 1 + hd(
|
|
3278
3278
|
H.value(W.to),
|
|
3279
3279
|
H.value(W.from)
|
|
3280
3280
|
),
|
|
@@ -4039,7 +4039,7 @@ function Lv(e, n, t) {
|
|
|
4039
4039
|
}
|
|
4040
4040
|
};
|
|
4041
4041
|
}
|
|
4042
|
-
let ja = 0,
|
|
4042
|
+
let ja = 0, el, tl, ti, nl = !1, rh, oh, ah, bo = null;
|
|
4043
4043
|
function jy(e) {
|
|
4044
4044
|
Gy(e) && Tt(e);
|
|
4045
4045
|
}
|
|
@@ -4058,8 +4058,8 @@ function ih(e) {
|
|
|
4058
4058
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
4059
4059
|
}
|
|
4060
4060
|
function Wi(e) {
|
|
4061
|
-
|
|
4062
|
-
|
|
4061
|
+
nl !== !0 && (nl = !0, requestAnimationFrame(() => {
|
|
4062
|
+
nl = !1;
|
|
4063
4063
|
const { height: n } = e.target, { clientHeight: t, scrollTop: r } = document.scrollingElement;
|
|
4064
4064
|
(ti === void 0 || n !== window.innerHeight) && (ti = t - n, document.scrollingElement.scrollTop = r), r > ti && (document.scrollingElement.scrollTop -= Math.ceil((r - ti) / 8));
|
|
4065
4065
|
}));
|
|
@@ -4068,9 +4068,9 @@ function sh(e) {
|
|
|
4068
4068
|
const n = document.body, t = window.visualViewport !== void 0;
|
|
4069
4069
|
if (e === "add") {
|
|
4070
4070
|
const { overflowY: r, overflowX: o } = window.getComputedStyle(n);
|
|
4071
|
-
|
|
4071
|
+
el = rd(window), tl = nd(window), rh = n.style.left, oh = n.style.top, ah = window.location.href, n.style.left = `-${el}px`, n.style.top = `-${tl}px`, o !== "hidden" && (o === "scroll" || n.scrollWidth > window.innerWidth) && n.classList.add("q-body--force-scrollbar-x"), r !== "hidden" && (r === "scroll" || n.scrollHeight > window.innerHeight) && n.classList.add("q-body--force-scrollbar-y"), n.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, rn.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Wi, Qt.passiveCapture), window.visualViewport.addEventListener("scroll", Wi, Qt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", ih, Qt.passiveCapture));
|
|
4072
4072
|
}
|
|
4073
|
-
rn.is.desktop === !0 && rn.is.mac === !0 && window[`${e}EventListener`]("wheel", jy, Qt.notPassive), e === "remove" && (rn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Wi, Qt.passiveCapture), window.visualViewport.removeEventListener("scroll", Wi, Qt.passiveCapture)) : window.removeEventListener("scroll", ih, Qt.passiveCapture)), n.classList.remove("q-body--prevent-scroll"), n.classList.remove("q-body--force-scrollbar-x"), n.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, n.style.left = rh, n.style.top = oh, window.location.href === ah && window.scrollTo(
|
|
4073
|
+
rn.is.desktop === !0 && rn.is.mac === !0 && window[`${e}EventListener`]("wheel", jy, Qt.notPassive), e === "remove" && (rn.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", Wi, Qt.passiveCapture), window.visualViewport.removeEventListener("scroll", Wi, Qt.passiveCapture)) : window.removeEventListener("scroll", ih, Qt.passiveCapture)), n.classList.remove("q-body--prevent-scroll"), n.classList.remove("q-body--force-scrollbar-x"), n.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, n.style.left = rh, n.style.top = oh, window.location.href === ah && window.scrollTo(el, tl), ti = void 0);
|
|
4074
4074
|
}
|
|
4075
4075
|
function Ky(e) {
|
|
4076
4076
|
let n = "add";
|
|
@@ -4127,7 +4127,7 @@ function $v(e) {
|
|
|
4127
4127
|
function Wv(e) {
|
|
4128
4128
|
rn.is.desktop === !0 && (Po.push(e), Po.length === 1 && document.body.addEventListener("focusin", $v));
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4130
|
+
function gc(e) {
|
|
4131
4131
|
const n = Po.indexOf(e);
|
|
4132
4132
|
n !== -1 && (Po.splice(n, 1), Po.length === 0 && document.body.removeEventListener("focusin", $v));
|
|
4133
4133
|
}
|
|
@@ -4186,11 +4186,11 @@ const Zy = {
|
|
|
4186
4186
|
let u = null, l = null, c, d;
|
|
4187
4187
|
const f = _(
|
|
4188
4188
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
4189
|
-
), { preventBodyScroll: h } = qv(), { registerTimeout: p } = Ea(), { registerTick: m, removeTick: v } = va(), { transitionProps: y, transitionStyle: w } =
|
|
4189
|
+
), { preventBodyScroll: h } = qv(), { registerTimeout: p } = Ea(), { registerTick: m, removeTick: v } = va(), { transitionProps: y, transitionStyle: w } = td(
|
|
4190
4190
|
e,
|
|
4191
4191
|
() => uh[e.position][0],
|
|
4192
4192
|
() => uh[e.position][1]
|
|
4193
|
-
), b = _(() => w.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: g, hidePortal: x, portalIsAccessible: C, renderPortal: S } =
|
|
4193
|
+
), b = _(() => w.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: g, hidePortal: x, portalIsAccessible: C, renderPortal: S } = ed(
|
|
4194
4194
|
o,
|
|
4195
4195
|
a,
|
|
4196
4196
|
G,
|
|
@@ -4212,7 +4212,7 @@ const Zy = {
|
|
|
4212
4212
|
me(() => e.maximized, (ne) => {
|
|
4213
4213
|
i.value === !0 && H(ne);
|
|
4214
4214
|
}), me(k, (ne) => {
|
|
4215
|
-
h(ne), ne === !0 ? (Wv(V), zv(F)) : (
|
|
4215
|
+
h(ne), ne === !0 ? (Wv(V), zv(F)) : (gc(V), Ms(F));
|
|
4216
4216
|
});
|
|
4217
4217
|
function q(ne) {
|
|
4218
4218
|
var ue;
|
|
@@ -4261,7 +4261,7 @@ const Zy = {
|
|
|
4261
4261
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && z() : (t("escapeKey"), E()));
|
|
4262
4262
|
}
|
|
4263
4263
|
function P(ne) {
|
|
4264
|
-
u !== null && (clearTimeout(u), u = null), (ne === !0 || i.value === !0) && (H(!1), e.seamless !== !0 && (h(!1),
|
|
4264
|
+
u !== null && (clearTimeout(u), u = null), (ne === !0 || i.value === !0) && (H(!1), e.seamless !== !0 && (h(!1), gc(V), Ms(F))), ne !== !0 && (l = null);
|
|
4265
4265
|
}
|
|
4266
4266
|
function H(ne) {
|
|
4267
4267
|
ne === !0 ? c !== !0 && (Hi < 1 && document.body.classList.add("q-body--dialog"), Hi++, c = !0) : c === !0 && (Hi < 2 && document.body.classList.remove("q-body--dialog"), Hi--, c = !1);
|
|
@@ -4366,14 +4366,14 @@ const Zy = {
|
|
|
4366
4366
|
let o = null, a, i, s;
|
|
4367
4367
|
const u = Xe(), { proxy: l } = u, { $q: c } = l, d = X(null), f = X(!1), h = _(
|
|
4368
4368
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
4369
|
-
), p = Cn(e, c), { registerTick: m, removeTick: v } = va(), { registerTimeout: y } = Ea(), { transitionProps: w, transitionStyle: b } =
|
|
4369
|
+
), p = Cn(e, c), { registerTick: m, removeTick: v } = va(), { registerTimeout: y } = Ea(), { transitionProps: w, transitionStyle: b } = td(e), { localScrollTarget: g, changeScrollEvent: x, unconfigureScrollTarget: C } = ov(e, G), { anchorEl: S, canShow: E } = Zc({ showing: f }), { hide: R } = Ci({
|
|
4370
4370
|
showing: f,
|
|
4371
4371
|
canShow: E,
|
|
4372
4372
|
handleShow: K,
|
|
4373
4373
|
handleHide: L,
|
|
4374
4374
|
hideOnRouteChange: h,
|
|
4375
4375
|
processOnMount: !0
|
|
4376
|
-
}), { showPortal: k, hidePortal: T, renderPortal: A } =
|
|
4376
|
+
}), { showPortal: k, hidePortal: T, renderPortal: A } = ed(u, d, we, "menu"), q = {
|
|
4377
4377
|
anchorEl: S,
|
|
4378
4378
|
innerRef: d,
|
|
4379
4379
|
onClickOutside(ae) {
|
|
@@ -4424,7 +4424,7 @@ const Zy = {
|
|
|
4424
4424
|
}, e.transitionDuration);
|
|
4425
4425
|
}
|
|
4426
4426
|
function V(ae) {
|
|
4427
|
-
a = void 0, i !== void 0 && (i(), i = void 0), (ae === !0 || f.value === !0) && (
|
|
4427
|
+
a = void 0, i !== void 0 && (i(), i = void 0), (ae === !0 || f.value === !0) && (gc(ue), C(), Es(q), Ms(ce)), ae !== !0 && (o = null);
|
|
4428
4428
|
}
|
|
4429
4429
|
function G() {
|
|
4430
4430
|
(S.value !== null || e.scrollTarget !== void 0) && (g.value = du(S.value, e.scrollTarget), x(g.value, le));
|
|
@@ -4439,7 +4439,7 @@ const Zy = {
|
|
|
4439
4439
|
e.noEscDismiss !== !0 && (t("escapeKey"), R(ae));
|
|
4440
4440
|
}
|
|
4441
4441
|
function le() {
|
|
4442
|
-
|
|
4442
|
+
od({
|
|
4443
4443
|
targetEl: d.value,
|
|
4444
4444
|
offset: e.offset,
|
|
4445
4445
|
anchorEl: S.value,
|
|
@@ -4486,7 +4486,7 @@ const Zy = {
|
|
|
4486
4486
|
},
|
|
4487
4487
|
emits: ["show", "hide"],
|
|
4488
4488
|
setup(e, { slots: n, emit: t, attrs: r }) {
|
|
4489
|
-
const { proxy: o } = Xe(), { $q: a } = o, i = X(!1), s = X(null), u = _(() => parseInt(e.breakpoint, 10)), { canShow: l } =
|
|
4489
|
+
const { proxy: o } = Xe(), { $q: a } = o, i = X(!1), s = X(null), u = _(() => parseInt(e.breakpoint, 10)), { canShow: l } = Zc({ showing: i });
|
|
4490
4490
|
function c() {
|
|
4491
4491
|
return a.screen.width < u.value || a.screen.height < u.value ? "dialog" : "menu";
|
|
4492
4492
|
}
|
|
@@ -4559,7 +4559,7 @@ const Zy = {
|
|
|
4559
4559
|
return d >= f;
|
|
4560
4560
|
}
|
|
4561
4561
|
return (i, s) => (Y(), ye("div", Jy, [
|
|
4562
|
-
xe(
|
|
4562
|
+
xe(hc, {
|
|
4563
4563
|
class: "button",
|
|
4564
4564
|
outline: "",
|
|
4565
4565
|
size: "20px",
|
|
@@ -4601,26 +4601,26 @@ const Zy = {
|
|
|
4601
4601
|
])
|
|
4602
4602
|
]));
|
|
4603
4603
|
}
|
|
4604
|
-
}), vD = /* @__PURE__ */ De(tb, [["__scopeId", "data-v-a3ab30e6"]]),
|
|
4604
|
+
}), vD = /* @__PURE__ */ De(tb, [["__scopeId", "data-v-a3ab30e6"]]), md = {
|
|
4605
4605
|
left: !0,
|
|
4606
4606
|
right: !0,
|
|
4607
4607
|
up: !0,
|
|
4608
4608
|
down: !0,
|
|
4609
4609
|
horizontal: !0,
|
|
4610
4610
|
vertical: !0
|
|
4611
|
-
}, nb = Object.keys(
|
|
4612
|
-
|
|
4611
|
+
}, nb = Object.keys(md);
|
|
4612
|
+
md.all = !0;
|
|
4613
4613
|
function lh(e) {
|
|
4614
4614
|
const n = {};
|
|
4615
4615
|
for (const t of nb)
|
|
4616
4616
|
e[t] === !0 && (n[t] = !0);
|
|
4617
|
-
return Object.keys(n).length === 0 ?
|
|
4617
|
+
return Object.keys(n).length === 0 ? md : (n.horizontal === !0 ? n.left = n.right = !0 : n.left === !0 && n.right === !0 && (n.horizontal = !0), n.vertical === !0 ? n.up = n.down = !0 : n.up === !0 && n.down === !0 && (n.vertical = !0), n.horizontal === !0 && n.vertical === !0 && (n.all = !0), n);
|
|
4618
4618
|
}
|
|
4619
4619
|
const rb = ["INPUT", "TEXTAREA"];
|
|
4620
4620
|
function ch(e, n) {
|
|
4621
4621
|
return n.event === void 0 && e.target !== void 0 && e.target.draggable !== !0 && typeof n.handler == "function" && rb.includes(e.target.nodeName.toUpperCase()) === !1 && (e.qClonedBy === void 0 || e.qClonedBy.indexOf(n.uid) === -1);
|
|
4622
4622
|
}
|
|
4623
|
-
function
|
|
4623
|
+
function rl(e, n, t) {
|
|
4624
4624
|
const r = Sa(e);
|
|
4625
4625
|
let o, a = r.left - n.event.x, i = r.top - n.event.y, s = Math.abs(a), u = Math.abs(i);
|
|
4626
4626
|
const l = n.direction;
|
|
@@ -4658,7 +4658,7 @@ function nl(e, n, t) {
|
|
|
4658
4658
|
};
|
|
4659
4659
|
}
|
|
4660
4660
|
let ob = 0;
|
|
4661
|
-
const ma =
|
|
4661
|
+
const ma = Xc(
|
|
4662
4662
|
{
|
|
4663
4663
|
name: "touch-pan",
|
|
4664
4664
|
beforeMount(e, { value: n, modifiers: t }) {
|
|
@@ -4689,7 +4689,7 @@ const ma = Yc(
|
|
|
4689
4689
|
}
|
|
4690
4690
|
},
|
|
4691
4691
|
start(a, i) {
|
|
4692
|
-
if (rn.is.firefox === !0 &&
|
|
4692
|
+
if (rn.is.firefox === !0 && ju(e, !0), o.lastEvt = a, i === !0 || t.stop === !0) {
|
|
4693
4693
|
if (o.direction.all !== !0 && (i !== !0 || o.modifiers.mouseAllDir !== !0 && o.modifiers.mousealldir !== !0)) {
|
|
4694
4694
|
const l = a.type.indexOf("mouse") !== -1 ? new MouseEvent(a.type, a) : new TouchEvent(a.type, a);
|
|
4695
4695
|
a.defaultPrevented === !0 && En(l), a.cancelBubble === !0 && Fn(l), Object.assign(l, {
|
|
@@ -4738,7 +4738,7 @@ const ma = Yc(
|
|
|
4738
4738
|
};
|
|
4739
4739
|
if (o.event.detected === !0) {
|
|
4740
4740
|
o.event.isFirst !== !0 && r(a, o.event.mouse);
|
|
4741
|
-
const { payload: h, synthetic: p } =
|
|
4741
|
+
const { payload: h, synthetic: p } = rl(a, o, !1);
|
|
4742
4742
|
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));
|
|
4743
4743
|
return;
|
|
4744
4744
|
}
|
|
@@ -4752,11 +4752,11 @@ const ma = Yc(
|
|
|
4752
4752
|
end(a, i) {
|
|
4753
4753
|
var s;
|
|
4754
4754
|
if (o.event !== void 0) {
|
|
4755
|
-
if (Do(o, "temp"), rn.is.firefox === !0 &&
|
|
4755
|
+
if (Do(o, "temp"), rn.is.firefox === !0 && ju(e, !1), i === !0)
|
|
4756
4756
|
(s = o.styleCleanup) == null || s.call(o), o.event.detected !== !0 && o.initialEvent !== void 0 && o.initialEvent.target.dispatchEvent(o.initialEvent.event);
|
|
4757
4757
|
else if (o.event.detected === !0) {
|
|
4758
|
-
o.event.isFirst === !0 && o.handler(
|
|
4759
|
-
const { payload: u } =
|
|
4758
|
+
o.event.isFirst === !0 && o.handler(rl(a === void 0 ? o.lastEvt : a, o).payload);
|
|
4759
|
+
const { payload: u } = rl(a === void 0 ? o.lastEvt : a, o, !0), l = () => {
|
|
4760
4760
|
o.handler(u);
|
|
4761
4761
|
};
|
|
4762
4762
|
o.styleCleanup !== void 0 ? o.styleCleanup(l) : l();
|
|
@@ -4784,7 +4784,7 @@ const ma = Yc(
|
|
|
4784
4784
|
beforeUnmount(e) {
|
|
4785
4785
|
var t;
|
|
4786
4786
|
const n = e.__qtouchpan;
|
|
4787
|
-
n !== void 0 && (n.event !== void 0 && n.end(), Do(n, "main"), Do(n, "temp"), rn.is.firefox === !0 &&
|
|
4787
|
+
n !== void 0 && (n.event !== void 0 && n.end(), Do(n, "main"), Do(n, "temp"), rn.is.firefox === !0 && ju(e, !1), (t = n.styleCleanup) == null || t.call(n), delete e.__qtouchpan);
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
4790
|
);
|
|
@@ -5114,7 +5114,7 @@ const sb = je({
|
|
|
5114
5114
|
g.value.hour === null || g.value.minute === null || e.withSeconds === !0 && g.value.second === null || Ke();
|
|
5115
5115
|
}
|
|
5116
5116
|
function Ke(oe) {
|
|
5117
|
-
const he = Object.assign({ ...g.value }, oe), Ve = e.calendar === "persian" ? wt(he.hour) + ":" + wt(he.minute) + (e.withSeconds === !0 ? ":" + wt(he.second) : "") :
|
|
5117
|
+
const he = Object.assign({ ...g.value }, oe), Ve = e.calendar === "persian" ? wt(he.hour) + ":" + wt(he.minute) + (e.withSeconds === !0 ? ":" + wt(he.second) : "") : vd(
|
|
5118
5118
|
new Date(
|
|
5119
5119
|
he.year,
|
|
5120
5120
|
he.month === null ? null : he.month - 1,
|
|
@@ -5253,7 +5253,7 @@ const sb = je({
|
|
|
5253
5253
|
};
|
|
5254
5254
|
}
|
|
5255
5255
|
});
|
|
5256
|
-
let
|
|
5256
|
+
let ol, Ui = 0;
|
|
5257
5257
|
const gn = new Array(256);
|
|
5258
5258
|
for (let e = 0; e < 256; e++)
|
|
5259
5259
|
gn[e] = (e + 256).toString(16).substring(1);
|
|
@@ -5276,8 +5276,8 @@ const ub = (() => {
|
|
|
5276
5276
|
};
|
|
5277
5277
|
})(), dh = 4096;
|
|
5278
5278
|
function Fs() {
|
|
5279
|
-
(
|
|
5280
|
-
const e = Array.prototype.slice.call(
|
|
5279
|
+
(ol === void 0 || Ui + 16 > dh) && (Ui = 0, ol = ub(dh));
|
|
5280
|
+
const e = Array.prototype.slice.call(ol, Ui, Ui += 16);
|
|
5281
5281
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, gn[e[0]] + gn[e[1]] + gn[e[2]] + gn[e[3]] + "-" + gn[e[4]] + gn[e[5]] + "-" + gn[e[6]] + gn[e[7]] + "-" + gn[e[8]] + gn[e[9]] + "-" + gn[e[10]] + gn[e[11]] + gn[e[12]] + gn[e[13]] + gn[e[14]] + gn[e[15]];
|
|
5282
5282
|
}
|
|
5283
5283
|
function lb(e) {
|
|
@@ -5286,7 +5286,7 @@ function lb(e) {
|
|
|
5286
5286
|
function fh(e, n) {
|
|
5287
5287
|
return e ?? (n === !0 ? `f_${Fs()}` : null);
|
|
5288
5288
|
}
|
|
5289
|
-
function
|
|
5289
|
+
function gd({ getValue: e, required: n = !0 } = {}) {
|
|
5290
5290
|
if (Lo.value === !0) {
|
|
5291
5291
|
const t = e !== void 0 ? X(lb(e())) : X(null);
|
|
5292
5292
|
return n === !0 && t.value === null && vn(() => {
|
|
@@ -5329,7 +5329,7 @@ function fb({ validate: e, resetValidation: n, requiresQForm: t }) {
|
|
|
5329
5329
|
});
|
|
5330
5330
|
} else t === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
5331
5331
|
}
|
|
5332
|
-
const ph = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, vh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, mh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ji = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Gi = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,
|
|
5332
|
+
const ph = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, vh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, mh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ji = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Gi = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, al = {
|
|
5333
5333
|
date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
|
|
5334
5334
|
time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
|
|
5335
5335
|
fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
|
|
@@ -5351,7 +5351,7 @@ const ph = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, vh = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
5351
5351
|
hexaOrRgbaColor: (e) => vh.test(e) || Gi.test(e),
|
|
5352
5352
|
anyColor: (e) => mh.test(e) || ji.test(e) || Gi.test(e)
|
|
5353
5353
|
};
|
|
5354
|
-
function
|
|
5354
|
+
function yd(e, n = 250, t) {
|
|
5355
5355
|
let r = null;
|
|
5356
5356
|
function o() {
|
|
5357
5357
|
const a = arguments, i = () => {
|
|
@@ -5415,7 +5415,7 @@ function vb(e, n) {
|
|
|
5415
5415
|
for (let C = 0; C < t.rules.length; C++) {
|
|
5416
5416
|
const S = t.rules[C];
|
|
5417
5417
|
let E;
|
|
5418
|
-
if (typeof S == "function" ? E = S(y,
|
|
5418
|
+
if (typeof S == "function" ? E = S(y, al) : typeof S == "string" && al[S] !== void 0 && (E = al[S](y)), E === !1 || typeof E == "string")
|
|
5419
5419
|
return g(!0, E), !1;
|
|
5420
5420
|
E !== !0 && E !== void 0 && x.push(E);
|
|
5421
5421
|
}
|
|
@@ -5429,7 +5429,7 @@ function vb(e, n) {
|
|
|
5429
5429
|
(C) => (w === s && (console.error(C), g(!0)), !1)
|
|
5430
5430
|
));
|
|
5431
5431
|
}
|
|
5432
|
-
const v =
|
|
5432
|
+
const v = yd(m, 0);
|
|
5433
5433
|
return At(() => {
|
|
5434
5434
|
u == null || u(), v.cancel();
|
|
5435
5435
|
}), Object.assign(r, { resetValidation: p, validate: m }), Gn(r, "hasError", () => d.value), {
|
|
@@ -5480,7 +5480,7 @@ const Kv = {
|
|
|
5480
5480
|
maxlength: [Number, String]
|
|
5481
5481
|
}, pu = ["update:modelValue", "clear", "focus", "blur"];
|
|
5482
5482
|
function vu({ requiredForAttr: e = !0, tagProp: n, changeEvent: t = !1 } = {}) {
|
|
5483
|
-
const { props: r, proxy: o } = Xe(), a = Cn(r, o.$q), i =
|
|
5483
|
+
const { props: r, proxy: o } = Xe(), a = Cn(r, o.$q), i = gd({
|
|
5484
5484
|
required: e,
|
|
5485
5485
|
getValue: () => r.for
|
|
5486
5486
|
});
|
|
@@ -5617,7 +5617,7 @@ function mu(e) {
|
|
|
5617
5617
|
), n.loading === !0 || e.innerLoading.value === !0 ? P.push(
|
|
5618
5618
|
z(
|
|
5619
5619
|
"inner-loading-append",
|
|
5620
|
-
r.loading !== void 0 ? r.loading() : [I(
|
|
5620
|
+
r.loading !== void 0 ? r.loading() : [I(sd, { color: n.color })]
|
|
5621
5621
|
)
|
|
5622
5622
|
) : n.clearable === !0 && e.hasValue.value === !0 && e.editable.value === !0 && P.push(
|
|
5623
5623
|
z("inner-clearable-append", [
|
|
@@ -6087,7 +6087,7 @@ const za = je({
|
|
|
6087
6087
|
setup(e, { emit: n, attrs: t }) {
|
|
6088
6088
|
const { proxy: r } = Xe(), { $q: o } = r, a = {};
|
|
6089
6089
|
let i = NaN, s, u, l = null, c;
|
|
6090
|
-
const d = X(null), f =
|
|
6090
|
+
const d = X(null), f = cd(e), {
|
|
6091
6091
|
innerValue: h,
|
|
6092
6092
|
hasMask: p,
|
|
6093
6093
|
moveCursorForPaste: m,
|
|
@@ -6286,7 +6286,7 @@ const em = (e, n) => ({
|
|
|
6286
6286
|
color: e === "danger" ? "red" : e === "success" ? "green" : e === "warning" ? "orange" : "white",
|
|
6287
6287
|
position: "top-right"
|
|
6288
6288
|
});
|
|
6289
|
-
function
|
|
6289
|
+
function bd() {
|
|
6290
6290
|
return fo(db);
|
|
6291
6291
|
}
|
|
6292
6292
|
const _b = { class: "app-input-new" }, Sb = {
|
|
@@ -6359,7 +6359,7 @@ const _b = { class: "app-input-new" }, Sb = {
|
|
|
6359
6359
|
},
|
|
6360
6360
|
emits: ["update:modelValue", "blur"],
|
|
6361
6361
|
setup(e, { emit: n }) {
|
|
6362
|
-
const t = e, r = n, o =
|
|
6362
|
+
const t = e, r = n, o = bd(), a = X(!1), i = _({
|
|
6363
6363
|
get: () => u(t.modelValue),
|
|
6364
6364
|
set: (c) => r("update:modelValue", u(c))
|
|
6365
6365
|
}), s = _(() => t.type === "password" && a.value ? "text" : t.type), u = (c) => t.type === "number" ? c && +c : c, l = () => {
|
|
@@ -6446,7 +6446,7 @@ const _b = { class: "app-input-new" }, Sb = {
|
|
|
6446
6446
|
}),
|
|
6447
6447
|
emits: /* @__PURE__ */ si(["update:modelValue"], ["update:modelValue"]),
|
|
6448
6448
|
setup(e) {
|
|
6449
|
-
const n = e, t =
|
|
6449
|
+
const n = e, t = Kc(e, "modelValue"), r = X(!1), o = (f) => {
|
|
6450
6450
|
n.required && !r.value && !t.value && !f && (r.value = !0);
|
|
6451
6451
|
}, a = (f) => {
|
|
6452
6452
|
if (r.value = !1, !n.noPastDates) {
|
|
@@ -6849,7 +6849,7 @@ const _b = { class: "app-input-new" }, Sb = {
|
|
|
6849
6849
|
});
|
|
6850
6850
|
function i() {
|
|
6851
6851
|
r == null || r();
|
|
6852
|
-
const d = Math.max(0,
|
|
6852
|
+
const d = Math.max(0, nd(o)), f = rd(o), h = {
|
|
6853
6853
|
top: d - t.position.top,
|
|
6854
6854
|
left: f - t.position.left
|
|
6855
6855
|
};
|
|
@@ -7092,7 +7092,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
|
|
|
7092
7092
|
return (n, t) => (Y(), ye("div", {
|
|
7093
7093
|
class: Ue({ "loader-backdrop": e.backdrop && e.loading })
|
|
7094
7094
|
}, [
|
|
7095
|
-
e.loading ? (Y(), Ae(
|
|
7095
|
+
e.loading ? (Y(), Ae(sd, {
|
|
7096
7096
|
key: 0,
|
|
7097
7097
|
size: e.size,
|
|
7098
7098
|
class: "loader-spinner",
|
|
@@ -7172,7 +7172,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
|
|
|
7172
7172
|
true: "inset",
|
|
7173
7173
|
item: "item-inset",
|
|
7174
7174
|
"item-thumbnail": "item-thumbnail-inset"
|
|
7175
|
-
},
|
|
7175
|
+
}, il = {
|
|
7176
7176
|
xs: 2,
|
|
7177
7177
|
sm: 4,
|
|
7178
7178
|
md: 8,
|
|
@@ -7194,7 +7194,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
|
|
|
7194
7194
|
), s = _(() => {
|
|
7195
7195
|
const u = {};
|
|
7196
7196
|
if (e.size !== void 0 && (u[e.vertical === !0 ? "width" : "height"] = e.size), e.spaced !== !1) {
|
|
7197
|
-
const l = e.spaced === !0 ? `${
|
|
7197
|
+
const l = e.spaced === !0 ? `${il.md}px` : e.spaced in il ? `${il[e.spaced]}px` : e.spaced, c = e.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
|
|
7198
7198
|
u[`margin${c[0]}`] = u[`margin${c[1]}`] = l;
|
|
7199
7199
|
}
|
|
7200
7200
|
return u;
|
|
@@ -7209,7 +7209,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
|
|
|
7209
7209
|
name: "QItem",
|
|
7210
7210
|
props: {
|
|
7211
7211
|
...xn,
|
|
7212
|
-
...
|
|
7212
|
+
...ud,
|
|
7213
7213
|
tag: {
|
|
7214
7214
|
type: String,
|
|
7215
7215
|
default: "div"
|
|
@@ -7248,7 +7248,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
|
|
|
7248
7248
|
t("keyup", b);
|
|
7249
7249
|
}
|
|
7250
7250
|
function w() {
|
|
7251
|
-
const b =
|
|
7251
|
+
const b = Qc(n.default, []);
|
|
7252
7252
|
return h.value === !0 && b.unshift(
|
|
7253
7253
|
I("div", { class: "q-focus-helper", tabindex: -1, ref: d })
|
|
7254
7254
|
), b;
|
|
@@ -7269,7 +7269,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
|
|
|
7269
7269
|
);
|
|
7270
7270
|
};
|
|
7271
7271
|
}
|
|
7272
|
-
}), Kb = ["ul", "ol"],
|
|
7272
|
+
}), Kb = ["ul", "ol"], wd = je({
|
|
7273
7273
|
name: "QList",
|
|
7274
7274
|
props: {
|
|
7275
7275
|
...xn,
|
|
@@ -7374,7 +7374,7 @@ const nm = typeof ResizeObserver < "u", xh = nm === !0 ? {} : {
|
|
|
7374
7374
|
return o.instances.header = y, e.modelValue === !0 && h("size", a.value), h("space", e.modelValue), h("offset", u.value), At(() => {
|
|
7375
7375
|
o.instances.header === y && (o.instances.header = void 0, h("size", 0), h("offset", 0), h("space", !1));
|
|
7376
7376
|
}), () => {
|
|
7377
|
-
const w =
|
|
7377
|
+
const w = Qc(n.default, []);
|
|
7378
7378
|
return e.elevated === !0 && w.push(
|
|
7379
7379
|
I("div", {
|
|
7380
7380
|
class: "q-layout__shadow absolute-full overflow-hidden no-pointer-events"
|
|
@@ -7400,7 +7400,7 @@ function Ch(e) {
|
|
|
7400
7400
|
const n = parseInt(e, 10);
|
|
7401
7401
|
return isNaN(n) ? 0 : n;
|
|
7402
7402
|
}
|
|
7403
|
-
const
|
|
7403
|
+
const xd = Xc(
|
|
7404
7404
|
{
|
|
7405
7405
|
name: "close-popup",
|
|
7406
7406
|
beforeMount(e, { value: n }) {
|
|
@@ -7447,7 +7447,7 @@ function ni(e) {
|
|
|
7447
7447
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
7448
7448
|
}
|
|
7449
7449
|
const am = om ? window : void 0;
|
|
7450
|
-
function
|
|
7450
|
+
function sl(...e) {
|
|
7451
7451
|
let n, t, r, o;
|
|
7452
7452
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, r, o] = e, n = am) : [n, t, r, o] = e, !n)
|
|
7453
7453
|
return gs;
|
|
@@ -7485,7 +7485,7 @@ function n2(e, n, t = {}) {
|
|
|
7485
7485
|
return p && (f.target === p || f.composedPath().includes(p));
|
|
7486
7486
|
}
|
|
7487
7487
|
}), c = [
|
|
7488
|
-
|
|
7488
|
+
sl(r, "click", (f) => {
|
|
7489
7489
|
const h = ni(e);
|
|
7490
7490
|
if (!(!h || h === f.target || f.composedPath().includes(h))) {
|
|
7491
7491
|
if (f.detail === 0 && (s = !u(f)), !s) {
|
|
@@ -7495,11 +7495,11 @@ function n2(e, n, t = {}) {
|
|
|
7495
7495
|
n(f);
|
|
7496
7496
|
}
|
|
7497
7497
|
}, { passive: !0, capture: a }),
|
|
7498
|
-
|
|
7498
|
+
sl(r, "pointerdown", (f) => {
|
|
7499
7499
|
const h = ni(e);
|
|
7500
7500
|
s = !u(f) && !!(h && !f.composedPath().includes(h));
|
|
7501
7501
|
}, { passive: !0 }),
|
|
7502
|
-
i &&
|
|
7502
|
+
i && sl(r, "blur", (f) => {
|
|
7503
7503
|
setTimeout(() => {
|
|
7504
7504
|
var h;
|
|
7505
7505
|
const p = ni(e);
|
|
@@ -8445,7 +8445,7 @@ const Sx = /* @__PURE__ */ De(Cx, [["render", _x]]), Ex = /* @__PURE__ */ Dt({
|
|
|
8445
8445
|
class: Ue(d.$style["settings-menu"])
|
|
8446
8446
|
}, {
|
|
8447
8447
|
default: pe(() => [
|
|
8448
|
-
(Y(!0), ye(hr, null, Wr(e.settingsMenuItems, (p) => (Y(), Ae(
|
|
8448
|
+
(Y(!0), ye(hr, null, Wr(e.settingsMenuItems, (p) => (Y(), Ae(wd, {
|
|
8449
8449
|
key: p.name,
|
|
8450
8450
|
class: Ue(d.$style["settings-menu__list"])
|
|
8451
8451
|
}, {
|
|
@@ -8461,7 +8461,7 @@ const Sx = /* @__PURE__ */ De(Cx, [["render", _x]]), Ex = /* @__PURE__ */ Dt({
|
|
|
8461
8461
|
_: 2
|
|
8462
8462
|
}, 1032, ["class", "onClick"])), [
|
|
8463
8463
|
[Jp, p.isShow],
|
|
8464
|
-
[
|
|
8464
|
+
[xd]
|
|
8465
8465
|
])
|
|
8466
8466
|
]),
|
|
8467
8467
|
_: 2
|
|
@@ -8644,7 +8644,7 @@ const CD = /* @__PURE__ */ De(Wx, [["render", Hx], ["__scopeId", "data-v-51e4160
|
|
|
8644
8644
|
v,
|
|
8645
8645
|
d.value.chip,
|
|
8646
8646
|
{ onClick: h, onKeyup: f }
|
|
8647
|
-
),
|
|
8647
|
+
), ac(
|
|
8648
8648
|
"div",
|
|
8649
8649
|
v,
|
|
8650
8650
|
m(),
|
|
@@ -8685,7 +8685,7 @@ const CD = /* @__PURE__ */ De(Wx, [["render", Hx], ["__scopeId", "data-v-51e4160
|
|
|
8685
8685
|
);
|
|
8686
8686
|
return () => I("div", { class: t.value }, kt(n.default));
|
|
8687
8687
|
}
|
|
8688
|
-
}),
|
|
8688
|
+
}), yc = je({
|
|
8689
8689
|
name: "QItemLabel",
|
|
8690
8690
|
props: {
|
|
8691
8691
|
overline: Boolean,
|
|
@@ -8744,7 +8744,7 @@ const ur = 1e3, Gx = [
|
|
|
8744
8744
|
function ga(e, n) {
|
|
8745
8745
|
return e + n;
|
|
8746
8746
|
}
|
|
8747
|
-
function
|
|
8747
|
+
function ul(e, n, t, r, o, a, i, s) {
|
|
8748
8748
|
const u = e === window ? document.scrollingElement || document.documentElement : e, l = o === !0 ? "offsetWidth" : "offsetHeight", c = {
|
|
8749
8749
|
scrollStart: 0,
|
|
8750
8750
|
scrollViewSize: -i - s,
|
|
@@ -8800,7 +8800,7 @@ const sm = {
|
|
|
8800
8800
|
default: 0
|
|
8801
8801
|
},
|
|
8802
8802
|
tableColspan: [Number, String]
|
|
8803
|
-
}, um = Object.keys(sm),
|
|
8803
|
+
}, um = Object.keys(sm), bc = {
|
|
8804
8804
|
virtualScrollHorizontal: Boolean,
|
|
8805
8805
|
onVirtualScroll: Function,
|
|
8806
8806
|
...sm
|
|
@@ -8831,7 +8831,7 @@ function lm({
|
|
|
8831
8831
|
function k(L, V) {
|
|
8832
8832
|
const G = n();
|
|
8833
8833
|
if (G == null || G.nodeType === 8) return;
|
|
8834
|
-
const ne =
|
|
8834
|
+
const ne = ul(
|
|
8835
8835
|
G,
|
|
8836
8836
|
t(),
|
|
8837
8837
|
y.value,
|
|
@@ -8852,7 +8852,7 @@ function lm({
|
|
|
8852
8852
|
function T() {
|
|
8853
8853
|
const L = n();
|
|
8854
8854
|
if (L == null || L.nodeType === 8) return;
|
|
8855
|
-
const V =
|
|
8855
|
+
const V = ul(
|
|
8856
8856
|
L,
|
|
8857
8857
|
t(),
|
|
8858
8858
|
y.value,
|
|
@@ -8972,7 +8972,7 @@ function lm({
|
|
|
8972
8972
|
function z(L) {
|
|
8973
8973
|
if (L === void 0 && typeof window < "u") {
|
|
8974
8974
|
const le = n();
|
|
8975
|
-
le != null && le.nodeType !== 8 && (L =
|
|
8975
|
+
le != null && le.nodeType !== 8 && (L = ul(
|
|
8976
8976
|
le,
|
|
8977
8977
|
t(),
|
|
8978
8978
|
y.value,
|
|
@@ -9054,11 +9054,11 @@ function lm({
|
|
|
9054
9054
|
}), c = L);
|
|
9055
9055
|
}
|
|
9056
9056
|
z();
|
|
9057
|
-
const H =
|
|
9057
|
+
const H = yd(
|
|
9058
9058
|
T,
|
|
9059
9059
|
u.platform.is.ios === !0 ? 120 : 35
|
|
9060
9060
|
);
|
|
9061
|
-
|
|
9061
|
+
Yc(() => {
|
|
9062
9062
|
z();
|
|
9063
9063
|
});
|
|
9064
9064
|
let K = !1;
|
|
@@ -9088,16 +9088,16 @@ function lm({
|
|
|
9088
9088
|
};
|
|
9089
9089
|
}
|
|
9090
9090
|
const Sh = (e) => ["add", "add-unique", "toggle"].includes(e), Yx = ".*+?^${}()|[]\\", Xx = Object.keys(hu);
|
|
9091
|
-
function
|
|
9091
|
+
function ll(e, n) {
|
|
9092
9092
|
if (typeof e == "function") return e;
|
|
9093
9093
|
const t = e !== void 0 ? e : n;
|
|
9094
9094
|
return (r) => r !== null && typeof r == "object" && t in r ? r[t] : r;
|
|
9095
9095
|
}
|
|
9096
|
-
const
|
|
9096
|
+
const Cd = je({
|
|
9097
9097
|
name: "QSelect",
|
|
9098
9098
|
inheritAttrs: !1,
|
|
9099
9099
|
props: {
|
|
9100
|
-
...
|
|
9100
|
+
...bc,
|
|
9101
9101
|
...$o,
|
|
9102
9102
|
...hu,
|
|
9103
9103
|
// override of useFieldProps > modelValue
|
|
@@ -9163,7 +9163,7 @@ const xd = je({
|
|
|
9163
9163
|
default: "default"
|
|
9164
9164
|
},
|
|
9165
9165
|
// override of useVirtualScrollProps > virtualScrollItemSize (no default)
|
|
9166
|
-
virtualScrollItemSize:
|
|
9166
|
+
virtualScrollItemSize: bc.virtualScrollItemSize.type,
|
|
9167
9167
|
onNewValue: Function,
|
|
9168
9168
|
onFilter: Function
|
|
9169
9169
|
},
|
|
@@ -9182,7 +9182,7 @@ const xd = je({
|
|
|
9182
9182
|
setup(e, { slots: n, emit: t }) {
|
|
9183
9183
|
const { proxy: r } = Xe(), { $q: o } = r, a = X(!1), i = X(!1), s = X(-1), u = X(""), l = X(!1), c = X(!1);
|
|
9184
9184
|
let d = null, f = null, h, p, m, v = null, y, w, b, g;
|
|
9185
|
-
const x = X(null), C = X(null), S = X(null), E = X(null), R = X(null), k =
|
|
9185
|
+
const x = X(null), C = X(null), S = X(null), E = X(null), R = X(null), k = cd(e), T = Zv(te), A = _(() => Array.isArray(e.options) ? e.options.length : 0), q = _(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
9186
9186
|
virtualScrollSliceRange: D,
|
|
9187
9187
|
virtualScrollSliceSizeComputed: O,
|
|
9188
9188
|
localResetVirtualScroll: z,
|
|
@@ -9276,7 +9276,7 @@ const xd = je({
|
|
|
9276
9276
|
});
|
|
9277
9277
|
}), gt = _(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : o.iconSet.arrow.dropdown), Mt = _(
|
|
9278
9278
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
9279
|
-
), Ft = _(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), se = _(() =>
|
|
9279
|
+
), Ft = _(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), se = _(() => ll(e.optionValue, "value")), J = _(() => ll(e.optionLabel, "label")), ve = _(() => ll(e.optionDisable, "disable")), Pe = _(() => V.value.map(se.value)), st = _(() => {
|
|
9280
9280
|
const U = {
|
|
9281
9281
|
onInput: te,
|
|
9282
9282
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -9509,7 +9509,7 @@ const xd = je({
|
|
|
9509
9509
|
}, () => I(
|
|
9510
9510
|
hn,
|
|
9511
9511
|
() => I(
|
|
9512
|
-
|
|
9512
|
+
yc,
|
|
9513
9513
|
() => I("span", {
|
|
9514
9514
|
[Ie.html === !0 ? "innerHTML" : "textContent"]: Ie.label
|
|
9515
9515
|
})
|
|
@@ -9597,13 +9597,13 @@ const xd = je({
|
|
|
9597
9597
|
separateClosePopup: !0,
|
|
9598
9598
|
...tt.value,
|
|
9599
9599
|
onScrollPassive: P,
|
|
9600
|
-
onBeforeShow:
|
|
9600
|
+
onBeforeShow: Df,
|
|
9601
9601
|
onBeforeHide: qt,
|
|
9602
9602
|
onShow: Bt
|
|
9603
9603
|
}, sr);
|
|
9604
9604
|
}
|
|
9605
9605
|
function qt(U) {
|
|
9606
|
-
|
|
9606
|
+
Mf(U), Te();
|
|
9607
9607
|
}
|
|
9608
9608
|
function Bt() {
|
|
9609
9609
|
K();
|
|
@@ -9656,7 +9656,7 @@ const xd = je({
|
|
|
9656
9656
|
transitionHide: e.transitionHide,
|
|
9657
9657
|
transitionDuration: e.transitionDuration,
|
|
9658
9658
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
9659
|
-
onBeforeShow:
|
|
9659
|
+
onBeforeShow: Df,
|
|
9660
9660
|
onBeforeHide: be,
|
|
9661
9661
|
onHide: _e,
|
|
9662
9662
|
onShow: dt
|
|
@@ -9665,7 +9665,7 @@ const xd = je({
|
|
|
9665
9665
|
}, U));
|
|
9666
9666
|
}
|
|
9667
9667
|
function be(U) {
|
|
9668
|
-
|
|
9668
|
+
Mf(U), E.value !== null && E.value.__updateRefocusTarget(
|
|
9669
9669
|
L.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
9670
9670
|
), L.focused.value = !1;
|
|
9671
9671
|
}
|
|
@@ -9710,19 +9710,19 @@ const xd = je({
|
|
|
9710
9710
|
a.value === !0 && L.innerLoading.value === !1 && (U > Se ? z() : Hu(!0));
|
|
9711
9711
|
}));
|
|
9712
9712
|
}
|
|
9713
|
-
function
|
|
9713
|
+
function Af() {
|
|
9714
9714
|
i.value === !1 && S.value !== null && S.value.updatePosition();
|
|
9715
9715
|
}
|
|
9716
|
-
function
|
|
9716
|
+
function Df(U) {
|
|
9717
9717
|
U !== void 0 && Fn(U), t("popupShow", U), L.hasPopupOpen = !0, L.onControlFocusin(U);
|
|
9718
9718
|
}
|
|
9719
|
-
function
|
|
9719
|
+
function Mf(U) {
|
|
9720
9720
|
U !== void 0 && Fn(U), t("popupHide", U), L.hasPopupOpen = !1, L.onControlFocusout(U);
|
|
9721
9721
|
}
|
|
9722
|
-
function
|
|
9722
|
+
function Ff() {
|
|
9723
9723
|
p = o.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? n["no-option"] !== void 0 || e.onFilter !== void 0 || we.value === !1 : !0), w = o.platform.is.ios === !0 && p === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
9724
9724
|
}
|
|
9725
|
-
return Zp(
|
|
9725
|
+
return Zp(Ff), d1(Af), Ff(), At(() => {
|
|
9726
9726
|
d !== null && clearTimeout(d), f !== null && clearTimeout(f);
|
|
9727
9727
|
}), Object.assign(r, {
|
|
9728
9728
|
showPopup: Ze,
|
|
@@ -9734,7 +9734,7 @@ const xd = je({
|
|
|
9734
9734
|
setOptionIndex: oe,
|
|
9735
9735
|
moveOptionSelection: he,
|
|
9736
9736
|
filter: $e,
|
|
9737
|
-
updateMenuPosition:
|
|
9737
|
+
updateMenuPosition: Af,
|
|
9738
9738
|
updateInputValue: He,
|
|
9739
9739
|
isOptionSelected: Ye,
|
|
9740
9740
|
getEmittingOptionValue: mt,
|
|
@@ -9865,7 +9865,7 @@ const xd = je({
|
|
|
9865
9865
|
s.value = c.toLowerCase();
|
|
9866
9866
|
});
|
|
9867
9867
|
}
|
|
9868
|
-
return (c, d) => (Y(), Ae(An(
|
|
9868
|
+
return (c, d) => (Y(), Ae(An(Cd), {
|
|
9869
9869
|
ref_key: "select",
|
|
9870
9870
|
ref: r,
|
|
9871
9871
|
modelValue: a.value,
|
|
@@ -9943,9 +9943,9 @@ const xd = je({
|
|
|
9943
9943
|
$style: eC
|
|
9944
9944
|
}, kD = /* @__PURE__ */ De(Qx, [["__cssModules", tC]]), nC = '<g transform="matrix(1 0 0 -1 0 80)"><rect width="10" height="20" rx="3"><animate attributeName="height" begin="0s" dur="4.3s" values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="15" width="10" height="80" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="80;55;33;5;75;23;73;33;12;14;60;80" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" width="10" height="50" rx="3"><animate attributeName="height" begin="0s" dur="1.4s" values="50;34;78;23;56;23;34;76;80;54;21;50" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="45" width="10" height="30" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="30;45;13;80;56;72;45;76;34;23;67;30" calcMode="linear" repeatCount="indefinite"></animate></rect></g>', ci = je({
|
|
9945
9945
|
name: "QSpinnerAudio",
|
|
9946
|
-
props:
|
|
9946
|
+
props: ad,
|
|
9947
9947
|
setup(e) {
|
|
9948
|
-
const { cSize: n, classes: t } =
|
|
9948
|
+
const { cSize: n, classes: t } = id(e);
|
|
9949
9949
|
return () => I("svg", {
|
|
9950
9950
|
class: t.value,
|
|
9951
9951
|
fill: "currentColor",
|
|
@@ -10027,7 +10027,7 @@ const xd = je({
|
|
|
10027
10027
|
flat: "",
|
|
10028
10028
|
icon: "close"
|
|
10029
10029
|
}, null, 512), [
|
|
10030
|
-
[
|
|
10030
|
+
[xd]
|
|
10031
10031
|
])
|
|
10032
10032
|
])
|
|
10033
10033
|
]),
|
|
@@ -10579,7 +10579,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
10579
10579
|
icon: "close",
|
|
10580
10580
|
onClick: s[1] || (s[1] = (l) => r("close"))
|
|
10581
10581
|
}, null, 512), [
|
|
10582
|
-
[
|
|
10582
|
+
[xd, !e.persistent]
|
|
10583
10583
|
])
|
|
10584
10584
|
])) : We("", !0),
|
|
10585
10585
|
$t(i.$slots, "default", {}, void 0, !0),
|
|
@@ -10858,7 +10858,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
10858
10858
|
le.value
|
|
10859
10859
|
)
|
|
10860
10860
|
), se.push(
|
|
10861
|
-
|
|
10861
|
+
ac(
|
|
10862
10862
|
"div",
|
|
10863
10863
|
{
|
|
10864
10864
|
ref: "backdrop",
|
|
@@ -10893,7 +10893,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
10893
10893
|
class: "q-layout__shadow absolute-full overflow-hidden no-pointer-events"
|
|
10894
10894
|
})
|
|
10895
10895
|
), se.push(
|
|
10896
|
-
|
|
10896
|
+
ac(
|
|
10897
10897
|
"aside",
|
|
10898
10898
|
{ ref: "content", class: ce.value, style: ne.value },
|
|
10899
10899
|
ve,
|
|
@@ -10950,10 +10950,10 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
10950
10950
|
onLeave: p
|
|
10951
10951
|
}, n.default);
|
|
10952
10952
|
}
|
|
10953
|
-
}), wo = f1({}), MC = Object.keys(
|
|
10953
|
+
}), wo = f1({}), MC = Object.keys(ud), FC = je({
|
|
10954
10954
|
name: "QExpansionItem",
|
|
10955
10955
|
props: {
|
|
10956
|
-
...
|
|
10956
|
+
...ud,
|
|
10957
10957
|
...wi,
|
|
10958
10958
|
...xn,
|
|
10959
10959
|
icon: String,
|
|
@@ -10989,7 +10989,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
10989
10989
|
setup(e, { slots: n, emit: t }) {
|
|
10990
10990
|
const { proxy: { $q: r } } = Xe(), o = Cn(e, r), a = X(
|
|
10991
10991
|
e.modelValue !== null ? e.modelValue : e.defaultOpened
|
|
10992
|
-
), i = X(null), s =
|
|
10992
|
+
), i = X(null), s = gd(), { show: u, hide: l, toggle: c } = Ci({ showing: a });
|
|
10993
10993
|
let d, f;
|
|
10994
10994
|
const h = _(
|
|
10995
10995
|
() => `q-expansion-item q-item-type q-expansion-item--${a.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${e.popup === !0 ? "popup" : "standard"}`
|
|
@@ -11085,8 +11085,8 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
11085
11085
|
let F;
|
|
11086
11086
|
return n.header !== void 0 ? F = [].concat(n.header(g.value)) : (F = [
|
|
11087
11087
|
I(hn, () => [
|
|
11088
|
-
I(
|
|
11089
|
-
e.caption ? I(
|
|
11088
|
+
I(yc, { lines: e.labelLines }, () => e.label || ""),
|
|
11089
|
+
e.caption ? I(yc, { lines: e.captionLines, caption: !0 }, () => e.caption) : null
|
|
11090
11090
|
])
|
|
11091
11091
|
], e.icon && F[e.switchToggleSide === !0 ? "push" : "unshift"](
|
|
11092
11092
|
I(hn, {
|
|
@@ -11313,7 +11313,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
11313
11313
|
},
|
|
11314
11314
|
emits: ["logout"],
|
|
11315
11315
|
setup(e, { emit: n }) {
|
|
11316
|
-
const t = n, r =
|
|
11316
|
+
const t = n, r = bd(), o = X(!0), a = X(!0), i = X(!1), s = _(() => r.screen.lt.lg), u = _(() => a.value ? "menu" : "close"), l = _(() => s.value ? 250 : 275), c = _(() => s.value ? 47 : 72);
|
|
11317
11317
|
function d(p) {
|
|
11318
11318
|
!i.value && !s.value && (a.value = p);
|
|
11319
11319
|
}
|
|
@@ -11462,7 +11462,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
11462
11462
|
"menu-exit__label": "_menu-exit__label_zcdf1_51"
|
|
11463
11463
|
}, KC = {
|
|
11464
11464
|
$style: GC
|
|
11465
|
-
}, ED = /* @__PURE__ */ De(WC, [["__cssModules", KC]]),
|
|
11465
|
+
}, ED = /* @__PURE__ */ De(WC, [["__cssModules", KC]]), wc = je({
|
|
11466
11466
|
name: "QToggle",
|
|
11467
11467
|
props: {
|
|
11468
11468
|
..._v,
|
|
@@ -11506,7 +11506,7 @@ const yC = ["left", "center", "right", "justify"], bC = je({
|
|
|
11506
11506
|
set: (a) => r("update:modelValue", a)
|
|
11507
11507
|
});
|
|
11508
11508
|
return (a, i) => (Y(), ye("div", null, [
|
|
11509
|
-
xe(
|
|
11509
|
+
xe(wc, {
|
|
11510
11510
|
modelValue: o.value,
|
|
11511
11511
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
|
|
11512
11512
|
disable: e.disable
|
|
@@ -11541,7 +11541,7 @@ function JC(e) {
|
|
|
11541
11541
|
n[t] = ZC;
|
|
11542
11542
|
}), n;
|
|
11543
11543
|
}
|
|
11544
|
-
function
|
|
11544
|
+
function kd() {
|
|
11545
11545
|
const { emit: e, proxy: n } = Xe(), t = X(null);
|
|
11546
11546
|
function r() {
|
|
11547
11547
|
t.value.show();
|
|
@@ -11563,8 +11563,8 @@ function Cd() {
|
|
|
11563
11563
|
};
|
|
11564
11564
|
}
|
|
11565
11565
|
const cm = ["ok", "hide"];
|
|
11566
|
-
|
|
11567
|
-
|
|
11566
|
+
kd.emits = cm;
|
|
11567
|
+
kd.emitsObject = JC(cm);
|
|
11568
11568
|
const ek = {}, tk = {
|
|
11569
11569
|
width: "50",
|
|
11570
11570
|
height: "50",
|
|
@@ -11606,7 +11606,7 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
|
|
|
11606
11606
|
type: {}
|
|
11607
11607
|
},
|
|
11608
11608
|
setup(e) {
|
|
11609
|
-
const { onDialogHide: n, onDialogOK: t, dialogRef: r } =
|
|
11609
|
+
const { onDialogHide: n, onDialogOK: t, dialogRef: r } = kd();
|
|
11610
11610
|
return (o, a) => (Y(), Ae(Wo, {
|
|
11611
11611
|
ref_key: "dialogRef",
|
|
11612
11612
|
ref: r,
|
|
@@ -11638,13 +11638,13 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
|
|
|
11638
11638
|
class: Ue(o.$style.footer)
|
|
11639
11639
|
}, {
|
|
11640
11640
|
default: pe(() => [
|
|
11641
|
-
xe(
|
|
11641
|
+
xe(hc, {
|
|
11642
11642
|
"data-test": "confirm-button",
|
|
11643
11643
|
class: Ue(o.$style["footer__btn--ok"]),
|
|
11644
11644
|
label: "Подтвердить",
|
|
11645
11645
|
onClick: An(t)
|
|
11646
11646
|
}, null, 8, ["class", "onClick"]),
|
|
11647
|
-
xe(
|
|
11647
|
+
xe(hc, {
|
|
11648
11648
|
"data-test": "close-button",
|
|
11649
11649
|
class: Ue(o.$style["footer__btn--cancel"]),
|
|
11650
11650
|
label: "Отменить",
|
|
@@ -11689,7 +11689,7 @@ const sk = /* @__PURE__ */ De(ok, [["render", ik]]), uk = /* @__PURE__ */ Dt({
|
|
|
11689
11689
|
});
|
|
11690
11690
|
return () => I("div", { class: t.value }, kt(n.default));
|
|
11691
11691
|
}
|
|
11692
|
-
}), mk = Object.keys(
|
|
11692
|
+
}), mk = Object.keys(ld);
|
|
11693
11693
|
function gk(e) {
|
|
11694
11694
|
return mk.reduce((n, t) => {
|
|
11695
11695
|
const r = e[t];
|
|
@@ -11699,7 +11699,7 @@ function gk(e) {
|
|
|
11699
11699
|
const yk = je({
|
|
11700
11700
|
name: "QBtnDropdown",
|
|
11701
11701
|
props: {
|
|
11702
|
-
...
|
|
11702
|
+
...ld,
|
|
11703
11703
|
...pa,
|
|
11704
11704
|
modelValue: Boolean,
|
|
11705
11705
|
split: Boolean,
|
|
@@ -11729,7 +11729,7 @@ const yk = je({
|
|
|
11729
11729
|
},
|
|
11730
11730
|
emits: ["update:modelValue", "click", "beforeShow", "show", "beforeHide", "hide"],
|
|
11731
11731
|
setup(e, { slots: n, emit: t }) {
|
|
11732
|
-
const { proxy: r } = Xe(), o = X(e.modelValue), a = X(null), i =
|
|
11732
|
+
const { proxy: r } = Xe(), o = X(e.modelValue), a = X(null), i = gd(), s = _(() => {
|
|
11733
11733
|
const g = {
|
|
11734
11734
|
"aria-expanded": o.value === !0 ? "true" : "false",
|
|
11735
11735
|
"aria-haspopup": "true",
|
|
@@ -11872,7 +11872,7 @@ const yk = je({
|
|
|
11872
11872
|
}),
|
|
11873
11873
|
emits: ["update:modelValue"],
|
|
11874
11874
|
setup(e) {
|
|
11875
|
-
const n =
|
|
11875
|
+
const n = Kc(e, "modelValue");
|
|
11876
11876
|
return (t, r) => (Y(), Ae(yk, {
|
|
11877
11877
|
modelValue: n.value,
|
|
11878
11878
|
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
@@ -12108,9 +12108,9 @@ const yk = je({
|
|
|
12108
12108
|
}
|
|
12109
12109
|
}), Ak = '<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>', Dk = je({
|
|
12110
12110
|
name: "QSpinnerDots",
|
|
12111
|
-
props:
|
|
12111
|
+
props: ad,
|
|
12112
12112
|
setup(e) {
|
|
12113
|
-
const { cSize: n, classes: t } =
|
|
12113
|
+
const { cSize: n, classes: t } = id(e);
|
|
12114
12114
|
return () => I("svg", {
|
|
12115
12115
|
class: t.value,
|
|
12116
12116
|
fill: "currentColor",
|
|
@@ -12232,7 +12232,7 @@ const yk = je({
|
|
|
12232
12232
|
Wt(pt(e.label) + " ", 1),
|
|
12233
12233
|
(x = e.rules) != null && x.length && e.isShowRequired ? (Y(), ye("span", Fk, "*")) : We("", !0)
|
|
12234
12234
|
], 8, Mk)) : We("", !0),
|
|
12235
|
-
xe(An(
|
|
12235
|
+
xe(An(Cd), {
|
|
12236
12236
|
ref_key: "select",
|
|
12237
12237
|
ref: i,
|
|
12238
12238
|
modelValue: l.value,
|
|
@@ -12365,7 +12365,7 @@ const yk = je({
|
|
|
12365
12365
|
},
|
|
12366
12366
|
emits: ["update:modelValue", "submit", "edit", "delete"],
|
|
12367
12367
|
setup(e, { emit: n }) {
|
|
12368
|
-
const t = e, r = n, o =
|
|
12368
|
+
const t = e, r = n, o = bd(), a = X(), i = X({}), s = X({}), u = _(() => t.mode === "view" ? !1 : t.fields.some((w) => {
|
|
12369
12369
|
var S;
|
|
12370
12370
|
const b = (S = w.rules) == null ? void 0 : S.some((E) => E("") !== !0), g = i.value[w.key], x = Ga(g), C = x == null || typeof x == "string" && x.trim() === "" || Array.isArray(x) && x.length === 0;
|
|
12371
12371
|
return b && C;
|
|
@@ -12750,7 +12750,7 @@ const yk = je({
|
|
|
12750
12750
|
)
|
|
12751
12751
|
];
|
|
12752
12752
|
}
|
|
12753
|
-
}), Ih = ["vertical", "horizontal"],
|
|
12753
|
+
}), Ih = ["vertical", "horizontal"], cl = {
|
|
12754
12754
|
vertical: { offset: "offsetY", scroll: "scrollTop", dir: "down", dist: "y" },
|
|
12755
12755
|
horizontal: { offset: "offsetX", scroll: "scrollLeft", dir: "right", dist: "x" }
|
|
12756
12756
|
}, Th = {
|
|
@@ -12866,7 +12866,7 @@ const yk = je({
|
|
|
12866
12866
|
});
|
|
12867
12867
|
}), D;
|
|
12868
12868
|
}
|
|
12869
|
-
const v =
|
|
12869
|
+
const v = yd(() => {
|
|
12870
12870
|
const D = m();
|
|
12871
12871
|
D.ref = u, t("scroll", D);
|
|
12872
12872
|
}, 0);
|
|
@@ -12875,7 +12875,7 @@ const yk = je({
|
|
|
12875
12875
|
console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");
|
|
12876
12876
|
return;
|
|
12877
12877
|
}
|
|
12878
|
-
(D === "vertical" ? Lf :
|
|
12878
|
+
(D === "vertical" ? Lf : Gu)(f.value, O, z);
|
|
12879
12879
|
}
|
|
12880
12880
|
function w({ height: D, width: O }) {
|
|
12881
12881
|
let z = !1;
|
|
@@ -12896,13 +12896,13 @@ const yk = je({
|
|
|
12896
12896
|
} else if (o.value !== !0)
|
|
12897
12897
|
return;
|
|
12898
12898
|
D.isFinal === !0 && (o.value = !1);
|
|
12899
|
-
const F =
|
|
12899
|
+
const F = cl[O], P = (z.size.value - i[O].value) / (i[O + "Inner"].value - z.thumbSize.value), H = D.distance[F.dist], K = d + (D.direction === F.dir ? 1 : -1) * H * P;
|
|
12900
12900
|
E(K, O);
|
|
12901
12901
|
}
|
|
12902
12902
|
function C(D, O) {
|
|
12903
12903
|
const z = s[O];
|
|
12904
12904
|
if (z.thumbHidden.value !== !0) {
|
|
12905
|
-
const F = O === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], P = D[
|
|
12905
|
+
const F = O === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], P = D[cl[O].offset] - F, H = z.thumbStart.value - F;
|
|
12906
12906
|
if (P < H || P > H + z.thumbSize.value) {
|
|
12907
12907
|
const K = P - z.thumbSize.value / 2, L = Vr(K / (i[O + "Inner"].value - z.thumbSize.value), 0, 1);
|
|
12908
12908
|
E(L * Math.max(0, z.size.value - i[O].value), O);
|
|
@@ -12916,7 +12916,7 @@ const yk = je({
|
|
|
12916
12916
|
}, e.delay), e.onScroll !== void 0 && v();
|
|
12917
12917
|
}
|
|
12918
12918
|
function E(D, O) {
|
|
12919
|
-
f.value[
|
|
12919
|
+
f.value[cl[O].scroll] = D;
|
|
12920
12920
|
}
|
|
12921
12921
|
let R = null;
|
|
12922
12922
|
function k() {
|
|
@@ -12929,7 +12929,7 @@ const yk = je({
|
|
|
12929
12929
|
}
|
|
12930
12930
|
let A = null;
|
|
12931
12931
|
me(() => u.$q.lang.rtl, (D) => {
|
|
12932
|
-
f.value !== null &&
|
|
12932
|
+
f.value !== null && Gu(
|
|
12933
12933
|
f.value,
|
|
12934
12934
|
Math.abs(s.horizontal.position.value) * (D === !0 ? -1 : 1)
|
|
12935
12935
|
);
|
|
@@ -12941,7 +12941,7 @@ const yk = je({
|
|
|
12941
12941
|
}), Na(() => {
|
|
12942
12942
|
if (A === null) return;
|
|
12943
12943
|
const D = f.value;
|
|
12944
|
-
D !== null && (
|
|
12944
|
+
D !== null && (Gu(D, A.left), Lf(D, A.top));
|
|
12945
12945
|
}), At(v.cancel), Object.assign(u, {
|
|
12946
12946
|
getScrollTarget: () => f.value,
|
|
12947
12947
|
getScroll: m,
|
|
@@ -13048,7 +13048,7 @@ const yk = je({
|
|
|
13048
13048
|
i = e.props.col;
|
|
13049
13049
|
if (i.sortable === !0) {
|
|
13050
13050
|
const c = i.align === "right" ? "unshift" : "push";
|
|
13051
|
-
s =
|
|
13051
|
+
s = Qc(n.default, []), s[c](
|
|
13052
13052
|
I(St, {
|
|
13053
13053
|
class: i.__iconClass,
|
|
13054
13054
|
name: o.iconSet.table.arrowUp
|
|
@@ -13098,12 +13098,12 @@ function hm(e, n) {
|
|
|
13098
13098
|
]);
|
|
13099
13099
|
}
|
|
13100
13100
|
const Gk = {
|
|
13101
|
-
list:
|
|
13101
|
+
list: wd,
|
|
13102
13102
|
table: jk
|
|
13103
13103
|
}, Kk = ["list", "table", "__qtable"], Yk = je({
|
|
13104
13104
|
name: "QVirtualScroll",
|
|
13105
13105
|
props: {
|
|
13106
|
-
...
|
|
13106
|
+
...bc,
|
|
13107
13107
|
type: {
|
|
13108
13108
|
type: String,
|
|
13109
13109
|
default: "list",
|
|
@@ -13163,7 +13163,7 @@ const Gk = {
|
|
|
13163
13163
|
);
|
|
13164
13164
|
return n.before !== void 0 && (w = n.before().concat(w)), On(n.after, w);
|
|
13165
13165
|
}
|
|
13166
|
-
return
|
|
13166
|
+
return Yc(() => {
|
|
13167
13167
|
s();
|
|
13168
13168
|
}), vn(() => {
|
|
13169
13169
|
m();
|
|
@@ -13273,7 +13273,7 @@ function e_() {
|
|
|
13273
13273
|
const e = Xe(), { props: n, emit: t, proxy: r } = e;
|
|
13274
13274
|
let o, a;
|
|
13275
13275
|
const i = X(!1);
|
|
13276
|
-
|
|
13276
|
+
Jc(e) === !0 && me(() => r.$route.fullPath, () => {
|
|
13277
13277
|
n.noRouteFullscreenExit !== !0 && l();
|
|
13278
13278
|
}), me(() => n.fullscreen, (c) => {
|
|
13279
13279
|
i.value !== c && s();
|
|
@@ -13291,7 +13291,7 @@ function e_() {
|
|
|
13291
13291
|
r.$el.scrollIntoView();
|
|
13292
13292
|
})));
|
|
13293
13293
|
}
|
|
13294
|
-
return
|
|
13294
|
+
return Yc(() => {
|
|
13295
13295
|
o = document.createElement("span");
|
|
13296
13296
|
}), vn(() => {
|
|
13297
13297
|
n.fullscreen === !0 && u();
|
|
@@ -13327,7 +13327,7 @@ function r_(e, n, t, r) {
|
|
|
13327
13327
|
const d = l === !0 ? -1 : 1, f = typeof c.field == "function" ? (h) => c.field(h) : (h) => h[c.field];
|
|
13328
13328
|
return s.sort((h, p) => {
|
|
13329
13329
|
let m = f(h), v = f(p);
|
|
13330
|
-
return c.rawSort !== void 0 ? c.rawSort(m, v, h, p) * d : m == null ? -1 * d : v == null ? 1 * d : c.sort !== void 0 ? c.sort(m, v, h, p) * d :
|
|
13330
|
+
return c.rawSort !== void 0 ? c.rawSort(m, v, h, p) * d : m == null ? -1 * d : v == null ? 1 * d : c.sort !== void 0 ? c.sort(m, v, h, p) * d : pc(m) === !0 && pc(v) === !0 ? (m - v) * d : Ds(m) === !0 && Ds(v) === !0 ? t_(m, v) * d : typeof m == "boolean" && typeof v == "boolean" ? (m - v) * d : ([m, v] = [m, v].map((y) => (y + "").toLocaleString().toLowerCase()), m < v ? -1 * d : m === v ? 0 : d);
|
|
13331
13331
|
});
|
|
13332
13332
|
});
|
|
13333
13333
|
function i(s) {
|
|
@@ -13574,7 +13574,7 @@ function g_(e, n, t) {
|
|
|
13574
13574
|
name: u,
|
|
13575
13575
|
label: u.toUpperCase(),
|
|
13576
13576
|
field: u,
|
|
13577
|
-
align:
|
|
13577
|
+
align: pc(s[u]) ? "right" : "left",
|
|
13578
13578
|
sortable: !0
|
|
13579
13579
|
})) : [];
|
|
13580
13580
|
}), o = _(() => {
|
|
@@ -14081,7 +14081,7 @@ const y_ = je({
|
|
|
14081
14081
|
I("span", { class: "q-table__bottom-item" }, [
|
|
14082
14082
|
e.rowsPerPageLabel || o.lang.table.recordsPerPage
|
|
14083
14083
|
]),
|
|
14084
|
-
I(
|
|
14084
|
+
I(Cd, {
|
|
14085
14085
|
class: "q-table__select inline q-table__bottom-item",
|
|
14086
14086
|
color: e.color,
|
|
14087
14087
|
modelValue: He,
|
|
@@ -14352,13 +14352,13 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
|
|
|
14352
14352
|
onRowClick: u
|
|
14353
14353
|
}, La({
|
|
14354
14354
|
"header-selection": pe((f) => [
|
|
14355
|
-
xe(
|
|
14355
|
+
xe(wc, {
|
|
14356
14356
|
modelValue: f.selected,
|
|
14357
14357
|
"onUpdate:modelValue": (h) => f.selected = h
|
|
14358
14358
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
14359
14359
|
]),
|
|
14360
14360
|
"body-selection": pe((f) => [
|
|
14361
|
-
xe(
|
|
14361
|
+
xe(wc, {
|
|
14362
14362
|
modelValue: f.selected,
|
|
14363
14363
|
"onUpdate:modelValue": (h) => f.selected = h
|
|
14364
14364
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -14451,7 +14451,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
|
|
|
14451
14451
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
14452
14452
|
xe(Hk, { style: { height: "200px" } }, {
|
|
14453
14453
|
default: pe(() => [
|
|
14454
|
-
xe(
|
|
14454
|
+
xe(wd, { style: { "min-width": "200px" } }, {
|
|
14455
14455
|
default: pe(() => {
|
|
14456
14456
|
var v;
|
|
14457
14457
|
return [
|
|
@@ -14613,7 +14613,7 @@ const C_ = /* @__PURE__ */ De(b_, [["render", x_]]), k_ = {
|
|
|
14613
14613
|
}),
|
|
14614
14614
|
emits: /* @__PURE__ */ si(["update:modelValue"], ["update:modelValue"]),
|
|
14615
14615
|
setup(e, { emit: n }) {
|
|
14616
|
-
const t =
|
|
14616
|
+
const t = Kc(e, "modelValue");
|
|
14617
14617
|
return (r, o) => (Y(), Ae(Wo, {
|
|
14618
14618
|
modelValue: t.value,
|
|
14619
14619
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a)
|
|
@@ -14789,7 +14789,7 @@ const H_ = je({
|
|
|
14789
14789
|
...$_
|
|
14790
14790
|
],
|
|
14791
14791
|
setup(e, { slots: n, emit: t, attrs: r }) {
|
|
14792
|
-
const { proxy: o } = Xe(), a = vu(), i = X(null), s = X(!1), u =
|
|
14792
|
+
const { proxy: o } = Xe(), a = vu(), i = X(null), s = X(!1), u = cd(e), {
|
|
14793
14793
|
pickFiles: l,
|
|
14794
14794
|
onDragover: c,
|
|
14795
14795
|
onDragleave: d,
|
|
@@ -14995,7 +14995,7 @@ function vm(e, n) {
|
|
|
14995
14995
|
return e.apply(n, arguments);
|
|
14996
14996
|
};
|
|
14997
14997
|
}
|
|
14998
|
-
const { toString: j_ } = Object.prototype, { getPrototypeOf:
|
|
14998
|
+
const { toString: j_ } = Object.prototype, { getPrototypeOf: _d } = Object, { iterator: bu, toStringTag: mm } = Symbol, wu = /* @__PURE__ */ ((e) => (n) => {
|
|
14999
14999
|
const t = j_.call(n);
|
|
15000
15000
|
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
15001
15001
|
})(/* @__PURE__ */ Object.create(null)), pr = (e) => (e = e.toLowerCase(), (n) => wu(n) === e), xu = (e) => (n) => typeof n === e, { isArray: $a } = Array, Aa = xu("undefined");
|
|
@@ -15010,7 +15010,7 @@ function G_(e) {
|
|
|
15010
15010
|
const K_ = xu("string"), qn = xu("function"), ym = xu("number"), Ii = (e) => e !== null && typeof e == "object", Y_ = (e) => e === !0 || e === !1, ys = (e) => {
|
|
15011
15011
|
if (wu(e) !== "object")
|
|
15012
15012
|
return !1;
|
|
15013
|
-
const n =
|
|
15013
|
+
const n = _d(e);
|
|
15014
15014
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(mm in e) && !(bu in e);
|
|
15015
15015
|
}, X_ = (e) => {
|
|
15016
15016
|
if (!Ii(e) || Ri(e))
|
|
@@ -15053,10 +15053,10 @@ function bm(e, n) {
|
|
|
15053
15053
|
return null;
|
|
15054
15054
|
}
|
|
15055
15055
|
const Ro = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, wm = (e) => !Aa(e) && e !== Ro;
|
|
15056
|
-
function
|
|
15056
|
+
function xc() {
|
|
15057
15057
|
const { caseless: e, skipUndefined: n } = wm(this) && this || {}, t = {}, r = (o, a) => {
|
|
15058
15058
|
const i = e && bm(t, a) || a;
|
|
15059
|
-
ys(t[i]) && ys(o) ? t[i] =
|
|
15059
|
+
ys(t[i]) && ys(o) ? t[i] = xc(t[i], o) : ys(o) ? t[i] = xc({}, o) : $a(o) ? t[i] = o.slice() : (!n || !Aa(o)) && (t[i] = o);
|
|
15060
15060
|
};
|
|
15061
15061
|
for (let o = 0, a = arguments.length; o < a; o++)
|
|
15062
15062
|
arguments[o] && Ti(arguments[o], r);
|
|
@@ -15075,7 +15075,7 @@ const l3 = (e, n, t, { allOwnKeys: r } = {}) => (Ti(n, (o, a) => {
|
|
|
15075
15075
|
do {
|
|
15076
15076
|
for (o = Object.getOwnPropertyNames(e), a = o.length; a-- > 0; )
|
|
15077
15077
|
i = o[a], (!r || r(i, e, n)) && !s[i] && (n[i] = e[i], s[i] = !0);
|
|
15078
|
-
e = t !== !1 &&
|
|
15078
|
+
e = t !== !1 && _d(e);
|
|
15079
15079
|
} while (e && (!t || t(e, n)) && e !== Object.prototype);
|
|
15080
15080
|
return n;
|
|
15081
15081
|
}, h3 = (e, n, t) => {
|
|
@@ -15091,7 +15091,7 @@ const l3 = (e, n, t, { allOwnKeys: r } = {}) => (Ti(n, (o, a) => {
|
|
|
15091
15091
|
for (; n-- > 0; )
|
|
15092
15092
|
t[n] = e[n];
|
|
15093
15093
|
return t;
|
|
15094
|
-
}, v3 = /* @__PURE__ */ ((e) => (n) => e && n instanceof e)(typeof Uint8Array < "u" &&
|
|
15094
|
+
}, v3 = /* @__PURE__ */ ((e) => (n) => e && n instanceof e)(typeof Uint8Array < "u" && _d(Uint8Array)), m3 = (e, n) => {
|
|
15095
15095
|
const r = (e && e[bu]).call(e);
|
|
15096
15096
|
let o;
|
|
15097
15097
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -15195,7 +15195,7 @@ const E3 = (e) => {
|
|
|
15195
15195
|
isTypedArray: v3,
|
|
15196
15196
|
isFileList: e3,
|
|
15197
15197
|
forEach: Ti,
|
|
15198
|
-
merge:
|
|
15198
|
+
merge: xc,
|
|
15199
15199
|
extend: l3,
|
|
15200
15200
|
trim: u3,
|
|
15201
15201
|
stripBOM: c3,
|
|
@@ -15281,7 +15281,7 @@ ut.from = (e, n, t, r, o, a) => {
|
|
|
15281
15281
|
return ut.call(i, s, u, t, r, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", a && Object.assign(i, a), i;
|
|
15282
15282
|
};
|
|
15283
15283
|
const D3 = null;
|
|
15284
|
-
function
|
|
15284
|
+
function Cc(e) {
|
|
15285
15285
|
return Z.isPlainObject(e) || Z.isArray(e);
|
|
15286
15286
|
}
|
|
15287
15287
|
function Sm(e) {
|
|
@@ -15293,7 +15293,7 @@ function Bh(e, n, t) {
|
|
|
15293
15293
|
}).join(t ? "." : "") : n;
|
|
15294
15294
|
}
|
|
15295
15295
|
function M3(e) {
|
|
15296
|
-
return Z.isArray(e) && !e.some(
|
|
15296
|
+
return Z.isArray(e) && !e.some(Cc);
|
|
15297
15297
|
}
|
|
15298
15298
|
const F3 = Z.toFlatObject(Z, {}, null, function(n) {
|
|
15299
15299
|
return /^is[A-Z]/.test(n);
|
|
@@ -15335,12 +15335,12 @@ function Cu(e, n, t) {
|
|
|
15335
15335
|
);
|
|
15336
15336
|
}), !1;
|
|
15337
15337
|
}
|
|
15338
|
-
return
|
|
15338
|
+
return Cc(p) ? !0 : (n.append(Bh(v, m, a), l(p)), !1);
|
|
15339
15339
|
}
|
|
15340
15340
|
const d = [], f = Object.assign(F3, {
|
|
15341
15341
|
defaultVisitor: c,
|
|
15342
15342
|
convertValue: l,
|
|
15343
|
-
isVisitable:
|
|
15343
|
+
isVisitable: Cc
|
|
15344
15344
|
});
|
|
15345
15345
|
function h(p, m) {
|
|
15346
15346
|
if (!Z.isUndefined(p)) {
|
|
@@ -15375,10 +15375,10 @@ function Oh(e) {
|
|
|
15375
15375
|
return n[r];
|
|
15376
15376
|
});
|
|
15377
15377
|
}
|
|
15378
|
-
function
|
|
15378
|
+
function Sd(e, n) {
|
|
15379
15379
|
this._pairs = [], e && Cu(e, this, n);
|
|
15380
15380
|
}
|
|
15381
|
-
const Em =
|
|
15381
|
+
const Em = Sd.prototype;
|
|
15382
15382
|
Em.append = function(n, t) {
|
|
15383
15383
|
this._pairs.push([n, t]);
|
|
15384
15384
|
};
|
|
@@ -15402,7 +15402,7 @@ function Rm(e, n, t) {
|
|
|
15402
15402
|
});
|
|
15403
15403
|
const o = t && t.serialize;
|
|
15404
15404
|
let a;
|
|
15405
|
-
if (o ? a = o(n, t) : a = Z.isURLSearchParams(n) ? n.toString() : new
|
|
15405
|
+
if (o ? a = o(n, t) : a = Z.isURLSearchParams(n) ? n.toString() : new Sd(n, t).toString(r), a) {
|
|
15406
15406
|
const i = e.indexOf("#");
|
|
15407
15407
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
15408
15408
|
}
|
|
@@ -15466,7 +15466,7 @@ const Im = {
|
|
|
15466
15466
|
silentJSONParsing: !0,
|
|
15467
15467
|
forcedJSONParsing: !0,
|
|
15468
15468
|
clarifyTimeoutError: !1
|
|
15469
|
-
}, B3 = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
15469
|
+
}, B3 = typeof URLSearchParams < "u" ? URLSearchParams : Sd, O3 = typeof FormData < "u" ? FormData : null, N3 = typeof Blob < "u" ? Blob : null, L3 = {
|
|
15470
15470
|
isBrowser: !0,
|
|
15471
15471
|
classes: {
|
|
15472
15472
|
URLSearchParams: B3,
|
|
@@ -15474,13 +15474,13 @@ const Im = {
|
|
|
15474
15474
|
Blob: N3
|
|
15475
15475
|
},
|
|
15476
15476
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
15477
|
-
},
|
|
15478
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", z3 =
|
|
15477
|
+
}, Ed = typeof window < "u" && typeof document < "u", kc = typeof navigator == "object" && navigator || void 0, q3 = Ed && (!kc || ["ReactNative", "NativeScript", "NS"].indexOf(kc.product) < 0), V3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
15478
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", z3 = Ed && window.location.href || "http://localhost", $3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15479
15479
|
__proto__: null,
|
|
15480
|
-
hasBrowserEnv:
|
|
15480
|
+
hasBrowserEnv: Ed,
|
|
15481
15481
|
hasStandardBrowserEnv: q3,
|
|
15482
15482
|
hasStandardBrowserWebWorkerEnv: V3,
|
|
15483
|
-
navigator:
|
|
15483
|
+
navigator: kc,
|
|
15484
15484
|
origin: z3
|
|
15485
15485
|
}, Symbol.toStringTag, { value: "Module" })), Rn = {
|
|
15486
15486
|
...$3,
|
|
@@ -15640,7 +15640,7 @@ function Y3(e) {
|
|
|
15640
15640
|
return n;
|
|
15641
15641
|
}
|
|
15642
15642
|
const X3 = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
15643
|
-
function
|
|
15643
|
+
function dl(e, n, t, r, o) {
|
|
15644
15644
|
if (Z.isFunction(r))
|
|
15645
15645
|
return r.call(this, n, t);
|
|
15646
15646
|
if (o && (n = t), !!Z.isString(n)) {
|
|
@@ -15714,7 +15714,7 @@ let Vn = class {
|
|
|
15714
15714
|
has(n, t) {
|
|
15715
15715
|
if (n = Xa(n), n) {
|
|
15716
15716
|
const r = Z.findKey(this, n);
|
|
15717
|
-
return !!(r && this[r] !== void 0 && (!t ||
|
|
15717
|
+
return !!(r && this[r] !== void 0 && (!t || dl(this, this[r], r, t)));
|
|
15718
15718
|
}
|
|
15719
15719
|
return !1;
|
|
15720
15720
|
}
|
|
@@ -15724,7 +15724,7 @@ let Vn = class {
|
|
|
15724
15724
|
function a(i) {
|
|
15725
15725
|
if (i = Xa(i), i) {
|
|
15726
15726
|
const s = Z.findKey(r, i);
|
|
15727
|
-
s && (!t ||
|
|
15727
|
+
s && (!t || dl(r, r[s], s, t)) && (delete r[s], o = !0);
|
|
15728
15728
|
}
|
|
15729
15729
|
}
|
|
15730
15730
|
return Z.isArray(n) ? n.forEach(a) : a(n), o;
|
|
@@ -15734,7 +15734,7 @@ let Vn = class {
|
|
|
15734
15734
|
let r = t.length, o = !1;
|
|
15735
15735
|
for (; r--; ) {
|
|
15736
15736
|
const a = t[r];
|
|
15737
|
-
(!n ||
|
|
15737
|
+
(!n || dl(this, this[a], a, n, !0)) && (delete this[a], o = !0);
|
|
15738
15738
|
}
|
|
15739
15739
|
return o;
|
|
15740
15740
|
}
|
|
@@ -15801,7 +15801,7 @@ Z.reduceDescriptors(Vn.prototype, ({ value: e }, n) => {
|
|
|
15801
15801
|
};
|
|
15802
15802
|
});
|
|
15803
15803
|
Z.freezeMethods(Vn);
|
|
15804
|
-
function
|
|
15804
|
+
function fl(e, n) {
|
|
15805
15805
|
const t = this || Ai, r = n || t, o = Vn.from(r.headers);
|
|
15806
15806
|
let a = r.data;
|
|
15807
15807
|
return Z.forEach(e, function(s) {
|
|
@@ -16308,14 +16308,14 @@ const Fm = (e) => {
|
|
|
16308
16308
|
return l;
|
|
16309
16309
|
};
|
|
16310
16310
|
Pm();
|
|
16311
|
-
const
|
|
16311
|
+
const Rd = {
|
|
16312
16312
|
http: D3,
|
|
16313
16313
|
xhr: sS,
|
|
16314
16314
|
fetch: {
|
|
16315
16315
|
get: Pm
|
|
16316
16316
|
}
|
|
16317
16317
|
};
|
|
16318
|
-
Z.forEach(
|
|
16318
|
+
Z.forEach(Rd, (e, n) => {
|
|
16319
16319
|
if (e) {
|
|
16320
16320
|
try {
|
|
16321
16321
|
Object.defineProperty(e, "name", { value: n });
|
|
@@ -16333,7 +16333,7 @@ function mS(e, n) {
|
|
|
16333
16333
|
for (let i = 0; i < t; i++) {
|
|
16334
16334
|
r = e[i];
|
|
16335
16335
|
let s;
|
|
16336
|
-
if (o = r, !vS(r) && (o =
|
|
16336
|
+
if (o = r, !vS(r) && (o = Rd[(s = String(r)).toLowerCase()], o === void 0))
|
|
16337
16337
|
throw new ut(`Unknown adapter '${s}'`);
|
|
16338
16338
|
if (o && (Z.isFunction(o) || (o = o.get(n))))
|
|
16339
16339
|
break;
|
|
@@ -16363,24 +16363,24 @@ const Bm = {
|
|
|
16363
16363
|
* Exposes all known adapters
|
|
16364
16364
|
* @type {Object<string, Function|Object>}
|
|
16365
16365
|
*/
|
|
16366
|
-
adapters:
|
|
16366
|
+
adapters: Rd
|
|
16367
16367
|
};
|
|
16368
|
-
function
|
|
16368
|
+
function hl(e) {
|
|
16369
16369
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
16370
16370
|
throw new Wa(null, e);
|
|
16371
16371
|
}
|
|
16372
16372
|
function Kh(e) {
|
|
16373
|
-
return
|
|
16373
|
+
return hl(e), e.headers = Vn.from(e.headers), e.data = fl.call(
|
|
16374
16374
|
e,
|
|
16375
16375
|
e.transformRequest
|
|
16376
16376
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bm.getAdapter(e.adapter || Ai.adapter, e)(e).then(function(r) {
|
|
16377
|
-
return
|
|
16377
|
+
return hl(e), r.data = fl.call(
|
|
16378
16378
|
e,
|
|
16379
16379
|
e.transformResponse,
|
|
16380
16380
|
r
|
|
16381
16381
|
), r.headers = Vn.from(r.headers), r;
|
|
16382
16382
|
}, function(r) {
|
|
16383
|
-
return Am(r) || (
|
|
16383
|
+
return Am(r) || (hl(e), r && r.response && (r.response.data = fl.call(
|
|
16384
16384
|
e,
|
|
16385
16385
|
e.transformResponse,
|
|
16386
16386
|
r.response
|
|
@@ -16641,7 +16641,7 @@ function bS(e) {
|
|
|
16641
16641
|
function wS(e) {
|
|
16642
16642
|
return Z.isObject(e) && e.isAxiosError === !0;
|
|
16643
16643
|
}
|
|
16644
|
-
const
|
|
16644
|
+
const _c = {
|
|
16645
16645
|
Continue: 100,
|
|
16646
16646
|
SwitchingProtocols: 101,
|
|
16647
16647
|
Processing: 102,
|
|
@@ -16712,8 +16712,8 @@ const kc = {
|
|
|
16712
16712
|
SslHandshakeFailed: 525,
|
|
16713
16713
|
InvalidSslCertificate: 526
|
|
16714
16714
|
};
|
|
16715
|
-
Object.entries(
|
|
16716
|
-
|
|
16715
|
+
Object.entries(_c).forEach(([e, n]) => {
|
|
16716
|
+
_c[n] = e;
|
|
16717
16717
|
});
|
|
16718
16718
|
function Lm(e) {
|
|
16719
16719
|
const n = new Bo(e), t = vm(Bo.prototype.request, n);
|
|
@@ -16739,7 +16739,7 @@ Jt.mergeConfig = Vo;
|
|
|
16739
16739
|
Jt.AxiosHeaders = Vn;
|
|
16740
16740
|
Jt.formToJSON = (e) => Tm(Z.isHTMLForm(e) ? new FormData(e) : e);
|
|
16741
16741
|
Jt.getAdapter = Bm.getAdapter;
|
|
16742
|
-
Jt.HttpStatusCode =
|
|
16742
|
+
Jt.HttpStatusCode = _c;
|
|
16743
16743
|
Jt.default = Jt;
|
|
16744
16744
|
const {
|
|
16745
16745
|
Axios: ND,
|
|
@@ -16761,7 +16761,8 @@ const {
|
|
|
16761
16761
|
} = Jt;
|
|
16762
16762
|
class kn {
|
|
16763
16763
|
constructor() {
|
|
16764
|
-
|
|
16764
|
+
Uu(this, "axiosInstance");
|
|
16765
|
+
Uu(this, "isRefresh", !1);
|
|
16765
16766
|
this.axiosInstance = Jt.create({
|
|
16766
16767
|
baseURL: process.env.VUE_APP_BACKEND,
|
|
16767
16768
|
headers: {
|
|
@@ -16777,9 +16778,14 @@ class kn {
|
|
|
16777
16778
|
(n) => Promise.reject(n)
|
|
16778
16779
|
), this.axiosInstance.interceptors.response.use(
|
|
16779
16780
|
(n) => n.data,
|
|
16780
|
-
(n) => {
|
|
16781
|
+
async (n) => {
|
|
16781
16782
|
var t, r;
|
|
16782
|
-
return ((
|
|
16783
|
+
return ((t = n.response) == null ? void 0 : t.status) === 401 || ((r = n.response) == null ? void 0 : r.status) === 403 ? this.getToken() && !this.isRefresh ? (this.isRefresh = !0, this.refresh().then((o) => {
|
|
16784
|
+
if (!(o != null && o.accessToken))
|
|
16785
|
+
return alert("logout"), console.log(o), this.logoutUser();
|
|
16786
|
+
if (o != null && o.accessToken)
|
|
16787
|
+
return console.log(o), alert("da"), !0;
|
|
16788
|
+
})) : this.logoutUser() : Promise.reject(n);
|
|
16783
16789
|
}
|
|
16784
16790
|
);
|
|
16785
16791
|
}
|
|
@@ -16789,12 +16795,11 @@ class kn {
|
|
|
16789
16795
|
removeToken() {
|
|
16790
16796
|
localStorage.removeItem("token");
|
|
16791
16797
|
}
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
return console.log(n), {};
|
|
16798
|
+
refresh() {
|
|
16799
|
+
return this.post("/v2/auth/refresh", null);
|
|
16795
16800
|
}
|
|
16796
|
-
|
|
16797
|
-
this.removeToken(), window.location.href = "/sign-in";
|
|
16801
|
+
logoutUser() {
|
|
16802
|
+
return this.post("/v2/logout", null), this.removeToken(), window.location.href = "/sign-in", {};
|
|
16798
16803
|
}
|
|
16799
16804
|
handleError(n) {
|
|
16800
16805
|
n.response ? console.error("API Error:", n.response.status, n.response.data) : n.request ? console.error("No response received:", n.request) : console.error("Error during request setup:", n.message);
|
|
@@ -16854,9 +16859,9 @@ class xS extends kn {
|
|
|
16854
16859
|
return t.append("projects[0]", n), t.append("filter[state]", "1"), await this.post(`/gantt/set-planned-date?${t.toString()}`, null);
|
|
16855
16860
|
}
|
|
16856
16861
|
}
|
|
16857
|
-
let
|
|
16862
|
+
let pl;
|
|
16858
16863
|
function JD() {
|
|
16859
|
-
return
|
|
16864
|
+
return pl || (pl = new xS()), pl;
|
|
16860
16865
|
}
|
|
16861
16866
|
class CS extends kn {
|
|
16862
16867
|
async fetchPieProjects(n) {
|
|
@@ -16944,9 +16949,9 @@ class CS extends kn {
|
|
|
16944
16949
|
return await this.get("repairs/metrics/get_list_task_by_status?" + n);
|
|
16945
16950
|
}
|
|
16946
16951
|
}
|
|
16947
|
-
let
|
|
16952
|
+
let vl;
|
|
16948
16953
|
function eM() {
|
|
16949
|
-
return
|
|
16954
|
+
return vl || (vl = new CS()), vl;
|
|
16950
16955
|
}
|
|
16951
16956
|
class kS extends kn {
|
|
16952
16957
|
async fetchProjectById(n) {
|
|
@@ -17005,9 +17010,9 @@ class kS extends kn {
|
|
|
17005
17010
|
return this.post(`/set/fake/projects/${n}`, t);
|
|
17006
17011
|
}
|
|
17007
17012
|
}
|
|
17008
|
-
let
|
|
17013
|
+
let ml;
|
|
17009
17014
|
function tM() {
|
|
17010
|
-
return
|
|
17015
|
+
return ml || (ml = new kS()), ml;
|
|
17011
17016
|
}
|
|
17012
17017
|
class _S extends kn {
|
|
17013
17018
|
fetchFilters(n) {
|
|
@@ -17076,9 +17081,9 @@ class _S extends kn {
|
|
|
17076
17081
|
return this.get(`v3/repairs/${n}/personnel/intersection`);
|
|
17077
17082
|
}
|
|
17078
17083
|
}
|
|
17079
|
-
let
|
|
17084
|
+
let gl;
|
|
17080
17085
|
function nM() {
|
|
17081
|
-
return
|
|
17086
|
+
return gl || (gl = new _S()), gl;
|
|
17082
17087
|
}
|
|
17083
17088
|
class SS extends kn {
|
|
17084
17089
|
fetchTaskById(n) {
|
|
@@ -17169,9 +17174,9 @@ class SS extends kn {
|
|
|
17169
17174
|
return this.post("/check_branch_before_close_task", { task_id: n });
|
|
17170
17175
|
}
|
|
17171
17176
|
}
|
|
17172
|
-
let
|
|
17177
|
+
let yl;
|
|
17173
17178
|
function rM() {
|
|
17174
|
-
return
|
|
17179
|
+
return yl || (yl = new SS()), yl;
|
|
17175
17180
|
}
|
|
17176
17181
|
class ES extends kn {
|
|
17177
17182
|
login(n, t) {
|
|
@@ -17189,7 +17194,7 @@ class ES extends kn {
|
|
|
17189
17194
|
});
|
|
17190
17195
|
}
|
|
17191
17196
|
logout() {
|
|
17192
|
-
return this.
|
|
17197
|
+
return this.logoutUser();
|
|
17193
17198
|
}
|
|
17194
17199
|
userInfo() {
|
|
17195
17200
|
return this.get("/users/auth");
|
|
@@ -17204,9 +17209,9 @@ class ES extends kn {
|
|
|
17204
17209
|
});
|
|
17205
17210
|
}
|
|
17206
17211
|
}
|
|
17207
|
-
let
|
|
17212
|
+
let bl;
|
|
17208
17213
|
function oM() {
|
|
17209
|
-
return
|
|
17214
|
+
return bl || (bl = new ES()), bl;
|
|
17210
17215
|
}
|
|
17211
17216
|
class RS extends kn {
|
|
17212
17217
|
uploadFile(n) {
|
|
@@ -17215,9 +17220,9 @@ class RS extends kn {
|
|
|
17215
17220
|
});
|
|
17216
17221
|
}
|
|
17217
17222
|
}
|
|
17218
|
-
let
|
|
17223
|
+
let wl;
|
|
17219
17224
|
function aM() {
|
|
17220
|
-
return
|
|
17225
|
+
return wl || (wl = new RS()), wl;
|
|
17221
17226
|
}
|
|
17222
17227
|
class IS extends kn {
|
|
17223
17228
|
async startVideoAnalytics() {
|
|
@@ -17294,9 +17299,9 @@ class IS extends kn {
|
|
|
17294
17299
|
return await this.post("alerts_callback_url", n);
|
|
17295
17300
|
}
|
|
17296
17301
|
}
|
|
17297
|
-
let
|
|
17302
|
+
let xl;
|
|
17298
17303
|
function iM() {
|
|
17299
|
-
return
|
|
17304
|
+
return xl || (xl = new IS()), xl;
|
|
17300
17305
|
}
|
|
17301
17306
|
class TS extends kn {
|
|
17302
17307
|
async editUser({ id: n, model: t }) {
|
|
@@ -17374,9 +17379,9 @@ class TS extends kn {
|
|
|
17374
17379
|
return await this.post("users/check_user_before_archive", n);
|
|
17375
17380
|
}
|
|
17376
17381
|
}
|
|
17377
|
-
let
|
|
17382
|
+
let Cl;
|
|
17378
17383
|
function sM() {
|
|
17379
|
-
return
|
|
17384
|
+
return Cl || (Cl = new TS()), Cl;
|
|
17380
17385
|
}
|
|
17381
17386
|
class AS extends kn {
|
|
17382
17387
|
async fetchUserInstrumentsHistory(n, t) {
|
|
@@ -17416,9 +17421,9 @@ class AS extends kn {
|
|
|
17416
17421
|
return await this.get("search/instruments", { params: n });
|
|
17417
17422
|
}
|
|
17418
17423
|
}
|
|
17419
|
-
let
|
|
17424
|
+
let kl;
|
|
17420
17425
|
function uM() {
|
|
17421
|
-
return
|
|
17426
|
+
return kl || (kl = new AS()), kl;
|
|
17422
17427
|
}
|
|
17423
17428
|
class DS extends kn {
|
|
17424
17429
|
fetchControlZones(n) {
|
|
@@ -17479,9 +17484,9 @@ class DS extends kn {
|
|
|
17479
17484
|
return this.get("exposed_equipment_zones_history/list/export", { params: n, responseType: "blob" });
|
|
17480
17485
|
}
|
|
17481
17486
|
}
|
|
17482
|
-
let
|
|
17487
|
+
let _l;
|
|
17483
17488
|
function lM() {
|
|
17484
|
-
return
|
|
17489
|
+
return _l || (_l = new DS()), _l;
|
|
17485
17490
|
}
|
|
17486
17491
|
class MS extends kn {
|
|
17487
17492
|
fetchSearchUsers(n) {
|
|
@@ -17494,9 +17499,9 @@ class MS extends kn {
|
|
|
17494
17499
|
return this.get("search/modules", { params: n });
|
|
17495
17500
|
}
|
|
17496
17501
|
}
|
|
17497
|
-
let
|
|
17502
|
+
let Sl;
|
|
17498
17503
|
function cM() {
|
|
17499
|
-
return
|
|
17504
|
+
return Sl || (Sl = new MS()), Sl;
|
|
17500
17505
|
}
|
|
17501
17506
|
class FS extends kn {
|
|
17502
17507
|
async detectModule(n) {
|
|
@@ -17512,9 +17517,9 @@ class FS extends kn {
|
|
|
17512
17517
|
return this.delete(`admin/modules/${n}`);
|
|
17513
17518
|
}
|
|
17514
17519
|
}
|
|
17515
|
-
let
|
|
17520
|
+
let El;
|
|
17516
17521
|
function dM() {
|
|
17517
|
-
return
|
|
17522
|
+
return El || (El = new FS()), El;
|
|
17518
17523
|
}
|
|
17519
17524
|
class PS extends kn {
|
|
17520
17525
|
async uploadComment(n) {
|
|
@@ -17527,9 +17532,9 @@ class PS extends kn {
|
|
|
17527
17532
|
return await this.put(`comments/${n}`, t);
|
|
17528
17533
|
}
|
|
17529
17534
|
}
|
|
17530
|
-
let
|
|
17535
|
+
let Rl;
|
|
17531
17536
|
function fM() {
|
|
17532
|
-
return
|
|
17537
|
+
return Rl || (Rl = new PS()), Rl;
|
|
17533
17538
|
}
|
|
17534
17539
|
class BS extends kn {
|
|
17535
17540
|
fetchEquipment(n) {
|
|
@@ -17545,9 +17550,9 @@ class BS extends kn {
|
|
|
17545
17550
|
return this.delete(`repairs/equipment/${n}`);
|
|
17546
17551
|
}
|
|
17547
17552
|
}
|
|
17548
|
-
let
|
|
17553
|
+
let Il;
|
|
17549
17554
|
function hM() {
|
|
17550
|
-
return
|
|
17555
|
+
return Il || (Il = new BS()), Il;
|
|
17551
17556
|
}
|
|
17552
17557
|
class OS extends kn {
|
|
17553
17558
|
fetchBrigades(n) {
|
|
@@ -17566,9 +17571,9 @@ class OS extends kn {
|
|
|
17566
17571
|
return this.delete(`/brigades/${n}`);
|
|
17567
17572
|
}
|
|
17568
17573
|
}
|
|
17569
|
-
let
|
|
17574
|
+
let Tl;
|
|
17570
17575
|
function pM() {
|
|
17571
|
-
return
|
|
17576
|
+
return Tl || (Tl = new OS()), Tl;
|
|
17572
17577
|
}
|
|
17573
17578
|
class NS extends kn {
|
|
17574
17579
|
fetchScheduleConfig() {
|
|
@@ -17610,9 +17615,9 @@ class NS extends kn {
|
|
|
17610
17615
|
return this.patch(`schedule/${n}/delete_brigades`, { brigade_ids: t });
|
|
17611
17616
|
}
|
|
17612
17617
|
}
|
|
17613
|
-
let
|
|
17618
|
+
let Al;
|
|
17614
17619
|
function vM() {
|
|
17615
|
-
return
|
|
17620
|
+
return Al || (Al = new NS()), Al;
|
|
17616
17621
|
}
|
|
17617
17622
|
/**
|
|
17618
17623
|
* @license
|
|
@@ -17781,13 +17786,13 @@ function qS(e, n, t) {
|
|
|
17781
17786
|
function ie() {
|
|
17782
17787
|
return Vm;
|
|
17783
17788
|
}
|
|
17784
|
-
var Vm = null, Os = /* @__PURE__ */ new Map(),
|
|
17789
|
+
var Vm = null, Os = /* @__PURE__ */ new Map(), Sc = /* @__PURE__ */ new Map();
|
|
17785
17790
|
function zm(e, n) {
|
|
17786
17791
|
var t = Wm(e, n);
|
|
17787
17792
|
return Os.get(t);
|
|
17788
17793
|
}
|
|
17789
17794
|
function VS(e) {
|
|
17790
|
-
return
|
|
17795
|
+
return Sc.get(e);
|
|
17791
17796
|
}
|
|
17792
17797
|
function Xh(e) {
|
|
17793
17798
|
for (var n = Os.entries(), t = []; ; ) {
|
|
@@ -17805,12 +17810,12 @@ function $m(e) {
|
|
|
17805
17810
|
}
|
|
17806
17811
|
function zS(e) {
|
|
17807
17812
|
var n = e.kernelName;
|
|
17808
|
-
|
|
17813
|
+
Sc.has(n) && console.warn("Overriding the gradient for '" + n + "'"), Sc.set(n, e);
|
|
17809
17814
|
}
|
|
17810
17815
|
function Wm(e, n) {
|
|
17811
17816
|
return n + "_" + e;
|
|
17812
17817
|
}
|
|
17813
|
-
function
|
|
17818
|
+
function Ec(e, n, t) {
|
|
17814
17819
|
return Math.max(e, Math.min(n, t));
|
|
17815
17820
|
}
|
|
17816
17821
|
function Hm(e) {
|
|
@@ -17859,7 +17864,7 @@ function WS(e) {
|
|
|
17859
17864
|
var n = Math.exp(2 * e);
|
|
17860
17865
|
return (n - 1) / (n + 1);
|
|
17861
17866
|
}
|
|
17862
|
-
function
|
|
17867
|
+
function Rc(e) {
|
|
17863
17868
|
var n = Math.ceil(Math.sqrt(e));
|
|
17864
17869
|
return [n, Math.ceil(e / n)];
|
|
17865
17870
|
}
|
|
@@ -17971,7 +17976,7 @@ function KS(e) {
|
|
|
17971
17976
|
return n += t.length;
|
|
17972
17977
|
}), n;
|
|
17973
17978
|
}
|
|
17974
|
-
function
|
|
17979
|
+
function Id(e) {
|
|
17975
17980
|
return typeof e == "string" || e instanceof String;
|
|
17976
17981
|
}
|
|
17977
17982
|
function YS(e) {
|
|
@@ -17981,12 +17986,12 @@ function XS(e) {
|
|
|
17981
17986
|
return typeof e == "number";
|
|
17982
17987
|
}
|
|
17983
17988
|
function Di(e) {
|
|
17984
|
-
return Array.isArray(e) ? Di(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : XS(e) ? "float32" :
|
|
17989
|
+
return Array.isArray(e) ? Di(e[0]) : e instanceof Float32Array ? "float32" : e instanceof Int32Array || e instanceof Uint8Array ? "int32" : XS(e) ? "float32" : Id(e) ? "string" : YS(e) ? "bool" : "float32";
|
|
17985
17990
|
}
|
|
17986
|
-
function
|
|
17991
|
+
function Ic(e) {
|
|
17987
17992
|
return !!(e && e.constructor && e.call && e.apply);
|
|
17988
17993
|
}
|
|
17989
|
-
function
|
|
17994
|
+
function Tc(e, n) {
|
|
17990
17995
|
for (var t = n; t < e; ++t) if (e % t == 0) return t;
|
|
17991
17996
|
return e;
|
|
17992
17997
|
}
|
|
@@ -18103,7 +18108,7 @@ var JS = function() {
|
|
|
18103
18108
|
}
|
|
18104
18109
|
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");
|
|
18105
18110
|
}, e;
|
|
18106
|
-
}(), ep = 20, Qa = 3,
|
|
18111
|
+
}(), ep = 20, Qa = 3, Dl = 7;
|
|
18107
18112
|
function t4(e, n, t, r) {
|
|
18108
18113
|
var o = Rr(n), a = function(l, c, d, f) {
|
|
18109
18114
|
var h = Be(c), p = f[f.length - 1], m = new Array(p).fill(0), v = c.length, y = d === "complex64" ? Ja(l) : l;
|
|
@@ -18154,7 +18159,7 @@ function t4(e, n, t, r) {
|
|
|
18154
18159
|
`);
|
|
18155
18160
|
}
|
|
18156
18161
|
function Za(e, n, t) {
|
|
18157
|
-
return ya(Array.isArray(e) ? parseFloat(e[0].toFixed(
|
|
18162
|
+
return ya(Array.isArray(e) ? parseFloat(e[0].toFixed(Dl)) + " + " + parseFloat(e[1].toFixed(Dl)) + "j" : Id(e) ? "'" + e + "'" : t === "bool" ? Ym(e) : parseFloat(e.toFixed(Dl)).toString(), n);
|
|
18158
18163
|
}
|
|
18159
18164
|
function Ym(e) {
|
|
18160
18165
|
return e === 0 ? "false" : "true";
|
|
@@ -18602,7 +18607,7 @@ var hi = function() {
|
|
|
18602
18607
|
Object.defineProperty(Ht, Symbol.hasInstance, { value: function(e) {
|
|
18603
18608
|
return !!e && e.dataId != null && e.shape != null && e.dtype != null;
|
|
18604
18609
|
} });
|
|
18605
|
-
var tp,
|
|
18610
|
+
var tp, Ac, Dc, Mc, Fc, Ma = function(e) {
|
|
18606
18611
|
function n(t, r, o, a) {
|
|
18607
18612
|
var i = e.call(this, t.shape, t.dtype, t.dataId, a) || this;
|
|
18608
18613
|
return i.trainable = r, i.name = o, i;
|
|
@@ -18621,14 +18626,14 @@ Object.defineProperty(Ma, Symbol.hasInstance, { value: function(e) {
|
|
|
18621
18626
|
e.R0 = "R0", e.R1 = "R1", e.R2 = "R2", e.R3 = "R3", e.R4 = "R4", e.R5 = "R5", e.R6 = "R6";
|
|
18622
18627
|
}(tp || (tp = {})), function(e) {
|
|
18623
18628
|
e.float32 = "float32", e.int32 = "int32", e.bool = "int32", e.complex64 = "complex64";
|
|
18624
|
-
}(Tc || (Tc = {})), function(e) {
|
|
18625
|
-
e.float32 = "float32", e.int32 = "int32", e.bool = "bool", e.complex64 = "complex64";
|
|
18626
18629
|
}(Ac || (Ac = {})), function(e) {
|
|
18627
|
-
e.float32 = "float32", e.int32 = "
|
|
18630
|
+
e.float32 = "float32", e.int32 = "int32", e.bool = "bool", e.complex64 = "complex64";
|
|
18628
18631
|
}(Dc || (Dc = {})), function(e) {
|
|
18632
|
+
e.float32 = "float32", e.int32 = "float32", e.bool = "float32", e.complex64 = "complex64";
|
|
18633
|
+
}(Mc || (Mc = {})), function(e) {
|
|
18629
18634
|
e.float32 = "complex64", e.int32 = "complex64", e.bool = "complex64", e.complex64 = "complex64";
|
|
18630
|
-
}(
|
|
18631
|
-
var n4 = { float32:
|
|
18635
|
+
}(Fc || (Fc = {}));
|
|
18636
|
+
var n4 = { float32: Mc, int32: Ac, bool: Dc, complex64: Fc };
|
|
18632
18637
|
function bn(e, n) {
|
|
18633
18638
|
if (e === "string" || n === "string") {
|
|
18634
18639
|
if (e === "string" && n === "string") return "string";
|
|
@@ -18636,7 +18641,7 @@ function bn(e, n) {
|
|
|
18636
18641
|
}
|
|
18637
18642
|
return n4[e][n];
|
|
18638
18643
|
}
|
|
18639
|
-
function
|
|
18644
|
+
function Ml(e) {
|
|
18640
18645
|
return bn(e, "int32");
|
|
18641
18646
|
}
|
|
18642
18647
|
function jt(e, n) {
|
|
@@ -18664,7 +18669,7 @@ function Qm(e) {
|
|
|
18664
18669
|
}
|
|
18665
18670
|
}(e, n, /* @__PURE__ */ new Set()), n;
|
|
18666
18671
|
}
|
|
18667
|
-
var
|
|
18672
|
+
var Fl, np = function() {
|
|
18668
18673
|
function e() {
|
|
18669
18674
|
this.registeredVariables = {}, this.nextTapeNodeId = 0, this.numBytes = 0, this.numTensors = 0, this.numStringTensors = 0, this.numDataBuffers = 0, this.gradientDepth = 0, this.kernelDepth = 0, this.scopeStack = [], this.numDataMovesStack = [], this.nextScopeId = 0, this.tensorInfo = /* @__PURE__ */ new WeakMap(), this.profiling = !1, this.activeProfile = { newBytes: 0, newTensors: 0, peakBytes: 0, kernels: [], result: null };
|
|
18670
18675
|
}
|
|
@@ -18874,7 +18879,7 @@ var Ml, np = function() {
|
|
|
18874
18879
|
if (n == null) throw new Error("Values passed to engine.makeTensor() are null");
|
|
18875
18880
|
r = r || "float32", o = o || this.backend;
|
|
18876
18881
|
var a = n;
|
|
18877
|
-
r === "string" &&
|
|
18882
|
+
r === "string" && Id(n[0]) && (a = n.map(function(c) {
|
|
18878
18883
|
return QS(c);
|
|
18879
18884
|
}));
|
|
18880
18885
|
var i = o.write(a, t, r), s = new Ht(t, r, i, this.nextTensorId());
|
|
@@ -19047,7 +19052,7 @@ var Ml, np = function() {
|
|
|
19047
19052
|
});
|
|
19048
19053
|
}, e.prototype.customGrad = function(n) {
|
|
19049
19054
|
var t = this;
|
|
19050
|
-
return B(
|
|
19055
|
+
return B(Ic(n), function() {
|
|
19051
19056
|
return "The f passed in customGrad(f) must be a function.";
|
|
19052
19057
|
}), function() {
|
|
19053
19058
|
for (var r, o = [], a = 0; a < arguments.length; a++) o[a] = arguments[a];
|
|
@@ -19062,7 +19067,7 @@ var Ml, np = function() {
|
|
|
19062
19067
|
}), t.runKernelFunc(function(s, u) {
|
|
19063
19068
|
return B((r = n.apply(void 0, o.concat([u]))).value instanceof Ht, function() {
|
|
19064
19069
|
return "The function f passed in customGrad(f) must return an object where `obj.value` is a tensor";
|
|
19065
|
-
}), B(
|
|
19070
|
+
}), B(Ic(r.gradFunc), function() {
|
|
19066
19071
|
return "The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function.";
|
|
19067
19072
|
}), r.value;
|
|
19068
19073
|
}, i, function(s, u) {
|
|
@@ -19108,7 +19113,7 @@ var Ml, np = function() {
|
|
|
19108
19113
|
}, e.nextTensorId = 0, e.nextVariableId = 0, e;
|
|
19109
19114
|
}(), j = function() {
|
|
19110
19115
|
var e = function() {
|
|
19111
|
-
if (
|
|
19116
|
+
if (Fl == null) {
|
|
19112
19117
|
var t = void 0;
|
|
19113
19118
|
if (typeof window < "u") t = window;
|
|
19114
19119
|
else if (typeof global < "u") t = global;
|
|
@@ -19117,9 +19122,9 @@ var Ml, np = function() {
|
|
|
19117
19122
|
if (typeof self > "u") throw new Error("Could not find a global object");
|
|
19118
19123
|
t = self;
|
|
19119
19124
|
}
|
|
19120
|
-
|
|
19125
|
+
Fl = t;
|
|
19121
19126
|
}
|
|
19122
|
-
return
|
|
19127
|
+
return Fl;
|
|
19123
19128
|
}();
|
|
19124
19129
|
if (e._tfengine == null) {
|
|
19125
19130
|
var n = new LS(e);
|
|
@@ -19154,7 +19159,7 @@ Nr.registerFlag("DEBUG", function() {
|
|
|
19154
19159
|
}), Nr.registerFlag("IS_TEST", function() {
|
|
19155
19160
|
return !1;
|
|
19156
19161
|
});
|
|
19157
|
-
var pi, Yn, Un, ko = {},
|
|
19162
|
+
var pi, Yn, Un, ko = {}, Pl = { alpha: !1, antialias: !1, premultipliedAlpha: !1, preserveDrawingBuffer: !1, depth: !1, stencil: !1, failIfMajorPerformanceCaveat: !0 };
|
|
19158
19163
|
function a4(e, n) {
|
|
19159
19164
|
ko[e] = n;
|
|
19160
19165
|
}
|
|
@@ -19168,7 +19173,7 @@ function Mr(e) {
|
|
|
19168
19173
|
}(t);
|
|
19169
19174
|
return r.addEventListener("webglcontextlost", function(o) {
|
|
19170
19175
|
o.preventDefault(), delete ko[t];
|
|
19171
|
-
}, !1), t === 1 ? r.getContext("webgl",
|
|
19176
|
+
}, !1), t === 1 ? r.getContext("webgl", Pl) || r.getContext("experimental-webgl", Pl) : r.getContext("webgl2", Pl);
|
|
19172
19177
|
}(e));
|
|
19173
19178
|
var n = ko[e];
|
|
19174
19179
|
return n.isContextLost() ? (delete ko[e], Mr(e)) : (n.disable(n.DEPTH_TEST), n.disable(n.STENCIL_TEST), n.disable(n.BLEND), n.disable(n.DITHER), n.disable(n.POLYGON_OFFSET_FILL), n.disable(n.SAMPLE_COVERAGE), n.enable(n.SCISSOR_TEST), n.enable(n.CULL_FACE), n.cullFace(n.BACK), ko[e]);
|
|
@@ -19178,12 +19183,12 @@ function _u(e, n) {
|
|
|
19178
19183
|
}
|
|
19179
19184
|
function oi(e) {
|
|
19180
19185
|
var n = Be(e);
|
|
19181
|
-
return
|
|
19186
|
+
return Rc(Math.ceil(n / 4));
|
|
19182
19187
|
}
|
|
19183
19188
|
function Fi(e, n) {
|
|
19184
19189
|
return [Math.max(1, Math.ceil(n / 2)), Math.max(1, Math.ceil(e / 2))];
|
|
19185
19190
|
}
|
|
19186
|
-
function
|
|
19191
|
+
function Td(e, n) {
|
|
19187
19192
|
var t, r, o, a, i, s, u, l, c, d = e;
|
|
19188
19193
|
return ie().getNumber("WEBGL_VERSION") === 2 ? (t = d.R32F, r = d.R16F, o = d.RGBA16F, a = d.RGBA32F, i = d.RED, s = 4, u = 1, l = d.HALF_FLOAT, c = d.FLOAT) : (t = e.RGBA, r = e.RGBA, o = e.RGBA, a = d.RGBA, i = e.RGBA, s = 4, u = 4, l = n != null ? n.HALF_FLOAT_OES : null, c = e.FLOAT), { internalFormatFloat: t, internalFormatHalfFloat: r, internalFormatPackedHalfFloat: o, internalFormatPackedFloat: a, textureFormatFloat: i, downloadTextureFormat: e.RGBA, downloadUnpackNumChannels: s, defaultNumChannels: u, textureTypeHalfFloat: l, textureTypeFloat: c };
|
|
19189
19194
|
}
|
|
@@ -19264,7 +19269,7 @@ function d4(e, n, t) {
|
|
|
19264
19269
|
}(t, e.getShaderInfoLog(r)), new Error("Failed to compile fragment shader.");
|
|
19265
19270
|
return r;
|
|
19266
19271
|
}
|
|
19267
|
-
var
|
|
19272
|
+
var Bl, Ol, f4 = /ERROR: [0-9]+:([0-9]+):/g;
|
|
19268
19273
|
function h4(e, n) {
|
|
19269
19274
|
return Ur(e, n, function() {
|
|
19270
19275
|
return e.createProgram();
|
|
@@ -19275,7 +19280,7 @@ function p4(e, n, t) {
|
|
|
19275
19280
|
return e.linkProgram(t);
|
|
19276
19281
|
}), e.getProgramParameter(t, e.LINK_STATUS) === !1) throw console.log(e.getProgramInfoLog(t)), new Error("Failed to link vertex and fragment shaders.");
|
|
19277
19282
|
}
|
|
19278
|
-
function
|
|
19283
|
+
function Nl(e, n, t) {
|
|
19279
19284
|
if (Ne(e, n, function() {
|
|
19280
19285
|
return e.validateProgram(t);
|
|
19281
19286
|
}), e.getProgramParameter(t, e.VALIDATE_STATUS) === !1) throw console.log(e.getProgramInfoLog(t)), new Error("Shader program validation failed.");
|
|
@@ -19351,7 +19356,7 @@ function k4(e, n, t, r, o, a) {
|
|
|
19351
19356
|
return e.uniform1i(o, a);
|
|
19352
19357
|
});
|
|
19353
19358
|
}
|
|
19354
|
-
function
|
|
19359
|
+
function Ll(e, n, t, r) {
|
|
19355
19360
|
Ne(e, n, function() {
|
|
19356
19361
|
return e.bindFramebuffer(e.FRAMEBUFFER, r);
|
|
19357
19362
|
}), Ne(e, n, function() {
|
|
@@ -19401,7 +19406,7 @@ function Vs(e) {
|
|
|
19401
19406
|
if (e.length === 0) throw Error("Cannot get rows and columns of an empty shape array.");
|
|
19402
19407
|
return [e.length > 1 ? e[e.length - 2] : 1, e[e.length - 1]];
|
|
19403
19408
|
}
|
|
19404
|
-
function
|
|
19409
|
+
function ql(e) {
|
|
19405
19410
|
var n = [1, 1, 1];
|
|
19406
19411
|
return e.length === 0 || e.length === 1 && e[0] === 1 || (n = [qs(e)].concat(Vs(e))), n;
|
|
19407
19412
|
}
|
|
@@ -19424,11 +19429,11 @@ function E4(e, n) {
|
|
|
19424
19429
|
if (e.length === 4 && e[0] <= r && e[1] * e[2] * e[3] <= r) return [e[0], e[1] * e[2] * e[3]];
|
|
19425
19430
|
if (n) {
|
|
19426
19431
|
var i = qs(e), s = 2, u = 2;
|
|
19427
|
-
return e.length && (s = (t = Vs(e))[0], u = t[1]),
|
|
19432
|
+
return e.length && (s = (t = Vs(e))[0], u = t[1]), Rc(a = i * (s / 2) * (u / 2)).map(function(l) {
|
|
19428
19433
|
return 2 * l;
|
|
19429
19434
|
});
|
|
19430
19435
|
}
|
|
19431
|
-
return
|
|
19436
|
+
return Rc(a);
|
|
19432
19437
|
}
|
|
19433
19438
|
function Ji(e) {
|
|
19434
19439
|
return e % 2 == 0;
|
|
@@ -19442,18 +19447,18 @@ function es(e, n) {
|
|
|
19442
19447
|
return e[1] === n[1] && Ji(e[0]) && Ji(n[0]);
|
|
19443
19448
|
}
|
|
19444
19449
|
function R4(e) {
|
|
19445
|
-
if (
|
|
19450
|
+
if (Bl == null) {
|
|
19446
19451
|
var n = Mr(e);
|
|
19447
|
-
|
|
19452
|
+
Bl = n.getParameter(n.MAX_TEXTURE_SIZE);
|
|
19448
19453
|
}
|
|
19449
|
-
return
|
|
19454
|
+
return Bl;
|
|
19450
19455
|
}
|
|
19451
19456
|
function I4(e) {
|
|
19452
|
-
if (
|
|
19457
|
+
if (Ol == null) {
|
|
19453
19458
|
var n = Mr(e);
|
|
19454
|
-
|
|
19459
|
+
Ol = n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS);
|
|
19455
19460
|
}
|
|
19456
|
-
return Math.min(16,
|
|
19461
|
+
return Math.min(16, Ol);
|
|
19457
19462
|
}
|
|
19458
19463
|
function T4(e) {
|
|
19459
19464
|
if (e === 0) return 0;
|
|
@@ -19477,17 +19482,17 @@ function A4(e) {
|
|
|
19477
19482
|
if (e === 1) {
|
|
19478
19483
|
if (!ar(n, "OES_texture_float")) return !1;
|
|
19479
19484
|
} else if (!ar(n, "EXT_color_buffer_float")) return !1;
|
|
19480
|
-
return
|
|
19485
|
+
return Pc(n);
|
|
19481
19486
|
}
|
|
19482
19487
|
function D4(e) {
|
|
19483
19488
|
if (e === 0) return !1;
|
|
19484
19489
|
var n = Mr(e);
|
|
19485
19490
|
if (e !== 1) {
|
|
19486
|
-
if (ar(n, "EXT_color_buffer_float")) return
|
|
19491
|
+
if (ar(n, "EXT_color_buffer_float")) return Pc(n);
|
|
19487
19492
|
if (ar(n, "EXT_color_buffer_half_float")) {
|
|
19488
19493
|
var t = n.getExtension("EXT_color_buffer_half_float");
|
|
19489
19494
|
return function(r, o) {
|
|
19490
|
-
var a =
|
|
19495
|
+
var a = Td(r, o), i = r.createTexture();
|
|
19491
19496
|
r.bindTexture(r.TEXTURE_2D, i), r.texImage2D(r.TEXTURE_2D, 0, a.internalFormatHalfFloat, 1, 1, 0, a.textureFormatFloat, a.textureTypeHalfFloat, null);
|
|
19492
19497
|
var s = r.createFramebuffer();
|
|
19493
19498
|
r.bindFramebuffer(r.FRAMEBUFFER, s), r.framebufferTexture2D(r.FRAMEBUFFER, r.COLOR_ATTACHMENT0, r.TEXTURE_2D, i, 0);
|
|
@@ -19497,10 +19502,10 @@ function D4(e) {
|
|
|
19497
19502
|
}
|
|
19498
19503
|
return !1;
|
|
19499
19504
|
}
|
|
19500
|
-
return !!ar(n, "OES_texture_float") && !!ar(n, "WEBGL_color_buffer_float") &&
|
|
19505
|
+
return !!ar(n, "OES_texture_float") && !!ar(n, "WEBGL_color_buffer_float") && Pc(n);
|
|
19501
19506
|
}
|
|
19502
|
-
function
|
|
19503
|
-
var n =
|
|
19507
|
+
function Pc(e) {
|
|
19508
|
+
var n = Td(e), t = e.createTexture();
|
|
19504
19509
|
e.bindTexture(e.TEXTURE_2D, t), e.texImage2D(e.TEXTURE_2D, 0, n.internalFormatFloat, 1, 1, 0, n.textureFormatFloat, n.textureTypeFloat, null);
|
|
19505
19510
|
var r = e.createFramebuffer();
|
|
19506
19511
|
e.bindFramebuffer(e.FRAMEBUFFER, r), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, t, 0);
|
|
@@ -19598,7 +19603,7 @@ function Fr(e, n) {
|
|
|
19598
19603
|
return t.push(o);
|
|
19599
19604
|
}), t;
|
|
19600
19605
|
}
|
|
19601
|
-
function
|
|
19606
|
+
function Ad(e) {
|
|
19602
19607
|
return e.map(function(n, t) {
|
|
19603
19608
|
return [t, n];
|
|
19604
19609
|
}).sort(function(n, t) {
|
|
@@ -19756,7 +19761,7 @@ function uo(e, n, t) {
|
|
|
19756
19761
|
if (r.length === 1 && n == null) throw new Error("tensor2d() requires shape to be provided when `values` are a flat/TypedArray");
|
|
19757
19762
|
return mo(e, n, r, t);
|
|
19758
19763
|
}
|
|
19759
|
-
function
|
|
19764
|
+
function Dd(e, n, t) {
|
|
19760
19765
|
if (Ha(e), n != null && n.length !== 3) throw new Error("tensor3d() requires shape to have three numbers");
|
|
19761
19766
|
var r = vo(e, t);
|
|
19762
19767
|
if (r.length !== 3 && r.length !== 1) throw new Error("tensor3d() requires values to be number[][][] or flat/TypedArray");
|
|
@@ -19871,7 +19876,7 @@ var tg = $({ onesLike_: function(e) {
|
|
|
19871
19876
|
var u = o.map(function(l) {
|
|
19872
19877
|
return l[n];
|
|
19873
19878
|
});
|
|
19874
|
-
return
|
|
19879
|
+
return Md(s, u, n).map(function(l) {
|
|
19875
19880
|
return function() {
|
|
19876
19881
|
return l;
|
|
19877
19882
|
};
|
|
@@ -19885,7 +19890,7 @@ var tg = $({ onesLike_: function(e) {
|
|
|
19885
19890
|
return on(e, n);
|
|
19886
19891
|
} }), W4 = $({ concat4d_: function(e, n) {
|
|
19887
19892
|
return on(e, n);
|
|
19888
|
-
} }),
|
|
19893
|
+
} }), Md = $({ split_: function(e, n, t) {
|
|
19889
19894
|
t === void 0 && (t = 0);
|
|
19890
19895
|
var r, o = M(e, "x", "split");
|
|
19891
19896
|
return t = ln(t, o.shape)[0], typeof n == "number" ? (B(o.shape[t] % n == 0, function() {
|
|
@@ -20151,7 +20156,7 @@ var H4 = Ho(function(e) {
|
|
|
20151
20156
|
})([], Math);
|
|
20152
20157
|
});
|
|
20153
20158
|
_o.alea = H4, _o.xor128 = U4, _o.xorwow = j4, _o.xorshift7 = G4, _o.xor4096 = K4, _o.tychei = Y4;
|
|
20154
|
-
var Su = _o.alea,
|
|
20159
|
+
var Su = _o.alea, Fd = function() {
|
|
20155
20160
|
function e(n, t, r, o, a) {
|
|
20156
20161
|
this.mean = n, this.stdDev = t, this.dtype = r, this.nextVal = NaN, this.truncated = o, this.truncated && (this.upper = this.mean + 2 * this.stdDev, this.lower = this.mean - 2 * this.stdDev);
|
|
20157
20162
|
var i = a || Math.random();
|
|
@@ -20180,7 +20185,7 @@ var Su = _o.alea, Md = function() {
|
|
|
20180
20185
|
function e(n, t, r, o) {
|
|
20181
20186
|
this.alpha = n, this.beta = 1 / t, this.dtype = r;
|
|
20182
20187
|
var a = o || Math.random();
|
|
20183
|
-
this.randu = Su(a.toString()), this.randn = new
|
|
20188
|
+
this.randu = Su(a.toString()), this.randn = new Fd(0, 1, r, !1, this.randu()), this.d = n < 1 ? n + 2 / 3 : n - 1 / 3, this.c = 1 / Math.sqrt(9 * this.d);
|
|
20184
20189
|
}
|
|
20185
20190
|
return e.prototype.nextValue = function() {
|
|
20186
20191
|
for (var n, t, r, o, a, i; ; ) {
|
|
@@ -20332,7 +20337,7 @@ var ng = $({ batchToSpaceND_: function(e, n, t) {
|
|
|
20332
20337
|
return l.multinomial(s, r, n, t);
|
|
20333
20338
|
}, { logits2D: s });
|
|
20334
20339
|
return i === 1 ? u.as1D() : u;
|
|
20335
|
-
} }),
|
|
20340
|
+
} }), Bc = $({ oneHot_: function(e, n, t, r) {
|
|
20336
20341
|
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);
|
|
20337
20342
|
var o = M(e, "indices", "oneHot", "int32"), a = o.shape.concat([n]);
|
|
20338
20343
|
return o = o.flatten(), j.runKernelFunc(function(i) {
|
|
@@ -20385,7 +20390,7 @@ var ng = $({ batchToSpaceND_: function(e, n, t) {
|
|
|
20385
20390
|
return j.makeTensor(o, e, t);
|
|
20386
20391
|
} }), cE = $({ randomNormal_: function(e, n, t, r, o) {
|
|
20387
20392
|
if (n === void 0 && (n = 0), t === void 0 && (t = 1), r != null && r === "bool") throw new Error("Unsupported data type " + r);
|
|
20388
|
-
for (var a = new
|
|
20393
|
+
for (var a = new Fd(n, t, r, !1, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
|
|
20389
20394
|
return i.toTensor();
|
|
20390
20395
|
} }), dE = $({ randomGamma_: function(e, n, t, r, o) {
|
|
20391
20396
|
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);
|
|
@@ -20473,7 +20478,7 @@ var ng = $({ batchToSpaceND_: function(e, n, t) {
|
|
|
20473
20478
|
}, "Tile", o, r);
|
|
20474
20479
|
} }), fE = $({ truncatedNormal_: function(e, n, t, r, o) {
|
|
20475
20480
|
if (n === void 0 && (n = 0), t === void 0 && (t = 1), r != null && r === "bool") throw new Error("Unsupported data type " + r);
|
|
20476
|
-
for (var a = new
|
|
20481
|
+
for (var a = new Fd(n, t, r, !0, o), i = ot(e, r), s = 0; s < i.values.length; s++) i.values[s] = a.nextValue();
|
|
20477
20482
|
return i.toTensor();
|
|
20478
20483
|
} }), an = $({ unstack_: function(e, n) {
|
|
20479
20484
|
n === void 0 && (n = 0), n = n || 0;
|
|
@@ -20568,8 +20573,8 @@ function lg(e, n) {
|
|
|
20568
20573
|
return [s, o, u, l];
|
|
20569
20574
|
}
|
|
20570
20575
|
var cg = 30;
|
|
20571
|
-
function
|
|
20572
|
-
return e <= cg ? e :
|
|
20576
|
+
function Vl(e) {
|
|
20577
|
+
return e <= cg ? e : Tc(e, Math.floor(Math.sqrt(e)));
|
|
20573
20578
|
}
|
|
20574
20579
|
function pE(e, n, t) {
|
|
20575
20580
|
var r = n.rank > 1 ? n.shape[n.rank - 1] : 1, o = n.rank > 1 ? n.rank - 1 : 1, a = "Must have updates.shape = indices.shape[:batchDim] + shape[sliceDim:], got updates.shape: " + t.shape + ", indices.shape: " + n.shape + ", shape: " + e + ", sliceDim: " + r + ", and batchDim: " + o + ".";
|
|
@@ -20611,7 +20616,7 @@ function sp(e) {
|
|
|
20611
20616
|
for (var n = [], t = 0; e > 0; ) 1 & e && n.push(t), e /= 2, t++;
|
|
20612
20617
|
return n;
|
|
20613
20618
|
}
|
|
20614
|
-
function
|
|
20619
|
+
function Pd(e, n, t) {
|
|
20615
20620
|
for (var r = [], o = 0; o < e.length; o++) r[o] = Math.ceil((n[o] - e[o]) / t[o]);
|
|
20616
20621
|
return r;
|
|
20617
20622
|
}
|
|
@@ -20619,13 +20624,13 @@ function gE(e, n, t, r, o) {
|
|
|
20619
20624
|
var a = n[o], i = t[o] || 1;
|
|
20620
20625
|
(e & 1 << o || a == null) && (a = i > 0 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER);
|
|
20621
20626
|
var s = r[o];
|
|
20622
|
-
return a < 0 && (a += s), a =
|
|
20627
|
+
return a < 0 && (a += s), a = Ec(0, a, s - 1);
|
|
20623
20628
|
}
|
|
20624
20629
|
function yE(e, n, t, r, o) {
|
|
20625
20630
|
var a = n[o], i = t[o] || 1;
|
|
20626
20631
|
(e & 1 << o || a == null) && (a = i > 0 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER);
|
|
20627
20632
|
var s = r[o];
|
|
20628
|
-
return a < 0 && (a += s), a = i > 0 ?
|
|
20633
|
+
return a < 0 && (a += s), a = i > 0 ? Ec(0, a, s) : Ec(-1, a, s - 1);
|
|
20629
20634
|
}
|
|
20630
20635
|
function dg(e, n, t) {
|
|
20631
20636
|
for (var r = t.length, o = 0; o < t.length; o++) if (t[o] > 1) {
|
|
@@ -20640,7 +20645,7 @@ function fg(e, n) {
|
|
|
20640
20645
|
return t;
|
|
20641
20646
|
}
|
|
20642
20647
|
function bE(e, n) {
|
|
20643
|
-
B(
|
|
20648
|
+
B(Ic(e), function() {
|
|
20644
20649
|
return "The f passed in variableGrads(f) must be a function";
|
|
20645
20650
|
}), B(n == null || Array.isArray(n) && n.every(function(c) {
|
|
20646
20651
|
return c instanceof Ma;
|
|
@@ -21058,7 +21063,7 @@ function vi(e, n, t, r, o, a, i) {
|
|
|
21058
21063
|
}
|
|
21059
21064
|
function Ks(e, n, t, r, o, a, i) {
|
|
21060
21065
|
i === void 0 && (i = "NDHWC");
|
|
21061
|
-
var s, u, l =
|
|
21066
|
+
var s, u, l = Oc(n), c = l[0], d = l[1], f = l[2];
|
|
21062
21067
|
if (i === "NDHWC") u = "channelsLast", s = [c, d, f, e[4], e[4]];
|
|
21063
21068
|
else {
|
|
21064
21069
|
if (i !== "NCDHW") throw new Error("Unknown dataFormat " + i);
|
|
@@ -21110,7 +21115,7 @@ function Ys(e, n, t, r, o, a, i, s) {
|
|
|
21110
21115
|
if (i !== "channelsFirst") throw new Error("Unknown dataFormat " + i);
|
|
21111
21116
|
l = e[0], h = e[1], c = e[2], d = e[3], f = e[4];
|
|
21112
21117
|
}
|
|
21113
|
-
var p, m = n[0], v = n[1], y = n[2], w = n[4], b =
|
|
21118
|
+
var p, m = n[0], v = n[1], y = n[2], w = n[4], b = Oc(t), g = b[0], x = b[1], C = b[2], S = Oc(r), E = S[0], R = S[1], k = S[2], T = wa(m, E), A = wa(v, R), q = wa(y, k), D = function(K, L, V, G, ne, ue, ce, le, we, ae, ze) {
|
|
21114
21119
|
var ge, Ee, Oe, et;
|
|
21115
21120
|
if (typeof K == "number") {
|
|
21116
21121
|
ge = { top: K, bottom: K, left: K, right: K, front: K, back: K, type: K === 0 ? "VALID" : "NUMBER" };
|
|
@@ -21150,7 +21155,7 @@ function vg(e, n, t, r) {
|
|
|
21150
21155
|
function Xs(e) {
|
|
21151
21156
|
return typeof e == "number" ? [e, e, e] : e.length === 2 ? [e[0], e[1], 1] : e;
|
|
21152
21157
|
}
|
|
21153
|
-
function
|
|
21158
|
+
function Oc(e) {
|
|
21154
21159
|
return typeof e == "number" ? [e, e, e] : e;
|
|
21155
21160
|
}
|
|
21156
21161
|
function wa(e, n) {
|
|
@@ -21176,7 +21181,7 @@ function Pa(e) {
|
|
|
21176
21181
|
function Wn(e, n) {
|
|
21177
21182
|
return Pa(e) || Pa(n);
|
|
21178
21183
|
}
|
|
21179
|
-
function
|
|
21184
|
+
function Bd(e) {
|
|
21180
21185
|
if (e === "NHWC") return "channelsLast";
|
|
21181
21186
|
if (e === "NCHW") return "channelsFirst";
|
|
21182
21187
|
throw new Error("Unknown dataFormat " + e);
|
|
@@ -21199,7 +21204,7 @@ function mg(e, n, t) {
|
|
|
21199
21204
|
}
|
|
21200
21205
|
throw new Error("Error in Cast: failed to cast " + e.dtype + " to " + n);
|
|
21201
21206
|
}
|
|
21202
|
-
function
|
|
21207
|
+
function Nc(e, n) {
|
|
21203
21208
|
return j.makeTensorFromDataId(e.dataId, n, e.dtype);
|
|
21204
21209
|
}
|
|
21205
21210
|
function gg(e, n, t) {
|
|
@@ -21208,7 +21213,7 @@ function gg(e, n, t) {
|
|
|
21208
21213
|
for (var a = 1; a < o.length; a++) o[a] = o[a - 1] + r;
|
|
21209
21214
|
return tn(o, "float32");
|
|
21210
21215
|
}
|
|
21211
|
-
function
|
|
21216
|
+
function Lc(e, n) {
|
|
21212
21217
|
if (e.length !== n.length) throw new Error("Cannot merge real and imag arrays of different lengths. real:" + e.length + ", imag: " + n.length + ".");
|
|
21213
21218
|
for (var t = new Float32Array(2 * e.length), r = 0; r < t.length; r += 2) t[r] = e[r / 2], t[r + 1] = n[r / 2];
|
|
21214
21219
|
return t;
|
|
@@ -21238,10 +21243,10 @@ function kE(e, n, t) {
|
|
|
21238
21243
|
function _E(e, n) {
|
|
21239
21244
|
return e > n ? 1 : e < n ? -1 : 0;
|
|
21240
21245
|
}
|
|
21241
|
-
function
|
|
21246
|
+
function Od(e, n, t, r, o) {
|
|
21242
21247
|
return yg(e, n, t, r, o, 0).selectedIndices;
|
|
21243
21248
|
}
|
|
21244
|
-
function
|
|
21249
|
+
function Nd(e, n, t, r, o, a) {
|
|
21245
21250
|
var i = yg(e, n, t, r, o, a);
|
|
21246
21251
|
return i.numValidOutputs.dispose(), { selectedIndices: i.selectedIndices, selectedScores: i.selectedScores };
|
|
21247
21252
|
}
|
|
@@ -21310,7 +21315,7 @@ function xg(e, n, t, r, o) {
|
|
|
21310
21315
|
var b = n.slice();
|
|
21311
21316
|
return b[b.length - 1] = r, [wn(l, b, t), wn(c, b, "int32")];
|
|
21312
21317
|
}
|
|
21313
|
-
function
|
|
21318
|
+
function Ld(e, n) {
|
|
21314
21319
|
for (var t = [], r = 0; r < n.length; r++) n[r] && t.push(r);
|
|
21315
21320
|
var o = ot(e, "int32"), a = ot([t.length, e.length], "int32");
|
|
21316
21321
|
for (r = 0; r < t.length; r++) {
|
|
@@ -21450,7 +21455,7 @@ function Io(e, n, t) {
|
|
|
21450
21455
|
return "int " + e[a] + " = " + t + " / " + o + "; " + (a === r.length - 1 ? "int " + e[a + 1] + " = " + t + " - " + e[a] + " * " + o : "index -= " + e[a] + " * " + o) + ";";
|
|
21451
21456
|
}).join("");
|
|
21452
21457
|
}
|
|
21453
|
-
function
|
|
21458
|
+
function qd(e) {
|
|
21454
21459
|
var n = Rr(e).map(function(t) {
|
|
21455
21460
|
return t.toString();
|
|
21456
21461
|
});
|
|
@@ -22566,7 +22571,7 @@ var BE = function(e, n, t, r) {
|
|
|
22566
22571
|
setOutput(binaryOpComplex(areal, aimag, breal, bimag));
|
|
22567
22572
|
}
|
|
22568
22573
|
`;
|
|
22569
|
-
},
|
|
22574
|
+
}, zl = "return a + b;", $l = "return a - b;", dp = "return a * b;", Sg = "return (a < 0.) ? b * a : a;", Kt = function(e, n, t) {
|
|
22570
22575
|
this.variableNames = ["A", "B"], this.outputShape = vt(n, t), this.userCode = `
|
|
22571
22576
|
float binaryOperation(float a, float b) {
|
|
22572
22577
|
` + e + `
|
|
@@ -23751,7 +23756,7 @@ var nR = function(e) {
|
|
|
23751
23756
|
this.outputShape = e;
|
|
23752
23757
|
var i = "result";
|
|
23753
23758
|
t && (i = "floor(result * 255. + 0.5)"), this.userCode = `
|
|
23754
|
-
` +
|
|
23759
|
+
` + qd(e) + `
|
|
23755
23760
|
|
|
23756
23761
|
void main() {
|
|
23757
23762
|
ivec3 coords = getOutputCoords();
|
|
@@ -23820,7 +23825,7 @@ var nR = function(e) {
|
|
|
23820
23825
|
`;
|
|
23821
23826
|
}
|
|
23822
23827
|
this.userCode = `
|
|
23823
|
-
` +
|
|
23828
|
+
` + qd(e) + `
|
|
23824
23829
|
|
|
23825
23830
|
void main() {
|
|
23826
23831
|
ivec3 coords = getOutputCoords();
|
|
@@ -24061,7 +24066,7 @@ var DR = function() {
|
|
|
24061
24066
|
if (!ar(this.gl, "EXT_color_buffer_half_float")) throw new Error("GL context does not support color renderable floats");
|
|
24062
24067
|
this.colorBufferHalfFloatExtension = this.gl.getExtension("EXT_color_buffer_half_float");
|
|
24063
24068
|
}
|
|
24064
|
-
this.vertexBuffer = mR(this.gl, this.debug), this.indexBuffer = gR(this.gl, this.debug), this.framebuffer = b4(this.gl, this.debug), this.textureConfig =
|
|
24069
|
+
this.vertexBuffer = mR(this.gl, this.debug), this.indexBuffer = gR(this.gl, this.debug), this.framebuffer = b4(this.gl, this.debug), this.textureConfig = Td(this.gl, this.textureHalfFloatExtension);
|
|
24065
24070
|
}
|
|
24066
24071
|
return Object.defineProperty(e.prototype, "debug", { get: function() {
|
|
24067
24072
|
return ie().getBool("DEBUG");
|
|
@@ -24145,7 +24150,7 @@ var DR = function() {
|
|
|
24145
24150
|
return t.attachShader(a, o);
|
|
24146
24151
|
}), Ne(t, this.debug, function() {
|
|
24147
24152
|
return t.attachShader(a, r);
|
|
24148
|
-
}), p4(t, this.debug, a), this.debug &&
|
|
24153
|
+
}), p4(t, this.debug, a), this.debug && Nl(t, this.debug, a), this.vertexAttrsAreBound || (this.setProgram(a), this.vertexAttrsAreBound = kR(t, this.debug, this.program, this.vertexBuffer)), a;
|
|
24149
24154
|
}, e.prototype.deleteProgram = function(n) {
|
|
24150
24155
|
var t = this;
|
|
24151
24156
|
this.throwIfDisposed(), n === this.program && (this.program = null), n != null && Ne(this.gl, this.debug, function() {
|
|
@@ -24153,7 +24158,7 @@ var DR = function() {
|
|
|
24153
24158
|
});
|
|
24154
24159
|
}, e.prototype.setProgram = function(n) {
|
|
24155
24160
|
var t = this;
|
|
24156
|
-
this.throwIfDisposed(), this.program = n, this.program != null && this.debug &&
|
|
24161
|
+
this.throwIfDisposed(), this.program = n, this.program != null && this.debug && Nl(this.gl, this.debug, this.program), Ne(this.gl, this.debug, function() {
|
|
24157
24162
|
return t.gl.useProgram(n);
|
|
24158
24163
|
});
|
|
24159
24164
|
}, e.prototype.getUniformLocation = function(n, t, r) {
|
|
@@ -24178,7 +24183,7 @@ var DR = function() {
|
|
|
24178
24183
|
}, e.prototype.setOutputPackedMatrixWriteRegion = function(n, t, r, o) {
|
|
24179
24184
|
throw new Error("setOutputPackedMatrixWriteRegion not implemented.");
|
|
24180
24185
|
}, e.prototype.debugValidate = function() {
|
|
24181
|
-
this.program != null &&
|
|
24186
|
+
this.program != null && Nl(this.gl, this.debug, this.program), Zi(this.gl);
|
|
24182
24187
|
}, e.prototype.executeProgram = function() {
|
|
24183
24188
|
this.throwIfDisposed(), this.throwIfNoProgram();
|
|
24184
24189
|
var n = this.gl;
|
|
@@ -24265,9 +24270,9 @@ var DR = function() {
|
|
|
24265
24270
|
return r.pollItems(), r.itemsToPoll.length === 0;
|
|
24266
24271
|
});
|
|
24267
24272
|
}, e.prototype.bindTextureToFrameBuffer = function(n) {
|
|
24268
|
-
this.throwIfDisposed(),
|
|
24273
|
+
this.throwIfDisposed(), Ll(this.gl, this.debug, n, this.framebuffer), this.debug && Zi(this.gl);
|
|
24269
24274
|
}, e.prototype.unbindTextureToFrameBuffer = function() {
|
|
24270
|
-
this.outputTexture != null ? (
|
|
24275
|
+
this.outputTexture != null ? (Ll(this.gl, this.debug, this.outputTexture, this.framebuffer), this.debug && Zi(this.gl)) : op(this.gl, this.debug, this.framebuffer);
|
|
24271
24276
|
}, e.prototype.downloadMatrixDriver = function(n, t) {
|
|
24272
24277
|
this.bindTextureToFrameBuffer(n);
|
|
24273
24278
|
var r = t();
|
|
@@ -24275,7 +24280,7 @@ var DR = function() {
|
|
|
24275
24280
|
}, e.prototype.setOutputMatrixTextureDriver = function(n, t, r) {
|
|
24276
24281
|
this.throwIfDisposed();
|
|
24277
24282
|
var o = this.gl;
|
|
24278
|
-
|
|
24283
|
+
Ll(o, this.debug, n, this.framebuffer), this.debug && Zi(o), this.outputTexture = n, Ne(o, this.debug, function() {
|
|
24279
24284
|
return o.viewport(0, 0, t, r);
|
|
24280
24285
|
}), Ne(o, this.debug, function() {
|
|
24281
24286
|
return o.scissor(0, 0, t, r);
|
|
@@ -24618,7 +24623,7 @@ var MR = function(e, n, t) {
|
|
|
24618
24623
|
setOutput(dotProd);
|
|
24619
24624
|
}
|
|
24620
24625
|
`;
|
|
24621
|
-
},
|
|
24626
|
+
}, Wl = function(e, n, t, r, o, a, i) {
|
|
24622
24627
|
t === void 0 && (t = !1), r === void 0 && (r = !1), o === void 0 && (o = !1), a === void 0 && (a = null), i === void 0 && (i = !1), this.variableNames = ["matrixA", "matrixB"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n;
|
|
24623
24628
|
var s = t ? e[1] : e[2], u = Math.ceil(s / 2), l = t ? "i * 2, rc.y" : "rc.y, i * 2", c = r ? "rc.z, i * 2" : "i * 2, rc.z", d = t ? ["a.xxyy", "a.zzww"] : ["a.xxzz", "a.yyww"], f = r ? ["b.xzxz", "b.ywyw"] : ["b.xyxy", "b.zwzw"], h = "", p = "";
|
|
24624
24629
|
a && (h = i ? `vec4 activation(vec4 a) {
|
|
@@ -24822,7 +24827,7 @@ var MR = function(e, n, t) {
|
|
|
24822
24827
|
setOutput(result);
|
|
24823
24828
|
}
|
|
24824
24829
|
`;
|
|
24825
|
-
},
|
|
24830
|
+
}, Hl = function(e, n, t) {
|
|
24826
24831
|
if (this.variableNames = ["x"], n === "avg" && t) throw new Error("Cannot compute positions for average pool.");
|
|
24827
24832
|
var r = e.filterWidth, o = e.strideHeight, a = e.strideWidth, i = e.dilationHeight, s = e.dilationWidth, u = e.effectiveFilterHeight, l = e.effectiveFilterWidth, c = e.padInfo.top, d = e.padInfo.left;
|
|
24828
24833
|
this.outputShape = e.outShape;
|
|
@@ -24975,7 +24980,7 @@ var MR = function(e, n, t) {
|
|
|
24975
24980
|
}
|
|
24976
24981
|
`;
|
|
24977
24982
|
}
|
|
24978
|
-
},
|
|
24983
|
+
}, Ul = function(e, n, t) {
|
|
24979
24984
|
if (this.variableNames = ["x"], n === "avg" && t) throw new Error("Cannot compute positions for average pool.");
|
|
24980
24985
|
var r = e.filterWidth, o = e.strideDepth, a = e.strideHeight, i = e.strideWidth, s = e.dilationDepth, u = e.dilationHeight, l = e.dilationWidth, c = e.effectiveFilterDepth, d = e.effectiveFilterHeight, f = e.effectiveFilterWidth, h = e.padInfo.front, p = e.padInfo.top, m = e.padInfo.left;
|
|
24981
24986
|
this.outputShape = e.outShape;
|
|
@@ -25272,7 +25277,7 @@ var MR = function(e, n, t) {
|
|
|
25272
25277
|
return ivec3(r, c, d);
|
|
25273
25278
|
}
|
|
25274
25279
|
|
|
25275
|
-
` +
|
|
25280
|
+
` + qd(e) + `
|
|
25276
25281
|
|
|
25277
25282
|
void main() {
|
|
25278
25283
|
ivec3 rc = getOutputCoords();
|
|
@@ -25838,7 +25843,7 @@ var MR = function(e, n, t) {
|
|
|
25838
25843
|
this.variableNames = ["source"], this.outputShape = n, this.rank = n.length;
|
|
25839
25844
|
var t, r = Lt(this.rank), o = "uniform int start[" + this.rank + "];", a = function(i) {
|
|
25840
25845
|
if (i === 1) return "sourceLoc";
|
|
25841
|
-
if (i <= 6) return
|
|
25846
|
+
if (i <= 6) return jl.slice(0, i).map(function(s) {
|
|
25842
25847
|
return "sourceLoc." + s;
|
|
25843
25848
|
}).join(",");
|
|
25844
25849
|
throw Error("Slicing for rank " + i + " is not yet supported");
|
|
@@ -25847,7 +25852,7 @@ var MR = function(e, n, t) {
|
|
|
25847
25852
|
` + r + ` sourceLoc;
|
|
25848
25853
|
` + r + ` coords = getOutputCoords();
|
|
25849
25854
|
` + n.map(function(i, s) {
|
|
25850
|
-
return "sourceLoc." +
|
|
25855
|
+
return "sourceLoc." + jl[s] + " = start[" + s + "] + coords." + jl[s] + ";";
|
|
25851
25856
|
}).join(`
|
|
25852
25857
|
`) + `
|
|
25853
25858
|
`, this.userCode = `
|
|
@@ -25865,7 +25870,7 @@ var MR = function(e, n, t) {
|
|
|
25865
25870
|
t.startLoc == null && (t.startLoc = r.getUniformLocationNoThrow(o, "start"), t.startLoc == null) || r.gl.uniform1iv(t.startLoc, n);
|
|
25866
25871
|
};
|
|
25867
25872
|
}, e;
|
|
25868
|
-
}(),
|
|
25873
|
+
}(), jl = ["x", "y", "z", "w", "u", "v"], t5 = function() {
|
|
25869
25874
|
function e(n) {
|
|
25870
25875
|
this.variableNames = ["source"], this.packedInputs = !0, this.packedOutput = !0, this.outputShape = n, this.rank = n.length;
|
|
25871
25876
|
var t = Lt(this.rank), r = Bn("coords", this.rank), o = Bn("sourceLoc", this.rank), a = this.rank === 1 ? "sourceLoc" : "vec2(" + o.slice(-2).join() + ")", i = "getChannel(getSource(" + o.join() + "), " + a + ")", s = `
|
|
@@ -26042,7 +26047,7 @@ var o5 = function(e, n) {
|
|
|
26042
26047
|
setOutput(result);
|
|
26043
26048
|
}
|
|
26044
26049
|
`;
|
|
26045
|
-
},
|
|
26050
|
+
}, Vd = 1.7580993408473768, zd = 1.0507009873554805, lt = function(e, n) {
|
|
26046
26051
|
this.variableNames = ["A"], this.outputShape = e, this.userCode = `
|
|
26047
26052
|
float unaryOperation(float x) {
|
|
26048
26053
|
` + n + `
|
|
@@ -26062,8 +26067,8 @@ var o5 = function(e, n) {
|
|
|
26062
26067
|
`, Tg = "return (x >= 0.0) ? x : (exp(x) - 1.0);", u5 = `
|
|
26063
26068
|
// Stable and Attracting Fixed Point (0, 1) for Normalized Weights.
|
|
26064
26069
|
// see: https://arxiv.org/abs/1706.02515
|
|
26065
|
-
float scaleAlpha = ` +
|
|
26066
|
-
float scale = ` +
|
|
26070
|
+
float scaleAlpha = ` + Vd + `;
|
|
26071
|
+
float scale = ` + zd + `;
|
|
26067
26072
|
return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);
|
|
26068
26073
|
`, Cp = "return -x;", kp = "return ceil(x);", _p = "return floor(x);", Sp = "return exp(x);", Ep = "return exp(x) - 1.0;", l5 = mr + `
|
|
26069
26074
|
return sin(x);
|
|
@@ -26181,7 +26186,7 @@ var b5 = 600, w5 = function(e) {
|
|
|
26181
26186
|
if (o != null) return this.convertAndCacheOnCPU(t);
|
|
26182
26187
|
if (a === "string") return o;
|
|
26183
26188
|
var h, p, m = this.activeTimers != null;
|
|
26184
|
-
return m && (h = Cr()), a === "complex64" ? p =
|
|
26189
|
+
return m && (h = Cr()), a === "complex64" ? p = Lc(i.real.dataSync(), i.imag.dataSync()) : p = this.getValuesFromTexture(t), m && (this.downloadWaitMs += Cr() - h), this.convertAndCacheOnCPU(t, p);
|
|
26185
26190
|
}, n.prototype.read = function(t) {
|
|
26186
26191
|
return Me(this, void 0, void 0, function() {
|
|
26187
26192
|
var r, o, a, i, s, u, l, c, d, f, h, p, m, v, y, w, b, g, x, C, S, E;
|
|
@@ -26200,7 +26205,7 @@ var b5 = 600, w5 = function(e) {
|
|
|
26200
26205
|
case 2:
|
|
26201
26206
|
return u !== "complex64" ? [3, 4] : [4, Promise.all([l.real.data(), l.imag.data()])];
|
|
26202
26207
|
case 3:
|
|
26203
|
-
return w = R.sent(), b = w[0], g = w[1], y =
|
|
26208
|
+
return w = R.sent(), b = w[0], g = w[1], y = Lc(b, g), [3, 5];
|
|
26204
26209
|
case 4:
|
|
26205
26210
|
p == null ? y = this.getValuesFromTexture(t) : (x = Be(i), y = this.gpgpu.downloadFloat32MatrixFromBuffer(p, x)), R.label = 5;
|
|
26206
26211
|
case 5:
|
|
@@ -26222,7 +26227,7 @@ var b5 = 600, w5 = function(e) {
|
|
|
26222
26227
|
var l = this.decode(t), c = this.texData.get(l.dataId), d = (r = this.gpgpu).downloadMatrixFromPackedTexture.apply(r, [c.texture].concat(oi(a))).subarray(0, u);
|
|
26223
26228
|
return this.disposeData(l.dataId), d;
|
|
26224
26229
|
}
|
|
26225
|
-
var f = ie().getBool("WEBGL_PACK") && s === !0, h = f ?
|
|
26230
|
+
var f = ie().getBool("WEBGL_PACK") && s === !0, h = f ? ql(a) : a, p = f ? new sR(h) : new iR(h), m = this.runWebGLProgram(p, [{ shape: h, dtype: i, dataId: t }], "float32"), v = this.texData.get(m.dataId), y = this.gpgpu.downloadByteEncodedFloatMatrixFromOutputTexture(v.texture, v.texShape[0], v.texShape[1]).subarray(0, u);
|
|
26226
26231
|
return this.disposeData(m.dataId), y;
|
|
26227
26232
|
}, n.prototype.time = function(t) {
|
|
26228
26233
|
return Me(this, void 0, void 0, function() {
|
|
@@ -26319,7 +26324,7 @@ var b5 = 600, w5 = function(e) {
|
|
|
26319
26324
|
return this.dataRefCount.set(s.slice.origDataId, l + 1), i;
|
|
26320
26325
|
}, n.prototype.stridedSlice = function(t, r, o, a) {
|
|
26321
26326
|
if (this.shouldExecuteOnCPU([t])) return this.cpuBackend.stridedSlice(t, r, o, a);
|
|
26322
|
-
var i =
|
|
26327
|
+
var i = Pd(r, o, a);
|
|
26323
26328
|
if (i.some(function(u) {
|
|
26324
26329
|
return u === 0;
|
|
26325
26330
|
})) return wn([], i);
|
|
@@ -26369,10 +26374,10 @@ var b5 = 600, w5 = function(e) {
|
|
|
26369
26374
|
var c = s === 1 ? t : t.as3D(l, u, 1), d = s === 1 ? 2 : 1, f = s === 1 ? r.as3D(l, 1, u) : r;
|
|
26370
26375
|
return this.multiply(c, f).sum(d, !0);
|
|
26371
26376
|
}
|
|
26372
|
-
var h = bn(t.dtype, r.dtype), p = new
|
|
26377
|
+
var h = bn(t.dtype, r.dtype), p = new Wl(t.shape, [l, i, s], o, a);
|
|
26373
26378
|
return this.compileAndRun(p, [t, r], h);
|
|
26374
26379
|
}, n.prototype.fusedBatchMatMul = function(t) {
|
|
26375
|
-
var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = bn(r.dtype, o.dtype), p = s != null, m = l != null, v = u ? os(u, !0) : null, y = new
|
|
26380
|
+
var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = a ? r.shape[2] : r.shape[1], d = i ? o.shape[1] : o.shape[2], f = r.shape[0], h = bn(r.dtype, o.dtype), p = s != null, m = l != null, v = u ? os(u, !0) : null, y = new Wl(r.shape, [f, c, d], a, i, p, v, m), w = [r, o];
|
|
26376
26381
|
return s && w.push(s), l && w.push(l), this.compileAndRun(y, w, h);
|
|
26377
26382
|
}, n.prototype.multiply = function(t, r) {
|
|
26378
26383
|
if (t.dtype === "complex64") {
|
|
@@ -26439,27 +26444,27 @@ var b5 = 600, w5 = function(e) {
|
|
|
26439
26444
|
var u = t.pad(i), l = Hs(u.shape, r, a, !1), c = Us(l.length, r.length, !1), d = js(u.shape, r, a, !1);
|
|
26440
26445
|
return u.reshape(l).transpose(c).reshape(d);
|
|
26441
26446
|
}, n.prototype.reduce = function(t, r, o) {
|
|
26442
|
-
var a = t.shape[0], i = t.shape[1], s =
|
|
26447
|
+
var a = t.shape[0], i = t.shape[1], s = Vl(i), u = new WR({ windowSize: s, inSize: i, batchSize: a }, r), l = this.compileAndRun(u, [t], o);
|
|
26443
26448
|
return l.shape[1] === 1 ? l : this.reduce(l, r, o);
|
|
26444
26449
|
}, n.prototype.argReduce = function(t, r, o) {
|
|
26445
26450
|
o === void 0 && (o = null);
|
|
26446
26451
|
var a = t.shape[0], i = t.shape[1];
|
|
26447
26452
|
o != null && (a = o.shape[0], i = o.shape[1]);
|
|
26448
|
-
var s =
|
|
26453
|
+
var s = Vl(i), u = new TE({ windowSize: s, inSize: i, batchSize: a }, r, o == null), l = [t];
|
|
26449
26454
|
o != null && l.push(o);
|
|
26450
26455
|
var c = this.compileAndRun(u, l, "int32");
|
|
26451
26456
|
return c.shape[1] === 1 ? c : this.argReduce(t, r, c);
|
|
26452
26457
|
}, n.prototype.argReducePacked = function(t, r, o) {
|
|
26453
26458
|
o === void 0 && (o = null);
|
|
26454
|
-
var a = o != null ? o.shape : t.shape, i =
|
|
26459
|
+
var a = o != null ? o.shape : t.shape, i = Vl(a[a.length - 1]), s = new BE(a, i, r, o == null), u = o == null ? [t] : [t, o], l = this.compileAndRun(s, u, "int32");
|
|
26455
26460
|
return l.rank === t.rank ? this.argReducePacked(t, r, l) : l;
|
|
26456
26461
|
}, n.prototype.sum = function(t, r) {
|
|
26457
26462
|
Hn("sum", r, t.rank);
|
|
26458
|
-
var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u =
|
|
26463
|
+
var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u = Ml(t.dtype);
|
|
26459
26464
|
return this.reduce(s, "sum", u).reshape(a);
|
|
26460
26465
|
}, n.prototype.prod = function(t, r) {
|
|
26461
26466
|
if (this.shouldExecuteOnCPU([t])) return this.cpuBackend.prod(t, r);
|
|
26462
|
-
var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u =
|
|
26467
|
+
var o = _n(t.shape, r), a = o[0], i = Be(o[1]), s = t.as2D(-1, i), u = Ml(t.dtype);
|
|
26463
26468
|
return this.reduce(s, "prod", u).reshape(a);
|
|
26464
26469
|
}, n.prototype.unsortedSegmentSum = function(t, r, o) {
|
|
26465
26470
|
var a = 0, i = Fr([a], t.rank), s = t;
|
|
@@ -26467,12 +26472,12 @@ var b5 = 600, w5 = function(e) {
|
|
|
26467
26472
|
var u = function(h, p, m) {
|
|
26468
26473
|
for (var v = [], y = h.length, w = 0; w < y; w++) w !== p ? v.push(h[w]) : v.push(m);
|
|
26469
26474
|
return v;
|
|
26470
|
-
}(s.shape, a, o), l = Be([s.shape[a]]), c = s.as2D(-1, l), d =
|
|
26471
|
-
return i != null && (f = f.transpose(
|
|
26475
|
+
}(s.shape, a, o), l = Be([s.shape[a]]), c = s.as2D(-1, l), d = Ml(t.dtype), f = this.segOpCompute(c, "unsortedSegmentSum", r, d, o).reshape(u);
|
|
26476
|
+
return i != null && (f = f.transpose(Ad(i))), f;
|
|
26472
26477
|
}, n.prototype.segOpCompute = function(t, r, o, a, i) {
|
|
26473
26478
|
var s = t.shape[0], u = t.shape[1], l = function(f, h) {
|
|
26474
26479
|
var p, m = !1;
|
|
26475
|
-
for (f <= cg ? (p = f, m = !0) : p =
|
|
26480
|
+
for (f <= cg ? (p = f, m = !0) : p = Tc(f, Math.floor(Math.sqrt(f))); !m; ) p > h || p === f ? m = !0 : p = Tc(f, p + 1);
|
|
26476
26481
|
return p;
|
|
26477
26482
|
}(u, i), c = new ZR({ windowSize: l, inSize: u, batchSize: s, numSegments: i }), d = this.compileAndRun(c, [t, o], a);
|
|
26478
26483
|
return d.shape[1] === i ? d : (o = Ws(0, i).tile([u / l]), this.segOpCompute(d, r, o, a, i));
|
|
@@ -26555,7 +26560,7 @@ var b5 = 600, w5 = function(e) {
|
|
|
26555
26560
|
}, n.prototype.where = function(t) {
|
|
26556
26561
|
zs("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");
|
|
26557
26562
|
var r = t.dataSync();
|
|
26558
|
-
return
|
|
26563
|
+
return Ld(t.shape, r);
|
|
26559
26564
|
}, n.prototype.topk = function(t, r, o) {
|
|
26560
26565
|
return xg(t.dataSync(), t.shape, t.dtype, r);
|
|
26561
26566
|
}, n.prototype.min = function(t, r) {
|
|
@@ -26690,11 +26695,11 @@ return a / b;`, t.shape, r.shape);
|
|
|
26690
26695
|
`, t.shape, r.shape);
|
|
26691
26696
|
return this.compileAndRun(o, [t, r], "int32");
|
|
26692
26697
|
}, n.prototype.add = function(t, r) {
|
|
26693
|
-
if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r,
|
|
26698
|
+
if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r, zl);
|
|
26694
26699
|
if (this.shouldExecuteOnCPU([t, r])) return this.cpuBackend.add(t, r);
|
|
26695
26700
|
var o = bn(t.dtype, r.dtype);
|
|
26696
|
-
if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r,
|
|
26697
|
-
var a = new Kt(
|
|
26701
|
+
if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r, zl, o);
|
|
26702
|
+
var a = new Kt(zl, t.shape, r.shape);
|
|
26698
26703
|
return this.compileAndRun(a, [t, r], o);
|
|
26699
26704
|
}, n.prototype.packedUnaryOp = function(t, r, o) {
|
|
26700
26705
|
var a = new ei(t.shape, r);
|
|
@@ -26726,11 +26731,11 @@ return a / b;`, t.shape, r.shape);
|
|
|
26726
26731
|
}), u = ie().getBool("WEBGL_PACK") ? new IE(t[0].shape, s) : new RE(t[0].shape, s);
|
|
26727
26732
|
return this.compileAndRun(u, t, i);
|
|
26728
26733
|
}, n.prototype.subtract = function(t, r) {
|
|
26729
|
-
if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r,
|
|
26734
|
+
if (t.dtype === "complex64" && r.dtype === "complex64") return this.complexSeparableBinaryOp(t, r, $l);
|
|
26730
26735
|
if (this.shouldExecuteOnCPU([t, r])) return this.cpuBackend.subtract(t, r);
|
|
26731
26736
|
var o = bn(t.dtype, r.dtype);
|
|
26732
|
-
if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r,
|
|
26733
|
-
var a = new Kt(
|
|
26737
|
+
if (ie().getBool("WEBGL_PACK_BINARY_OPERATIONS")) return this.packedBinaryOp(t, r, $l, t.dtype);
|
|
26738
|
+
var a = new Kt($l, t.shape, r.shape);
|
|
26734
26739
|
return this.compileAndRun(a, [t, r], o);
|
|
26735
26740
|
}, n.prototype.pow = function(t, r) {
|
|
26736
26741
|
var o = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr(`
|
|
@@ -27014,7 +27019,7 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27014
27019
|
return "batchMatMul result is expected to be packed";
|
|
27015
27020
|
}), l.shape = x, E.shape = o.outShape, j.makeTensorFromDataId(S.dataId, o.outShape, S.dtype);
|
|
27016
27021
|
}, n.prototype.conv2dWithIm2Row = function(t, r, o, a, i, s) {
|
|
27017
|
-
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]), w = r.reshape([1, p, -1]), b = new MR(v, y.shape, o), g = this.compileAndRun(b, [y]).reshape([1, v[0], v[1]]), x = a != null, C = s != null, S = i ? os(i, !0) : null, E = new
|
|
27022
|
+
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]), w = r.reshape([1, p, -1]), b = new MR(v, y.shape, o), g = this.compileAndRun(b, [y]).reshape([1, v[0], v[1]]), x = a != null, C = s != null, S = i ? os(i, !0) : null, E = new Wl(g.shape, [1, m, o.outChannels], !0, !1, x, S, C), R = [g, w];
|
|
27018
27023
|
a && R.push(a), C && R.push(s);
|
|
27019
27024
|
var k = this.compileAndRun(E, R);
|
|
27020
27025
|
return h ? k.reshape([1, f, d, o.outChannels]) : k.reshape([1, o.outChannels, f, d]);
|
|
@@ -27057,13 +27062,13 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27057
27062
|
var a = new YE(o);
|
|
27058
27063
|
return this.compileAndRun(a, [t, r]);
|
|
27059
27064
|
}, n.prototype.maxPool = function(t, r) {
|
|
27060
|
-
var o = new
|
|
27065
|
+
var o = new Hl(r, "max", !1);
|
|
27061
27066
|
return this.compileAndRun(o, [t]);
|
|
27062
27067
|
}, n.prototype.avgPool = function(t, r) {
|
|
27063
|
-
var o = new
|
|
27068
|
+
var o = new Hl(r, "avg", !1);
|
|
27064
27069
|
return this.compileAndRun(o, [t], "float32");
|
|
27065
27070
|
}, n.prototype.maxPoolBackprop = function(t, r, o, a) {
|
|
27066
|
-
var i = new
|
|
27071
|
+
var i = new Hl(a, "max", !0), s = this.compileAndRun(i, [r]), u = new OR(a), l = this.compileAndRun(u, [t, s], r.dtype);
|
|
27067
27072
|
return s.dispose(), l;
|
|
27068
27073
|
}, n.prototype.avgPoolBackprop = function(t, r, o) {
|
|
27069
27074
|
var a = new OE(o);
|
|
@@ -27078,16 +27083,16 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27078
27083
|
for (s = 0; s < c.length; s++) u[r] = s, c[s] = this.slice(t, u, l).reshape(a);
|
|
27079
27084
|
return c;
|
|
27080
27085
|
}, n.prototype.avgPool3d = function(t, r) {
|
|
27081
|
-
var o = new
|
|
27086
|
+
var o = new Ul(r, "avg", !1);
|
|
27082
27087
|
return this.compileAndRun(o, [t], "float32");
|
|
27083
27088
|
}, n.prototype.avgPool3dBackprop = function(t, r, o) {
|
|
27084
27089
|
var a = new NE(o);
|
|
27085
27090
|
return this.compileAndRun(a, [t], r.dtype);
|
|
27086
27091
|
}, n.prototype.maxPool3d = function(t, r) {
|
|
27087
|
-
var o = new
|
|
27092
|
+
var o = new Ul(r, "max", !1);
|
|
27088
27093
|
return this.compileAndRun(o, [t], "float32");
|
|
27089
27094
|
}, n.prototype.maxPool3dBackprop = function(t, r, o, a) {
|
|
27090
|
-
var i = new
|
|
27095
|
+
var i = new Ul(a, "max", !0), s = this.compileAndRun(i, [r]), u = new NR(a), l = this.compileAndRun(u, [t, s], r.dtype);
|
|
27091
27096
|
return s.dispose(), l;
|
|
27092
27097
|
}, n.prototype.reshape = function(t, r) {
|
|
27093
27098
|
var o = this.texData.get(t.dataId);
|
|
@@ -27095,7 +27100,7 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27095
27100
|
var a = this.packedReshape(t, r);
|
|
27096
27101
|
return j.makeTensorFromDataId(a.dataId, a.shape, a.dtype);
|
|
27097
27102
|
}
|
|
27098
|
-
return
|
|
27103
|
+
return Nc(t, r);
|
|
27099
27104
|
}, n.prototype.resizeBilinear = function(t, r, o, a) {
|
|
27100
27105
|
var i = ie().getBool("WEBGL_PACK_IMAGE_OPERATIONS") ? new GR(t.shape, r, o, a) : new jR(t.shape, r, o, a);
|
|
27101
27106
|
return this.compileAndRun(i, [t], "float32");
|
|
@@ -27118,7 +27123,7 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27118
27123
|
var r = new aR(t.size);
|
|
27119
27124
|
return this.compileAndRun(r, [t]);
|
|
27120
27125
|
}, n.prototype.nonMaxSuppression = function(t, r, o, a, i) {
|
|
27121
|
-
return zs("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead"),
|
|
27126
|
+
return zs("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead"), Od(t.dataSync(), r.dataSync(), o, a, i);
|
|
27122
27127
|
}, n.prototype.cropAndResize = function(t, r, o, a, i, s) {
|
|
27123
27128
|
var u = new eR(t.shape, r.shape, a, i, s);
|
|
27124
27129
|
return this.compileAndRun(u, [t, r, o], "float32");
|
|
@@ -27132,7 +27137,7 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27132
27137
|
return bg(t, r, o);
|
|
27133
27138
|
}, n.prototype.scatterND = function(t, r, o) {
|
|
27134
27139
|
var a = Gs(0, t, o), i = a.sliceRank, s = a.numUpdates, u = a.sliceSize, l = a.strides, c = a.outputSize, d = [c / u, u], f = t.reshape([s, i]), h = r.reshape([s, u]);
|
|
27135
|
-
if (c === 0) return
|
|
27140
|
+
if (c === 0) return Nc(wn([]), o);
|
|
27136
27141
|
var p = Ce(0), m = new yp(s, i, f.rank, h.rank, l, d);
|
|
27137
27142
|
return this.compileAndRun(m, [h, f, p]).reshape(o);
|
|
27138
27143
|
}, n.prototype.sparseToDense = function(t, r, o, a) {
|
|
@@ -27178,7 +27183,7 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27178
27183
|
var o = [qs(t.shape)].concat(Vs(t.shape)), a = { dtype: t.dtype, shape: o, dataId: t.dataId }, i = [qs(r)].concat(Vs(r)), s = new HR(i, o), u = this.runWebGLProgram(s, [a], t.dtype, null, !0);
|
|
27179
27184
|
return { dataId: u.dataId, shape: r, dtype: u.dtype };
|
|
27180
27185
|
}, n.prototype.decode = function(t) {
|
|
27181
|
-
var r, o = this.texData.get(t), a = o.isPacked, i = o.shape, s = o.dtype, u =
|
|
27186
|
+
var r, o = this.texData.get(t), a = o.isPacked, i = o.shape, s = o.dtype, u = ql(i);
|
|
27182
27187
|
return r = a ? new rR(u) : new nR(u), { dtype: s, shape: i, dataId: this.runWebGLProgram(r, [{ shape: u, dtype: s, dataId: t }], s, null, !0).dataId };
|
|
27183
27188
|
}, n.prototype.runWebGLProgram = function(t, r, o, a, i) {
|
|
27184
27189
|
var s = this;
|
|
@@ -27281,7 +27286,7 @@ return (round(mod(b, 2.0)) != 1) ?
|
|
|
27281
27286
|
f && (d = Cr());
|
|
27282
27287
|
var h = o.texShape;
|
|
27283
27288
|
if (h == null && (h = E4(a, c), o.texShape = h), s != null) {
|
|
27284
|
-
var p =
|
|
27289
|
+
var p = ql(a), m = void 0, v = h[1], y = h[0], w = s instanceof Uint8Array;
|
|
27285
27290
|
c ? (v = (r = Fi(h[0], h[1]))[0], y = r[1], m = new lR(p, [y, v], w)) : m = new uR(p, [y, v], w);
|
|
27286
27291
|
var b = this.makeTensorInfo([y, v], i);
|
|
27287
27292
|
this.texData.get(b.dataId).usage = w ? Yn.PIXELS : Yn.UPLOAD, this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(b.dataId), v, y, s);
|
|
@@ -27423,7 +27428,7 @@ var x5 = $({ square_: function(e) {
|
|
|
27423
27428
|
return yt(t);
|
|
27424
27429
|
} };
|
|
27425
27430
|
});
|
|
27426
|
-
} }),
|
|
27431
|
+
} }), $d = $({ clipByValue_: function(e, n, t) {
|
|
27427
27432
|
var r = M(e, "x", "clipByValue");
|
|
27428
27433
|
B(n <= t, function() {
|
|
27429
27434
|
return "Error in clip: min (" + n + ") must be less than or equal to max (" + t + ").";
|
|
@@ -27473,7 +27478,7 @@ var x5 = $({ square_: function(e) {
|
|
|
27473
27478
|
return t.mul(o.square().neg().exp().mul(2 / Math.sqrt(Math.PI)));
|
|
27474
27479
|
} };
|
|
27475
27480
|
});
|
|
27476
|
-
} }),
|
|
27481
|
+
} }), qc = $({ exp_: function(e) {
|
|
27477
27482
|
var n = M(e, "x", "exp");
|
|
27478
27483
|
return j.runKernelFunc(function(t, r) {
|
|
27479
27484
|
var o = t.exp(n);
|
|
@@ -27837,7 +27842,7 @@ var Q5 = $({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27837
27842
|
case 0:
|
|
27838
27843
|
return [4, (n = M(e, "condition", "whereAsync", "bool")).data()];
|
|
27839
27844
|
case 1:
|
|
27840
|
-
return t = o.sent(), r =
|
|
27845
|
+
return t = o.sent(), r = Ld(n.shape, t), e !== n && n.dispose(), [2, r];
|
|
27841
27846
|
}
|
|
27842
27847
|
});
|
|
27843
27848
|
});
|
|
@@ -27947,7 +27952,7 @@ var Q5 = $({ batchNormalization2d_: function(e, n, t, r, o, a) {
|
|
|
27947
27952
|
return c.div(f.toFloat()).neg();
|
|
27948
27953
|
} };
|
|
27949
27954
|
}, "FloorDiv");
|
|
27950
|
-
} }),
|
|
27955
|
+
} }), Wd = $({ maximum_: function(e, n) {
|
|
27951
27956
|
var t, r = M(e, "a", "maximum"), o = M(n, "b", "maximum");
|
|
27952
27957
|
return t = jt(r, o), r = t[0], o = t[1], r.dtype === "bool" && (r = r.toInt(), o = o.toInt()), vt(r.shape, o.shape), j.runKernelFunc(function(a, i) {
|
|
27953
27958
|
var s = a.maximum(r, o);
|
|
@@ -28125,7 +28130,7 @@ function Ip(e) {
|
|
|
28125
28130
|
for (var n = [], t = 0; t < e.length; ++t) for (var r = 0; r < e[t].length; ++r) n.push(e[t][r]);
|
|
28126
28131
|
return n;
|
|
28127
28132
|
}
|
|
28128
|
-
var
|
|
28133
|
+
var Hd = $({ gather_: function(e, n, t) {
|
|
28129
28134
|
t === void 0 && (t = 0);
|
|
28130
28135
|
var r = M(e, "x", "gather"), o = M(n, "indices", "gather", "int32");
|
|
28131
28136
|
t = ln(t, r.shape)[0];
|
|
@@ -28141,7 +28146,7 @@ var Wd = $({ gather_: function(e, n, t) {
|
|
|
28141
28146
|
}, { x: r, indices: o }, function(i, s) {
|
|
28142
28147
|
var u = s[0];
|
|
28143
28148
|
return { x: function() {
|
|
28144
|
-
var l = r.shape, c = u.size, d = l.slice(0, t), f = d.length, h = l.slice(t, l.length).slice(1), p = h.length, m = Rp(0, f), v = Rp(f + 1, f + 1 + p), y = Ip([d, [c], h]), w = i.reshape(y), b = u.reshape([c]), g = Ip([[f], m, v]), x = w.transpose(g), C = jg(x, b, r.shape[t]), S =
|
|
28149
|
+
var l = r.shape, c = u.size, d = l.slice(0, t), f = d.length, h = l.slice(t, l.length).slice(1), p = h.length, m = Rp(0, f), v = Rp(f + 1, f + 1 + p), y = Ip([d, [c], h]), w = i.reshape(y), b = u.reshape([c]), g = Ip([[f], m, v]), x = w.transpose(g), C = jg(x, b, r.shape[t]), S = Ad(g);
|
|
28145
28150
|
return C = C.transpose(S);
|
|
28146
28151
|
}, indices: function() {
|
|
28147
28152
|
return u;
|
|
@@ -28158,7 +28163,7 @@ var Wd = $({ gather_: function(e, n, t) {
|
|
|
28158
28163
|
var s = i[0];
|
|
28159
28164
|
return { $x: function() {
|
|
28160
28165
|
return function(u, l) {
|
|
28161
|
-
for (var c =
|
|
28166
|
+
for (var c = Wd(l, yt(l)), d = Hd(u, c), f = Ug(l, Ce(0, "int32")), h = d.rank - f.rank, p = 0; p < h; ++p) f = rr(f, p + 1);
|
|
28162
28167
|
f = Iu(f, Ua(d.shape, "bool"));
|
|
28163
28168
|
var m = yt(d);
|
|
28164
28169
|
return zo(f, d, m);
|
|
@@ -28176,7 +28181,7 @@ var Wd = $({ gather_: function(e, n, t) {
|
|
|
28176
28181
|
}), Rt(s.slice(a, a + i), o.shape, "mask's shape must match the first K dimensions of tensor's shape,"), u = 1, l = a; l < a + i; l++) u *= s[l];
|
|
28177
28182
|
return c = s.slice(0, a).concat([u], s.slice(a + i)), d = r.reshape(c), f = o.reshape([-1]), [4, zg(f)];
|
|
28178
28183
|
case 1:
|
|
28179
|
-
return h = v.sent(), p = h.squeeze([1]), m =
|
|
28184
|
+
return h = v.sent(), p = h.squeeze([1]), m = Hd(d, p, a), e !== r && r.dispose(), n !== o && o.dispose(), p.dispose(), d.dispose(), f.dispose(), h.dispose(), [2, m];
|
|
28180
28185
|
}
|
|
28181
28186
|
});
|
|
28182
28187
|
});
|
|
@@ -28201,7 +28206,7 @@ function Gg(e, n, t, r, o, a, i) {
|
|
|
28201
28206
|
}), i != null && B(Zt(o), function() {
|
|
28202
28207
|
return "Error in conv2dDerInput: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
|
|
28203
28208
|
});
|
|
28204
|
-
var f =
|
|
28209
|
+
var f = Bd(a), h = jo(s, t.shape, r, 1, o, i, !1, f), p = j.runKernelFunc(function(m, v) {
|
|
28205
28210
|
var y = m.conv2dDerInput(u, t, h);
|
|
28206
28211
|
return v([t, u]), y;
|
|
28207
28212
|
}, { dy4D: u, filter: t }, function(m, v) {
|
|
@@ -28209,12 +28214,12 @@ function Gg(e, n, t, r, o, a, i) {
|
|
|
28209
28214
|
return { dy4D: function() {
|
|
28210
28215
|
return ir(m, y, r, o, a, 1, i);
|
|
28211
28216
|
}, filter: function() {
|
|
28212
|
-
return
|
|
28217
|
+
return Ud(m, w, y.shape, r, o, a, i);
|
|
28213
28218
|
} };
|
|
28214
28219
|
});
|
|
28215
28220
|
return l ? p.as3D(p.shape[1], p.shape[2], p.shape[3]) : p;
|
|
28216
28221
|
}
|
|
28217
|
-
function
|
|
28222
|
+
function Gl(e) {
|
|
28218
28223
|
var n = function(a) {
|
|
28219
28224
|
return typeof a == "number" ? [a, a, a] : a.length === 2 ? [a[0], a[1], 1] : a;
|
|
28220
28225
|
}(e), t = n[0], r = n[1], o = n[2];
|
|
@@ -28277,7 +28282,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
28277
28282
|
}), B(Wn(t, a), function() {
|
|
28278
28283
|
return "Error in conv2D: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + a + "'";
|
|
28279
28284
|
});
|
|
28280
|
-
var f =
|
|
28285
|
+
var f = Bd(o), h = jo(l.shape, u.shape, t, a, r, i, !1, f), p = [u, l], m = j.runKernelFunc(function(v, y) {
|
|
28281
28286
|
var w = v.conv2d(l, u, h);
|
|
28282
28287
|
return y([u, l]), w;
|
|
28283
28288
|
}, { x: l, filter: u }, function(v, y) {
|
|
@@ -28287,7 +28292,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
28287
28292
|
}), { x: function() {
|
|
28288
28293
|
return Yg(g.shape, v, b, t, r, o);
|
|
28289
28294
|
}, filter: function() {
|
|
28290
|
-
return
|
|
28295
|
+
return Ud(g, v, b.shape, t, r, o);
|
|
28291
28296
|
} };
|
|
28292
28297
|
}, "Conv2D", h, p);
|
|
28293
28298
|
return c ? m.as3D(m.shape[1], m.shape[2], m.shape[3]) : m;
|
|
@@ -28301,7 +28306,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
28301
28306
|
}), B(u.shape[4] === s.shape[3], function() {
|
|
28302
28307
|
return "Error in conv3d: depth of input (" + u.shape[4] + ") must match input depth for filter " + s.shape[3] + ".";
|
|
28303
28308
|
}), B(function(f, h) {
|
|
28304
|
-
return
|
|
28309
|
+
return Gl(f) || Gl(h);
|
|
28305
28310
|
}(t, a), function() {
|
|
28306
28311
|
return "Error in conv3D: Either strides or dilations must be 1. Got strides " + t + " and dilations '" + a + "'";
|
|
28307
28312
|
}), B(o === "NDHWC", function() {
|
|
@@ -28311,7 +28316,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
28311
28316
|
var p = f.conv3d(u, s, c);
|
|
28312
28317
|
return h([u, s]), p;
|
|
28313
28318
|
}, { x: u, $filter: s }, function(f, h) {
|
|
28314
|
-
B(
|
|
28319
|
+
B(Gl(a), function() {
|
|
28315
28320
|
return "Error in gradient of conv3D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '" + a + "'";
|
|
28316
28321
|
});
|
|
28317
28322
|
var p = h[0], m = h[1];
|
|
@@ -28341,7 +28346,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
28341
28346
|
} };
|
|
28342
28347
|
});
|
|
28343
28348
|
return l ? d.as4D(d.shape[1], d.shape[2], d.shape[3], d.shape[4]) : d;
|
|
28344
|
-
} }),
|
|
28349
|
+
} }), Ud = $({ conv2dDerFilter_: function(e, n, t, r, o, a, i) {
|
|
28345
28350
|
a === void 0 && (a = "NHWC");
|
|
28346
28351
|
var s = e;
|
|
28347
28352
|
e.rank === 3 && (s = e.as4D(1, e.shape[0], e.shape[1], e.shape[2]));
|
|
@@ -28361,7 +28366,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
28361
28366
|
}), i != null && B(Zt(o), function() {
|
|
28362
28367
|
return "Error in conv2dDerFilter: pad must be an integer when using, dimRoundingMode " + i + " but got pad " + o + ".";
|
|
28363
28368
|
});
|
|
28364
|
-
var d =
|
|
28369
|
+
var d = Bd(a), f = jo(s.shape, t, r, 1, o, i, !1, d);
|
|
28365
28370
|
return j.runKernelFunc(function(h) {
|
|
28366
28371
|
return h.conv2dDerFilter(s, u, f);
|
|
28367
28372
|
}, { x4D: s, dy4D: u });
|
|
@@ -28408,7 +28413,7 @@ var AI = $({ conv1d_: function(e, n, t, r, o, a, i) {
|
|
|
28408
28413
|
return a.rank === 3 && (a = n.as4D(1, n.shape[0], n.shape[1], n.shape[2])), j.runKernelFunc(function(i) {
|
|
28409
28414
|
return i.depthwiseConv2DDerFilter(o, a, r);
|
|
28410
28415
|
}, { x4D: o, dy4D: a });
|
|
28411
|
-
} }),
|
|
28416
|
+
} }), jd = $({ separableConv2d_: function(e, n, t, r, o, a, i) {
|
|
28412
28417
|
a === void 0 && (a = [1, 1]), i === void 0 && (i = "NHWC");
|
|
28413
28418
|
var s = M(e, "x", "separableConv2d"), u = M(n, "depthwiseFilter", "separableConv2d"), l = M(t, "pointwiseFilter", "separableConv2d"), c = s, d = !1;
|
|
28414
28419
|
if (s.rank === 3 && (d = !0, c = s.as4D(1, s.shape[0], s.shape[1], s.shape[2])), i === "NCHW") throw new Error("separableConv2d currently does not support dataFormat NCHW; only NHWC is supported");
|
|
@@ -28926,7 +28931,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
28926
28931
|
} }), tT = $({ leakyRelu_: function(e, n) {
|
|
28927
28932
|
n === void 0 && (n = 0.2);
|
|
28928
28933
|
var t = M(e, "x", "leakyRelu");
|
|
28929
|
-
return
|
|
28934
|
+
return Wd(Ce(n).mul(t), t);
|
|
28930
28935
|
} }), o0 = $({ prelu_: function(e, n) {
|
|
28931
28936
|
var t = M(e, "x", "prelu"), r = M(n, "alpha", "prelu");
|
|
28932
28937
|
return j.runKernelFunc(function(o, a) {
|
|
@@ -28971,7 +28976,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
28971
28976
|
}, { $x: n }, function(t, r) {
|
|
28972
28977
|
var o = r[0];
|
|
28973
28978
|
return { $x: function() {
|
|
28974
|
-
var a = o.greater(Ce(0)), i = Ce(
|
|
28979
|
+
var a = o.greater(Ce(0)), i = Ce(Vd), s = Ce(zd), u = t.mul(s), l = t.mul(i).mul(o.toFloat().exp());
|
|
28975
28980
|
return zo(a, u, l);
|
|
28976
28981
|
} };
|
|
28977
28982
|
});
|
|
@@ -28990,7 +28995,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
28990
28995
|
return j.runKernelFunc(function(o) {
|
|
28991
28996
|
return o.transpose(t, n);
|
|
28992
28997
|
}, { x: t }, function(o) {
|
|
28993
|
-
var a =
|
|
28998
|
+
var a = Ad(n);
|
|
28994
28999
|
return { x: function() {
|
|
28995
29000
|
return o.transpose(a);
|
|
28996
29001
|
} };
|
|
@@ -29081,7 +29086,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
29081
29086
|
h.forEach(function(v) {
|
|
29082
29087
|
t[v] = n[v] + 1, r[v] = 1;
|
|
29083
29088
|
});
|
|
29084
|
-
var p =
|
|
29089
|
+
var p = Pd(n, t, r), m = p.filter(function(v, y) {
|
|
29085
29090
|
return h.indexOf(y) === -1;
|
|
29086
29091
|
});
|
|
29087
29092
|
return r.every(function(v) {
|
|
@@ -29104,7 +29109,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
29104
29109
|
return vE(o, r, t), j.runKernelFunc(function(a) {
|
|
29105
29110
|
return a.scatterND(r, o, t);
|
|
29106
29111
|
}, { indices: r, updates: o }, null, "ScatterNd", { shape: t });
|
|
29107
|
-
} }),
|
|
29112
|
+
} }), Gd = $({ fft_: function(e) {
|
|
29108
29113
|
B(e.dtype === "complex64", function() {
|
|
29109
29114
|
return "The dtype for tf.spectral.fft() must be complex64 but got " + e.dtype + ".";
|
|
29110
29115
|
});
|
|
@@ -29120,7 +29125,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
29120
29125
|
return j.runKernelFunc(function(o) {
|
|
29121
29126
|
return o.ifft(r);
|
|
29122
29127
|
}, { input: e }).reshape(e.shape);
|
|
29123
|
-
} }),
|
|
29128
|
+
} }), Kd = $({ rfft_: function(e, n) {
|
|
29124
29129
|
B(e.dtype === "float32", function() {
|
|
29125
29130
|
return "The dtype for rfft() must be real value but got " + e.dtype;
|
|
29126
29131
|
});
|
|
@@ -29138,7 +29143,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
29138
29143
|
});
|
|
29139
29144
|
s[e.shape.length - 1] = n - r, t = e.concat(Vt(s), e.shape.length - 1), r = n;
|
|
29140
29145
|
} else t = e;
|
|
29141
|
-
var u = t.zerosLike(), l = yn(t, u).as2D(o, r), c =
|
|
29146
|
+
var u = t.zerosLike(), l = yn(t, u).as2D(o, r), c = Gd(l), d = Math.floor(r / 2) + 1, f = or(c), h = _r(c), p = f.split([d, r - d], f.shape.length - 1), m = h.split([d, r - d], h.shape.length - 1), v = t.shape.slice();
|
|
29142
29147
|
return v[t.shape.length - 1] = d, yn(p[0], m[0]).reshape(v);
|
|
29143
29148
|
} }), s0 = $({ irfft_: function(e) {
|
|
29144
29149
|
var n = e.shape[e.shape.length - 1], t = e.size / n;
|
|
@@ -29148,7 +29153,7 @@ var jI = $({ all_: function(e, n, t) {
|
|
|
29148
29153
|
}
|
|
29149
29154
|
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(Ce(-1)), c = i.concat(u, 1), d = s.concat(l, 1);
|
|
29150
29155
|
return r = yn(c, d).as2D(a[0], a[1]), o = Js(r), or(o);
|
|
29151
|
-
} }), cT = Object.freeze({ fft:
|
|
29156
|
+
} }), cT = Object.freeze({ fft: Gd, ifft: Js, rfft: Kd, irfft: s0 }), dT = $({ sparseToDense_: function(e, n, t, r) {
|
|
29152
29157
|
r === void 0 && (r = 0);
|
|
29153
29158
|
var o = M(e, "sparseIndices", "sparseToDense", "int32"), a = M(n, "sparseValues", "sparseToDense"), i = M(r, "defaultValue", "sparseToDense", a.dtype);
|
|
29154
29159
|
return function(s, u, l, c) {
|
|
@@ -29197,11 +29202,11 @@ function u0(e, n, t) {
|
|
|
29197
29202
|
}
|
|
29198
29203
|
return tn(o, "float32");
|
|
29199
29204
|
}
|
|
29200
|
-
var
|
|
29205
|
+
var Yd = $({ hannWindow_: function(e) {
|
|
29201
29206
|
return u0(e, 0.5, 0.5);
|
|
29202
29207
|
} }), l0 = $({ hammingWindow_: function(e) {
|
|
29203
29208
|
return u0(e, 0.54, 0.46);
|
|
29204
|
-
} }),
|
|
29209
|
+
} }), Xd = $({ frame_: function(e, n, t, r, o) {
|
|
29205
29210
|
r === void 0 && (r = !1), o === void 0 && (o = 0);
|
|
29206
29211
|
for (var a = 0, i = []; a + n <= e.size; ) i.push(Tr(e, a, n)), a += t;
|
|
29207
29212
|
if (r) for (; a < e.size; ) {
|
|
@@ -29211,10 +29216,10 @@ var Kd = $({ hannWindow_: function(e) {
|
|
|
29211
29216
|
return i.length === 0 ? uo([], [0, n]) : on(i).as2D(i.length, n);
|
|
29212
29217
|
} }), c0 = $({ stft_: function(e, n, t, r, o) {
|
|
29213
29218
|
var a;
|
|
29214
|
-
o === void 0 && (o =
|
|
29215
|
-
for (var i =
|
|
29219
|
+
o === void 0 && (o = Yd), r == null && (a = n, r = Math.floor(Math.pow(2, Math.ceil(Math.log(a) / Math.log(2)))));
|
|
29220
|
+
for (var i = Xd(e, n, t), s = Dn(i, o(n)), u = [], l = 0; l < i.shape[0]; l++) u.push(Kd(s.slice([l, 0], [1, n]), r));
|
|
29216
29221
|
return on(u);
|
|
29217
|
-
} }), vT = Object.freeze({ hannWindow:
|
|
29222
|
+
} }), vT = Object.freeze({ hannWindow: Yd, hammingWindow: l0, frame: Xd, stft: c0 }), Tn, mT = function(e, n, t) {
|
|
29218
29223
|
return t === void 0 && (t = 1), Me(this, void 0, void 0, function() {
|
|
29219
29224
|
var r, o, a, i, s, u, l, c, d, f, h, p, m, v;
|
|
29220
29225
|
return Fe(this, function(y) {
|
|
@@ -29388,7 +29393,7 @@ var ET = $({ bandPart_: function(e, n, t) {
|
|
|
29388
29393
|
return "Gram-Schmidt: Non-unique lengths found in the input vectors: (" + e[u].shape[0] + " vs. " + t + ")";
|
|
29389
29394
|
});
|
|
29390
29395
|
}, o = 1; o < e.length; ++o) r(o);
|
|
29391
|
-
} else n = !0, e =
|
|
29396
|
+
} else n = !0, e = Md(e, e.shape[0], 0).map(function(u) {
|
|
29392
29397
|
return ig(u, [0]);
|
|
29393
29398
|
});
|
|
29394
29399
|
B(e.length <= e[0].shape[0], function() {
|
|
@@ -29492,7 +29497,7 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29492
29497
|
case 0:
|
|
29493
29498
|
return a = M(e, "boxes", "nonMaxSuppressionAsync"), i = M(n, "scores", "nonMaxSuppressionAsync"), s = Mu(a, i, t, r, o), t = s.maxOutputSize, r = s.iouThreshold, o = s.scoreThreshold, [4, Promise.all([a.data(), i.data()])];
|
|
29494
29499
|
case 1:
|
|
29495
|
-
return u = f.sent(), l = u[0], c = u[1], d =
|
|
29500
|
+
return u = f.sent(), l = u[0], c = u[1], d = Od(l, c, t, r, o), a !== e && a.dispose(), i !== n && i.dispose(), [2, d];
|
|
29496
29501
|
}
|
|
29497
29502
|
});
|
|
29498
29503
|
});
|
|
@@ -29508,7 +29513,7 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29508
29513
|
case 0:
|
|
29509
29514
|
return i = M(e, "boxes", "nonMaxSuppressionAsync"), s = M(n, "scores", "nonMaxSuppressionAsync"), u = Mu(i, s, t, r, o, a), t = u.maxOutputSize, r = u.iouThreshold, o = u.scoreThreshold, a = u.softNmsSigma, [4, Promise.all([i.data(), s.data()])];
|
|
29510
29515
|
case 1:
|
|
29511
|
-
return l = h.sent(), c = l[0], d = l[1], f =
|
|
29516
|
+
return l = h.sent(), c = l[0], d = l[1], f = Nd(c, d, t, r, o, a), i !== e && i.dispose(), s !== n && s.dispose(), [2, f];
|
|
29512
29517
|
}
|
|
29513
29518
|
});
|
|
29514
29519
|
});
|
|
@@ -29531,16 +29536,16 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29531
29536
|
}), j.runKernelFunc(function(c, d) {
|
|
29532
29537
|
return c.cropAndResize(i, s, u, r, o, a);
|
|
29533
29538
|
}, { images: i, boxes: s, boxInd: u }, null, "CropAndResize", { method: o, extrapolationValue: a, cropSize: r });
|
|
29534
|
-
} }),
|
|
29539
|
+
} }), Qd = Object.freeze({ resizeBilinear: AT, resizeNearestNeighbor: DT, nonMaxSuppression: MT, nonMaxSuppressionAsync: FT, nonMaxSuppressionWithScore: PT, nonMaxSuppressionWithScoreAsync: BT, cropAndResize: OT }), Zd = function(e, n) {
|
|
29535
29540
|
return !(e > 0) || n === "linear";
|
|
29536
|
-
},
|
|
29541
|
+
}, Jd = function(e, n, t) {
|
|
29537
29542
|
if (t == null || t === "linear") return e;
|
|
29538
29543
|
if (t === "relu") return e.mul(n.step());
|
|
29539
29544
|
throw new Error("Gradient for activation " + t + " has not been implemented yet.");
|
|
29540
|
-
},
|
|
29545
|
+
}, ef = function(e, n) {
|
|
29541
29546
|
var t = n, r = sn(e.shape, n.shape);
|
|
29542
29547
|
return r.length > 0 && (t = t.sum(r)), t.reshape(e.shape);
|
|
29543
|
-
},
|
|
29548
|
+
}, tf = function(e, n, t) {
|
|
29544
29549
|
if (n === "linear") return e;
|
|
29545
29550
|
if (n === "relu") return Ut(e);
|
|
29546
29551
|
if (n === "elu") return r0(e);
|
|
@@ -29549,9 +29554,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29549
29554
|
throw new Error("Unknown fused activation " + n + ".");
|
|
29550
29555
|
}, NT = $({ fusedMatMul_: function(e) {
|
|
29551
29556
|
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;
|
|
29552
|
-
if (
|
|
29557
|
+
if (Zd(j.state.gradientDepth, c) === !1) {
|
|
29553
29558
|
var f = Au(t, r, a, s);
|
|
29554
|
-
return u != null && (f = ft(f, u)),
|
|
29559
|
+
return u != null && (f = ft(f, u)), tf(f, c, d);
|
|
29555
29560
|
}
|
|
29556
29561
|
var h = M(t, "a", "fused matMul"), p = M(r, "b", "fused matMul");
|
|
29557
29562
|
n = jt(h, p), h = n[0], p = n[1];
|
|
@@ -29572,9 +29577,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29572
29577
|
var z = D.fusedBatchMatMul({ a: k, b: T, transposeA: a, transposeB: s, bias: S, activation: c, preluActivationWeights: E });
|
|
29573
29578
|
return O([k, T, z]), z;
|
|
29574
29579
|
}, A, function(D, O) {
|
|
29575
|
-
var z = O[0], F = O[1], P = O[2], H =
|
|
29580
|
+
var z = O[0], F = O[1], P = O[2], H = Jd(D, P, c), K = {};
|
|
29576
29581
|
return u != null && (K = { bias: function() {
|
|
29577
|
-
return
|
|
29582
|
+
return ef(S, H);
|
|
29578
29583
|
} }), Object.assign(a || s ? !a && s ? { a: function() {
|
|
29579
29584
|
return H.matMul(F, !1, !1);
|
|
29580
29585
|
}, b: function() {
|
|
@@ -29595,9 +29600,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29595
29600
|
}, "_FusedMatMul", { transposeA: a, transposeB: s, activation: c }, q, [!0]).reshape(R);
|
|
29596
29601
|
} }), LT = $({ fusedConv2d_: function(e) {
|
|
29597
29602
|
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;
|
|
29598
|
-
if (f = f || "linear",
|
|
29603
|
+
if (f = f || "linear", Zd(j.state.gradientDepth, f) === !1) {
|
|
29599
29604
|
var p = ir(n, t, r, o, i, u, l);
|
|
29600
|
-
return c != null && (p = ft(p, c)),
|
|
29605
|
+
return c != null && (p = ft(p, c)), tf(p, f, h);
|
|
29601
29606
|
}
|
|
29602
29607
|
var m = M(n, "x", "conv2d"), v = M(t, "filter", "conv2d"), y = m, w = !1;
|
|
29603
29608
|
m.rank === 3 && (w = !0, y = m.as4D(1, m.shape[0], m.shape[1], m.shape[2])), B(y.rank === 4, function() {
|
|
@@ -29621,25 +29626,25 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29621
29626
|
var T = R.fusedConv2d({ input: y, filter: v, convInfo: x, bias: b, activation: f, preluActivationWeights: g });
|
|
29622
29627
|
return k([v, y, T]), T;
|
|
29623
29628
|
}, C, function(R, k) {
|
|
29624
|
-
var T = k, A = T[0], q = T[1], D = T[2], O =
|
|
29629
|
+
var T = k, A = T[0], q = T[1], D = T[2], O = Jd(R, D, f);
|
|
29625
29630
|
B(Pa(u), function() {
|
|
29626
29631
|
return "Error in gradient of fused conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '" + u + "'";
|
|
29627
29632
|
});
|
|
29628
29633
|
var z = {};
|
|
29629
29634
|
return c != null && (z = { bias: function() {
|
|
29630
|
-
return
|
|
29635
|
+
return ef(b, O);
|
|
29631
29636
|
} }), Object.assign({ x: function() {
|
|
29632
29637
|
return Yg(q.shape, O, A, r, o);
|
|
29633
29638
|
}, filter: function() {
|
|
29634
|
-
return
|
|
29639
|
+
return Ud(q, O, A.shape, r, o);
|
|
29635
29640
|
} }, z);
|
|
29636
29641
|
}, "FusedConv2D", { convInfo: x, activation: f }, S, [!0]);
|
|
29637
29642
|
return w ? E.as3D(E.shape[1], E.shape[2], E.shape[3]) : E;
|
|
29638
29643
|
} }), qT = $({ fusedDepthwiseConv2d_: function(e) {
|
|
29639
29644
|
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;
|
|
29640
|
-
if (
|
|
29645
|
+
if (Zd(j.state.gradientDepth, f) === !1) {
|
|
29641
29646
|
var p = Tu(n, t, r, o, i, u, l);
|
|
29642
|
-
return c != null && (p = ft(p, c)),
|
|
29647
|
+
return c != null && (p = ft(p, c)), tf(p, f, h);
|
|
29643
29648
|
}
|
|
29644
29649
|
var m = M(n, "x", "depthwiseConv2d"), v = M(t, "filter", "depthwiseConv2d"), y = m, w = !1;
|
|
29645
29650
|
m.rank === 3 && (w = !0, y = m.as4D(1, m.shape[0], m.shape[1], m.shape[2])), B(y.rank === 4, function() {
|
|
@@ -29664,9 +29669,9 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29664
29669
|
B(Pa(u), function() {
|
|
29665
29670
|
return "Error in gradient of fused depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '" + u + "'";
|
|
29666
29671
|
});
|
|
29667
|
-
var T = k[0], A = k[1], q = k[2], D =
|
|
29672
|
+
var T = k[0], A = k[1], q = k[2], D = Jd(R, q, f), O = {};
|
|
29668
29673
|
return c != null && (O = { bias: function() {
|
|
29669
|
-
return
|
|
29674
|
+
return ef(b, D);
|
|
29670
29675
|
} }), Object.assign({ x: function() {
|
|
29671
29676
|
return Xg(A.shape, D, T, x);
|
|
29672
29677
|
}, filter: function() {
|
|
@@ -29674,7 +29679,7 @@ var AT = $({ resizeBilinear_: function(e, n, t) {
|
|
|
29674
29679
|
} }, O);
|
|
29675
29680
|
}, "FusedDepthwiseConv2D", { convInfo: x, activation: f }, S, [!0]);
|
|
29676
29681
|
return w ? E.as3D(E.shape[1], E.shape[2], E.shape[3]) : E;
|
|
29677
|
-
} }), VT = Object.freeze({ matMul: NT, conv2d: LT, depthwiseConv2d: qT }), zT = Object.freeze({ image:
|
|
29682
|
+
} }), VT = Object.freeze({ matMul: NT, conv2d: LT, depthwiseConv2d: qT }), zT = Object.freeze({ image: Qd, linalg: TT, losses: ST, spectral: cT, fused: VT, signal: vT, square: x5, squaredDifference: Fg, conv1d: AI, conv2d: ir, conv3d: DI, depthwiseConv2d: Tu, separableConv2d: jd, conv2dTranspose: MI, conv3dTranspose: FI, op: $, batchNormalization2d: Q5, batchNormalization3d: Z5, batchNormalization4d: J5, batchNormalization: eI, batchNorm: qg, batchNorm2d: tI, batchNorm3d: nI, batchNorm4d: rI, booleanMaskAsync: TI, complex: yn, real: or, imag: _r, concat: on, concat1d: V4, concat2d: z4, concat3d: $4, concat4d: W4, split: Md, matMul: Au, dot: PI, outerProduct: BI, reverse: Oi, reverse1d: OI, reverse2d: NI, reverse3d: LI, reverse4d: qI, maxPool: dn, avgPool: Ni, pool: VI, maxPool3d: zI, avgPool3d: $I, slice: Tr, slice1d: WI, slice2d: HI, slice3d: e0, slice4d: UI, abs: C5, acos: k5, acosh: _5, asin: S5, asinh: E5, atan: R5, atanh: I5, ceil: T5, clipByValue: $d, cos: A5, cosh: D5, erf: M5, exp: qc, expm1: F5, floor: P5, log: B5, log1p: O5, logSigmoid: N5, neg: Qs, reciprocal: L5, round: q5, rsqrt: Pg, sigmoid: Bg, sign: V5, isNaN: z5, isInf: $5, isFinite: W5, sin: H5, sinh: U5, softplus: j5, sqrt: G5, step: K5, tan: Y5, tanh: X5, all: jI, any: GI, argMax: KI, argMin: YI, logSumExp: XI, max: Du, mean: QI, min: ZI, moments: JI, sum: n0, prod: eT, equal: Hg, equalStrict: bI, greater: wI, greaterEqual: Ug, greaterEqualStrict: xI, greaterStrict: CI, less: kI, lessEqual: _I, lessEqualStrict: SI, lessStrict: EI, notEqual: RI, notEqualStrict: II, add: ft, addN: iI, addStrict: sI, atan2: uI, div: lr, divNoNan: lI, divStrict: cI, floorDiv: $g, maximum: Wd, maximumStrict: dI, minimum: Wg, minimumStrict: fI, mod: hI, modStrict: pI, mul: Dn, mulStrict: vI, pow: Zs, powStrict: mI, squaredDifferenceStrict: gI, sub: un, subStrict: yI, elu: r0, leakyRelu: tT, prelu: o0, relu: Ut, relu6: a0, selu: nT, logicalAnd: Iu, logicalNot: oI, logicalOr: Vg, logicalXor: aI, where: zo, whereAsync: zg, buffer: ot, print: Z4, batchToSpaceND: ng, broadcastTo: J4, cast: eE, clone: tE, cumsum: nE, depthToSpace: rE, expandDims: rr, eye: rg, multinomial: oE, oneHot: Bc, pad: Uo, pad1d: aE, pad2d: iE, pad3d: sE, pad4d: uE, rand: lE, randomNormal: cE, randomGamma: dE, randomUniform: og, reshape: cr, spaceToBatchND: ag, squeeze: ig, stack: Zn, tile: ba, truncatedNormal: fE, unstack: an, setdiff1dAsync: hE, fill: Ir, linspace: q4, ones: Ua, range: Ws, scalar: Ce, tensor: wn, tensor1d: tn, tensor2d: uo, tensor3d: Dd, tensor4d: Pn, tensor5d: O4, tensor6d: N4, variable: L4, zeros: Vt, onesLike: tg, zerosLike: yt, transpose: ho, softmax: jr, logSoftmax: wE, localResponseNormalization: rT, norm: i0, gather: Hd, unsortedSegmentSum: jg, basicLSTMCell: oT, multiRNNCell: aT, movingAverage: iT, stridedSlice: sT, topk: uT, scatterND: lT, fft: Gd, ifft: Js, rfft: Kd, irfft: s0, sparseToDense: dT, gatherND: fT, diag: hT, dropout: pT, hannWindow: Yd, hammingWindow: l0, frame: Xd, stft: c0, inTopKAsync: mT });
|
|
29678
29683
|
function de(e, n) {
|
|
29679
29684
|
Array.isArray(e) || (e = [e]), e.forEach(function(t) {
|
|
29680
29685
|
t != null && B(t.dtype !== "complex64", function() {
|
|
@@ -29682,7 +29687,7 @@ function de(e, n) {
|
|
|
29682
29687
|
});
|
|
29683
29688
|
});
|
|
29684
29689
|
}
|
|
29685
|
-
function
|
|
29690
|
+
function Kl(e, n, t, r) {
|
|
29686
29691
|
if (t === "linear") return e.linear(n);
|
|
29687
29692
|
if (t === "relu") return e.relu(n);
|
|
29688
29693
|
if (t === "elu") return e.elu(n);
|
|
@@ -29714,7 +29719,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
29714
29719
|
});
|
|
29715
29720
|
}, n.prototype.readSync = function(t) {
|
|
29716
29721
|
var r = this.data.get(t), o = r.dtype, a = r.complexTensors;
|
|
29717
|
-
return o === "complex64" ?
|
|
29722
|
+
return o === "complex64" ? Lc(this.readSync(a.real.dataId), this.readSync(a.imag.dataId)) : this.data.get(t).values;
|
|
29718
29723
|
}, n.prototype.bufferSync = function(t) {
|
|
29719
29724
|
var r = this.readSync(t.dataId), o = r;
|
|
29720
29725
|
if (t.dtype === "string") try {
|
|
@@ -29763,7 +29768,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
29763
29768
|
return s.toTensor();
|
|
29764
29769
|
}, n.prototype.stridedSlice = function(t, r, o, a) {
|
|
29765
29770
|
de(t, "stridedSlice");
|
|
29766
|
-
var i =
|
|
29771
|
+
var i = Pd(r, o, a);
|
|
29767
29772
|
if (i.some(function(h) {
|
|
29768
29773
|
return h === 0;
|
|
29769
29774
|
})) return wn([], i);
|
|
@@ -29860,7 +29865,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
29860
29865
|
return x.toTensor();
|
|
29861
29866
|
}, n.prototype.fusedBatchMatMul = function(t) {
|
|
29862
29867
|
var r = t.a, o = t.b, a = t.transposeA, i = t.transposeB, s = t.bias, u = t.activation, l = t.preluActivationWeights, c = this.batchMatMul(r, o, a, i);
|
|
29863
|
-
return s && (c = this.add(c, s)), u && (c =
|
|
29868
|
+
return s && (c = this.add(c, s)), u && (c = Kl(this, c, u, l)), c;
|
|
29864
29869
|
}, n.prototype.multiply = function(t, r) {
|
|
29865
29870
|
return t.dtype === "complex64" || r.dtype === "complex64" ? this.broadcastedBinaryComplexOp(t.cast("complex64"), r.cast("complex64"), function(o, a, i, s) {
|
|
29866
29871
|
return { real: o * i - a * s, imag: o * s + a * i };
|
|
@@ -29979,7 +29984,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
29979
29984
|
}, n.prototype.where = function(t) {
|
|
29980
29985
|
de([t], "where");
|
|
29981
29986
|
var r = this.readSync(t.dataId);
|
|
29982
|
-
return
|
|
29987
|
+
return Ld(t.shape, r);
|
|
29983
29988
|
}, n.prototype.topk = function(t, r, o) {
|
|
29984
29989
|
return de(t, "topk"), xg(this.readSync(t.dataId), t.shape, t.dtype, r);
|
|
29985
29990
|
}, n.prototype.min = function(t, r) {
|
|
@@ -30141,7 +30146,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
30141
30146
|
return this.makeOutput(o, r.shape, "float32");
|
|
30142
30147
|
}, n.prototype.selu = function(t) {
|
|
30143
30148
|
de(t, "selu");
|
|
30144
|
-
for (var r =
|
|
30149
|
+
for (var r = Vd, o = zd, a = new Float32Array(t.size), i = this.readSync(t.dataId), s = 0; s < i.length; ++s) {
|
|
30145
30150
|
var u = i[s];
|
|
30146
30151
|
a[s] = u >= 0 ? o * u : r * (Math.exp(u) - 1);
|
|
30147
30152
|
}
|
|
@@ -30245,7 +30250,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
30245
30250
|
return this.makeOutput(o, t.shape, "float32");
|
|
30246
30251
|
}, n.prototype.fusedConv2d = function(t) {
|
|
30247
30252
|
var r = t.input, o = t.filter, a = t.convInfo, i = t.bias, s = t.activation, u = t.preluActivationWeights, l = this.conv2d(r, o, a);
|
|
30248
|
-
return i && (l = this.add(l, i)), s && (l =
|
|
30253
|
+
return i && (l = this.add(l, i)), s && (l = Kl(this, l, s, u)), l;
|
|
30249
30254
|
}, n.prototype.conv2d = function(t, r, o) {
|
|
30250
30255
|
de([t, r], "conv2d");
|
|
30251
30256
|
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], w = d ? f.strides[1] : f.strides[2], b = d ? f.strides[2] : 1, g = d ? 1 : f.strides[1], x = this.readSync(t.dataId), C = this.readSync(r.dataId), S = f.values, E = 0; E < o.batchSize; ++E) for (var R = E * h, k = E * y, T = 0; T < o.outHeight; ++T) for (var A = k + T * w, q = T * o.strideHeight - c, D = 0; D < a; D++) {
|
|
@@ -30310,7 +30315,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
30310
30315
|
return d.toTensor();
|
|
30311
30316
|
}, n.prototype.fusedDepthwiseConv2D = function(t) {
|
|
30312
30317
|
var r = t.input, o = t.filter, a = t.convInfo, i = t.bias, s = t.activation, u = t.preluActivationWeights, l = this.depthwiseConv2D(r, o, a);
|
|
30313
|
-
return i && (l = this.add(l, i)), s && (l =
|
|
30318
|
+
return i && (l = this.add(l, i)), s && (l = Kl(this, l, s, u)), l;
|
|
30314
30319
|
}, n.prototype.depthwiseConv2D = function(t, r, o) {
|
|
30315
30320
|
de([t, r], "depthwiseConv2D");
|
|
30316
30321
|
for (var a = o.filterHeight, i = o.filterWidth, s = o.dilationHeight, u = o.dilationWidth, l = o.padInfo.left, c = o.padInfo.top, d = o.outChannels / o.inChannels, f = ot(o.outShape, t.dtype), h = this.readSync(t.dataId), p = this.readSync(r.dataId), m = f.values, v = 0; v < o.batchSize; ++v) for (var y = v * t.strides[0], w = v * f.strides[0], b = 0; b < o.outHeight; ++b) for (var g = w + b * f.strides[1], x = b * o.strideHeight - l, C = 0; C < a; ++C) {
|
|
@@ -30533,7 +30538,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
30533
30538
|
}, n.prototype.cast = function(t, r) {
|
|
30534
30539
|
return mg(t, r, this);
|
|
30535
30540
|
}, n.prototype.reshape = function(t, r) {
|
|
30536
|
-
return
|
|
30541
|
+
return Nc(t, r);
|
|
30537
30542
|
}, n.prototype.avgPool = function(t, r) {
|
|
30538
30543
|
return de(t, "avgPool"), this.pool(t, r, "avg").toFloat();
|
|
30539
30544
|
}, n.prototype.resizeBilinear = function(t, r, o, a) {
|
|
@@ -30628,7 +30633,7 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
30628
30633
|
for (var s = this.readSync(t.dataId), u = 0; u < t.size; ++u) s[u] >= 0 && s[u] < r && (i[u * r + s[u]] = o);
|
|
30629
30634
|
return uo(i, [t.size, r], "int32");
|
|
30630
30635
|
}, n.prototype.nonMaxSuppression = function(t, r, o, a, i) {
|
|
30631
|
-
return de(t, "nonMaxSuppression"),
|
|
30636
|
+
return de(t, "nonMaxSuppression"), Od(this.readSync(t.dataId), this.readSync(r.dataId), o, a, i);
|
|
30632
30637
|
}, n.prototype.fft = function(t) {
|
|
30633
30638
|
return this.fftBatch(t, !1);
|
|
30634
30639
|
}, n.prototype.ifft = function(t) {
|
|
@@ -30822,10 +30827,10 @@ Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed thi
|
|
|
30822
30827
|
j.registerBackend("cpu", function() {
|
|
30823
30828
|
return new $T();
|
|
30824
30829
|
}, 1);
|
|
30825
|
-
for (var
|
|
30830
|
+
for (var Yl = 0, Ap = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu", kernelFunc: function(e) {
|
|
30826
30831
|
var n = e.inputs, t = e.backend, r = e.attrs, o = n, a = o.boxes, i = o.scores, s = r, u = s.maxOutputSize, l = s.iouThreshold, c = s.scoreThreshold, d = s.softNmsSigma, f = t;
|
|
30827
30832
|
de(a, "NonMaxSuppressionWithScore");
|
|
30828
|
-
var h =
|
|
30833
|
+
var h = Nd(f.data.get(a.dataId).values, f.data.get(i.dataId).values, u, l, c, d);
|
|
30829
30834
|
return [h.selectedIndices, h.selectedScores];
|
|
30830
30835
|
} }, { kernelName: "Square", backendName: "cpu", kernelFunc: function(e) {
|
|
30831
30836
|
var n = e.inputs, t = e.backend, r = n.x, o = t;
|
|
@@ -30862,8 +30867,8 @@ for (var Kl = 0, Ap = [{ kernelName: "NonMaxSuppressionV5", backendName: "cpu",
|
|
|
30862
30867
|
return p * p;
|
|
30863
30868
|
}), c = l[0], d = l[1];
|
|
30864
30869
|
return { dataId: i.write(c, d, o.dtype), shape: d, dtype: o.dtype };
|
|
30865
|
-
} }];
|
|
30866
|
-
$m(Ap[
|
|
30870
|
+
} }]; Yl < Ap.length; Yl++)
|
|
30871
|
+
$m(Ap[Yl]);
|
|
30867
30872
|
var oa, WT = function(e) {
|
|
30868
30873
|
this.variableNames = ["A"];
|
|
30869
30874
|
var n = In(), t = e[0], r = e[1];
|
|
@@ -30929,7 +30934,7 @@ var oa, WT = function(e) {
|
|
|
30929
30934
|
}
|
|
30930
30935
|
`;
|
|
30931
30936
|
};
|
|
30932
|
-
for (var
|
|
30937
|
+
for (var Xl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelFunc: function(e) {
|
|
30933
30938
|
var n = e.inputs, t = e.backend, r = e.attrs, o = n.pixels, a = r.numChannels, i = typeof HTMLVideoElement < "u" && o instanceof HTMLVideoElement, s = typeof HTMLImageElement < "u" && o instanceof HTMLImageElement, u = i ? [o.videoWidth, o.videoHeight] : [o.width, o.height], l = u[0], c = u[1], d = [c, l], f = [c, l, a];
|
|
30934
30939
|
(s || i) && (oa == null && (oa = document.createElement("canvas").getContext("2d")), oa.canvas.width = l, oa.canvas.height = c, oa.drawImage(o, 0, 0, l, c), o = oa.canvas);
|
|
30935
30940
|
var h = t.makeTensorInfo(d, "int32");
|
|
@@ -30939,7 +30944,7 @@ for (var Yl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelF
|
|
|
30939
30944
|
} }, { kernelName: "NonMaxSuppressionV5", backendName: "webgl", kernelFunc: function(e) {
|
|
30940
30945
|
var n = e.inputs, t = e.backend, r = e.attrs;
|
|
30941
30946
|
zs("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");
|
|
30942
|
-
var o = n, a = o.boxes, i = o.scores, s = r, u = s.maxOutputSize, l = s.iouThreshold, c = s.scoreThreshold, d = s.softNmsSigma, f = t, h =
|
|
30947
|
+
var o = n, a = o.boxes, i = o.scores, s = r, u = s.maxOutputSize, l = s.iouThreshold, c = s.scoreThreshold, d = s.softNmsSigma, f = t, h = Nd(f.readSync(a.dataId), f.readSync(i.dataId), u, l, c, d);
|
|
30943
30948
|
return [h.selectedIndices, h.selectedScores];
|
|
30944
30949
|
} }, { kernelName: "Square", backendName: "webgl", kernelFunc: function(e) {
|
|
30945
30950
|
var n = e.inputs, t = e.backend, r = n.x, o = t, a = new lt(r.shape, "return x * x;");
|
|
@@ -30947,9 +30952,9 @@ for (var Yl = 0, Dp = [{ kernelName: "FromPixels", backendName: "webgl", kernelF
|
|
|
30947
30952
|
} }, { kernelName: mi, backendName: "webgl", kernelFunc: function(e) {
|
|
30948
30953
|
var n = e.inputs, t = e.backend, r = n, o = r.a, a = r.b, i = t, s = ie().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new qr("return (a - b) * (a - b);", o.shape, a.shape) : new Kt("return (a - b) * (a - b);", o.shape, a.shape);
|
|
30949
30954
|
return i.compileAndRun(s, [o, a]);
|
|
30950
|
-
} }];
|
|
30951
|
-
$m(Dp[
|
|
30952
|
-
for (var
|
|
30955
|
+
} }]; Xl < Dp.length; Xl++)
|
|
30956
|
+
$m(Dp[Xl]);
|
|
30957
|
+
for (var Ql = 0, Mp = [{ kernelName: "Square", gradFunc: function(e, n) {
|
|
30953
30958
|
var t = n[0];
|
|
30954
30959
|
return { x: function() {
|
|
30955
30960
|
return e.mul(t.toFloat().mul(2));
|
|
@@ -30961,8 +30966,8 @@ for (var Xl = 0, Mp = [{ kernelName: "Square", gradFunc: function(e, n) {
|
|
|
30961
30966
|
}, b: function() {
|
|
30962
30967
|
return Dn(e, Dn(o, un(r, t)));
|
|
30963
30968
|
} };
|
|
30964
|
-
} }];
|
|
30965
|
-
zS(Mp[
|
|
30969
|
+
} }]; Ql < Mp.length; Ql++)
|
|
30970
|
+
zS(Mp[Ql]);
|
|
30966
30971
|
var UT = function() {
|
|
30967
30972
|
function e() {
|
|
30968
30973
|
}
|
|
@@ -30978,14 +30983,14 @@ var UT = function() {
|
|
|
30978
30983
|
}, e;
|
|
30979
30984
|
}();
|
|
30980
30985
|
ie().get("IS_BROWSER") && ie().setPlatform("browser", new UT());
|
|
30981
|
-
var
|
|
30986
|
+
var Zl, jT = function() {
|
|
30982
30987
|
return require("node-fetch");
|
|
30983
30988
|
}, GT = function() {
|
|
30984
30989
|
function e() {
|
|
30985
30990
|
this.util = require("util"), this.textEncoder = new this.util.TextEncoder();
|
|
30986
30991
|
}
|
|
30987
30992
|
return e.prototype.fetch = function(n, t) {
|
|
30988
|
-
return ie().global.fetch != null ? ie().global.fetch(n, t) : (
|
|
30993
|
+
return ie().global.fetch != null ? ie().global.fetch(n, t) : (Zl == null && (Zl = jT()), Zl(n, t));
|
|
30989
30994
|
}, e.prototype.now = function() {
|
|
30990
30995
|
var n = process.hrtime();
|
|
30991
30996
|
return 1e3 * n[0] + n[1] / 1e6;
|
|
@@ -30997,14 +31002,14 @@ var Ql, jT = function() {
|
|
|
30997
31002
|
}, e;
|
|
30998
31003
|
}();
|
|
30999
31004
|
ie().get("IS_NODE") && ie().setPlatform("node", new GT());
|
|
31000
|
-
var
|
|
31005
|
+
var Vc = { float32: 4, int32: 4, uint16: 2, uint8: 1, bool: 1 }, eu = 4;
|
|
31001
31006
|
function d0(e, n) {
|
|
31002
31007
|
for (var t = {}, r = 0, o = function(s) {
|
|
31003
31008
|
var u = s.name, l = s.dtype, c = s.shape, d = Be(c), f = void 0;
|
|
31004
31009
|
if ("quantization" in s) {
|
|
31005
31010
|
var h = s.quantization;
|
|
31006
31011
|
if (h.dtype !== "uint8" && h.dtype !== "uint16") throw new Error("Weight " + s.name + " has unknown quantization dtype " + h.dtype + ". Supported quantization dtypes are: 'uint8' and 'uint16'.");
|
|
31007
|
-
var p =
|
|
31012
|
+
var p = Vc[h.dtype], m = e.slice(r, r + d * p), v = h.dtype === "uint8" ? new Uint8Array(m) : new Uint16Array(m);
|
|
31008
31013
|
if (l === "float32") f = Float32Array.from(v, function(C) {
|
|
31009
31014
|
return C * h.scale + h.min;
|
|
31010
31015
|
});
|
|
@@ -31025,7 +31030,7 @@ function d0(e, n) {
|
|
|
31025
31030
|
f.push(g), r += b;
|
|
31026
31031
|
}
|
|
31027
31032
|
} else {
|
|
31028
|
-
var x =
|
|
31033
|
+
var x = Vc[l];
|
|
31029
31034
|
if (m = e.slice(r, r + d * x), l === "float32") f = new Float32Array(m);
|
|
31030
31035
|
else if (l === "int32") f = new Int32Array(m);
|
|
31031
31036
|
else {
|
|
@@ -31050,11 +31055,11 @@ function KT(e) {
|
|
|
31050
31055
|
r.set(new Uint8Array(a.buffer), o), o += a.byteLength;
|
|
31051
31056
|
}), r.buffer;
|
|
31052
31057
|
}
|
|
31053
|
-
var
|
|
31058
|
+
var zc = typeof Buffer < "u" && (typeof Blob > "u" || typeof atob > "u" || typeof btoa > "u");
|
|
31054
31059
|
function Fp(e) {
|
|
31055
|
-
return
|
|
31060
|
+
return zc ? Buffer.byteLength(e) : new Blob([e]).size;
|
|
31056
31061
|
}
|
|
31057
|
-
function
|
|
31062
|
+
function nf(e) {
|
|
31058
31063
|
var n = 0;
|
|
31059
31064
|
e.forEach(function(o) {
|
|
31060
31065
|
n += o.byteLength;
|
|
@@ -31162,7 +31167,7 @@ function f0() {
|
|
|
31162
31167
|
if (n == null) throw new Error("The current browser does not appear to support IndexedDB.");
|
|
31163
31168
|
return n;
|
|
31164
31169
|
}
|
|
31165
|
-
function
|
|
31170
|
+
function $c(e) {
|
|
31166
31171
|
var n = e.result;
|
|
31167
31172
|
n.createObjectStore(To, { keyPath: "modelPath" }), n.createObjectStore(ao, { keyPath: "modelPath" });
|
|
31168
31173
|
}
|
|
@@ -31189,7 +31194,7 @@ var Ca = function() {
|
|
|
31189
31194
|
return new Promise(function(o, a) {
|
|
31190
31195
|
var i = r.indexedDB.open("tensorflowjs", 1);
|
|
31191
31196
|
i.onupgradeneeded = function() {
|
|
31192
|
-
return
|
|
31197
|
+
return $c(i);
|
|
31193
31198
|
}, i.onsuccess = function() {
|
|
31194
31199
|
var s = i.result;
|
|
31195
31200
|
if (t == null) {
|
|
@@ -31245,7 +31250,7 @@ var YT = function() {
|
|
|
31245
31250
|
return [2, new Promise(function(r, o) {
|
|
31246
31251
|
var a = n.indexedDB.open("tensorflowjs", 1);
|
|
31247
31252
|
a.onupgradeneeded = function() {
|
|
31248
|
-
return
|
|
31253
|
+
return $c(a);
|
|
31249
31254
|
}, a.onsuccess = function() {
|
|
31250
31255
|
var i = a.result, s = i.transaction(ao, "readonly"), u = s.objectStore(ao).getAll();
|
|
31251
31256
|
u.onsuccess = function() {
|
|
@@ -31273,7 +31278,7 @@ var YT = function() {
|
|
|
31273
31278
|
return n = (o = n).startsWith(Ca.URL_SCHEME) ? o.slice(Ca.URL_SCHEME.length) : o, [2, new Promise(function(a, i) {
|
|
31274
31279
|
var s = t.indexedDB.open("tensorflowjs", 1);
|
|
31275
31280
|
s.onupgradeneeded = function() {
|
|
31276
|
-
return
|
|
31281
|
+
return $c(s);
|
|
31277
31282
|
}, s.onsuccess = function() {
|
|
31278
31283
|
var u, l = s.result, c = l.transaction(ao, "readwrite"), d = c.objectStore(ao), f = d.get(n);
|
|
31279
31284
|
f.onsuccess = function() {
|
|
@@ -31331,7 +31336,7 @@ var ka = function() {
|
|
|
31331
31336
|
t = JSON.stringify(n.modelTopology), r = JSON.stringify(n.weightSpecs), o = Li(n);
|
|
31332
31337
|
try {
|
|
31333
31338
|
return this.LS.setItem(this.keys.info, JSON.stringify(o)), this.LS.setItem(this.keys.topology, t), this.LS.setItem(this.keys.weightSpecs, r), this.LS.setItem(this.keys.weightData, function(i) {
|
|
31334
|
-
if (
|
|
31339
|
+
if (zc) return Buffer.from(i).toString("base64");
|
|
31335
31340
|
for (var s = new Uint8Array(i), u = "", l = 0, c = s.length; l < c; l++) u += String.fromCharCode(s[l]);
|
|
31336
31341
|
return btoa(u);
|
|
31337
31342
|
}(n.weightData)), this.LS.setItem(this.keys.modelMetadata, JSON.stringify({ format: n.format, generatedBy: n.generatedBy, convertedBy: n.convertedBy, userDefinedMetadata: n.userDefinedMetadata })), [2, { modelArtifactsInfo: o }];
|
|
@@ -31351,7 +31356,7 @@ var ka = function() {
|
|
|
31351
31356
|
if (t.modelTopology = r, (o = JSON.parse(this.LS.getItem(this.keys.weightSpecs))) == null) throw new Error("In local storage, the weight specs of model '" + this.modelPath + "' are missing.");
|
|
31352
31357
|
if (t.weightSpecs = o, (a = this.LS.getItem(this.keys.modelMetadata)) != null && (i = JSON.parse(a), t.format = i.format, t.generatedBy = i.generatedBy, t.convertedBy = i.convertedBy, t.userDefinedMetadata = i.userDefinedMetadata), (s = this.LS.getItem(this.keys.weightData)) == null) throw new Error("In local storage, the binary weight values of model '" + this.modelPath + "' are missing.");
|
|
31353
31358
|
return t.weightData = function(l) {
|
|
31354
|
-
if (
|
|
31359
|
+
if (zc) {
|
|
31355
31360
|
var c = Buffer.from(l, "base64");
|
|
31356
31361
|
return c.buffer.slice(c.byteOffset, c.byteOffset + c.byteLength);
|
|
31357
31362
|
}
|
|
@@ -31403,7 +31408,7 @@ function Lp(e) {
|
|
|
31403
31408
|
return setTimeout(n);
|
|
31404
31409
|
}).then(e);
|
|
31405
31410
|
}
|
|
31406
|
-
var
|
|
31411
|
+
var Jl = function() {
|
|
31407
31412
|
function e(n) {
|
|
31408
31413
|
if (!ie().getBool("IS_BROWSER")) throw new Error("browserDownloads() cannot proceed because the current environment is not a browser.");
|
|
31409
31414
|
n.startsWith(e.URL_SCHEME) && (n = n.slice(e.URL_SCHEME.length)), n != null && n.length !== 0 || (n = n6), this.modelTopologyFileName = n + r6, this.weightDataFileName = n + o6;
|
|
@@ -31466,7 +31471,7 @@ var Zl = function() {
|
|
|
31466
31471
|
var w = new FileReader();
|
|
31467
31472
|
w.onload = function(b) {
|
|
31468
31473
|
var g = b.target.result, x = p.indexOf(y);
|
|
31469
|
-
m[x] = g, m.indexOf(null) === -1 && a({ modelTopology: c, weightSpecs: h, weightData:
|
|
31474
|
+
m[x] = g, m.indexOf(null) === -1 && a({ modelTopology: c, weightSpecs: h, weightData: nf(m), format: l.format, generatedBy: l.generatedBy, convertedBy: l.convertedBy, userDefinedMetadata: l.userDefinedMetadata });
|
|
31470
31475
|
}, w.onerror = function(b) {
|
|
31471
31476
|
return i("Failed to weights data from file of path '" + y + "'.");
|
|
31472
31477
|
}, w.readAsArrayBuffer(f[y]);
|
|
@@ -31562,7 +31567,7 @@ function Vp(e) {
|
|
|
31562
31567
|
}) : [], u = [], t.forEach(function(v, y) {
|
|
31563
31568
|
var w = 0;
|
|
31564
31569
|
v.weights.forEach(function(b) {
|
|
31565
|
-
var g = "quantization" in b ? b.quantization.dtype : b.dtype, x =
|
|
31570
|
+
var g = "quantization" in b ? b.quantization.dtype : b.dtype, x = Vc[g] * Be(b.shape), C = function() {
|
|
31566
31571
|
a[y] = !0, i[y] == null && (i[y] = []), i[y].push({ manifestEntry: b, groupOffset: w, sizeBytes: x });
|
|
31567
31572
|
};
|
|
31568
31573
|
o != null ? o.forEach(function(S, E) {
|
|
@@ -31601,9 +31606,9 @@ Manifest JSON has weights with names: ` + u.join(", ") + ".");
|
|
|
31601
31606
|
};
|
|
31602
31607
|
}
|
|
31603
31608
|
Xn.registerSaveRouter(function(e) {
|
|
31604
|
-
return ie().getBool("IS_BROWSER") && !Array.isArray(e) && e.startsWith(
|
|
31605
|
-
return n === void 0 && (n = "model"), new
|
|
31606
|
-
}(e.slice(
|
|
31609
|
+
return ie().getBool("IS_BROWSER") && !Array.isArray(e) && e.startsWith(Jl.URL_SCHEME) ? function(n) {
|
|
31610
|
+
return n === void 0 && (n = "model"), new Jl(n);
|
|
31611
|
+
}(e.slice(Jl.URL_SCHEME.length)) : null;
|
|
31607
31612
|
});
|
|
31608
31613
|
var m0 = function() {
|
|
31609
31614
|
function e(n, t) {
|
|
@@ -31672,25 +31677,25 @@ var m0 = function() {
|
|
|
31672
31677
|
});
|
|
31673
31678
|
}), [4, v0(d, { requestInit: this.requestInit, fetchFunc: this.fetch, onProgress: this.onProgress })];
|
|
31674
31679
|
case 1:
|
|
31675
|
-
return f = h.sent(), [2, [s,
|
|
31680
|
+
return f = h.sent(), [2, [s, nf(f)]];
|
|
31676
31681
|
}
|
|
31677
31682
|
});
|
|
31678
31683
|
});
|
|
31679
31684
|
}, e.URL_SCHEME_REGEX = /^https?:\/\//, e;
|
|
31680
31685
|
}();
|
|
31681
|
-
function
|
|
31686
|
+
function Wc(e) {
|
|
31682
31687
|
return e.match(m0.URL_SCHEME_REGEX) != null;
|
|
31683
31688
|
}
|
|
31684
31689
|
var zp = function(e, n) {
|
|
31685
31690
|
return typeof fetch > "u" ? null : (Array.isArray(e) ? e.every(function(t) {
|
|
31686
|
-
return
|
|
31687
|
-
}) :
|
|
31691
|
+
return Wc(t);
|
|
31692
|
+
}) : Wc(e)) ? Hc(e, { onProgress: n }) : null;
|
|
31688
31693
|
};
|
|
31689
|
-
function
|
|
31694
|
+
function Hc(e, n) {
|
|
31690
31695
|
return new m0(e, n);
|
|
31691
31696
|
}
|
|
31692
31697
|
Xn.registerSaveRouter(zp), Xn.registerLoadRouter(zp);
|
|
31693
|
-
var
|
|
31698
|
+
var ec = function() {
|
|
31694
31699
|
function e(n) {
|
|
31695
31700
|
this.modelArtifacts = n;
|
|
31696
31701
|
}
|
|
@@ -31715,8 +31720,8 @@ var Jl = function() {
|
|
|
31715
31720
|
}(), g0 = Object.freeze({ browserFiles: function(e) {
|
|
31716
31721
|
return new a6(e);
|
|
31717
31722
|
}, browserHTTPRequest: function(e, n) {
|
|
31718
|
-
return
|
|
31719
|
-
}, concatenateArrayBuffers:
|
|
31723
|
+
return Hc(e, n);
|
|
31724
|
+
}, concatenateArrayBuffers: nf, decodeWeights: d0, encodeWeights: function(e, n) {
|
|
31720
31725
|
return Me(this, void 0, void 0, function() {
|
|
31721
31726
|
var t, r, o, a, i, s = this;
|
|
31722
31727
|
return Fe(this, function(u) {
|
|
@@ -31756,12 +31761,12 @@ var Jl = function() {
|
|
|
31756
31761
|
});
|
|
31757
31762
|
});
|
|
31758
31763
|
}, fromMemory: function(e, n, t, r) {
|
|
31759
|
-
return arguments.length === 1 ? e.modelTopology != null || e.weightSpecs != null ? new
|
|
31764
|
+
return arguments.length === 1 ? e.modelTopology != null || e.weightSpecs != null ? new ec(e) : (console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."), new ec({ modelTopology: e })) : (console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."), new ec({ modelTopology: e, weightSpecs: n, weightData: t, trainingConfig: r }));
|
|
31760
31765
|
}, getLoadHandlers: function(e, n) {
|
|
31761
31766
|
return Xn.getLoadHandlers(e, n);
|
|
31762
31767
|
}, getModelArtifactsInfoForJSON: Li, getSaveHandlers: function(e) {
|
|
31763
31768
|
return Xn.getSaveHandlers(e);
|
|
31764
|
-
}, http:
|
|
31769
|
+
}, http: Hc, isHTTPScheme: Wc, loadWeights: function(e, n, t, r) {
|
|
31765
31770
|
return n === void 0 && (n = ""), Me(this, void 0, void 0, function() {
|
|
31766
31771
|
return Fe(this, function(o) {
|
|
31767
31772
|
return [2, Vp(function(a) {
|
|
@@ -31827,7 +31832,7 @@ $({ confusionMatrix_: function(e, n, t) {
|
|
|
31827
31832
|
}), B(t > 0 && Number.isInteger(t), function() {
|
|
31828
31833
|
return "numClasses is required to be a positive integer, but got " + t;
|
|
31829
31834
|
});
|
|
31830
|
-
var a =
|
|
31835
|
+
var a = Bc(r.asType("int32"), t), i = Bc(o.asType("int32"), t);
|
|
31831
31836
|
return a.transpose().matMul(i).asType("int32");
|
|
31832
31837
|
} });
|
|
31833
31838
|
var s6 = $({ fromPixels_: function(e, n) {
|
|
@@ -31852,8 +31857,8 @@ var s6 = $({ fromPixels_: function(e, n) {
|
|
|
31852
31857
|
u = new Int32Array(f * n);
|
|
31853
31858
|
for (var h = 0; h < f; h++) for (var p = 0; p < n; ++p) u[h * n + p] = s[4 * h + p];
|
|
31854
31859
|
}
|
|
31855
|
-
return
|
|
31856
|
-
} }),
|
|
31860
|
+
return Dd(u, [d, c, n], "int32");
|
|
31861
|
+
} }), rf = Object.freeze({ toPixels: function(e, n) {
|
|
31857
31862
|
return Me(this, void 0, void 0, function() {
|
|
31858
31863
|
var t, r, o, a, i, s, u, l, c, d, f, h, p, m, v, y, w, b, g, x, C, S, E;
|
|
31859
31864
|
return Fe(this, function(R) {
|
|
@@ -32446,15 +32451,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
32446
32451
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
32447
32452
|
PERFORMANCE OF THIS SOFTWARE.
|
|
32448
32453
|
***************************************************************************** */
|
|
32449
|
-
var
|
|
32450
|
-
return
|
|
32454
|
+
var Uc = function(e, n) {
|
|
32455
|
+
return Uc = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
32451
32456
|
t.__proto__ = r;
|
|
32452
32457
|
} || function(t, r) {
|
|
32453
32458
|
for (var o in r) r.hasOwnProperty(o) && (t[o] = r[o]);
|
|
32454
|
-
},
|
|
32459
|
+
}, Uc(e, n);
|
|
32455
32460
|
};
|
|
32456
32461
|
function nt(e, n) {
|
|
32457
|
-
|
|
32462
|
+
Uc(e, n);
|
|
32458
32463
|
function t() {
|
|
32459
32464
|
this.constructor = e;
|
|
32460
32465
|
}
|
|
@@ -32618,7 +32623,7 @@ function y6(e, n) {
|
|
|
32618
32623
|
var t = e.width, r = e.height, o = n / Math.max(r, t);
|
|
32619
32624
|
return new Oo(Math.round(t * o), Math.round(r * o));
|
|
32620
32625
|
}
|
|
32621
|
-
function
|
|
32626
|
+
function of(e) {
|
|
32622
32627
|
return e.reduce(function(n, t) {
|
|
32623
32628
|
return n.add(t);
|
|
32624
32629
|
}, new _t(0, 0)).div(new _t(e.length, e.length));
|
|
@@ -32960,7 +32965,7 @@ function x6(e, n) {
|
|
|
32960
32965
|
return on(f, s);
|
|
32961
32966
|
});
|
|
32962
32967
|
}
|
|
32963
|
-
function
|
|
32968
|
+
function tc(e) {
|
|
32964
32969
|
return 1 / (1 + Math.exp(-e));
|
|
32965
32970
|
}
|
|
32966
32971
|
var Ou = (
|
|
@@ -33031,7 +33036,7 @@ var Ou = (
|
|
|
33031
33036
|
}, e.prototype.alignDlib = function() {
|
|
33032
33037
|
var n = this.getRefPointsForAlignment(), t = n[0], r = n[1], o = n[2], a = function(d) {
|
|
33033
33038
|
return o.sub(d).magnitude();
|
|
33034
|
-
}, i = (a(t) + a(r)) / 2, s = Math.floor(i / _6), u =
|
|
33039
|
+
}, i = (a(t) + a(r)) / 2, s = Math.floor(i / _6), u = of(n), l = Math.floor(Math.max(0, u.x - C6 * s)), c = Math.floor(Math.max(0, u.y - k6 * s));
|
|
33035
33040
|
return new Ou(l, c, Math.min(s, this.imageWidth + l), Math.min(s, this.imageHeight + c));
|
|
33036
33041
|
}, e.prototype.alignMinBbox = function(n) {
|
|
33037
33042
|
var t = w6(this.positions);
|
|
@@ -33052,7 +33057,7 @@ var Ou = (
|
|
|
33052
33057
|
return [
|
|
33053
33058
|
t[0],
|
|
33054
33059
|
t[1],
|
|
33055
|
-
|
|
33060
|
+
of([t[3], t[4]])
|
|
33056
33061
|
];
|
|
33057
33062
|
}, n;
|
|
33058
33063
|
}(Ba)
|
|
@@ -33082,7 +33087,7 @@ var Ou = (
|
|
|
33082
33087
|
this.getLeftEye(),
|
|
33083
33088
|
this.getRightEye(),
|
|
33084
33089
|
this.getMouth()
|
|
33085
|
-
].map(
|
|
33090
|
+
].map(of);
|
|
33086
33091
|
}, n;
|
|
33087
33092
|
}(Ba)
|
|
33088
33093
|
), Up = (
|
|
@@ -33298,14 +33303,14 @@ function E6() {
|
|
|
33298
33303
|
throw new Error("getEnv - environment is not defined, check isNodejs() and isBrowser()");
|
|
33299
33304
|
return nn;
|
|
33300
33305
|
}
|
|
33301
|
-
function
|
|
33306
|
+
function jc(e) {
|
|
33302
33307
|
nn = e;
|
|
33303
33308
|
}
|
|
33304
|
-
function
|
|
33305
|
-
S0() &&
|
|
33309
|
+
function af() {
|
|
33310
|
+
S0() && jc(C0()), E0() && jc(_0());
|
|
33306
33311
|
}
|
|
33307
33312
|
function R6(e) {
|
|
33308
|
-
if (nn ||
|
|
33313
|
+
if (nn || af(), !nn)
|
|
33309
33314
|
throw new Error("monkeyPatch - environment is not defined, check isNodejs() and isBrowser()");
|
|
33310
33315
|
var n = e.Canvas, t = n === void 0 ? nn.Canvas : n, r = e.Image, o = r === void 0 ? nn.Image : r;
|
|
33311
33316
|
nn.Canvas = t, nn.Image = o, nn.createCanvasElement = e.createCanvasElement || function() {
|
|
@@ -33316,8 +33321,8 @@ function R6(e) {
|
|
|
33316
33321
|
}
|
|
33317
33322
|
var Mn = {
|
|
33318
33323
|
getEnv: E6,
|
|
33319
|
-
setEnv:
|
|
33320
|
-
initialize:
|
|
33324
|
+
setEnv: jc,
|
|
33325
|
+
initialize: af,
|
|
33321
33326
|
createBrowserEnv: C0,
|
|
33322
33327
|
createFileSystem: k0,
|
|
33323
33328
|
createNodejsEnv: _0,
|
|
@@ -33325,15 +33330,15 @@ var Mn = {
|
|
|
33325
33330
|
isBrowser: S0,
|
|
33326
33331
|
isNodejs: E0
|
|
33327
33332
|
};
|
|
33328
|
-
|
|
33329
|
-
function
|
|
33333
|
+
af();
|
|
33334
|
+
function sf(e) {
|
|
33330
33335
|
return !Mn.isNodejs() && typeof e == "string" ? document.getElementById(e) : e;
|
|
33331
33336
|
}
|
|
33332
33337
|
function Dr(e) {
|
|
33333
33338
|
var n = Mn.getEnv(), t = n.Canvas, r = n.CanvasRenderingContext2D;
|
|
33334
33339
|
if (e instanceof r)
|
|
33335
33340
|
return e;
|
|
33336
|
-
var o =
|
|
33341
|
+
var o = sf(e);
|
|
33337
33342
|
if (!(o instanceof t))
|
|
33338
33343
|
throw new Error("resolveContext2d - expected canvas to be of instance of Canvas");
|
|
33339
33344
|
var a = o.getContext("2d");
|
|
@@ -33379,7 +33384,7 @@ var R0 = (
|
|
|
33379
33384
|
}
|
|
33380
33385
|
return { x: u, y: l };
|
|
33381
33386
|
}, e.prototype.draw = function(n) {
|
|
33382
|
-
var t =
|
|
33387
|
+
var t = sf(n), r = Dr(t), o = this.options, a = o.backgroundColor, i = o.fontColor, s = o.fontSize, u = o.fontStyle, l = o.padding;
|
|
33383
33388
|
r.font = s + "px " + u;
|
|
33384
33389
|
var c = this.measureWidth(r), d = this.measureHeight();
|
|
33385
33390
|
r.fillStyle = a;
|
|
@@ -33443,7 +33448,7 @@ function M6(e) {
|
|
|
33443
33448
|
e.addEventListener("load", r), e.addEventListener("error", o);
|
|
33444
33449
|
});
|
|
33445
33450
|
}
|
|
33446
|
-
function
|
|
33451
|
+
function uf(e) {
|
|
33447
33452
|
var n = Mn.getEnv(), t = n.Image, r = n.Video;
|
|
33448
33453
|
return e instanceof t ? new Oo(e.naturalWidth, e.naturalHeight) : e instanceof r ? new Oo(e.videoWidth, e.videoHeight) : new Oo(e.width, e.height);
|
|
33449
33454
|
}
|
|
@@ -33455,7 +33460,7 @@ function Lu(e, n) {
|
|
|
33455
33460
|
var t = Mn.getEnv().ImageData;
|
|
33456
33461
|
if (!(e instanceof t) && !I0(e))
|
|
33457
33462
|
throw new Error("createCanvasFromMedia - media has not finished loading yet");
|
|
33458
|
-
var r =
|
|
33463
|
+
var r = uf(e), o = r.width, a = r.height, i = Nu({ width: o, height: a });
|
|
33459
33464
|
return e instanceof t ? Dr(i).putImageData(e, 0, 0) : Dr(i).drawImage(e, 0, 0, o, a), i;
|
|
33460
33465
|
}
|
|
33461
33466
|
function F6(e, n) {
|
|
@@ -33466,7 +33471,7 @@ function F6(e, n) {
|
|
|
33466
33471
|
case 0:
|
|
33467
33472
|
return t = Mn.getEnv().createCanvasElement(), r = e.shape.slice(co(e) ? 1 : 0), o = r[0], a = r[1], i = r[2], s = Re(function() {
|
|
33468
33473
|
return e.as3D(o, a, i).toInt();
|
|
33469
|
-
}), [4,
|
|
33474
|
+
}), [4, rf.toPixels(s, t)];
|
|
33470
33475
|
case 1:
|
|
33471
33476
|
return u.sent(), s.dispose(), [2, t];
|
|
33472
33477
|
}
|
|
@@ -33482,7 +33487,7 @@ function P6(e, n, t) {
|
|
|
33482
33487
|
var r = Mn.getEnv(), o = r.Image, a = r.Canvas;
|
|
33483
33488
|
if (!(e instanceof o || e instanceof a))
|
|
33484
33489
|
throw new Error("imageToSquare - expected arg0 to be HTMLImageElement | HTMLCanvasElement");
|
|
33485
|
-
var i =
|
|
33490
|
+
var i = uf(e), s = n / Math.max(i.height, i.width), u = s * i.width, l = s * i.height, c = Nu({ width: n, height: n }), d = e instanceof a ? e : Lu(e), f = Math.abs(u - l) / 2, h = t && u < l ? f : 0, p = t && l < u ? f : 0;
|
|
33486
33491
|
return Dr(c).drawImage(d, h, p, u, l), c;
|
|
33487
33492
|
}
|
|
33488
33493
|
var nu = (
|
|
@@ -33573,10 +33578,10 @@ var nu = (
|
|
|
33573
33578
|
var s = r.getInput(i);
|
|
33574
33579
|
if (s instanceof Ht) {
|
|
33575
33580
|
var u = co(s) ? s : s.expandDims();
|
|
33576
|
-
return u = x6(u, t), (u.shape[1] !== n || u.shape[2] !== n) && (u =
|
|
33581
|
+
return u = x6(u, t), (u.shape[1] !== n || u.shape[2] !== n) && (u = Qd.resizeBilinear(u, [n, n])), u.as3D(n, n, 3);
|
|
33577
33582
|
}
|
|
33578
33583
|
if (s instanceof Mn.getEnv().Canvas)
|
|
33579
|
-
return
|
|
33584
|
+
return rf.fromPixels(P6(s, n, t));
|
|
33580
33585
|
throw new Error("toBatchTensor - at batchIdx " + i + ", expected input to be instanceof tf.Tensor or instanceof HTMLCanvasElement, instead have " + s);
|
|
33581
33586
|
}), a = Zn(o.map(function(i) {
|
|
33582
33587
|
return i.toFloat();
|
|
@@ -33598,7 +33603,7 @@ function mn(e) {
|
|
|
33598
33603
|
throw new Error("toNetInput - empty array passed as input");
|
|
33599
33604
|
return t = function(a) {
|
|
33600
33605
|
return Array.isArray(e) ? " at input index " + a + ":" : "";
|
|
33601
|
-
}, r = n.map(
|
|
33606
|
+
}, r = n.map(sf), r.forEach(function(a, i) {
|
|
33602
33607
|
if (!Gp(a) && !Pu(a) && !co(a))
|
|
33603
33608
|
throw typeof n[i] == "string" ? new Error("toNetInput -" + t(i) + " string passed, but could not resolve HTMLElement for element id " + n[i]) : new Error("toNetInput -" + t(i) + " expected media to be of type HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | tf.Tensor3D, or to be an element id");
|
|
33604
33609
|
if (co(a)) {
|
|
@@ -33645,7 +33650,7 @@ function qu(e, n) {
|
|
|
33645
33650
|
});
|
|
33646
33651
|
});
|
|
33647
33652
|
}
|
|
33648
|
-
function
|
|
33653
|
+
function lf(e, n) {
|
|
33649
33654
|
return Le(this, void 0, void 0, function() {
|
|
33650
33655
|
return qe(this, function(t) {
|
|
33651
33656
|
if (!Pu(e) && !co(e))
|
|
@@ -33730,7 +33735,7 @@ function N6(e, n) {
|
|
|
33730
33735
|
}
|
|
33731
33736
|
function L6(e, n, t) {
|
|
33732
33737
|
t === void 0 && (t = !1);
|
|
33733
|
-
var r = t ?
|
|
33738
|
+
var r = t ? uf(n) : n, o = r.width, a = r.height;
|
|
33734
33739
|
return e.width = o, e.height = a, { width: o, height: a };
|
|
33735
33740
|
}
|
|
33736
33741
|
var Kr = (
|
|
@@ -33886,11 +33891,11 @@ var Kr = (
|
|
|
33886
33891
|
);
|
|
33887
33892
|
function Qn(e, n, t) {
|
|
33888
33893
|
return Re(function() {
|
|
33889
|
-
var r =
|
|
33894
|
+
var r = jd(e, n.depthwise_filter, n.pointwise_filter, t, "same");
|
|
33890
33895
|
return r = ft(r, n.bias), r;
|
|
33891
33896
|
});
|
|
33892
33897
|
}
|
|
33893
|
-
function
|
|
33898
|
+
function nc(e, n, t) {
|
|
33894
33899
|
return t === void 0 && (t = !1), Re(function() {
|
|
33895
33900
|
var r = Ut(t ? ft(ir(e, n.conv0.filters, [2, 2], "same"), n.conv0.bias) : Qn(e, n.conv0, [2, 2])), o = Qn(r, n.conv1, [1, 1]), a = Ut(ft(r, o)), i = Qn(a, n.conv2, [1, 1]);
|
|
33896
33901
|
return Ut(ft(r, ft(o, i)));
|
|
@@ -33921,7 +33926,7 @@ function Vu(e, n) {
|
|
|
33921
33926
|
return n.push({ paramPath: a + "/filters" }, { paramPath: a + "/bias" }), { filters: i, bias: s };
|
|
33922
33927
|
};
|
|
33923
33928
|
}
|
|
33924
|
-
function
|
|
33929
|
+
function cf(e, n) {
|
|
33925
33930
|
return function(t, r, o) {
|
|
33926
33931
|
var a = uo(e(t * r), [t, r]), i = tn(e(r));
|
|
33927
33932
|
return n.push({ paramPath: o + "/weights" }, { paramPath: o + "/bias" }), {
|
|
@@ -33939,13 +33944,13 @@ var A0 = (
|
|
|
33939
33944
|
return e;
|
|
33940
33945
|
}()
|
|
33941
33946
|
);
|
|
33942
|
-
function
|
|
33947
|
+
function df(e, n) {
|
|
33943
33948
|
return function(t, r, o) {
|
|
33944
33949
|
var a = Pn(e(9 * t), [3, 3, t, 1]), i = Pn(e(t * r), [1, 1, t, r]), s = tn(e(r));
|
|
33945
33950
|
return n.push({ paramPath: o + "/depthwise_filter" }, { paramPath: o + "/pointwise_filter" }, { paramPath: o + "/bias" }), new A0(a, i, s);
|
|
33946
33951
|
};
|
|
33947
33952
|
}
|
|
33948
|
-
function
|
|
33953
|
+
function ff(e) {
|
|
33949
33954
|
return function(n) {
|
|
33950
33955
|
var t = e(n + "/depthwise_filter", 4), r = e(n + "/pointwise_filter", 4), o = e(n + "/bias", 1);
|
|
33951
33956
|
return new A0(t, r, o);
|
|
@@ -33974,7 +33979,7 @@ function Xr(e) {
|
|
|
33974
33979
|
};
|
|
33975
33980
|
}
|
|
33976
33981
|
function D0(e, n) {
|
|
33977
|
-
var t = Vu(e, n), r =
|
|
33982
|
+
var t = Vu(e, n), r = df(e, n);
|
|
33978
33983
|
function o(i, s, u, l) {
|
|
33979
33984
|
l === void 0 && (l = !1);
|
|
33980
33985
|
var c = l ? t(i, s, 3, u + "/conv0") : r(i, s, u + "/conv0"), d = r(s, s, u + "/conv1"), f = r(s, s, u + "/conv2");
|
|
@@ -34006,7 +34011,7 @@ function M0(e) {
|
|
|
34006
34011
|
};
|
|
34007
34012
|
}
|
|
34008
34013
|
function F0(e, n) {
|
|
34009
|
-
var t = go(e, n), r = M0(t), o =
|
|
34014
|
+
var t = go(e, n), r = M0(t), o = ff(t);
|
|
34010
34015
|
function a(s, u) {
|
|
34011
34016
|
u === void 0 && (u = !1);
|
|
34012
34017
|
var l = u ? r(s + "/conv0") : o(s + "/conv0"), c = o(s + "/conv1"), d = o(s + "/conv2");
|
|
@@ -34073,7 +34078,7 @@ function Sr(e, n) {
|
|
|
34073
34078
|
});
|
|
34074
34079
|
}
|
|
34075
34080
|
function z6(e, n, t) {
|
|
34076
|
-
var r = [], o = Xr(e), a = o.extractWeights, i = o.getRemainingWeights, s =
|
|
34081
|
+
var r = [], o = Xr(e), a = o.extractWeights, i = o.getRemainingWeights, s = cf(a, r), u = s(n, t, "fc");
|
|
34077
34082
|
if (i().length !== 0)
|
|
34078
34083
|
throw new Error("weights remaing after extract: " + i().length);
|
|
34079
34084
|
return {
|
|
@@ -34223,7 +34228,7 @@ function N0(e, n) {
|
|
|
34223
34228
|
var t = { expressions: n };
|
|
34224
34229
|
return Object.assign({}, e, t);
|
|
34225
34230
|
}
|
|
34226
|
-
function
|
|
34231
|
+
function hf(e) {
|
|
34227
34232
|
return tu(e) && e.landmarks instanceof Ba && e.unshiftedLandmarks instanceof Ba && e.alignedRect instanceof er;
|
|
34228
34233
|
}
|
|
34229
34234
|
function zu(e, n) {
|
|
@@ -34265,14 +34270,14 @@ var U6 = (
|
|
|
34265
34270
|
function G6(e, n) {
|
|
34266
34271
|
var t = Array.isArray(n) ? n : [n];
|
|
34267
34272
|
t.forEach(function(r) {
|
|
34268
|
-
var o = r instanceof Ba ? r :
|
|
34273
|
+
var o = r instanceof Ba ? r : hf(r) ? r.landmarks : void 0;
|
|
34269
34274
|
if (!o)
|
|
34270
34275
|
throw new Error("drawFaceLandmarks - expected faceExpressions to be FaceLandmarks | WithFaceLandmarks<WithFaceDetection<{}>> or array thereof");
|
|
34271
34276
|
new j6(o).draw(e);
|
|
34272
34277
|
});
|
|
34273
34278
|
}
|
|
34274
34279
|
function K6(e, n) {
|
|
34275
|
-
var t = Vu(e, n), r =
|
|
34280
|
+
var t = Vu(e, n), r = df(e, n);
|
|
34276
34281
|
function o(i, s, u) {
|
|
34277
34282
|
var l = r(i, s, u + "/separable_conv0"), c = r(s, s, u + "/separable_conv1"), d = t(i, s, 1, u + "/expansion_conv");
|
|
34278
34283
|
return { separable_conv0: l, separable_conv1: c, expansion_conv: d };
|
|
@@ -34309,7 +34314,7 @@ function Y6(e, n) {
|
|
|
34309
34314
|
};
|
|
34310
34315
|
}
|
|
34311
34316
|
function X6(e, n) {
|
|
34312
|
-
var t = go(e, n), r = M0(t), o =
|
|
34317
|
+
var t = go(e, n), r = M0(t), o = ff(t);
|
|
34313
34318
|
function a(s) {
|
|
34314
34319
|
var u = o(s + "/separable_conv0"), l = o(s + "/separable_conv1"), c = r(s + "/expansion_conv");
|
|
34315
34320
|
return { separable_conv0: u, separable_conv1: l, expansion_conv: c };
|
|
@@ -34343,7 +34348,7 @@ function Q6(e, n) {
|
|
|
34343
34348
|
function L0(e, n, t) {
|
|
34344
34349
|
return ft(ir(e, n.filters, t, "same"), n.bias);
|
|
34345
34350
|
}
|
|
34346
|
-
function
|
|
34351
|
+
function rc(e, n, t) {
|
|
34347
34352
|
t === void 0 && (t = !0);
|
|
34348
34353
|
var r = t ? Ut(e) : e;
|
|
34349
34354
|
return r = Qn(r, n.separable_conv0, [1, 1]), r = Qn(Ut(r), n.separable_conv1, [1, 1]), r = dn(r, [3, 3], [2, 2], "same"), r = ft(r, L0(e, n.expansion_conv, [2, 2])), r;
|
|
@@ -34366,9 +34371,9 @@ var J6 = (
|
|
|
34366
34371
|
throw new Error("TinyXception - load model before inference");
|
|
34367
34372
|
return Re(function() {
|
|
34368
34373
|
var a = t.toBatchTensor(112, !0), i = [122.782, 117.001, 104.298], s = qi(a, i).div(Ce(256)), u = Ut(L0(s, o.entry_flow.conv_in, [2, 2]));
|
|
34369
|
-
return u =
|
|
34374
|
+
return u = rc(u, o.entry_flow.reduction_block_0, !1), u = rc(u, o.entry_flow.reduction_block_1), gi(r._numMainBlocks, 0, 1).forEach(function(l) {
|
|
34370
34375
|
u = Z6(u, o.middle_flow["main_block_" + l]);
|
|
34371
|
-
}), u =
|
|
34376
|
+
}), u = rc(u, o.exit_flow.reduction_block), u = Ut(Qn(u, o.exit_flow.separable_conv, [1, 1])), u;
|
|
34372
34377
|
});
|
|
34373
34378
|
}, n.prototype.forward = function(t) {
|
|
34374
34379
|
return Le(this, void 0, void 0, function() {
|
|
@@ -34392,7 +34397,7 @@ var J6 = (
|
|
|
34392
34397
|
}(Kr)
|
|
34393
34398
|
);
|
|
34394
34399
|
function eA(e) {
|
|
34395
|
-
var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a =
|
|
34400
|
+
var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a = cf(r, n), i = a(512, 1, "fc/age"), s = a(512, 2, "fc/gender");
|
|
34396
34401
|
if (o().length !== 0)
|
|
34397
34402
|
throw new Error("weights remaing after extract: " + o().length);
|
|
34398
34403
|
return {
|
|
@@ -34658,8 +34663,8 @@ var aA = (
|
|
|
34658
34663
|
if (!r)
|
|
34659
34664
|
throw new Error("TinyFaceFeatureExtractor - load model before inference");
|
|
34660
34665
|
return Re(function() {
|
|
34661
|
-
var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = qi(o, a).div(Ce(255)), s =
|
|
34662
|
-
return s =
|
|
34666
|
+
var o = t.toBatchTensor(112, !0), a = [122.782, 117.001, 104.298], i = qi(o, a).div(Ce(255)), s = nc(i, r.dense0, !0);
|
|
34667
|
+
return s = nc(s, r.dense1), s = nc(s, r.dense2), s = Ni(s, [14, 14], [2, 2], "valid"), s;
|
|
34663
34668
|
});
|
|
34664
34669
|
}, n.prototype.forward = function(t) {
|
|
34665
34670
|
return Le(this, void 0, void 0, function() {
|
|
@@ -34705,19 +34710,19 @@ var aA = (
|
|
|
34705
34710
|
function sA(e, n) {
|
|
34706
34711
|
return ft(Dn(e, n.weights), n.biases);
|
|
34707
34712
|
}
|
|
34708
|
-
function
|
|
34713
|
+
function pf(e, n, t, r, o) {
|
|
34709
34714
|
o === void 0 && (o = "same");
|
|
34710
34715
|
var a = n.conv, i = a.filters, s = a.bias, u = ir(e, i, t, o);
|
|
34711
34716
|
return u = ft(u, s), u = sA(u, n.scale), r ? Ut(u) : u;
|
|
34712
34717
|
}
|
|
34713
34718
|
function uA(e, n) {
|
|
34714
|
-
return
|
|
34719
|
+
return pf(e, n, [1, 1], !0);
|
|
34715
34720
|
}
|
|
34716
34721
|
function z0(e, n) {
|
|
34717
|
-
return
|
|
34722
|
+
return pf(e, n, [1, 1], !1);
|
|
34718
34723
|
}
|
|
34719
34724
|
function $0(e, n) {
|
|
34720
|
-
return
|
|
34725
|
+
return pf(e, n, [2, 2], !0, "valid");
|
|
34721
34726
|
}
|
|
34722
34727
|
function lA(e, n) {
|
|
34723
34728
|
function t(s, u, l) {
|
|
@@ -35055,7 +35060,7 @@ function pA(e, n) {
|
|
|
35055
35060
|
};
|
|
35056
35061
|
}
|
|
35057
35062
|
function vA(e) {
|
|
35058
|
-
var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a = pA(r, n), i = a.extractMobilenetV1Params, s = a.extractPredictionLayerParams, u = i(), l = s(), c =
|
|
35063
|
+
var n = [], t = Xr(e), r = t.extractWeights, o = t.getRemainingWeights, a = pA(r, n), i = a.extractMobilenetV1Params, s = a.extractPredictionLayerParams, u = i(), l = s(), c = Dd(r(5118 * 4), [1, 5118, 4]), d = {
|
|
35059
35064
|
extra_dim: c
|
|
35060
35065
|
};
|
|
35061
35066
|
if (n.push({ paramPath: "output_layer/extra_dim" }), o().length !== 0)
|
|
@@ -35153,14 +35158,14 @@ function gA(e) {
|
|
|
35153
35158
|
function xr(e, n, t) {
|
|
35154
35159
|
return Re(function() {
|
|
35155
35160
|
var r = ir(e, n.filters, t, "same");
|
|
35156
|
-
return r = ft(r, n.batch_norm_offset),
|
|
35161
|
+
return r = ft(r, n.batch_norm_offset), $d(r, 0, 6);
|
|
35157
35162
|
});
|
|
35158
35163
|
}
|
|
35159
35164
|
var yA = 0.0010000000474974513;
|
|
35160
35165
|
function bA(e, n, t) {
|
|
35161
35166
|
return Re(function() {
|
|
35162
35167
|
var r = Tu(e, n.filters, t, "same");
|
|
35163
|
-
return r = qg(r, n.batch_norm_mean, n.batch_norm_variance, n.batch_norm_offset, n.batch_norm_scale, yA),
|
|
35168
|
+
return r = qg(r, n.batch_norm_mean, n.batch_norm_variance, n.batch_norm_offset, n.batch_norm_scale, yA), $d(r, 0, 6);
|
|
35164
35169
|
});
|
|
35165
35170
|
}
|
|
35166
35171
|
function wA(e) {
|
|
@@ -35238,7 +35243,7 @@ function _A(e) {
|
|
|
35238
35243
|
};
|
|
35239
35244
|
}
|
|
35240
35245
|
function SA(e, n) {
|
|
35241
|
-
var t = _A(e), r = t.sizes, o = t.centers, a = an(ho(n, [1, 0])), i = lr(Dn(
|
|
35246
|
+
var t = _A(e), r = t.sizes, o = t.centers, a = an(ho(n, [1, 0])), i = lr(Dn(qc(lr(a[2], Ce(5))), r[0]), Ce(2)), s = ft(Dn(lr(a[0], Ce(10)), r[0]), o[0]), u = lr(Dn(qc(lr(a[3], Ce(5))), r[1]), Ce(2)), l = ft(Dn(lr(a[1], Ce(10)), r[1]), o[1]);
|
|
35242
35247
|
return ho(Zn([
|
|
35243
35248
|
un(s, i),
|
|
35244
35249
|
un(l, u),
|
|
@@ -35425,7 +35430,7 @@ function PA(e) {
|
|
|
35425
35430
|
if (e.meanRgb && (!Array.isArray(e.meanRgb) || e.meanRgb.length !== 3 || !e.meanRgb.every(ls)))
|
|
35426
35431
|
throw new Error("config.meanRgb has to be an array of shape [number, number, number], have: " + JSON.stringify(e.meanRgb));
|
|
35427
35432
|
}
|
|
35428
|
-
function
|
|
35433
|
+
function vf(e) {
|
|
35429
35434
|
return Re(function() {
|
|
35430
35435
|
var n = Dn(e, Ce(0.10000000149011612));
|
|
35431
35436
|
return ft(Ut(un(e, n)), n);
|
|
@@ -35434,13 +35439,13 @@ function pf(e) {
|
|
|
35434
35439
|
function Zr(e, n) {
|
|
35435
35440
|
return Re(function() {
|
|
35436
35441
|
var t = Uo(e, [[0, 0], [1, 1], [1, 1], [0, 0]]);
|
|
35437
|
-
return t = ir(t, n.conv.filters, [1, 1], "valid"), t = un(t, n.bn.sub), t = Dn(t, n.bn.truediv), t = ft(t, n.conv.bias),
|
|
35442
|
+
return t = ir(t, n.conv.filters, [1, 1], "valid"), t = un(t, n.bn.sub), t = Dn(t, n.bn.truediv), t = ft(t, n.conv.bias), vf(t);
|
|
35438
35443
|
});
|
|
35439
35444
|
}
|
|
35440
35445
|
function Jr(e, n) {
|
|
35441
35446
|
return Re(function() {
|
|
35442
35447
|
var t = Uo(e, [[0, 0], [1, 1], [1, 1], [0, 0]]);
|
|
35443
|
-
return t =
|
|
35448
|
+
return t = jd(t, n.depthwise_filter, n.pointwise_filter, [1, 1], "valid"), t = ft(t, n.bias), vf(t);
|
|
35444
35449
|
});
|
|
35445
35450
|
}
|
|
35446
35451
|
function BA(e, n) {
|
|
@@ -35453,7 +35458,7 @@ function BA(e, n) {
|
|
|
35453
35458
|
var l = t(i, s, 3, u + "/conv"), c = r(s, u + "/bn");
|
|
35454
35459
|
return { conv: l, bn: c };
|
|
35455
35460
|
}
|
|
35456
|
-
var a =
|
|
35461
|
+
var a = df(e, n);
|
|
35457
35462
|
return {
|
|
35458
35463
|
extractConvParams: t,
|
|
35459
35464
|
extractConvWithBatchNormParams: o,
|
|
@@ -35487,7 +35492,7 @@ function NA(e, n) {
|
|
|
35487
35492
|
var u = o(s + "/conv"), l = r(s + "/bn");
|
|
35488
35493
|
return { conv: u, bn: l };
|
|
35489
35494
|
}
|
|
35490
|
-
var i =
|
|
35495
|
+
var i = ff(t);
|
|
35491
35496
|
return {
|
|
35492
35497
|
extractConvParams: o,
|
|
35493
35498
|
extractConvWithBatchNormParams: a,
|
|
@@ -35527,7 +35532,7 @@ var Yp;
|
|
|
35527
35532
|
(function(e) {
|
|
35528
35533
|
e[e.XS = 224] = "XS", e[e.SM = 320] = "SM", e[e.MD = 416] = "MD", e[e.LG = 608] = "LG";
|
|
35529
35534
|
})(Yp || (Yp = {}));
|
|
35530
|
-
var
|
|
35535
|
+
var mf = (
|
|
35531
35536
|
/** @class */
|
|
35532
35537
|
function() {
|
|
35533
35538
|
function e(n) {
|
|
@@ -35581,7 +35586,7 @@ var vf = (
|
|
|
35581
35586
|
var o = Zr(t, r.conv0);
|
|
35582
35587
|
return o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv1), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv2), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv3), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv4), o = dn(o, [2, 2], [2, 2], "same"), o = Zr(o, r.conv5), o = dn(o, [2, 2], [1, 1], "same"), o = Zr(o, r.conv6), o = Zr(o, r.conv7), dr(o, r.conv8, "valid", !1);
|
|
35583
35588
|
}, n.prototype.runMobilenet = function(t, r) {
|
|
35584
|
-
var o = this.config.isFirstLayerConv2d ?
|
|
35589
|
+
var o = this.config.isFirstLayerConv2d ? vf(dr(t, r.conv0, "valid", !1)) : Jr(t, r.conv0);
|
|
35585
35590
|
return o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv1), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv2), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv3), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv4), o = dn(o, [2, 2], [2, 2], "same"), o = Jr(o, r.conv5), o = dn(o, [2, 2], [1, 1], "same"), o = r.conv6 ? Jr(o, r.conv6) : o, o = r.conv7 ? Jr(o, r.conv7) : o, dr(o, r.conv8, "valid", !1);
|
|
35586
35591
|
}, n.prototype.forwardInput = function(t, r) {
|
|
35587
35592
|
var o = this, a = this.params;
|
|
@@ -35611,7 +35616,7 @@ var vf = (
|
|
|
35611
35616
|
return qe(this, function(b) {
|
|
35612
35617
|
switch (b.label) {
|
|
35613
35618
|
case 0:
|
|
35614
|
-
return o = new
|
|
35619
|
+
return o = new mf(r), a = o.inputSize, i = o.scoreThreshold, [4, mn(t)];
|
|
35615
35620
|
case 1:
|
|
35616
35621
|
return s = b.sent(), [4, this.forwardInput(s, a)];
|
|
35617
35622
|
case 2:
|
|
@@ -35668,7 +35673,7 @@ var vf = (
|
|
|
35668
35673
|
if (!(g < c)) return [3, 11];
|
|
35669
35674
|
x = 0, H.label = 5;
|
|
35670
35675
|
case 5:
|
|
35671
|
-
return x < d ? (C =
|
|
35676
|
+
return x < d ? (C = tc(y[b][g][x][0]), !o || C > o ? (S = (g + tc(w[b][g][x][0])) / c * u, E = (b + tc(w[b][g][x][1])) / c * l, R = Math.exp(w[b][g][x][2]) * this.config.anchors[x].x / c * u, k = Math.exp(w[b][g][x][3]) * this.config.anchors[x].y / c * l, T = S - R / 2, A = E - k / 2, q = { row: b, col: g, anchor: x }, this.withClassScores ? [4, this.extractPredictedClass(m, q)] : [3, 7]) : [3, 9]) : [3, 10];
|
|
35672
35677
|
case 6:
|
|
35673
35678
|
return F = H.sent(), [3, 8];
|
|
35674
35679
|
case 7:
|
|
@@ -35779,7 +35784,7 @@ var vf = (
|
|
|
35779
35784
|
return t._name = "TinyFaceDetectorOptions", t;
|
|
35780
35785
|
}
|
|
35781
35786
|
return n;
|
|
35782
|
-
}(
|
|
35787
|
+
}(mf)
|
|
35783
35788
|
), Vi = (
|
|
35784
35789
|
/** @class */
|
|
35785
35790
|
function() {
|
|
@@ -35816,8 +35821,8 @@ function Wu(e, n, t, r, o) {
|
|
|
35816
35821
|
switch (c.label) {
|
|
35817
35822
|
case 0:
|
|
35818
35823
|
return a = e.map(function(d) {
|
|
35819
|
-
return
|
|
35820
|
-
}), s = r, s ? [3, 5] : n instanceof Ht ? [4,
|
|
35824
|
+
return hf(d) ? o(d) : d.detection;
|
|
35825
|
+
}), s = r, s ? [3, 5] : n instanceof Ht ? [4, lf(n, a)] : [3, 2];
|
|
35821
35826
|
case 1:
|
|
35822
35827
|
return u = c.sent(), [3, 4];
|
|
35823
35828
|
case 2:
|
|
@@ -35836,7 +35841,7 @@ function Wu(e, n, t, r, o) {
|
|
|
35836
35841
|
});
|
|
35837
35842
|
});
|
|
35838
35843
|
}
|
|
35839
|
-
function
|
|
35844
|
+
function gf(e, n, t, r, o) {
|
|
35840
35845
|
return Le(this, void 0, void 0, function() {
|
|
35841
35846
|
var a = this;
|
|
35842
35847
|
return qe(this, function(i) {
|
|
@@ -35857,7 +35862,7 @@ function VA(e) {
|
|
|
35857
35862
|
}
|
|
35858
35863
|
var cs = 2, ou = 12;
|
|
35859
35864
|
function zA(e, n) {
|
|
35860
|
-
var t = Vu(e, n), r =
|
|
35865
|
+
var t = Vu(e, n), r = cf(e, n);
|
|
35861
35866
|
function o(l, c) {
|
|
35862
35867
|
var d = tn(e(l));
|
|
35863
35868
|
return n.push({ paramPath: c }), d;
|
|
@@ -35930,7 +35935,7 @@ function HA(e) {
|
|
|
35930
35935
|
var n = [], t = WA(e, n), r = t.extractPNetParams, o = t.extractRNetParams, a = t.extractONetParams, i = r(), s = o(), u = a();
|
|
35931
35936
|
return Yr(e, n), { params: { pnet: i, rnet: s, onet: u }, paramMappings: n };
|
|
35932
35937
|
}
|
|
35933
|
-
function
|
|
35938
|
+
function Gc(e, n) {
|
|
35934
35939
|
var t = n[0], r = n[1];
|
|
35935
35940
|
return {
|
|
35936
35941
|
height: Math.floor(t * e),
|
|
@@ -35942,7 +35947,7 @@ function UA(e, n, t) {
|
|
|
35942
35947
|
i.push(a * Math.pow(n, u)), s = s * n, u += 1;
|
|
35943
35948
|
return i;
|
|
35944
35949
|
}
|
|
35945
|
-
var
|
|
35950
|
+
var yf = (
|
|
35946
35951
|
/** @class */
|
|
35947
35952
|
function(e) {
|
|
35948
35953
|
nt(n, e);
|
|
@@ -35962,7 +35967,7 @@ function _a(e, n) {
|
|
|
35962
35967
|
return ft(Ut(e), Dn(n, Qs(Ut(Qs(e)))));
|
|
35963
35968
|
});
|
|
35964
35969
|
}
|
|
35965
|
-
function
|
|
35970
|
+
function bf(e, n, t) {
|
|
35966
35971
|
return t === void 0 && (t = !1), Re(function() {
|
|
35967
35972
|
var r = dr(e, n.conv1, "valid");
|
|
35968
35973
|
return r = _a(r, n.prelu1_alpha), r = dn(r, t ? [2, 2] : [3, 3], [2, 2], "same"), r = dr(r, n.conv2, "valid"), r = _a(r, n.prelu2_alpha), r = t ? r : dn(r, [3, 3], [2, 2], "valid"), r = dr(r, n.conv3, "valid"), r = _a(r, n.prelu3_alpha), r;
|
|
@@ -35970,13 +35975,13 @@ function yf(e, n, t) {
|
|
|
35970
35975
|
}
|
|
35971
35976
|
function jA(e, n) {
|
|
35972
35977
|
return Re(function() {
|
|
35973
|
-
var t =
|
|
35978
|
+
var t = bf(e, n, !0), r = dr(t, n.conv4_1, "valid"), o = rr(Du(r, 3), 3), a = jr(un(r, o), 3), i = dr(t, n.conv4_2, "valid");
|
|
35974
35979
|
return { prob: a, regions: i };
|
|
35975
35980
|
});
|
|
35976
35981
|
}
|
|
35977
35982
|
function GA(e, n) {
|
|
35978
35983
|
return Re(function() {
|
|
35979
|
-
var t =
|
|
35984
|
+
var t = Gc(n, e.shape.slice(1)), r = t.height, o = t.width, a = Qd.resizeBilinear(e, [r, o]), i = X0(a);
|
|
35980
35985
|
return ho(i, [0, 2, 1, 3]);
|
|
35981
35986
|
});
|
|
35982
35987
|
}
|
|
@@ -35985,7 +35990,7 @@ function KA(e, n, t, r) {
|
|
|
35985
35990
|
for (var s = 0; s < e.shape[1]; s++)
|
|
35986
35991
|
a[i][s] >= r && o.push(new _t(s, i));
|
|
35987
35992
|
var u = o.map(function(l) {
|
|
35988
|
-
var c = new Bu(Math.round((l.y * cs + 1) / t), Math.round((l.x * cs + 1) / t), Math.round((l.y * cs + ou) / t), Math.round((l.x * cs + ou) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new
|
|
35993
|
+
var c = new Bu(Math.round((l.y * cs + 1) / t), Math.round((l.x * cs + 1) / t), Math.round((l.y * cs + ou) / t), Math.round((l.x * cs + ou) / t)), d = a[l.y][l.x], f = n.arraySync(), h = new yf(f[l.y][l.x][0], f[l.y][l.x][1], f[l.y][l.x][2], f[l.y][l.x][3]);
|
|
35989
35994
|
return {
|
|
35990
35995
|
cell: c,
|
|
35991
35996
|
score: d,
|
|
@@ -36078,7 +36083,7 @@ function Q0(e, n, t) {
|
|
|
36078
36083
|
}
|
|
36079
36084
|
function XA(e, n) {
|
|
36080
36085
|
return Re(function() {
|
|
36081
|
-
var t =
|
|
36086
|
+
var t = bf(e, n), r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Sr(r, n.fc1), a = _a(o, n.prelu4_alpha), i = Sr(a, n.fc2_1), s = rr(Du(i, 1), 1), u = jr(un(i, s), 1), l = Sr(a, n.fc2_2), c = an(u, 1)[1];
|
|
36082
36087
|
return { scores: c, regions: l };
|
|
36083
36088
|
});
|
|
36084
36089
|
}
|
|
@@ -36110,7 +36115,7 @@ function QA(e, n, t, r, o) {
|
|
|
36110
36115
|
return l[g];
|
|
36111
36116
|
}), m = [], v = [], h.length > 0 && (a = Date.now(), y = yi(h, p, 0.7), o.stage2_nms = Date.now() - a, w = y.map(function(g) {
|
|
36112
36117
|
var x = s[f[g]].regions.arraySync();
|
|
36113
|
-
return new
|
|
36118
|
+
return new yf(x[0][0], x[0][1], x[0][2], x[0][3]);
|
|
36114
36119
|
}), v = y.map(function(g) {
|
|
36115
36120
|
return p[g];
|
|
36116
36121
|
}), m = y.map(function(g, x) {
|
|
@@ -36127,7 +36132,7 @@ function QA(e, n, t, r, o) {
|
|
|
36127
36132
|
}
|
|
36128
36133
|
function ZA(e, n) {
|
|
36129
36134
|
return Re(function() {
|
|
36130
|
-
var t =
|
|
36135
|
+
var t = bf(e, n);
|
|
36131
36136
|
t = dn(t, [2, 2], [2, 2], "same"), t = dr(t, n.conv4, "valid"), t = _a(t, n.prelu4_alpha);
|
|
36132
36137
|
var r = cr(t, [t.shape[0], n.fc1.weights.shape[0]]), o = Sr(r, n.fc1), a = _a(o, n.prelu5_alpha), i = Sr(a, n.fc2_1), s = rr(Du(i, 1), 1), u = jr(un(i, s), 1), l = Sr(a, n.fc2_2), c = Sr(a, n.fc2_3), d = an(u, 1)[1];
|
|
36133
36138
|
return { scores: d, regions: l, points: c };
|
|
@@ -36157,7 +36162,7 @@ function JA(e, n, t, r, o) {
|
|
|
36157
36162
|
return C;
|
|
36158
36163
|
}), h = f.map(function(x) {
|
|
36159
36164
|
var C = s[x].regions.arraySync();
|
|
36160
|
-
return new
|
|
36165
|
+
return new yf(C[0][0], C[0][1], C[0][2], C[0][3]);
|
|
36161
36166
|
}), p = f.map(function(x, C) {
|
|
36162
36167
|
return n[x].calibrate(h[C]);
|
|
36163
36168
|
}), m = f.map(function(x) {
|
|
@@ -36212,14 +36217,14 @@ var eD = (
|
|
|
36212
36217
|
if (a = t.canvases[0], !a)
|
|
36213
36218
|
throw new Error("Mtcnn - inputCanvas is not defined, note that passing tensors into Mtcnn.forwardInput is not supported yet.");
|
|
36214
36219
|
return i = {}, s = Date.now(), u = Re(function() {
|
|
36215
|
-
return VA(rr(
|
|
36220
|
+
return VA(rr(rf.fromPixels(a)).toFloat());
|
|
36216
36221
|
}), l = function(k) {
|
|
36217
36222
|
return u.dispose(), i.total = Date.now() - s, k;
|
|
36218
36223
|
}, c = u.shape.slice(1), d = c[0], f = c[1], h = new j0(r), p = h.minFaceSize, m = h.scaleFactor, v = h.maxNumScales, y = h.scoreThresholds, w = h.scaleSteps, b = (w || UA(p, m, [d, f])).filter(function(k) {
|
|
36219
|
-
var T =
|
|
36224
|
+
var T = Gc(k, [d, f]);
|
|
36220
36225
|
return Math.min(T.width, T.height) > ou;
|
|
36221
36226
|
}).slice(0, v), i.scales = b, i.pyramid = b.map(function(k) {
|
|
36222
|
-
return
|
|
36227
|
+
return Gc(k, [d, f]);
|
|
36223
36228
|
}), g = Date.now(), [4, YA(u, b, y[0], o.pnet, i)];
|
|
36224
36229
|
case 1:
|
|
36225
36230
|
return x = R.sent(), i.total_stage1 = Date.now() - g, x.boxes.length ? (i.stage2_numInputBoxes = x.boxes.length, g = Date.now(), [4, QA(a, x.boxes, y[1], o.rnet, i)]) : [2, l({ results: [], stats: i })];
|
|
@@ -36345,7 +36350,7 @@ var eD = (
|
|
|
36345
36350
|
}
|
|
36346
36351
|
return n;
|
|
36347
36352
|
}(Vi)
|
|
36348
|
-
),
|
|
36353
|
+
), wf = (
|
|
36349
36354
|
/** @class */
|
|
36350
36355
|
function(e) {
|
|
36351
36356
|
nt(n, e);
|
|
@@ -36382,10 +36387,10 @@ var eD = (
|
|
|
36382
36387
|
});
|
|
36383
36388
|
});
|
|
36384
36389
|
}, n.prototype.withAgeAndGender = function() {
|
|
36385
|
-
return new
|
|
36390
|
+
return new _f(this, this.input);
|
|
36386
36391
|
}, n;
|
|
36387
36392
|
}(Z0)
|
|
36388
|
-
),
|
|
36393
|
+
), xf = (
|
|
36389
36394
|
/** @class */
|
|
36390
36395
|
function(e) {
|
|
36391
36396
|
nt(n, e);
|
|
@@ -36400,7 +36405,7 @@ var eD = (
|
|
|
36400
36405
|
case 0:
|
|
36401
36406
|
return [4, this.parentTask];
|
|
36402
36407
|
case 1:
|
|
36403
|
-
return t = o.sent(), t ? [4,
|
|
36408
|
+
return t = o.sent(), t ? [4, gf(t, this.input, function(a) {
|
|
36404
36409
|
return Ln.faceExpressionNet.predictExpressions(a);
|
|
36405
36410
|
}, this.extractedFaces)] : [
|
|
36406
36411
|
2
|
|
@@ -36412,10 +36417,10 @@ var eD = (
|
|
|
36412
36417
|
});
|
|
36413
36418
|
});
|
|
36414
36419
|
}, n.prototype.withAgeAndGender = function() {
|
|
36415
|
-
return new
|
|
36420
|
+
return new Sf(this, this.input);
|
|
36416
36421
|
}, n;
|
|
36417
36422
|
}(Z0)
|
|
36418
|
-
),
|
|
36423
|
+
), Cf = (
|
|
36419
36424
|
/** @class */
|
|
36420
36425
|
function(e) {
|
|
36421
36426
|
nt(n, e);
|
|
@@ -36423,12 +36428,12 @@ var eD = (
|
|
|
36423
36428
|
return e !== null && e.apply(this, arguments) || this;
|
|
36424
36429
|
}
|
|
36425
36430
|
return n.prototype.withAgeAndGender = function() {
|
|
36426
|
-
return new
|
|
36431
|
+
return new Ef(this, this.input);
|
|
36427
36432
|
}, n.prototype.withFaceDescriptors = function() {
|
|
36428
|
-
return new
|
|
36433
|
+
return new If(this, this.input);
|
|
36429
36434
|
}, n;
|
|
36430
|
-
}(
|
|
36431
|
-
),
|
|
36435
|
+
}(wf)
|
|
36436
|
+
), kf = (
|
|
36432
36437
|
/** @class */
|
|
36433
36438
|
function(e) {
|
|
36434
36439
|
nt(n, e);
|
|
@@ -36436,11 +36441,11 @@ var eD = (
|
|
|
36436
36441
|
return e !== null && e.apply(this, arguments) || this;
|
|
36437
36442
|
}
|
|
36438
36443
|
return n.prototype.withAgeAndGender = function() {
|
|
36439
|
-
return new
|
|
36444
|
+
return new Rf(this, this.input);
|
|
36440
36445
|
}, n.prototype.withFaceDescriptor = function() {
|
|
36441
|
-
return new
|
|
36446
|
+
return new Tf(this, this.input);
|
|
36442
36447
|
}, n;
|
|
36443
|
-
}(
|
|
36448
|
+
}(xf)
|
|
36444
36449
|
), J0 = (
|
|
36445
36450
|
/** @class */
|
|
36446
36451
|
function(e) {
|
|
@@ -36451,7 +36456,7 @@ var eD = (
|
|
|
36451
36456
|
}
|
|
36452
36457
|
return n;
|
|
36453
36458
|
}(Vi)
|
|
36454
|
-
),
|
|
36459
|
+
), _f = (
|
|
36455
36460
|
/** @class */
|
|
36456
36461
|
function(e) {
|
|
36457
36462
|
nt(n, e);
|
|
@@ -36489,10 +36494,10 @@ var eD = (
|
|
|
36489
36494
|
});
|
|
36490
36495
|
});
|
|
36491
36496
|
}, n.prototype.withFaceExpressions = function() {
|
|
36492
|
-
return new
|
|
36497
|
+
return new wf(this, this.input);
|
|
36493
36498
|
}, n;
|
|
36494
36499
|
}(J0)
|
|
36495
|
-
),
|
|
36500
|
+
), Sf = (
|
|
36496
36501
|
/** @class */
|
|
36497
36502
|
function(e) {
|
|
36498
36503
|
nt(n, e);
|
|
@@ -36507,7 +36512,7 @@ var eD = (
|
|
|
36507
36512
|
case 0:
|
|
36508
36513
|
return [4, this.parentTask];
|
|
36509
36514
|
case 1:
|
|
36510
|
-
return t = s.sent(), t ? [4,
|
|
36515
|
+
return t = s.sent(), t ? [4, gf(t, this.input, function(u) {
|
|
36511
36516
|
return Ln.ageGenderNet.predictAgeAndGender(u);
|
|
36512
36517
|
}, this.extractedFaces)] : [
|
|
36513
36518
|
2
|
|
@@ -36519,10 +36524,10 @@ var eD = (
|
|
|
36519
36524
|
});
|
|
36520
36525
|
});
|
|
36521
36526
|
}, n.prototype.withFaceExpressions = function() {
|
|
36522
|
-
return new
|
|
36527
|
+
return new xf(this, this.input);
|
|
36523
36528
|
}, n;
|
|
36524
36529
|
}(J0)
|
|
36525
|
-
),
|
|
36530
|
+
), Ef = (
|
|
36526
36531
|
/** @class */
|
|
36527
36532
|
function(e) {
|
|
36528
36533
|
nt(n, e);
|
|
@@ -36530,12 +36535,12 @@ var eD = (
|
|
|
36530
36535
|
return e !== null && e.apply(this, arguments) || this;
|
|
36531
36536
|
}
|
|
36532
36537
|
return n.prototype.withFaceExpressions = function() {
|
|
36533
|
-
return new
|
|
36538
|
+
return new Cf(this, this.input);
|
|
36534
36539
|
}, n.prototype.withFaceDescriptors = function() {
|
|
36535
|
-
return new
|
|
36540
|
+
return new If(this, this.input);
|
|
36536
36541
|
}, n;
|
|
36537
|
-
}(
|
|
36538
|
-
),
|
|
36542
|
+
}(_f)
|
|
36543
|
+
), Rf = (
|
|
36539
36544
|
/** @class */
|
|
36540
36545
|
function(e) {
|
|
36541
36546
|
nt(n, e);
|
|
@@ -36543,11 +36548,11 @@ var eD = (
|
|
|
36543
36548
|
return e !== null && e.apply(this, arguments) || this;
|
|
36544
36549
|
}
|
|
36545
36550
|
return n.prototype.withFaceExpressions = function() {
|
|
36546
|
-
return new
|
|
36551
|
+
return new kf(this, this.input);
|
|
36547
36552
|
}, n.prototype.withFaceDescriptor = function() {
|
|
36548
|
-
return new
|
|
36553
|
+
return new Tf(this, this.input);
|
|
36549
36554
|
}, n;
|
|
36550
|
-
}(
|
|
36555
|
+
}(Sf)
|
|
36551
36556
|
), e1 = (
|
|
36552
36557
|
/** @class */
|
|
36553
36558
|
function(e) {
|
|
@@ -36558,7 +36563,7 @@ var eD = (
|
|
|
36558
36563
|
}
|
|
36559
36564
|
return n;
|
|
36560
36565
|
}(Vi)
|
|
36561
|
-
),
|
|
36566
|
+
), If = (
|
|
36562
36567
|
/** @class */
|
|
36563
36568
|
function(e) {
|
|
36564
36569
|
nt(n, e);
|
|
@@ -36588,12 +36593,12 @@ var eD = (
|
|
|
36588
36593
|
});
|
|
36589
36594
|
});
|
|
36590
36595
|
}, n.prototype.withFaceExpressions = function() {
|
|
36591
|
-
return new
|
|
36596
|
+
return new Cf(this, this.input);
|
|
36592
36597
|
}, n.prototype.withAgeAndGender = function() {
|
|
36593
|
-
return new
|
|
36598
|
+
return new Ef(this, this.input);
|
|
36594
36599
|
}, n;
|
|
36595
36600
|
}(e1)
|
|
36596
|
-
),
|
|
36601
|
+
), Tf = (
|
|
36597
36602
|
/** @class */
|
|
36598
36603
|
function(e) {
|
|
36599
36604
|
nt(n, e);
|
|
@@ -36608,7 +36613,7 @@ var eD = (
|
|
|
36608
36613
|
case 0:
|
|
36609
36614
|
return [4, this.parentTask];
|
|
36610
36615
|
case 1:
|
|
36611
|
-
return t = o.sent(), t ? [4,
|
|
36616
|
+
return t = o.sent(), t ? [4, gf(t, this.input, function(a) {
|
|
36612
36617
|
return Ln.faceRecognitionNet.computeFaceDescriptor(a);
|
|
36613
36618
|
}, null, function(a) {
|
|
36614
36619
|
return a.landmarks.align(null, { useDlibAlignment: !0 });
|
|
@@ -36622,9 +36627,9 @@ var eD = (
|
|
|
36622
36627
|
});
|
|
36623
36628
|
});
|
|
36624
36629
|
}, n.prototype.withFaceExpressions = function() {
|
|
36625
|
-
return new
|
|
36630
|
+
return new kf(this, this.input);
|
|
36626
36631
|
}, n.prototype.withAgeAndGender = function() {
|
|
36627
|
-
return new
|
|
36632
|
+
return new Rf(this, this.input);
|
|
36628
36633
|
}, n;
|
|
36629
36634
|
}(e1)
|
|
36630
36635
|
), t1 = (
|
|
@@ -36660,7 +36665,7 @@ var eD = (
|
|
|
36660
36665
|
case 1:
|
|
36661
36666
|
return t = u.sent(), r = t.map(function(l) {
|
|
36662
36667
|
return l.detection;
|
|
36663
|
-
}), this.input instanceof Ht ? [4,
|
|
36668
|
+
}), this.input instanceof Ht ? [4, lf(this.input, r)] : [3, 3];
|
|
36664
36669
|
case 2:
|
|
36665
36670
|
return a = u.sent(), [3, 5];
|
|
36666
36671
|
case 3:
|
|
@@ -36681,11 +36686,11 @@ var eD = (
|
|
|
36681
36686
|
});
|
|
36682
36687
|
});
|
|
36683
36688
|
}, n.prototype.withFaceExpressions = function() {
|
|
36684
|
-
return new
|
|
36689
|
+
return new Cf(this, this.input);
|
|
36685
36690
|
}, n.prototype.withAgeAndGender = function() {
|
|
36686
|
-
return new
|
|
36691
|
+
return new Ef(this, this.input);
|
|
36687
36692
|
}, n.prototype.withFaceDescriptors = function() {
|
|
36688
|
-
return new
|
|
36693
|
+
return new If(this, this.input);
|
|
36689
36694
|
}, n;
|
|
36690
36695
|
}(t1)
|
|
36691
36696
|
), iD = (
|
|
@@ -36703,7 +36708,7 @@ var eD = (
|
|
|
36703
36708
|
case 0:
|
|
36704
36709
|
return [4, this.parentTask];
|
|
36705
36710
|
case 1:
|
|
36706
|
-
return t = s.sent(), t ? (r = t.detection, this.input instanceof Ht ? [4,
|
|
36711
|
+
return t = s.sent(), t ? (r = t.detection, this.input instanceof Ht ? [4, lf(this.input, [r])] : [3, 3]) : [
|
|
36707
36712
|
2
|
|
36708
36713
|
/*return*/
|
|
36709
36714
|
];
|
|
@@ -36723,11 +36728,11 @@ var eD = (
|
|
|
36723
36728
|
});
|
|
36724
36729
|
});
|
|
36725
36730
|
}, n.prototype.withFaceExpressions = function() {
|
|
36726
|
-
return new
|
|
36731
|
+
return new kf(this, this.input);
|
|
36727
36732
|
}, n.prototype.withAgeAndGender = function() {
|
|
36728
|
-
return new
|
|
36733
|
+
return new Rf(this, this.input);
|
|
36729
36734
|
}, n.prototype.withFaceDescriptor = function() {
|
|
36730
|
-
return new
|
|
36735
|
+
return new Tf(this, this.input);
|
|
36731
36736
|
}, n;
|
|
36732
36737
|
}(t1)
|
|
36733
36738
|
), n1 = (
|
|
@@ -36764,7 +36769,7 @@ var eD = (
|
|
|
36764
36769
|
return Ln.tinyFaceDetector.locateFaces(s, o);
|
|
36765
36770
|
} : o instanceof $u ? function(s) {
|
|
36766
36771
|
return Ln.ssdMobilenetv1.locateFaces(s, o);
|
|
36767
|
-
} : o instanceof
|
|
36772
|
+
} : o instanceof mf ? function(s) {
|
|
36768
36773
|
return Ln.tinyYolov2.locateFaces(s, o);
|
|
36769
36774
|
} : null, !a)
|
|
36770
36775
|
throw new Error("detectFaces - expected options to be instance of TinyFaceDetectorOptions | SsdMobilenetv1Options | MtcnnOptions | TinyYolov2Options");
|
|
@@ -36792,9 +36797,9 @@ var eD = (
|
|
|
36792
36797
|
}, n.prototype.withFaceLandmarks = function(t) {
|
|
36793
36798
|
return t === void 0 && (t = !1), new aD(this.runAndExtendWithFaceDetections(), this.input, t);
|
|
36794
36799
|
}, n.prototype.withFaceExpressions = function() {
|
|
36795
|
-
return new
|
|
36800
|
+
return new wf(this.runAndExtendWithFaceDetections(), this.input);
|
|
36796
36801
|
}, n.prototype.withAgeAndGender = function() {
|
|
36797
|
-
return new
|
|
36802
|
+
return new _f(this.runAndExtendWithFaceDetections(), this.input);
|
|
36798
36803
|
}, n;
|
|
36799
36804
|
}(n1)
|
|
36800
36805
|
), uD = (
|
|
@@ -36836,9 +36841,9 @@ var eD = (
|
|
|
36836
36841
|
}, n.prototype.withFaceLandmarks = function(t) {
|
|
36837
36842
|
return t === void 0 && (t = !1), new iD(this.runAndExtendWithFaceDetection(), this.input, t);
|
|
36838
36843
|
}, n.prototype.withFaceExpressions = function() {
|
|
36839
|
-
return new
|
|
36844
|
+
return new xf(this.runAndExtendWithFaceDetection(), this.input);
|
|
36840
36845
|
}, n.prototype.withAgeAndGender = function() {
|
|
36841
|
-
return new
|
|
36846
|
+
return new Sf(this.runAndExtendWithFaceDetection(), this.input);
|
|
36842
36847
|
}, n;
|
|
36843
36848
|
}(n1)
|
|
36844
36849
|
);
|
|
@@ -36925,7 +36930,7 @@ function r1(e, n) {
|
|
|
36925
36930
|
return e.map(function(s) {
|
|
36926
36931
|
return r1(s, { width: r, height: o });
|
|
36927
36932
|
});
|
|
36928
|
-
if (
|
|
36933
|
+
if (hf(e)) {
|
|
36929
36934
|
var a = e.detection.forSize(r, o), i = e.unshiftedLandmarks.forSize(a.box.width, a.box.height);
|
|
36930
36935
|
return zu(bi(e, a), i);
|
|
36931
36936
|
}
|
|
@@ -37013,9 +37018,9 @@ class dD {
|
|
|
37013
37018
|
n = /* @__PURE__ */ new Date(), console.log(n);
|
|
37014
37019
|
}
|
|
37015
37020
|
}
|
|
37016
|
-
let
|
|
37021
|
+
let oc;
|
|
37017
37022
|
function mM() {
|
|
37018
|
-
return
|
|
37023
|
+
return oc || (oc = new dD()), oc;
|
|
37019
37024
|
}
|
|
37020
37025
|
function gM(e) {
|
|
37021
37026
|
const n = X(""), t = X(1), r = async (i = "", s = 1) => {
|
|
@@ -37125,7 +37130,7 @@ const wM = (e, n) => {
|
|
|
37125
37130
|
};
|
|
37126
37131
|
export {
|
|
37127
37132
|
kn as ApiService,
|
|
37128
|
-
|
|
37133
|
+
hc as AppButton,
|
|
37129
37134
|
pD as AppCheckbox,
|
|
37130
37135
|
TD as AppConfirmDialog,
|
|
37131
37136
|
vD as AppDatePicker,
|