@fluidattacks/design 3.1.10 → 3.1.12
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/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/assets/{design.css → index.css} +1 -1
- package/dist/assets/index2.css +1 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +9 -1
- package/dist/components/accordion/index.js +21 -1
- package/dist/components/alert/index.js +111 -4
- package/dist/components/button/index.js +18 -1
- package/dist/components/card/card-header/index.js +14 -1
- package/dist/components/card/card-with-image/index.js +18 -1
- package/dist/components/card/card-with-input/index.js +57 -3
- package/dist/components/card/card-with-selector/index.js +16 -1
- package/dist/components/card/card-with-switch/index.js +12 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +36 -10
- package/dist/components/checkbox/index.js +84 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +27 -1
- package/dist/components/code-snippet/location-code/index.js +125 -1
- package/dist/components/colors/index.js +9 -1
- package/dist/components/confirm-dialog/index.js +23 -1
- package/dist/components/container/index.js +27 -3
- package/dist/components/content-card/category-tag/index.js +13 -1
- package/dist/components/content-card/event-date/index.js +18 -1
- package/dist/components/content-card/index.js +63 -3
- package/dist/components/content-card-carousel/index.js +15 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +10 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +21 -8
- package/dist/components/file-preview/index.js +15 -3
- package/dist/components/form/index.js +26 -3
- package/dist/components/grid-container/index.js +26 -5
- package/dist/components/group-selector/index.js +26 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +42 -4
- package/dist/components/icon-button/index.js +27 -3
- package/dist/components/indicator-card/index.js +15 -1
- package/dist/components/info-sidebar/index.js +16 -1
- package/dist/components/inputs/fields/combobox/index.js +26 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/index.js +15 -1
- package/dist/components/inputs/fields/date/index.js +18 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
- package/dist/components/inputs/fields/date-range/index.js +28 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
- package/dist/components/inputs/fields/date-time/index.js +18 -1
- package/dist/components/inputs/fields/editable/index.js +16 -1
- package/dist/components/inputs/fields/input/index.js +13 -1
- package/dist/components/inputs/fields/input-file/index.js +24 -4
- package/dist/components/inputs/fields/input-tags/index.js +14 -2
- package/dist/components/inputs/fields/number/index.js +10 -1
- package/dist/components/inputs/fields/number-range/index.js +11 -1
- package/dist/components/inputs/fields/phone/index.js +414 -11
- package/dist/components/inputs/fields/text-area/index.js +13 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +12 -1
- package/dist/components/inputs/outline-container/index.js +18 -1
- package/dist/components/inputs/utils/action-button/index.js +10 -1
- package/dist/components/inputs/utils/calendar-button/index.js +13 -1
- package/dist/components/inputs/utils/date-selector/index.js +8 -1
- package/dist/components/inputs/utils/date-time-field/index.js +32 -1
- package/dist/components/inputs/utils/dialog/index.js +11 -1
- package/dist/components/inputs/utils/number-field/index.js +13 -1
- package/dist/components/inputs/utils/popover/index.js +13 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +15 -1
- package/dist/components/language-selector/index.js +13 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +52 -7
- package/dist/components/list-item/index.js +16 -1
- package/dist/components/little-flag/index.js +15 -3
- package/dist/components/loading/index.js +28 -14
- package/dist/components/logo/index.js +7 -1
- package/dist/components/logo-carousel/index.js +10 -4
- package/dist/components/lottie/index.js +15 -3
- package/dist/components/menu/index.js +23 -1
- package/dist/components/message-banner/index.js +21 -4
- package/dist/components/modal/index.js +19 -1
- package/dist/components/modal/modal-confirm/index.js +10 -1
- package/dist/components/modal/modal-footer/index.js +16 -1
- package/dist/components/modal/modal-header/index.js +25 -1
- package/dist/components/notification/index.js +68 -5
- package/dist/components/notification-sign/index.js +26 -6
- package/dist/components/number-input/index.js +25 -7
- package/dist/components/oauth-selector/index.js +26 -1
- package/dist/components/oauth-selector/option-container/index.js +15 -1
- package/dist/components/plan-card/index.js +84 -5
- package/dist/components/plan-card/recommended-tag/index.js +10 -1
- package/dist/components/pop-up/description/index.js +13 -1
- package/dist/components/pop-up/index.js +23 -1
- package/dist/components/premium-feature/index.js +45 -3
- package/dist/components/priority-score/index.js +14 -1
- package/dist/components/progress/index.js +23 -3
- package/dist/components/progress-bar/index.js +95 -5
- package/dist/components/radio-button/index.js +88 -3
- package/dist/components/scroll-button/index.js +20 -2
- package/dist/components/search/index.js +63 -7
- package/dist/components/search-bar/index.js +32 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +14 -1
- package/dist/components/severity-overview/badge/index.js +18 -1
- package/dist/components/severity-overview/index.js +7 -1
- package/dist/components/show-on-hover/index.js +25 -3
- package/dist/components/slide-out-menu/index.js +2009 -3
- package/dist/components/slide-out-menu/menu-item/index.js +15 -1
- package/dist/components/slider/index.js +93 -7
- package/dist/components/slider/thumb/index.js +10 -1
- package/dist/components/step-lapse/index.js +95 -9
- package/dist/components/table-button/index.js +56 -3
- package/dist/components/tabs/fixed-tabs/index.js +9 -1
- package/dist/components/tabs/index.js +14 -1
- package/dist/components/tabs/tab/index.js +8 -1
- package/dist/components/tag/index.js +116 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +7 -1
- package/dist/components/toggle/index.js +45 -14
- package/dist/components/toggle-buttons/index.js +74 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +2481 -4
- package/dist/components/typography/heading/index.js +9 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +9 -1
- package/dist/components/typography/text/index.js +9 -1
- package/dist/components/web-form/index.js +59 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-38JqtnAI.mjs +122 -0
- package/dist/index-B5yoGFs6.mjs +54 -0
- package/dist/index-BLbKylyw.mjs +209 -0
- package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
- package/dist/index-BwFnfaRh.mjs +2310 -0
- package/dist/index-Co_k0WFk.mjs +75 -0
- package/dist/index-Cu7uUMlx.mjs +82 -0
- package/dist/index-D-lcuEHY.mjs +1018 -0
- package/dist/index-DrfjITyT.mjs +61 -0
- package/dist/index.js +206 -1
- package/dist/styles-7_q7nHce.mjs +110 -0
- package/dist/styles-BA0WIQL-.mjs +74 -0
- package/dist/styles-C3cZmKVJ.mjs +131 -0
- package/dist/styles-CI-I6joH.mjs +144 -0
- package/dist/styles-Cx93EcVo.mjs +76 -0
- package/dist/styles-D85YYIjM.mjs +131 -0
- package/dist/styles-EIbGRPlk.mjs +106 -0
- package/dist/styles-Q1VXuWI7.mjs +65 -0
- package/dist/styles-fH2c4cfc.mjs +77 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
- package/dist/use-carousel-CvRxi2FI.mjs +17 -0
- package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
- package/dist/use-modal-CkrZ-_-M.mjs +14 -0
- package/dist/use-search-DpLNvt7Q.mjs +12 -0
- package/dist/utils-CQvBF-wY.mjs +4 -0
- package/package.json +3 -2
- package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
- package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
- package/dist/index-BH27NQKA.mjs +0 -2311
- package/dist/index-Bcw2vW_n.mjs +0 -75
- package/dist/index-C8zdgAVH.mjs +0 -82
- package/dist/index-CA_9DXWd.js +0 -5
- package/dist/index-CmylnDrF.js +0 -14
- package/dist/index-DUMgwAbO.js +0 -26
- package/dist/index-DpQYiwGu.js +0 -5
- package/dist/index-Dy8ZUIYs.js +0 -5
- package/dist/index-JPf5Yzg6.js +0 -17
- package/dist/index-OBZtKZuT.mjs +0 -1021
- package/dist/index-SsXlDjK4.mjs +0 -122
- package/dist/index-TKLFHcRp.js +0 -18
- package/dist/index-TnyKqJHo.mjs +0 -61
- package/dist/index-Yr95Cb7Z.mjs +0 -54
- package/dist/index-h9-U5wxq.mjs +0 -209
- package/dist/index-qCiUU4sZ.js +0 -9
- package/dist/index-qe0nJwzl.js +0 -15
- package/dist/styles--Elze-LV.js +0 -3
- package/dist/styles-3pR4Xdvy.js +0 -33
- package/dist/styles-59h91S9m.mjs +0 -65
- package/dist/styles-BCwLWpC3.mjs +0 -126
- package/dist/styles-BJ7-0I5X.mjs +0 -74
- package/dist/styles-BKObp9bh.mjs +0 -76
- package/dist/styles-BWVdbvFu.js +0 -5
- package/dist/styles-Bl-CstrT.js +0 -5
- package/dist/styles-Bn42XCW5.js +0 -7
- package/dist/styles-C2CoGJl7.js +0 -33
- package/dist/styles-CNzziAXG.js +0 -5
- package/dist/styles-CdD9waPD.js +0 -29
- package/dist/styles-CnKTwnFk.mjs +0 -110
- package/dist/styles-D4R-eerv.mjs +0 -77
- package/dist/styles-DNIIhyRC.mjs +0 -144
- package/dist/styles-DV8yOaqV.mjs +0 -131
- package/dist/styles-DYoftbd3.js +0 -42
- package/dist/styles-DlmKLhPh.js +0 -7
- package/dist/styles-be8gOdgy.mjs +0 -106
- package/dist/use-carousel-64dKFW4E.js +0 -1
- package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
- package/dist/use-click-outside-BqkLISED.js +0 -1
- package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
- package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
- package/dist/use-cloudinary-image-YMMafagv.js +0 -1
- package/dist/use-modal-CNbLSSQb.mjs +0 -14
- package/dist/use-modal-_bYY6M_n.js +0 -1
- package/dist/use-search-75ip5xR-.mjs +0 -12
- package/dist/use-search-DeL4UDMh.js +0 -1
- package/dist/utils-C2whpEd3.js +0 -1
- package/dist/utils-Da0qL35u.mjs +0 -4
|
@@ -0,0 +1,2310 @@
|
|
|
1
|
+
import { jsx as Cn } from "react/jsx-runtime";
|
|
2
|
+
import An from "react";
|
|
3
|
+
import { u as En } from "./use-cloudinary-image-fG7ODNgr.mjs";
|
|
4
|
+
import "lodash";
|
|
5
|
+
var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Be = { exports: {} };
|
|
6
|
+
(function(e, t) {
|
|
7
|
+
var r = "__lodash_hash_undefined__", o = 9007199254740991, i = "[object Arguments]", u = "[object Boolean]", p = "[object Date]", d = "[object Function]", m = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", U = "[object Object]", ot = "[object Promise]", yt = "[object RegExp]", H = "[object Set]", Ot = "[object String]", Bt = "[object Symbol]", Ht = "[object WeakMap]", ge = "[object ArrayBuffer]", kt = "[object DataView]", Gt = "[object Float32Array]", Yt = "[object Float64Array]", Xt = "[object Int8Array]", G = "[object Int16Array]", $t = "[object Int32Array]", N = "[object Uint8Array]", st = "[object Uint8ClampedArray]", gt = "[object Uint16Array]", ut = "[object Uint32Array]", Kt = /\w*$/, Ct = /^\[object .+?Constructor\]$/, R = /^(?:0|[1-9]\d*)$/, $ = {};
|
|
8
|
+
$[i] = $["[object Array]"] = $[ge] = $[kt] = $[u] = $[p] = $[Gt] = $[Yt] = $[Xt] = $[G] = $[$t] = $[g] = $[v] = $[U] = $[yt] = $[H] = $[Ot] = $[Bt] = $[N] = $[st] = $[gt] = $[ut] = !0, $["[object Error]"] = $[d] = $[Ht] = !1;
|
|
9
|
+
var me = typeof bt == "object" && bt && bt.Object === Object && bt, Zt = typeof self == "object" && self && self.Object === Object && self, Y = me || Zt || Function("return this")(), At = t && !t.nodeType && t, it = At && e && !e.nodeType && e, te = it && it.exports === At;
|
|
10
|
+
function Ie(a, c) {
|
|
11
|
+
return a.set(c[0], c[1]), a;
|
|
12
|
+
}
|
|
13
|
+
function ee(a, c) {
|
|
14
|
+
return a.add(c), a;
|
|
15
|
+
}
|
|
16
|
+
function re(a, c, y, w) {
|
|
17
|
+
for (var q = -1, W = a ? a.length : 0; ++q < W; ) y = c(y, a[q], q, a);
|
|
18
|
+
return y;
|
|
19
|
+
}
|
|
20
|
+
function Et(a) {
|
|
21
|
+
var c = !1;
|
|
22
|
+
if (a != null && typeof a.toString != "function") try {
|
|
23
|
+
c = !!(a + "");
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
return c;
|
|
27
|
+
}
|
|
28
|
+
function Rt(a) {
|
|
29
|
+
var c = -1, y = Array(a.size);
|
|
30
|
+
return a.forEach(function(w, q) {
|
|
31
|
+
y[++c] = [q, w];
|
|
32
|
+
}), y;
|
|
33
|
+
}
|
|
34
|
+
function Tt(a, c) {
|
|
35
|
+
return function(y) {
|
|
36
|
+
return a(c(y));
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ne(a) {
|
|
40
|
+
var c = -1, y = Array(a.size);
|
|
41
|
+
return a.forEach(function(w) {
|
|
42
|
+
y[++c] = w;
|
|
43
|
+
}), y;
|
|
44
|
+
}
|
|
45
|
+
var Pt, Mt = Array.prototype, ve = Function.prototype, St = Object.prototype, Vt = Y["__core-js_shared__"], Lt = (Pt = /[^.]+$/.exec(Vt && Vt.keys && Vt.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Pt : "", _e = ve.toString, at = St.hasOwnProperty, Z = St.toString, be = RegExp("^" + _e.call(at).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), we = te ? Y.Buffer : void 0, oe = Y.Symbol, Ft = Y.Uint8Array, It = Tt(Object.getPrototypeOf, Object), Se = Object.create, xe = St.propertyIsEnumerable, ie = Mt.splice, qt = Object.getOwnPropertySymbols, ae = we ? we.isBuffer : void 0, qe = Tt(Object.keys, Object), se = O(Y, "DataView"), ct = O(Y, "Map"), Dt = O(Y, "Promise"), J = O(Y, "Set"), Qt = O(Y, "WeakMap"), mt = O(Object, "create"), je = F(se), Oe = F(ct), ke = F(Dt), $e = F(J), Ce = F(Qt), ue = oe ? oe.prototype : void 0, Ae = ue ? ue.valueOf : void 0;
|
|
46
|
+
function lt(a) {
|
|
47
|
+
var c = -1, y = a ? a.length : 0;
|
|
48
|
+
for (this.clear(); ++c < y; ) {
|
|
49
|
+
var w = a[c];
|
|
50
|
+
this.set(w[0], w[1]);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function tt(a) {
|
|
54
|
+
var c = -1, y = a ? a.length : 0;
|
|
55
|
+
for (this.clear(); ++c < y; ) {
|
|
56
|
+
var w = a[c];
|
|
57
|
+
this.set(w[0], w[1]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function vt(a) {
|
|
61
|
+
var c = -1, y = a ? a.length : 0;
|
|
62
|
+
for (this.clear(); ++c < y; ) {
|
|
63
|
+
var w = a[c];
|
|
64
|
+
this.set(w[0], w[1]);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function _t(a) {
|
|
68
|
+
this.__data__ = new tt(a);
|
|
69
|
+
}
|
|
70
|
+
function De(a, c) {
|
|
71
|
+
var y = V(a) || function(D) {
|
|
72
|
+
return function(z) {
|
|
73
|
+
return /* @__PURE__ */ function(ft) {
|
|
74
|
+
return !!ft && typeof ft == "object";
|
|
75
|
+
}(z) && X(z);
|
|
76
|
+
}(D) && at.call(D, "callee") && (!xe.call(D, "callee") || Z.call(D) == i);
|
|
77
|
+
}(a) ? function(D, z) {
|
|
78
|
+
for (var ft = -1, pt = Array(D); ++ft < D; ) pt[ft] = z(ft);
|
|
79
|
+
return pt;
|
|
80
|
+
}(a.length, String) : [], w = y.length, q = !!w;
|
|
81
|
+
for (var W in a) !at.call(a, W) || q && (W == "length" || M(W, w)) || y.push(W);
|
|
82
|
+
return y;
|
|
83
|
+
}
|
|
84
|
+
function n(a, c, y) {
|
|
85
|
+
var w = a[c];
|
|
86
|
+
at.call(a, c) && Q(w, y) && (y !== void 0 || c in a) || (a[c] = y);
|
|
87
|
+
}
|
|
88
|
+
function s(a, c) {
|
|
89
|
+
for (var y = a.length; y--; ) if (Q(a[y][0], c)) return y;
|
|
90
|
+
return -1;
|
|
91
|
+
}
|
|
92
|
+
function l(a, c, y, w, q, W, D) {
|
|
93
|
+
var z;
|
|
94
|
+
if (w && (z = W ? w(a, q, W, D) : w(a)), z !== void 0) return z;
|
|
95
|
+
if (!Ee(a)) return a;
|
|
96
|
+
var ft = V(a);
|
|
97
|
+
if (ft) {
|
|
98
|
+
if (z = function(S) {
|
|
99
|
+
var k = S.length, L = S.constructor(k);
|
|
100
|
+
return k && typeof S[0] == "string" && at.call(S, "index") && (L.index = S.index, L.input = S.input), L;
|
|
101
|
+
}(a), !c) return function(S, k) {
|
|
102
|
+
var L = -1, et = S.length;
|
|
103
|
+
for (k || (k = Array(et)); ++L < et; ) k[L] = S[L];
|
|
104
|
+
return k;
|
|
105
|
+
}(a, z);
|
|
106
|
+
} else {
|
|
107
|
+
var pt = x(a), mr = pt == d || pt == m;
|
|
108
|
+
if (xt(a)) return function(S, k) {
|
|
109
|
+
if (k) return S.slice();
|
|
110
|
+
var L = new S.constructor(S.length);
|
|
111
|
+
return S.copy(L), L;
|
|
112
|
+
}(a, c);
|
|
113
|
+
if (pt == U || pt == i || mr && !W) {
|
|
114
|
+
if (Et(a)) return W ? a : {};
|
|
115
|
+
if (z = function(S) {
|
|
116
|
+
return typeof S.constructor != "function" || P(S) ? {} : (k = It(S), Ee(k) ? Se(k) : {});
|
|
117
|
+
var k;
|
|
118
|
+
}(mr ? {} : a), !c) return function(S, k) {
|
|
119
|
+
return b(S, I(S), k);
|
|
120
|
+
}(a, function(S, k) {
|
|
121
|
+
return S && b(k, Qe(k), S);
|
|
122
|
+
}(z, a));
|
|
123
|
+
} else {
|
|
124
|
+
if (!$[pt]) return W ? a : {};
|
|
125
|
+
z = function(S, k, L, et) {
|
|
126
|
+
var ce = S.constructor;
|
|
127
|
+
switch (k) {
|
|
128
|
+
case ge:
|
|
129
|
+
return h(S);
|
|
130
|
+
case u:
|
|
131
|
+
case p:
|
|
132
|
+
return new ce(+S);
|
|
133
|
+
case kt:
|
|
134
|
+
return function(E, B) {
|
|
135
|
+
var dt = B ? h(E.buffer) : E.buffer;
|
|
136
|
+
return new E.constructor(dt, E.byteOffset, E.byteLength);
|
|
137
|
+
}(S, et);
|
|
138
|
+
case Gt:
|
|
139
|
+
case Yt:
|
|
140
|
+
case Xt:
|
|
141
|
+
case G:
|
|
142
|
+
case $t:
|
|
143
|
+
case N:
|
|
144
|
+
case st:
|
|
145
|
+
case gt:
|
|
146
|
+
case ut:
|
|
147
|
+
return function(E, B) {
|
|
148
|
+
var dt = B ? h(E.buffer) : E.buffer;
|
|
149
|
+
return new E.constructor(dt, E.byteOffset, E.length);
|
|
150
|
+
}(S, et);
|
|
151
|
+
case g:
|
|
152
|
+
return function(E, B, dt) {
|
|
153
|
+
var le = B ? dt(Rt(E), !0) : Rt(E);
|
|
154
|
+
return re(le, Ie, new E.constructor());
|
|
155
|
+
}(S, et, L);
|
|
156
|
+
case v:
|
|
157
|
+
case Ot:
|
|
158
|
+
return new ce(S);
|
|
159
|
+
case yt:
|
|
160
|
+
return function(E) {
|
|
161
|
+
var B = new E.constructor(E.source, Kt.exec(E));
|
|
162
|
+
return B.lastIndex = E.lastIndex, B;
|
|
163
|
+
}(S);
|
|
164
|
+
case H:
|
|
165
|
+
return function(E, B, dt) {
|
|
166
|
+
var le = B ? dt(ne(E), !0) : ne(E);
|
|
167
|
+
return re(le, ee, new E.constructor());
|
|
168
|
+
}(S, et, L);
|
|
169
|
+
case Bt:
|
|
170
|
+
return zt = S, Ae ? Object(Ae.call(zt)) : {};
|
|
171
|
+
}
|
|
172
|
+
var zt;
|
|
173
|
+
}(a, pt, l, c);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
D || (D = new _t());
|
|
177
|
+
var vr = D.get(a);
|
|
178
|
+
if (vr) return vr;
|
|
179
|
+
if (D.set(a, z), !ft) var _r = y ? function(S) {
|
|
180
|
+
return function(k, L, et) {
|
|
181
|
+
var ce = L(k);
|
|
182
|
+
return V(k) ? ce : function(zt, E) {
|
|
183
|
+
for (var B = -1, dt = E.length, le = zt.length; ++B < dt; ) zt[le + B] = E[B];
|
|
184
|
+
return zt;
|
|
185
|
+
}(ce, et(k));
|
|
186
|
+
}(S, Qe, I);
|
|
187
|
+
}(a) : Qe(a);
|
|
188
|
+
return function(S, k) {
|
|
189
|
+
for (var L = -1, et = S ? S.length : 0; ++L < et && k(S[L], L, S) !== !1; ) ;
|
|
190
|
+
}(_r || a, function(S, k) {
|
|
191
|
+
_r && (S = a[k = S]), n(z, k, l(S, c, y, w, k, a, D));
|
|
192
|
+
}), z;
|
|
193
|
+
}
|
|
194
|
+
function f(a) {
|
|
195
|
+
return !(!Ee(a) || (c = a, Lt && Lt in c)) && (gr(a) || Et(a) ? be : Ct).test(F(a));
|
|
196
|
+
var c;
|
|
197
|
+
}
|
|
198
|
+
function h(a) {
|
|
199
|
+
var c = new a.constructor(a.byteLength);
|
|
200
|
+
return new Ft(c).set(new Ft(a)), c;
|
|
201
|
+
}
|
|
202
|
+
function b(a, c, y, w) {
|
|
203
|
+
y || (y = {});
|
|
204
|
+
for (var q = -1, W = c.length; ++q < W; ) {
|
|
205
|
+
var D = c[q];
|
|
206
|
+
n(y, D, a[D]);
|
|
207
|
+
}
|
|
208
|
+
return y;
|
|
209
|
+
}
|
|
210
|
+
function _(a, c) {
|
|
211
|
+
var y, w, q = a.__data__;
|
|
212
|
+
return ((w = typeof (y = c)) == "string" || w == "number" || w == "symbol" || w == "boolean" ? y !== "__proto__" : y === null) ? q[typeof c == "string" ? "string" : "hash"] : q.map;
|
|
213
|
+
}
|
|
214
|
+
function O(a, c) {
|
|
215
|
+
var y = function(w, q) {
|
|
216
|
+
return w == null ? void 0 : w[q];
|
|
217
|
+
}(a, c);
|
|
218
|
+
return f(y) ? y : void 0;
|
|
219
|
+
}
|
|
220
|
+
lt.prototype.clear = function() {
|
|
221
|
+
this.__data__ = mt ? mt(null) : {};
|
|
222
|
+
}, lt.prototype.delete = function(a) {
|
|
223
|
+
return this.has(a) && delete this.__data__[a];
|
|
224
|
+
}, lt.prototype.get = function(a) {
|
|
225
|
+
var c = this.__data__;
|
|
226
|
+
if (mt) {
|
|
227
|
+
var y = c[a];
|
|
228
|
+
return y === r ? void 0 : y;
|
|
229
|
+
}
|
|
230
|
+
return at.call(c, a) ? c[a] : void 0;
|
|
231
|
+
}, lt.prototype.has = function(a) {
|
|
232
|
+
var c = this.__data__;
|
|
233
|
+
return mt ? c[a] !== void 0 : at.call(c, a);
|
|
234
|
+
}, lt.prototype.set = function(a, c) {
|
|
235
|
+
return this.__data__[a] = mt && c === void 0 ? r : c, this;
|
|
236
|
+
}, tt.prototype.clear = function() {
|
|
237
|
+
this.__data__ = [];
|
|
238
|
+
}, tt.prototype.delete = function(a) {
|
|
239
|
+
var c = this.__data__, y = s(c, a);
|
|
240
|
+
return !(y < 0) && (y == c.length - 1 ? c.pop() : ie.call(c, y, 1), !0);
|
|
241
|
+
}, tt.prototype.get = function(a) {
|
|
242
|
+
var c = this.__data__, y = s(c, a);
|
|
243
|
+
return y < 0 ? void 0 : c[y][1];
|
|
244
|
+
}, tt.prototype.has = function(a) {
|
|
245
|
+
return s(this.__data__, a) > -1;
|
|
246
|
+
}, tt.prototype.set = function(a, c) {
|
|
247
|
+
var y = this.__data__, w = s(y, a);
|
|
248
|
+
return w < 0 ? y.push([a, c]) : y[w][1] = c, this;
|
|
249
|
+
}, vt.prototype.clear = function() {
|
|
250
|
+
this.__data__ = { hash: new lt(), map: new (ct || tt)(), string: new lt() };
|
|
251
|
+
}, vt.prototype.delete = function(a) {
|
|
252
|
+
return _(this, a).delete(a);
|
|
253
|
+
}, vt.prototype.get = function(a) {
|
|
254
|
+
return _(this, a).get(a);
|
|
255
|
+
}, vt.prototype.has = function(a) {
|
|
256
|
+
return _(this, a).has(a);
|
|
257
|
+
}, vt.prototype.set = function(a, c) {
|
|
258
|
+
return _(this, a).set(a, c), this;
|
|
259
|
+
}, _t.prototype.clear = function() {
|
|
260
|
+
this.__data__ = new tt();
|
|
261
|
+
}, _t.prototype.delete = function(a) {
|
|
262
|
+
return this.__data__.delete(a);
|
|
263
|
+
}, _t.prototype.get = function(a) {
|
|
264
|
+
return this.__data__.get(a);
|
|
265
|
+
}, _t.prototype.has = function(a) {
|
|
266
|
+
return this.__data__.has(a);
|
|
267
|
+
}, _t.prototype.set = function(a, c) {
|
|
268
|
+
var y = this.__data__;
|
|
269
|
+
if (y instanceof tt) {
|
|
270
|
+
var w = y.__data__;
|
|
271
|
+
if (!ct || w.length < 199) return w.push([a, c]), this;
|
|
272
|
+
y = this.__data__ = new vt(w);
|
|
273
|
+
}
|
|
274
|
+
return y.set(a, c), this;
|
|
275
|
+
};
|
|
276
|
+
var I = qt ? Tt(qt, Object) : function() {
|
|
277
|
+
return [];
|
|
278
|
+
}, x = function(a) {
|
|
279
|
+
return Z.call(a);
|
|
280
|
+
};
|
|
281
|
+
function M(a, c) {
|
|
282
|
+
return !!(c = c ?? o) && (typeof a == "number" || R.test(a)) && a > -1 && a % 1 == 0 && a < c;
|
|
283
|
+
}
|
|
284
|
+
function P(a) {
|
|
285
|
+
var c = a && a.constructor;
|
|
286
|
+
return a === (typeof c == "function" && c.prototype || St);
|
|
287
|
+
}
|
|
288
|
+
function F(a) {
|
|
289
|
+
if (a != null) {
|
|
290
|
+
try {
|
|
291
|
+
return _e.call(a);
|
|
292
|
+
} catch {
|
|
293
|
+
}
|
|
294
|
+
try {
|
|
295
|
+
return a + "";
|
|
296
|
+
} catch {
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return "";
|
|
300
|
+
}
|
|
301
|
+
function Q(a, c) {
|
|
302
|
+
return a === c || a != a && c != c;
|
|
303
|
+
}
|
|
304
|
+
(se && x(new se(new ArrayBuffer(1))) != kt || ct && x(new ct()) != g || Dt && x(Dt.resolve()) != ot || J && x(new J()) != H || Qt && x(new Qt()) != Ht) && (x = function(a) {
|
|
305
|
+
var c = Z.call(a), y = c == U ? a.constructor : void 0, w = y ? F(y) : void 0;
|
|
306
|
+
if (w) switch (w) {
|
|
307
|
+
case je:
|
|
308
|
+
return kt;
|
|
309
|
+
case Oe:
|
|
310
|
+
return g;
|
|
311
|
+
case ke:
|
|
312
|
+
return ot;
|
|
313
|
+
case $e:
|
|
314
|
+
return H;
|
|
315
|
+
case Ce:
|
|
316
|
+
return Ht;
|
|
317
|
+
}
|
|
318
|
+
return c;
|
|
319
|
+
});
|
|
320
|
+
var V = Array.isArray;
|
|
321
|
+
function X(a) {
|
|
322
|
+
return a != null && function(c) {
|
|
323
|
+
return typeof c == "number" && c > -1 && c % 1 == 0 && c <= o;
|
|
324
|
+
}(a.length) && !gr(a);
|
|
325
|
+
}
|
|
326
|
+
var xt = ae || function() {
|
|
327
|
+
return !1;
|
|
328
|
+
};
|
|
329
|
+
function gr(a) {
|
|
330
|
+
var c = Ee(a) ? Z.call(a) : "";
|
|
331
|
+
return c == d || c == m;
|
|
332
|
+
}
|
|
333
|
+
function Ee(a) {
|
|
334
|
+
var c = typeof a;
|
|
335
|
+
return !!a && (c == "object" || c == "function");
|
|
336
|
+
}
|
|
337
|
+
function Qe(a) {
|
|
338
|
+
return X(a) ? De(a) : function(c) {
|
|
339
|
+
if (!P(c)) return qe(c);
|
|
340
|
+
var y = [];
|
|
341
|
+
for (var w in Object(c)) at.call(c, w) && w != "constructor" && y.push(w);
|
|
342
|
+
return y;
|
|
343
|
+
}(a);
|
|
344
|
+
}
|
|
345
|
+
e.exports = function(a) {
|
|
346
|
+
return l(a, !0, !0);
|
|
347
|
+
};
|
|
348
|
+
})(Be, Be.exports);
|
|
349
|
+
var wt = Be.exports, He = function() {
|
|
350
|
+
return He = Object.assign || function(e) {
|
|
351
|
+
for (var t, r = 1, o = arguments.length; r < o; r++) for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
352
|
+
return e;
|
|
353
|
+
}, He.apply(this, arguments);
|
|
354
|
+
};
|
|
355
|
+
function Rn(e, t, r, o) {
|
|
356
|
+
return new (r || (r = Promise))(function(i, u) {
|
|
357
|
+
function p(g) {
|
|
358
|
+
try {
|
|
359
|
+
m(o.next(g));
|
|
360
|
+
} catch (v) {
|
|
361
|
+
u(v);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function d(g) {
|
|
365
|
+
try {
|
|
366
|
+
m(o.throw(g));
|
|
367
|
+
} catch (v) {
|
|
368
|
+
u(v);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
function m(g) {
|
|
372
|
+
var v;
|
|
373
|
+
g.done ? i(g.value) : (v = g.value, v instanceof r ? v : new r(function(U) {
|
|
374
|
+
U(v);
|
|
375
|
+
})).then(p, d);
|
|
376
|
+
}
|
|
377
|
+
m((o = o.apply(e, [])).next());
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
function Tn(e, t) {
|
|
381
|
+
var r, o, i, u = { label: 0, sent: function() {
|
|
382
|
+
if (1 & i[0]) throw i[1];
|
|
383
|
+
return i[1];
|
|
384
|
+
}, trys: [], ops: [] }, p = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
385
|
+
return p.next = d(0), p.throw = d(1), p.return = d(2), typeof Symbol == "function" && (p[Symbol.iterator] = function() {
|
|
386
|
+
return this;
|
|
387
|
+
}), p;
|
|
388
|
+
function d(m) {
|
|
389
|
+
return function(g) {
|
|
390
|
+
return function(v) {
|
|
391
|
+
if (r) throw new TypeError("Generator is already executing.");
|
|
392
|
+
for (; p && (p = 0, v[0] && (u = 0)), u; ) try {
|
|
393
|
+
if (r = 1, o && (i = 2 & v[0] ? o.return : v[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, v[1])).done) return i;
|
|
394
|
+
switch (o = 0, i && (v = [2 & v[0], i.value]), v[0]) {
|
|
395
|
+
case 0:
|
|
396
|
+
case 1:
|
|
397
|
+
i = v;
|
|
398
|
+
break;
|
|
399
|
+
case 4:
|
|
400
|
+
return u.label++, { value: v[1], done: !1 };
|
|
401
|
+
case 5:
|
|
402
|
+
u.label++, o = v[1], v = [0];
|
|
403
|
+
continue;
|
|
404
|
+
case 7:
|
|
405
|
+
v = u.ops.pop(), u.trys.pop();
|
|
406
|
+
continue;
|
|
407
|
+
default:
|
|
408
|
+
if (i = u.trys, !((i = i.length > 0 && i[i.length - 1]) || v[0] !== 6 && v[0] !== 2)) {
|
|
409
|
+
u = 0;
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
if (v[0] === 3 && (!i || v[1] > i[0] && v[1] < i[3])) {
|
|
413
|
+
u.label = v[1];
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
if (v[0] === 6 && u.label < i[1]) {
|
|
417
|
+
u.label = i[1], i = v;
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
if (i && u.label < i[2]) {
|
|
421
|
+
u.label = i[2], u.ops.push(v);
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
i[2] && u.ops.pop(), u.trys.pop();
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
v = t.call(e, u);
|
|
428
|
+
} catch (U) {
|
|
429
|
+
v = [6, U], o = 0;
|
|
430
|
+
} finally {
|
|
431
|
+
r = i = 0;
|
|
432
|
+
}
|
|
433
|
+
if (5 & v[0]) throw v[1];
|
|
434
|
+
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
435
|
+
}([m, g]);
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
function Pe(e, t, r, o, i) {
|
|
440
|
+
return Rn(this, 0, void 0, function() {
|
|
441
|
+
var u, p;
|
|
442
|
+
return Tn(this, function(d) {
|
|
443
|
+
switch (d.label) {
|
|
444
|
+
case 0:
|
|
445
|
+
if (r === void 0) return [2];
|
|
446
|
+
p = 0, d.label = 1;
|
|
447
|
+
case 1:
|
|
448
|
+
return p < r.length ? [4, r[p](e, t, o, i, r)] : [3, 4];
|
|
449
|
+
case 2:
|
|
450
|
+
if ((u = d.sent()) === "canceled") return [3, 4];
|
|
451
|
+
d.label = 3;
|
|
452
|
+
case 3:
|
|
453
|
+
return p++, [3, 1];
|
|
454
|
+
case 4:
|
|
455
|
+
return u !== "canceled" ? [2, u] : [2];
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
var Ge = function(e, t) {
|
|
461
|
+
return t === void 0 && (t = {}), e ? { trackedAnalytics: He({ sdkCode: e.sdkCode, sdkSemver: e.sdkSemver, techVersion: e.techVersion }, t) } : null;
|
|
462
|
+
}, Pn = function() {
|
|
463
|
+
function e(t, r, o, i) {
|
|
464
|
+
var u = this;
|
|
465
|
+
this.isMounted = !0, this.imgElement = t, this.htmlPluginState = { cleanupCallbacks: [], pluginEventSubscription: [] };
|
|
466
|
+
var p = wt(r);
|
|
467
|
+
Pe(t, p, o, this.htmlPluginState, i).then(function(d) {
|
|
468
|
+
if (u.isMounted) {
|
|
469
|
+
u.htmlPluginState.pluginEventSubscription.forEach(function(g) {
|
|
470
|
+
g();
|
|
471
|
+
});
|
|
472
|
+
var m = Ge(i, d);
|
|
473
|
+
u.imgElement.setAttribute("src", p.toURL(m));
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
return e.prototype.update = function(t, r, o) {
|
|
478
|
+
var i = this, u = wt(t);
|
|
479
|
+
Pe(this.imgElement, u, r, this.htmlPluginState).then(function(p) {
|
|
480
|
+
if (i.isMounted) {
|
|
481
|
+
var d = Ge(o, p);
|
|
482
|
+
i.imgElement.setAttribute("src", u.toURL(d));
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
}, e.prototype.unmount = function() {
|
|
486
|
+
this.isMounted = !1;
|
|
487
|
+
}, e;
|
|
488
|
+
}();
|
|
489
|
+
class T {
|
|
490
|
+
constructor(t) {
|
|
491
|
+
this.values = [], this.delimiter = ":", this.hasValue(t) && this.addValue(t);
|
|
492
|
+
}
|
|
493
|
+
toString() {
|
|
494
|
+
return this.values.join(this.delimiter);
|
|
495
|
+
}
|
|
496
|
+
hasValue(t) {
|
|
497
|
+
return t != null && t !== "";
|
|
498
|
+
}
|
|
499
|
+
addValue(t) {
|
|
500
|
+
return Array.isArray(t) ? this.values = this.values.concat(t) : this.values.push(t), this.values = this.values.filter((r) => this.hasValue(r)), this;
|
|
501
|
+
}
|
|
502
|
+
setDelimiter(t) {
|
|
503
|
+
return this.delimiter = t, this;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
class Mn extends Error {
|
|
507
|
+
constructor(t = "Unsupported") {
|
|
508
|
+
super(t);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function ir(e) {
|
|
512
|
+
return new Mn(e);
|
|
513
|
+
}
|
|
514
|
+
function Vn() {
|
|
515
|
+
return this._qualifierModel || { error: ir(`unsupported qualifier ${this.constructor.name}`) };
|
|
516
|
+
}
|
|
517
|
+
class Ln {
|
|
518
|
+
constructor() {
|
|
519
|
+
this._qualifierModel = {};
|
|
520
|
+
}
|
|
521
|
+
toJson() {
|
|
522
|
+
return Vn.apply(this);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
class j extends Ln {
|
|
526
|
+
constructor(t, r) {
|
|
527
|
+
super(), this.delimiter = "_", this.key = t, r instanceof T ? this.qualifierValue = r : (this.qualifierValue = new T(), this.qualifierValue.addValue(r));
|
|
528
|
+
}
|
|
529
|
+
toString() {
|
|
530
|
+
const { key: t, delimiter: r, qualifierValue: o } = this;
|
|
531
|
+
return `${t}${r}${o.toString()}`;
|
|
532
|
+
}
|
|
533
|
+
addValue(t) {
|
|
534
|
+
return this.qualifierValue.addValue(t), this;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
class K extends j {
|
|
538
|
+
constructor(t, r) {
|
|
539
|
+
let o;
|
|
540
|
+
o = r ? new T([t, `${r}`]).setDelimiter(":") : t, super("fl", o), this.flagValue = r;
|
|
541
|
+
}
|
|
542
|
+
toString() {
|
|
543
|
+
return super.toString().replace(/\./g, "%2E");
|
|
544
|
+
}
|
|
545
|
+
getFlagValue() {
|
|
546
|
+
return this.flagValue;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
function Fn() {
|
|
550
|
+
var e, t, r;
|
|
551
|
+
const o = this._actionModel && Object.keys(this._actionModel).length, i = (r = (t = (e = this._actionModel) === null || e === void 0 ? void 0 : e.source) === null || t === void 0 ? void 0 : t.transformation) === null || r === void 0 ? void 0 : r.error;
|
|
552
|
+
return i && i instanceof Error ? { error: i } : o ? this._actionModel : { error: ir(`unsupported action ${this.constructor.name}`) };
|
|
553
|
+
}
|
|
554
|
+
class In {
|
|
555
|
+
constructor() {
|
|
556
|
+
this._actionModel = {};
|
|
557
|
+
}
|
|
558
|
+
toJson() {
|
|
559
|
+
return Fn.apply(this);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
class rt extends In {
|
|
563
|
+
constructor() {
|
|
564
|
+
super(...arguments), this.qualifiers = /* @__PURE__ */ new Map(), this.flags = [], this.delimiter = ",", this.actionTag = "";
|
|
565
|
+
}
|
|
566
|
+
prepareQualifiers() {
|
|
567
|
+
}
|
|
568
|
+
getActionTag() {
|
|
569
|
+
return this.actionTag;
|
|
570
|
+
}
|
|
571
|
+
setActionTag(t) {
|
|
572
|
+
return this.actionTag = t, this;
|
|
573
|
+
}
|
|
574
|
+
toString() {
|
|
575
|
+
return this.prepareQualifiers(), function(t, r) {
|
|
576
|
+
const o = Array.from(t.entries());
|
|
577
|
+
return r.forEach((i) => {
|
|
578
|
+
o.push(["fl", i]);
|
|
579
|
+
}), o.sort().map((i) => i[1]);
|
|
580
|
+
}(this.qualifiers, this.flags).join(this.delimiter);
|
|
581
|
+
}
|
|
582
|
+
addQualifier(t) {
|
|
583
|
+
if (typeof t == "string") {
|
|
584
|
+
const [r, o] = t.toLowerCase().split("_");
|
|
585
|
+
r === "fl" ? this.flags.push(new K(o)) : this.qualifiers.set(r, new j(r, o));
|
|
586
|
+
} else this.qualifiers.set(t.key, t);
|
|
587
|
+
return this;
|
|
588
|
+
}
|
|
589
|
+
addFlag(t) {
|
|
590
|
+
return typeof t == "string" ? this.flags.push(new K(t)) : t instanceof K && this.flags.push(t), this;
|
|
591
|
+
}
|
|
592
|
+
addValueToQualifier(t, r) {
|
|
593
|
+
return this.qualifiers.get(t).addValue(r), this;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
class ar extends rt {
|
|
597
|
+
constructor(t) {
|
|
598
|
+
super(), this.regionType = t, this._actionModel.regionType = t;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
class Le extends ar {
|
|
602
|
+
constructor() {
|
|
603
|
+
super("custom");
|
|
604
|
+
}
|
|
605
|
+
x(t) {
|
|
606
|
+
return this._actionModel.x = t, this.addQualifier(new j("x", t)), this;
|
|
607
|
+
}
|
|
608
|
+
y(t) {
|
|
609
|
+
return this._actionModel.y = t, this.addQualifier(new j("y", t)), this;
|
|
610
|
+
}
|
|
611
|
+
width(t) {
|
|
612
|
+
return this._actionModel.width = t, this.addQualifier(new j("w", t)), this;
|
|
613
|
+
}
|
|
614
|
+
height(t) {
|
|
615
|
+
return this._actionModel.height = t, this.addQualifier(new j("h", t)), this;
|
|
616
|
+
}
|
|
617
|
+
static fromJson(t) {
|
|
618
|
+
const r = new Le();
|
|
619
|
+
return t.width && r.width(t.width), t.height && r.height(t.height), t.x && r.x(t.x), t.y && r.y(t.y), r;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function Dr() {
|
|
623
|
+
return new ar("faces");
|
|
624
|
+
}
|
|
625
|
+
class qn extends rt {
|
|
626
|
+
constructor(t) {
|
|
627
|
+
super(), this._actionModel = {}, this._strength = t, this._actionModel.actionType = "blur", this._actionModel.strength = t;
|
|
628
|
+
}
|
|
629
|
+
region(t) {
|
|
630
|
+
return this._region = t, this._actionModel.region = t.toJson(), this;
|
|
631
|
+
}
|
|
632
|
+
strength(t) {
|
|
633
|
+
return this._strength = t, this._actionModel.strength = t, this;
|
|
634
|
+
}
|
|
635
|
+
prepareQualifiers() {
|
|
636
|
+
const t = this._strength ? `:${this._strength}` : "";
|
|
637
|
+
"_region" in this ? (this._region.qualifiers.forEach((r) => this.addQualifier(r)), this._region.regionType === "custom" && this.addQualifier(new j("e", `blur_region${t}`)), this._region.regionType === "ocr_text" && (this.addQualifier(new j("e", `blur_region${t}`)), this.addQualifier(new j("g", "ocr_text"))), this._region.regionType === "faces" && this.addQualifier(new j("e", `blur_faces${t}`))) : this.addQualifier(new j("e", `blur${t}`));
|
|
638
|
+
}
|
|
639
|
+
static fromJson(t) {
|
|
640
|
+
const { strength: r, region: o } = t, i = new this(r);
|
|
641
|
+
return r && i.strength(r), o && o.regionType === "faces" && i.region(Dr()), o && o.regionType === "ocr_text" && i.region(new ar("ocr_text")), o && o.regionType === "custom" && i.region(Le.fromJson(o)), i;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
function jt(e) {
|
|
645
|
+
const t = {};
|
|
646
|
+
return Object.keys(e).forEach((r) => {
|
|
647
|
+
t[e[r]] = r;
|
|
648
|
+
}), t;
|
|
649
|
+
}
|
|
650
|
+
const Qr = { limitFit: "limit", limitFill: "lfill", minimumFit: "mfit", thumbnail: "thumb", limitPad: "lpad", minimumPad: "mpad", autoPad: "auto_pad" }, zr = { redEye: "redeye", advancedRedEye: "adv_redeye", oilPaint: "oil_paint", unsharpMask: "unsharp_mask", makeTransparent: "make_transparent", generativeRestore: "gen_restore", upscale: "upscale" }, Ur = { autoBest: "auto:best", autoEco: "auto:eco", autoGood: "auto:good", autoLow: "auto:low", jpegminiHigh: "jpegmini:1", jpegminiMedium: "jpegmini:2", jpegminiBest: "jpegmini:0" }, Nr = { 444: "CHROMA_444", 420: "CHROMA_420" }, Dn = jt(Nr);
|
|
651
|
+
jt({ noCmyk: "no_cmyk", keepCmyk: "keep_cmyk", tinySrgb: "tinysrgb", srgbTrueColor: "srgb:truecolor" });
|
|
652
|
+
const Qn = jt(Qr), zn = jt({ colorSpace: "cs", dpr: "dpr", density: "dn", defaultImage: "d", format: "f", quality: "q" }), Jr = jt(zr);
|
|
653
|
+
jt(Ur), jt({ fullHd: "full_hd", fullHdWifi: "full_hd_wifi", fullHdLean: "full_hd_lean", hdLean: "hd_lean" });
|
|
654
|
+
class Wr extends rt {
|
|
655
|
+
constructor(t, r) {
|
|
656
|
+
super(), this._actionModel = {}, this._actionModel.actionType = Jr[t] || t;
|
|
657
|
+
const o = this.createEffectQualifier(t, r);
|
|
658
|
+
this.addQualifier(o);
|
|
659
|
+
}
|
|
660
|
+
createEffectQualifier(t, r) {
|
|
661
|
+
let o;
|
|
662
|
+
return o = r ? new T([t, `${r}`]).setDelimiter(":") : new T(t), new j("e", o);
|
|
663
|
+
}
|
|
664
|
+
static fromJson(t) {
|
|
665
|
+
const { actionType: r, level: o, strength: i } = t;
|
|
666
|
+
return new this(zr[r] || r, o || i);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
class Un extends Wr {
|
|
670
|
+
constructor(t, r) {
|
|
671
|
+
super(t, r), this.LEVEL_NAME = "level", this._actionModel = {}, this.effectType = t, this._actionModel.actionType = Jr[t] || t, r && this.setLevel(r);
|
|
672
|
+
}
|
|
673
|
+
setLevel(t) {
|
|
674
|
+
this._actionModel[this.LEVEL_NAME] = t;
|
|
675
|
+
const r = this.createEffectQualifier(this.effectType, t);
|
|
676
|
+
return this.addQualifier(r), this;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
function Fe(e) {
|
|
680
|
+
return e && e.match(/^#/) ? `rgb:${e.substr(1)}` : e;
|
|
681
|
+
}
|
|
682
|
+
class Nn extends rt {
|
|
683
|
+
constructor() {
|
|
684
|
+
super(), this._actionModel = {}, this._actionModel.actionType = "vectorize";
|
|
685
|
+
}
|
|
686
|
+
numOfColors(t) {
|
|
687
|
+
return this._actionModel.numOfColors = t, this._numOfColors = t, this;
|
|
688
|
+
}
|
|
689
|
+
detailsLevel(t) {
|
|
690
|
+
return this._actionModel.detailLevel = t, this._detailsLevel = t, this;
|
|
691
|
+
}
|
|
692
|
+
despeckleLevel(t) {
|
|
693
|
+
return this._actionModel.despeckleLevel = t, this._despeckleLevel = t, this;
|
|
694
|
+
}
|
|
695
|
+
cornersLevel(t) {
|
|
696
|
+
return this._actionModel.cornersLevel = t, this._cornersLevel = t, this;
|
|
697
|
+
}
|
|
698
|
+
paths(t) {
|
|
699
|
+
return this._actionModel.paths = t, this._paths = t, this;
|
|
700
|
+
}
|
|
701
|
+
prepareQualifiers() {
|
|
702
|
+
let t = "vectorize";
|
|
703
|
+
this._numOfColors && (t += `:${new T(`colors:${this._numOfColors}`).toString()}`), this._detailsLevel && (t += `:${new T(`detail:${this._detailsLevel}`).toString()}`), this._despeckleLevel && (t += `:${new T(`despeckle:${this._despeckleLevel}`).toString()}`), this._paths && (t += `:${new T(`paths:${this._paths}`).toString()}`), this._cornersLevel && (t += `:${new T(`corners:${this._cornersLevel}`).toString()}`), this.addQualifier(new j("e", t));
|
|
704
|
+
}
|
|
705
|
+
static fromJson(t) {
|
|
706
|
+
const { actionType: r, paths: o, cornersLevel: i, despeckleLevel: u, detailLevel: p, numOfColors: d } = t, m = new this();
|
|
707
|
+
return o && m.paths(o), i && m.cornersLevel(i), u && m.despeckleLevel(u), p && m.detailsLevel(p), d && m.numOfColors(d), m;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
class Jn extends Un {
|
|
711
|
+
level(t) {
|
|
712
|
+
return this._actionModel.level = t, this.setLevel(t);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
class Wn extends rt {
|
|
716
|
+
constructor() {
|
|
717
|
+
super(), this._actionModel = {}, this._actionModel.actionType = "assistColorblind", this.addQualifier(new j("e", new T("assist_colorblind")));
|
|
718
|
+
}
|
|
719
|
+
xray() {
|
|
720
|
+
return this._actionModel.type = "xray", this.addQualifier(new j("e", new T(["assist_colorblind", "xray"]).setDelimiter(":")));
|
|
721
|
+
}
|
|
722
|
+
stripesStrength(t) {
|
|
723
|
+
return this._actionModel.type = "stripes", this._actionModel.stripesStrength = t, this.addQualifier(new j("e", new T(["assist_colorblind", t]).setDelimiter(":")));
|
|
724
|
+
}
|
|
725
|
+
static fromJson(t) {
|
|
726
|
+
const { actionType: r, type: o, stripesStrength: i } = t, u = new this();
|
|
727
|
+
return o === "xray" && u.xray(), o === "stripes" && i && u.stripesStrength(i), u;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
class Bn extends Jn {
|
|
731
|
+
color(t) {
|
|
732
|
+
return this._actionModel.color = t, this.addQualifier(new j("co", new T(Fe(t))));
|
|
733
|
+
}
|
|
734
|
+
static fromJson(t) {
|
|
735
|
+
const { actionType: r, level: o, color: i } = t, u = new this(r, o);
|
|
736
|
+
return i && u.color(i), u;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
class Hn extends rt {
|
|
740
|
+
constructor(t) {
|
|
741
|
+
super(), this._actionModel = {}, this._squareSize = t, this._actionModel.actionType = "pixelate", this._actionModel.squareSize = t;
|
|
742
|
+
}
|
|
743
|
+
region(t) {
|
|
744
|
+
return this._region = t, this._actionModel.region = { regionType: this._region.regionType }, this;
|
|
745
|
+
}
|
|
746
|
+
squareSize(t) {
|
|
747
|
+
return this._squareSize = t, this._actionModel.squareSize = t, this;
|
|
748
|
+
}
|
|
749
|
+
prepareQualifiers() {
|
|
750
|
+
const t = this._squareSize ? `:${this._squareSize}` : "";
|
|
751
|
+
"_region" in this ? (this._region.qualifiers.forEach((r) => this.addQualifier(r)), this._region.regionType === "custom" && this.addQualifier(new j("e", `pixelate_region${t}`)), this._region.regionType === "ocr_text" && (this.addQualifier(new j("e", `pixelate_region${t}`)), this.addQualifier(new j("g", "ocr_text"))), this._region.regionType === "faces" && this.addQualifier(new j("e", `pixelate_faces${t}`))) : this.addQualifier(new j("e", `pixelate${t}`));
|
|
752
|
+
}
|
|
753
|
+
static fromJson(t) {
|
|
754
|
+
const { region: r, squareSize: o } = t, i = new this(o);
|
|
755
|
+
return o && i.squareSize(o), r && r.regionType === "faces" && i.region(Dr()), r && r.regionType === "custom" && i.region(new Le()), i;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
function br(e) {
|
|
759
|
+
return new Bn("colorize", e);
|
|
760
|
+
}
|
|
761
|
+
class Gn extends rt {
|
|
762
|
+
constructor(t) {
|
|
763
|
+
super(), this._actionModel = {}, this.addQualifier(new j("b", new T(Fe(t)).setDelimiter("_"))), this._actionModel.color = t, this._actionModel.actionType = "backgroundColor";
|
|
764
|
+
}
|
|
765
|
+
static fromJson(t) {
|
|
766
|
+
const { color: r } = t;
|
|
767
|
+
return new this(r);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
class wr {
|
|
771
|
+
constructor(t) {
|
|
772
|
+
this.raw = t;
|
|
773
|
+
}
|
|
774
|
+
toString() {
|
|
775
|
+
return this.raw;
|
|
776
|
+
}
|
|
777
|
+
toJson() {
|
|
778
|
+
return { error: ir(`unsupported action ${this.constructor.name}`) };
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
class sr extends T {
|
|
782
|
+
constructor(t) {
|
|
783
|
+
super(t), this.val = t;
|
|
784
|
+
}
|
|
785
|
+
getValue() {
|
|
786
|
+
return this.val;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
class Br extends rt {
|
|
790
|
+
constructor(t, r, o) {
|
|
791
|
+
let i;
|
|
792
|
+
super(), this._actionModel = {}, i = r instanceof sr ? r.getValue() : r, this._actionModel.actionType = zn[t], this._actionModel[o] = i, this.addQualifier(new j(t, r));
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
class Yn extends K {
|
|
796
|
+
constructor(t) {
|
|
797
|
+
super("progressive", t);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
class Ye extends Br {
|
|
801
|
+
constructor(t, r) {
|
|
802
|
+
super(t, r, "formatType");
|
|
803
|
+
}
|
|
804
|
+
lossy() {
|
|
805
|
+
return this._actionModel.lossy = !0, this.addFlag(new K("lossy")), this;
|
|
806
|
+
}
|
|
807
|
+
progressive(t) {
|
|
808
|
+
return t instanceof Yn ? (this._actionModel.progressive = { mode: t.getFlagValue() }, this.addFlag(t)) : (this._actionModel.progressive = { mode: t }, this.addFlag(function(r) {
|
|
809
|
+
return new K("progressive", r);
|
|
810
|
+
}(t))), this;
|
|
811
|
+
}
|
|
812
|
+
preserveTransparency() {
|
|
813
|
+
return this._actionModel.preserveTransparency = !0, this.addFlag(new K("preserve_transparency")), this;
|
|
814
|
+
}
|
|
815
|
+
static fromJson(t) {
|
|
816
|
+
const { formatType: r, lossy: o, progressive: i, preserveTransparency: u } = t;
|
|
817
|
+
let p;
|
|
818
|
+
return p = r ? new this("f", r) : new this("f"), i && (i.mode ? p.progressive(i.mode) : p.progressive()), o && p.lossy(), u && p.preserveTransparency(), p;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
class Ut {
|
|
822
|
+
constructor() {
|
|
823
|
+
this.actions = [];
|
|
824
|
+
}
|
|
825
|
+
addAction(t) {
|
|
826
|
+
let r;
|
|
827
|
+
if (typeof t == "string") {
|
|
828
|
+
if (t.indexOf("/") >= 0) throw "addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";
|
|
829
|
+
r = new wr(t);
|
|
830
|
+
} else r = t;
|
|
831
|
+
return this.actions.push(r), this;
|
|
832
|
+
}
|
|
833
|
+
addTransformation(t) {
|
|
834
|
+
return t instanceof Ut ? this.actions = this.actions.concat(t.actions) : this.actions.push(new wr(t)), this;
|
|
835
|
+
}
|
|
836
|
+
toString() {
|
|
837
|
+
return this.actions.map((t) => t.toString()).filter((t) => t).join("/");
|
|
838
|
+
}
|
|
839
|
+
animated(t) {
|
|
840
|
+
return this.addAction(t);
|
|
841
|
+
}
|
|
842
|
+
border(t) {
|
|
843
|
+
return this.addAction(t);
|
|
844
|
+
}
|
|
845
|
+
reshape(t) {
|
|
846
|
+
return this.addAction(t);
|
|
847
|
+
}
|
|
848
|
+
resize(t) {
|
|
849
|
+
return this.addAction(t);
|
|
850
|
+
}
|
|
851
|
+
quality(t) {
|
|
852
|
+
return this.addAction(new Ye("q", t)), this;
|
|
853
|
+
}
|
|
854
|
+
format(t) {
|
|
855
|
+
return this.addAction(new Ye("f", t)), this;
|
|
856
|
+
}
|
|
857
|
+
roundCorners(t) {
|
|
858
|
+
return this.addAction(t);
|
|
859
|
+
}
|
|
860
|
+
overlay(t) {
|
|
861
|
+
return this.addAction(t);
|
|
862
|
+
}
|
|
863
|
+
underlay(t) {
|
|
864
|
+
return t.setLayerType("u"), this.addAction(t);
|
|
865
|
+
}
|
|
866
|
+
addVariable(t) {
|
|
867
|
+
return this.addAction(t);
|
|
868
|
+
}
|
|
869
|
+
conditional(t) {
|
|
870
|
+
return this.addAction(t);
|
|
871
|
+
}
|
|
872
|
+
effect(t) {
|
|
873
|
+
return this.addAction(t);
|
|
874
|
+
}
|
|
875
|
+
adjust(t) {
|
|
876
|
+
return this.addAction(t);
|
|
877
|
+
}
|
|
878
|
+
rotate(t) {
|
|
879
|
+
return this.addAction(t);
|
|
880
|
+
}
|
|
881
|
+
namedTransformation(t) {
|
|
882
|
+
return this.addAction(t);
|
|
883
|
+
}
|
|
884
|
+
delivery(t) {
|
|
885
|
+
return this.addAction(t);
|
|
886
|
+
}
|
|
887
|
+
backgroundColor(t) {
|
|
888
|
+
return this.addAction(new Gn(t));
|
|
889
|
+
}
|
|
890
|
+
psdTools(t) {
|
|
891
|
+
return this.addAction(t);
|
|
892
|
+
}
|
|
893
|
+
extract(t) {
|
|
894
|
+
return this.addAction(t);
|
|
895
|
+
}
|
|
896
|
+
addFlag(t) {
|
|
897
|
+
const r = new rt();
|
|
898
|
+
let o = t;
|
|
899
|
+
return typeof t == "string" && (o = new K(t)), r.addQualifier(o), this.addAction(r);
|
|
900
|
+
}
|
|
901
|
+
customFunction(t) {
|
|
902
|
+
return this.addAction(t);
|
|
903
|
+
}
|
|
904
|
+
transcode(t) {
|
|
905
|
+
return this.addAction(t);
|
|
906
|
+
}
|
|
907
|
+
videoEdit(t) {
|
|
908
|
+
return this.addAction(t);
|
|
909
|
+
}
|
|
910
|
+
toJson() {
|
|
911
|
+
const t = [];
|
|
912
|
+
for (const o of this.actions) {
|
|
913
|
+
const i = o.toJson();
|
|
914
|
+
if ("error" in (r = i) && r.error) return i;
|
|
915
|
+
t.push(i);
|
|
916
|
+
}
|
|
917
|
+
var r;
|
|
918
|
+
return { actions: t };
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
function Sr(e) {
|
|
922
|
+
const t = e.toString();
|
|
923
|
+
return t.match(/[A-Z]/gi) || t.length > 1 && t[0] === "0" ? t : !isNaN(parseFloat(t)) && t.indexOf(":") === -1 && t.indexOf(".") === -1 ? `${t}.0` : t;
|
|
924
|
+
}
|
|
925
|
+
class Xn extends T {
|
|
926
|
+
}
|
|
927
|
+
class Kn extends rt {
|
|
928
|
+
constructor(t, r, o) {
|
|
929
|
+
super(), this._actionModel = { dimensions: {} }, this._actionModel.actionType = Qn[t] || t, this.addQualifier(new j("c", t)), r && this.width(r), o && this.height(o);
|
|
930
|
+
}
|
|
931
|
+
height(t) {
|
|
932
|
+
return this._actionModel.dimensions.height = t, this.addQualifier(new j("h", t));
|
|
933
|
+
}
|
|
934
|
+
width(t) {
|
|
935
|
+
return this._actionModel.dimensions.width = t, this.addQualifier(new j("w", t));
|
|
936
|
+
}
|
|
937
|
+
aspectRatio(t) {
|
|
938
|
+
return t instanceof Xn ? (this._actionModel.dimensions.aspectRatio = `${t}`, this.addQualifier(new j("ar", t))) : typeof t == "number" || typeof t == "string" ? (this._actionModel.dimensions.aspectRatio = Sr(t), this.addQualifier(new j("ar", Sr(t)))) : t instanceof K ? (this._actionModel.dimensions.aspectRatio = `${t.qualifierValue}`, this.addFlag(t)) : void 0;
|
|
939
|
+
}
|
|
940
|
+
relative() {
|
|
941
|
+
return this._actionModel.relative = !0, this.addFlag(new K("relative"));
|
|
942
|
+
}
|
|
943
|
+
regionRelative() {
|
|
944
|
+
return this._actionModel.regionRelative = !0, this.addFlag(new K("region_relative"));
|
|
945
|
+
}
|
|
946
|
+
static fromJson(t) {
|
|
947
|
+
const { actionType: r, dimensions: o, relative: i, regionRelative: u } = t, { aspectRatio: p, width: d, height: m } = o, g = new this(Qr[r] || r, d, m);
|
|
948
|
+
return p && g.aspectRatio(p === "ignore_aspect_ratio" ? new K("ignore_aspect_ratio") : p), i && g.relative(), u && g.regionRelative(), g;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
class ur extends j {
|
|
952
|
+
constructor(t) {
|
|
953
|
+
super("g", new T(t));
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
class Hr extends ur {
|
|
957
|
+
constructor() {
|
|
958
|
+
super("auto");
|
|
959
|
+
}
|
|
960
|
+
autoFocus(...t) {
|
|
961
|
+
return this.addValue(t), this;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
class Gr extends ur {
|
|
965
|
+
constructor(t) {
|
|
966
|
+
super(t);
|
|
967
|
+
}
|
|
968
|
+
fallbackGravity(t) {
|
|
969
|
+
return this.addValue(t.qualifierValue), this;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
class Yr extends ur {
|
|
973
|
+
constructor(t) {
|
|
974
|
+
super(t);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
function xr(...e) {
|
|
978
|
+
const t = [...e];
|
|
979
|
+
return new Gr(t);
|
|
980
|
+
}
|
|
981
|
+
function Xr() {
|
|
982
|
+
return new Hr();
|
|
983
|
+
}
|
|
984
|
+
class Wt extends T {
|
|
985
|
+
constructor(t) {
|
|
986
|
+
super(), this.name = t;
|
|
987
|
+
}
|
|
988
|
+
toString() {
|
|
989
|
+
return this.name;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
function ze(e) {
|
|
993
|
+
return `${e}`.replace("g_", "");
|
|
994
|
+
}
|
|
995
|
+
function Zn(e) {
|
|
996
|
+
const t = e.toString().split("_"), r = { object: t[0] };
|
|
997
|
+
return t.length > 1 && (t[1] === "avoid" ? r.avoid = !0 : r.weight = +t[1]), r;
|
|
998
|
+
}
|
|
999
|
+
function jr(e) {
|
|
1000
|
+
let t;
|
|
1001
|
+
const r = e === "auto" ? new Hr() : e;
|
|
1002
|
+
return t = `${e}`.startsWith("auto:") ? `${e}`.split(":").filter((o) => o !== "auto") : r.qualifierValue.values.filter((o) => o !== "auto"), { gravityType: "auto", autoFocus: t.map(Zn) };
|
|
1003
|
+
}
|
|
1004
|
+
function to(e) {
|
|
1005
|
+
return function(t) {
|
|
1006
|
+
const r = ze(t);
|
|
1007
|
+
return ["north", "center", "east", "west", "south", "north_west", "south_east", "south_west", "north_east"].includes(r);
|
|
1008
|
+
}(e) ? function(t) {
|
|
1009
|
+
return { compass: ze(t), gravityType: "direction" };
|
|
1010
|
+
}(e) : function(t) {
|
|
1011
|
+
return ze(t) === "ocr_text";
|
|
1012
|
+
}(e) ? { gravityType: "ocr" } : function(t) {
|
|
1013
|
+
return t && `${t}`.split(":")[0] === "auto";
|
|
1014
|
+
}(e) || function(t) {
|
|
1015
|
+
return `${t.qualifierValue}`.split(":")[0] === "auto";
|
|
1016
|
+
}(e) ? jr(e) : function(t) {
|
|
1017
|
+
const r = `${t}`.split(":").includes("auto"), o = t.qualifierValue.values, i = { gravityType: "object", focusOnObjects: (r ? o.slice(0, o.length - 1) : o).map((u) => `${u}`) };
|
|
1018
|
+
if (r) {
|
|
1019
|
+
const u = o[o.length - 1].values.slice(1), p = Xr().autoFocus(...u);
|
|
1020
|
+
i.fallbackGravity = jr(p);
|
|
1021
|
+
}
|
|
1022
|
+
return i;
|
|
1023
|
+
}(typeof e == "string" ? function(t) {
|
|
1024
|
+
const r = t.split(":").map((o) => new Wt(o));
|
|
1025
|
+
return new Gr(r);
|
|
1026
|
+
}(e) : e);
|
|
1027
|
+
}
|
|
1028
|
+
class cr extends T {
|
|
1029
|
+
constructor(t, r) {
|
|
1030
|
+
super(), this._weight = r, this.focusOn = t, this.shouldAvoid = !1;
|
|
1031
|
+
}
|
|
1032
|
+
static focusOn(t, r) {
|
|
1033
|
+
const o = t instanceof Wt ? t : new Wt(t);
|
|
1034
|
+
return new cr(o, r);
|
|
1035
|
+
}
|
|
1036
|
+
shouldAddWeight() {
|
|
1037
|
+
return typeof this._weight == "number" || typeof this._weight == "string" || this.shouldAvoid;
|
|
1038
|
+
}
|
|
1039
|
+
getName() {
|
|
1040
|
+
return this.focusOn.name;
|
|
1041
|
+
}
|
|
1042
|
+
getWeight() {
|
|
1043
|
+
return this.shouldAvoid ? "avoid" : this._weight;
|
|
1044
|
+
}
|
|
1045
|
+
toString() {
|
|
1046
|
+
return this.shouldAddWeight() ? `${this.getName()}_${this.getWeight()}` : `${this.getName()}`;
|
|
1047
|
+
}
|
|
1048
|
+
weight(t) {
|
|
1049
|
+
return this._weight = t, this;
|
|
1050
|
+
}
|
|
1051
|
+
avoid() {
|
|
1052
|
+
return this.shouldAvoid = !0, this;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
class Kr extends T {
|
|
1056
|
+
constructor(t) {
|
|
1057
|
+
super(), this.val = t;
|
|
1058
|
+
}
|
|
1059
|
+
toString() {
|
|
1060
|
+
return this.val;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
function eo(e) {
|
|
1064
|
+
const { object: t, weight: r, avoid: o } = e, i = new cr(new Wt(t));
|
|
1065
|
+
return (r || r === 0) && i.weight(r), o && i.avoid(), i;
|
|
1066
|
+
}
|
|
1067
|
+
function Or(e) {
|
|
1068
|
+
const t = (e.autoFocus || []).map(eo);
|
|
1069
|
+
return Xr().autoFocus(...t);
|
|
1070
|
+
}
|
|
1071
|
+
function ro(e) {
|
|
1072
|
+
return function(t) {
|
|
1073
|
+
return t.gravityType === "direction";
|
|
1074
|
+
}(e) ? new Yr(new Kr(e.compass)) : function(t) {
|
|
1075
|
+
return t.gravityType === "ocr";
|
|
1076
|
+
}(e) ? xr(new Wt("ocr_text")) : function(t) {
|
|
1077
|
+
return t.gravityType === "auto";
|
|
1078
|
+
}(e) ? Or(e) : function(t) {
|
|
1079
|
+
const r = xr(...(t.focusOnObjects || []).map((o) => new Wt(o)));
|
|
1080
|
+
if (t.fallbackGravity) {
|
|
1081
|
+
const o = Or(t.fallbackGravity);
|
|
1082
|
+
r.fallbackGravity(o);
|
|
1083
|
+
}
|
|
1084
|
+
return r;
|
|
1085
|
+
}(e);
|
|
1086
|
+
}
|
|
1087
|
+
class lr extends Kn {
|
|
1088
|
+
gravity(t) {
|
|
1089
|
+
this._actionModel.gravity = to(t);
|
|
1090
|
+
const r = typeof t == "string" ? new j("g", t) : t;
|
|
1091
|
+
return this.addQualifier(r);
|
|
1092
|
+
}
|
|
1093
|
+
static fromJson(t) {
|
|
1094
|
+
const r = super.fromJson.apply(this, [t]);
|
|
1095
|
+
return t.gravity && r.gravity(ro(t.gravity)), r;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
class he extends j {
|
|
1099
|
+
constructor(t) {
|
|
1100
|
+
super("b"), t && this.addValue(t);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
var Zr = class extends he {
|
|
1104
|
+
intensity(e) {
|
|
1105
|
+
return this.intensityLevel = e, this;
|
|
1106
|
+
}
|
|
1107
|
+
brightness(e) {
|
|
1108
|
+
return this.brightnessLevel = e, this;
|
|
1109
|
+
}
|
|
1110
|
+
toString() {
|
|
1111
|
+
return `b_blurred${this.intensityLevel !== void 0 ? `:${this.intensityLevel}` : ""}${this.brightnessLevel !== void 0 ? this.intensityLevel !== void 0 ? `:${this.brightnessLevel}` : `:100:${this.brightnessLevel}` : ""}`;
|
|
1112
|
+
}
|
|
1113
|
+
};
|
|
1114
|
+
class fr extends he {
|
|
1115
|
+
constructor() {
|
|
1116
|
+
super(), this._palette = [];
|
|
1117
|
+
}
|
|
1118
|
+
contrast() {
|
|
1119
|
+
return this._contrast = !0, this;
|
|
1120
|
+
}
|
|
1121
|
+
palette(...t) {
|
|
1122
|
+
return this._palette = t.map((r) => Fe(r)), this;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
class tn extends fr {
|
|
1126
|
+
toString() {
|
|
1127
|
+
return `
|
|
1128
|
+
b_auto:border
|
|
1129
|
+
${this._contrast ? "_contrast" : ""}
|
|
1130
|
+
${this._palette.length ? `:palette_${this._palette.join("_")}` : ""}
|
|
1131
|
+
`.replace(/\s+/g, "");
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
class en extends fr {
|
|
1135
|
+
gradientColors(t) {
|
|
1136
|
+
return this._gradientColors = t, this;
|
|
1137
|
+
}
|
|
1138
|
+
gradientDirection(t) {
|
|
1139
|
+
return this._gradientDirection = t, this;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
class rn extends en {
|
|
1143
|
+
toString() {
|
|
1144
|
+
return `
|
|
1145
|
+
b_auto:border_gradient
|
|
1146
|
+
${this._contrast ? "_contrast" : ""}
|
|
1147
|
+
${this._gradientColors ? `:${this._gradientColors}` : ""}
|
|
1148
|
+
${this._gradientDirection ? `:${this._gradientDirection}` : ""}
|
|
1149
|
+
${this._palette.length ? `:palette_${this._palette.join("_")}` : ""}
|
|
1150
|
+
`.replace(/\s+/g, "");
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
class nn extends en {
|
|
1154
|
+
toString() {
|
|
1155
|
+
return `
|
|
1156
|
+
b_auto:predominant_gradient
|
|
1157
|
+
${this._contrast ? "_contrast" : ""}
|
|
1158
|
+
${this._gradientColors ? `:${this._gradientColors}` : ""}
|
|
1159
|
+
${this._gradientDirection ? `:${this._gradientDirection}` : ""}
|
|
1160
|
+
${this._palette.length ? `:palette_${this._palette.join("_")}` : ""}
|
|
1161
|
+
`.replace(/\s+/g, "");
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
class on extends fr {
|
|
1165
|
+
toString() {
|
|
1166
|
+
return `
|
|
1167
|
+
b_auto:predominant
|
|
1168
|
+
${this._contrast ? "_contrast" : ""}
|
|
1169
|
+
${this._palette.length ? `:palette_${this._palette.join("_")}` : ""}
|
|
1170
|
+
`.replace(/\s+/g, "");
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
class an extends he {
|
|
1174
|
+
constructor() {
|
|
1175
|
+
super("gen_fill"), this._backgroundType = "generativeFill";
|
|
1176
|
+
}
|
|
1177
|
+
prompt(t) {
|
|
1178
|
+
return this._prompt = t, this;
|
|
1179
|
+
}
|
|
1180
|
+
getPrompt() {
|
|
1181
|
+
return this._prompt;
|
|
1182
|
+
}
|
|
1183
|
+
getBackgroundType() {
|
|
1184
|
+
return this._backgroundType;
|
|
1185
|
+
}
|
|
1186
|
+
toString() {
|
|
1187
|
+
return "b_gen_fill" + (this._prompt ? `:prompt_${this._prompt}` : "");
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
function kr(e) {
|
|
1191
|
+
return `${e}`.replace("b_", "");
|
|
1192
|
+
}
|
|
1193
|
+
function Xe(e) {
|
|
1194
|
+
const t = e._contrast, r = e._palette, o = { backgroundType: "" };
|
|
1195
|
+
return t && (o.contrast = !0), r && (o.palette = r), o;
|
|
1196
|
+
}
|
|
1197
|
+
function $r(e) {
|
|
1198
|
+
const t = e._gradientColors, r = `${e._gradientDirection}`, o = Xe(e);
|
|
1199
|
+
return t && (o.gradientColors = t), r && (o.gradientDirection = r), o;
|
|
1200
|
+
}
|
|
1201
|
+
function no(e) {
|
|
1202
|
+
return kr(e) === "auto" ? { backgroundType: "auto" } : e instanceof Zr ? function(t) {
|
|
1203
|
+
const { intensityLevel: r, brightnessLevel: o } = t, i = { backgroundType: "blurred" };
|
|
1204
|
+
return (r || r === 0) && (i.intensity = r), (o || o === 0) && (i.brightness = o), i;
|
|
1205
|
+
}(e) : e instanceof tn ? function(t) {
|
|
1206
|
+
return Object.assign(Object.assign({}, Xe(t)), { backgroundType: "border" });
|
|
1207
|
+
}(e) : e instanceof rn ? function(t) {
|
|
1208
|
+
return Object.assign(Object.assign({}, $r(t)), { backgroundType: "borderGradient" });
|
|
1209
|
+
}(e) : e instanceof on ? function(t) {
|
|
1210
|
+
return Object.assign(Object.assign({}, Xe(t)), { backgroundType: "predominant" });
|
|
1211
|
+
}(e) : e instanceof nn ? function(t) {
|
|
1212
|
+
return Object.assign(Object.assign({}, $r(t)), { backgroundType: "predominantGradient" });
|
|
1213
|
+
}(e) : e instanceof an ? function(t) {
|
|
1214
|
+
return Object.assign({ backgroundType: t.getBackgroundType() }, t.getPrompt() ? { prompt: t.getPrompt() } : {});
|
|
1215
|
+
}(e) : function(t) {
|
|
1216
|
+
return { backgroundType: "color", color: kr(t) };
|
|
1217
|
+
}(e);
|
|
1218
|
+
}
|
|
1219
|
+
function Ue() {
|
|
1220
|
+
return new sr("auto");
|
|
1221
|
+
}
|
|
1222
|
+
function sn() {
|
|
1223
|
+
return new tn();
|
|
1224
|
+
}
|
|
1225
|
+
function un() {
|
|
1226
|
+
return new he("auto");
|
|
1227
|
+
}
|
|
1228
|
+
function cn() {
|
|
1229
|
+
return new rn();
|
|
1230
|
+
}
|
|
1231
|
+
function ln() {
|
|
1232
|
+
return new nn();
|
|
1233
|
+
}
|
|
1234
|
+
function fn() {
|
|
1235
|
+
return new on();
|
|
1236
|
+
}
|
|
1237
|
+
function pn(e) {
|
|
1238
|
+
return new he(Fe(e));
|
|
1239
|
+
}
|
|
1240
|
+
function dn() {
|
|
1241
|
+
return new an();
|
|
1242
|
+
}
|
|
1243
|
+
const hn = { auto: un, border: sn, borderGradient: cn, predominantGradient: ln, predominant: fn, color: pn, blurred: function() {
|
|
1244
|
+
return new Zr();
|
|
1245
|
+
}, generativeFill: dn };
|
|
1246
|
+
function Cr(e, t) {
|
|
1247
|
+
const { gradientColors: r, gradientDirection: o, contrast: i, palette: u } = t;
|
|
1248
|
+
return i && e.contrast(), u && e.palette(...u), r && e.gradientColors(+r), o && e.gradientDirection(o), e;
|
|
1249
|
+
}
|
|
1250
|
+
function Ar(e, t) {
|
|
1251
|
+
const { contrast: r, palette: o } = t;
|
|
1252
|
+
return r && e.contrast(), o && e.palette(...o), e;
|
|
1253
|
+
}
|
|
1254
|
+
function oo(e) {
|
|
1255
|
+
const { backgroundType: t } = e;
|
|
1256
|
+
switch (t) {
|
|
1257
|
+
case "auto":
|
|
1258
|
+
return un();
|
|
1259
|
+
case "blurred":
|
|
1260
|
+
return function(r) {
|
|
1261
|
+
const { brightness: o, intensity: i } = r, u = hn.blurred();
|
|
1262
|
+
return u.brightness(o ?? 0), u.intensity(i ?? 100), u;
|
|
1263
|
+
}(e);
|
|
1264
|
+
case "border":
|
|
1265
|
+
return Ar(sn(), e);
|
|
1266
|
+
case "borderGradient":
|
|
1267
|
+
return Cr(cn(), e);
|
|
1268
|
+
case "predominant":
|
|
1269
|
+
return Ar(fn(), e);
|
|
1270
|
+
case "predominantGradient":
|
|
1271
|
+
return Cr(ln(), e);
|
|
1272
|
+
case "generativeFill":
|
|
1273
|
+
return function(r, o) {
|
|
1274
|
+
const { prompt: i } = o;
|
|
1275
|
+
return i && r.prompt(i), r;
|
|
1276
|
+
}(dn(), e);
|
|
1277
|
+
default:
|
|
1278
|
+
return pn(e.color);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
class io extends lr {
|
|
1282
|
+
background(t) {
|
|
1283
|
+
return this._actionModel.background = no(t), this.addQualifier(t);
|
|
1284
|
+
}
|
|
1285
|
+
offsetX(t) {
|
|
1286
|
+
return this._actionModel.x = t, this.addQualifier(new j("x", t));
|
|
1287
|
+
}
|
|
1288
|
+
offsetY(t) {
|
|
1289
|
+
return this._actionModel.y = t, this.addQualifier(new j("y", t));
|
|
1290
|
+
}
|
|
1291
|
+
static fromJson(t) {
|
|
1292
|
+
const r = super.fromJson.apply(this, [t]);
|
|
1293
|
+
return t.background && r.background(oo(t.background)), t.x && r.offsetX(t.x), t.y && r.offsetY(t.y), t.zoom && r.zoom(t.zoom), r;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
class ao extends lr {
|
|
1297
|
+
x(t) {
|
|
1298
|
+
return this._actionModel.x = t, this.addQualifier(new j("x", t));
|
|
1299
|
+
}
|
|
1300
|
+
y(t) {
|
|
1301
|
+
return this._actionModel.y = t, this.addQualifier(new j("y", t));
|
|
1302
|
+
}
|
|
1303
|
+
zoom(t) {
|
|
1304
|
+
return this._actionModel.zoom = t, this.addQualifier(new j("z", t));
|
|
1305
|
+
}
|
|
1306
|
+
static fromJson(t) {
|
|
1307
|
+
const r = super.fromJson.apply(this, [t]);
|
|
1308
|
+
return t.x && r.x(t.x), t.y && r.y(t.y), t.zoom && r.zoom(t.zoom), r;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
class so extends lr {
|
|
1312
|
+
x(t) {
|
|
1313
|
+
return this._actionModel.x = t, this.addQualifier(new j("x", t));
|
|
1314
|
+
}
|
|
1315
|
+
y(t) {
|
|
1316
|
+
return this._actionModel.y = t, this.addQualifier(new j("y", t));
|
|
1317
|
+
}
|
|
1318
|
+
static fromJson(t) {
|
|
1319
|
+
const r = super.fromJson.apply(this, [t]);
|
|
1320
|
+
return t.x && r.x(t.x), t.y && r.y(t.y), r;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
class uo extends Br {
|
|
1324
|
+
constructor(t) {
|
|
1325
|
+
super("q", t.toString(), "level");
|
|
1326
|
+
}
|
|
1327
|
+
chromaSubSampling(t) {
|
|
1328
|
+
this._actionModel.chromaSubSampling = Nr[t];
|
|
1329
|
+
const r = new T([this._actionModel.level, t]);
|
|
1330
|
+
return r.setDelimiter(":"), this.addQualifier(new j("q", r));
|
|
1331
|
+
}
|
|
1332
|
+
quantization(t) {
|
|
1333
|
+
this._actionModel.quantization = t;
|
|
1334
|
+
const r = new T([this._actionModel.level, `qmax_${t}`]).setDelimiter(":");
|
|
1335
|
+
return this.addQualifier(new j("q", r));
|
|
1336
|
+
}
|
|
1337
|
+
static fromJson(t) {
|
|
1338
|
+
const { level: r, chromaSubSampling: o, quantization: i } = t, u = new this(Ur[r] || r);
|
|
1339
|
+
if (o) {
|
|
1340
|
+
const p = Dn[o.toUpperCase()];
|
|
1341
|
+
p && u.chromaSubSampling(+p);
|
|
1342
|
+
}
|
|
1343
|
+
return i && u.quantization(i), u;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
function Re(e) {
|
|
1347
|
+
return new Ye("f", e);
|
|
1348
|
+
}
|
|
1349
|
+
function Te(e) {
|
|
1350
|
+
return new uo(e);
|
|
1351
|
+
}
|
|
1352
|
+
br(70).color("black"), br(40).color("white"), new Wr("grayscale"), new Wn();
|
|
1353
|
+
var co, Er, Rr, Tr, lo, Pr = { vectorize: new Ut().effect(new Nn()).delivery(Te("auto")).delivery(Re(new sr("svg"))), pixelate: new Ut().effect(new Hn(co)).delivery(Te("auto")).delivery(Re(Ue())), blur: new Ut().effect((Er = 2e3, new qn(Er))).delivery(Te("auto")).delivery(Re(Ue())), "predominant-color": new Ut().resize((Tr = "iw_div_2", new io("pad", Tr, lo)).aspectRatio(1).background(hn.auto())).resize(function(e, t) {
|
|
1354
|
+
return new ao("crop", e, t);
|
|
1355
|
+
}(1, 1).gravity((Rr = new Kr("north_east"), new Yr(Rr)))).resize(function(e, t) {
|
|
1356
|
+
return new so("fill", e, t);
|
|
1357
|
+
}().height("ih").width("iw")).delivery(Te("auto")).delivery(Re(Ue())) }, Mr = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", Vr = { flv: "x-flv", "3gp": "3gpp", mov: "quicktime", mpg: "mpeg", avi: "x-msvideo", wmv: "x-ms-wmv", ogv: "ogg", webm: "webm", mp4: "mp4" }, Lr = "?_a=", fo = function() {
|
|
1358
|
+
function e(t, r, o, i, u, p, d) {
|
|
1359
|
+
var m = this;
|
|
1360
|
+
this.mimeType = "video", this.mimeSubTypes = Vr, this.videoElement = t, this.originalVideo = r, this.videoOptions = d, this.htmlPluginState = { cleanupCallbacks: [], pluginEventSubscription: [] };
|
|
1361
|
+
var g = wt(r);
|
|
1362
|
+
Pe(t, r, i, this.htmlPluginState).then(function() {
|
|
1363
|
+
m.htmlPluginState.pluginEventSubscription.forEach(function(v) {
|
|
1364
|
+
v();
|
|
1365
|
+
}), m.setVideoAttributes(u, p), m.handleSourceToVideo(g, o);
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
return e.prototype.handleSourceToVideo = function(t, r) {
|
|
1369
|
+
var o = this;
|
|
1370
|
+
r ? this.generateUserSources(t, r) : ["webm", "mp4", "ogv"].forEach(function(i) {
|
|
1371
|
+
o.appendSourceTag(wt(t), i);
|
|
1372
|
+
});
|
|
1373
|
+
}, e.prototype.generateUserSources = function(t, r) {
|
|
1374
|
+
var o = this;
|
|
1375
|
+
r.map(function(i) {
|
|
1376
|
+
var u = i.type, p = i.codecs, d = i.transcode;
|
|
1377
|
+
return o.appendSourceTag(wt(t).transcode(d), u, o.buildMimeType(u, p));
|
|
1378
|
+
});
|
|
1379
|
+
}, e.prototype.appendSourceTag = function(t, r, o) {
|
|
1380
|
+
var i, u = document.createElement("source"), p = (i = this.videoOptions) === null || i === void 0 ? void 0 : i.useFetchFormat;
|
|
1381
|
+
p && t.format(r);
|
|
1382
|
+
var d = t.toURL().split(Lr), m = d[1] ? "".concat(Lr).concat(d[1]) : "", g = p ? "" : ".".concat(r);
|
|
1383
|
+
u.src = "".concat(d[0]).concat(g).concat(m), u.type = o || "video/".concat(Vr[r] || r), this.videoElement.appendChild(u);
|
|
1384
|
+
}, e.prototype.buildMimeType = function(t, r) {
|
|
1385
|
+
var o = "".concat(this.mimeType, "/").concat(this.mimeSubTypes[t] || t);
|
|
1386
|
+
return r && (o += "; codecs=" + (Array.isArray(r) ? r.join(", ") : r)), o;
|
|
1387
|
+
}, e.prototype.setVideoAttributes = function(t, r) {
|
|
1388
|
+
var o;
|
|
1389
|
+
if (t === void 0 && (t = {}), r === "auto") {
|
|
1390
|
+
var i = wt(this.originalVideo);
|
|
1391
|
+
t.poster = i.quality("auto").format("jpg").addTransformation("so_auto").toURL();
|
|
1392
|
+
} else r && (t.poster = (o = r.toURL) === null || o === void 0 ? void 0 : o.call(r));
|
|
1393
|
+
for (var u = 0, p = Object.entries(t); u < p.length; u++) {
|
|
1394
|
+
var d = p[u], m = d[0], g = d[1];
|
|
1395
|
+
g && this.videoElement.setAttribute(m, m === "poster" ? g : "");
|
|
1396
|
+
}
|
|
1397
|
+
}, e.prototype.update = function(t, r, o, i, u) {
|
|
1398
|
+
var p = this;
|
|
1399
|
+
if (t !== this.originalVideo) {
|
|
1400
|
+
for (var d = this.videoElement.getElementsByTagName("SOURCE"); d[0]; ) d[0].parentNode.removeChild(d[0]);
|
|
1401
|
+
Pe(this.videoElement, t, o, this.htmlPluginState).then(function() {
|
|
1402
|
+
p.setVideoAttributes(i, u), p.handleSourceToVideo(t, r), p.videoElement.load();
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
}, e;
|
|
1406
|
+
}(), po = typeof bt == "object" && bt && bt.Object === Object && bt, ho = typeof self == "object" && self && self.Object === Object && self;
|
|
1407
|
+
function pr() {
|
|
1408
|
+
return typeof window < "u";
|
|
1409
|
+
}
|
|
1410
|
+
function yo(e) {
|
|
1411
|
+
var t = {}, r = t.rootMargin, o = r === void 0 ? "0px" : r, i = t.threshold, u = i === void 0 ? 0.1 : i;
|
|
1412
|
+
return go.bind(null, o, u);
|
|
1413
|
+
}
|
|
1414
|
+
function go(e, t, r, o, i, u) {
|
|
1415
|
+
return e === void 0 && (e = "0px"), t === void 0 && (t = 0.1), !!pr() && new Promise(function(p) {
|
|
1416
|
+
var d = function(m, g, v, U) {
|
|
1417
|
+
try {
|
|
1418
|
+
if (!window || !("IntersectionObserver" in window)) return g(), function() {
|
|
1419
|
+
};
|
|
1420
|
+
var ot = new IntersectionObserver(function(yt) {
|
|
1421
|
+
yt.forEach(function(H) {
|
|
1422
|
+
H.isIntersecting && (ot.unobserve(H.target), g());
|
|
1423
|
+
});
|
|
1424
|
+
}, { rootMargin: v, threshold: U });
|
|
1425
|
+
return ot.observe(m), function() {
|
|
1426
|
+
m && ot.observe(m);
|
|
1427
|
+
};
|
|
1428
|
+
} catch {
|
|
1429
|
+
g();
|
|
1430
|
+
}
|
|
1431
|
+
}(r, function() {
|
|
1432
|
+
return p({ lazyload: !0 });
|
|
1433
|
+
}, e, t);
|
|
1434
|
+
i.cleanupCallbacks.push(function() {
|
|
1435
|
+
d(), p("canceled");
|
|
1436
|
+
});
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
function mo(e) {
|
|
1440
|
+
var t = {}.mode, r = t === void 0 ? "vectorize" : t;
|
|
1441
|
+
return vo.bind(null, r);
|
|
1442
|
+
}
|
|
1443
|
+
function vo(e, t, r, o, i, u) {
|
|
1444
|
+
Pr[e] || (e = "vectorize");
|
|
1445
|
+
var p = Pr[e].actions, d = wt(r);
|
|
1446
|
+
if (p.forEach(function(g) {
|
|
1447
|
+
d.addAction(g);
|
|
1448
|
+
}), !pr()) return r.transformation = d.transformation, !0;
|
|
1449
|
+
if (t instanceof HTMLImageElement) {
|
|
1450
|
+
d.transformation.actions.forEach(function(g, v) {
|
|
1451
|
+
g instanceof rt && g.getActionTag() === "responsive" && delete d.transformation.actions[v];
|
|
1452
|
+
});
|
|
1453
|
+
var m = Ge(i, { placeholder: !0 });
|
|
1454
|
+
return t.src = d.toURL(m), t.onerror = function() {
|
|
1455
|
+
t.src = Mr;
|
|
1456
|
+
}, new Promise(function(g) {
|
|
1457
|
+
t.onload = function() {
|
|
1458
|
+
g();
|
|
1459
|
+
};
|
|
1460
|
+
}).then(function() {
|
|
1461
|
+
return new Promise(function(g) {
|
|
1462
|
+
o.cleanupCallbacks.push(function() {
|
|
1463
|
+
t.src = Mr, g("canceled");
|
|
1464
|
+
});
|
|
1465
|
+
var v = new Image();
|
|
1466
|
+
v.src = r.toURL(m), v.onload = function() {
|
|
1467
|
+
g({ placeholder: !0 });
|
|
1468
|
+
}, v.onerror = function() {
|
|
1469
|
+
g({ placeholder: !0 });
|
|
1470
|
+
};
|
|
1471
|
+
});
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
function Me(e) {
|
|
1476
|
+
e.cleanupCallbacks.forEach(function(t) {
|
|
1477
|
+
t();
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
po || ho || Function("return this")();
|
|
1481
|
+
var Ke = function(e, t) {
|
|
1482
|
+
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
|
|
1483
|
+
r.__proto__ = o;
|
|
1484
|
+
} || function(r, o) {
|
|
1485
|
+
for (var i in o) Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
|
|
1486
|
+
}, Ke(e, t);
|
|
1487
|
+
};
|
|
1488
|
+
function yn(e, t) {
|
|
1489
|
+
if (typeof t != "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1490
|
+
function r() {
|
|
1491
|
+
this.constructor = e;
|
|
1492
|
+
}
|
|
1493
|
+
Ke(e, t), e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1494
|
+
}
|
|
1495
|
+
var fe = function() {
|
|
1496
|
+
return fe = Object.assign || function(e) {
|
|
1497
|
+
for (var t, r = 1, o = arguments.length; r < o; r++) for (var i in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
1498
|
+
return e;
|
|
1499
|
+
}, fe.apply(this, arguments);
|
|
1500
|
+
};
|
|
1501
|
+
function gn(e, t) {
|
|
1502
|
+
var r = {};
|
|
1503
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
|
|
1504
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
1505
|
+
var i = 0;
|
|
1506
|
+
for (o = Object.getOwnPropertySymbols(e); i < o.length; i++) t.indexOf(o[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[i]) && (r[o[i]] = e[o[i]]);
|
|
1507
|
+
}
|
|
1508
|
+
return r;
|
|
1509
|
+
}
|
|
1510
|
+
var pe = { exports: {} }, A = {}, Fr = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, bo = Object.prototype.propertyIsEnumerable, mn = function() {
|
|
1511
|
+
try {
|
|
1512
|
+
if (!Object.assign) return !1;
|
|
1513
|
+
var e = new String("abc");
|
|
1514
|
+
if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") return !1;
|
|
1515
|
+
for (var t = {}, r = 0; r < 10; r++) t["_" + String.fromCharCode(r)] = r;
|
|
1516
|
+
var o = Object.getOwnPropertyNames(t).map(function(u) {
|
|
1517
|
+
return t[u];
|
|
1518
|
+
});
|
|
1519
|
+
if (o.join("") !== "0123456789") return !1;
|
|
1520
|
+
var i = {};
|
|
1521
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
1522
|
+
i[u] = u;
|
|
1523
|
+
}), Object.keys(Object.assign({}, i)).join("") === "abcdefghijklmnopqrst";
|
|
1524
|
+
} catch {
|
|
1525
|
+
return !1;
|
|
1526
|
+
}
|
|
1527
|
+
}() ? Object.assign : function(e, t) {
|
|
1528
|
+
for (var r, o, i = function(m) {
|
|
1529
|
+
if (m == null) throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
1530
|
+
return Object(m);
|
|
1531
|
+
}(e), u = 1; u < arguments.length; u++) {
|
|
1532
|
+
for (var p in r = Object(arguments[u])) _o.call(r, p) && (i[p] = r[p]);
|
|
1533
|
+
if (Fr) {
|
|
1534
|
+
o = Fr(r);
|
|
1535
|
+
for (var d = 0; d < o.length; d++) bo.call(r, o[d]) && (i[o[d]] = r[o[d]]);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
return i;
|
|
1539
|
+
}, dr = mn, nt = typeof Symbol == "function" && Symbol.for, ye = nt ? Symbol.for("react.element") : 60103, wo = nt ? Symbol.for("react.portal") : 60106, So = nt ? Symbol.for("react.fragment") : 60107, xo = nt ? Symbol.for("react.strict_mode") : 60108, jo = nt ? Symbol.for("react.profiler") : 60114, Oo = nt ? Symbol.for("react.provider") : 60109, ko = nt ? Symbol.for("react.context") : 60110, $o = nt ? Symbol.for("react.forward_ref") : 60112, Co = nt ? Symbol.for("react.suspense") : 60113, Ao = nt ? Symbol.for("react.memo") : 60115, Eo = nt ? Symbol.for("react.lazy") : 60116, Ir = typeof Symbol == "function" && Symbol.iterator;
|
|
1540
|
+
/** @license React v16.14.0
|
|
1541
|
+
* react.production.min.js
|
|
1542
|
+
*
|
|
1543
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1544
|
+
*
|
|
1545
|
+
* This source code is licensed under the MIT license found in the
|
|
1546
|
+
* LICENSE file in the root directory of this source tree.
|
|
1547
|
+
*/
|
|
1548
|
+
function de(e) {
|
|
1549
|
+
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, r = 1; r < arguments.length; r++) t += "&args[]=" + encodeURIComponent(arguments[r]);
|
|
1550
|
+
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
1551
|
+
}
|
|
1552
|
+
var vn = { isMounted: function() {
|
|
1553
|
+
return !1;
|
|
1554
|
+
}, enqueueForceUpdate: function() {
|
|
1555
|
+
}, enqueueReplaceState: function() {
|
|
1556
|
+
}, enqueueSetState: function() {
|
|
1557
|
+
} }, _n = {};
|
|
1558
|
+
function Nt(e, t, r) {
|
|
1559
|
+
this.props = e, this.context = t, this.refs = _n, this.updater = r || vn;
|
|
1560
|
+
}
|
|
1561
|
+
function bn() {
|
|
1562
|
+
}
|
|
1563
|
+
function hr(e, t, r) {
|
|
1564
|
+
this.props = e, this.context = t, this.refs = _n, this.updater = r || vn;
|
|
1565
|
+
}
|
|
1566
|
+
Nt.prototype.isReactComponent = {}, Nt.prototype.setState = function(e, t) {
|
|
1567
|
+
if (typeof e != "object" && typeof e != "function" && e != null) throw Error(de(85));
|
|
1568
|
+
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1569
|
+
}, Nt.prototype.forceUpdate = function(e) {
|
|
1570
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1571
|
+
}, bn.prototype = Nt.prototype;
|
|
1572
|
+
var Ne = hr.prototype = new bn();
|
|
1573
|
+
Ne.constructor = hr, dr(Ne, Nt.prototype), Ne.isPureReactComponent = !0;
|
|
1574
|
+
var yr = { current: null }, wn = Object.prototype.hasOwnProperty, Sn = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1575
|
+
function qr(e, t, r) {
|
|
1576
|
+
var o, i = {}, u = null, p = null;
|
|
1577
|
+
if (t != null) for (o in t.ref !== void 0 && (p = t.ref), t.key !== void 0 && (u = "" + t.key), t) wn.call(t, o) && !Sn.hasOwnProperty(o) && (i[o] = t[o]);
|
|
1578
|
+
var d = arguments.length - 2;
|
|
1579
|
+
if (d === 1) i.children = r;
|
|
1580
|
+
else if (1 < d) {
|
|
1581
|
+
for (var m = Array(d), g = 0; g < d; g++) m[g] = arguments[g + 2];
|
|
1582
|
+
i.children = m;
|
|
1583
|
+
}
|
|
1584
|
+
if (e && e.defaultProps) for (o in d = e.defaultProps) i[o] === void 0 && (i[o] = d[o]);
|
|
1585
|
+
return { $$typeof: ye, type: e, key: u, ref: p, props: i, _owner: yr.current };
|
|
1586
|
+
}
|
|
1587
|
+
function Ze(e) {
|
|
1588
|
+
return typeof e == "object" && e !== null && e.$$typeof === ye;
|
|
1589
|
+
}
|
|
1590
|
+
var xn = /\/+/g, Ve = [];
|
|
1591
|
+
function jn(e, t, r, o) {
|
|
1592
|
+
if (Ve.length) {
|
|
1593
|
+
var i = Ve.pop();
|
|
1594
|
+
return i.result = e, i.keyPrefix = t, i.func = r, i.context = o, i.count = 0, i;
|
|
1595
|
+
}
|
|
1596
|
+
return { result: e, keyPrefix: t, func: r, context: o, count: 0 };
|
|
1597
|
+
}
|
|
1598
|
+
function On(e) {
|
|
1599
|
+
e.result = null, e.keyPrefix = null, e.func = null, e.context = null, e.count = 0, 10 > Ve.length && Ve.push(e);
|
|
1600
|
+
}
|
|
1601
|
+
function tr(e, t, r, o) {
|
|
1602
|
+
var i = typeof e;
|
|
1603
|
+
i !== "undefined" && i !== "boolean" || (e = null);
|
|
1604
|
+
var u = !1;
|
|
1605
|
+
if (e === null) u = !0;
|
|
1606
|
+
else switch (i) {
|
|
1607
|
+
case "string":
|
|
1608
|
+
case "number":
|
|
1609
|
+
u = !0;
|
|
1610
|
+
break;
|
|
1611
|
+
case "object":
|
|
1612
|
+
switch (e.$$typeof) {
|
|
1613
|
+
case ye:
|
|
1614
|
+
case wo:
|
|
1615
|
+
u = !0;
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
if (u) return r(o, e, t === "" ? "." + Je(e, 0) : t), 1;
|
|
1619
|
+
if (u = 0, t = t === "" ? "." : t + ":", Array.isArray(e)) for (var p = 0; p < e.length; p++) {
|
|
1620
|
+
var d = t + Je(i = e[p], p);
|
|
1621
|
+
u += tr(i, d, r, o);
|
|
1622
|
+
}
|
|
1623
|
+
else if (e === null || typeof e != "object" ? d = null : d = typeof (d = Ir && e[Ir] || e["@@iterator"]) == "function" ? d : null, typeof d == "function") for (e = d.call(e), p = 0; !(i = e.next()).done; ) u += tr(i = i.value, d = t + Je(i, p++), r, o);
|
|
1624
|
+
else if (i === "object") throw r = "" + e, Error(de(31, r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r, ""));
|
|
1625
|
+
return u;
|
|
1626
|
+
}
|
|
1627
|
+
function er(e, t, r) {
|
|
1628
|
+
return e == null ? 0 : tr(e, "", t, r);
|
|
1629
|
+
}
|
|
1630
|
+
function Je(e, t) {
|
|
1631
|
+
return typeof e == "object" && e !== null && e.key != null ? function(r) {
|
|
1632
|
+
var o = { "=": "=0", ":": "=2" };
|
|
1633
|
+
return "$" + ("" + r).replace(/[=:]/g, function(i) {
|
|
1634
|
+
return o[i];
|
|
1635
|
+
});
|
|
1636
|
+
}(e.key) : t.toString(36);
|
|
1637
|
+
}
|
|
1638
|
+
function Ro(e, t) {
|
|
1639
|
+
e.func.call(e.context, t, e.count++);
|
|
1640
|
+
}
|
|
1641
|
+
function To(e, t, r) {
|
|
1642
|
+
var o = e.result, i = e.keyPrefix;
|
|
1643
|
+
e = e.func.call(e.context, t, e.count++), Array.isArray(e) ? rr(e, o, r, function(u) {
|
|
1644
|
+
return u;
|
|
1645
|
+
}) : e != null && (Ze(e) && (e = function(u, p) {
|
|
1646
|
+
return { $$typeof: ye, type: u.type, key: p, ref: u.ref, props: u.props, _owner: u._owner };
|
|
1647
|
+
}(e, i + (!e.key || t && t.key === e.key ? "" : ("" + e.key).replace(xn, "$&/") + "/") + r)), o.push(e));
|
|
1648
|
+
}
|
|
1649
|
+
function rr(e, t, r, o, i) {
|
|
1650
|
+
var u = "";
|
|
1651
|
+
r != null && (u = ("" + r).replace(xn, "$&/") + "/"), er(e, To, t = jn(t, u, o, i)), On(t);
|
|
1652
|
+
}
|
|
1653
|
+
var kn = { current: null };
|
|
1654
|
+
function ht() {
|
|
1655
|
+
var e = kn.current;
|
|
1656
|
+
if (e === null) throw Error(de(321));
|
|
1657
|
+
return e;
|
|
1658
|
+
}
|
|
1659
|
+
var Po = { ReactCurrentDispatcher: kn, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: yr, IsSomeRendererActing: { current: !1 }, assign: dr };
|
|
1660
|
+
A.Children = { map: function(e, t, r) {
|
|
1661
|
+
if (e == null) return e;
|
|
1662
|
+
var o = [];
|
|
1663
|
+
return rr(e, o, null, t, r), o;
|
|
1664
|
+
}, forEach: function(e, t, r) {
|
|
1665
|
+
if (e == null) return e;
|
|
1666
|
+
er(e, Ro, t = jn(null, null, t, r)), On(t);
|
|
1667
|
+
}, count: function(e) {
|
|
1668
|
+
return er(e, function() {
|
|
1669
|
+
return null;
|
|
1670
|
+
}, null);
|
|
1671
|
+
}, toArray: function(e) {
|
|
1672
|
+
var t = [];
|
|
1673
|
+
return rr(e, t, null, function(r) {
|
|
1674
|
+
return r;
|
|
1675
|
+
}), t;
|
|
1676
|
+
}, only: function(e) {
|
|
1677
|
+
if (!Ze(e)) throw Error(de(143));
|
|
1678
|
+
return e;
|
|
1679
|
+
} }, A.Component = Nt, A.Fragment = So, A.Profiler = jo, A.PureComponent = hr, A.StrictMode = xo, A.Suspense = Co, A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Po, A.cloneElement = function(e, t, r) {
|
|
1680
|
+
if (e == null) throw Error(de(267, e));
|
|
1681
|
+
var o = dr({}, e.props), i = e.key, u = e.ref, p = e._owner;
|
|
1682
|
+
if (t != null) {
|
|
1683
|
+
if (t.ref !== void 0 && (u = t.ref, p = yr.current), t.key !== void 0 && (i = "" + t.key), e.type && e.type.defaultProps) var d = e.type.defaultProps;
|
|
1684
|
+
for (m in t) wn.call(t, m) && !Sn.hasOwnProperty(m) && (o[m] = t[m] === void 0 && d !== void 0 ? d[m] : t[m]);
|
|
1685
|
+
}
|
|
1686
|
+
var m = arguments.length - 2;
|
|
1687
|
+
if (m === 1) o.children = r;
|
|
1688
|
+
else if (1 < m) {
|
|
1689
|
+
d = Array(m);
|
|
1690
|
+
for (var g = 0; g < m; g++) d[g] = arguments[g + 2];
|
|
1691
|
+
o.children = d;
|
|
1692
|
+
}
|
|
1693
|
+
return { $$typeof: ye, type: e.type, key: i, ref: u, props: o, _owner: p };
|
|
1694
|
+
}, A.createContext = function(e, t) {
|
|
1695
|
+
return t === void 0 && (t = null), (e = { $$typeof: ko, _calculateChangedBits: t, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: Oo, _context: e }, e.Consumer = e;
|
|
1696
|
+
}, A.createElement = qr, A.createFactory = function(e) {
|
|
1697
|
+
var t = qr.bind(null, e);
|
|
1698
|
+
return t.type = e, t;
|
|
1699
|
+
}, A.createRef = function() {
|
|
1700
|
+
return { current: null };
|
|
1701
|
+
}, A.forwardRef = function(e) {
|
|
1702
|
+
return { $$typeof: $o, render: e };
|
|
1703
|
+
}, A.isValidElement = Ze, A.lazy = function(e) {
|
|
1704
|
+
return { $$typeof: Eo, _ctor: e, _status: -1, _result: null };
|
|
1705
|
+
}, A.memo = function(e, t) {
|
|
1706
|
+
return { $$typeof: Ao, type: e, compare: t === void 0 ? null : t };
|
|
1707
|
+
}, A.useCallback = function(e, t) {
|
|
1708
|
+
return ht().useCallback(e, t);
|
|
1709
|
+
}, A.useContext = function(e, t) {
|
|
1710
|
+
return ht().useContext(e, t);
|
|
1711
|
+
}, A.useDebugValue = function() {
|
|
1712
|
+
}, A.useEffect = function(e, t) {
|
|
1713
|
+
return ht().useEffect(e, t);
|
|
1714
|
+
}, A.useImperativeHandle = function(e, t, r) {
|
|
1715
|
+
return ht().useImperativeHandle(e, t, r);
|
|
1716
|
+
}, A.useLayoutEffect = function(e, t) {
|
|
1717
|
+
return ht().useLayoutEffect(e, t);
|
|
1718
|
+
}, A.useMemo = function(e, t) {
|
|
1719
|
+
return ht().useMemo(e, t);
|
|
1720
|
+
}, A.useReducer = function(e, t, r) {
|
|
1721
|
+
return ht().useReducer(e, t, r);
|
|
1722
|
+
}, A.useRef = function(e) {
|
|
1723
|
+
return ht().useRef(e);
|
|
1724
|
+
}, A.useState = function(e) {
|
|
1725
|
+
return ht().useState(e);
|
|
1726
|
+
}, A.version = "16.14.0";
|
|
1727
|
+
var C = {}, Mo = Function.call.bind(Object.prototype.hasOwnProperty), nr = function() {
|
|
1728
|
+
};
|
|
1729
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1730
|
+
var Vo = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", or = {}, Lo = Mo;
|
|
1731
|
+
nr = function(e) {
|
|
1732
|
+
var t = "Warning: " + e;
|
|
1733
|
+
typeof console < "u" && console.error(t);
|
|
1734
|
+
try {
|
|
1735
|
+
throw new Error(t);
|
|
1736
|
+
} catch {
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
function $n(e, t, r, o, i) {
|
|
1741
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1742
|
+
for (var u in e) if (Lo(e, u)) {
|
|
1743
|
+
var p;
|
|
1744
|
+
try {
|
|
1745
|
+
if (typeof e[u] != "function") {
|
|
1746
|
+
var d = Error((o || "React class") + ": " + r + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1747
|
+
throw d.name = "Invariant Violation", d;
|
|
1748
|
+
}
|
|
1749
|
+
p = e[u](t, u, o, r, null, Vo);
|
|
1750
|
+
} catch (g) {
|
|
1751
|
+
p = g;
|
|
1752
|
+
}
|
|
1753
|
+
if (!p || p instanceof Error || nr((o || "React class") + ": type specification of " + r + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), p instanceof Error && !(p.message in or)) {
|
|
1754
|
+
or[p.message] = !0;
|
|
1755
|
+
var m = i ? i() : "";
|
|
1756
|
+
nr("Failed " + r + " type: " + p.message + (m ?? ""));
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
$n.resetWarningCache = function() {
|
|
1762
|
+
process.env.NODE_ENV !== "production" && (or = {});
|
|
1763
|
+
};
|
|
1764
|
+
var Fo = $n;
|
|
1765
|
+
/** @license React v16.14.0
|
|
1766
|
+
* react.development.js
|
|
1767
|
+
*
|
|
1768
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1769
|
+
*
|
|
1770
|
+
* This source code is licensed under the MIT license found in the
|
|
1771
|
+
* LICENSE file in the root directory of this source tree.
|
|
1772
|
+
*/
|
|
1773
|
+
process.env.NODE_ENV !== "production" && function() {
|
|
1774
|
+
var e = mn, t = Fo, r = typeof Symbol == "function" && Symbol.for, o = r ? Symbol.for("react.element") : 60103, i = r ? Symbol.for("react.portal") : 60106, u = r ? Symbol.for("react.fragment") : 60107, p = r ? Symbol.for("react.strict_mode") : 60108, d = r ? Symbol.for("react.profiler") : 60114, m = r ? Symbol.for("react.provider") : 60109, g = r ? Symbol.for("react.context") : 60110, v = r ? Symbol.for("react.concurrent_mode") : 60111, U = r ? Symbol.for("react.forward_ref") : 60112, ot = r ? Symbol.for("react.suspense") : 60113, yt = r ? Symbol.for("react.suspense_list") : 60120, H = r ? Symbol.for("react.memo") : 60115, Ot = r ? Symbol.for("react.lazy") : 60116, Bt = r ? Symbol.for("react.block") : 60121, Ht = r ? Symbol.for("react.fundamental") : 60117, ge = r ? Symbol.for("react.responder") : 60118, kt = r ? Symbol.for("react.scope") : 60119, Gt = typeof Symbol == "function" && Symbol.iterator;
|
|
1775
|
+
function Yt(n) {
|
|
1776
|
+
if (n === null || typeof n != "object") return null;
|
|
1777
|
+
var s = Gt && n[Gt] || n["@@iterator"];
|
|
1778
|
+
return typeof s == "function" ? s : null;
|
|
1779
|
+
}
|
|
1780
|
+
var Xt = { current: null }, G = { current: null }, $t = /^(.*)[\\\/]/;
|
|
1781
|
+
function N(n) {
|
|
1782
|
+
if (n == null) return null;
|
|
1783
|
+
if (typeof n.tag == "number" && R("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof n == "function") return n.displayName || n.name || null;
|
|
1784
|
+
if (typeof n == "string") return n;
|
|
1785
|
+
switch (n) {
|
|
1786
|
+
case u:
|
|
1787
|
+
return "Fragment";
|
|
1788
|
+
case i:
|
|
1789
|
+
return "Portal";
|
|
1790
|
+
case d:
|
|
1791
|
+
return "Profiler";
|
|
1792
|
+
case p:
|
|
1793
|
+
return "StrictMode";
|
|
1794
|
+
case ot:
|
|
1795
|
+
return "Suspense";
|
|
1796
|
+
case yt:
|
|
1797
|
+
return "SuspenseList";
|
|
1798
|
+
}
|
|
1799
|
+
if (typeof n == "object") switch (n.$$typeof) {
|
|
1800
|
+
case g:
|
|
1801
|
+
return "Context.Consumer";
|
|
1802
|
+
case m:
|
|
1803
|
+
return "Context.Provider";
|
|
1804
|
+
case U:
|
|
1805
|
+
return f = n, h = n.render, b = "ForwardRef", _ = h.displayName || h.name || "", f.displayName || (_ !== "" ? b + "(" + _ + ")" : b);
|
|
1806
|
+
case H:
|
|
1807
|
+
return N(n.type);
|
|
1808
|
+
case Bt:
|
|
1809
|
+
return N(n.render);
|
|
1810
|
+
case Ot:
|
|
1811
|
+
var s = (l = n)._status === 1 ? l._result : null;
|
|
1812
|
+
if (s) return N(s);
|
|
1813
|
+
}
|
|
1814
|
+
var l, f, h, b, _;
|
|
1815
|
+
return null;
|
|
1816
|
+
}
|
|
1817
|
+
var st = {}, gt = null;
|
|
1818
|
+
function ut(n) {
|
|
1819
|
+
gt = n;
|
|
1820
|
+
}
|
|
1821
|
+
st.getCurrentStack = null, st.getStackAddendum = function() {
|
|
1822
|
+
var n = "";
|
|
1823
|
+
if (gt) {
|
|
1824
|
+
var s = N(gt.type), l = gt._owner;
|
|
1825
|
+
n += function(h, b, _) {
|
|
1826
|
+
var O = "";
|
|
1827
|
+
if (b) {
|
|
1828
|
+
var I = b.fileName, x = I.replace($t, "");
|
|
1829
|
+
if (/^index\./.test(x)) {
|
|
1830
|
+
var M = I.match($t);
|
|
1831
|
+
if (M) {
|
|
1832
|
+
var P = M[1];
|
|
1833
|
+
P && (x = P.replace($t, "") + "/" + x);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
O = " (at " + x + ":" + b.lineNumber + ")";
|
|
1837
|
+
} else _ && (O = " (created by " + _ + ")");
|
|
1838
|
+
return `
|
|
1839
|
+
in ` + (h || "Unknown") + O;
|
|
1840
|
+
}(s, gt._source, l && N(l.type));
|
|
1841
|
+
}
|
|
1842
|
+
var f = st.getCurrentStack;
|
|
1843
|
+
return f && (n += f() || ""), n;
|
|
1844
|
+
};
|
|
1845
|
+
var Kt = { ReactCurrentDispatcher: Xt, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: G, IsSomeRendererActing: { current: !1 }, assign: e };
|
|
1846
|
+
function Ct(n) {
|
|
1847
|
+
for (var s = arguments.length, l = new Array(s > 1 ? s - 1 : 0), f = 1; f < s; f++) l[f - 1] = arguments[f];
|
|
1848
|
+
$("warn", n, l);
|
|
1849
|
+
}
|
|
1850
|
+
function R(n) {
|
|
1851
|
+
for (var s = arguments.length, l = new Array(s > 1 ? s - 1 : 0), f = 1; f < s; f++) l[f - 1] = arguments[f];
|
|
1852
|
+
$("error", n, l);
|
|
1853
|
+
}
|
|
1854
|
+
function $(n, s, l) {
|
|
1855
|
+
if (!(l.length > 0 && typeof l[l.length - 1] == "string" && l[l.length - 1].indexOf(`
|
|
1856
|
+
in`) === 0)) {
|
|
1857
|
+
var f = Kt.ReactDebugCurrentFrame.getStackAddendum();
|
|
1858
|
+
f !== "" && (s += "%s", l = l.concat([f]));
|
|
1859
|
+
}
|
|
1860
|
+
var h = l.map(function(O) {
|
|
1861
|
+
return "" + O;
|
|
1862
|
+
});
|
|
1863
|
+
h.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, h);
|
|
1864
|
+
try {
|
|
1865
|
+
var b = 0, _ = "Warning: " + s.replace(/%s/g, function() {
|
|
1866
|
+
return l[b++];
|
|
1867
|
+
});
|
|
1868
|
+
throw new Error(_);
|
|
1869
|
+
} catch {
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
e(Kt, { ReactDebugCurrentFrame: st, ReactComponentTreeHook: {} });
|
|
1873
|
+
var me = {};
|
|
1874
|
+
function Zt(n, s) {
|
|
1875
|
+
var l = n.constructor, f = l && (l.displayName || l.name) || "ReactClass", h = f + "." + s;
|
|
1876
|
+
me[h] || (R("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", s, f), me[h] = !0);
|
|
1877
|
+
}
|
|
1878
|
+
var Y = { isMounted: function(n) {
|
|
1879
|
+
return !1;
|
|
1880
|
+
}, enqueueForceUpdate: function(n, s, l) {
|
|
1881
|
+
Zt(n, "forceUpdate");
|
|
1882
|
+
}, enqueueReplaceState: function(n, s, l, f) {
|
|
1883
|
+
Zt(n, "replaceState");
|
|
1884
|
+
}, enqueueSetState: function(n, s, l, f) {
|
|
1885
|
+
Zt(n, "setState");
|
|
1886
|
+
} }, At = {};
|
|
1887
|
+
function it(n, s, l) {
|
|
1888
|
+
this.props = n, this.context = s, this.refs = At, this.updater = l || Y;
|
|
1889
|
+
}
|
|
1890
|
+
Object.freeze(At), it.prototype.isReactComponent = {}, it.prototype.setState = function(n, s) {
|
|
1891
|
+
if (typeof n != "object" && typeof n != "function" && n != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1892
|
+
this.updater.enqueueSetState(this, n, s, "setState");
|
|
1893
|
+
}, it.prototype.forceUpdate = function(n) {
|
|
1894
|
+
this.updater.enqueueForceUpdate(this, n, "forceUpdate");
|
|
1895
|
+
};
|
|
1896
|
+
var te = { isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] }, Ie = function(n, s) {
|
|
1897
|
+
Object.defineProperty(it.prototype, n, { get: function() {
|
|
1898
|
+
Ct("%s(...) is deprecated in plain JavaScript React classes. %s", s[0], s[1]);
|
|
1899
|
+
} });
|
|
1900
|
+
};
|
|
1901
|
+
for (var ee in te) te.hasOwnProperty(ee) && Ie(ee, te[ee]);
|
|
1902
|
+
function re() {
|
|
1903
|
+
}
|
|
1904
|
+
function Et(n, s, l) {
|
|
1905
|
+
this.props = n, this.context = s, this.refs = At, this.updater = l || Y;
|
|
1906
|
+
}
|
|
1907
|
+
re.prototype = it.prototype;
|
|
1908
|
+
var Rt = Et.prototype = new re();
|
|
1909
|
+
Rt.constructor = Et, e(Rt, it.prototype), Rt.isPureReactComponent = !0;
|
|
1910
|
+
var Tt, ne, Pt, Mt = Object.prototype.hasOwnProperty, ve = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1911
|
+
function St(n) {
|
|
1912
|
+
if (Mt.call(n, "ref")) {
|
|
1913
|
+
var s = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
1914
|
+
if (s && s.isReactWarning) return !1;
|
|
1915
|
+
}
|
|
1916
|
+
return n.ref !== void 0;
|
|
1917
|
+
}
|
|
1918
|
+
function Vt(n) {
|
|
1919
|
+
if (Mt.call(n, "key")) {
|
|
1920
|
+
var s = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
1921
|
+
if (s && s.isReactWarning) return !1;
|
|
1922
|
+
}
|
|
1923
|
+
return n.key !== void 0;
|
|
1924
|
+
}
|
|
1925
|
+
Pt = {};
|
|
1926
|
+
var Lt = function(n, s, l, f, h, b, _) {
|
|
1927
|
+
var O = { $$typeof: o, type: n, key: s, ref: l, props: _, _owner: b, _store: {} };
|
|
1928
|
+
return Object.defineProperty(O._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(O, "_self", { configurable: !1, enumerable: !1, writable: !1, value: f }), Object.defineProperty(O, "_source", { configurable: !1, enumerable: !1, writable: !1, value: h }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
|
|
1929
|
+
};
|
|
1930
|
+
function _e(n, s, l) {
|
|
1931
|
+
var f, h = {}, b = null, _ = null, O = null, I = null;
|
|
1932
|
+
if (s != null) for (f in St(s) && (_ = s.ref, function(V) {
|
|
1933
|
+
if (typeof V.ref == "string" && G.current && V.__self && G.current.stateNode !== V.__self) {
|
|
1934
|
+
var X = N(G.current.type);
|
|
1935
|
+
Pt[X] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref', N(G.current.type), V.ref), Pt[X] = !0);
|
|
1936
|
+
}
|
|
1937
|
+
}(s)), Vt(s) && (b = "" + s.key), O = s.__self === void 0 ? null : s.__self, I = s.__source === void 0 ? null : s.__source, s) Mt.call(s, f) && !ve.hasOwnProperty(f) && (h[f] = s[f]);
|
|
1938
|
+
var x = arguments.length - 2;
|
|
1939
|
+
if (x === 1) h.children = l;
|
|
1940
|
+
else if (x > 1) {
|
|
1941
|
+
for (var M = Array(x), P = 0; P < x; P++) M[P] = arguments[P + 2];
|
|
1942
|
+
Object.freeze && Object.freeze(M), h.children = M;
|
|
1943
|
+
}
|
|
1944
|
+
if (n && n.defaultProps) {
|
|
1945
|
+
var F = n.defaultProps;
|
|
1946
|
+
for (f in F) h[f] === void 0 && (h[f] = F[f]);
|
|
1947
|
+
}
|
|
1948
|
+
if (b || _) {
|
|
1949
|
+
var Q = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
1950
|
+
b && function(V, X) {
|
|
1951
|
+
var xt = function() {
|
|
1952
|
+
Tt || (Tt = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", X));
|
|
1953
|
+
};
|
|
1954
|
+
xt.isReactWarning = !0, Object.defineProperty(V, "key", { get: xt, configurable: !0 });
|
|
1955
|
+
}(h, Q), _ && function(V, X) {
|
|
1956
|
+
var xt = function() {
|
|
1957
|
+
ne || (ne = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", X));
|
|
1958
|
+
};
|
|
1959
|
+
xt.isReactWarning = !0, Object.defineProperty(V, "ref", { get: xt, configurable: !0 });
|
|
1960
|
+
}(h, Q);
|
|
1961
|
+
}
|
|
1962
|
+
return Lt(n, b, _, O, I, G.current, h);
|
|
1963
|
+
}
|
|
1964
|
+
function at(n, s, l) {
|
|
1965
|
+
if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
|
|
1966
|
+
var f, h, b = e({}, n.props), _ = n.key, O = n.ref, I = n._self, x = n._source, M = n._owner;
|
|
1967
|
+
if (s != null) for (f in St(s) && (O = s.ref, M = G.current), Vt(s) && (_ = "" + s.key), n.type && n.type.defaultProps && (h = n.type.defaultProps), s) Mt.call(s, f) && !ve.hasOwnProperty(f) && (s[f] === void 0 && h !== void 0 ? b[f] = h[f] : b[f] = s[f]);
|
|
1968
|
+
var P = arguments.length - 2;
|
|
1969
|
+
if (P === 1) b.children = l;
|
|
1970
|
+
else if (P > 1) {
|
|
1971
|
+
for (var F = Array(P), Q = 0; Q < P; Q++) F[Q] = arguments[Q + 2];
|
|
1972
|
+
b.children = F;
|
|
1973
|
+
}
|
|
1974
|
+
return Lt(n.type, _, O, I, x, M, b);
|
|
1975
|
+
}
|
|
1976
|
+
function Z(n) {
|
|
1977
|
+
return typeof n == "object" && n !== null && n.$$typeof === o;
|
|
1978
|
+
}
|
|
1979
|
+
var be = !1, we = /\/+/g;
|
|
1980
|
+
function oe(n) {
|
|
1981
|
+
return ("" + n).replace(we, "$&/");
|
|
1982
|
+
}
|
|
1983
|
+
var Ft, It = [];
|
|
1984
|
+
function Se(n, s, l, f) {
|
|
1985
|
+
if (It.length) {
|
|
1986
|
+
var h = It.pop();
|
|
1987
|
+
return h.result = n, h.keyPrefix = s, h.func = l, h.context = f, h.count = 0, h;
|
|
1988
|
+
}
|
|
1989
|
+
return { result: n, keyPrefix: s, func: l, context: f, count: 0 };
|
|
1990
|
+
}
|
|
1991
|
+
function xe(n) {
|
|
1992
|
+
n.result = null, n.keyPrefix = null, n.func = null, n.context = null, n.count = 0, It.length < 10 && It.push(n);
|
|
1993
|
+
}
|
|
1994
|
+
function ie(n, s, l, f) {
|
|
1995
|
+
var h = typeof n;
|
|
1996
|
+
h !== "undefined" && h !== "boolean" || (n = null);
|
|
1997
|
+
var b, _ = !1;
|
|
1998
|
+
if (n === null) _ = !0;
|
|
1999
|
+
else switch (h) {
|
|
2000
|
+
case "string":
|
|
2001
|
+
case "number":
|
|
2002
|
+
_ = !0;
|
|
2003
|
+
break;
|
|
2004
|
+
case "object":
|
|
2005
|
+
switch (n.$$typeof) {
|
|
2006
|
+
case o:
|
|
2007
|
+
case i:
|
|
2008
|
+
_ = !0;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
if (_) return l(f, n, s === "" ? "." + ae(n, 0) : s), 1;
|
|
2012
|
+
var O = 0, I = s === "" ? "." : s + ":";
|
|
2013
|
+
if (Array.isArray(n)) for (var x = 0; x < n.length; x++) O += ie(b = n[x], I + ae(b, x), l, f);
|
|
2014
|
+
else {
|
|
2015
|
+
var M = Yt(n);
|
|
2016
|
+
if (typeof M == "function") {
|
|
2017
|
+
M === n.entries && (be || Ct("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."), be = !0);
|
|
2018
|
+
for (var P, F = M.call(n), Q = 0; !(P = F.next()).done; ) O += ie(b = P.value, I + ae(b, Q++), l, f);
|
|
2019
|
+
} else if (h === "object") {
|
|
2020
|
+
var V;
|
|
2021
|
+
V = " If you meant to render a collection of children, use an array instead." + st.getStackAddendum();
|
|
2022
|
+
var X = "" + n;
|
|
2023
|
+
throw Error("Objects are not valid as a React child (found: " + (X === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : X) + ")." + V);
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
return O;
|
|
2027
|
+
}
|
|
2028
|
+
function qt(n, s, l) {
|
|
2029
|
+
return n == null ? 0 : ie(n, "", s, l);
|
|
2030
|
+
}
|
|
2031
|
+
function ae(n, s) {
|
|
2032
|
+
return typeof n == "object" && n !== null && n.key != null ? (l = n.key, f = { "=": "=0", ":": "=2" }, "$" + ("" + l).replace(/[=:]/g, function(h) {
|
|
2033
|
+
return f[h];
|
|
2034
|
+
})) : s.toString(36);
|
|
2035
|
+
var l, f;
|
|
2036
|
+
}
|
|
2037
|
+
function qe(n, s, l) {
|
|
2038
|
+
var f = n.func, h = n.context;
|
|
2039
|
+
f.call(h, s, n.count++);
|
|
2040
|
+
}
|
|
2041
|
+
function se(n, s, l) {
|
|
2042
|
+
var f, h, b = n.result, _ = n.keyPrefix, O = n.func, I = n.context, x = O.call(I, s, n.count++);
|
|
2043
|
+
Array.isArray(x) ? ct(x, b, l, function(M) {
|
|
2044
|
+
return M;
|
|
2045
|
+
}) : x != null && (Z(x) && (f = x, h = _ + (!x.key || s && s.key === x.key ? "" : oe(x.key) + "/") + l, x = Lt(f.type, h, f.ref, f._self, f._source, f._owner, f.props)), b.push(x));
|
|
2046
|
+
}
|
|
2047
|
+
function ct(n, s, l, f, h) {
|
|
2048
|
+
var b = "";
|
|
2049
|
+
l != null && (b = oe(l) + "/");
|
|
2050
|
+
var _ = Se(s, b, f, h);
|
|
2051
|
+
qt(n, se, _), xe(_);
|
|
2052
|
+
}
|
|
2053
|
+
function Dt(n) {
|
|
2054
|
+
return typeof n == "string" || typeof n == "function" || n === u || n === v || n === d || n === p || n === ot || n === yt || typeof n == "object" && n !== null && (n.$$typeof === Ot || n.$$typeof === H || n.$$typeof === m || n.$$typeof === g || n.$$typeof === U || n.$$typeof === Ht || n.$$typeof === ge || n.$$typeof === kt || n.$$typeof === Bt);
|
|
2055
|
+
}
|
|
2056
|
+
function J() {
|
|
2057
|
+
var n = Xt.current;
|
|
2058
|
+
if (n === null) throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2059
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2060
|
+
2. You might be breaking the Rules of Hooks
|
|
2061
|
+
3. You might have more than one copy of React in the same app
|
|
2062
|
+
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);
|
|
2063
|
+
return n;
|
|
2064
|
+
}
|
|
2065
|
+
function Qt() {
|
|
2066
|
+
if (G.current) {
|
|
2067
|
+
var n = N(G.current.type);
|
|
2068
|
+
if (n) return `
|
|
2069
|
+
|
|
2070
|
+
Check the render method of \`` + n + "`.";
|
|
2071
|
+
}
|
|
2072
|
+
return "";
|
|
2073
|
+
}
|
|
2074
|
+
Ft = !1;
|
|
2075
|
+
var mt = {};
|
|
2076
|
+
function je(n, s) {
|
|
2077
|
+
if (n._store && !n._store.validated && n.key == null) {
|
|
2078
|
+
n._store.validated = !0;
|
|
2079
|
+
var l = function(h) {
|
|
2080
|
+
var b = Qt();
|
|
2081
|
+
if (!b) {
|
|
2082
|
+
var _ = typeof h == "string" ? h : h.displayName || h.name;
|
|
2083
|
+
_ && (b = `
|
|
2084
|
+
|
|
2085
|
+
Check the top-level render call using <` + _ + ">.");
|
|
2086
|
+
}
|
|
2087
|
+
return b;
|
|
2088
|
+
}(s);
|
|
2089
|
+
if (!mt[l]) {
|
|
2090
|
+
mt[l] = !0;
|
|
2091
|
+
var f = "";
|
|
2092
|
+
n && n._owner && n._owner !== G.current && (f = " It was passed a child from " + N(n._owner.type) + "."), ut(n), R('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.', l, f), ut(null);
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
function Oe(n, s) {
|
|
2097
|
+
if (typeof n == "object") {
|
|
2098
|
+
if (Array.isArray(n)) for (var l = 0; l < n.length; l++) {
|
|
2099
|
+
var f = n[l];
|
|
2100
|
+
Z(f) && je(f, s);
|
|
2101
|
+
}
|
|
2102
|
+
else if (Z(n)) n._store && (n._store.validated = !0);
|
|
2103
|
+
else if (n) {
|
|
2104
|
+
var h = Yt(n);
|
|
2105
|
+
if (typeof h == "function" && h !== n.entries) for (var b, _ = h.call(n); !(b = _.next()).done; ) Z(b.value) && je(b.value, s);
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
function ke(n) {
|
|
2110
|
+
var s = n.type;
|
|
2111
|
+
if (s != null && typeof s != "string") {
|
|
2112
|
+
var l, f = N(s);
|
|
2113
|
+
if (typeof s == "function") l = s.propTypes;
|
|
2114
|
+
else {
|
|
2115
|
+
if (typeof s != "object" || s.$$typeof !== U && s.$$typeof !== H) return;
|
|
2116
|
+
l = s.propTypes;
|
|
2117
|
+
}
|
|
2118
|
+
l ? (ut(n), t(l, n.props, "prop", f, st.getStackAddendum), ut(null)) : s.PropTypes === void 0 || Ft || (Ft = !0, R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown")), typeof s.getDefaultProps != "function" || s.getDefaultProps.isReactClassApproved || R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
function $e(n, s, l) {
|
|
2122
|
+
var f, h, b = Dt(n);
|
|
2123
|
+
if (!b) {
|
|
2124
|
+
var _ = "";
|
|
2125
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2126
|
+
var O, I = (f = s) != null && (h = f.__source) !== void 0 ? `
|
|
2127
|
+
|
|
2128
|
+
Check your code at ` + h.fileName.replace(/^.*[\\\/]/, "") + ":" + h.lineNumber + "." : "";
|
|
2129
|
+
_ += I || Qt(), n === null ? O = "null" : Array.isArray(n) ? O = "array" : n !== void 0 && n.$$typeof === o ? (O = "<" + (N(n.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : O = typeof n, R("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, _);
|
|
2130
|
+
}
|
|
2131
|
+
var x = _e.apply(this, arguments);
|
|
2132
|
+
if (x == null) return x;
|
|
2133
|
+
if (b) for (var M = 2; M < arguments.length; M++) Oe(arguments[M], n);
|
|
2134
|
+
return n === u ? function(P) {
|
|
2135
|
+
ut(P);
|
|
2136
|
+
for (var F = Object.keys(P.props), Q = 0; Q < F.length; Q++) {
|
|
2137
|
+
var V = F[Q];
|
|
2138
|
+
if (V !== "children" && V !== "key") {
|
|
2139
|
+
R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", V);
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
P.ref !== null && R("Invalid attribute `ref` supplied to `React.Fragment`."), ut(null);
|
|
2144
|
+
}(x) : ke(x), x;
|
|
2145
|
+
}
|
|
2146
|
+
var Ce = !1;
|
|
2147
|
+
try {
|
|
2148
|
+
var ue = Object.freeze({}), Ae = /* @__PURE__ */ new Map([[ue, null]]), lt = /* @__PURE__ */ new Set([ue]);
|
|
2149
|
+
Ae.set(0, 0), lt.add(0);
|
|
2150
|
+
} catch {
|
|
2151
|
+
}
|
|
2152
|
+
var tt = $e, vt = function(n, s, l) {
|
|
2153
|
+
for (var f = at.apply(this, arguments), h = 2; h < arguments.length; h++) Oe(arguments[h], f.type);
|
|
2154
|
+
return ke(f), f;
|
|
2155
|
+
}, _t = function(n) {
|
|
2156
|
+
var s = $e.bind(null, n);
|
|
2157
|
+
return s.type = n, Ce || (Ce = !0, Ct("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(s, "type", { enumerable: !1, get: function() {
|
|
2158
|
+
return Ct("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", { value: n }), n;
|
|
2159
|
+
} }), s;
|
|
2160
|
+
}, De = { map: function(n, s, l) {
|
|
2161
|
+
if (n == null) return n;
|
|
2162
|
+
var f = [];
|
|
2163
|
+
return ct(n, f, null, s, l), f;
|
|
2164
|
+
}, forEach: function(n, s, l) {
|
|
2165
|
+
if (n == null) return n;
|
|
2166
|
+
var f = Se(null, null, s, l);
|
|
2167
|
+
qt(n, qe, f), xe(f);
|
|
2168
|
+
}, count: function(n) {
|
|
2169
|
+
return qt(n, function() {
|
|
2170
|
+
return null;
|
|
2171
|
+
}, null);
|
|
2172
|
+
}, toArray: function(n) {
|
|
2173
|
+
var s = [];
|
|
2174
|
+
return ct(n, s, null, function(l) {
|
|
2175
|
+
return l;
|
|
2176
|
+
}), s;
|
|
2177
|
+
}, only: function(n) {
|
|
2178
|
+
if (!Z(n)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
2179
|
+
return n;
|
|
2180
|
+
} };
|
|
2181
|
+
C.Children = De, C.Component = it, C.Fragment = u, C.Profiler = d, C.PureComponent = Et, C.StrictMode = p, C.Suspense = ot, C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Kt, C.cloneElement = vt, C.createContext = function(n, s) {
|
|
2182
|
+
s === void 0 ? s = null : s !== null && typeof s != "function" && R("createContext: Expected the optional second argument to be a function. Instead received: %s", s);
|
|
2183
|
+
var l = { $$typeof: g, _calculateChangedBits: s, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null };
|
|
2184
|
+
l.Provider = { $$typeof: m, _context: l };
|
|
2185
|
+
var f = !1, h = !1, b = { $$typeof: g, _context: l, _calculateChangedBits: l._calculateChangedBits };
|
|
2186
|
+
return Object.defineProperties(b, { Provider: { get: function() {
|
|
2187
|
+
return h || (h = !0, R("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), l.Provider;
|
|
2188
|
+
}, set: function(_) {
|
|
2189
|
+
l.Provider = _;
|
|
2190
|
+
} }, _currentValue: { get: function() {
|
|
2191
|
+
return l._currentValue;
|
|
2192
|
+
}, set: function(_) {
|
|
2193
|
+
l._currentValue = _;
|
|
2194
|
+
} }, _currentValue2: { get: function() {
|
|
2195
|
+
return l._currentValue2;
|
|
2196
|
+
}, set: function(_) {
|
|
2197
|
+
l._currentValue2 = _;
|
|
2198
|
+
} }, _threadCount: { get: function() {
|
|
2199
|
+
return l._threadCount;
|
|
2200
|
+
}, set: function(_) {
|
|
2201
|
+
l._threadCount = _;
|
|
2202
|
+
} }, Consumer: { get: function() {
|
|
2203
|
+
return f || (f = !0, R("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), l.Consumer;
|
|
2204
|
+
} } }), l.Consumer = b, l._currentRenderer = null, l._currentRenderer2 = null, l;
|
|
2205
|
+
}, C.createElement = tt, C.createFactory = _t, C.createRef = function() {
|
|
2206
|
+
var n = { current: null };
|
|
2207
|
+
return Object.seal(n), n;
|
|
2208
|
+
}, C.forwardRef = function(n) {
|
|
2209
|
+
return n != null && n.$$typeof === H ? R("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof n != "function" ? R("forwardRef requires a render function but was given %s.", n === null ? "null" : typeof n) : n.length !== 0 && n.length !== 2 && R("forwardRef render functions accept exactly two parameters: props and ref. %s", n.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), n != null && (n.defaultProps == null && n.propTypes == null || R("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")), { $$typeof: U, render: n };
|
|
2210
|
+
}, C.isValidElement = Z, C.lazy = function(n) {
|
|
2211
|
+
var s, l, f = { $$typeof: Ot, _ctor: n, _status: -1, _result: null };
|
|
2212
|
+
return Object.defineProperties(f, { defaultProps: { configurable: !0, get: function() {
|
|
2213
|
+
return s;
|
|
2214
|
+
}, set: function(h) {
|
|
2215
|
+
R("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), s = h, Object.defineProperty(f, "defaultProps", { enumerable: !0 });
|
|
2216
|
+
} }, propTypes: { configurable: !0, get: function() {
|
|
2217
|
+
return l;
|
|
2218
|
+
}, set: function(h) {
|
|
2219
|
+
R("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), l = h, Object.defineProperty(f, "propTypes", { enumerable: !0 });
|
|
2220
|
+
} } }), f;
|
|
2221
|
+
}, C.memo = function(n, s) {
|
|
2222
|
+
return Dt(n) || R("memo: The first argument must be a component. Instead received: %s", n === null ? "null" : typeof n), { $$typeof: H, type: n, compare: s === void 0 ? null : s };
|
|
2223
|
+
}, C.useCallback = function(n, s) {
|
|
2224
|
+
return J().useCallback(n, s);
|
|
2225
|
+
}, C.useContext = function(n, s) {
|
|
2226
|
+
var l = J();
|
|
2227
|
+
if (s !== void 0 && R("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s", s, typeof s == "number" && Array.isArray(arguments[2]) ? `
|
|
2228
|
+
|
|
2229
|
+
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks` : ""), n._context !== void 0) {
|
|
2230
|
+
var f = n._context;
|
|
2231
|
+
f.Consumer === n ? R("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : f.Provider === n && R("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
2232
|
+
}
|
|
2233
|
+
return l.useContext(n, s);
|
|
2234
|
+
}, C.useDebugValue = function(n, s) {
|
|
2235
|
+
return J().useDebugValue(n, s);
|
|
2236
|
+
}, C.useEffect = function(n, s) {
|
|
2237
|
+
return J().useEffect(n, s);
|
|
2238
|
+
}, C.useImperativeHandle = function(n, s, l) {
|
|
2239
|
+
return J().useImperativeHandle(n, s, l);
|
|
2240
|
+
}, C.useLayoutEffect = function(n, s) {
|
|
2241
|
+
return J().useLayoutEffect(n, s);
|
|
2242
|
+
}, C.useMemo = function(n, s) {
|
|
2243
|
+
return J().useMemo(n, s);
|
|
2244
|
+
}, C.useReducer = function(n, s, l) {
|
|
2245
|
+
return J().useReducer(n, s, l);
|
|
2246
|
+
}, C.useRef = function(n) {
|
|
2247
|
+
return J().useRef(n);
|
|
2248
|
+
}, C.useState = function(n) {
|
|
2249
|
+
return J().useState(n);
|
|
2250
|
+
}, C.version = "16.14.0";
|
|
2251
|
+
}(), process.env.NODE_ENV === "production" ? pe.exports = A : pe.exports = C;
|
|
2252
|
+
var Jt = pe.exports, We = { sdkSemver: "1.13.1", techVersion: Jt.version, sdkCode: "J" }, Io = function(e) {
|
|
2253
|
+
function t(r) {
|
|
2254
|
+
var o = e.call(this, r) || this;
|
|
2255
|
+
return o.imageRef = Jt.createRef(), o;
|
|
2256
|
+
}
|
|
2257
|
+
return yn(t, e), t.prototype.componentDidMount = function() {
|
|
2258
|
+
this.htmlLayerInstance = new Pn(this.imageRef.current, this.props.cldImg, this.props.plugins, We);
|
|
2259
|
+
}, t.prototype.componentDidUpdate = function() {
|
|
2260
|
+
Me(this.htmlLayerInstance.htmlPluginState), this.htmlLayerInstance.update(this.props.cldImg, this.props.plugins, We);
|
|
2261
|
+
}, t.prototype.componentWillUnmount = function() {
|
|
2262
|
+
Me(this.htmlLayerInstance.htmlPluginState), this.htmlLayerInstance.unmount();
|
|
2263
|
+
}, t.prototype.render = function() {
|
|
2264
|
+
var r = this.props;
|
|
2265
|
+
r.cldImg, r.plugins;
|
|
2266
|
+
var o = gn(r, ["cldImg", "plugins"]);
|
|
2267
|
+
if (pr()) return Jt.createElement("img", fe({ suppressHydrationWarning: !0 }, o, { ref: this.imageRef }));
|
|
2268
|
+
var i = function(u, p, d) {
|
|
2269
|
+
var m = wt(p);
|
|
2270
|
+
if (u) for (var g = 0; g < u.length && u[g](null, m); g++) ;
|
|
2271
|
+
return m.toURL({ trackedAnalytics: d });
|
|
2272
|
+
}(this.props.plugins, this.props.cldImg, We);
|
|
2273
|
+
return Jt.createElement("img", fe({}, o, { src: i }));
|
|
2274
|
+
}, t;
|
|
2275
|
+
}(Jt.Component), qo = ["controls", "loop", "muted", "poster", "preload", "autoplay", "playsinline"];
|
|
2276
|
+
(function(e) {
|
|
2277
|
+
function t(r) {
|
|
2278
|
+
var o = e.call(this, r) || this;
|
|
2279
|
+
return o.videoRef = pe.exports.createRef(), o.attachRef = o.attachRef.bind(o), o;
|
|
2280
|
+
}
|
|
2281
|
+
yn(t, e), t.prototype.componentDidMount = function() {
|
|
2282
|
+
this.htmlVideoLayerInstance = new fo(this.videoRef && this.videoRef.current, this.props.cldVid, this.props.sources, this.props.plugins, this.getVideoAttributes(), this.props.cldPoster, { useFetchFormat: this.props.useFetchFormat });
|
|
2283
|
+
}, t.prototype.componentDidUpdate = function() {
|
|
2284
|
+
Me(this.htmlVideoLayerInstance.htmlPluginState), this.htmlVideoLayerInstance.update(this.props.cldVid, this.props.sources, this.props.plugins, this.getVideoAttributes(), this.props.cldPoster);
|
|
2285
|
+
}, t.prototype.componentWillUnmount = function() {
|
|
2286
|
+
Me(this.htmlVideoLayerInstance.htmlPluginState);
|
|
2287
|
+
}, t.prototype.getVideoAttributes = function() {
|
|
2288
|
+
var r = this, o = {};
|
|
2289
|
+
return qo.forEach(function(i) {
|
|
2290
|
+
i in r.props && (o[i] = r.props[i]);
|
|
2291
|
+
}), o;
|
|
2292
|
+
}, t.prototype.attachRef = function(r) {
|
|
2293
|
+
this.videoRef.current = r;
|
|
2294
|
+
var o = this.props.innerRef;
|
|
2295
|
+
o && (o instanceof Function ? o(r) : o.current = r);
|
|
2296
|
+
}, t.prototype.render = function() {
|
|
2297
|
+
var r = this.props;
|
|
2298
|
+
r.cldVid, r.cldPoster, r.plugins, r.sources, r.innerRef, r.useFetchFormat;
|
|
2299
|
+
var o = gn(r, ["cldVid", "cldPoster", "plugins", "sources", "innerRef", "useFetchFormat"]);
|
|
2300
|
+
return Jt.createElement("video", fe({}, o, { ref: this.attachRef }));
|
|
2301
|
+
};
|
|
2302
|
+
})(pe.exports.Component);
|
|
2303
|
+
const No = An.memo(({ alt: e = "img", height: t = "", width: r = "", plugins: o = [yo(), mo()], publicId: i }) => {
|
|
2304
|
+
const u = En({ publicId: i });
|
|
2305
|
+
return Cn(Io, { alt: e, cldImg: u, height: t, plugins: o, width: r });
|
|
2306
|
+
});
|
|
2307
|
+
export {
|
|
2308
|
+
No as M,
|
|
2309
|
+
mo as p
|
|
2310
|
+
};
|