cecomponent 1.0.85 → 1.0.87
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/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +22 -22
- package/dist/ce-component-lib.mjs +914 -912
- package/dist/components/Common/CEAutoSuggestInput/CEAutoSuggestInput.d.ts +3 -0
- package/dist/components/Common/CEFaqExpander/CEFaqExpander.d.ts +27 -0
- package/dist/components/Common/CEHoverCards/CEHoverCards.d.ts +31 -0
- package/dist/components/Common/DateRangePicker/CEDateRangePicker.d.ts +1 -0
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ function requireReactJsxRuntime_development() {
|
|
|
52
52
|
function e(M) {
|
|
53
53
|
if (M == null) return null;
|
|
54
54
|
if (typeof M == "function")
|
|
55
|
-
return M.$$typeof ===
|
|
55
|
+
return M.$$typeof === q ? null : M.displayName || M.name || null;
|
|
56
56
|
if (typeof M == "string") return M;
|
|
57
57
|
switch (M) {
|
|
58
58
|
case p:
|
|
@@ -63,7 +63,7 @@ function requireReactJsxRuntime_development() {
|
|
|
63
63
|
return "StrictMode";
|
|
64
64
|
case C:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case b:
|
|
67
67
|
return "SuspenseList";
|
|
68
68
|
case I:
|
|
69
69
|
return "Activity";
|
|
@@ -139,7 +139,7 @@ function requireReactJsxRuntime_development() {
|
|
|
139
139
|
}
|
|
140
140
|
function o(M, D) {
|
|
141
141
|
function P() {
|
|
142
|
-
|
|
142
|
+
Y || (Y = !0, console.error(
|
|
143
143
|
"%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://react.dev/link/special-props)",
|
|
144
144
|
D
|
|
145
145
|
));
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function m(M) {
|
|
241
241
|
typeof M == "object" && M !== null && M.$$typeof === x && M._store && (M._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var u = React2__default, x = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), y = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"),
|
|
243
|
+
var u = React2__default, x = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), y = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), X = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, K = Array.isArray, ae = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
u = {
|
|
@@ -248,10 +248,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return M();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var Y, L = {}, j = u["react-stack-bottom-frame"].bind(
|
|
252
252
|
u,
|
|
253
253
|
n
|
|
254
|
-
)(),
|
|
254
|
+
)(), T = ae(i(n)), k = {};
|
|
255
255
|
reactJsxRuntime_development.Fragment = p, reactJsxRuntime_development.jsx = function(M, D, P, H, B) {
|
|
256
256
|
var z = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return c(
|
|
@@ -262,7 +262,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
262
262
|
H,
|
|
263
263
|
B,
|
|
264
264
|
z ? Error("react-stack-top-frame") : j,
|
|
265
|
-
z ?
|
|
265
|
+
z ? ae(i(M)) : T
|
|
266
266
|
);
|
|
267
267
|
}, reactJsxRuntime_development.jsxs = function(M, D, P, H, B) {
|
|
268
268
|
var z = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
@@ -274,7 +274,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
274
274
|
H,
|
|
275
275
|
B,
|
|
276
276
|
z ? Error("react-stack-top-frame") : j,
|
|
277
|
-
z ?
|
|
277
|
+
z ? ae(i(M)) : T
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), reactJsxRuntime_development;
|
|
@@ -307,11 +307,11 @@ function requireDist() {
|
|
|
307
307
|
g = u.lastIndexOf(";", _ - 1) + 1;
|
|
308
308
|
continue;
|
|
309
309
|
}
|
|
310
|
-
const C = o(u, g, _),
|
|
310
|
+
const C = o(u, g, _), b = l(u, _, C), A = u.slice(C, b);
|
|
311
311
|
if (d[A] === void 0) {
|
|
312
312
|
let R = o(u, _ + 1, S), I = l(u, S, R);
|
|
313
|
-
const
|
|
314
|
-
d[A] =
|
|
313
|
+
const q = E(u.slice(R, I));
|
|
314
|
+
d[A] = q;
|
|
315
315
|
}
|
|
316
316
|
g = S + 1;
|
|
317
317
|
} while (g < p);
|
|
@@ -1430,8 +1430,8 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1430
1430
|
let { basename: d } = React2.useContext(NavigationContext), p = typeof f == "string" && ABSOLUTE_URL_REGEX2.test(f), E, g = !1;
|
|
1431
1431
|
if (typeof f == "string" && p && (E = f, isBrowser))
|
|
1432
1432
|
try {
|
|
1433
|
-
let I = new URL(window.location.href),
|
|
1434
|
-
|
|
1433
|
+
let I = new URL(window.location.href), q = f.startsWith("//") ? new URL(I.protocol + f) : new URL(f), X = stripBasename(q.pathname, d);
|
|
1434
|
+
q.origin === I.origin && X != null ? f = X + q.search + q.hash : g = !0;
|
|
1435
1435
|
} catch {
|
|
1436
1436
|
warning(
|
|
1437
1437
|
!1,
|
|
@@ -1441,7 +1441,7 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1441
1441
|
let _ = useHref(f, { relative: s }), [y, S, C] = usePrefetchBehavior(
|
|
1442
1442
|
i,
|
|
1443
1443
|
u
|
|
1444
|
-
),
|
|
1444
|
+
), b = useLinkClickHandler(f, {
|
|
1445
1445
|
replace: a,
|
|
1446
1446
|
state: o,
|
|
1447
1447
|
target: l,
|
|
@@ -1450,7 +1450,7 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1450
1450
|
viewTransition: m
|
|
1451
1451
|
});
|
|
1452
1452
|
function A(I) {
|
|
1453
|
-
t && t(I), I.defaultPrevented ||
|
|
1453
|
+
t && t(I), I.defaultPrevented || b(I);
|
|
1454
1454
|
}
|
|
1455
1455
|
let R = (
|
|
1456
1456
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
@@ -1488,18 +1488,18 @@ var NavLink = React2.forwardRef(
|
|
|
1488
1488
|
useViewTransitionState(m) && o === !0, g = d.encodeLocation ? d.encodeLocation(m).pathname : m.pathname, _ = u.pathname, y = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
|
|
1489
1489
|
r || (_ = _.toLowerCase(), y = y ? y.toLowerCase() : null, g = g.toLowerCase()), y && p && (y = stripBasename(y, p) || y);
|
|
1490
1490
|
const S = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length;
|
|
1491
|
-
let C = _ === g || !s && _.startsWith(g) && _.charAt(S) === "/",
|
|
1491
|
+
let C = _ === g || !s && _.startsWith(g) && _.charAt(S) === "/", b = y != null && (y === g || !s && y.startsWith(g) && y.charAt(g.length) === "/"), A = {
|
|
1492
1492
|
isActive: C,
|
|
1493
|
-
isPending:
|
|
1493
|
+
isPending: b,
|
|
1494
1494
|
isTransitioning: E
|
|
1495
1495
|
}, R = C ? t : void 0, I;
|
|
1496
1496
|
typeof i == "function" ? I = i(A) : I = [
|
|
1497
1497
|
i,
|
|
1498
1498
|
C ? "active" : null,
|
|
1499
|
-
|
|
1499
|
+
b ? "pending" : null,
|
|
1500
1500
|
E ? "transitioning" : null
|
|
1501
1501
|
].filter(Boolean).join(" ");
|
|
1502
|
-
let
|
|
1502
|
+
let q = typeof n == "function" ? n(A) : n;
|
|
1503
1503
|
return /* @__PURE__ */ React2.createElement(
|
|
1504
1504
|
Link,
|
|
1505
1505
|
{
|
|
@@ -1507,7 +1507,7 @@ var NavLink = React2.forwardRef(
|
|
|
1507
1507
|
"aria-current": R,
|
|
1508
1508
|
className: I,
|
|
1509
1509
|
ref: c,
|
|
1510
|
-
style:
|
|
1510
|
+
style: q,
|
|
1511
1511
|
to: a,
|
|
1512
1512
|
viewTransition: o
|
|
1513
1513
|
},
|
|
@@ -1786,11 +1786,14 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1786
1786
|
size: l = "medium",
|
|
1787
1787
|
multipleSelection: f = !1,
|
|
1788
1788
|
showSearchIcon: c = !1,
|
|
1789
|
-
showDropdownIcon: m = !1
|
|
1789
|
+
showDropdownIcon: m = !1,
|
|
1790
|
+
required: u = !1,
|
|
1791
|
+
showError: x = !1,
|
|
1792
|
+
errorMessage: d = "This field is required"
|
|
1790
1793
|
}) => {
|
|
1791
|
-
const [
|
|
1794
|
+
const [p, E] = useState([]), [g, _] = useState(!1), [y, S] = useState(!1), [C, b] = useState(!1), [A, R] = useState(
|
|
1792
1795
|
Array.isArray(i) ? i : i ? [i] : []
|
|
1793
|
-
),
|
|
1796
|
+
), I = useRef(null), q = () => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1794
1797
|
"svg",
|
|
1795
1798
|
{
|
|
1796
1799
|
width: "24",
|
|
@@ -1807,7 +1810,7 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1807
1810
|
}
|
|
1808
1811
|
)
|
|
1809
1812
|
}
|
|
1810
|
-
),
|
|
1813
|
+
), X = () => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1811
1814
|
"svg",
|
|
1812
1815
|
{
|
|
1813
1816
|
width: "24",
|
|
@@ -1826,95 +1829,99 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1826
1829
|
}
|
|
1827
1830
|
);
|
|
1828
1831
|
useEffect(() => {
|
|
1829
|
-
const
|
|
1830
|
-
if (
|
|
1831
|
-
|
|
1832
|
+
const k = Array.isArray(i) ? "" : i;
|
|
1833
|
+
if (k.trim() === "") {
|
|
1834
|
+
E([]);
|
|
1832
1835
|
return;
|
|
1833
1836
|
}
|
|
1834
|
-
|
|
1837
|
+
S(!0), r(k).then((M) => E(M)).finally(() => S(!1));
|
|
1835
1838
|
}, [i, r]);
|
|
1836
|
-
const
|
|
1837
|
-
"--input-font-size":
|
|
1838
|
-
"--label-font-size":
|
|
1839
|
-
"--icon-size": `calc(${
|
|
1840
|
-
"--suggestion-font-size":
|
|
1841
|
-
"--input-padding":
|
|
1839
|
+
const W = getSizeStyle$1(l || "medium"), K = {
|
|
1840
|
+
"--input-font-size": W.fontSize,
|
|
1841
|
+
"--label-font-size": W.fontSize,
|
|
1842
|
+
"--icon-size": `calc(${W.fontSize} + 0.25rem)`,
|
|
1843
|
+
"--suggestion-font-size": W.fontSize,
|
|
1844
|
+
"--input-padding": W.padding,
|
|
1842
1845
|
"--input-padding-top": "1.25em",
|
|
1843
1846
|
"--icon-top": "1.2em",
|
|
1844
|
-
fontSize:
|
|
1847
|
+
fontSize: W.fontSize,
|
|
1845
1848
|
...o
|
|
1846
|
-
},
|
|
1847
|
-
let
|
|
1848
|
-
|
|
1849
|
-
},
|
|
1850
|
-
|
|
1851
|
-
},
|
|
1852
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auto-suggest-input", style:
|
|
1849
|
+
}, ae = (k) => {
|
|
1850
|
+
let M = [];
|
|
1851
|
+
A.includes(k) ? M = A.filter((D) => D !== k) : M = [...A, k], R(M), s(M);
|
|
1852
|
+
}, Y = () => {
|
|
1853
|
+
A.length === p.length ? (R([]), s([])) : (R(p), s(p));
|
|
1854
|
+
}, L = p.length > 0 && A.length === p.length, j = Array.isArray(i) ? i.length > 0 : i.trim().length > 0, T = x && u && !j;
|
|
1855
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auto-suggest-input", style: K, children: [
|
|
1853
1856
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1854
1857
|
"div",
|
|
1855
1858
|
{
|
|
1856
|
-
className: `input-wrapper floating-label-wrapper${
|
|
1857
|
-
style:
|
|
1859
|
+
className: `input-wrapper floating-label-wrapper${C || j ? " focused" : ""} ${T ? " error" : ""}`,
|
|
1860
|
+
style: K,
|
|
1858
1861
|
children: [
|
|
1859
1862
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1860
1863
|
"input",
|
|
1861
1864
|
{
|
|
1862
|
-
ref:
|
|
1865
|
+
ref: I,
|
|
1863
1866
|
type: "text",
|
|
1864
|
-
value: f ?
|
|
1867
|
+
value: f ? A.join(", ") : Array.isArray(i) ? "" : i,
|
|
1865
1868
|
placeholder: "",
|
|
1866
|
-
onChange: (
|
|
1867
|
-
s(
|
|
1869
|
+
onChange: (k) => {
|
|
1870
|
+
s(k.target.value), _(!0);
|
|
1868
1871
|
},
|
|
1869
1872
|
onFocus: () => {
|
|
1870
|
-
|
|
1873
|
+
_(!0), b(!0);
|
|
1871
1874
|
},
|
|
1872
1875
|
onBlur: () => {
|
|
1873
|
-
setTimeout(() =>
|
|
1874
|
-
}
|
|
1876
|
+
setTimeout(() => _(!1), 150), b(!1);
|
|
1877
|
+
},
|
|
1878
|
+
className: T ? "input-error" : "",
|
|
1879
|
+
"aria-invalid": T,
|
|
1880
|
+
"aria-describedby": T ? `${e}-error` : void 0
|
|
1875
1881
|
}
|
|
1876
1882
|
),
|
|
1877
1883
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "floating-label", children: e }),
|
|
1878
|
-
c && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon search-icon-img", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1879
|
-
m && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon search-icon-img", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1880
|
-
|
|
1884
|
+
c && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon search-icon-img", children: /* @__PURE__ */ jsxRuntimeExports.jsx(q, {}) }),
|
|
1885
|
+
m && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon search-icon-img", children: /* @__PURE__ */ jsxRuntimeExports.jsx(X, {}) }),
|
|
1886
|
+
g && p.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: "suggestions-list", children: [
|
|
1881
1887
|
f && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: "suggestion-item select-all", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
|
|
1882
1888
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1883
1889
|
"input",
|
|
1884
1890
|
{
|
|
1885
1891
|
type: "checkbox",
|
|
1886
|
-
checked:
|
|
1887
|
-
onChange:
|
|
1892
|
+
checked: L,
|
|
1893
|
+
onChange: Y
|
|
1888
1894
|
}
|
|
1889
1895
|
),
|
|
1890
1896
|
"Select All"
|
|
1891
1897
|
] }) }),
|
|
1892
|
-
|
|
1898
|
+
p.map((k, M) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1893
1899
|
"li",
|
|
1894
1900
|
{
|
|
1895
1901
|
className: "suggestion-item",
|
|
1896
1902
|
onMouseDown: () => {
|
|
1897
|
-
f || (s(
|
|
1903
|
+
f || (s(k), _(!1));
|
|
1898
1904
|
},
|
|
1899
1905
|
children: f ? /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
|
|
1900
1906
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1901
1907
|
"input",
|
|
1902
1908
|
{
|
|
1903
1909
|
type: "checkbox",
|
|
1904
|
-
checked:
|
|
1905
|
-
onChange: () =>
|
|
1910
|
+
checked: A.includes(k),
|
|
1911
|
+
onChange: () => ae(k)
|
|
1906
1912
|
}
|
|
1907
1913
|
),
|
|
1908
|
-
|
|
1909
|
-
] }) :
|
|
1914
|
+
k
|
|
1915
|
+
] }) : k
|
|
1910
1916
|
},
|
|
1911
|
-
|
|
1917
|
+
M
|
|
1912
1918
|
))
|
|
1913
1919
|
] })
|
|
1914
1920
|
]
|
|
1915
1921
|
}
|
|
1916
1922
|
),
|
|
1917
|
-
|
|
1923
|
+
T && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${e}-error`, className: "error-text", children: d }),
|
|
1924
|
+
y && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "loading-text", children: "Loading..." })
|
|
1918
1925
|
] });
|
|
1919
1926
|
};
|
|
1920
1927
|
function bind(e, t) {
|
|
@@ -3116,8 +3123,8 @@ const getBodyLength = async (e) => {
|
|
|
3116
3123
|
method: "POST",
|
|
3117
3124
|
body: i,
|
|
3118
3125
|
duplex: "half"
|
|
3119
|
-
}),
|
|
3120
|
-
if (utils$2.isFormData(i) && (
|
|
3126
|
+
}), b;
|
|
3127
|
+
if (utils$2.isFormData(i) && (b = C.headers.get("content-type")) && c.setContentType(b), C.body) {
|
|
3121
3128
|
const [A, R] = progressEventDecorator(
|
|
3122
3129
|
E,
|
|
3123
3130
|
progressEventReducer(asyncDecorator(l))
|
|
@@ -3143,8 +3150,8 @@ const getBodyLength = async (e) => {
|
|
|
3143
3150
|
["status", "statusText", "headers"].forEach((I) => {
|
|
3144
3151
|
C[I] = _[I];
|
|
3145
3152
|
});
|
|
3146
|
-
const
|
|
3147
|
-
|
|
3153
|
+
const b = utils$2.toFiniteNumber(_.headers.get("content-length")), [A, R] = o && progressEventDecorator(
|
|
3154
|
+
b,
|
|
3148
3155
|
progressEventReducer(asyncDecorator(o), !0)
|
|
3149
3156
|
) || [];
|
|
3150
3157
|
_ = new Response(
|
|
@@ -3156,8 +3163,8 @@ const getBodyLength = async (e) => {
|
|
|
3156
3163
|
}
|
|
3157
3164
|
f = f || "text";
|
|
3158
3165
|
let S = await resolvers[utils$2.findKey(resolvers, f) || "text"](_, e);
|
|
3159
|
-
return !y && p && p(), await new Promise((C,
|
|
3160
|
-
settle(C,
|
|
3166
|
+
return !y && p && p(), await new Promise((C, b) => {
|
|
3167
|
+
settle(C, b, {
|
|
3161
3168
|
data: S,
|
|
3162
3169
|
headers: AxiosHeaders$1.from(_.headers),
|
|
3163
3170
|
status: _.status,
|
|
@@ -3757,12 +3764,12 @@ const {
|
|
|
3757
3764
|
}
|
|
3758
3765
|
)
|
|
3759
3766
|
}
|
|
3760
|
-
),
|
|
3767
|
+
), b = u !== void 0 ? u : _, A = b && b.toString().length > 0, R = (W) => {
|
|
3761
3768
|
u === void 0 && y(W.target.value), x == null || x(W);
|
|
3762
3769
|
}, I = (W) => {
|
|
3763
|
-
W.key === "Enter" && t && t(
|
|
3764
|
-
},
|
|
3765
|
-
t && t(
|
|
3770
|
+
W.key === "Enter" && t && t(b.toString()), d == null || d(W);
|
|
3771
|
+
}, q = () => {
|
|
3772
|
+
t && t(b.toString());
|
|
3766
3773
|
}, X = () => {
|
|
3767
3774
|
u === void 0 && y(""), r == null || r();
|
|
3768
3775
|
const W = document.getElementById(S);
|
|
@@ -3793,7 +3800,7 @@ const {
|
|
|
3793
3800
|
type: "text",
|
|
3794
3801
|
id: S,
|
|
3795
3802
|
className: `ce-search-field-input ${i ? "error" : ""} ${f} ${m || ""}`,
|
|
3796
|
-
value:
|
|
3803
|
+
value: b,
|
|
3797
3804
|
onChange: R,
|
|
3798
3805
|
onKeyDown: I,
|
|
3799
3806
|
...E
|
|
@@ -3814,7 +3821,7 @@ const {
|
|
|
3814
3821
|
{
|
|
3815
3822
|
type: "button",
|
|
3816
3823
|
className: "ce-search-field-button",
|
|
3817
|
-
onClick:
|
|
3824
|
+
onClick: q,
|
|
3818
3825
|
"aria-label": "Search",
|
|
3819
3826
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(C, {})
|
|
3820
3827
|
}
|
|
@@ -3977,8 +3984,8 @@ const uploadWrapper = "_uploadWrapper_179oq_1", dropZone = "_dropZone_179oq_15",
|
|
|
3977
3984
|
file: C
|
|
3978
3985
|
}));
|
|
3979
3986
|
i((C) => {
|
|
3980
|
-
const
|
|
3981
|
-
(R) => !
|
|
3987
|
+
const b = new Set(C.map((R) => R.name)), A = S.filter(
|
|
3988
|
+
(R) => !b.has(R.name)
|
|
3982
3989
|
);
|
|
3983
3990
|
return [...C, ...A];
|
|
3984
3991
|
}), e && S.length > 0 && e(S);
|
|
@@ -4584,10 +4591,10 @@ function requireLottie() {
|
|
|
4584
4591
|
function o() {
|
|
4585
4592
|
i || (i = a(function(x) {
|
|
4586
4593
|
function d() {
|
|
4587
|
-
function E(
|
|
4588
|
-
var j,
|
|
4589
|
-
for (
|
|
4590
|
-
if (j =
|
|
4594
|
+
function E(Y, L) {
|
|
4595
|
+
var j, T, k = Y.length, M, D, P, H;
|
|
4596
|
+
for (T = 0; T < k; T += 1)
|
|
4597
|
+
if (j = Y[T], "ks" in j && !j.completed) {
|
|
4591
4598
|
if (j.completed = !0, j.hasMask) {
|
|
4592
4599
|
var B = j.masksProperties;
|
|
4593
4600
|
for (D = B.length, M = 0; M < D; M += 1)
|
|
@@ -4600,74 +4607,74 @@ function requireLottie() {
|
|
|
4600
4607
|
j.ty === 0 ? (j.layers = y(j.refId, L), E(j.layers, L)) : j.ty === 4 ? S(j.shapes) : j.ty === 5 && K(j);
|
|
4601
4608
|
}
|
|
4602
4609
|
}
|
|
4603
|
-
function g(
|
|
4604
|
-
if (
|
|
4605
|
-
var j = 0,
|
|
4606
|
-
for (j = 0; j <
|
|
4607
|
-
|
|
4610
|
+
function g(Y, L) {
|
|
4611
|
+
if (Y) {
|
|
4612
|
+
var j = 0, T = Y.length;
|
|
4613
|
+
for (j = 0; j < T; j += 1)
|
|
4614
|
+
Y[j].t === 1 && (Y[j].data.layers = y(Y[j].data.refId, L), E(Y[j].data.layers, L));
|
|
4608
4615
|
}
|
|
4609
4616
|
}
|
|
4610
|
-
function _(
|
|
4611
|
-
for (var j = 0,
|
|
4612
|
-
if (L[j].id ===
|
|
4617
|
+
function _(Y, L) {
|
|
4618
|
+
for (var j = 0, T = L.length; j < T; ) {
|
|
4619
|
+
if (L[j].id === Y)
|
|
4613
4620
|
return L[j];
|
|
4614
4621
|
j += 1;
|
|
4615
4622
|
}
|
|
4616
4623
|
return null;
|
|
4617
4624
|
}
|
|
4618
|
-
function y(
|
|
4619
|
-
var j = _(
|
|
4625
|
+
function y(Y, L) {
|
|
4626
|
+
var j = _(Y, L);
|
|
4620
4627
|
return j ? j.layers.__used ? JSON.parse(JSON.stringify(j.layers)) : (j.layers.__used = !0, j.layers) : null;
|
|
4621
4628
|
}
|
|
4622
|
-
function S(
|
|
4623
|
-
var L, j =
|
|
4629
|
+
function S(Y) {
|
|
4630
|
+
var L, j = Y.length, T, k;
|
|
4624
4631
|
for (L = j - 1; L >= 0; L -= 1)
|
|
4625
|
-
if (
|
|
4626
|
-
if (
|
|
4627
|
-
C(
|
|
4632
|
+
if (Y[L].ty === "sh")
|
|
4633
|
+
if (Y[L].ks.k.i)
|
|
4634
|
+
C(Y[L].ks.k);
|
|
4628
4635
|
else
|
|
4629
|
-
for (k =
|
|
4630
|
-
|
|
4631
|
-
else
|
|
4636
|
+
for (k = Y[L].ks.k.length, T = 0; T < k; T += 1)
|
|
4637
|
+
Y[L].ks.k[T].s && C(Y[L].ks.k[T].s[0]), Y[L].ks.k[T].e && C(Y[L].ks.k[T].e[0]);
|
|
4638
|
+
else Y[L].ty === "gr" && S(Y[L].it);
|
|
4632
4639
|
}
|
|
4633
|
-
function C(
|
|
4634
|
-
var L, j =
|
|
4640
|
+
function C(Y) {
|
|
4641
|
+
var L, j = Y.i.length;
|
|
4635
4642
|
for (L = 0; L < j; L += 1)
|
|
4636
|
-
|
|
4643
|
+
Y.i[L][0] += Y.v[L][0], Y.i[L][1] += Y.v[L][1], Y.o[L][0] += Y.v[L][0], Y.o[L][1] += Y.v[L][1];
|
|
4637
4644
|
}
|
|
4638
|
-
function
|
|
4645
|
+
function b(Y, L) {
|
|
4639
4646
|
var j = L ? L.split(".") : [100, 100, 100];
|
|
4640
|
-
return
|
|
4647
|
+
return Y[0] > j[0] ? !0 : j[0] > Y[0] ? !1 : Y[1] > j[1] ? !0 : j[1] > Y[1] ? !1 : Y[2] > j[2] ? !0 : j[2] > Y[2] ? !1 : null;
|
|
4641
4648
|
}
|
|
4642
4649
|
var A = /* @__PURE__ */ function() {
|
|
4643
|
-
var
|
|
4644
|
-
function L(
|
|
4645
|
-
var k =
|
|
4646
|
-
|
|
4650
|
+
var Y = [4, 4, 14];
|
|
4651
|
+
function L(T) {
|
|
4652
|
+
var k = T.t.d;
|
|
4653
|
+
T.t.d = {
|
|
4647
4654
|
k: [{
|
|
4648
4655
|
s: k,
|
|
4649
4656
|
t: 0
|
|
4650
4657
|
}]
|
|
4651
4658
|
};
|
|
4652
4659
|
}
|
|
4653
|
-
function j(
|
|
4654
|
-
var k, M =
|
|
4660
|
+
function j(T) {
|
|
4661
|
+
var k, M = T.length;
|
|
4655
4662
|
for (k = 0; k < M; k += 1)
|
|
4656
|
-
|
|
4663
|
+
T[k].ty === 5 && L(T[k]);
|
|
4657
4664
|
}
|
|
4658
|
-
return function(
|
|
4659
|
-
if (
|
|
4660
|
-
var k, M =
|
|
4665
|
+
return function(T) {
|
|
4666
|
+
if (b(Y, T.v) && (j(T.layers), T.assets)) {
|
|
4667
|
+
var k, M = T.assets.length;
|
|
4661
4668
|
for (k = 0; k < M; k += 1)
|
|
4662
|
-
|
|
4669
|
+
T.assets[k].layers && j(T.assets[k].layers);
|
|
4663
4670
|
}
|
|
4664
4671
|
};
|
|
4665
4672
|
}(), R = /* @__PURE__ */ function() {
|
|
4666
|
-
var
|
|
4673
|
+
var Y = [4, 7, 99];
|
|
4667
4674
|
return function(L) {
|
|
4668
|
-
if (L.chars && !
|
|
4669
|
-
var j,
|
|
4670
|
-
for (j = 0; j <
|
|
4675
|
+
if (L.chars && !b(Y, L.v)) {
|
|
4676
|
+
var j, T = L.chars.length;
|
|
4677
|
+
for (j = 0; j < T; j += 1) {
|
|
4671
4678
|
var k = L.chars[j];
|
|
4672
4679
|
k.data && k.data.shapes && (S(k.data.shapes), k.data.ip = 0, k.data.op = 99999, k.data.st = 0, k.data.sr = 1, k.data.ks = {
|
|
4673
4680
|
p: {
|
|
@@ -4727,9 +4734,9 @@ function requireLottie() {
|
|
|
4727
4734
|
}
|
|
4728
4735
|
};
|
|
4729
4736
|
}(), I = /* @__PURE__ */ function() {
|
|
4730
|
-
var
|
|
4731
|
-
function L(
|
|
4732
|
-
var k =
|
|
4737
|
+
var Y = [5, 7, 15];
|
|
4738
|
+
function L(T) {
|
|
4739
|
+
var k = T.t.p;
|
|
4733
4740
|
typeof k.a == "number" && (k.a = {
|
|
4734
4741
|
a: 0,
|
|
4735
4742
|
k: k.a
|
|
@@ -4741,61 +4748,61 @@ function requireLottie() {
|
|
|
4741
4748
|
k: k.r
|
|
4742
4749
|
});
|
|
4743
4750
|
}
|
|
4744
|
-
function j(
|
|
4745
|
-
var k, M =
|
|
4751
|
+
function j(T) {
|
|
4752
|
+
var k, M = T.length;
|
|
4746
4753
|
for (k = 0; k < M; k += 1)
|
|
4747
|
-
|
|
4754
|
+
T[k].ty === 5 && L(T[k]);
|
|
4748
4755
|
}
|
|
4749
|
-
return function(
|
|
4750
|
-
if (
|
|
4751
|
-
var k, M =
|
|
4756
|
+
return function(T) {
|
|
4757
|
+
if (b(Y, T.v) && (j(T.layers), T.assets)) {
|
|
4758
|
+
var k, M = T.assets.length;
|
|
4752
4759
|
for (k = 0; k < M; k += 1)
|
|
4753
|
-
|
|
4760
|
+
T.assets[k].layers && j(T.assets[k].layers);
|
|
4754
4761
|
}
|
|
4755
4762
|
};
|
|
4756
|
-
}(),
|
|
4757
|
-
var
|
|
4758
|
-
function L(
|
|
4759
|
-
var k, M =
|
|
4763
|
+
}(), q = /* @__PURE__ */ function() {
|
|
4764
|
+
var Y = [4, 1, 9];
|
|
4765
|
+
function L(T) {
|
|
4766
|
+
var k, M = T.length, D, P;
|
|
4760
4767
|
for (k = 0; k < M; k += 1)
|
|
4761
|
-
if (
|
|
4762
|
-
L(
|
|
4763
|
-
else if (
|
|
4764
|
-
if (
|
|
4765
|
-
for (P =
|
|
4766
|
-
|
|
4768
|
+
if (T[k].ty === "gr")
|
|
4769
|
+
L(T[k].it);
|
|
4770
|
+
else if (T[k].ty === "fl" || T[k].ty === "st")
|
|
4771
|
+
if (T[k].c.k && T[k].c.k[0].i)
|
|
4772
|
+
for (P = T[k].c.k.length, D = 0; D < P; D += 1)
|
|
4773
|
+
T[k].c.k[D].s && (T[k].c.k[D].s[0] /= 255, T[k].c.k[D].s[1] /= 255, T[k].c.k[D].s[2] /= 255, T[k].c.k[D].s[3] /= 255), T[k].c.k[D].e && (T[k].c.k[D].e[0] /= 255, T[k].c.k[D].e[1] /= 255, T[k].c.k[D].e[2] /= 255, T[k].c.k[D].e[3] /= 255);
|
|
4767
4774
|
else
|
|
4768
|
-
|
|
4775
|
+
T[k].c.k[0] /= 255, T[k].c.k[1] /= 255, T[k].c.k[2] /= 255, T[k].c.k[3] /= 255;
|
|
4769
4776
|
}
|
|
4770
|
-
function j(
|
|
4771
|
-
var k, M =
|
|
4777
|
+
function j(T) {
|
|
4778
|
+
var k, M = T.length;
|
|
4772
4779
|
for (k = 0; k < M; k += 1)
|
|
4773
|
-
|
|
4780
|
+
T[k].ty === 4 && L(T[k].shapes);
|
|
4774
4781
|
}
|
|
4775
|
-
return function(
|
|
4776
|
-
if (
|
|
4777
|
-
var k, M =
|
|
4782
|
+
return function(T) {
|
|
4783
|
+
if (b(Y, T.v) && (j(T.layers), T.assets)) {
|
|
4784
|
+
var k, M = T.assets.length;
|
|
4778
4785
|
for (k = 0; k < M; k += 1)
|
|
4779
|
-
|
|
4786
|
+
T.assets[k].layers && j(T.assets[k].layers);
|
|
4780
4787
|
}
|
|
4781
4788
|
};
|
|
4782
4789
|
}(), X = /* @__PURE__ */ function() {
|
|
4783
|
-
var
|
|
4784
|
-
function L(
|
|
4785
|
-
var k, M =
|
|
4790
|
+
var Y = [4, 4, 18];
|
|
4791
|
+
function L(T) {
|
|
4792
|
+
var k, M = T.length, D, P;
|
|
4786
4793
|
for (k = M - 1; k >= 0; k -= 1)
|
|
4787
|
-
if (
|
|
4788
|
-
if (
|
|
4789
|
-
|
|
4794
|
+
if (T[k].ty === "sh")
|
|
4795
|
+
if (T[k].ks.k.i)
|
|
4796
|
+
T[k].ks.k.c = T[k].closed;
|
|
4790
4797
|
else
|
|
4791
|
-
for (P =
|
|
4792
|
-
|
|
4793
|
-
else
|
|
4798
|
+
for (P = T[k].ks.k.length, D = 0; D < P; D += 1)
|
|
4799
|
+
T[k].ks.k[D].s && (T[k].ks.k[D].s[0].c = T[k].closed), T[k].ks.k[D].e && (T[k].ks.k[D].e[0].c = T[k].closed);
|
|
4800
|
+
else T[k].ty === "gr" && L(T[k].it);
|
|
4794
4801
|
}
|
|
4795
|
-
function j(
|
|
4796
|
-
var k, M, D =
|
|
4802
|
+
function j(T) {
|
|
4803
|
+
var k, M, D = T.length, P, H, B, z;
|
|
4797
4804
|
for (M = 0; M < D; M += 1) {
|
|
4798
|
-
if (k =
|
|
4805
|
+
if (k = T[M], k.hasMask) {
|
|
4799
4806
|
var re = k.masksProperties;
|
|
4800
4807
|
for (H = re.length, P = 0; P < H; P += 1)
|
|
4801
4808
|
if (re[P].pt.k.i)
|
|
@@ -4807,22 +4814,22 @@ function requireLottie() {
|
|
|
4807
4814
|
k.ty === 4 && L(k.shapes);
|
|
4808
4815
|
}
|
|
4809
4816
|
}
|
|
4810
|
-
return function(
|
|
4811
|
-
if (
|
|
4812
|
-
var k, M =
|
|
4817
|
+
return function(T) {
|
|
4818
|
+
if (b(Y, T.v) && (j(T.layers), T.assets)) {
|
|
4819
|
+
var k, M = T.assets.length;
|
|
4813
4820
|
for (k = 0; k < M; k += 1)
|
|
4814
|
-
|
|
4821
|
+
T.assets[k].layers && j(T.assets[k].layers);
|
|
4815
4822
|
}
|
|
4816
4823
|
};
|
|
4817
4824
|
}();
|
|
4818
|
-
function W(
|
|
4819
|
-
|
|
4825
|
+
function W(Y) {
|
|
4826
|
+
Y.__complete || (q(Y), A(Y), R(Y), I(Y), X(Y), E(Y.layers, Y.assets), g(Y.chars, Y.assets), Y.__complete = !0);
|
|
4820
4827
|
}
|
|
4821
|
-
function K(
|
|
4822
|
-
|
|
4828
|
+
function K(Y) {
|
|
4829
|
+
Y.t.a.length === 0 && "m" in Y.t.p;
|
|
4823
4830
|
}
|
|
4824
|
-
var
|
|
4825
|
-
return
|
|
4831
|
+
var ae = {};
|
|
4832
|
+
return ae.completeData = W, ae.checkColors = q, ae.checkChars = R, ae.checkPathProperties = I, ae.checkShapes = X, ae.completeLayers = E, ae;
|
|
4826
4833
|
}
|
|
4827
4834
|
if (n.dataManager || (n.dataManager = d()), n.assetLoader || (n.assetLoader = /* @__PURE__ */ function() {
|
|
4828
4835
|
function E(_) {
|
|
@@ -4830,7 +4837,7 @@ function requireLottie() {
|
|
|
4830
4837
|
return y && _.responseType === "json" && y.indexOf("json") !== -1 || _.response && _typeof$5(_.response) === "object" ? _.response : _.response && typeof _.response == "string" ? JSON.parse(_.response) : _.responseText ? JSON.parse(_.responseText) : null;
|
|
4831
4838
|
}
|
|
4832
4839
|
function g(_, y, S, C) {
|
|
4833
|
-
var
|
|
4840
|
+
var b, A = new XMLHttpRequest();
|
|
4834
4841
|
try {
|
|
4835
4842
|
A.responseType = "json";
|
|
4836
4843
|
} catch {
|
|
@@ -4838,10 +4845,10 @@ function requireLottie() {
|
|
|
4838
4845
|
A.onreadystatechange = function() {
|
|
4839
4846
|
if (A.readyState === 4)
|
|
4840
4847
|
if (A.status === 200)
|
|
4841
|
-
|
|
4848
|
+
b = E(A), S(b);
|
|
4842
4849
|
else
|
|
4843
4850
|
try {
|
|
4844
|
-
|
|
4851
|
+
b = E(A), S(b);
|
|
4845
4852
|
} catch (R) {
|
|
4846
4853
|
C && C(R);
|
|
4847
4854
|
}
|
|
@@ -5372,28 +5379,28 @@ function requireLottie() {
|
|
|
5372
5379
|
var animationManager = function() {
|
|
5373
5380
|
var e = {}, t = [], r = 0, i = 0, s = 0, n = !0, a = !1;
|
|
5374
5381
|
function o(L) {
|
|
5375
|
-
for (var j = 0,
|
|
5376
|
-
t[j].animation ===
|
|
5382
|
+
for (var j = 0, T = L.target; j < i; )
|
|
5383
|
+
t[j].animation === T && (t.splice(j, 1), j -= 1, i -= 1, T.isPaused || m()), j += 1;
|
|
5377
5384
|
}
|
|
5378
5385
|
function l(L, j) {
|
|
5379
5386
|
if (!L)
|
|
5380
5387
|
return null;
|
|
5381
|
-
for (var
|
|
5382
|
-
if (t[
|
|
5383
|
-
return t[
|
|
5384
|
-
|
|
5388
|
+
for (var T = 0; T < i; ) {
|
|
5389
|
+
if (t[T].elem === L && t[T].elem !== null)
|
|
5390
|
+
return t[T].animation;
|
|
5391
|
+
T += 1;
|
|
5385
5392
|
}
|
|
5386
5393
|
var k = new AnimationItem();
|
|
5387
5394
|
return u(k, L), k.setData(L, j), k;
|
|
5388
5395
|
}
|
|
5389
5396
|
function f() {
|
|
5390
|
-
var L, j = t.length,
|
|
5397
|
+
var L, j = t.length, T = [];
|
|
5391
5398
|
for (L = 0; L < j; L += 1)
|
|
5392
|
-
|
|
5393
|
-
return
|
|
5399
|
+
T.push(t[L].animation);
|
|
5400
|
+
return T;
|
|
5394
5401
|
}
|
|
5395
5402
|
function c() {
|
|
5396
|
-
s += 1,
|
|
5403
|
+
s += 1, q();
|
|
5397
5404
|
}
|
|
5398
5405
|
function m() {
|
|
5399
5406
|
s -= 1;
|
|
@@ -5409,14 +5416,14 @@ function requireLottie() {
|
|
|
5409
5416
|
return u(j, null), j.setParams(L), j;
|
|
5410
5417
|
}
|
|
5411
5418
|
function d(L, j) {
|
|
5412
|
-
var
|
|
5413
|
-
for (
|
|
5414
|
-
t[
|
|
5419
|
+
var T;
|
|
5420
|
+
for (T = 0; T < i; T += 1)
|
|
5421
|
+
t[T].animation.setSpeed(L, j);
|
|
5415
5422
|
}
|
|
5416
5423
|
function p(L, j) {
|
|
5417
|
-
var
|
|
5418
|
-
for (
|
|
5419
|
-
t[
|
|
5424
|
+
var T;
|
|
5425
|
+
for (T = 0; T < i; T += 1)
|
|
5426
|
+
t[T].animation.setDirection(L, j);
|
|
5420
5427
|
}
|
|
5421
5428
|
function E(L) {
|
|
5422
5429
|
var j;
|
|
@@ -5424,9 +5431,9 @@ function requireLottie() {
|
|
|
5424
5431
|
t[j].animation.play(L);
|
|
5425
5432
|
}
|
|
5426
5433
|
function g(L) {
|
|
5427
|
-
var j = L - r,
|
|
5428
|
-
for (
|
|
5429
|
-
t[
|
|
5434
|
+
var j = L - r, T;
|
|
5435
|
+
for (T = 0; T < i; T += 1)
|
|
5436
|
+
t[T].animation.advanceTime(j);
|
|
5430
5437
|
r = L, s && !a ? window.requestAnimationFrame(g) : n = !0;
|
|
5431
5438
|
}
|
|
5432
5439
|
function _(L) {
|
|
@@ -5437,17 +5444,17 @@ function requireLottie() {
|
|
|
5437
5444
|
for (j = 0; j < i; j += 1)
|
|
5438
5445
|
t[j].animation.pause(L);
|
|
5439
5446
|
}
|
|
5440
|
-
function S(L, j,
|
|
5447
|
+
function S(L, j, T) {
|
|
5441
5448
|
var k;
|
|
5442
5449
|
for (k = 0; k < i; k += 1)
|
|
5443
|
-
t[k].animation.goToAndStop(L, j,
|
|
5450
|
+
t[k].animation.goToAndStop(L, j, T);
|
|
5444
5451
|
}
|
|
5445
5452
|
function C(L) {
|
|
5446
5453
|
var j;
|
|
5447
5454
|
for (j = 0; j < i; j += 1)
|
|
5448
5455
|
t[j].animation.stop(L);
|
|
5449
5456
|
}
|
|
5450
|
-
function
|
|
5457
|
+
function b(L) {
|
|
5451
5458
|
var j;
|
|
5452
5459
|
for (j = 0; j < i; j += 1)
|
|
5453
5460
|
t[j].animation.togglePause(L);
|
|
@@ -5457,16 +5464,16 @@ function requireLottie() {
|
|
|
5457
5464
|
for (j = i - 1; j >= 0; j -= 1)
|
|
5458
5465
|
t[j].animation.destroy(L);
|
|
5459
5466
|
}
|
|
5460
|
-
function R(L, j,
|
|
5467
|
+
function R(L, j, T) {
|
|
5461
5468
|
var k = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), M, D = k.length;
|
|
5462
5469
|
for (M = 0; M < D; M += 1)
|
|
5463
|
-
|
|
5470
|
+
T && k[M].setAttribute("data-bm-type", T), l(k[M], L);
|
|
5464
5471
|
if (j && D === 0) {
|
|
5465
|
-
|
|
5472
|
+
T || (T = "svg");
|
|
5466
5473
|
var P = document.getElementsByTagName("body")[0];
|
|
5467
5474
|
P.innerText = "";
|
|
5468
5475
|
var H = createTag("div");
|
|
5469
|
-
H.style.width = "100%", H.style.height = "100%", H.setAttribute("data-bm-type",
|
|
5476
|
+
H.style.width = "100%", H.style.height = "100%", H.setAttribute("data-bm-type", T), P.appendChild(H), l(H, L);
|
|
5470
5477
|
}
|
|
5471
5478
|
}
|
|
5472
5479
|
function I() {
|
|
@@ -5474,37 +5481,37 @@ function requireLottie() {
|
|
|
5474
5481
|
for (L = 0; L < i; L += 1)
|
|
5475
5482
|
t[L].animation.resize();
|
|
5476
5483
|
}
|
|
5477
|
-
function
|
|
5484
|
+
function q() {
|
|
5478
5485
|
!a && s && n && (window.requestAnimationFrame(_), n = !1);
|
|
5479
5486
|
}
|
|
5480
5487
|
function X() {
|
|
5481
5488
|
a = !0;
|
|
5482
5489
|
}
|
|
5483
5490
|
function W() {
|
|
5484
|
-
a = !1,
|
|
5491
|
+
a = !1, q();
|
|
5485
5492
|
}
|
|
5486
5493
|
function K(L, j) {
|
|
5487
|
-
var
|
|
5488
|
-
for (
|
|
5489
|
-
t[
|
|
5494
|
+
var T;
|
|
5495
|
+
for (T = 0; T < i; T += 1)
|
|
5496
|
+
t[T].animation.setVolume(L, j);
|
|
5490
5497
|
}
|
|
5491
|
-
function
|
|
5498
|
+
function ae(L) {
|
|
5492
5499
|
var j;
|
|
5493
5500
|
for (j = 0; j < i; j += 1)
|
|
5494
5501
|
t[j].animation.mute(L);
|
|
5495
5502
|
}
|
|
5496
|
-
function
|
|
5503
|
+
function Y(L) {
|
|
5497
5504
|
var j;
|
|
5498
5505
|
for (j = 0; j < i; j += 1)
|
|
5499
5506
|
t[j].animation.unmute(L);
|
|
5500
5507
|
}
|
|
5501
|
-
return e.registerAnimation = l, e.loadAnimation = x, e.setSpeed = d, e.setDirection = p, e.play = E, e.pause = y, e.stop = C, e.togglePause =
|
|
5508
|
+
return e.registerAnimation = l, e.loadAnimation = x, e.setSpeed = d, e.setDirection = p, e.play = E, e.pause = y, e.stop = C, e.togglePause = b, e.searchAnimations = R, e.resize = I, e.goToAndStop = S, e.destroy = A, e.freeze = X, e.unfreeze = W, e.setVolume = K, e.mute = ae, e.unmute = Y, e.getRegisteredAnimations = f, e;
|
|
5502
5509
|
}(), BezierFactory = function() {
|
|
5503
5510
|
var e = {};
|
|
5504
5511
|
e.getBezierEasing = r;
|
|
5505
5512
|
var t = {};
|
|
5506
|
-
function r(_, y, S, C,
|
|
5507
|
-
var A =
|
|
5513
|
+
function r(_, y, S, C, b) {
|
|
5514
|
+
var A = b || ("bez_" + _ + "_" + y + "_" + S + "_" + C).replace(/\./g, "p");
|
|
5508
5515
|
if (t[A])
|
|
5509
5516
|
return t[A];
|
|
5510
5517
|
var R = new g([_, y, S, C]);
|
|
@@ -5526,15 +5533,15 @@ function requireLottie() {
|
|
|
5526
5533
|
function d(_, y, S) {
|
|
5527
5534
|
return 3 * c(y, S) * _ * _ + 2 * m(y, S) * _ + u(y);
|
|
5528
5535
|
}
|
|
5529
|
-
function p(_, y, S, C,
|
|
5536
|
+
function p(_, y, S, C, b) {
|
|
5530
5537
|
var A, R, I = 0;
|
|
5531
5538
|
do
|
|
5532
|
-
R = y + (S - y) / 2, A = x(R, C,
|
|
5539
|
+
R = y + (S - y) / 2, A = x(R, C, b) - _, A > 0 ? S = R : y = R;
|
|
5533
5540
|
while (Math.abs(A) > n && ++I < a);
|
|
5534
5541
|
return R;
|
|
5535
5542
|
}
|
|
5536
5543
|
function E(_, y, S, C) {
|
|
5537
|
-
for (var
|
|
5544
|
+
for (var b = 0; b < i; ++b) {
|
|
5538
5545
|
var A = d(y, S, C);
|
|
5539
5546
|
if (A === 0) return y;
|
|
5540
5547
|
var R = x(y, S, C) - _;
|
|
@@ -5547,13 +5554,13 @@ function requireLottie() {
|
|
|
5547
5554
|
}
|
|
5548
5555
|
return g.prototype = {
|
|
5549
5556
|
get: function(y) {
|
|
5550
|
-
var S = this._p[0], C = this._p[1],
|
|
5551
|
-
return this._precomputed || this._precompute(), S === C &&
|
|
5557
|
+
var S = this._p[0], C = this._p[1], b = this._p[2], A = this._p[3];
|
|
5558
|
+
return this._precomputed || this._precompute(), S === C && b === A ? y : y === 0 ? 0 : y === 1 ? 1 : x(this._getTForX(y), C, A);
|
|
5552
5559
|
},
|
|
5553
5560
|
// Private part
|
|
5554
5561
|
_precompute: function() {
|
|
5555
|
-
var y = this._p[0], S = this._p[1], C = this._p[2],
|
|
5556
|
-
this._precomputed = !0, (y !== S || C !==
|
|
5562
|
+
var y = this._p[0], S = this._p[1], C = this._p[2], b = this._p[3];
|
|
5563
|
+
this._precomputed = !0, (y !== S || C !== b) && this._calcSampleValues();
|
|
5557
5564
|
},
|
|
5558
5565
|
_calcSampleValues: function() {
|
|
5559
5566
|
for (var y = this._p[0], S = this._p[2], C = 0; C < o; ++C)
|
|
@@ -5563,10 +5570,10 @@ function requireLottie() {
|
|
|
5563
5570
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
5564
5571
|
*/
|
|
5565
5572
|
_getTForX: function(y) {
|
|
5566
|
-
for (var S = this._p[0], C = this._p[2],
|
|
5573
|
+
for (var S = this._p[0], C = this._p[2], b = this._mSampleValues, A = 0, R = 1, I = o - 1; R !== I && b[R] <= y; ++R)
|
|
5567
5574
|
A += l;
|
|
5568
5575
|
--R;
|
|
5569
|
-
var
|
|
5576
|
+
var q = (y - b[R]) / (b[R + 1] - b[R]), X = A + q * l, W = d(X, S, C);
|
|
5570
5577
|
return W >= s ? E(y, X, S, C) : W === 0 ? X : p(y, A, A + l, S, C);
|
|
5571
5578
|
}
|
|
5572
5579
|
}, e;
|
|
@@ -5625,18 +5632,18 @@ function requireLottie() {
|
|
|
5625
5632
|
function r(u, x, d, p, E, g, _, y, S) {
|
|
5626
5633
|
if (d === 0 && g === 0 && S === 0)
|
|
5627
5634
|
return t(u, x, p, E, _, y);
|
|
5628
|
-
var C = e.sqrt(e.pow(p - u, 2) + e.pow(E - x, 2) + e.pow(g - d, 2)),
|
|
5629
|
-
return C >
|
|
5635
|
+
var C = e.sqrt(e.pow(p - u, 2) + e.pow(E - x, 2) + e.pow(g - d, 2)), b = e.sqrt(e.pow(_ - u, 2) + e.pow(y - x, 2) + e.pow(S - d, 2)), A = e.sqrt(e.pow(_ - p, 2) + e.pow(y - E, 2) + e.pow(S - g, 2)), R;
|
|
5636
|
+
return C > b ? C > A ? R = C - b - A : R = A - b - C : A > b ? R = A - b - C : R = b - C - A, R > -1e-4 && R < 1e-4;
|
|
5630
5637
|
}
|
|
5631
5638
|
var i = /* @__PURE__ */ function() {
|
|
5632
5639
|
return function(u, x, d, p) {
|
|
5633
|
-
var E = getDefaultCurveSegments(), g, _, y, S, C,
|
|
5640
|
+
var E = getDefaultCurveSegments(), g, _, y, S, C, b = 0, A, R = [], I = [], q = bezierLengthPool.newElement();
|
|
5634
5641
|
for (y = d.length, g = 0; g < E; g += 1) {
|
|
5635
5642
|
for (C = g / (E - 1), A = 0, _ = 0; _ < y; _ += 1)
|
|
5636
5643
|
S = bmPow(1 - C, 3) * u[_] + 3 * bmPow(1 - C, 2) * C * d[_] + 3 * (1 - C) * bmPow(C, 2) * p[_] + bmPow(C, 3) * x[_], R[_] = S, I[_] !== null && (A += bmPow(R[_] - I[_], 2)), I[_] = R[_];
|
|
5637
|
-
A && (A = bmSqrt(A),
|
|
5644
|
+
A && (A = bmSqrt(A), b += A), q.percents[g] = C, q.lengths[g] = b;
|
|
5638
5645
|
}
|
|
5639
|
-
return
|
|
5646
|
+
return q.addedLength = b, q;
|
|
5640
5647
|
};
|
|
5641
5648
|
}();
|
|
5642
5649
|
function s(u) {
|
|
@@ -5656,13 +5663,13 @@ function requireLottie() {
|
|
|
5656
5663
|
return function(x, d, p, E) {
|
|
5657
5664
|
var g = (x[0] + "_" + x[1] + "_" + d[0] + "_" + d[1] + "_" + p[0] + "_" + p[1] + "_" + E[0] + "_" + E[1]).replace(/\./g, "p");
|
|
5658
5665
|
if (!u[g]) {
|
|
5659
|
-
var _ = getDefaultCurveSegments(), y, S, C,
|
|
5666
|
+
var _ = getDefaultCurveSegments(), y, S, C, b, A, R = 0, I, q, X = null;
|
|
5660
5667
|
x.length === 2 && (x[0] !== d[0] || x[1] !== d[1]) && t(x[0], x[1], d[0], d[1], x[0] + p[0], x[1] + p[1]) && t(x[0], x[1], d[0], d[1], d[0] + E[0], d[1] + E[1]) && (_ = 2);
|
|
5661
5668
|
var W = new n(_);
|
|
5662
5669
|
for (C = p.length, y = 0; y < _; y += 1) {
|
|
5663
|
-
for (
|
|
5664
|
-
|
|
5665
|
-
I = bmSqrt(I), R += I, W.points[y] = new a(I,
|
|
5670
|
+
for (q = createSizedArray(C), A = y / (_ - 1), I = 0, S = 0; S < C; S += 1)
|
|
5671
|
+
b = bmPow(1 - A, 3) * x[S] + 3 * bmPow(1 - A, 2) * A * (x[S] + p[S]) + 3 * (1 - A) * bmPow(A, 2) * (d[S] + E[S]) + bmPow(A, 3) * d[S], q[S] = b, X !== null && (I += bmPow(q[S] - X[S], 2));
|
|
5672
|
+
I = bmSqrt(I), R += I, W.points[y] = new a(I, q), X = q;
|
|
5666
5673
|
}
|
|
5667
5674
|
W.segmentLength = R, u[g] = W;
|
|
5668
5675
|
}
|
|
@@ -5690,9 +5697,9 @@ function requireLottie() {
|
|
|
5690
5697
|
E < 0 ? E = 0 : E > 1 && (E = 1);
|
|
5691
5698
|
var y = l(E, _);
|
|
5692
5699
|
g = g > 1 ? 1 : g;
|
|
5693
|
-
var S = l(g, _), C,
|
|
5694
|
-
for (C = 0; C <
|
|
5695
|
-
c[C * 4] = e.round((I * u[C] +
|
|
5700
|
+
var S = l(g, _), C, b = u.length, A = 1 - y, R = 1 - S, I = A * A * A, q = y * A * A * 3, X = y * y * A * 3, W = y * y * y, K = A * A * R, ae = y * A * R + A * y * R + A * A * S, Y = y * y * R + A * y * S + y * A * S, L = y * y * S, j = A * R * R, T = y * R * R + A * S * R + A * R * S, k = y * S * R + A * S * S + y * R * S, M = y * S * S, D = R * R * R, P = S * R * R + R * S * R + R * R * S, H = S * S * R + R * S * S + S * R * S, B = S * S * S;
|
|
5701
|
+
for (C = 0; C < b; C += 1)
|
|
5702
|
+
c[C * 4] = e.round((I * u[C] + q * d[C] + X * p[C] + W * x[C]) * 1e3) / 1e3, c[C * 4 + 1] = e.round((K * u[C] + ae * d[C] + Y * p[C] + L * x[C]) * 1e3) / 1e3, c[C * 4 + 2] = e.round((j * u[C] + T * d[C] + k * p[C] + M * x[C]) * 1e3) / 1e3, c[C * 4 + 3] = e.round((D * u[C] + P * d[C] + H * p[C] + B * x[C]) * 1e3) / 1e3;
|
|
5696
5703
|
return c;
|
|
5697
5704
|
}
|
|
5698
5705
|
return {
|
|
@@ -5730,14 +5737,14 @@ function requireLottie() {
|
|
|
5730
5737
|
i[m] = S.points[C].point[m];
|
|
5731
5738
|
} else {
|
|
5732
5739
|
c.__fnct ? E = c.__fnct : (E = BezierFactory.getBezierEasing(l.o.x, l.o.y, l.i.x, l.i.y, l.n).get, c.__fnct = E), x = E((e - _) / (g - _));
|
|
5733
|
-
var
|
|
5740
|
+
var b = S.segmentLength * x, A, R = t.lastFrame < e && t._lastKeyframeIndex === n ? t._lastAddedLength : 0;
|
|
5734
5741
|
for (p = t.lastFrame < e && t._lastKeyframeIndex === n ? t._lastPoint : 0, o = !0, d = S.points.length; o; ) {
|
|
5735
|
-
if (R += S.points[p].partialLength,
|
|
5742
|
+
if (R += S.points[p].partialLength, b === 0 || x === 0 || p === S.points.length - 1) {
|
|
5736
5743
|
for (u = S.points[p].point.length, m = 0; m < u; m += 1)
|
|
5737
5744
|
i[m] = S.points[p].point[m];
|
|
5738
5745
|
break;
|
|
5739
|
-
} else if (
|
|
5740
|
-
for (A = (
|
|
5746
|
+
} else if (b >= R && b < R + S.points[p + 1].partialLength) {
|
|
5747
|
+
for (A = (b - R) / S.points[p + 1].partialLength, u = S.points[p].point.length, m = 0; m < u; m += 1)
|
|
5741
5748
|
i[m] = S.points[p].point[m] + (S.points[p + 1].point[m] - S.points[p].point[m]) * A;
|
|
5742
5749
|
break;
|
|
5743
5750
|
}
|
|
@@ -5746,19 +5753,19 @@ function requireLottie() {
|
|
|
5746
5753
|
t._lastPoint = p, t._lastAddedLength = R - S.points[p].partialLength, t._lastKeyframeIndex = n;
|
|
5747
5754
|
}
|
|
5748
5755
|
} else {
|
|
5749
|
-
var I,
|
|
5756
|
+
var I, q, X, W, K;
|
|
5750
5757
|
if (a = l.s.length, y = f.s || l.e, this.sh && l.h !== 1)
|
|
5751
5758
|
if (e >= g)
|
|
5752
5759
|
i[0] = y[0], i[1] = y[1], i[2] = y[2];
|
|
5753
5760
|
else if (e <= _)
|
|
5754
5761
|
i[0] = l.s[0], i[1] = l.s[1], i[2] = l.s[2];
|
|
5755
5762
|
else {
|
|
5756
|
-
var
|
|
5757
|
-
quaternionToEuler(i, slerp(
|
|
5763
|
+
var ae = createQuaternion(l.s), Y = createQuaternion(y), L = (e - _) / (g - _);
|
|
5764
|
+
quaternionToEuler(i, slerp(ae, Y, L));
|
|
5758
5765
|
}
|
|
5759
5766
|
else
|
|
5760
5767
|
for (n = 0; n < a; n += 1)
|
|
5761
|
-
l.h !== 1 && (e >= g ? x = 1 : e < _ ? x = 0 : (l.o.x.constructor === Array ? (c.__fnct || (c.__fnct = []), c.__fnct[n] ? E = c.__fnct[n] : (I = l.o.x[n] === void 0 ? l.o.x[0] : l.o.x[n],
|
|
5768
|
+
l.h !== 1 && (e >= g ? x = 1 : e < _ ? x = 0 : (l.o.x.constructor === Array ? (c.__fnct || (c.__fnct = []), c.__fnct[n] ? E = c.__fnct[n] : (I = l.o.x[n] === void 0 ? l.o.x[0] : l.o.x[n], q = l.o.y[n] === void 0 ? l.o.y[0] : l.o.y[n], X = l.i.x[n] === void 0 ? l.i.x[0] : l.i.x[n], W = l.i.y[n] === void 0 ? l.i.y[0] : l.i.y[n], E = BezierFactory.getBezierEasing(I, q, X, W).get, c.__fnct[n] = E)) : c.__fnct ? E = c.__fnct : (I = l.o.x, q = l.o.y, X = l.i.x, W = l.i.y, E = BezierFactory.getBezierEasing(I, q, X, W).get, l.keyframeMetadata = E), x = E((e - _) / (g - _)))), y = f.s || l.e, K = l.h === 1 ? l.s[n] : l.s[n] + (y[n] - l.s[n]) * x, this.propType === "multidimensional" ? i[n] = K : i = K;
|
|
5762
5769
|
}
|
|
5763
5770
|
return t.lastIndex = s, i;
|
|
5764
5771
|
}
|
|
@@ -5979,30 +5986,30 @@ function requireLottie() {
|
|
|
5979
5986
|
}(), ShapePropertyFactory = function() {
|
|
5980
5987
|
var e = -999999;
|
|
5981
5988
|
function t(g, _, y) {
|
|
5982
|
-
var S = y.lastIndex, C,
|
|
5983
|
-
if (g <
|
|
5984
|
-
C =
|
|
5985
|
-
else if (g >=
|
|
5986
|
-
C =
|
|
5989
|
+
var S = y.lastIndex, C, b, A, R, I, q, X, W, K, ae = this.keyframes;
|
|
5990
|
+
if (g < ae[0].t - this.offsetTime)
|
|
5991
|
+
C = ae[0].s[0], A = !0, S = 0;
|
|
5992
|
+
else if (g >= ae[ae.length - 1].t - this.offsetTime)
|
|
5993
|
+
C = ae[ae.length - 1].s ? ae[ae.length - 1].s[0] : ae[ae.length - 2].e[0], A = !0;
|
|
5987
5994
|
else {
|
|
5988
|
-
for (var
|
|
5989
|
-
|
|
5990
|
-
if (M = this.keyframesMetadata[
|
|
5995
|
+
for (var Y = S, L = ae.length - 1, j = !0, T, k, M; j && (T = ae[Y], k = ae[Y + 1], !(k.t - this.offsetTime > g)); )
|
|
5996
|
+
Y < L - 1 ? Y += 1 : j = !1;
|
|
5997
|
+
if (M = this.keyframesMetadata[Y] || {}, A = T.h === 1, S = Y, !A) {
|
|
5991
5998
|
if (g >= k.t - this.offsetTime)
|
|
5992
5999
|
W = 1;
|
|
5993
|
-
else if (g <
|
|
6000
|
+
else if (g < T.t - this.offsetTime)
|
|
5994
6001
|
W = 0;
|
|
5995
6002
|
else {
|
|
5996
6003
|
var D;
|
|
5997
|
-
M.__fnct ? D = M.__fnct : (D = BezierFactory.getBezierEasing(
|
|
6004
|
+
M.__fnct ? D = M.__fnct : (D = BezierFactory.getBezierEasing(T.o.x, T.o.y, T.i.x, T.i.y).get, M.__fnct = D), W = D((g - (T.t - this.offsetTime)) / (k.t - this.offsetTime - (T.t - this.offsetTime)));
|
|
5998
6005
|
}
|
|
5999
|
-
|
|
6006
|
+
b = k.s ? k.s[0] : T.e[0];
|
|
6000
6007
|
}
|
|
6001
|
-
C =
|
|
6008
|
+
C = T.s[0];
|
|
6002
6009
|
}
|
|
6003
|
-
for (
|
|
6010
|
+
for (q = _._length, X = C.i[0].length, y.lastIndex = S, R = 0; R < q; R += 1)
|
|
6004
6011
|
for (I = 0; I < X; I += 1)
|
|
6005
|
-
K = A ? C.i[R][I] : C.i[R][I] + (
|
|
6012
|
+
K = A ? C.i[R][I] : C.i[R][I] + (b.i[R][I] - C.i[R][I]) * W, _.i[R][I] = K, K = A ? C.o[R][I] : C.o[R][I] + (b.o[R][I] - C.o[R][I]) * W, _.o[R][I] = K, K = A ? C.v[R][I] : C.v[R][I] + (b.v[R][I] - C.v[R][I]) * W, _.v[R][I] = K;
|
|
6006
6013
|
}
|
|
6007
6014
|
function r() {
|
|
6008
6015
|
var g = this.comp.renderedFrame - this.offsetTime, _ = this.keyframes[0].t - this.offsetTime, y = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, S = this._caching.lastFrame;
|
|
@@ -6071,8 +6078,8 @@ function requireLottie() {
|
|
|
6071
6078
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
6072
6079
|
},
|
|
6073
6080
|
convertEllToPath: function() {
|
|
6074
|
-
var S = this.p.v[0], C = this.p.v[1],
|
|
6075
|
-
I.v[0][0] = S, I.v[0][1] = C - A, I.v[1][0] = R ? S +
|
|
6081
|
+
var S = this.p.v[0], C = this.p.v[1], b = this.s.v[0] / 2, A = this.s.v[1] / 2, R = this.d !== 3, I = this.v;
|
|
6082
|
+
I.v[0][0] = S, I.v[0][1] = C - A, I.v[1][0] = R ? S + b : S - b, I.v[1][1] = C, I.v[2][0] = S, I.v[2][1] = C + A, I.v[3][0] = R ? S - b : S + b, I.v[3][1] = C, I.i[0][0] = R ? S - b * g : S + b * g, I.i[0][1] = C - A, I.i[1][0] = R ? S + b : S - b, I.i[1][1] = C - A * g, I.i[2][0] = R ? S + b * g : S - b * g, I.i[2][1] = C + A, I.i[3][0] = R ? S - b : S + b, I.i[3][1] = C + A * g, I.o[0][0] = R ? S + b * g : S - b * g, I.o[0][1] = C - A, I.o[1][0] = R ? S + b : S - b, I.o[1][1] = C + A * g, I.o[2][0] = R ? S - b * g : S + b * g, I.o[2][1] = C + A, I.o[3][0] = R ? S - b : S + b, I.o[3][1] = C - A * g;
|
|
6076
6083
|
}
|
|
6077
6084
|
}, extendPrototype([DynamicPropertyContainer], _), _;
|
|
6078
6085
|
}(), m = function() {
|
|
@@ -6085,20 +6092,20 @@ function requireLottie() {
|
|
|
6085
6092
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
6086
6093
|
},
|
|
6087
6094
|
convertStarToPath: function() {
|
|
6088
|
-
var y = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / y, C = !0,
|
|
6095
|
+
var y = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / y, C = !0, b = this.or.v, A = this.ir.v, R = this.os.v, I = this.is.v, q = 2 * Math.PI * b / (y * 2), X = 2 * Math.PI * A / (y * 2), W, K, ae, Y, L = -Math.PI / 2;
|
|
6089
6096
|
L += this.r.v;
|
|
6090
6097
|
var j = this.data.d === 3 ? -1 : 1;
|
|
6091
6098
|
for (this.v._length = 0, W = 0; W < y; W += 1) {
|
|
6092
|
-
K = C ?
|
|
6093
|
-
var
|
|
6094
|
-
|
|
6099
|
+
K = C ? b : A, ae = C ? R : I, Y = C ? q : X;
|
|
6100
|
+
var T = K * Math.cos(L), k = K * Math.sin(L), M = T === 0 && k === 0 ? 0 : k / Math.sqrt(T * T + k * k), D = T === 0 && k === 0 ? 0 : -T / Math.sqrt(T * T + k * k);
|
|
6101
|
+
T += +this.p.v[0], k += +this.p.v[1], this.v.setTripleAt(T, k, T - M * Y * ae * j, k - D * Y * ae * j, T + M * Y * ae * j, k + D * Y * ae * j, W, !0), C = !C, L += S * j;
|
|
6095
6102
|
}
|
|
6096
6103
|
},
|
|
6097
6104
|
convertPolygonToPath: function() {
|
|
6098
|
-
var y = Math.floor(this.pt.v), S = Math.PI * 2 / y, C = this.or.v,
|
|
6105
|
+
var y = Math.floor(this.pt.v), S = Math.PI * 2 / y, C = this.or.v, b = this.os.v, A = 2 * Math.PI * C / (y * 4), R, I = -Math.PI * 0.5, q = this.data.d === 3 ? -1 : 1;
|
|
6099
6106
|
for (I += this.r.v, this.v._length = 0, R = 0; R < y; R += 1) {
|
|
6100
|
-
var X = C * Math.cos(I), W = C * Math.sin(I), K = X === 0 && W === 0 ? 0 : W / Math.sqrt(X * X + W * W),
|
|
6101
|
-
X += +this.p.v[0], W += +this.p.v[1], this.v.setTripleAt(X, W, X - K * A *
|
|
6107
|
+
var X = C * Math.cos(I), W = C * Math.sin(I), K = X === 0 && W === 0 ? 0 : W / Math.sqrt(X * X + W * W), ae = X === 0 && W === 0 ? 0 : -X / Math.sqrt(X * X + W * W);
|
|
6108
|
+
X += +this.p.v[0], W += +this.p.v[1], this.v.setTripleAt(X, W, X - K * A * b * q, W - ae * A * b * q, X + K * A * b * q, W + ae * A * b * q, R, !0), I += S * q;
|
|
6102
6109
|
}
|
|
6103
6110
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
6104
6111
|
}
|
|
@@ -6109,8 +6116,8 @@ function requireLottie() {
|
|
|
6109
6116
|
}
|
|
6110
6117
|
return g.prototype = {
|
|
6111
6118
|
convertRectToPath: function() {
|
|
6112
|
-
var y = this.p.v[0], S = this.p.v[1], C = this.s.v[0] / 2,
|
|
6113
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(y + C, S -
|
|
6119
|
+
var y = this.p.v[0], S = this.p.v[1], C = this.s.v[0] / 2, b = this.s.v[1] / 2, A = bmMin(C, b, this.r.v), R = A * (1 - roundCorner);
|
|
6120
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(y + C, S - b + A, y + C, S - b + A, y + C, S - b + R, 0, !0), this.v.setTripleAt(y + C, S + b - A, y + C, S + b - R, y + C, S + b - A, 1, !0), A !== 0 ? (this.v.setTripleAt(y + C - A, S + b, y + C - A, S + b, y + C - R, S + b, 2, !0), this.v.setTripleAt(y - C + A, S + b, y - C + R, S + b, y - C + A, S + b, 3, !0), this.v.setTripleAt(y - C, S + b - A, y - C, S + b - A, y - C, S + b - R, 4, !0), this.v.setTripleAt(y - C, S - b + A, y - C, S - b + R, y - C, S - b + A, 5, !0), this.v.setTripleAt(y - C + A, S - b, y - C + A, S - b, y - C + R, S - b, 6, !0), this.v.setTripleAt(y + C - A, S - b, y + C - R, S - b, y + C - A, S - b, 7, !0)) : (this.v.setTripleAt(y - C, S + b, y - C + R, S + b, y - C, S + b, 2), this.v.setTripleAt(y - C, S - b, y - C, S - b + R, y - C, S - b, 3))) : (this.v.setTripleAt(y + C, S - b + A, y + C, S - b + R, y + C, S - b + A, 0, !0), A !== 0 ? (this.v.setTripleAt(y + C - A, S - b, y + C - A, S - b, y + C - R, S - b, 1, !0), this.v.setTripleAt(y - C + A, S - b, y - C + R, S - b, y - C + A, S - b, 2, !0), this.v.setTripleAt(y - C, S - b + A, y - C, S - b + A, y - C, S - b + R, 3, !0), this.v.setTripleAt(y - C, S + b - A, y - C, S + b - R, y - C, S + b - A, 4, !0), this.v.setTripleAt(y - C + A, S + b, y - C + A, S + b, y - C + R, S + b, 5, !0), this.v.setTripleAt(y + C - A, S + b, y + C - R, S + b, y + C - A, S + b, 6, !0), this.v.setTripleAt(y + C, S + b - A, y + C, S + b - A, y + C, S + b - R, 7, !0)) : (this.v.setTripleAt(y - C, S - b, y - C + R, S - b, y - C, S - b, 1, !0), this.v.setTripleAt(y - C, S + b, y - C, S + b - R, y - C, S + b, 2, !0), this.v.setTripleAt(y + C, S + b, y + C - R, S + b, y + C, S + b, 3, !0)));
|
|
6114
6121
|
},
|
|
6115
6122
|
getValue: function() {
|
|
6116
6123
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
@@ -6121,8 +6128,8 @@ function requireLottie() {
|
|
|
6121
6128
|
function x(g, _, y) {
|
|
6122
6129
|
var S;
|
|
6123
6130
|
if (y === 3 || y === 4) {
|
|
6124
|
-
var C = y === 3 ? _.pt : _.ks,
|
|
6125
|
-
|
|
6131
|
+
var C = y === 3 ? _.pt : _.ks, b = C.k;
|
|
6132
|
+
b.length ? S = new f(g, _, y) : S = new o(g, _, y);
|
|
6126
6133
|
} else y === 5 ? S = new u(g, _) : y === 6 ? S = new c(g, _) : y === 7 && (S = new m(g, _));
|
|
6127
6134
|
return S.k && g.addDynamicProperty(S), S;
|
|
6128
6135
|
}
|
|
@@ -6148,147 +6155,147 @@ function requireLottie() {
|
|
|
6148
6155
|
function s() {
|
|
6149
6156
|
return this.props[0] = 1, this.props[1] = 0, this.props[2] = 0, this.props[3] = 0, this.props[4] = 0, this.props[5] = 1, this.props[6] = 0, this.props[7] = 0, this.props[8] = 0, this.props[9] = 0, this.props[10] = 1, this.props[11] = 0, this.props[12] = 0, this.props[13] = 0, this.props[14] = 0, this.props[15] = 1, this;
|
|
6150
6157
|
}
|
|
6151
|
-
function n(
|
|
6152
|
-
if (
|
|
6158
|
+
function n(T) {
|
|
6159
|
+
if (T === 0)
|
|
6153
6160
|
return this;
|
|
6154
|
-
var k = e(
|
|
6161
|
+
var k = e(T), M = t(T);
|
|
6155
6162
|
return this._t(k, -M, 0, 0, M, k, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
6156
6163
|
}
|
|
6157
|
-
function a(
|
|
6158
|
-
if (
|
|
6164
|
+
function a(T) {
|
|
6165
|
+
if (T === 0)
|
|
6159
6166
|
return this;
|
|
6160
|
-
var k = e(
|
|
6167
|
+
var k = e(T), M = t(T);
|
|
6161
6168
|
return this._t(1, 0, 0, 0, 0, k, -M, 0, 0, M, k, 0, 0, 0, 0, 1);
|
|
6162
6169
|
}
|
|
6163
|
-
function o(
|
|
6164
|
-
if (
|
|
6170
|
+
function o(T) {
|
|
6171
|
+
if (T === 0)
|
|
6165
6172
|
return this;
|
|
6166
|
-
var k = e(
|
|
6173
|
+
var k = e(T), M = t(T);
|
|
6167
6174
|
return this._t(k, 0, M, 0, 0, 1, 0, 0, -M, 0, k, 0, 0, 0, 0, 1);
|
|
6168
6175
|
}
|
|
6169
|
-
function l(
|
|
6170
|
-
if (
|
|
6176
|
+
function l(T) {
|
|
6177
|
+
if (T === 0)
|
|
6171
6178
|
return this;
|
|
6172
|
-
var k = e(
|
|
6179
|
+
var k = e(T), M = t(T);
|
|
6173
6180
|
return this._t(k, -M, 0, 0, M, k, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
6174
6181
|
}
|
|
6175
|
-
function f(
|
|
6176
|
-
return this._t(1, k,
|
|
6182
|
+
function f(T, k) {
|
|
6183
|
+
return this._t(1, k, T, 1, 0, 0);
|
|
6177
6184
|
}
|
|
6178
|
-
function c(
|
|
6179
|
-
return this.shear(r(
|
|
6185
|
+
function c(T, k) {
|
|
6186
|
+
return this.shear(r(T), r(k));
|
|
6180
6187
|
}
|
|
6181
|
-
function m(
|
|
6188
|
+
function m(T, k) {
|
|
6182
6189
|
var M = e(k), D = t(k);
|
|
6183
|
-
return this._t(M, D, 0, 0, -D, M, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(
|
|
6190
|
+
return this._t(M, D, 0, 0, -D, M, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(T), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(M, -D, 0, 0, D, M, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
6184
6191
|
}
|
|
6185
|
-
function u(
|
|
6186
|
-
return !M && M !== 0 && (M = 1),
|
|
6192
|
+
function u(T, k, M) {
|
|
6193
|
+
return !M && M !== 0 && (M = 1), T === 1 && k === 1 && M === 1 ? this : this._t(T, 0, 0, 0, 0, k, 0, 0, 0, 0, M, 0, 0, 0, 0, 1);
|
|
6187
6194
|
}
|
|
6188
|
-
function x(
|
|
6189
|
-
return this.props[0] =
|
|
6195
|
+
function x(T, k, M, D, P, H, B, z, re, ce, fe, pe, le, Se, Ce, Te) {
|
|
6196
|
+
return this.props[0] = T, this.props[1] = k, this.props[2] = M, this.props[3] = D, this.props[4] = P, this.props[5] = H, this.props[6] = B, this.props[7] = z, this.props[8] = re, this.props[9] = ce, this.props[10] = fe, this.props[11] = pe, this.props[12] = le, this.props[13] = Se, this.props[14] = Ce, this.props[15] = Te, this;
|
|
6190
6197
|
}
|
|
6191
|
-
function d(
|
|
6192
|
-
return M = M || 0,
|
|
6198
|
+
function d(T, k, M) {
|
|
6199
|
+
return M = M || 0, T !== 0 || k !== 0 || M !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, T, k, M, 1) : this;
|
|
6193
6200
|
}
|
|
6194
|
-
function p(
|
|
6201
|
+
function p(T, k, M, D, P, H, B, z, re, ce, fe, pe, le, Se, Ce, Te) {
|
|
6195
6202
|
var he = this.props;
|
|
6196
|
-
if (
|
|
6197
|
-
return he[12] = he[12] *
|
|
6203
|
+
if (T === 1 && k === 0 && M === 0 && D === 0 && P === 0 && H === 1 && B === 0 && z === 0 && re === 0 && ce === 0 && fe === 1 && pe === 0)
|
|
6204
|
+
return he[12] = he[12] * T + he[15] * le, he[13] = he[13] * H + he[15] * Se, he[14] = he[14] * fe + he[15] * Ce, he[15] *= Te, this._identityCalculated = !1, this;
|
|
6198
6205
|
var je = he[0], ke = he[1], ye = he[2], Fe = he[3], Ie = he[4], Ve = he[5], Pe = he[6], Je = he[7], $e = he[8], De = he[9], Ke = he[10], Ue = he[11], Ge = he[12], Le = he[13], ze = he[14], et = he[15];
|
|
6199
|
-
return he[0] = je *
|
|
6206
|
+
return he[0] = je * T + ke * P + ye * re + Fe * le, he[1] = je * k + ke * H + ye * ce + Fe * Se, he[2] = je * M + ke * B + ye * fe + Fe * Ce, he[3] = je * D + ke * z + ye * pe + Fe * Te, he[4] = Ie * T + Ve * P + Pe * re + Je * le, he[5] = Ie * k + Ve * H + Pe * ce + Je * Se, he[6] = Ie * M + Ve * B + Pe * fe + Je * Ce, he[7] = Ie * D + Ve * z + Pe * pe + Je * Te, he[8] = $e * T + De * P + Ke * re + Ue * le, he[9] = $e * k + De * H + Ke * ce + Ue * Se, he[10] = $e * M + De * B + Ke * fe + Ue * Ce, he[11] = $e * D + De * z + Ke * pe + Ue * Te, he[12] = Ge * T + Le * P + ze * re + et * le, he[13] = Ge * k + Le * H + ze * ce + et * Se, he[14] = Ge * M + Le * B + ze * fe + et * Ce, he[15] = Ge * D + Le * z + ze * pe + et * Te, this._identityCalculated = !1, this;
|
|
6200
6207
|
}
|
|
6201
|
-
function E(
|
|
6202
|
-
var k =
|
|
6208
|
+
function E(T) {
|
|
6209
|
+
var k = T.props;
|
|
6203
6210
|
return this.transform(k[0], k[1], k[2], k[3], k[4], k[5], k[6], k[7], k[8], k[9], k[10], k[11], k[12], k[13], k[14], k[15]);
|
|
6204
6211
|
}
|
|
6205
6212
|
function g() {
|
|
6206
6213
|
return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
|
|
6207
6214
|
}
|
|
6208
|
-
function _(
|
|
6215
|
+
function _(T) {
|
|
6209
6216
|
for (var k = 0; k < 16; ) {
|
|
6210
|
-
if (
|
|
6217
|
+
if (T.props[k] !== this.props[k])
|
|
6211
6218
|
return !1;
|
|
6212
6219
|
k += 1;
|
|
6213
6220
|
}
|
|
6214
6221
|
return !0;
|
|
6215
6222
|
}
|
|
6216
|
-
function y(
|
|
6223
|
+
function y(T) {
|
|
6217
6224
|
var k;
|
|
6218
6225
|
for (k = 0; k < 16; k += 1)
|
|
6219
|
-
|
|
6220
|
-
return
|
|
6226
|
+
T.props[k] = this.props[k];
|
|
6227
|
+
return T;
|
|
6221
6228
|
}
|
|
6222
|
-
function S(
|
|
6229
|
+
function S(T) {
|
|
6223
6230
|
var k;
|
|
6224
6231
|
for (k = 0; k < 16; k += 1)
|
|
6225
|
-
this.props[k] =
|
|
6232
|
+
this.props[k] = T[k];
|
|
6226
6233
|
}
|
|
6227
|
-
function C(
|
|
6234
|
+
function C(T, k, M) {
|
|
6228
6235
|
return {
|
|
6229
|
-
x:
|
|
6230
|
-
y:
|
|
6231
|
-
z:
|
|
6236
|
+
x: T * this.props[0] + k * this.props[4] + M * this.props[8] + this.props[12],
|
|
6237
|
+
y: T * this.props[1] + k * this.props[5] + M * this.props[9] + this.props[13],
|
|
6238
|
+
z: T * this.props[2] + k * this.props[6] + M * this.props[10] + this.props[14]
|
|
6232
6239
|
};
|
|
6233
6240
|
}
|
|
6234
|
-
function T
|
|
6235
|
-
return
|
|
6241
|
+
function b(T, k, M) {
|
|
6242
|
+
return T * this.props[0] + k * this.props[4] + M * this.props[8] + this.props[12];
|
|
6236
6243
|
}
|
|
6237
|
-
function A(
|
|
6238
|
-
return
|
|
6244
|
+
function A(T, k, M) {
|
|
6245
|
+
return T * this.props[1] + k * this.props[5] + M * this.props[9] + this.props[13];
|
|
6239
6246
|
}
|
|
6240
|
-
function R(
|
|
6241
|
-
return
|
|
6247
|
+
function R(T, k, M) {
|
|
6248
|
+
return T * this.props[2] + k * this.props[6] + M * this.props[10] + this.props[14];
|
|
6242
6249
|
}
|
|
6243
6250
|
function I() {
|
|
6244
|
-
var
|
|
6251
|
+
var T = this.props[0] * this.props[5] - this.props[1] * this.props[4], k = this.props[5] / T, M = -this.props[1] / T, D = -this.props[4] / T, P = this.props[0] / T, H = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / T, B = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / T, z = new Matrix();
|
|
6245
6252
|
return z.props[0] = k, z.props[1] = M, z.props[4] = D, z.props[5] = P, z.props[12] = H, z.props[13] = B, z;
|
|
6246
6253
|
}
|
|
6247
|
-
function
|
|
6254
|
+
function q(T) {
|
|
6248
6255
|
var k = this.getInverseMatrix();
|
|
6249
|
-
return k.applyToPointArray(
|
|
6256
|
+
return k.applyToPointArray(T[0], T[1], T[2] || 0);
|
|
6250
6257
|
}
|
|
6251
|
-
function X(
|
|
6252
|
-
var k, M =
|
|
6258
|
+
function X(T) {
|
|
6259
|
+
var k, M = T.length, D = [];
|
|
6253
6260
|
for (k = 0; k < M; k += 1)
|
|
6254
|
-
D[k] =
|
|
6261
|
+
D[k] = q(T[k]);
|
|
6255
6262
|
return D;
|
|
6256
6263
|
}
|
|
6257
|
-
function W(
|
|
6264
|
+
function W(T, k, M) {
|
|
6258
6265
|
var D = createTypedArray("float32", 6);
|
|
6259
6266
|
if (this.isIdentity())
|
|
6260
|
-
D[0] =
|
|
6267
|
+
D[0] = T[0], D[1] = T[1], D[2] = k[0], D[3] = k[1], D[4] = M[0], D[5] = M[1];
|
|
6261
6268
|
else {
|
|
6262
6269
|
var P = this.props[0], H = this.props[1], B = this.props[4], z = this.props[5], re = this.props[12], ce = this.props[13];
|
|
6263
|
-
D[0] =
|
|
6270
|
+
D[0] = T[0] * P + T[1] * B + re, D[1] = T[0] * H + T[1] * z + ce, D[2] = k[0] * P + k[1] * B + re, D[3] = k[0] * H + k[1] * z + ce, D[4] = M[0] * P + M[1] * B + re, D[5] = M[0] * H + M[1] * z + ce;
|
|
6264
6271
|
}
|
|
6265
6272
|
return D;
|
|
6266
6273
|
}
|
|
6267
|
-
function K(
|
|
6274
|
+
function K(T, k, M) {
|
|
6268
6275
|
var D;
|
|
6269
|
-
return this.isIdentity() ? D = [
|
|
6276
|
+
return this.isIdentity() ? D = [T, k, M] : D = [T * this.props[0] + k * this.props[4] + M * this.props[8] + this.props[12], T * this.props[1] + k * this.props[5] + M * this.props[9] + this.props[13], T * this.props[2] + k * this.props[6] + M * this.props[10] + this.props[14]], D;
|
|
6270
6277
|
}
|
|
6271
|
-
function
|
|
6278
|
+
function ae(T, k) {
|
|
6272
6279
|
if (this.isIdentity())
|
|
6273
|
-
return
|
|
6280
|
+
return T + "," + k;
|
|
6274
6281
|
var M = this.props;
|
|
6275
|
-
return Math.round((
|
|
6282
|
+
return Math.round((T * M[0] + k * M[4] + M[12]) * 100) / 100 + "," + Math.round((T * M[1] + k * M[5] + M[13]) * 100) / 100;
|
|
6276
6283
|
}
|
|
6277
|
-
function
|
|
6278
|
-
for (var
|
|
6279
|
-
M += i(k[
|
|
6284
|
+
function Y() {
|
|
6285
|
+
for (var T = 0, k = this.props, M = "matrix3d(", D = 1e4; T < 16; )
|
|
6286
|
+
M += i(k[T] * D) / D, M += T === 15 ? ")" : ",", T += 1;
|
|
6280
6287
|
return M;
|
|
6281
6288
|
}
|
|
6282
|
-
function L(
|
|
6289
|
+
function L(T) {
|
|
6283
6290
|
var k = 1e4;
|
|
6284
|
-
return
|
|
6291
|
+
return T < 1e-6 && T > 0 || T > -1e-6 && T < 0 ? i(T * k) / k : T;
|
|
6285
6292
|
}
|
|
6286
6293
|
function j() {
|
|
6287
|
-
var
|
|
6294
|
+
var T = this.props, k = L(T[0]), M = L(T[1]), D = L(T[4]), P = L(T[5]), H = L(T[12]), B = L(T[13]);
|
|
6288
6295
|
return "matrix(" + k + "," + M + "," + D + "," + P + "," + H + "," + B + ")";
|
|
6289
6296
|
}
|
|
6290
6297
|
return function() {
|
|
6291
|
-
this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = o, this.rotateZ = l, this.skew = c, this.skewFromAxis = m, this.shear = f, this.scale = u, this.setTransform = x, this.translate = d, this.transform = p, this.multiply = E, this.applyToPoint = C, this.applyToX =
|
|
6298
|
+
this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = o, this.rotateZ = l, this.skew = c, this.skewFromAxis = m, this.shear = f, this.scale = u, this.setTransform = x, this.translate = d, this.transform = p, this.multiply = E, this.applyToPoint = C, this.applyToX = b, this.applyToY = A, this.applyToZ = R, this.applyToPointArray = K, this.applyToTriplePoints = W, this.applyToPointStringified = ae, this.toCSS = Y, this.to2dCSS = j, this.clone = y, this.cloneFromProps = S, this.equals = _, this.inversePoints = X, this.inversePoint = q, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = g, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
6292
6299
|
};
|
|
6293
6300
|
}();
|
|
6294
6301
|
function _typeof$3(e) {
|
|
@@ -6490,8 +6497,8 @@ function requireLottie() {
|
|
|
6490
6497
|
var C = this.addShapes(p, d[0]);
|
|
6491
6498
|
if (d[0].s !== d[0].e) {
|
|
6492
6499
|
if (d.length > 1) {
|
|
6493
|
-
var
|
|
6494
|
-
if (
|
|
6500
|
+
var b = p.shape.paths.shapes[p.shape.paths._length - 1];
|
|
6501
|
+
if (b.c) {
|
|
6495
6502
|
var A = C.pop();
|
|
6496
6503
|
this.addPaths(C, E), C = this.addShapes(p, d[1], A);
|
|
6497
6504
|
} else
|
|
@@ -7112,32 +7119,32 @@ function requireLottie() {
|
|
|
7112
7119
|
r = r.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
|
|
7113
7120
|
var i = 127988, s = 917631, n = 917601, a = 917626, o = 65039, l = 8205, f = 127462, c = 127487, m = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
7114
7121
|
function u(L) {
|
|
7115
|
-
var j = L.split(","),
|
|
7116
|
-
for (
|
|
7117
|
-
j[
|
|
7122
|
+
var j = L.split(","), T, k = j.length, M = [];
|
|
7123
|
+
for (T = 0; T < k; T += 1)
|
|
7124
|
+
j[T] !== "sans-serif" && j[T] !== "monospace" && M.push(j[T]);
|
|
7118
7125
|
return M.join(",");
|
|
7119
7126
|
}
|
|
7120
7127
|
function x(L, j) {
|
|
7121
|
-
var
|
|
7122
|
-
|
|
7128
|
+
var T = createTag("span");
|
|
7129
|
+
T.setAttribute("aria-hidden", !0), T.style.fontFamily = j;
|
|
7123
7130
|
var k = createTag("span");
|
|
7124
|
-
k.innerText = "giItT1WQy@!-/#",
|
|
7131
|
+
k.innerText = "giItT1WQy@!-/#", T.style.position = "absolute", T.style.left = "-10000px", T.style.top = "-10000px", T.style.fontSize = "300px", T.style.fontVariant = "normal", T.style.fontStyle = "normal", T.style.fontWeight = "normal", T.style.letterSpacing = "0", T.appendChild(k), document.body.appendChild(T);
|
|
7125
7132
|
var M = k.offsetWidth;
|
|
7126
7133
|
return k.style.fontFamily = u(L) + ", " + j, {
|
|
7127
7134
|
node: k,
|
|
7128
7135
|
w: M,
|
|
7129
|
-
parent:
|
|
7136
|
+
parent: T
|
|
7130
7137
|
};
|
|
7131
7138
|
}
|
|
7132
7139
|
function d() {
|
|
7133
|
-
var L, j = this.fonts.length,
|
|
7140
|
+
var L, j = this.fonts.length, T, k, M = j;
|
|
7134
7141
|
for (L = 0; L < j; L += 1)
|
|
7135
|
-
this.fonts[L].loaded ? M -= 1 : this.fonts[L].fOrigin === "n" || this.fonts[L].origin === 0 ? this.fonts[L].loaded = !0 : (
|
|
7142
|
+
this.fonts[L].loaded ? M -= 1 : this.fonts[L].fOrigin === "n" || this.fonts[L].origin === 0 ? this.fonts[L].loaded = !0 : (T = this.fonts[L].monoCase.node, k = this.fonts[L].monoCase.w, T.offsetWidth !== k ? (M -= 1, this.fonts[L].loaded = !0) : (T = this.fonts[L].sansCase.node, k = this.fonts[L].sansCase.w, T.offsetWidth !== k && (M -= 1, this.fonts[L].loaded = !0)), this.fonts[L].loaded && (this.fonts[L].sansCase.parent.parentNode.removeChild(this.fonts[L].sansCase.parent), this.fonts[L].monoCase.parent.parentNode.removeChild(this.fonts[L].monoCase.parent)));
|
|
7136
7143
|
M !== 0 && Date.now() - this.initTime < e ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
|
|
7137
7144
|
}
|
|
7138
7145
|
function p(L, j) {
|
|
7139
|
-
var
|
|
7140
|
-
if (
|
|
7146
|
+
var T = document.body && j ? "svg" : "canvas", k, M = getFontProperties(L);
|
|
7147
|
+
if (T === "svg") {
|
|
7141
7148
|
var D = createNS("text");
|
|
7142
7149
|
D.style.fontSize = "100px", D.setAttribute("font-family", L.fFamily), D.setAttribute("font-style", M.style), D.setAttribute("font-weight", M.weight), D.textContent = "1", L.fClass ? (D.style.fontFamily = "inherit", D.setAttribute("class", L.fClass)) : D.style.fontFamily = L.fFamily, j.appendChild(D), k = D;
|
|
7143
7150
|
} else {
|
|
@@ -7145,7 +7152,7 @@ function requireLottie() {
|
|
|
7145
7152
|
P.font = M.style + " " + M.weight + " 100px " + L.fFamily, k = P;
|
|
7146
7153
|
}
|
|
7147
7154
|
function H(B) {
|
|
7148
|
-
return
|
|
7155
|
+
return T === "svg" ? (k.textContent = B, k.getComputedTextLength()) : k.measureText(B).width;
|
|
7149
7156
|
}
|
|
7150
7157
|
return {
|
|
7151
7158
|
measureText: H
|
|
@@ -7166,55 +7173,55 @@ function requireLottie() {
|
|
|
7166
7173
|
}), this.fonts = L.list;
|
|
7167
7174
|
return;
|
|
7168
7175
|
}
|
|
7169
|
-
var
|
|
7176
|
+
var T = L.list, k, M = T.length, D = M;
|
|
7170
7177
|
for (k = 0; k < M; k += 1) {
|
|
7171
7178
|
var P = !0, H, B;
|
|
7172
|
-
if (
|
|
7173
|
-
|
|
7174
|
-
else if (
|
|
7175
|
-
if (H = document.querySelectorAll('style[f-forigin="p"][f-family="' +
|
|
7179
|
+
if (T[k].loaded = !1, T[k].monoCase = x(T[k].fFamily, "monospace"), T[k].sansCase = x(T[k].fFamily, "sans-serif"), !T[k].fPath)
|
|
7180
|
+
T[k].loaded = !0, D -= 1;
|
|
7181
|
+
else if (T[k].fOrigin === "p" || T[k].origin === 3) {
|
|
7182
|
+
if (H = document.querySelectorAll('style[f-forigin="p"][f-family="' + T[k].fFamily + '"], style[f-origin="3"][f-family="' + T[k].fFamily + '"]'), H.length > 0 && (P = !1), P) {
|
|
7176
7183
|
var z = createTag("style");
|
|
7177
|
-
z.setAttribute("f-forigin",
|
|
7184
|
+
z.setAttribute("f-forigin", T[k].fOrigin), z.setAttribute("f-origin", T[k].origin), z.setAttribute("f-family", T[k].fFamily), z.type = "text/css", z.innerText = "@font-face {font-family: " + T[k].fFamily + "; font-style: normal; src: url('" + T[k].fPath + "');}", j.appendChild(z);
|
|
7178
7185
|
}
|
|
7179
|
-
} else if (
|
|
7186
|
+
} else if (T[k].fOrigin === "g" || T[k].origin === 1) {
|
|
7180
7187
|
for (H = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), B = 0; B < H.length; B += 1)
|
|
7181
|
-
H[B].href.indexOf(
|
|
7188
|
+
H[B].href.indexOf(T[k].fPath) !== -1 && (P = !1);
|
|
7182
7189
|
if (P) {
|
|
7183
7190
|
var re = createTag("link");
|
|
7184
|
-
re.setAttribute("f-forigin",
|
|
7191
|
+
re.setAttribute("f-forigin", T[k].fOrigin), re.setAttribute("f-origin", T[k].origin), re.type = "text/css", re.rel = "stylesheet", re.href = T[k].fPath, document.body.appendChild(re);
|
|
7185
7192
|
}
|
|
7186
|
-
} else if (
|
|
7193
|
+
} else if (T[k].fOrigin === "t" || T[k].origin === 2) {
|
|
7187
7194
|
for (H = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), B = 0; B < H.length; B += 1)
|
|
7188
|
-
|
|
7195
|
+
T[k].fPath === H[B].src && (P = !1);
|
|
7189
7196
|
if (P) {
|
|
7190
7197
|
var ce = createTag("link");
|
|
7191
|
-
ce.setAttribute("f-forigin",
|
|
7198
|
+
ce.setAttribute("f-forigin", T[k].fOrigin), ce.setAttribute("f-origin", T[k].origin), ce.setAttribute("rel", "stylesheet"), ce.setAttribute("href", T[k].fPath), j.appendChild(ce);
|
|
7192
7199
|
}
|
|
7193
7200
|
}
|
|
7194
|
-
|
|
7201
|
+
T[k].helper = p(T[k], j), T[k].cache = {}, this.fonts.push(T[k]);
|
|
7195
7202
|
}
|
|
7196
7203
|
D === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
7197
7204
|
}
|
|
7198
7205
|
function g(L) {
|
|
7199
7206
|
if (L) {
|
|
7200
7207
|
this.chars || (this.chars = []);
|
|
7201
|
-
var j,
|
|
7202
|
-
for (j = 0; j <
|
|
7208
|
+
var j, T = L.length, k, M = this.chars.length, D;
|
|
7209
|
+
for (j = 0; j < T; j += 1) {
|
|
7203
7210
|
for (k = 0, D = !1; k < M; )
|
|
7204
7211
|
this.chars[k].style === L[j].style && this.chars[k].fFamily === L[j].fFamily && this.chars[k].ch === L[j].ch && (D = !0), k += 1;
|
|
7205
7212
|
D || (this.chars.push(L[j]), M += 1);
|
|
7206
7213
|
}
|
|
7207
7214
|
}
|
|
7208
7215
|
}
|
|
7209
|
-
function _(L, j,
|
|
7216
|
+
function _(L, j, T) {
|
|
7210
7217
|
for (var k = 0, M = this.chars.length; k < M; ) {
|
|
7211
|
-
if (this.chars[k].ch === L && this.chars[k].style === j && this.chars[k].fFamily ===
|
|
7218
|
+
if (this.chars[k].ch === L && this.chars[k].style === j && this.chars[k].fFamily === T)
|
|
7212
7219
|
return this.chars[k];
|
|
7213
7220
|
k += 1;
|
|
7214
7221
|
}
|
|
7215
|
-
return (typeof L == "string" && L.charCodeAt(0) !== 13 || !L) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", L, j,
|
|
7222
|
+
return (typeof L == "string" && L.charCodeAt(0) !== 13 || !L) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", L, j, T)), t;
|
|
7216
7223
|
}
|
|
7217
|
-
function y(L, j,
|
|
7224
|
+
function y(L, j, T) {
|
|
7218
7225
|
var k = this.getFontByName(j), M = L;
|
|
7219
7226
|
if (!k.cache[M]) {
|
|
7220
7227
|
var D = k.helper;
|
|
@@ -7224,10 +7231,10 @@ function requireLottie() {
|
|
|
7224
7231
|
} else
|
|
7225
7232
|
k.cache[M] = D.measureText(L) / 100;
|
|
7226
7233
|
}
|
|
7227
|
-
return k.cache[M] *
|
|
7234
|
+
return k.cache[M] * T;
|
|
7228
7235
|
}
|
|
7229
7236
|
function S(L) {
|
|
7230
|
-
for (var j = 0,
|
|
7237
|
+
for (var j = 0, T = this.fonts.length; j < T; ) {
|
|
7231
7238
|
if (this.fonts[j].fName === L)
|
|
7232
7239
|
return this.fonts[j];
|
|
7233
7240
|
j += 1;
|
|
@@ -7235,16 +7242,16 @@ function requireLottie() {
|
|
|
7235
7242
|
return this.fonts[0];
|
|
7236
7243
|
}
|
|
7237
7244
|
function C(L) {
|
|
7238
|
-
var j = 0,
|
|
7239
|
-
if (
|
|
7245
|
+
var j = 0, T = L.charCodeAt(0);
|
|
7246
|
+
if (T >= 55296 && T <= 56319) {
|
|
7240
7247
|
var k = L.charCodeAt(1);
|
|
7241
|
-
k >= 56320 && k <= 57343 && (j = (
|
|
7248
|
+
k >= 56320 && k <= 57343 && (j = (T - 55296) * 1024 + k - 56320 + 65536);
|
|
7242
7249
|
}
|
|
7243
7250
|
return j;
|
|
7244
7251
|
}
|
|
7245
|
-
function
|
|
7246
|
-
var
|
|
7247
|
-
return m.indexOf(
|
|
7252
|
+
function b(L, j) {
|
|
7253
|
+
var T = L.toString(16) + j.toString(16);
|
|
7254
|
+
return m.indexOf(T) !== -1;
|
|
7248
7255
|
}
|
|
7249
7256
|
function A(L) {
|
|
7250
7257
|
return L === l;
|
|
@@ -7256,19 +7263,19 @@ function requireLottie() {
|
|
|
7256
7263
|
var j = C(L);
|
|
7257
7264
|
return j >= f && j <= c;
|
|
7258
7265
|
}
|
|
7259
|
-
function
|
|
7266
|
+
function q(L) {
|
|
7260
7267
|
return I(L.substr(0, 2)) && I(L.substr(2, 2));
|
|
7261
7268
|
}
|
|
7262
7269
|
function X(L) {
|
|
7263
7270
|
return r.indexOf(L) !== -1;
|
|
7264
7271
|
}
|
|
7265
7272
|
function W(L, j) {
|
|
7266
|
-
var
|
|
7267
|
-
if (
|
|
7273
|
+
var T = C(L.substr(j, 2));
|
|
7274
|
+
if (T !== i)
|
|
7268
7275
|
return !1;
|
|
7269
7276
|
var k = 0;
|
|
7270
7277
|
for (j += 2; k < 5; ) {
|
|
7271
|
-
if (
|
|
7278
|
+
if (T = C(L.substr(j, 2)), T < n || T > a)
|
|
7272
7279
|
return !1;
|
|
7273
7280
|
k += 1, j += 2;
|
|
7274
7281
|
}
|
|
@@ -7277,11 +7284,11 @@ function requireLottie() {
|
|
|
7277
7284
|
function K() {
|
|
7278
7285
|
this.isLoaded = !0;
|
|
7279
7286
|
}
|
|
7280
|
-
var
|
|
7287
|
+
var ae = function() {
|
|
7281
7288
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
7282
7289
|
};
|
|
7283
|
-
|
|
7284
|
-
var
|
|
7290
|
+
ae.isModifier = b, ae.isZeroWidthJoiner = A, ae.isFlagEmoji = q, ae.isRegionalCode = I, ae.isCombinedCharacter = X, ae.isRegionalFlag = W, ae.isVariationSelector = R, ae.BLACK_FLAG_CODE_POINT = i;
|
|
7291
|
+
var Y = {
|
|
7285
7292
|
addChars: g,
|
|
7286
7293
|
addFonts: E,
|
|
7287
7294
|
getCharData: _,
|
|
@@ -7290,7 +7297,7 @@ function requireLottie() {
|
|
|
7290
7297
|
checkLoadedFonts: d,
|
|
7291
7298
|
setIsLoaded: K
|
|
7292
7299
|
};
|
|
7293
|
-
return
|
|
7300
|
+
return ae.prototype = Y, ae;
|
|
7294
7301
|
}();
|
|
7295
7302
|
function SlotManager(e) {
|
|
7296
7303
|
this.animationData = e;
|
|
@@ -8240,7 +8247,7 @@ function requireLottie() {
|
|
|
8240
8247
|
function n() {
|
|
8241
8248
|
}
|
|
8242
8249
|
function a(m, u, x) {
|
|
8243
|
-
var d, p, E, g, _, y, S = u.styles.length, C = u.lvl,
|
|
8250
|
+
var d, p, E, g, _, y, S = u.styles.length, C = u.lvl, b, A, R, I;
|
|
8244
8251
|
for (y = 0; y < S; y += 1) {
|
|
8245
8252
|
if (g = u.sh._mdf || x, u.styles[y].lvl < C) {
|
|
8246
8253
|
for (A = t.reset(), R = C - u.styles[y].lvl, I = u.transformers.length - 1; !g && R > 0; )
|
|
@@ -8250,9 +8257,9 @@ function requireLottie() {
|
|
|
8250
8257
|
A.multiply(u.transformers[I].mProps.v), R -= 1, I -= 1;
|
|
8251
8258
|
} else
|
|
8252
8259
|
A = e;
|
|
8253
|
-
if (
|
|
8260
|
+
if (b = u.sh.paths, p = b._length, g) {
|
|
8254
8261
|
for (E = "", d = 0; d < p; d += 1)
|
|
8255
|
-
_ =
|
|
8262
|
+
_ = b.shapes[d], _ && _._length && (E += buildShapeString(_, _._length, _.c, A));
|
|
8256
8263
|
u.caches[y] = E;
|
|
8257
8264
|
} else
|
|
8258
8265
|
E = u.caches[y];
|
|
@@ -8276,17 +8283,17 @@ function requireLottie() {
|
|
|
8276
8283
|
var y = m.t === 1 ? "x1" : "cx", S = y === "x1" ? "y1" : "cy";
|
|
8277
8284
|
d.setAttribute(y, E[0]), d.setAttribute(S, E[1]), p && !u.g._collapsable && (u.of.setAttribute(y, E[0]), u.of.setAttribute(S, E[1]));
|
|
8278
8285
|
}
|
|
8279
|
-
var C,
|
|
8286
|
+
var C, b, A, R;
|
|
8280
8287
|
if (u.g._cmdf || x) {
|
|
8281
8288
|
C = u.cst;
|
|
8282
8289
|
var I = u.g.c;
|
|
8283
|
-
for (A = C.length,
|
|
8284
|
-
R = C[
|
|
8290
|
+
for (A = C.length, b = 0; b < A; b += 1)
|
|
8291
|
+
R = C[b], R.setAttribute("offset", I[b * 4] + "%"), R.setAttribute("stop-color", "rgb(" + I[b * 4 + 1] + "," + I[b * 4 + 2] + "," + I[b * 4 + 3] + ")");
|
|
8285
8292
|
}
|
|
8286
8293
|
if (p && (u.g._omdf || x)) {
|
|
8287
|
-
var
|
|
8288
|
-
for (u.g._collapsable ? C = u.cst : C = u.ost, A = C.length,
|
|
8289
|
-
R = C[
|
|
8294
|
+
var q = u.g.o;
|
|
8295
|
+
for (u.g._collapsable ? C = u.cst : C = u.ost, A = C.length, b = 0; b < A; b += 1)
|
|
8296
|
+
R = C[b], u.g._collapsable || R.setAttribute("offset", q[b * 2] + "%"), R.setAttribute("stop-opacity", q[b * 2 + 1]);
|
|
8290
8297
|
}
|
|
8291
8298
|
if (m.t === 1)
|
|
8292
8299
|
(u.e._mdf || x) && (d.setAttribute("x2", g[0]), d.setAttribute("y2", g[1]), p && !u.g._collapsable && (u.of.setAttribute("x2", g[0]), u.of.setAttribute("y2", g[1])));
|
|
@@ -8296,8 +8303,8 @@ function requireLottie() {
|
|
|
8296
8303
|
X || (X = Math.sqrt(Math.pow(E[0] - g[0], 2) + Math.pow(E[1] - g[1], 2)));
|
|
8297
8304
|
var W = Math.atan2(g[1] - E[1], g[0] - E[0]), K = u.h.v;
|
|
8298
8305
|
K >= 1 ? K = 0.99 : K <= -1 && (K = -0.99);
|
|
8299
|
-
var
|
|
8300
|
-
d.setAttribute("fx",
|
|
8306
|
+
var ae = X * K, Y = Math.cos(W + u.a.v) * ae + E[0], L = Math.sin(W + u.a.v) * ae + E[1];
|
|
8307
|
+
d.setAttribute("fx", Y), d.setAttribute("fy", L), p && !u.g._collapsable && (u.of.setAttribute("fx", Y), u.of.setAttribute("fy", L));
|
|
8301
8308
|
}
|
|
8302
8309
|
}
|
|
8303
8310
|
}
|
|
@@ -8488,19 +8495,19 @@ function requireLottie() {
|
|
|
8488
8495
|
e.__complete = !0;
|
|
8489
8496
|
var t = this.elem.globalData.fontManager, r = this.data, i = [], s, n, a, o = 0, l, f = r.m.g, c = 0, m = 0, u = 0, x = [], d = 0, p = 0, E, g, _ = t.getFontByName(e.f), y, S = 0, C = getFontProperties(_);
|
|
8490
8497
|
e.fWeight = C.weight, e.fStyle = C.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), n = e.finalText.length, e.finalLineHeight = e.lh;
|
|
8491
|
-
var
|
|
8498
|
+
var b = e.tr / 1e3 * e.finalSize, A;
|
|
8492
8499
|
if (e.sz)
|
|
8493
|
-
for (var R = !0, I = e.sz[0],
|
|
8494
|
-
W = this.buildFinalText(e.t), X = 0, d = 0, n = W.length,
|
|
8500
|
+
for (var R = !0, I = e.sz[0], q = e.sz[1], X, W; R; ) {
|
|
8501
|
+
W = this.buildFinalText(e.t), X = 0, d = 0, n = W.length, b = e.tr / 1e3 * e.finalSize;
|
|
8495
8502
|
var K = -1;
|
|
8496
8503
|
for (s = 0; s < n; s += 1)
|
|
8497
|
-
A = W[s].charCodeAt(0), a = !1, W[s] === " " ? K = s : (A === 13 || A === 3) && (d = 0, a = !0, X += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(W[s], _.fStyle, _.fFamily), S = a ? 0 : y.w * e.finalSize / 100) : S = t.measureText(W[s], e.f, e.finalSize), d + S > I && W[s] !== " " ? (K === -1 ? n += 1 : s = K, X += e.finalLineHeight || e.finalSize * 1.2, W.splice(s, K === s ? 1 : 0, "\r"), K = -1, d = 0) : (d += S, d +=
|
|
8498
|
-
X += _.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize &&
|
|
8504
|
+
A = W[s].charCodeAt(0), a = !1, W[s] === " " ? K = s : (A === 13 || A === 3) && (d = 0, a = !0, X += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(W[s], _.fStyle, _.fFamily), S = a ? 0 : y.w * e.finalSize / 100) : S = t.measureText(W[s], e.f, e.finalSize), d + S > I && W[s] !== " " ? (K === -1 ? n += 1 : s = K, X += e.finalLineHeight || e.finalSize * 1.2, W.splice(s, K === s ? 1 : 0, "\r"), K = -1, d = 0) : (d += S, d += b);
|
|
8505
|
+
X += _.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && q < X ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = W, n = e.finalText.length, R = !1);
|
|
8499
8506
|
}
|
|
8500
|
-
d = -
|
|
8501
|
-
var
|
|
8507
|
+
d = -b, S = 0;
|
|
8508
|
+
var ae = 0, Y;
|
|
8502
8509
|
for (s = 0; s < n; s += 1)
|
|
8503
|
-
if (a = !1,
|
|
8510
|
+
if (a = !1, Y = e.finalText[s], A = Y.charCodeAt(0), A === 13 || A === 3 ? (ae = 0, x.push(d), p = d > p ? d : p, d = -2 * b, l = "", a = !0, u += 1) : l = Y, t.chars ? (y = t.getCharData(Y, _.fStyle, t.getFontByName(e.f).fFamily), S = a ? 0 : y.w * e.finalSize / 100) : S = t.measureText(l, e.f, e.finalSize), Y === " " ? ae += S + b : (d += S + b + ae, ae = 0), i.push({
|
|
8504
8511
|
l: S,
|
|
8505
8512
|
an: S,
|
|
8506
8513
|
add: c,
|
|
@@ -8537,17 +8544,17 @@ function requireLottie() {
|
|
|
8537
8544
|
e.justifyOffset = 0;
|
|
8538
8545
|
}
|
|
8539
8546
|
e.lineWidths = x;
|
|
8540
|
-
var L = r.a, j,
|
|
8547
|
+
var L = r.a, j, T;
|
|
8541
8548
|
g = L.length;
|
|
8542
8549
|
var k, M, D = [];
|
|
8543
8550
|
for (E = 0; E < g; E += 1) {
|
|
8544
8551
|
for (j = L[E], j.a.sc && (e.strokeColorAnim = !0), j.a.sw && (e.strokeWidthAnim = !0), (j.a.fc || j.a.fh || j.a.fs || j.a.fb) && (e.fillColorAnim = !0), M = 0, k = j.s.b, s = 0; s < n; s += 1)
|
|
8545
|
-
|
|
8552
|
+
T = i[s], T.anIndexes[E] = M, (k == 1 && T.val !== "" || k == 2 && T.val !== "" && T.val !== " " || k == 3 && (T.n || T.val == " " || s == n - 1) || k == 4 && (T.n || s == n - 1)) && (j.s.rn === 1 && D.push(M), M += 1);
|
|
8546
8553
|
r.a[E].s.totalChars = M;
|
|
8547
8554
|
var P = -1, H;
|
|
8548
8555
|
if (j.s.rn === 1)
|
|
8549
8556
|
for (s = 0; s < n; s += 1)
|
|
8550
|
-
|
|
8557
|
+
T = i[s], P != T.anIndexes[E] && (P = T.anIndexes[E], H = D.splice(Math.floor(Math.random() * D.length), 1)[0]), T.anIndexes[E] = H;
|
|
8551
8558
|
}
|
|
8552
8559
|
e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = _.ascent * e.finalSize / 100;
|
|
8553
8560
|
}, TextProperty.prototype.updateDocumentData = function(e, t) {
|
|
@@ -8670,7 +8677,7 @@ function requireLottie() {
|
|
|
8670
8677
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
8671
8678
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
8672
8679
|
this._isFirstFrame = !1;
|
|
8673
|
-
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, o = this.renderedLetters.length, l, f, c, m, u = e.l, x, d, p, E, g, _, y, S, C,
|
|
8680
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, o = this.renderedLetters.length, l, f, c, m, u = e.l, x, d, p, E, g, _, y, S, C, b, A, R, I, q, X;
|
|
8674
8681
|
if (this._hasMaskedPath) {
|
|
8675
8682
|
if (X = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
8676
8683
|
var W = X.v;
|
|
@@ -8683,13 +8690,13 @@ function requireLottie() {
|
|
|
8683
8690
|
K = bez.buildBezierData(W.v[c], W.v[c + 1], [W.o[c][0] - W.v[c][0], W.o[c][1] - W.v[c][1]], [W.i[c + 1][0] - W.v[c + 1][0], W.i[c + 1][1] - W.v[c + 1][1]]), x.tLength += K.segmentLength, x.segments.push(K), R += K.segmentLength;
|
|
8684
8691
|
c = m, X.v.c && (K = bez.buildBezierData(W.v[c], W.v[0], [W.o[c][0] - W.v[c][0], W.o[c][1] - W.v[c][1]], [W.i[0][0] - W.v[0][0], W.i[0][1] - W.v[0][1]]), x.tLength += K.segmentLength, x.segments.push(K), R += K.segmentLength), this._pathData.pi = x;
|
|
8685
8692
|
}
|
|
8686
|
-
if (x = this._pathData.pi, d = this._pathData.f.v, y = 0, _ = 1, E = 0, g = !0,
|
|
8687
|
-
for (x.tLength < Math.abs(d) && (d = -Math.abs(d) % x.tLength), y =
|
|
8688
|
-
d += C[_].partialLength, _ -= 1, _ < 0 && (y -= 1, C =
|
|
8689
|
-
C =
|
|
8693
|
+
if (x = this._pathData.pi, d = this._pathData.f.v, y = 0, _ = 1, E = 0, g = !0, b = x.segments, d < 0 && X.v.c)
|
|
8694
|
+
for (x.tLength < Math.abs(d) && (d = -Math.abs(d) % x.tLength), y = b.length - 1, C = b[y].points, _ = C.length - 1; d < 0; )
|
|
8695
|
+
d += C[_].partialLength, _ -= 1, _ < 0 && (y -= 1, C = b[y].points, _ = C.length - 1);
|
|
8696
|
+
C = b[y].points, S = C[_ - 1], p = C[_], A = p.partialLength;
|
|
8690
8697
|
}
|
|
8691
8698
|
m = u.length, l = 0, f = 0;
|
|
8692
|
-
var
|
|
8699
|
+
var ae = e.finalSize * 1.2 * 0.714, Y = !0, L, j, T, k, M;
|
|
8693
8700
|
k = i.length;
|
|
8694
8701
|
var D, P = -1, H, B, z, re = d, ce = y, fe = _, pe = -1, le, Se, Ce, Te, he, je, ke, ye, Fe = "", Ie = this.defaultPropsArray, Ve;
|
|
8695
8702
|
if (e.j === 2 || e.j === 1) {
|
|
@@ -8700,8 +8707,8 @@ function requireLottie() {
|
|
|
8700
8707
|
u[De].animatorJustifyOffset = Pe, De += 1;
|
|
8701
8708
|
Pe = 0, Ke = !0;
|
|
8702
8709
|
} else {
|
|
8703
|
-
for (
|
|
8704
|
-
L = i[
|
|
8710
|
+
for (T = 0; T < k; T += 1)
|
|
8711
|
+
L = i[T].a, L.t.propType && (Ke && e.j === 2 && (Je += L.t.v * $e), j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), D.length ? Pe += L.t.v * D[0] * $e : Pe += L.t.v * D * $e);
|
|
8705
8712
|
Ke = !1;
|
|
8706
8713
|
}
|
|
8707
8714
|
for (Pe && (Pe += Je); De < c; )
|
|
@@ -8709,7 +8716,7 @@ function requireLottie() {
|
|
|
8709
8716
|
}
|
|
8710
8717
|
for (c = 0; c < m; c += 1) {
|
|
8711
8718
|
if (n.reset(), le = 1, u[c].n)
|
|
8712
|
-
l = 0, f += e.yOffset, f +=
|
|
8719
|
+
l = 0, f += e.yOffset, f += Y ? 1 : 0, d = re, Y = !1, this._hasMaskedPath && (y = ce, _ = fe, C = b[y].points, S = C[_ - 1], p = C[_], A = p.partialLength, E = 0), Fe = "", ye = "", je = "", Ve = "", Ie = this.defaultPropsArray;
|
|
8713
8720
|
else {
|
|
8714
8721
|
if (this._hasMaskedPath) {
|
|
8715
8722
|
if (pe !== u[c].line) {
|
|
@@ -8725,21 +8732,21 @@ function requireLottie() {
|
|
|
8725
8732
|
}
|
|
8726
8733
|
P !== u[c].ind && (u[P] && (d += u[P].extra), d += u[c].an / 2, P = u[c].ind), d += r[0] * u[c].an * 5e-3;
|
|
8727
8734
|
var Ue = 0;
|
|
8728
|
-
for (
|
|
8729
|
-
L = i[
|
|
8735
|
+
for (T = 0; T < k; T += 1)
|
|
8736
|
+
L = i[T].a, L.p.propType && (j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), D.length ? Ue += L.p.v[0] * D[0] : Ue += L.p.v[0] * D), L.a.propType && (j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), D.length ? Ue += L.a.v[0] * D[0] : Ue += L.a.v[0] * D);
|
|
8730
8737
|
for (g = !0, this._pathData.a.v && (d = u[0].an * 0.5 + (R - this._pathData.f.v - u[0].an * 0.5 - u[u.length - 1].an * 0.5) * P / (m - 1), d += this._pathData.f.v); g; )
|
|
8731
|
-
E + A >= d + Ue || !C ? (I = (d + Ue - E) / p.partialLength, B = S.point[0] + (p.point[0] - S.point[0]) * I, z = S.point[1] + (p.point[1] - S.point[1]) * I, n.translate(-r[0] * u[c].an * 5e-3, -(r[1] *
|
|
8738
|
+
E + A >= d + Ue || !C ? (I = (d + Ue - E) / p.partialLength, B = S.point[0] + (p.point[0] - S.point[0]) * I, z = S.point[1] + (p.point[1] - S.point[1]) * I, n.translate(-r[0] * u[c].an * 5e-3, -(r[1] * ae) * 0.01), g = !1) : C && (E += p.partialLength, _ += 1, _ >= C.length && (_ = 0, y += 1, b[y] ? C = b[y].points : X.v.c ? (_ = 0, y = 0, C = b[y].points) : (E -= p.partialLength, C = null)), C && (S = p, p = C[_], A = p.partialLength));
|
|
8732
8739
|
H = u[c].an / 2 - u[c].add, n.translate(-H, 0, 0);
|
|
8733
8740
|
} else
|
|
8734
|
-
H = u[c].an / 2 - u[c].add, n.translate(-H, 0, 0), n.translate(-r[0] * u[c].an * 5e-3, -r[1] *
|
|
8735
|
-
for (
|
|
8736
|
-
L = i[
|
|
8737
|
-
for (e.strokeWidthAnim && (Ce = e.sw || 0), e.strokeColorAnim && (e.sc ? Se = [e.sc[0], e.sc[1], e.sc[2]] : Se = [0, 0, 0]), e.fillColorAnim && e.fc && (Te = [e.fc[0], e.fc[1], e.fc[2]]),
|
|
8738
|
-
L = i[
|
|
8739
|
-
for (
|
|
8740
|
-
L = i[
|
|
8741
|
-
for (
|
|
8742
|
-
if (L = i[
|
|
8741
|
+
H = u[c].an / 2 - u[c].add, n.translate(-H, 0, 0), n.translate(-r[0] * u[c].an * 5e-3, -r[1] * ae * 0.01, 0);
|
|
8742
|
+
for (T = 0; T < k; T += 1)
|
|
8743
|
+
L = i[T].a, L.t.propType && (j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), (l !== 0 || e.j !== 0) && (this._hasMaskedPath ? D.length ? d += L.t.v * D[0] : d += L.t.v * D : D.length ? l += L.t.v * D[0] : l += L.t.v * D));
|
|
8744
|
+
for (e.strokeWidthAnim && (Ce = e.sw || 0), e.strokeColorAnim && (e.sc ? Se = [e.sc[0], e.sc[1], e.sc[2]] : Se = [0, 0, 0]), e.fillColorAnim && e.fc && (Te = [e.fc[0], e.fc[1], e.fc[2]]), T = 0; T < k; T += 1)
|
|
8745
|
+
L = i[T].a, L.a.propType && (j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), D.length ? n.translate(-L.a.v[0] * D[0], -L.a.v[1] * D[1], L.a.v[2] * D[2]) : n.translate(-L.a.v[0] * D, -L.a.v[1] * D, L.a.v[2] * D));
|
|
8746
|
+
for (T = 0; T < k; T += 1)
|
|
8747
|
+
L = i[T].a, L.s.propType && (j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), D.length ? n.scale(1 + (L.s.v[0] - 1) * D[0], 1 + (L.s.v[1] - 1) * D[1], 1) : n.scale(1 + (L.s.v[0] - 1) * D, 1 + (L.s.v[1] - 1) * D, 1));
|
|
8748
|
+
for (T = 0; T < k; T += 1) {
|
|
8749
|
+
if (L = i[T].a, j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), L.sk.propType && (D.length ? n.skewFromAxis(-L.sk.v * D[0], L.sa.v * D[1]) : n.skewFromAxis(-L.sk.v * D, L.sa.v * D)), L.r.propType && (D.length ? n.rotateZ(-L.r.v * D[2]) : n.rotateZ(-L.r.v * D)), L.ry.propType && (D.length ? n.rotateY(L.ry.v * D[1]) : n.rotateY(L.ry.v * D)), L.rx.propType && (D.length ? n.rotateX(L.rx.v * D[0]) : n.rotateX(L.rx.v * D)), L.o.propType && (D.length ? le += (L.o.v * D[0] - le) * D[0] : le += (L.o.v * D - le) * D), e.strokeWidthAnim && L.sw.propType && (D.length ? Ce += L.sw.v * D[0] : Ce += L.sw.v * D), e.strokeColorAnim && L.sc.propType)
|
|
8743
8750
|
for (he = 0; he < 3; he += 1)
|
|
8744
8751
|
D.length ? Se[he] += (L.sc.v[he] - Se[he]) * D[0] : Se[he] += (L.sc.v[he] - Se[he]) * D;
|
|
8745
8752
|
if (e.fillColorAnim && e.fc) {
|
|
@@ -8749,12 +8756,12 @@ function requireLottie() {
|
|
|
8749
8756
|
L.fh.propType && (D.length ? Te = addHueToRGB(Te, L.fh.v * D[0]) : Te = addHueToRGB(Te, L.fh.v * D)), L.fs.propType && (D.length ? Te = addSaturationToRGB(Te, L.fs.v * D[0]) : Te = addSaturationToRGB(Te, L.fs.v * D)), L.fb.propType && (D.length ? Te = addBrightnessToRGB(Te, L.fb.v * D[0]) : Te = addBrightnessToRGB(Te, L.fb.v * D));
|
|
8750
8757
|
}
|
|
8751
8758
|
}
|
|
8752
|
-
for (
|
|
8753
|
-
L = i[
|
|
8759
|
+
for (T = 0; T < k; T += 1)
|
|
8760
|
+
L = i[T].a, L.p.propType && (j = i[T].s, D = j.getMult(u[c].anIndexes[T], s.a[T].s.totalChars), this._hasMaskedPath ? D.length ? n.translate(0, L.p.v[1] * D[0], -L.p.v[2] * D[1]) : n.translate(0, L.p.v[1] * D, -L.p.v[2] * D) : D.length ? n.translate(L.p.v[0] * D[0], L.p.v[1] * D[1], -L.p.v[2] * D[2]) : n.translate(L.p.v[0] * D, L.p.v[1] * D, -L.p.v[2] * D));
|
|
8754
8761
|
if (e.strokeWidthAnim && (je = Ce < 0 ? 0 : Ce), e.strokeColorAnim && (ke = "rgb(" + Math.round(Se[0] * 255) + "," + Math.round(Se[1] * 255) + "," + Math.round(Se[2] * 255) + ")"), e.fillColorAnim && e.fc && (ye = "rgb(" + Math.round(Te[0] * 255) + "," + Math.round(Te[1] * 255) + "," + Math.round(Te[2] * 255) + ")"), this._hasMaskedPath) {
|
|
8755
|
-
if (n.translate(0, -e.ls), n.translate(0, r[1] *
|
|
8756
|
-
|
|
8757
|
-
var Ge = Math.atan(
|
|
8762
|
+
if (n.translate(0, -e.ls), n.translate(0, r[1] * ae * 0.01 + f, 0), this._pathData.p.v) {
|
|
8763
|
+
q = (p.point[1] - S.point[1]) / (p.point[0] - S.point[0]);
|
|
8764
|
+
var Ge = Math.atan(q) * 180 / Math.PI;
|
|
8758
8765
|
p.point[0] < S.point[0] && (Ge += 180), n.rotate(-Ge * Math.PI / 180);
|
|
8759
8766
|
}
|
|
8760
8767
|
n.translate(B, z, 0), d -= r[0] * u[c].an * 5e-3, u[c + 1] && P !== u[c + 1].ind && (d += u[c].an / 2, d += e.tr * 1e-3 * e.finalSize);
|
|
@@ -8767,7 +8774,7 @@ function requireLottie() {
|
|
|
8767
8774
|
n.translate(u[c].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[u[c].line]) / 2, 0, 0);
|
|
8768
8775
|
break;
|
|
8769
8776
|
}
|
|
8770
|
-
n.translate(0, -e.ls), n.translate(H, 0, 0), n.translate(r[0] * u[c].an * 5e-3, r[1] *
|
|
8777
|
+
n.translate(0, -e.ls), n.translate(H, 0, 0), n.translate(r[0] * u[c].an * 5e-3, r[1] * ae * 0.01, 0), l += u[c].l + e.tr * 1e-3 * e.finalSize;
|
|
8771
8778
|
}
|
|
8772
8779
|
a === "html" ? Fe = n.toCSS() : a === "svg" ? Fe = n.to2dCSS() : Ie = [n.props[0], n.props[1], n.props[2], n.props[3], n.props[4], n.props[5], n.props[6], n.props[7], n.props[8], n.props[9], n.props[10], n.props[11], n.props[12], n.props[13], n.props[14], n.props[15]], Ve = le;
|
|
8773
8780
|
}
|
|
@@ -8887,18 +8894,18 @@ function requireLottie() {
|
|
|
8887
8894
|
}
|
|
8888
8895
|
if (f.reset(), m && (a[e].n && (u = -p, x += r.yOffset, x += d ? 1 : 0, d = !1), this.applyTextPropertiesToMatrix(r, f, a[e].line, u, x), u += a[e].l || 0, u += p), o) {
|
|
8889
8896
|
S = this.globalData.fontManager.getCharData(r.finalText[e], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
8890
|
-
var
|
|
8897
|
+
var b;
|
|
8891
8898
|
if (S.t === 1)
|
|
8892
|
-
|
|
8899
|
+
b = new SVGCompElement(S.data, this.globalData, this);
|
|
8893
8900
|
else {
|
|
8894
8901
|
var A = emptyShapeData;
|
|
8895
|
-
S.data && S.data.shapes && (A = this.buildShapeData(S.data, r.finalSize)),
|
|
8902
|
+
S.data && S.data.shapes && (A = this.buildShapeData(S.data, r.finalSize)), b = new SVGShapeElement(A, this.globalData, this);
|
|
8896
8903
|
}
|
|
8897
8904
|
if (this.textSpans[e].glyph) {
|
|
8898
8905
|
var R = this.textSpans[e].glyph;
|
|
8899
8906
|
this.textSpans[e].childSpan.removeChild(R.layerElement), R.destroy();
|
|
8900
8907
|
}
|
|
8901
|
-
this.textSpans[e].glyph =
|
|
8908
|
+
this.textSpans[e].glyph = b, b._debug = !0, b.prepareFrame(0), b.renderFrame(), this.textSpans[e].childSpan.appendChild(b.layerElement), S.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
8902
8909
|
} else
|
|
8903
8910
|
m && l.setAttribute("transform", "translate(" + f.props[12] + "," + f.props[13] + ")"), l.textContent = a[e].val, l.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
8904
8911
|
}
|
|
@@ -9513,9 +9520,9 @@ function requireLottie() {
|
|
|
9513
9520
|
e.sc && (r = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
|
|
9514
9521
|
var i = this.globalData.fontManager.getFontByName(e.f), s, n, a = e.l, o = this.mHelper;
|
|
9515
9522
|
this.stroke = r, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, n = e.finalText.length;
|
|
9516
|
-
var l, f, c, m, u, x, d, p, E, g, _ = this.data.singleShape, y = e.tr * 1e-3 * e.finalSize, S = 0, C = 0,
|
|
9523
|
+
var l, f, c, m, u, x, d, p, E, g, _ = this.data.singleShape, y = e.tr * 1e-3 * e.finalSize, S = 0, C = 0, b = !0, A = 0;
|
|
9517
9524
|
for (s = 0; s < n; s += 1) {
|
|
9518
|
-
l = this.globalData.fontManager.getCharData(e.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), f = l && l.data || {}, o.reset(), _ && a[s].n && (S = -y, C += e.yOffset, C +=
|
|
9525
|
+
l = this.globalData.fontManager.getCharData(e.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), f = l && l.data || {}, o.reset(), _ && a[s].n && (S = -y, C += e.yOffset, C += b ? 1 : 0, b = !1), u = f.shapes ? f.shapes[0].it : [], d = u.length, o.scale(e.finalSize / 100, e.finalSize / 100), _ && this.applyTextPropertiesToMatrix(e, o, a[s].line, S, C), E = createSizedArray(d - 1);
|
|
9519
9526
|
var R = 0;
|
|
9520
9527
|
for (x = 0; x < d; x += 1)
|
|
9521
9528
|
if (u[x].ty === "sh") {
|
|
@@ -9966,8 +9973,8 @@ function requireLottie() {
|
|
|
9966
9973
|
this.innerElem.appendChild(f);
|
|
9967
9974
|
else {
|
|
9968
9975
|
this.innerElem.appendChild(c);
|
|
9969
|
-
var C = f.style,
|
|
9970
|
-
C.transform =
|
|
9976
|
+
var C = f.style, b = "translate3d(0," + -e.finalSize / 1.2 + "px,0)";
|
|
9977
|
+
C.transform = b, C.webkitTransform = b;
|
|
9971
9978
|
}
|
|
9972
9979
|
this.isMasked ? this.textSpans[p] = f : this.textSpans[p] = c, this.textSpans[p].style.display = "block", this.textPaths[p] = f, p += 1;
|
|
9973
9980
|
}
|
|
@@ -10263,11 +10270,11 @@ function requireLottie() {
|
|
|
10263
10270
|
function seedRandom(e, t) {
|
|
10264
10271
|
var r = this, i = 256, s = 6, n = 52, a = "random", o = t.pow(i, s), l = t.pow(2, n), f = l * 2, c = i - 1, m;
|
|
10265
10272
|
function u(y, S, C) {
|
|
10266
|
-
var
|
|
10273
|
+
var b = [];
|
|
10267
10274
|
S = S === !0 ? {
|
|
10268
10275
|
entropy: !0
|
|
10269
10276
|
} : S || {};
|
|
10270
|
-
var A = E(p(S.entropy ? [y, _(e)] : y === null ? g() : y, 3),
|
|
10277
|
+
var A = E(p(S.entropy ? [y, _(e)] : y === null ? g() : y, 3), b), R = new x(b), I = function() {
|
|
10271
10278
|
for (var X = R.g(s), W = o, K = 0; X < l; )
|
|
10272
10279
|
X = (X + K) * i, W *= i, K = R.g(1);
|
|
10273
10280
|
for (; X >= f; )
|
|
@@ -10278,41 +10285,41 @@ function requireLottie() {
|
|
|
10278
10285
|
return R.g(4) | 0;
|
|
10279
10286
|
}, I.quick = function() {
|
|
10280
10287
|
return R.g(4) / 4294967296;
|
|
10281
|
-
}, I.double = I, E(_(R.S), e), (S.pass || C || function(
|
|
10282
|
-
return K && (K.S && d(K, R),
|
|
10288
|
+
}, I.double = I, E(_(R.S), e), (S.pass || C || function(q, X, W, K) {
|
|
10289
|
+
return K && (K.S && d(K, R), q.state = function() {
|
|
10283
10290
|
return d(R, {});
|
|
10284
|
-
}), W ? (t[a] =
|
|
10291
|
+
}), W ? (t[a] = q, X) : q;
|
|
10285
10292
|
})(I, A, "global" in S ? S.global : this == t, S.state);
|
|
10286
10293
|
}
|
|
10287
10294
|
t["seed" + a] = u;
|
|
10288
10295
|
function x(y) {
|
|
10289
|
-
var S, C = y.length,
|
|
10296
|
+
var S, C = y.length, b = this, A = 0, R = b.i = b.j = 0, I = b.S = [];
|
|
10290
10297
|
for (C || (y = [C++]); A < i; )
|
|
10291
10298
|
I[A] = A++;
|
|
10292
10299
|
for (A = 0; A < i; A++)
|
|
10293
10300
|
I[A] = I[R = c & R + y[A % C] + (S = I[A])], I[R] = S;
|
|
10294
|
-
|
|
10295
|
-
for (var X, W = 0, K =
|
|
10296
|
-
X =
|
|
10297
|
-
return
|
|
10301
|
+
b.g = function(q) {
|
|
10302
|
+
for (var X, W = 0, K = b.i, ae = b.j, Y = b.S; q--; )
|
|
10303
|
+
X = Y[K = c & K + 1], W = W * i + Y[c & (Y[K] = Y[ae = c & ae + X]) + (Y[ae] = X)];
|
|
10304
|
+
return b.i = K, b.j = ae, W;
|
|
10298
10305
|
};
|
|
10299
10306
|
}
|
|
10300
10307
|
function d(y, S) {
|
|
10301
10308
|
return S.i = y.i, S.j = y.j, S.S = y.S.slice(), S;
|
|
10302
10309
|
}
|
|
10303
10310
|
function p(y, S) {
|
|
10304
|
-
var C = [],
|
|
10305
|
-
if (S &&
|
|
10311
|
+
var C = [], b = _typeof$2(y), A;
|
|
10312
|
+
if (S && b == "object")
|
|
10306
10313
|
for (A in y)
|
|
10307
10314
|
try {
|
|
10308
10315
|
C.push(p(y[A], S - 1));
|
|
10309
10316
|
} catch {
|
|
10310
10317
|
}
|
|
10311
|
-
return C.length ? C :
|
|
10318
|
+
return C.length ? C : b == "string" ? y : y + "\0";
|
|
10312
10319
|
}
|
|
10313
10320
|
function E(y, S) {
|
|
10314
|
-
for (var C = y + "",
|
|
10315
|
-
S[c & A] = c & (
|
|
10321
|
+
for (var C = y + "", b, A = 0; A < C.length; )
|
|
10322
|
+
S[c & A] = c & (b ^= S[c & A] * 19) + C.charCodeAt(A++);
|
|
10316
10323
|
return _(S);
|
|
10317
10324
|
}
|
|
10318
10325
|
function g() {
|
|
@@ -11077,10 +11084,10 @@ function requireLottie() {
|
|
|
11077
11084
|
}
|
|
11078
11085
|
function t(d, p, E) {
|
|
11079
11086
|
var g, _ = function(C) {
|
|
11080
|
-
for (var
|
|
11081
|
-
if (g[
|
|
11082
|
-
return g[
|
|
11083
|
-
|
|
11087
|
+
for (var b = 0, A = g.length; b < A; ) {
|
|
11088
|
+
if (g[b]._name === C || g[b].mn === C || g[b].propertyIndex === C || g[b].ix === C || g[b].ind === C)
|
|
11089
|
+
return g[b];
|
|
11090
|
+
b += 1;
|
|
11084
11091
|
}
|
|
11085
11092
|
return typeof C == "number" ? g[C - 1] : null;
|
|
11086
11093
|
};
|
|
@@ -11163,13 +11170,13 @@ function requireLottie() {
|
|
|
11163
11170
|
return d;
|
|
11164
11171
|
}
|
|
11165
11172
|
function a(d, p, E) {
|
|
11166
|
-
var g = propertyGroupFactory(A, E), _ = propertyGroupFactory(
|
|
11173
|
+
var g = propertyGroupFactory(A, E), _ = propertyGroupFactory(b, g);
|
|
11167
11174
|
function y(R) {
|
|
11168
|
-
Object.defineProperty(
|
|
11175
|
+
Object.defineProperty(b, d.d[R].nm, {
|
|
11169
11176
|
get: ExpressionPropertyInterface(p.d.dataProps[R].p)
|
|
11170
11177
|
});
|
|
11171
11178
|
}
|
|
11172
|
-
var S, C = d.d ? d.d.length : 0,
|
|
11179
|
+
var S, C = d.d ? d.d.length : 0, b = {};
|
|
11173
11180
|
for (S = 0; S < C; S += 1)
|
|
11174
11181
|
y(S), p.d.dataProps[S].p.setGroupProperty(_);
|
|
11175
11182
|
function A(R) {
|
|
@@ -11187,7 +11194,7 @@ function requireLottie() {
|
|
|
11187
11194
|
},
|
|
11188
11195
|
dash: {
|
|
11189
11196
|
get: function() {
|
|
11190
|
-
return
|
|
11197
|
+
return b;
|
|
11191
11198
|
}
|
|
11192
11199
|
},
|
|
11193
11200
|
_name: {
|
|
@@ -11357,7 +11364,7 @@ function requireLottie() {
|
|
|
11357
11364
|
function _(S) {
|
|
11358
11365
|
if (typeof S == "number")
|
|
11359
11366
|
return S = S === void 0 ? 1 : S, S === 0 ? E : g[S - 1];
|
|
11360
|
-
for (var C = 0,
|
|
11367
|
+
for (var C = 0, b = g.length; C < b; ) {
|
|
11361
11368
|
if (g[C]._name === S)
|
|
11362
11369
|
return g[C];
|
|
11363
11370
|
C += 1;
|
|
@@ -11499,25 +11506,25 @@ function requireLottie() {
|
|
|
11499
11506
|
return this.pv;
|
|
11500
11507
|
var _, y;
|
|
11501
11508
|
d ? (x ? _ = Math.abs(g - this.elem.comp.globalData.frameRate * x) : _ = Math.max(0, g - this.elem.data.ip), y = g - _) : ((!x || x > E.length - 1) && (x = E.length - 1), y = E[E.length - 1 - x].t, _ = g - y);
|
|
11502
|
-
var S, C,
|
|
11509
|
+
var S, C, b;
|
|
11503
11510
|
if (u === "pingpong") {
|
|
11504
11511
|
var A = Math.floor((p - y) / _);
|
|
11505
11512
|
if (A % 2 !== 0)
|
|
11506
11513
|
return this.getValueAtTime((_ - (p - y) % _ + y) / this.comp.globalData.frameRate, 0);
|
|
11507
11514
|
} else if (u === "offset") {
|
|
11508
|
-
var R = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(g / this.comp.globalData.frameRate, 0),
|
|
11515
|
+
var R = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), q = this.getValueAtTime(((p - y) % _ + y) / this.comp.globalData.frameRate, 0), X = Math.floor((p - y) / _);
|
|
11509
11516
|
if (this.pv.length) {
|
|
11510
|
-
for (
|
|
11511
|
-
|
|
11512
|
-
return
|
|
11517
|
+
for (b = new Array(R.length), C = b.length, S = 0; S < C; S += 1)
|
|
11518
|
+
b[S] = (I[S] - R[S]) * X + q[S];
|
|
11519
|
+
return b;
|
|
11513
11520
|
}
|
|
11514
|
-
return (I - R) * X +
|
|
11521
|
+
return (I - R) * X + q;
|
|
11515
11522
|
} else if (u === "continue") {
|
|
11516
11523
|
var W = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), K = this.getValueAtTime((g - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
11517
11524
|
if (this.pv.length) {
|
|
11518
|
-
for (
|
|
11519
|
-
|
|
11520
|
-
return
|
|
11525
|
+
for (b = new Array(W.length), C = b.length, S = 0; S < C; S += 1)
|
|
11526
|
+
b[S] = W[S] + (W[S] - K[S]) * ((p - g) / this.comp.globalData.frameRate) / 5e-4;
|
|
11527
|
+
return b;
|
|
11521
11528
|
}
|
|
11522
11529
|
return W + (W - K) * ((p - g) / 1e-3);
|
|
11523
11530
|
}
|
|
@@ -11532,25 +11539,25 @@ function requireLottie() {
|
|
|
11532
11539
|
return this.pv;
|
|
11533
11540
|
var _, y;
|
|
11534
11541
|
d ? (x ? _ = Math.abs(this.elem.comp.globalData.frameRate * x) : _ = Math.max(0, this.elem.data.op - g), y = g + _) : ((!x || x > E.length - 1) && (x = E.length - 1), y = E[x].t, _ = y - g);
|
|
11535
|
-
var S, C,
|
|
11542
|
+
var S, C, b;
|
|
11536
11543
|
if (u === "pingpong") {
|
|
11537
11544
|
var A = Math.floor((g - p) / _);
|
|
11538
11545
|
if (A % 2 === 0)
|
|
11539
11546
|
return this.getValueAtTime(((g - p) % _ + g) / this.comp.globalData.frameRate, 0);
|
|
11540
11547
|
} else if (u === "offset") {
|
|
11541
|
-
var R = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(y / this.comp.globalData.frameRate, 0),
|
|
11548
|
+
var R = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), q = this.getValueAtTime((_ - (g - p) % _ + g) / this.comp.globalData.frameRate, 0), X = Math.floor((g - p) / _) + 1;
|
|
11542
11549
|
if (this.pv.length) {
|
|
11543
|
-
for (
|
|
11544
|
-
|
|
11545
|
-
return
|
|
11550
|
+
for (b = new Array(R.length), C = b.length, S = 0; S < C; S += 1)
|
|
11551
|
+
b[S] = q[S] - (I[S] - R[S]) * X;
|
|
11552
|
+
return b;
|
|
11546
11553
|
}
|
|
11547
|
-
return
|
|
11554
|
+
return q - (I - R) * X;
|
|
11548
11555
|
} else if (u === "continue") {
|
|
11549
11556
|
var W = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), K = this.getValueAtTime((g + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
11550
11557
|
if (this.pv.length) {
|
|
11551
|
-
for (
|
|
11552
|
-
|
|
11553
|
-
return
|
|
11558
|
+
for (b = new Array(W.length), C = b.length, S = 0; S < C; S += 1)
|
|
11559
|
+
b[S] = W[S] + (W[S] - K[S]) * (g - p) / 1e-3;
|
|
11560
|
+
return b;
|
|
11554
11561
|
}
|
|
11555
11562
|
return W + (W - K) * (g - p) / 1e-3;
|
|
11556
11563
|
}
|
|
@@ -11599,8 +11606,8 @@ function requireLottie() {
|
|
|
11599
11606
|
var _ = this.r.getValueAtTime(u);
|
|
11600
11607
|
x.rotate(-_ * this.r.mult);
|
|
11601
11608
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
11602
|
-
var y = this.rz.getValueAtTime(u), S = this.ry.getValueAtTime(u), C = this.rx.getValueAtTime(u),
|
|
11603
|
-
x.rotateZ(-y * this.rz.mult).rotateY(S * this.ry.mult).rotateX(C * this.rx.mult).rotateZ(-
|
|
11609
|
+
var y = this.rz.getValueAtTime(u), S = this.ry.getValueAtTime(u), C = this.rx.getValueAtTime(u), b = this.or.getValueAtTime(u);
|
|
11610
|
+
x.rotateZ(-y * this.rz.mult).rotateY(S * this.ry.mult).rotateX(C * this.rx.mult).rotateZ(-b[2] * this.or.mult).rotateY(b[1] * this.or.mult).rotateX(b[0] * this.or.mult);
|
|
11604
11611
|
}
|
|
11605
11612
|
if (this.data.p && this.data.p.s) {
|
|
11606
11613
|
var A = this.px.getValueAtTime(u), R = this.py.getValueAtTime(u);
|
|
@@ -11610,8 +11617,8 @@ function requireLottie() {
|
|
|
11610
11617
|
} else
|
|
11611
11618
|
x.translate(A * this.px.mult, R * this.py.mult, 0);
|
|
11612
11619
|
} else {
|
|
11613
|
-
var
|
|
11614
|
-
x.translate(
|
|
11620
|
+
var q = this.p.getValueAtTime(u);
|
|
11621
|
+
x.translate(q[0] * this.p.mult, q[1] * this.p.mult, -q[2] * this.p.mult);
|
|
11615
11622
|
}
|
|
11616
11623
|
return x;
|
|
11617
11624
|
}
|
|
@@ -11669,16 +11676,16 @@ function requireLottie() {
|
|
|
11669
11676
|
pointOnPath: function(x, d) {
|
|
11670
11677
|
var p = this.v;
|
|
11671
11678
|
d !== void 0 && (p = this.getValueAtTime(d, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(p));
|
|
11672
|
-
for (var E = this._segmentsLength, g = E.lengths, _ = E.totalLength * x, y = 0, S = g.length, C = 0,
|
|
11679
|
+
for (var E = this._segmentsLength, g = E.lengths, _ = E.totalLength * x, y = 0, S = g.length, C = 0, b; y < S; ) {
|
|
11673
11680
|
if (C + g[y].addedLength > _) {
|
|
11674
11681
|
var A = y, R = p.c && y === S - 1 ? 0 : y + 1, I = (_ - C) / g[y].addedLength;
|
|
11675
|
-
|
|
11682
|
+
b = bez.getPointInSegment(p.v[A], p.v[R], p.o[A], p.i[R], I, g[y]);
|
|
11676
11683
|
break;
|
|
11677
11684
|
} else
|
|
11678
11685
|
C += g[y].addedLength;
|
|
11679
11686
|
y += 1;
|
|
11680
11687
|
}
|
|
11681
|
-
return
|
|
11688
|
+
return b || (b = p.c ? [p.v[0][0], p.v[0][1]] : [p.v[p._length - 1][0], p.v[p._length - 1][1]]), b;
|
|
11682
11689
|
},
|
|
11683
11690
|
vectorOnPath: function(x, d, p) {
|
|
11684
11691
|
x == 1 ? x = this.v.c : x == 0 && (x = 0.999);
|
|
@@ -12053,49 +12060,49 @@ function _unsupportedIterableToArray(e, t) {
|
|
|
12053
12060
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function e(t, r) {
|
|
12054
12061
|
var i = t.animationData, s = t.loop, n = t.autoplay, a = t.initialSegment, o = t.onComplete, l = t.onLoopComplete, f = t.onEnterFrame, c = t.onSegmentStart, m = t.onConfigReady, u = t.onDataReady, x = t.onDataFailed, d = t.onLoadedImages, p = t.onDOMLoaded, E = t.onDestroy;
|
|
12055
12062
|
t.lottieRef, t.renderer, t.name, t.assetsPath, t.rendererSettings;
|
|
12056
|
-
var g = _objectWithoutProperties(t, _excluded$1), _ = useState(!1), y = _slicedToArray(_, 2), S = y[0], C = y[1],
|
|
12063
|
+
var g = _objectWithoutProperties(t, _excluded$1), _ = useState(!1), y = _slicedToArray(_, 2), S = y[0], C = y[1], b = useRef(), A = useRef(null), R = function() {
|
|
12057
12064
|
var P;
|
|
12058
|
-
(P =
|
|
12065
|
+
(P = b.current) === null || P === void 0 || P.play();
|
|
12059
12066
|
}, I = function() {
|
|
12060
12067
|
var P;
|
|
12061
|
-
(P =
|
|
12062
|
-
},
|
|
12068
|
+
(P = b.current) === null || P === void 0 || P.stop();
|
|
12069
|
+
}, q = function() {
|
|
12063
12070
|
var P;
|
|
12064
|
-
(P =
|
|
12071
|
+
(P = b.current) === null || P === void 0 || P.pause();
|
|
12065
12072
|
}, X = function(P) {
|
|
12066
12073
|
var H;
|
|
12067
|
-
(H =
|
|
12074
|
+
(H = b.current) === null || H === void 0 || H.setSpeed(P);
|
|
12068
12075
|
}, W = function(P, H) {
|
|
12069
12076
|
var B;
|
|
12070
|
-
(B =
|
|
12077
|
+
(B = b.current) === null || B === void 0 || B.goToAndPlay(P, H);
|
|
12071
12078
|
}, K = function(P, H) {
|
|
12072
12079
|
var B;
|
|
12073
|
-
(B =
|
|
12074
|
-
},
|
|
12080
|
+
(B = b.current) === null || B === void 0 || B.goToAndStop(P, H);
|
|
12081
|
+
}, ae = function(P) {
|
|
12075
12082
|
var H;
|
|
12076
|
-
(H =
|
|
12077
|
-
},
|
|
12083
|
+
(H = b.current) === null || H === void 0 || H.setDirection(P);
|
|
12084
|
+
}, Y = function(P, H) {
|
|
12078
12085
|
var B;
|
|
12079
|
-
(B =
|
|
12086
|
+
(B = b.current) === null || B === void 0 || B.playSegments(P, H);
|
|
12080
12087
|
}, L = function(P) {
|
|
12081
12088
|
var H;
|
|
12082
|
-
(H =
|
|
12089
|
+
(H = b.current) === null || H === void 0 || H.setSubframe(P);
|
|
12083
12090
|
}, j = function(P) {
|
|
12084
12091
|
var H;
|
|
12085
|
-
return (H =
|
|
12086
|
-
},
|
|
12092
|
+
return (H = b.current) === null || H === void 0 ? void 0 : H.getDuration(P);
|
|
12093
|
+
}, T = function() {
|
|
12087
12094
|
var P;
|
|
12088
|
-
(P =
|
|
12095
|
+
(P = b.current) === null || P === void 0 || P.destroy(), b.current = void 0;
|
|
12089
12096
|
}, k = function() {
|
|
12090
12097
|
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, H;
|
|
12091
12098
|
if (A.current) {
|
|
12092
|
-
(H =
|
|
12099
|
+
(H = b.current) === null || H === void 0 || H.destroy();
|
|
12093
12100
|
var B = _objectSpread2(_objectSpread2(_objectSpread2({}, t), P), {}, {
|
|
12094
12101
|
container: A.current
|
|
12095
12102
|
});
|
|
12096
|
-
return
|
|
12103
|
+
return b.current = lottie.loadAnimation(B), C(!!b.current), function() {
|
|
12097
12104
|
var z;
|
|
12098
|
-
(z =
|
|
12105
|
+
(z = b.current) === null || z === void 0 || z.destroy(), b.current = void 0;
|
|
12099
12106
|
};
|
|
12100
12107
|
}
|
|
12101
12108
|
};
|
|
@@ -12105,14 +12112,14 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
12105
12112
|
return D == null ? void 0 : D();
|
|
12106
12113
|
};
|
|
12107
12114
|
}, [i, s]), useEffect(function() {
|
|
12108
|
-
|
|
12115
|
+
b.current && (b.current.autoplay = !!n);
|
|
12109
12116
|
}, [n]), useEffect(function() {
|
|
12110
|
-
if (
|
|
12117
|
+
if (b.current) {
|
|
12111
12118
|
if (!a) {
|
|
12112
|
-
|
|
12119
|
+
b.current.resetSegments(!0);
|
|
12113
12120
|
return;
|
|
12114
12121
|
}
|
|
12115
|
-
!Array.isArray(a) || !a.length || ((
|
|
12122
|
+
!Array.isArray(a) || !a.length || ((b.current.currentRawFrame < a[0] || b.current.currentRawFrame > a[1]) && (b.current.currentRawFrame = a[0]), b.current.setSegment(a[0], a[1]));
|
|
12116
12123
|
}
|
|
12117
12124
|
}, [a]), useEffect(function() {
|
|
12118
12125
|
var D = [{
|
|
@@ -12157,9 +12164,9 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
12157
12164
|
*/
|
|
12158
12165
|
function(B) {
|
|
12159
12166
|
var z;
|
|
12160
|
-
return (z =
|
|
12167
|
+
return (z = b.current) === null || z === void 0 || z.addEventListener(B.name, B.handler), function() {
|
|
12161
12168
|
var re;
|
|
12162
|
-
(re =
|
|
12169
|
+
(re = b.current) === null || re === void 0 || re.removeEventListener(B.name, B.handler);
|
|
12163
12170
|
};
|
|
12164
12171
|
}
|
|
12165
12172
|
);
|
|
@@ -12178,18 +12185,18 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
12178
12185
|
View: M,
|
|
12179
12186
|
play: R,
|
|
12180
12187
|
stop: I,
|
|
12181
|
-
pause:
|
|
12188
|
+
pause: q,
|
|
12182
12189
|
setSpeed: X,
|
|
12183
12190
|
goToAndStop: K,
|
|
12184
12191
|
goToAndPlay: W,
|
|
12185
|
-
setDirection:
|
|
12186
|
-
playSegments:
|
|
12192
|
+
setDirection: ae,
|
|
12193
|
+
playSegments: Y,
|
|
12187
12194
|
setSubframe: L,
|
|
12188
12195
|
getDuration: j,
|
|
12189
|
-
destroy:
|
|
12196
|
+
destroy: T,
|
|
12190
12197
|
animationContainerRef: A,
|
|
12191
12198
|
animationLoaded: S,
|
|
12192
|
-
animationItem:
|
|
12199
|
+
animationItem: b.current
|
|
12193
12200
|
};
|
|
12194
12201
|
};
|
|
12195
12202
|
function getContainerVisibility(e) {
|
|
@@ -12234,8 +12241,8 @@ var useInitInteractivity = function e(t) {
|
|
|
12234
12241
|
var _ = getContainerCursorPosition(a, E, g);
|
|
12235
12242
|
E = _.x, g = _.y;
|
|
12236
12243
|
}
|
|
12237
|
-
var y = n.find(function(
|
|
12238
|
-
var A =
|
|
12244
|
+
var y = n.find(function(b) {
|
|
12245
|
+
var A = b.position;
|
|
12239
12246
|
return A && Array.isArray(A.x) && Array.isArray(A.y) ? E >= A.x[0] && E <= A.x[1] && g >= A.y[0] && g <= A.y[1] : A && !Number.isNaN(A.x) && !Number.isNaN(A.y) ? E === A.x && g === A.y : !1;
|
|
12240
12247
|
});
|
|
12241
12248
|
if (y) {
|
|
@@ -12271,7 +12278,7 @@ var useInitInteractivity = function e(t) {
|
|
|
12271
12278
|
wrapperRef: o
|
|
12272
12279
|
}), a;
|
|
12273
12280
|
}, _excluded = ["style", "interactivity"], Lottie = function e(t) {
|
|
12274
|
-
var r, i, s, n = t.style, a = t.interactivity, o = _objectWithoutProperties(t, _excluded), l = useLottie(o, n), f = l.View, c = l.play, m = l.stop, u = l.pause, x = l.setSpeed, d = l.goToAndStop, p = l.goToAndPlay, E = l.setDirection, g = l.playSegments, _ = l.setSubframe, y = l.getDuration, S = l.destroy, C = l.animationContainerRef,
|
|
12281
|
+
var r, i, s, n = t.style, a = t.interactivity, o = _objectWithoutProperties(t, _excluded), l = useLottie(o, n), f = l.View, c = l.play, m = l.stop, u = l.pause, x = l.setSpeed, d = l.goToAndStop, p = l.goToAndPlay, E = l.setDirection, g = l.playSegments, _ = l.setSubframe, y = l.getDuration, S = l.destroy, C = l.animationContainerRef, b = l.animationLoaded, A = l.animationItem;
|
|
12275
12282
|
return useEffect(function() {
|
|
12276
12283
|
t.lottieRef && (t.lottieRef.current = {
|
|
12277
12284
|
play: c,
|
|
@@ -12286,7 +12293,7 @@ var useInitInteractivity = function e(t) {
|
|
|
12286
12293
|
getDuration: y,
|
|
12287
12294
|
destroy: S,
|
|
12288
12295
|
animationContainerRef: C,
|
|
12289
|
-
animationLoaded:
|
|
12296
|
+
animationLoaded: b,
|
|
12290
12297
|
animationItem: A
|
|
12291
12298
|
});
|
|
12292
12299
|
}, [(r = t.lottieRef) === null || r === void 0 ? void 0 : r.current]), useLottieInteractivity({
|
|
@@ -12304,7 +12311,7 @@ var useInitInteractivity = function e(t) {
|
|
|
12304
12311
|
getDuration: y,
|
|
12305
12312
|
destroy: S,
|
|
12306
12313
|
animationContainerRef: C,
|
|
12307
|
-
animationLoaded:
|
|
12314
|
+
animationLoaded: b,
|
|
12308
12315
|
animationItem: A
|
|
12309
12316
|
},
|
|
12310
12317
|
actions: (i = a == null ? void 0 : a.actions) !== null && i !== void 0 ? i : [],
|
|
@@ -13538,9 +13545,9 @@ function eval_fmt(e, t, r, i) {
|
|
|
13538
13545
|
s[a].t = "t", s[a].v = SSF_general(t, r);
|
|
13539
13546
|
break;
|
|
13540
13547
|
}
|
|
13541
|
-
var C = "",
|
|
13548
|
+
var C = "", b, A;
|
|
13542
13549
|
if (y.length > 0) {
|
|
13543
|
-
y.charCodeAt(0) == 40 ? (
|
|
13550
|
+
y.charCodeAt(0) == 40 ? (b = t < 0 && y.charCodeAt(0) === 45 ? -t : t, A = write_num("n", y, b)) : (b = t < 0 && i > 1 ? -t : t, A = write_num("n", y, b), b < 0 && s[0] && s[0].t == "t" && (A = A.substr(1), s[0].v = "-" + s[0].v)), S = A.length - 1;
|
|
13544
13551
|
var R = s.length;
|
|
13545
13552
|
for (a = 0; a < s.length; ++a) if (s[a] != null && s[a].t != "t" && s[a].v.indexOf(".") > -1) {
|
|
13546
13553
|
R = a;
|
|
@@ -13566,10 +13573,10 @@ function eval_fmt(e, t, r, i) {
|
|
|
13566
13573
|
}
|
|
13567
13574
|
}
|
|
13568
13575
|
}
|
|
13569
|
-
for (a = 0; a < s.length; ++a) s[a] != null && "n?".indexOf(s[a].t) > -1 && (
|
|
13570
|
-
var
|
|
13571
|
-
for (a = 0; a !== s.length; ++a) s[a] != null && (
|
|
13572
|
-
return
|
|
13576
|
+
for (a = 0; a < s.length; ++a) s[a] != null && "n?".indexOf(s[a].t) > -1 && (b = i > 1 && t < 0 && a > 0 && s[a - 1].v === "-" ? -t : t, s[a].v = write_num(s[a].t, s[a].v, b), s[a].t = "t");
|
|
13577
|
+
var q = "";
|
|
13578
|
+
for (a = 0; a !== s.length; ++a) s[a] != null && (q += s[a].v);
|
|
13579
|
+
return q;
|
|
13573
13580
|
}
|
|
13574
13581
|
var cfregex2 = /\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;
|
|
13575
13582
|
function chkcond(e, t) {
|
|
@@ -13706,30 +13713,30 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13706
13713
|
}
|
|
13707
13714
|
var r = t();
|
|
13708
13715
|
function i(A) {
|
|
13709
|
-
var R = 0, I = 0,
|
|
13710
|
-
for (
|
|
13711
|
-
for (
|
|
13712
|
-
for (I = A[
|
|
13716
|
+
var R = 0, I = 0, q = 0, X = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
|
|
13717
|
+
for (q = 0; q != 256; ++q) X[q] = A[q];
|
|
13718
|
+
for (q = 0; q != 256; ++q)
|
|
13719
|
+
for (I = A[q], R = 256 + q; R < 4096; R += 256) I = X[R] = I >>> 8 ^ A[I & 255];
|
|
13713
13720
|
var W = [];
|
|
13714
|
-
for (
|
|
13721
|
+
for (q = 1; q != 16; ++q) W[q - 1] = typeof Int32Array < "u" ? X.subarray(q * 256, q * 256 + 256) : X.slice(q * 256, q * 256 + 256);
|
|
13715
13722
|
return W;
|
|
13716
13723
|
}
|
|
13717
13724
|
var s = i(r), n = s[0], a = s[1], o = s[2], l = s[3], f = s[4], c = s[5], m = s[6], u = s[7], x = s[8], d = s[9], p = s[10], E = s[11], g = s[12], _ = s[13], y = s[14];
|
|
13718
13725
|
function S(A, R) {
|
|
13719
|
-
for (var I = R ^ -1,
|
|
13726
|
+
for (var I = R ^ -1, q = 0, X = A.length; q < X; ) I = I >>> 8 ^ r[(I ^ A.charCodeAt(q++)) & 255];
|
|
13720
13727
|
return ~I;
|
|
13721
13728
|
}
|
|
13722
13729
|
function C(A, R) {
|
|
13723
|
-
for (var I = R ^ -1,
|
|
13724
|
-
for (
|
|
13730
|
+
for (var I = R ^ -1, q = A.length - 15, X = 0; X < q; ) I = y[A[X++] ^ I & 255] ^ _[A[X++] ^ I >> 8 & 255] ^ g[A[X++] ^ I >> 16 & 255] ^ E[A[X++] ^ I >>> 24] ^ p[A[X++]] ^ d[A[X++]] ^ x[A[X++]] ^ u[A[X++]] ^ m[A[X++]] ^ c[A[X++]] ^ f[A[X++]] ^ l[A[X++]] ^ o[A[X++]] ^ a[A[X++]] ^ n[A[X++]] ^ r[A[X++]];
|
|
13731
|
+
for (q += 15; X < q; ) I = I >>> 8 ^ r[(I ^ A[X++]) & 255];
|
|
13725
13732
|
return ~I;
|
|
13726
13733
|
}
|
|
13727
|
-
function
|
|
13728
|
-
for (var I = R ^ -1,
|
|
13729
|
-
W = A.charCodeAt(
|
|
13734
|
+
function b(A, R) {
|
|
13735
|
+
for (var I = R ^ -1, q = 0, X = A.length, W = 0, K = 0; q < X; )
|
|
13736
|
+
W = A.charCodeAt(q++), W < 128 ? I = I >>> 8 ^ r[(I ^ W) & 255] : W < 2048 ? (I = I >>> 8 ^ r[(I ^ (192 | W >> 6 & 31)) & 255], I = I >>> 8 ^ r[(I ^ (128 | W & 63)) & 255]) : W >= 55296 && W < 57344 ? (W = (W & 1023) + 64, K = A.charCodeAt(q++) & 1023, I = I >>> 8 ^ r[(I ^ (240 | W >> 8 & 7)) & 255], I = I >>> 8 ^ r[(I ^ (128 | W >> 2 & 63)) & 255], I = I >>> 8 ^ r[(I ^ (128 | K >> 6 & 15 | (W & 3) << 4)) & 255], I = I >>> 8 ^ r[(I ^ (128 | K & 63)) & 255]) : (I = I >>> 8 ^ r[(I ^ (224 | W >> 12 & 15)) & 255], I = I >>> 8 ^ r[(I ^ (128 | W >> 6 & 63)) & 255], I = I >>> 8 ^ r[(I ^ (128 | W & 63)) & 255]);
|
|
13730
13737
|
return ~I;
|
|
13731
13738
|
}
|
|
13732
|
-
return e.table = r, e.bstr = S, e.buf = C, e.str =
|
|
13739
|
+
return e.table = r, e.bstr = S, e.buf = C, e.str = b, e;
|
|
13733
13740
|
}(), CFB = /* @__PURE__ */ function e() {
|
|
13734
13741
|
var t = {};
|
|
13735
13742
|
t.version = "1.2.1";
|
|
@@ -13764,8 +13771,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13764
13771
|
N >>>= 4, O.setMilliseconds(0), O.setFullYear(N + 1980), O.setMonth(G - 1), O.setDate(U);
|
|
13765
13772
|
var Q = V & 31;
|
|
13766
13773
|
V >>>= 5;
|
|
13767
|
-
var
|
|
13768
|
-
return V >>>= 6, O.setHours(V), O.setMinutes(
|
|
13774
|
+
var ne = V & 63;
|
|
13775
|
+
return V >>>= 6, O.setHours(V), O.setMinutes(ne), O.setSeconds(Q << 1), O;
|
|
13769
13776
|
}
|
|
13770
13777
|
function o(F) {
|
|
13771
13778
|
prep_blob(F, 0);
|
|
@@ -13792,7 +13799,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13792
13799
|
if (F[0] == 80 && F[1] == 75) return He(F, V);
|
|
13793
13800
|
if ((F[0] | 32) == 109 && (F[1] | 32) == 105) return ht(F, V);
|
|
13794
13801
|
if (F.length < 512) throw new Error("CFB file size " + F.length + " < 512");
|
|
13795
|
-
var N = 3, O = 512, U = 0, G = 0, Q = 0,
|
|
13802
|
+
var N = 3, O = 512, U = 0, G = 0, Q = 0, ne = 0, Z = 0, ee = [], ie = (
|
|
13796
13803
|
/*::(*/
|
|
13797
13804
|
F.slice(0, 512)
|
|
13798
13805
|
);
|
|
@@ -13821,15 +13828,15 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13821
13828
|
u(ie, N);
|
|
13822
13829
|
var _e = ie.read_shift(4, "i");
|
|
13823
13830
|
if (N === 3 && _e !== 0) throw new Error("# Directory Sectors: Expected 0 saw " + _e);
|
|
13824
|
-
ie.l += 4, Q = ie.read_shift(4, "i"), ie.l += 4, ie.chk("00100000", "Mini Stream Cutoff Size: "),
|
|
13831
|
+
ie.l += 4, Q = ie.read_shift(4, "i"), ie.l += 4, ie.chk("00100000", "Mini Stream Cutoff Size: "), ne = ie.read_shift(4, "i"), U = ie.read_shift(4, "i"), Z = ie.read_shift(4, "i"), G = ie.read_shift(4, "i");
|
|
13825
13832
|
for (var de = -1, ve = 0; ve < 109 && (de = ie.read_shift(4, "i"), !(de < 0)); ++ve)
|
|
13826
13833
|
ee[ve] = de;
|
|
13827
13834
|
var be = x(F, O);
|
|
13828
13835
|
E(Z, G, be, O, ee);
|
|
13829
13836
|
var Ne = _(be, Q, ee, O);
|
|
13830
|
-
Ne[Q].name = "!Directory", U > 0 &&
|
|
13837
|
+
Ne[Q].name = "!Directory", U > 0 && ne !== K && (Ne[ne].name = "!MiniFAT"), Ne[ee[0]].name = "!FAT", Ne.fat_addrs = ee, Ne.ssz = O;
|
|
13831
13838
|
var Oe = {}, We = [], it = [], ut = [];
|
|
13832
|
-
y(Q, Ne, be, We, U, Oe, it,
|
|
13839
|
+
y(Q, Ne, be, We, U, Oe, it, ne), d(it, ut, We), We.shift();
|
|
13833
13840
|
var st = {
|
|
13834
13841
|
FileIndex: it,
|
|
13835
13842
|
FullPaths: ut
|
|
@@ -13838,7 +13845,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13838
13845
|
}
|
|
13839
13846
|
function m(F) {
|
|
13840
13847
|
if (F[F.l] == 80 && F[F.l + 1] == 75) return [0, 0];
|
|
13841
|
-
F.chk(
|
|
13848
|
+
F.chk(ae, "Header Signature: "), F.l += 16;
|
|
13842
13849
|
var V = F.read_shift(2, "u");
|
|
13843
13850
|
return [F.read_shift(2, "u"), V];
|
|
13844
13851
|
}
|
|
@@ -13861,16 +13868,16 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13861
13868
|
return O[N - 1] = F.slice(N * V), O;
|
|
13862
13869
|
}
|
|
13863
13870
|
function d(F, V, N) {
|
|
13864
|
-
for (var O = 0, U = 0, G = 0, Q = 0,
|
|
13871
|
+
for (var O = 0, U = 0, G = 0, Q = 0, ne = 0, Z = N.length, ee = [], ie = []; O < Z; ++O)
|
|
13865
13872
|
ee[O] = ie[O] = O, V[O] = N[O];
|
|
13866
|
-
for (;
|
|
13867
|
-
O = ie[
|
|
13873
|
+
for (; ne < ie.length; ++ne)
|
|
13874
|
+
O = ie[ne], U = F[O].L, G = F[O].R, Q = F[O].C, ee[O] === O && (U !== -1 && ee[U] !== U && (ee[O] = ee[U]), G !== -1 && ee[G] !== G && (ee[O] = ee[G])), Q !== -1 && (ee[Q] = O), U !== -1 && O != ee[O] && (ee[U] = ee[O], ie.lastIndexOf(U) < ne && ie.push(U)), G !== -1 && O != ee[O] && (ee[G] = ee[O], ie.lastIndexOf(G) < ne && ie.push(G));
|
|
13868
13875
|
for (O = 1; O < Z; ++O) ee[O] === O && (G !== -1 && ee[G] !== G ? ee[O] = ee[G] : U !== -1 && ee[U] !== U && (ee[O] = ee[U]));
|
|
13869
13876
|
for (O = 1; O < Z; ++O)
|
|
13870
13877
|
if (F[O].type !== 0) {
|
|
13871
|
-
if (
|
|
13872
|
-
|
|
13873
|
-
while (
|
|
13878
|
+
if (ne = O, ne != ee[ne]) do
|
|
13879
|
+
ne = ee[ne], V[O] = V[ne] + "/" + V[O];
|
|
13880
|
+
while (ne !== 0 && ee[ne] !== -1 && ne != ee[ne]);
|
|
13874
13881
|
ee[O] = -1;
|
|
13875
13882
|
}
|
|
13876
13883
|
for (V[0] += "/", O = 1; O < Z; ++O)
|
|
@@ -13886,9 +13893,9 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13886
13893
|
if (F === K) {
|
|
13887
13894
|
if (V !== 0) throw new Error("DIFAT chain shorter than expected");
|
|
13888
13895
|
} else if (F !== -1) {
|
|
13889
|
-
var Q = N[F],
|
|
13896
|
+
var Q = N[F], ne = (O >>> 2) - 1;
|
|
13890
13897
|
if (!Q) return;
|
|
13891
|
-
for (var Z = 0; Z <
|
|
13898
|
+
for (var Z = 0; Z < ne && (G = __readInt32LE(Q, Z * 4)) !== K; ++Z)
|
|
13892
13899
|
U.push(G);
|
|
13893
13900
|
E(__readInt32LE(Q, O - 4), V - 1, N, O, U);
|
|
13894
13901
|
}
|
|
@@ -13896,33 +13903,33 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13896
13903
|
function g(F, V, N, O, U) {
|
|
13897
13904
|
var G = [], Q = [];
|
|
13898
13905
|
U || (U = []);
|
|
13899
|
-
var
|
|
13906
|
+
var ne = O - 1, Z = 0, ee = 0;
|
|
13900
13907
|
for (Z = V; Z >= 0; ) {
|
|
13901
13908
|
U[Z] = !0, G[G.length] = Z, Q.push(F[Z]);
|
|
13902
13909
|
var ie = N[Math.floor(Z * 4 / O)];
|
|
13903
|
-
if (ee = Z * 4 &
|
|
13910
|
+
if (ee = Z * 4 & ne, O < 4 + ee) throw new Error("FAT boundary crossed: " + Z + " 4 " + O);
|
|
13904
13911
|
if (!F[ie]) break;
|
|
13905
13912
|
Z = __readInt32LE(F[ie], ee);
|
|
13906
13913
|
}
|
|
13907
13914
|
return { nodes: G, data: __toBuffer([Q]) };
|
|
13908
13915
|
}
|
|
13909
13916
|
function _(F, V, N, O) {
|
|
13910
|
-
var U = F.length, G = [], Q = [],
|
|
13917
|
+
var U = F.length, G = [], Q = [], ne = [], Z = [], ee = O - 1, ie = 0, ue = 0, me = 0, _e = 0;
|
|
13911
13918
|
for (ie = 0; ie < U; ++ie)
|
|
13912
|
-
if (
|
|
13919
|
+
if (ne = [], me = ie + V, me >= U && (me -= U), !Q[me]) {
|
|
13913
13920
|
Z = [];
|
|
13914
13921
|
var de = [];
|
|
13915
13922
|
for (ue = me; ue >= 0; ) {
|
|
13916
|
-
de[ue] = !0, Q[ue] = !0,
|
|
13923
|
+
de[ue] = !0, Q[ue] = !0, ne[ne.length] = ue, Z.push(F[ue]);
|
|
13917
13924
|
var ve = N[Math.floor(ue * 4 / O)];
|
|
13918
13925
|
if (_e = ue * 4 & ee, O < 4 + _e) throw new Error("FAT boundary crossed: " + ue + " 4 " + O);
|
|
13919
13926
|
if (!F[ve] || (ue = __readInt32LE(F[ve], _e), de[ue])) break;
|
|
13920
13927
|
}
|
|
13921
|
-
G[me] = { nodes:
|
|
13928
|
+
G[me] = { nodes: ne, data: __toBuffer([Z]) };
|
|
13922
13929
|
}
|
|
13923
13930
|
return G;
|
|
13924
13931
|
}
|
|
13925
|
-
function y(F, V, N, O, U, G, Q,
|
|
13932
|
+
function y(F, V, N, O, U, G, Q, ne) {
|
|
13926
13933
|
for (var Z = 0, ee = O.length ? 2 : 0, ie = V[F].data, ue = 0, me = 0, _e; ue < ie.length; ue += 128) {
|
|
13927
13934
|
var de = (
|
|
13928
13935
|
/*::(*/
|
|
@@ -13943,7 +13950,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13943
13950
|
}, be = de.read_shift(2) + de.read_shift(2) + de.read_shift(2) + de.read_shift(2);
|
|
13944
13951
|
be !== 0 && (ve.ct = S(de, de.l - 8));
|
|
13945
13952
|
var Ne = de.read_shift(2) + de.read_shift(2) + de.read_shift(2) + de.read_shift(2);
|
|
13946
|
-
Ne !== 0 && (ve.mt = S(de, de.l - 8)), ve.start = de.read_shift(4, "i"), ve.size = de.read_shift(4, "i"), ve.size < 0 && ve.start < 0 && (ve.size = ve.type = 0, ve.start = K, ve.name = ""), ve.type === 5 ? (Z = ve.start, U > 0 && Z !== K && (V[Z].name = "!StreamData")) : ve.size >= 4096 ? (ve.storage = "fat", V[ve.start] === void 0 && (V[ve.start] = g(N, ve.start, V.fat_addrs, V.ssz)), V[ve.start].name = ve.name, ve.content = V[ve.start].data.slice(0, ve.size)) : (ve.storage = "minifat", ve.size < 0 ? ve.size = 0 : Z !== K && ve.start !== K && V[Z] && (ve.content = p(ve, V[Z].data, (V[
|
|
13953
|
+
Ne !== 0 && (ve.mt = S(de, de.l - 8)), ve.start = de.read_shift(4, "i"), ve.size = de.read_shift(4, "i"), ve.size < 0 && ve.start < 0 && (ve.size = ve.type = 0, ve.start = K, ve.name = ""), ve.type === 5 ? (Z = ve.start, U > 0 && Z !== K && (V[Z].name = "!StreamData")) : ve.size >= 4096 ? (ve.storage = "fat", V[ve.start] === void 0 && (V[ve.start] = g(N, ve.start, V.fat_addrs, V.ssz)), V[ve.start].name = ve.name, ve.content = V[ve.start].data.slice(0, ve.size)) : (ve.storage = "minifat", ve.size < 0 ? ve.size = 0 : Z !== K && ve.start !== K && V[Z] && (ve.content = p(ve, V[Z].data, (V[ne] || {}).data))), ve.content && prep_blob(ve.content, 0), G[_e] = ve, Q.push(ve);
|
|
13947
13954
|
}
|
|
13948
13955
|
}
|
|
13949
13956
|
function S(F, V) {
|
|
@@ -13952,7 +13959,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13952
13959
|
function C(F, V) {
|
|
13953
13960
|
return f(), c(l.readFileSync(F), V);
|
|
13954
13961
|
}
|
|
13955
|
-
function
|
|
13962
|
+
function b(F, V) {
|
|
13956
13963
|
var N = V && V.type;
|
|
13957
13964
|
switch (N || has_buf && Buffer.isBuffer(F) && (N = "buffer"), N || "base64") {
|
|
13958
13965
|
case "file":
|
|
@@ -13999,7 +14006,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13999
14006
|
}
|
|
14000
14007
|
}
|
|
14001
14008
|
if (!(!N && !V)) {
|
|
14002
|
-
var Q = new Date(1987, 1, 19),
|
|
14009
|
+
var Q = new Date(1987, 1, 19), ne = 0, Z = Object.create ? /* @__PURE__ */ Object.create(null) : {}, ee = [];
|
|
14003
14010
|
for (U = 0; U < F.FullPaths.length; ++U)
|
|
14004
14011
|
Z[F.FullPaths[U]] = !0, F.FileIndex[U].type !== 0 && ee.push([F.FullPaths[U], F.FileIndex[U]]);
|
|
14005
14012
|
for (U = 0; U < ee.length; ++U) {
|
|
@@ -14022,15 +14029,15 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14022
14029
|
if (ue.name = s(me).replace("/", ""), ue.L = ue.R = ue.C = -(ue.color = 1), ue.size = ue.content ? ue.content.length : 0, ue.start = 0, ue.clsid = ue.clsid || L, U === 0)
|
|
14023
14030
|
ue.C = ee.length > 1 ? 1 : -1, ue.size = 0, ue.type = 5;
|
|
14024
14031
|
else if (me.slice(-1) == "/") {
|
|
14025
|
-
for (
|
|
14026
|
-
for (ue.C =
|
|
14027
|
-
ue.R =
|
|
14032
|
+
for (ne = U + 1; ne < ee.length && i(F.FullPaths[ne]) != me; ++ne) ;
|
|
14033
|
+
for (ue.C = ne >= ee.length ? -1 : ne, ne = U + 1; ne < ee.length && i(F.FullPaths[ne]) != i(me); ++ne) ;
|
|
14034
|
+
ue.R = ne >= ee.length ? -1 : ne, ue.type = 1;
|
|
14028
14035
|
} else
|
|
14029
14036
|
i(F.FullPaths[U + 1] || "") == i(me) && (ue.R = U + 1), ue.type = 2;
|
|
14030
14037
|
}
|
|
14031
14038
|
}
|
|
14032
14039
|
}
|
|
14033
|
-
function
|
|
14040
|
+
function q(F, V) {
|
|
14034
14041
|
var N = V || {};
|
|
14035
14042
|
if (N.fileType == "mad") return bt(F, N);
|
|
14036
14043
|
switch (I(F), N.fileType) {
|
|
@@ -14050,7 +14057,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14050
14057
|
return _e.FileIndex[0].size = de << 6, Qe[7] = (_e.FileIndex[0].start = Qe[0] + Qe[1] + Qe[2] + Qe[3] + Qe[4] + Qe[5]) + (Qe[6] + 7 >> 3), Qe;
|
|
14051
14058
|
}(F), U = new_buf(O[7] << 9), G = 0, Q = 0;
|
|
14052
14059
|
{
|
|
14053
|
-
for (G = 0; G < 8; ++G) U.write_shift(1,
|
|
14060
|
+
for (G = 0; G < 8; ++G) U.write_shift(1, Y[G]);
|
|
14054
14061
|
for (G = 0; G < 8; ++G) U.write_shift(2, 0);
|
|
14055
14062
|
for (U.write_shift(2, 62), U.write_shift(2, 3), U.write_shift(2, 65534), U.write_shift(2, 9), U.write_shift(2, 6), G = 0; G < 3; ++G) U.write_shift(2, 0);
|
|
14056
14063
|
for (U.write_shift(4, 0), U.write_shift(4, O[2]), U.write_shift(4, O[0] + O[1] + O[2] + O[3] - 1), U.write_shift(4, 0), U.write_shift(4, 4096), U.write_shift(4, O[3] ? O[0] + O[1] + O[2] - 1 : K), U.write_shift(4, O[3]), U.write_shift(-4, O[1] ? O[0] - 1 : K), U.write_shift(4, O[1]), G = 0; G < 109; ++G) U.write_shift(-4, G < O[2] ? O[1] + G : -1);
|
|
@@ -14060,18 +14067,18 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14060
14067
|
for (; G < 236 + Q * 127; ++G) U.write_shift(-4, G < O[2] ? O[1] + G : -1);
|
|
14061
14068
|
U.write_shift(-4, Q === O[1] - 1 ? K : Q + 1);
|
|
14062
14069
|
}
|
|
14063
|
-
var
|
|
14070
|
+
var ne = function(_e) {
|
|
14064
14071
|
for (Q += _e; G < Q - 1; ++G) U.write_shift(-4, G + 1);
|
|
14065
14072
|
_e && (++G, U.write_shift(-4, K));
|
|
14066
14073
|
};
|
|
14067
14074
|
for (Q = G = 0, Q += O[1]; G < Q; ++G) U.write_shift(-4, j.DIFSECT);
|
|
14068
14075
|
for (Q += O[2]; G < Q; ++G) U.write_shift(-4, j.FATSECT);
|
|
14069
|
-
|
|
14076
|
+
ne(O[3]), ne(O[4]);
|
|
14070
14077
|
for (var Z = 0, ee = 0, ie = F.FileIndex[0]; Z < F.FileIndex.length; ++Z)
|
|
14071
|
-
ie = F.FileIndex[Z], ie.content && (ee = ie.content.length, !(ee < 4096) && (ie.start = Q,
|
|
14072
|
-
for (
|
|
14078
|
+
ie = F.FileIndex[Z], ie.content && (ee = ie.content.length, !(ee < 4096) && (ie.start = Q, ne(ee + 511 >> 9)));
|
|
14079
|
+
for (ne(O[6] + 7 >> 3); U.l & 511; ) U.write_shift(-4, j.ENDOFCHAIN);
|
|
14073
14080
|
for (Q = G = 0, Z = 0; Z < F.FileIndex.length; ++Z)
|
|
14074
|
-
ie = F.FileIndex[Z], ie.content && (ee = ie.content.length, !(!ee || ee >= 4096) && (ie.start = Q,
|
|
14081
|
+
ie = F.FileIndex[Z], ie.content && (ee = ie.content.length, !(!ee || ee >= 4096) && (ie.start = Q, ne(ee + 63 >> 6)));
|
|
14075
14082
|
for (; U.l & 511; ) U.write_shift(-4, j.ENDOFCHAIN);
|
|
14076
14083
|
for (G = 0; G < O[4] << 2; ++G) {
|
|
14077
14084
|
var ue = F.FullPaths[G];
|
|
@@ -14119,12 +14126,12 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14119
14126
|
V.charCodeAt(0) === 47 ? (U = !0, V = N[0].slice(0, -1) + V) : U = V.indexOf("/") !== -1;
|
|
14120
14127
|
var G = V.toUpperCase(), Q = U === !0 ? N.indexOf(G) : O.indexOf(G);
|
|
14121
14128
|
if (Q !== -1) return F.FileIndex[Q];
|
|
14122
|
-
var
|
|
14123
|
-
for (G = G.replace(chr0, ""),
|
|
14124
|
-
if ((
|
|
14129
|
+
var ne = !G.match(chr1);
|
|
14130
|
+
for (G = G.replace(chr0, ""), ne && (G = G.replace(chr1, "!")), Q = 0; Q < N.length; ++Q)
|
|
14131
|
+
if ((ne ? N[Q].replace(chr1, "!") : N[Q]).replace(chr0, "") == G || (ne ? O[Q].replace(chr1, "!") : O[Q]).replace(chr0, "") == G) return F.FileIndex[Q];
|
|
14125
14132
|
return null;
|
|
14126
14133
|
}
|
|
14127
|
-
var W = 64, K = -2,
|
|
14134
|
+
var W = 64, K = -2, ae = "d0cf11e0a1b11ae1", Y = [208, 207, 17, 224, 161, 177, 26, 225], L = "00000000000000000000000000000000", j = {
|
|
14128
14135
|
/* 2.1 Compund File Sector Numbers and Types */
|
|
14129
14136
|
MAXREGSECT: -6,
|
|
14130
14137
|
DIFSECT: -4,
|
|
@@ -14132,7 +14139,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14132
14139
|
ENDOFCHAIN: K,
|
|
14133
14140
|
FREESECT: -1,
|
|
14134
14141
|
/* 2.2 Compound File Header */
|
|
14135
|
-
HEADER_SIGNATURE:
|
|
14142
|
+
HEADER_SIGNATURE: ae,
|
|
14136
14143
|
HEADER_MINOR_VERSION: "3e00",
|
|
14137
14144
|
MAXREGSID: -6,
|
|
14138
14145
|
NOSTREAM: -1,
|
|
@@ -14140,9 +14147,9 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14140
14147
|
/* 2.6.1 Compound File Directory Entry */
|
|
14141
14148
|
EntryTypes: ["unknown", "storage", "stream", "lockbytes", "property", "root"]
|
|
14142
14149
|
};
|
|
14143
|
-
function
|
|
14150
|
+
function T(F, V, N) {
|
|
14144
14151
|
f();
|
|
14145
|
-
var O =
|
|
14152
|
+
var O = q(F, N);
|
|
14146
14153
|
l.writeFileSync(V, O);
|
|
14147
14154
|
}
|
|
14148
14155
|
function k(F) {
|
|
@@ -14150,7 +14157,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14150
14157
|
return V.join("");
|
|
14151
14158
|
}
|
|
14152
14159
|
function M(F, V) {
|
|
14153
|
-
var N =
|
|
14160
|
+
var N = q(F, V);
|
|
14154
14161
|
switch (V && V.type || "buffer") {
|
|
14155
14162
|
case "file":
|
|
14156
14163
|
return f(), l.writeFileSync(V.filename, N), N;
|
|
@@ -14255,21 +14262,21 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14255
14262
|
return V;
|
|
14256
14263
|
}
|
|
14257
14264
|
function Ke(F, V, N) {
|
|
14258
|
-
var O = 1, U = 0, G = 0, Q = 0,
|
|
14265
|
+
var O = 1, U = 0, G = 0, Q = 0, ne = 0, Z = F.length, ee = pe ? new Uint16Array(32) : De(32);
|
|
14259
14266
|
for (G = 0; G < 32; ++G) ee[G] = 0;
|
|
14260
14267
|
for (G = Z; G < N; ++G) F[G] = 0;
|
|
14261
14268
|
Z = F.length;
|
|
14262
14269
|
var ie = pe ? new Uint16Array(Z) : De(Z);
|
|
14263
14270
|
for (G = 0; G < Z; ++G)
|
|
14264
14271
|
ee[U = F[G]]++, O < U && (O = U), ie[G] = 0;
|
|
14265
|
-
for (ee[0] = 0, G = 1; G <= O; ++G) ee[G + 16] =
|
|
14272
|
+
for (ee[0] = 0, G = 1; G <= O; ++G) ee[G + 16] = ne = ne + ee[G - 1] << 1;
|
|
14266
14273
|
for (G = 0; G < Z; ++G)
|
|
14267
|
-
|
|
14274
|
+
ne = F[G], ne != 0 && (ie[G] = ee[ne + 16]++);
|
|
14268
14275
|
var ue = 0;
|
|
14269
14276
|
for (G = 0; G < Z; ++G)
|
|
14270
14277
|
if (ue = F[G], ue != 0)
|
|
14271
|
-
for (
|
|
14272
|
-
V[
|
|
14278
|
+
for (ne = Ce(ie[G], O) >> O - ue, Q = (1 << O + 4 - ue) - 1; Q >= 0; --Q)
|
|
14279
|
+
V[ne | Q << ue] = ue & 15 | G << 4;
|
|
14273
14280
|
return O;
|
|
14274
14281
|
}
|
|
14275
14282
|
var Ue = pe ? new Uint16Array(512) : De(512), Ge = pe ? new Uint16Array(32) : De(32);
|
|
@@ -14294,31 +14301,31 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14294
14301
|
var U = pe ? new Uint8Array(259) : [];
|
|
14295
14302
|
for (N = 0, O = 0; N < re.length - 1; ++N)
|
|
14296
14303
|
for (; O < re[N + 1]; ++O) U[O] = N;
|
|
14297
|
-
function G(
|
|
14298
|
-
for (var ee = 0; ee <
|
|
14299
|
-
var ie = Math.min(65535,
|
|
14300
|
-
for (Z.write_shift(1, +ue), Z.write_shift(2, ie), Z.write_shift(2, ~ie & 65535); ie-- > 0; ) Z[Z.l++] =
|
|
14304
|
+
function G(ne, Z) {
|
|
14305
|
+
for (var ee = 0; ee < ne.length; ) {
|
|
14306
|
+
var ie = Math.min(65535, ne.length - ee), ue = ee + ie == ne.length;
|
|
14307
|
+
for (Z.write_shift(1, +ue), Z.write_shift(2, ie), Z.write_shift(2, ~ie & 65535); ie-- > 0; ) Z[Z.l++] = ne[ee++];
|
|
14301
14308
|
}
|
|
14302
14309
|
return Z.l;
|
|
14303
14310
|
}
|
|
14304
|
-
function Q(
|
|
14305
|
-
for (var ee = 0, ie = 0, ue = pe ? new Uint16Array(32768) : []; ie <
|
|
14311
|
+
function Q(ne, Z) {
|
|
14312
|
+
for (var ee = 0, ie = 0, ue = pe ? new Uint16Array(32768) : []; ie < ne.length; ) {
|
|
14306
14313
|
var me = (
|
|
14307
14314
|
/* data.length - boff; */
|
|
14308
|
-
Math.min(65535,
|
|
14315
|
+
Math.min(65535, ne.length - ie)
|
|
14309
14316
|
);
|
|
14310
14317
|
if (me < 10) {
|
|
14311
|
-
for (ee = Ie(Z, ee, +(ie + me ==
|
|
14318
|
+
for (ee = Ie(Z, ee, +(ie + me == ne.length)), ee & 7 && (ee += 8 - (ee & 7)), Z.l = ee / 8 | 0, Z.write_shift(2, me), Z.write_shift(2, ~me & 65535); me-- > 0; ) Z[Z.l++] = ne[ie++];
|
|
14312
14319
|
ee = Z.l * 8;
|
|
14313
14320
|
continue;
|
|
14314
14321
|
}
|
|
14315
|
-
ee = Ie(Z, ee, +(ie + me ==
|
|
14322
|
+
ee = Ie(Z, ee, +(ie + me == ne.length) + 2);
|
|
14316
14323
|
for (var _e = 0; me-- > 0; ) {
|
|
14317
|
-
var de =
|
|
14324
|
+
var de = ne[ie];
|
|
14318
14325
|
_e = (_e << 5 ^ de) & 32767;
|
|
14319
14326
|
var ve = -1, be = 0;
|
|
14320
14327
|
if ((ve = ue[_e]) && (ve |= ie & -32768, ve > ie && (ve -= 32768), ve < ie))
|
|
14321
|
-
for (;
|
|
14328
|
+
for (; ne[ve + be] == ne[ie + be] && be < 250; ) ++be;
|
|
14322
14329
|
if (be > 2) {
|
|
14323
14330
|
de = U[be], de <= 22 ? ee = Pe(Z, ee, le[de + 1] >> 1) - 1 : (Pe(Z, ee, 3), ee += 5, Pe(Z, ee, le[de - 23] >> 5), ee += 3);
|
|
14324
14331
|
var Ne = de < 8 ? 0 : de - 4 >> 2;
|
|
@@ -14326,7 +14333,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14326
14333
|
var Oe = de < 4 ? 0 : de - 2 >> 1;
|
|
14327
14334
|
Oe > 0 && (Je(Z, ee, ie - ve - ce[de]), ee += Oe);
|
|
14328
14335
|
for (var We = 0; We < be; ++We)
|
|
14329
|
-
ue[_e] = ie & 32767, _e = (_e << 5 ^
|
|
14336
|
+
ue[_e] = ie & 32767, _e = (_e << 5 ^ ne[ie]) & 32767, ++ie;
|
|
14330
14337
|
me -= be - 1;
|
|
14331
14338
|
} else
|
|
14332
14339
|
de <= 143 ? de = de + 48 : ee = Ve(Z, ee, 1), ee = Pe(Z, ee, le[de]), ue[_e] = ie & 32767, ++ie;
|
|
@@ -14351,15 +14358,15 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14351
14358
|
V += 5;
|
|
14352
14359
|
var U = je(F, V) + 4;
|
|
14353
14360
|
V += 4;
|
|
14354
|
-
for (var G = 0, Q = pe ? new Uint8Array(19) : De(19),
|
|
14361
|
+
for (var G = 0, Q = pe ? new Uint8Array(19) : De(19), ne = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], Z = 1, ee = pe ? new Uint8Array(8) : De(8), ie = pe ? new Uint8Array(8) : De(8), ue = Q.length, me = 0; me < U; ++me)
|
|
14355
14362
|
Q[z[me]] = G = he(F, V), Z < G && (Z = G), ee[G]++, V += 3;
|
|
14356
14363
|
var _e = 0;
|
|
14357
14364
|
for (ee[0] = 0, me = 1; me <= Z; ++me) ie[me] = _e = _e + ee[me - 1] << 1;
|
|
14358
|
-
for (me = 0; me < ue; ++me) (_e = Q[me]) != 0 && (
|
|
14365
|
+
for (me = 0; me < ue; ++me) (_e = Q[me]) != 0 && (ne[me] = ie[_e]++);
|
|
14359
14366
|
var de = 0;
|
|
14360
14367
|
for (me = 0; me < ue; ++me)
|
|
14361
14368
|
if (de = Q[me], de != 0) {
|
|
14362
|
-
_e = le[
|
|
14369
|
+
_e = le[ne[me]] >> 8 - de;
|
|
14363
14370
|
for (var ve = (1 << 7 - de) - 1; ve >= 0; --ve) wt[_e | ve << de] = de & 7 | me << 3;
|
|
14364
14371
|
}
|
|
14365
14372
|
var be = [];
|
|
@@ -14386,9 +14393,9 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14386
14393
|
function ot(F, V) {
|
|
14387
14394
|
if (F[0] == 3 && !(F[1] & 3))
|
|
14388
14395
|
return [new_raw_buf(V), 2];
|
|
14389
|
-
for (var N = 0, O = 0, U = new_unsafe_buf(V || 1 << 18), G = 0, Q = U.length >>> 0,
|
|
14396
|
+
for (var N = 0, O = 0, U = new_unsafe_buf(V || 1 << 18), G = 0, Q = U.length >>> 0, ne = 0, Z = 0; (O & 1) == 0; ) {
|
|
14390
14397
|
if (O = he(F, N), N += 3, O >>> 1)
|
|
14391
|
-
O >> 1 == 1 ? (
|
|
14398
|
+
O >> 1 == 1 ? (ne = 9, Z = 5) : (N = Ze(F, N), ne = pt, Z = St);
|
|
14392
14399
|
else {
|
|
14393
14400
|
N & 7 && (N += 8 - (N & 7));
|
|
14394
14401
|
var ee = F[N >>> 3] | F[(N >>> 3) + 1] << 8;
|
|
@@ -14399,7 +14406,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14399
14406
|
}
|
|
14400
14407
|
for (; ; ) {
|
|
14401
14408
|
!V && Q < G + 32767 && (U = $e(U, G + 32767), Q = U.length);
|
|
14402
|
-
var ie = Fe(F, N,
|
|
14409
|
+
var ie = Fe(F, N, ne), ue = O >>> 1 == 1 ? Ue[ie] : qe[ie];
|
|
14403
14410
|
if (N += ue & 15, ue >>>= 4, (ue >>> 8 & 255) === 0) U[G++] = ue;
|
|
14404
14411
|
else {
|
|
14405
14412
|
if (ue == 256) break;
|
|
@@ -14438,10 +14445,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14438
14445
|
A(G, { root: V.root });
|
|
14439
14446
|
for (var Q = N.length - 4; (N[Q] != 80 || N[Q + 1] != 75 || N[Q + 2] != 5 || N[Q + 3] != 6) && Q >= 0; ) --Q;
|
|
14440
14447
|
N.l = Q + 4, N.l += 4;
|
|
14441
|
-
var
|
|
14448
|
+
var ne = N.read_shift(2);
|
|
14442
14449
|
N.l += 6;
|
|
14443
14450
|
var Z = N.read_shift(4);
|
|
14444
|
-
for (N.l = Z, Q = 0; Q <
|
|
14451
|
+
for (N.l = Z, Q = 0; Q < ne; ++Q) {
|
|
14445
14452
|
N.l += 20;
|
|
14446
14453
|
var ee = N.read_shift(4), ie = N.read_shift(4), ue = N.read_shift(2), me = N.read_shift(2), _e = N.read_shift(2);
|
|
14447
14454
|
N.l += 8;
|
|
@@ -14458,7 +14465,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14458
14465
|
}
|
|
14459
14466
|
function mt(F, V, N, O, U) {
|
|
14460
14467
|
F.l += 2;
|
|
14461
|
-
var G = F.read_shift(2), Q = F.read_shift(2),
|
|
14468
|
+
var G = F.read_shift(2), Q = F.read_shift(2), ne = a(F);
|
|
14462
14469
|
if (G & 8257) throw new Error("Unsupported ZIP encryption");
|
|
14463
14470
|
for (var Z = F.read_shift(4), ee = F.read_shift(4), ie = F.read_shift(4), ue = F.read_shift(2), me = F.read_shift(2), _e = "", de = 0; de < ue; ++de) _e += String.fromCharCode(F[F.l++]);
|
|
14464
14471
|
if (me) {
|
|
@@ -14467,7 +14474,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14467
14474
|
F.slice(F.l, F.l + me)
|
|
14468
14475
|
/*:: :any)*/
|
|
14469
14476
|
);
|
|
14470
|
-
(ve[21589] || {}).mt && (
|
|
14477
|
+
(ve[21589] || {}).mt && (ne = ve[21589].mt), ((U || {})[21589] || {}).mt && (ne = U[21589].mt);
|
|
14471
14478
|
}
|
|
14472
14479
|
F.l += me;
|
|
14473
14480
|
var be = F.slice(F.l, F.l + ee);
|
|
@@ -14482,10 +14489,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14482
14489
|
throw new Error("Unsupported ZIP Compression method " + Q);
|
|
14483
14490
|
}
|
|
14484
14491
|
var Ne = !1;
|
|
14485
|
-
G & 8 && (Z = F.read_shift(4), Z == 134695760 && (Z = F.read_shift(4), Ne = !0), ee = F.read_shift(4), ie = F.read_shift(4)), ee != V && xt(Ne, "Bad compressed size: " + V + " != " + ee), ie != N && xt(Ne, "Bad uncompressed size: " + N + " != " + ie), _t(O, _e, be, { unsafe: !0, mt:
|
|
14492
|
+
G & 8 && (Z = F.read_shift(4), Z == 134695760 && (Z = F.read_shift(4), Ne = !0), ee = F.read_shift(4), ie = F.read_shift(4)), ee != V && xt(Ne, "Bad compressed size: " + V + " != " + ee), ie != N && xt(Ne, "Bad uncompressed size: " + N + " != " + ie), _t(O, _e, be, { unsafe: !0, mt: ne });
|
|
14486
14493
|
}
|
|
14487
14494
|
function lt(F, V) {
|
|
14488
|
-
var N = V || {}, O = [], U = [], G = new_buf(1), Q = N.compression ? 8 : 0,
|
|
14495
|
+
var N = V || {}, O = [], U = [], G = new_buf(1), Q = N.compression ? 8 : 0, ne = 0, Z = 0, ee = 0, ie = 0, ue = 0, me = F.FullPaths[0], _e = me, de = F.FileIndex[0], ve = [], be = 0;
|
|
14489
14496
|
for (Z = 1; Z < F.FullPaths.length; ++Z)
|
|
14490
14497
|
if (_e = F.FullPaths[Z].slice(me.length), de = F.FileIndex[Z], !(!de.size || !de.content || _e == "Sh33tJ5")) {
|
|
14491
14498
|
var Ne = ie, Oe = new_buf(_e.length);
|
|
@@ -14496,11 +14503,11 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14496
14503
|
0
|
|
14497
14504
|
);
|
|
14498
14505
|
var We = de.content;
|
|
14499
|
-
Q == 8 && (We = B(We)), G = new_buf(30), G.write_shift(4, 67324752), G.write_shift(2, 20), G.write_shift(2,
|
|
14506
|
+
Q == 8 && (We = B(We)), G = new_buf(30), G.write_shift(4, 67324752), G.write_shift(2, 20), G.write_shift(2, ne), G.write_shift(2, Q), de.mt ? n(G, de.mt) : G.write_shift(4, 0), G.write_shift(-4, ve[ue]), G.write_shift(4, We.length), G.write_shift(
|
|
14500
14507
|
4,
|
|
14501
14508
|
/*::(*/
|
|
14502
14509
|
de.content.length
|
|
14503
|
-
), G.write_shift(2, Oe.length), G.write_shift(2, 0), ie += G.length, O.push(G), ie += Oe.length, O.push(Oe), ie += We.length, O.push(We), G = new_buf(46), G.write_shift(4, 33639248), G.write_shift(2, 0), G.write_shift(2, 20), G.write_shift(2,
|
|
14510
|
+
), G.write_shift(2, Oe.length), G.write_shift(2, 0), ie += G.length, O.push(G), ie += Oe.length, O.push(Oe), ie += We.length, O.push(We), G = new_buf(46), G.write_shift(4, 33639248), G.write_shift(2, 0), G.write_shift(2, 20), G.write_shift(2, ne), G.write_shift(2, Q), G.write_shift(4, 0), G.write_shift(-4, ve[ue]), G.write_shift(4, We.length), G.write_shift(
|
|
14504
14511
|
4,
|
|
14505
14512
|
/*::(*/
|
|
14506
14513
|
de.content.length
|
|
@@ -14545,8 +14552,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14545
14552
|
continue;
|
|
14546
14553
|
}
|
|
14547
14554
|
for (var Q = 0; Q < G.length; ) {
|
|
14548
|
-
var
|
|
14549
|
-
Z.charAt(
|
|
14555
|
+
var ne = 76, Z = G.slice(Q, Q + ne);
|
|
14556
|
+
Z.charAt(ne - 1) == "=" ? ne-- : Z.charAt(ne - 2) == "=" ? ne -= 2 : Z.charAt(ne - 3) == "=" && (ne -= 3), Z = G.slice(Q, Q + ne), Q += ne, Q < G.length && (Z += "="), N.push(Z);
|
|
14550
14557
|
}
|
|
14551
14558
|
}
|
|
14552
14559
|
return N.join(`\r
|
|
@@ -14564,8 +14571,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14564
14571
|
`));
|
|
14565
14572
|
}
|
|
14566
14573
|
function gt(F, V, N) {
|
|
14567
|
-
for (var O = "", U = "", G = "", Q,
|
|
14568
|
-
var Z = V[
|
|
14574
|
+
for (var O = "", U = "", G = "", Q, ne = 0; ne < 10; ++ne) {
|
|
14575
|
+
var Z = V[ne];
|
|
14569
14576
|
if (!Z || Z.match(/^\s*$/)) break;
|
|
14570
14577
|
var ee = Z.match(/^(.*?):\s*([^\s].*)$/);
|
|
14571
14578
|
if (ee) switch (ee[1].toLowerCase()) {
|
|
@@ -14580,12 +14587,12 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14580
14587
|
break;
|
|
14581
14588
|
}
|
|
14582
14589
|
}
|
|
14583
|
-
switch (++
|
|
14590
|
+
switch (++ne, U.toLowerCase()) {
|
|
14584
14591
|
case "base64":
|
|
14585
|
-
Q = s2a(Base64_decode(V.slice(
|
|
14592
|
+
Q = s2a(Base64_decode(V.slice(ne).join("")));
|
|
14586
14593
|
break;
|
|
14587
14594
|
case "quoted-printable":
|
|
14588
|
-
Q = vt(V.slice(
|
|
14595
|
+
Q = vt(V.slice(ne));
|
|
14589
14596
|
break;
|
|
14590
14597
|
default:
|
|
14591
14598
|
throw new Error("Unsupported Content-Transfer-Encoding " + U);
|
|
@@ -14603,7 +14610,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14603
14610
|
;
|
|
14604
14611
|
var Q = (O[1] || "").match(/boundary="(.*?)"/);
|
|
14605
14612
|
if (!Q) throw new Error("MAD cannot find boundary");
|
|
14606
|
-
var
|
|
14613
|
+
var ne = "--" + (Q[1] || ""), Z = [], ee = [], ie = {
|
|
14607
14614
|
FileIndex: Z,
|
|
14608
14615
|
FullPaths: ee
|
|
14609
14616
|
};
|
|
@@ -14611,7 +14618,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14611
14618
|
var ue, me = 0;
|
|
14612
14619
|
for (U = 0; U < O.length; ++U) {
|
|
14613
14620
|
var _e = O[U];
|
|
14614
|
-
_e !==
|
|
14621
|
+
_e !== ne && _e !== ne + "--" || (me++ && gt(ie, O.slice(ue, U), N), ue = U);
|
|
14615
14622
|
}
|
|
14616
14623
|
return ie;
|
|
14617
14624
|
}
|
|
@@ -14624,16 +14631,16 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14624
14631
|
"",
|
|
14625
14632
|
"",
|
|
14626
14633
|
""
|
|
14627
|
-
], G = F.FullPaths[0], Q = G,
|
|
14628
|
-
if (Q = F.FullPaths[Z].slice(G.length),
|
|
14634
|
+
], G = F.FullPaths[0], Q = G, ne = F.FileIndex[0], Z = 1; Z < F.FullPaths.length; ++Z)
|
|
14635
|
+
if (Q = F.FullPaths[Z].slice(G.length), ne = F.FileIndex[Z], !(!ne.size || !ne.content || Q == "Sh33tJ5")) {
|
|
14629
14636
|
Q = Q.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(be) {
|
|
14630
14637
|
return "_x" + be.charCodeAt(0).toString(16) + "_";
|
|
14631
14638
|
}).replace(/[\u0080-\uFFFF]/g, function(be) {
|
|
14632
14639
|
return "_u" + be.charCodeAt(0).toString(16) + "_";
|
|
14633
14640
|
});
|
|
14634
|
-
for (var ee =
|
|
14641
|
+
for (var ee = ne.content, ie = has_buf && Buffer.isBuffer(ee) ? ee.toString("binary") : k(ee), ue = 0, me = Math.min(1024, ie.length), _e = 0, de = 0; de <= me; ++de) (_e = ie.charCodeAt(de)) >= 32 && _e < 128 && ++ue;
|
|
14635
14642
|
var ve = ue >= me * 4 / 5;
|
|
14636
|
-
U.push(O), U.push("Content-Location: " + (N.root || "file:///C:/SheetJS/") + Q), U.push("Content-Transfer-Encoding: " + (ve ? "quoted-printable" : "base64")), U.push("Content-Type: " + ct(
|
|
14643
|
+
U.push(O), U.push("Content-Location: " + (N.root || "file:///C:/SheetJS/") + Q), U.push("Content-Transfer-Encoding: " + (ve ? "quoted-printable" : "base64")), U.push("Content-Type: " + ct(ne, Q)), U.push(""), U.push(ve ? yt(ie) : Ct(ie));
|
|
14637
14644
|
}
|
|
14638
14645
|
return U.push(O + `--\r
|
|
14639
14646
|
`), U.join(`\r
|
|
@@ -14674,7 +14681,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14674
14681
|
function tt(F) {
|
|
14675
14682
|
I(F, !0);
|
|
14676
14683
|
}
|
|
14677
|
-
return t.find = X, t.read =
|
|
14684
|
+
return t.find = X, t.read = b, t.parse = c, t.write = M, t.writeFile = T, t.utils = {
|
|
14678
14685
|
cfb_new: Ye,
|
|
14679
14686
|
cfb_add: _t,
|
|
14680
14687
|
cfb_del: At,
|
|
@@ -16959,8 +16966,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
16959
16966
|
m == 2 && (p = c.read_shift(2)), c.l += 3, m != 2 && (p = c.read_shift(4)), p > 1048576 && (p = 1e6), m != 2 && (E = c.read_shift(2));
|
|
16960
16967
|
var g = c.read_shift(2), _ = l.codepage || 1252;
|
|
16961
16968
|
m != 2 && (c.l += 16, c.read_shift(1), c[c.l] !== 0 && (_ = e[c[c.l]]), c.l += 1, c.l += 2), d && (c.l += 36);
|
|
16962
|
-
for (var y = [], S = {}, C = Math.min(c.length, m == 2 ? 521 : E - 10 - (x ? 264 : 0)),
|
|
16963
|
-
switch (S = {}, S.name = $cptable.utils.decode(_, c.slice(c.l, c.l +
|
|
16969
|
+
for (var y = [], S = {}, C = Math.min(c.length, m == 2 ? 521 : E - 10 - (x ? 264 : 0)), b = d ? 32 : 11; c.l < C && c[c.l] != 13; )
|
|
16970
|
+
switch (S = {}, S.name = $cptable.utils.decode(_, c.slice(c.l, c.l + b)).replace(/[\u0000\r\n].*$/g, ""), c.l += b, S.type = String.fromCharCode(c.read_shift(1)), m != 2 && !d && (S.offset = c.read_shift(4)), S.len = c.read_shift(1), m == 2 && (S.offset = c.read_shift(2)), S.dec = c.read_shift(1), S.name.length && y.push(S), m != 2 && (c.l += d ? 13 : 14), S.type) {
|
|
16964
16971
|
case "B":
|
|
16965
16972
|
(!x || S.len != 8) && l.WTF && console.log("Skipping " + S.name + ":" + S.type);
|
|
16966
16973
|
break;
|
|
@@ -17010,23 +17017,23 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17010
17017
|
for (++c.l, f[++A] = [], R = 0, R = 0; R != y.length; ++R) {
|
|
17011
17018
|
var I = c.slice(c.l, c.l + y[R].len);
|
|
17012
17019
|
c.l += y[R].len, prep_blob(I, 0);
|
|
17013
|
-
var
|
|
17020
|
+
var q = $cptable.utils.decode(_, I);
|
|
17014
17021
|
switch (y[R].type) {
|
|
17015
17022
|
case "C":
|
|
17016
|
-
|
|
17023
|
+
q.trim().length && (f[A][R] = q.replace(/\s+$/, ""));
|
|
17017
17024
|
break;
|
|
17018
17025
|
case "D":
|
|
17019
|
-
|
|
17026
|
+
q.length === 8 ? f[A][R] = new Date(+q.slice(0, 4), +q.slice(4, 6) - 1, +q.slice(6, 8)) : f[A][R] = q;
|
|
17020
17027
|
break;
|
|
17021
17028
|
case "F":
|
|
17022
|
-
f[A][R] = parseFloat(
|
|
17029
|
+
f[A][R] = parseFloat(q.trim());
|
|
17023
17030
|
break;
|
|
17024
17031
|
case "+":
|
|
17025
17032
|
case "I":
|
|
17026
17033
|
f[A][R] = d ? I.read_shift(-4, "i") ^ 2147483648 : I.read_shift(4, "i");
|
|
17027
17034
|
break;
|
|
17028
17035
|
case "L":
|
|
17029
|
-
switch (
|
|
17036
|
+
switch (q.trim().toUpperCase()) {
|
|
17030
17037
|
case "Y":
|
|
17031
17038
|
case "T":
|
|
17032
17039
|
f[A][R] = !0;
|
|
@@ -17039,15 +17046,15 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17039
17046
|
case "?":
|
|
17040
17047
|
break;
|
|
17041
17048
|
default:
|
|
17042
|
-
throw new Error("DBF Unrecognized L:|" +
|
|
17049
|
+
throw new Error("DBF Unrecognized L:|" + q + "|");
|
|
17043
17050
|
}
|
|
17044
17051
|
break;
|
|
17045
17052
|
case "M":
|
|
17046
17053
|
if (!u) throw new Error("DBF Unexpected MEMO for type " + m.toString(16));
|
|
17047
|
-
f[A][R] = "##MEMO##" + (d ? parseInt(
|
|
17054
|
+
f[A][R] = "##MEMO##" + (d ? parseInt(q.trim(), 10) : I.read_shift(4));
|
|
17048
17055
|
break;
|
|
17049
17056
|
case "N":
|
|
17050
|
-
|
|
17057
|
+
q = q.replace(/\u0000/g, "").trim(), q && q != "." && (f[A][R] = +q || 0);
|
|
17051
17058
|
break;
|
|
17052
17059
|
case "@":
|
|
17053
17060
|
f[A][R] = new Date(I.read_shift(-8, "f") - 621356832e5);
|
|
@@ -17122,17 +17129,17 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17122
17129
|
}
|
|
17123
17130
|
}
|
|
17124
17131
|
}
|
|
17125
|
-
var y = safe_decode_range(o["!ref"]), S = [], C = [],
|
|
17132
|
+
var y = safe_decode_range(o["!ref"]), S = [], C = [], b = [];
|
|
17126
17133
|
for (p = 0; p <= y.e.c - y.s.c; ++p) {
|
|
17127
|
-
var A = "", R = "", I = 0,
|
|
17134
|
+
var A = "", R = "", I = 0, q = [];
|
|
17128
17135
|
for (E = 0; E < x.length; ++E)
|
|
17129
|
-
x[E][p] != null &&
|
|
17130
|
-
if (
|
|
17136
|
+
x[E][p] != null && q.push(x[E][p]);
|
|
17137
|
+
if (q.length == 0 || u[p] == null) {
|
|
17131
17138
|
S[p] = "?";
|
|
17132
17139
|
continue;
|
|
17133
17140
|
}
|
|
17134
|
-
for (E = 0; E <
|
|
17135
|
-
switch (typeof
|
|
17141
|
+
for (E = 0; E < q.length; ++E) {
|
|
17142
|
+
switch (typeof q[E]) {
|
|
17136
17143
|
/* TODO: check if L2 compat is desired */
|
|
17137
17144
|
case "number":
|
|
17138
17145
|
R = "B";
|
|
@@ -17144,14 +17151,14 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17144
17151
|
R = "L";
|
|
17145
17152
|
break;
|
|
17146
17153
|
case "object":
|
|
17147
|
-
R =
|
|
17154
|
+
R = q[E] instanceof Date ? "D" : "C";
|
|
17148
17155
|
break;
|
|
17149
17156
|
default:
|
|
17150
17157
|
R = "C";
|
|
17151
17158
|
}
|
|
17152
|
-
I = Math.max(I, String(
|
|
17159
|
+
I = Math.max(I, String(q[E]).length), A = A && A != R ? "C" : R;
|
|
17153
17160
|
}
|
|
17154
|
-
I > 250 && (I = 250), R = ((d[p] || {}).DBF || {}).type, R == "C" && d[p].DBF.len > I && (I = d[p].DBF.len), A == "B" && R == "N" && (A = "N",
|
|
17161
|
+
I > 250 && (I = 250), R = ((d[p] || {}).DBF || {}).type, R == "C" && d[p].DBF.len > I && (I = d[p].DBF.len), A == "B" && R == "N" && (A = "N", b[p] = d[p].DBF.dec, I = d[p].DBF.len), C[p] = A == "C" || R == "N" ? I : n[A] || 0, _ += C[p], S[p] = A;
|
|
17155
17162
|
}
|
|
17156
17163
|
var X = c.next(32);
|
|
17157
17164
|
for (X.write_shift(4, 318902576), X.write_shift(4, x.length), X.write_shift(2, 296 + 32 * g), X.write_shift(2, _), p = 0; p < 4; ++p) X.write_shift(4, 0);
|
|
@@ -17162,32 +17169,32 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17162
17169
|
] || 3) << 8), p = 0, E = 0; p < u.length; ++p)
|
|
17163
17170
|
if (u[p] != null) {
|
|
17164
17171
|
var W = c.next(32), K = (u[p].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
|
|
17165
|
-
W.write_shift(1, K, "sbcs"), W.write_shift(1, S[p] == "?" ? "C" : S[p], "sbcs"), W.write_shift(4, E), W.write_shift(1, C[p] || n[S[p]] || 0), W.write_shift(1,
|
|
17172
|
+
W.write_shift(1, K, "sbcs"), W.write_shift(1, S[p] == "?" ? "C" : S[p], "sbcs"), W.write_shift(4, E), W.write_shift(1, C[p] || n[S[p]] || 0), W.write_shift(1, b[p] || 0), W.write_shift(1, 2), W.write_shift(4, 0), W.write_shift(1, 0), W.write_shift(4, 0), W.write_shift(4, 0), E += C[p] || n[S[p]] || 0;
|
|
17166
17173
|
}
|
|
17167
|
-
var
|
|
17168
|
-
for (
|
|
17174
|
+
var ae = c.next(264);
|
|
17175
|
+
for (ae.write_shift(4, 13), p = 0; p < 65; ++p) ae.write_shift(4, 0);
|
|
17169
17176
|
for (p = 0; p < x.length; ++p) {
|
|
17170
|
-
var
|
|
17171
|
-
for (
|
|
17177
|
+
var Y = c.next(_);
|
|
17178
|
+
for (Y.write_shift(1, 0), E = 0; E < u.length; ++E)
|
|
17172
17179
|
if (u[E] != null)
|
|
17173
17180
|
switch (S[E]) {
|
|
17174
17181
|
case "L":
|
|
17175
|
-
|
|
17182
|
+
Y.write_shift(1, x[p][E] == null ? 63 : x[p][E] ? 84 : 70);
|
|
17176
17183
|
break;
|
|
17177
17184
|
case "B":
|
|
17178
|
-
|
|
17185
|
+
Y.write_shift(8, x[p][E] || 0, "f");
|
|
17179
17186
|
break;
|
|
17180
17187
|
case "N":
|
|
17181
17188
|
var L = "0";
|
|
17182
|
-
for (typeof x[p][E] == "number" && (L = x[p][E].toFixed(
|
|
17183
|
-
|
|
17189
|
+
for (typeof x[p][E] == "number" && (L = x[p][E].toFixed(b[E] || 0)), g = 0; g < C[E] - L.length; ++g) Y.write_shift(1, 32);
|
|
17190
|
+
Y.write_shift(1, L, "sbcs");
|
|
17184
17191
|
break;
|
|
17185
17192
|
case "D":
|
|
17186
|
-
x[p][E] ? (
|
|
17193
|
+
x[p][E] ? (Y.write_shift(4, ("0000" + x[p][E].getFullYear()).slice(-4), "sbcs"), Y.write_shift(2, ("00" + (x[p][E].getMonth() + 1)).slice(-2), "sbcs"), Y.write_shift(2, ("00" + x[p][E].getDate()).slice(-2), "sbcs")) : Y.write_shift(8, "00000000", "sbcs");
|
|
17187
17194
|
break;
|
|
17188
17195
|
case "C":
|
|
17189
17196
|
var j = String(x[p][E] != null ? x[p][E] : "").slice(0, C[E]);
|
|
17190
|
-
for (
|
|
17197
|
+
for (Y.write_shift(1, j, "sbcs"), g = 0; g < C[E] - j.length; ++g) Y.write_shift(1, 32);
|
|
17191
17198
|
break;
|
|
17192
17199
|
}
|
|
17193
17200
|
}
|
|
@@ -17316,13 +17323,13 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17316
17323
|
throw new Error("Unrecognized type " + x.type);
|
|
17317
17324
|
}
|
|
17318
17325
|
function n(u, x) {
|
|
17319
|
-
var d = u.split(/[\n\r]+/), p = -1, E = -1, g = 0, _ = 0, y = [], S = [], C = null,
|
|
17326
|
+
var d = u.split(/[\n\r]+/), p = -1, E = -1, g = 0, _ = 0, y = [], S = [], C = null, b = {}, A = [], R = [], I = [], q = 0, X;
|
|
17320
17327
|
for (+x.codepage >= 0 && set_cp(+x.codepage); g !== d.length; ++g) {
|
|
17321
|
-
|
|
17328
|
+
q = 0;
|
|
17322
17329
|
var W = d[g].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, i).replace(t, r), K = W.replace(/;;/g, "\0").split(";").map(function(z) {
|
|
17323
17330
|
return z.replace(/\u0000/g, ";");
|
|
17324
|
-
}),
|
|
17325
|
-
if (W.length > 0) switch (
|
|
17331
|
+
}), ae = K[0], Y;
|
|
17332
|
+
if (W.length > 0) switch (ae) {
|
|
17326
17333
|
case "ID":
|
|
17327
17334
|
break;
|
|
17328
17335
|
/* header */
|
|
@@ -17342,7 +17349,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17342
17349
|
K[1].charAt(0) == "P" && S.push(W.slice(3).replace(/;;/g, ";"));
|
|
17343
17350
|
break;
|
|
17344
17351
|
case "C":
|
|
17345
|
-
var L = !1, j = !1,
|
|
17352
|
+
var L = !1, j = !1, T = !1, k = !1, M = -1, D = -1;
|
|
17346
17353
|
for (_ = 1; _ < K.length; ++_) switch (K[_].charAt(0)) {
|
|
17347
17354
|
case "A":
|
|
17348
17355
|
break;
|
|
@@ -17354,7 +17361,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17354
17361
|
for (p = parseInt(K[_].slice(1)) - 1, j || (E = 0), X = y.length; X <= p; ++X) y[X] = [];
|
|
17355
17362
|
break;
|
|
17356
17363
|
case "K":
|
|
17357
|
-
|
|
17364
|
+
Y = K[_].slice(1), Y.charAt(0) === '"' ? Y = Y.slice(1, Y.length - 1) : Y === "TRUE" ? Y = !0 : Y === "FALSE" ? Y = !1 : isNaN(fuzzynum(Y)) ? isNaN(fuzzydate(Y).getDate()) || (Y = parseDate(Y)) : (Y = fuzzynum(Y), C !== null && fmt_is_date(C) && (Y = numdate(Y))), L = !0;
|
|
17358
17365
|
break;
|
|
17359
17366
|
case "E":
|
|
17360
17367
|
k = !0;
|
|
@@ -17362,7 +17369,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17362
17369
|
y[p][E] = [y[p][E], P];
|
|
17363
17370
|
break;
|
|
17364
17371
|
case "S":
|
|
17365
|
-
|
|
17372
|
+
T = !0, y[p][E] = [y[p][E], "S5S"];
|
|
17366
17373
|
break;
|
|
17367
17374
|
case "G":
|
|
17368
17375
|
break;
|
|
@@ -17376,7 +17383,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17376
17383
|
default:
|
|
17377
17384
|
if (x && x.WTF) throw new Error("SYLK bad record " + W);
|
|
17378
17385
|
}
|
|
17379
|
-
if (L && (y[p][E] && y[p][E].length == 2 ? y[p][E][0] =
|
|
17386
|
+
if (L && (y[p][E] && y[p][E].length == 2 ? y[p][E][0] = Y : y[p][E] = Y, C = null), T) {
|
|
17380
17387
|
if (k) throw new Error("SYLK shared formula cannot have own formula");
|
|
17381
17388
|
var H = M > -1 && y[M][D];
|
|
17382
17389
|
if (!H || !H[1]) throw new Error("SYLK shared formula cannot find base");
|
|
@@ -17393,7 +17400,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17393
17400
|
for (p = parseInt(K[_].slice(1)) - 1, X = y.length; X <= p; ++X) y[X] = [];
|
|
17394
17401
|
break;
|
|
17395
17402
|
case "M":
|
|
17396
|
-
|
|
17403
|
+
q = parseInt(K[_].slice(1)) / 20;
|
|
17397
17404
|
break;
|
|
17398
17405
|
case "F":
|
|
17399
17406
|
break;
|
|
@@ -17415,13 +17422,13 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17415
17422
|
/* font */
|
|
17416
17423
|
case "W":
|
|
17417
17424
|
for (I = K[_].slice(1).split(" "), X = parseInt(I[0], 10); X <= parseInt(I[1], 10); ++X)
|
|
17418
|
-
|
|
17425
|
+
q = parseInt(I[2], 10), R[X - 1] = q === 0 ? { hidden: !0 } : { wch: q }, process_col(R[X - 1]);
|
|
17419
17426
|
break;
|
|
17420
17427
|
case "C":
|
|
17421
17428
|
E = parseInt(K[_].slice(1)) - 1, R[E] || (R[E] = {});
|
|
17422
17429
|
break;
|
|
17423
17430
|
case "R":
|
|
17424
|
-
p = parseInt(K[_].slice(1)) - 1, A[p] || (A[p] = {}),
|
|
17431
|
+
p = parseInt(K[_].slice(1)) - 1, A[p] || (A[p] = {}), q > 0 ? (A[p].hpt = q, A[p].hpx = pt2px(q)) : q === 0 && (A[p].hidden = !0);
|
|
17425
17432
|
break;
|
|
17426
17433
|
default:
|
|
17427
17434
|
if (x && x.WTF) throw new Error("SYLK bad record " + W);
|
|
@@ -17432,7 +17439,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17432
17439
|
if (x && x.WTF) throw new Error("SYLK bad record " + W);
|
|
17433
17440
|
}
|
|
17434
17441
|
}
|
|
17435
|
-
return A.length > 0 && (
|
|
17442
|
+
return A.length > 0 && (b["!rows"] = A), R.length > 0 && (b["!cols"] = R), x && x.sheetRows && (y = y.slice(0, x.sheetRows)), [y, b];
|
|
17436
17443
|
}
|
|
17437
17444
|
function a(u, x) {
|
|
17438
17445
|
var d = s(u, x), p = d[0], E = d[1], g = aoa_to_sheet(p, x);
|
|
@@ -17482,8 +17489,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17482
17489
|
d.push("P;PGeneral"), d.push("F;P0;DG0G8;M255"), u["!cols"] && f(d, u["!cols"]), u["!rows"] && c(d, u["!rows"]), d.push("B;Y" + (E.e.r - E.s.r + 1) + ";X" + (E.e.c - E.s.c + 1) + ";D" + [E.s.c, E.s.r, E.e.c, E.e.r].join(" "));
|
|
17483
17490
|
for (var S = E.s.r; S <= E.e.r; ++S)
|
|
17484
17491
|
for (var C = E.s.c; C <= E.e.c; ++C) {
|
|
17485
|
-
var
|
|
17486
|
-
g = _ ? (u[S] || [])[C] : u[
|
|
17492
|
+
var b = encode_cell({ r: S, c: C });
|
|
17493
|
+
g = _ ? (u[S] || [])[C] : u[b], !(!g || g.v == null && (!g.f || g.F)) && p.push(l(g, u, S, C));
|
|
17487
17494
|
}
|
|
17488
17495
|
return d.join(y) + y + p.join(y) + y + "E" + y;
|
|
17489
17496
|
}
|
|
@@ -17741,11 +17748,11 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17741
17748
|
function n(c, m) {
|
|
17742
17749
|
var u = m || {}, x = "", d = u.dense ? [] : {}, p = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
|
|
17743
17750
|
c.slice(0, 4) == "sep=" ? c.charCodeAt(5) == 13 && c.charCodeAt(6) == 10 ? (x = c.charAt(4), c = c.slice(7)) : c.charCodeAt(5) == 13 || c.charCodeAt(5) == 10 ? (x = c.charAt(4), c = c.slice(6)) : x = s(c.slice(0, 1024)) : u && u.FS ? x = u.FS : x = s(c.slice(0, 1024));
|
|
17744
|
-
var E = 0, g = 0, _ = 0, y = 0, S = 0, C = x.charCodeAt(0),
|
|
17751
|
+
var E = 0, g = 0, _ = 0, y = 0, S = 0, C = x.charCodeAt(0), b = !1, A = 0, R = c.charCodeAt(0);
|
|
17745
17752
|
c = c.replace(/\r\n/mg, `
|
|
17746
17753
|
`);
|
|
17747
17754
|
var I = u.dateNF != null ? dateNF_regex(u.dateNF) : null;
|
|
17748
|
-
function
|
|
17755
|
+
function q() {
|
|
17749
17756
|
var X = c.slice(y, S), W = {};
|
|
17750
17757
|
if (X.charAt(0) == '"' && X.charAt(X.length - 1) == '"' && (X = X.slice(1, -1).replace(/""/g, '"')), X.length === 0) W.t = "z";
|
|
17751
17758
|
else if (u.raw)
|
|
@@ -17771,15 +17778,15 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17771
17778
|
}
|
|
17772
17779
|
e: for (; S < c.length; ++S) switch (A = c.charCodeAt(S)) {
|
|
17773
17780
|
case 34:
|
|
17774
|
-
R === 34 && (
|
|
17781
|
+
R === 34 && (b = !b);
|
|
17775
17782
|
break;
|
|
17776
17783
|
case C:
|
|
17777
17784
|
case 10:
|
|
17778
17785
|
case 13:
|
|
17779
|
-
if (!
|
|
17786
|
+
if (!b && q()) break e;
|
|
17780
17787
|
break;
|
|
17781
17788
|
}
|
|
17782
|
-
return S - y > 0 &&
|
|
17789
|
+
return S - y > 0 && q(), d["!ref"] = encode_range(p), d;
|
|
17783
17790
|
}
|
|
17784
17791
|
function a(c, m) {
|
|
17785
17792
|
return !(m && m.PRN) || m.FS || c.slice(0, 4) == "sep=" || c.indexOf(" ") >= 0 || c.indexOf(",") >= 0 || c.indexOf(";") >= 0 ? n(c, m) : aoa_to_sheet(t(c, m), m);
|
|
@@ -17968,7 +17975,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17968
17975
|
var ye = Ce[ke] + je, Fe = Se ? (pe[he] || [])[ke] : pe[ye];
|
|
17969
17976
|
if (!(!Fe || Fe.t == "z"))
|
|
17970
17977
|
if (Fe.t == "n")
|
|
17971
|
-
write_biff_rec(z, 23,
|
|
17978
|
+
write_biff_rec(z, 23, q(he, ke, fe, Fe.v));
|
|
17972
17979
|
else {
|
|
17973
17980
|
var Ie = format_cell(Fe);
|
|
17974
17981
|
write_biff_rec(z, 22, A(he, ke, fe, Ie.slice(0, 239)));
|
|
@@ -18170,7 +18177,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18170
18177
|
var H = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0];
|
|
18171
18178
|
return H[0].r = P.read_shift(2), H[3] = P[P.l++], H[0].c = P[P.l++], H;
|
|
18172
18179
|
}
|
|
18173
|
-
function
|
|
18180
|
+
function b(P, H) {
|
|
18174
18181
|
var B = C(P);
|
|
18175
18182
|
return B[1].t = "s", B[1].v = P.read_shift(H - 4, "cstr"), B;
|
|
18176
18183
|
}
|
|
@@ -18223,7 +18230,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18223
18230
|
var fe = ce & 32768;
|
|
18224
18231
|
return ce = (ce & 32767) - 16446, B[1].v = (1 - fe * 2) * (re * Math.pow(2, ce + 32) + z * Math.pow(2, ce)), B;
|
|
18225
18232
|
}
|
|
18226
|
-
function
|
|
18233
|
+
function q(P, H, B, z) {
|
|
18227
18234
|
var re = new_buf(14);
|
|
18228
18235
|
if (re.write_shift(2, P), re.write_shift(1, B), re.write_shift(1, H), z == 0)
|
|
18229
18236
|
return re.write_shift(4, 0), re.write_shift(4, 0), re.write_shift(2, 65535), re;
|
|
@@ -18242,11 +18249,11 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18242
18249
|
var B = C(P), z = P.read_shift(8, "f");
|
|
18243
18250
|
return B[1].v = z, B;
|
|
18244
18251
|
}
|
|
18245
|
-
function
|
|
18252
|
+
function ae(P, H) {
|
|
18246
18253
|
var B = K(P);
|
|
18247
18254
|
return P.l += H - 10, B;
|
|
18248
18255
|
}
|
|
18249
|
-
function
|
|
18256
|
+
function Y(P, H) {
|
|
18250
18257
|
return P[P.l + H - 1] == 0 ? P.read_shift(H, "cstr") : "";
|
|
18251
18258
|
}
|
|
18252
18259
|
function L(P, H) {
|
|
@@ -18263,7 +18270,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18263
18270
|
return [z, re];
|
|
18264
18271
|
}
|
|
18265
18272
|
}
|
|
18266
|
-
function
|
|
18273
|
+
function T(P, H) {
|
|
18267
18274
|
for (var B = {}, z = P.l + H; P.l < z; ) {
|
|
18268
18275
|
var re = P.read_shift(2);
|
|
18269
18276
|
if (re == 14e3) {
|
|
@@ -18407,7 +18414,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18407
18414
|
/*::[*/
|
|
18408
18415
|
105: { n: "MRANGES??" },
|
|
18409
18416
|
/*::[*/
|
|
18410
|
-
204: { n: "SHEETNAMECS", f:
|
|
18417
|
+
204: { n: "SHEETNAMECS", f: Y },
|
|
18411
18418
|
/*::[*/
|
|
18412
18419
|
222: { n: "SHEETNAMELP", f: L },
|
|
18413
18420
|
/*::[*/
|
|
@@ -18458,7 +18465,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18458
18465
|
/*::[*/
|
|
18459
18466
|
21: { n: "NACELL" },
|
|
18460
18467
|
/*::[*/
|
|
18461
|
-
22: { n: "LABEL16", f:
|
|
18468
|
+
22: { n: "LABEL16", f: b },
|
|
18462
18469
|
/*::[*/
|
|
18463
18470
|
23: { n: "NUMBER17", f: I },
|
|
18464
18471
|
/*::[*/
|
|
@@ -18468,7 +18475,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18468
18475
|
/*::[*/
|
|
18469
18476
|
26: { n: "FORMULA1A" },
|
|
18470
18477
|
/*::[*/
|
|
18471
|
-
27: { n: "XFORMAT", f:
|
|
18478
|
+
27: { n: "XFORMAT", f: T },
|
|
18472
18479
|
/*::[*/
|
|
18473
18480
|
28: { n: "DTLABELMISC" },
|
|
18474
18481
|
/*::[*/
|
|
@@ -18492,7 +18499,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18492
18499
|
/*::[*/
|
|
18493
18500
|
39: { n: "NUMBER27", f: K },
|
|
18494
18501
|
/*::[*/
|
|
18495
|
-
40: { n: "FORMULA28", f:
|
|
18502
|
+
40: { n: "FORMULA28", f: ae },
|
|
18496
18503
|
/*::[*/
|
|
18497
18504
|
142: { n: "??" },
|
|
18498
18505
|
/*::[*/
|
|
@@ -18536,7 +18543,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18536
18543
|
/*::[*/
|
|
18537
18544
|
201: { n: "??" },
|
|
18538
18545
|
/*::[*/
|
|
18539
|
-
204: { n: "SHEETNAMECS", f:
|
|
18546
|
+
204: { n: "SHEETNAMECS", f: Y },
|
|
18540
18547
|
/*::[*/
|
|
18541
18548
|
205: { n: "??" },
|
|
18542
18549
|
/*::[*/
|
|
@@ -20071,8 +20078,8 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20071
20078
|
case "PtgFuncVar":
|
|
20072
20079
|
var S = y[1][0], C = y[1][1];
|
|
20073
20080
|
S || (S = 0), S &= 127;
|
|
20074
|
-
var
|
|
20075
|
-
o.length -= S, C === "User" && (C =
|
|
20081
|
+
var b = S == 0 ? [] : o.slice(-S);
|
|
20082
|
+
o.length -= S, C === "User" && (C = b.shift()), o.push(C + "(" + b.join(",") + ")");
|
|
20076
20083
|
break;
|
|
20077
20084
|
case "PtgBool":
|
|
20078
20085
|
o.push(y[1] ? "TRUE" : "FALSE");
|
|
@@ -20122,9 +20129,9 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20122
20129
|
case "PtgNameX":
|
|
20123
20130
|
var I = y[1][1];
|
|
20124
20131
|
u = y[1][2];
|
|
20125
|
-
var
|
|
20132
|
+
var q;
|
|
20126
20133
|
if (s.biff <= 5)
|
|
20127
|
-
I < 0 && (I = -I), i[I] && (
|
|
20134
|
+
I < 0 && (I = -I), i[I] && (q = i[I][u]);
|
|
20128
20135
|
else {
|
|
20129
20136
|
var X = "";
|
|
20130
20137
|
if (((i[I] || [])[0] || [])[0] == 14849 || (((i[I] || [])[0] || [])[0] == 1025 ? i[I][u] && i[I][u].itab > 0 && (X = i.SheetNames[i[I][u].itab - 1] + "!") : X = i.SheetNames[u - 1] + "!"), i[I] && i[I][u]) X += i[I][u].Name;
|
|
@@ -20136,10 +20143,10 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20136
20143
|
o.push(X);
|
|
20137
20144
|
break;
|
|
20138
20145
|
}
|
|
20139
|
-
|
|
20146
|
+
q || (q = { Name: "SH33TJSERRY" }), o.push(q.Name);
|
|
20140
20147
|
break;
|
|
20141
20148
|
case "PtgParen":
|
|
20142
|
-
var K = "(",
|
|
20149
|
+
var K = "(", ae = ")";
|
|
20143
20150
|
if (p >= 0) {
|
|
20144
20151
|
switch (E = "", e[0][p][1][0]) {
|
|
20145
20152
|
// $FlowIgnore
|
|
@@ -20152,18 +20159,18 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20152
20159
|
break;
|
|
20153
20160
|
// $FlowIgnore
|
|
20154
20161
|
case 4:
|
|
20155
|
-
|
|
20162
|
+
ae = fill(" ", e[0][p][1][1]) + ae;
|
|
20156
20163
|
break;
|
|
20157
20164
|
// $FlowIgnore
|
|
20158
20165
|
case 5:
|
|
20159
|
-
|
|
20166
|
+
ae = fill("\r", e[0][p][1][1]) + ae;
|
|
20160
20167
|
break;
|
|
20161
20168
|
default:
|
|
20162
20169
|
if (s.WTF) throw new Error("Unexpected PtgAttrSpaceType " + e[0][p][1][0]);
|
|
20163
20170
|
}
|
|
20164
20171
|
p = -1;
|
|
20165
20172
|
}
|
|
20166
|
-
o.push(K + o.pop() +
|
|
20173
|
+
o.push(K + o.pop() + ae);
|
|
20167
20174
|
break;
|
|
20168
20175
|
case "PtgRefErr":
|
|
20169
20176
|
o.push("#REF!");
|
|
@@ -20173,15 +20180,15 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20173
20180
|
break;
|
|
20174
20181
|
case "PtgExp":
|
|
20175
20182
|
c = { c: y[1][1], r: y[1][0] };
|
|
20176
|
-
var
|
|
20183
|
+
var Y = { c: r.c, r: r.r };
|
|
20177
20184
|
if (i.sharedf[encode_cell(c)]) {
|
|
20178
20185
|
var L = i.sharedf[encode_cell(c)];
|
|
20179
|
-
o.push(stringify_formula(L, a,
|
|
20186
|
+
o.push(stringify_formula(L, a, Y, i, s));
|
|
20180
20187
|
} else {
|
|
20181
20188
|
var j = !1;
|
|
20182
20189
|
for (l = 0; l != i.arrayf.length; ++l)
|
|
20183
20190
|
if (f = i.arrayf[l], !(c.c < f[0].s.c || c.c > f[0].e.c) && !(c.r < f[0].s.r || c.r > f[0].e.r)) {
|
|
20184
|
-
o.push(stringify_formula(f[1], a,
|
|
20191
|
+
o.push(stringify_formula(f[1], a, Y, i, s)), j = !0;
|
|
20185
20192
|
break;
|
|
20186
20193
|
}
|
|
20187
20194
|
j || o.push(
|
|
@@ -20256,8 +20263,8 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20256
20263
|
default:
|
|
20257
20264
|
throw new Error("Unrecognized Formula Token: " + String(y));
|
|
20258
20265
|
}
|
|
20259
|
-
var
|
|
20260
|
-
if (s.biff != 3 && p >= 0 &&
|
|
20266
|
+
var T = ["PtgAttrSpace", "PtgAttrSpaceSemi", "PtgAttrGoto"];
|
|
20267
|
+
if (s.biff != 3 && p >= 0 && T.indexOf(e[0][g][0]) == -1) {
|
|
20261
20268
|
y = e[0][p];
|
|
20262
20269
|
var k = !0;
|
|
20263
20270
|
switch (y[1][0]) {
|
|
@@ -26881,19 +26888,19 @@ function sheet_add_dom(e, t, r) {
|
|
|
26881
26888
|
}
|
|
26882
26889
|
var C = S.children;
|
|
26883
26890
|
for (E = g = 0; E < C.length; ++E) {
|
|
26884
|
-
var
|
|
26885
|
-
if (!(i.display && is_dom_element_hidden(
|
|
26886
|
-
var A =
|
|
26891
|
+
var b = C[E];
|
|
26892
|
+
if (!(i.display && is_dom_element_hidden(b))) {
|
|
26893
|
+
var A = b.hasAttribute("data-v") ? b.getAttribute("data-v") : b.hasAttribute("v") ? b.getAttribute("v") : htmldecode(b.innerHTML), R = b.getAttribute("data-z") || b.getAttribute("z");
|
|
26887
26894
|
for (u = 0; u < m.length; ++u) {
|
|
26888
26895
|
var I = m[u];
|
|
26889
26896
|
I.s.c == g + n && I.s.r < p + s && p + s <= I.e.r && (g = I.e.c + 1 - n, u = -1);
|
|
26890
26897
|
}
|
|
26891
|
-
y = +
|
|
26892
|
-
var
|
|
26893
|
-
A != null && (A.length == 0 ?
|
|
26894
|
-
var W = "", K =
|
|
26895
|
-
if (K && K.length) for (var
|
|
26896
|
-
W && W.charAt(0) != "#" && (
|
|
26898
|
+
y = +b.getAttribute("colspan") || 1, ((_ = +b.getAttribute("rowspan") || 1) > 1 || y > 1) && m.push({ s: { r: p + s, c: g + n }, e: { r: p + s + (_ || 1) - 1, c: g + n + (y || 1) - 1 } });
|
|
26899
|
+
var q = { t: "s", v: A }, X = b.getAttribute("data-t") || b.getAttribute("t") || "";
|
|
26900
|
+
A != null && (A.length == 0 ? q.t = X || "z" : i.raw || A.trim().length == 0 || X == "s" || (A === "TRUE" ? q = { t: "b", v: !0 } : A === "FALSE" ? q = { t: "b", v: !1 } : isNaN(fuzzynum(A)) ? isNaN(fuzzydate(A).getDate()) || (q = { t: "d", v: parseDate(A) }, i.cellDates || (q = { t: "n", v: datenum(q.v) }), q.z = i.dateNF || table_fmt[14]) : q = { t: "n", v: fuzzynum(A) })), q.z === void 0 && R != null && (q.z = R);
|
|
26901
|
+
var W = "", K = b.getElementsByTagName("A");
|
|
26902
|
+
if (K && K.length) for (var ae = 0; ae < K.length && !(K[ae].hasAttribute("href") && (W = K[ae].getAttribute("href"), W.charAt(0) != "#")); ++ae) ;
|
|
26903
|
+
W && W.charAt(0) != "#" && (q.l = { Target: W }), i.dense ? (e[p + s] || (e[p + s] = []), e[p + s][g + n] = q) : e[encode_cell({ c: g + n, r: p + s })] = q, f.e.c < g + n && (f.e.c = g + n), g += y;
|
|
26897
26904
|
}
|
|
26898
26905
|
}
|
|
26899
26906
|
++p;
|
|
@@ -26976,8 +26983,8 @@ var write_styles_ods = /* @__PURE__ */ function() {
|
|
|
26976
26983
|
}
|
|
26977
26984
|
var S = encode_cell({ r: f, c }), C = d ? (n[f] || [])[c] : n[S];
|
|
26978
26985
|
if (C && C.f && (_["table:formula"] = escapexml(csf_to_ods_formula(C.f)), C.F && C.F.slice(0, S.length) == S)) {
|
|
26979
|
-
var
|
|
26980
|
-
_["table:number-matrix-columns-spanned"] =
|
|
26986
|
+
var b = decode_range(C.F);
|
|
26987
|
+
_["table:number-matrix-columns-spanned"] = b.e.c - b.s.c + 1, _["table:number-matrix-rows-spanned"] = b.e.r - b.s.r + 1;
|
|
26981
26988
|
}
|
|
26982
26989
|
if (!C) {
|
|
26983
26990
|
l.push(t);
|
|
@@ -27462,45 +27469,45 @@ function write_numbers_iwa(e, t) {
|
|
|
27462
27469
|
;
|
|
27463
27470
|
if (S[C].id != _)
|
|
27464
27471
|
throw "Bad ColumnRowUIDMapArchive";
|
|
27465
|
-
var
|
|
27466
|
-
|
|
27472
|
+
var b = parse_shallow(S[C].messages[0].data);
|
|
27473
|
+
b[1] = [], b[2] = [], b[3] = [];
|
|
27467
27474
|
for (var A = 0; A <= i.e.c; ++A) {
|
|
27468
27475
|
var R = [];
|
|
27469
|
-
R[1] = R[2] = [{ type: 0, data: write_varint49(A + 420690) }],
|
|
27476
|
+
R[1] = R[2] = [{ type: 0, data: write_varint49(A + 420690) }], b[1].push({ type: 2, data: write_shallow(R) }), b[2].push({ type: 0, data: write_varint49(A) }), b[3].push({ type: 0, data: write_varint49(A) });
|
|
27470
27477
|
}
|
|
27471
|
-
|
|
27478
|
+
b[4] = [], b[5] = [], b[6] = [];
|
|
27472
27479
|
for (var I = 0; I <= i.e.r; ++I)
|
|
27473
|
-
R = [], R[1] = R[2] = [{ type: 0, data: write_varint49(I + 726270) }],
|
|
27474
|
-
S[C].messages[0].data = write_shallow(
|
|
27480
|
+
R = [], R[1] = R[2] = [{ type: 0, data: write_varint49(I + 726270) }], b[4].push({ type: 2, data: write_shallow(R) }), b[5].push({ type: 0, data: write_varint49(I) }), b[6].push({ type: 0, data: write_varint49(I) });
|
|
27481
|
+
S[C].messages[0].data = write_shallow(b);
|
|
27475
27482
|
}
|
|
27476
27483
|
y.content = compress_iwa_file(write_iwa_file(S)), y.size = y.content.length, delete g[46];
|
|
27477
|
-
var
|
|
27484
|
+
var q = parse_shallow(g[4][0].data);
|
|
27478
27485
|
{
|
|
27479
|
-
|
|
27480
|
-
var X = parse_shallow(
|
|
27486
|
+
q[7][0].data = write_varint49(i.e.r + 1);
|
|
27487
|
+
var X = parse_shallow(q[1][0].data), W = parse_TSP_Reference(X[2][0].data);
|
|
27481
27488
|
y = CFB.find(f, o[W].location), S = parse_iwa_file(decompress_iwa_file(y.content));
|
|
27482
27489
|
{
|
|
27483
27490
|
if (S[0].id != W)
|
|
27484
27491
|
throw "Bad HeaderStorageBucket";
|
|
27485
27492
|
var K = parse_shallow(S[0].messages[0].data);
|
|
27486
27493
|
for (I = 0; I < n.length; ++I) {
|
|
27487
|
-
var
|
|
27488
|
-
|
|
27494
|
+
var ae = parse_shallow(K[2][0].data);
|
|
27495
|
+
ae[1][0].data = write_varint49(I), ae[4][0].data = write_varint49(n[I].length), K[2][I] = { type: K[2][0].type, data: write_shallow(ae) };
|
|
27489
27496
|
}
|
|
27490
27497
|
S[0].messages[0].data = write_shallow(K);
|
|
27491
27498
|
}
|
|
27492
27499
|
y.content = compress_iwa_file(write_iwa_file(S)), y.size = y.content.length;
|
|
27493
|
-
var
|
|
27494
|
-
y = CFB.find(f, o[
|
|
27500
|
+
var Y = parse_TSP_Reference(q[2][0].data);
|
|
27501
|
+
y = CFB.find(f, o[Y].location), S = parse_iwa_file(decompress_iwa_file(y.content));
|
|
27495
27502
|
{
|
|
27496
|
-
if (S[0].id !=
|
|
27503
|
+
if (S[0].id != Y)
|
|
27497
27504
|
throw "Bad HeaderStorageBucket";
|
|
27498
27505
|
for (K = parse_shallow(S[0].messages[0].data), A = 0; A <= i.e.c; ++A)
|
|
27499
|
-
|
|
27506
|
+
ae = parse_shallow(K[2][0].data), ae[1][0].data = write_varint49(A), ae[4][0].data = write_varint49(i.e.r + 1), K[2][A] = { type: K[2][0].type, data: write_shallow(ae) };
|
|
27500
27507
|
S[0].messages[0].data = write_shallow(K);
|
|
27501
27508
|
}
|
|
27502
27509
|
y.content = compress_iwa_file(write_iwa_file(S)), y.size = y.content.length;
|
|
27503
|
-
var L = parse_TSP_Reference(
|
|
27510
|
+
var L = parse_TSP_Reference(q[4][0].data);
|
|
27504
27511
|
(function() {
|
|
27505
27512
|
for (var H = CFB.find(f, o[L].location), B = parse_iwa_file(decompress_iwa_file(H.content)), z, re = 0; re < B.length; ++re) {
|
|
27506
27513
|
var ce = B[re];
|
|
@@ -27518,11 +27525,11 @@ function write_numbers_iwa(e, t) {
|
|
|
27518
27525
|
var le = write_iwa_file(B), Se = compress_iwa_file(le);
|
|
27519
27526
|
H.content = Se, H.size = H.content.length;
|
|
27520
27527
|
})();
|
|
27521
|
-
var j = parse_shallow(
|
|
27528
|
+
var j = parse_shallow(q[3][0].data);
|
|
27522
27529
|
{
|
|
27523
|
-
var
|
|
27530
|
+
var T = j[1][0];
|
|
27524
27531
|
delete j[2];
|
|
27525
|
-
var k = parse_shallow(
|
|
27532
|
+
var k = parse_shallow(T.data);
|
|
27526
27533
|
{
|
|
27527
27534
|
var M = parse_TSP_Reference(k[2][0].data);
|
|
27528
27535
|
(function() {
|
|
@@ -27546,11 +27553,11 @@ function write_numbers_iwa(e, t) {
|
|
|
27546
27553
|
H.content = he, H.size = H.content.length;
|
|
27547
27554
|
})();
|
|
27548
27555
|
}
|
|
27549
|
-
|
|
27556
|
+
T.data = write_shallow(k);
|
|
27550
27557
|
}
|
|
27551
|
-
|
|
27558
|
+
q[3][0].data = write_shallow(j);
|
|
27552
27559
|
}
|
|
27553
|
-
g[4][0].data = write_shallow(
|
|
27560
|
+
g[4][0].data = write_shallow(q);
|
|
27554
27561
|
}
|
|
27555
27562
|
x.messages[0].data = write_shallow(g);
|
|
27556
27563
|
var D = write_iwa_file(u), P = compress_iwa_file(D);
|
|
@@ -27945,8 +27952,8 @@ function sheet_to_json(e, t) {
|
|
|
27945
27952
|
}
|
|
27946
27953
|
for (g = l.s.r + s; g <= l.e.r; ++g)
|
|
27947
27954
|
if (!(C[g] || {}).hidden) {
|
|
27948
|
-
var
|
|
27949
|
-
(
|
|
27955
|
+
var b = make_json_row(e, l, g, u, i, n, E, f);
|
|
27956
|
+
(b.isempty === !1 || (i === 1 ? f.blankrows !== !1 : f.blankrows)) && (x[d++] = b.row);
|
|
27950
27957
|
}
|
|
27951
27958
|
return x.length = d, x;
|
|
27952
27959
|
}
|
|
@@ -28276,21 +28283,21 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28276
28283
|
handleDeleteClick: y,
|
|
28277
28284
|
handleApproveClick: S,
|
|
28278
28285
|
handleReassignClick: C,
|
|
28279
|
-
handleCancelClick:
|
|
28286
|
+
handleCancelClick: b,
|
|
28280
28287
|
noOfPagesPerPage: A,
|
|
28281
28288
|
clickableColumns: R,
|
|
28282
28289
|
conditionalClickableColumns: I,
|
|
28283
28290
|
// NEW PROP
|
|
28284
|
-
handleCellClick:
|
|
28291
|
+
handleCellClick: q,
|
|
28285
28292
|
onReload: X,
|
|
28286
28293
|
// Destructure onReload prop
|
|
28287
28294
|
showDownloadIcon: W = !0,
|
|
28288
28295
|
showRefreshIcon: K = !0,
|
|
28289
|
-
showFullViewIcon:
|
|
28290
|
-
showSearchIcon:
|
|
28296
|
+
showFullViewIcon: ae = !0,
|
|
28297
|
+
showSearchIcon: Y = !0,
|
|
28291
28298
|
showColumnVisibilityIcon: L = !0,
|
|
28292
28299
|
showSortIcon: j = !0,
|
|
28293
|
-
showFilterIcon:
|
|
28300
|
+
showFilterIcon: T = !0,
|
|
28294
28301
|
defaultSortConfig: k,
|
|
28295
28302
|
onDataUpdate: M,
|
|
28296
28303
|
// Destructure onDataUpdate prop
|
|
@@ -28302,7 +28309,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28302
28309
|
{}
|
|
28303
28310
|
), [re, ce] = useState(!1), [fe, pe] = useState([]), [le, Se] = useState([]), [Ce, Te] = useState([]), [he, je] = useState(!1), [ke, ye] = useState(/* @__PURE__ */ new Set()), [Fe, Ie] = useState(null), [Ve, Pe] = useState(!1), [Je, $e] = useState(""), [De, Ke] = useState("contains"), [Ue, Ge] = useState(""), [Le, ze] = useState({}), [et, qe] = useState(0), [rt, wt] = useState(
|
|
28304
28311
|
A ?? 10
|
|
28305
|
-
), [pt, St] = useState(/* @__PURE__ */ new Set()), [Ze, ot] = useState(""), [dt, xt] = useState(!1), [He, mt] = useState(/* @__PURE__ */ new Set()), [lt, ft] = useState([]), [ct, Ct] = useState(null), yt = useRef(null), vt = useRef(null), gt = useRef(null), [ht, bt] = useState(/* @__PURE__ */ new Set()), [Ye, _t] = useState([]), [At, kt] = useState(!1), [tt, F] = useState(null), V = useRef([]), [N, O] = useState(!1), U = () => O(!0), G = () => O(!1), [Q,
|
|
28312
|
+
), [pt, St] = useState(/* @__PURE__ */ new Set()), [Ze, ot] = useState(""), [dt, xt] = useState(!1), [He, mt] = useState(/* @__PURE__ */ new Set()), [lt, ft] = useState([]), [ct, Ct] = useState(null), yt = useRef(null), vt = useRef(null), gt = useRef(null), [ht, bt] = useState(/* @__PURE__ */ new Set()), [Ye, _t] = useState([]), [At, kt] = useState(!1), [tt, F] = useState(null), V = useRef([]), [N, O] = useState(!1), U = () => O(!0), G = () => O(!1), [Q, ne] = useState(!0);
|
|
28306
28313
|
useEffect(() => {
|
|
28307
28314
|
if (t && Array.isArray(t)) {
|
|
28308
28315
|
const J = JSON.stringify(V.current) !== JSON.stringify(t);
|
|
@@ -28318,7 +28325,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28318
28325
|
return Xe.localeCompare(at);
|
|
28319
28326
|
}), se === "desc" && te.reverse(), F(k);
|
|
28320
28327
|
}
|
|
28321
|
-
if (pe(te), Se(te),
|
|
28328
|
+
if (pe(te), Se(te), ne(!1), H ? (ot(""), ze({})) : de(), o) {
|
|
28322
28329
|
const oe = {}, se = Array.isArray(o) ? o : [o];
|
|
28323
28330
|
te.forEach((xe, Ee) => {
|
|
28324
28331
|
const ge = xe.id ?? `__row_${Ee}`;
|
|
@@ -28332,7 +28339,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28332
28339
|
V.current = t;
|
|
28333
28340
|
}
|
|
28334
28341
|
} else
|
|
28335
|
-
|
|
28342
|
+
ne(!0);
|
|
28336
28343
|
}, [t, k, o]), useEffect(() => {
|
|
28337
28344
|
if (fe.length > 0) {
|
|
28338
28345
|
const J = (r ?? []).map((se) => ({
|
|
@@ -28619,7 +28626,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28619
28626
|
const oe = String(te);
|
|
28620
28627
|
return R != null && R.includes(J) ? I != null && I[J] ? I[J].includes(oe) : !0 : !!((se = I == null ? void 0 : I._global_) != null && se.includes(oe));
|
|
28621
28628
|
}, Ft = (J, te) => {
|
|
28622
|
-
Qe(te, J[te]) &&
|
|
28629
|
+
Qe(te, J[te]) && q && q(J, te);
|
|
28623
28630
|
}, Tt = me.some(
|
|
28624
28631
|
(J) => Array.from(He).some(
|
|
28625
28632
|
(te) => Array.isArray(J[te]) && J[te].length > 0 && J[te].some(
|
|
@@ -28725,7 +28732,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28725
28732
|
}
|
|
28726
28733
|
}
|
|
28727
28734
|
),
|
|
28728
|
-
|
|
28735
|
+
T && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28729
28736
|
"div",
|
|
28730
28737
|
{
|
|
28731
28738
|
className: "dropdown-container",
|
|
@@ -29191,7 +29198,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29191
29198
|
width: 20,
|
|
29192
29199
|
height: 20,
|
|
29193
29200
|
style: { cursor: "pointer" },
|
|
29194
|
-
onClick:
|
|
29201
|
+
onClick: b
|
|
29195
29202
|
}
|
|
29196
29203
|
),
|
|
29197
29204
|
u && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -29442,10 +29449,10 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29442
29449
|
), oe = utils.json_to_sheet(te), se = utils.book_new();
|
|
29443
29450
|
utils.book_append_sheet(se, oe, "Data"), writeFileSync(se, "data-grid-export.xlsx", { bookType: "xlsx" });
|
|
29444
29451
|
}, Mt = () => {
|
|
29445
|
-
X ? (
|
|
29446
|
-
ze({}),
|
|
29447
|
-
})) : (
|
|
29448
|
-
pe(t), Se(t), qe(0), ot(""), Ge(""), $e(""), ze({}), F(null),
|
|
29452
|
+
X ? (ne(!0), Promise.resolve(X()).finally(() => {
|
|
29453
|
+
ze({}), ne(!1);
|
|
29454
|
+
})) : (ne(!0), setTimeout(() => {
|
|
29455
|
+
pe(t), Se(t), qe(0), ot(""), Ge(""), $e(""), ze({}), F(null), ne(!1);
|
|
29449
29456
|
}, 300));
|
|
29450
29457
|
}, Dt = Ye.filter(
|
|
29451
29458
|
(J) => J.shouldVisible !== !1
|
|
@@ -29552,7 +29559,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29552
29559
|
onClick: Mt
|
|
29553
29560
|
}
|
|
29554
29561
|
),
|
|
29555
|
-
|
|
29562
|
+
ae && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29556
29563
|
"button",
|
|
29557
29564
|
{
|
|
29558
29565
|
className: "fullscreen-button",
|
|
@@ -29703,7 +29710,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29703
29710
|
}
|
|
29704
29711
|
);
|
|
29705
29712
|
}, DateRangeIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%204.5H18V3.5C18%202.95%2017.55%202.5%2017%202.5C16.45%202.5%2016%202.95%2016%203.5V4.5H8V3.5C8%202.95%207.55%202.5%207%202.5C6.45%202.5%206%202.95%206%203.5V4.5H5C3.89%204.5%203.01%205.4%203.01%206.5L3%2020.5C3%2021.6%203.89%2022.5%205%2022.5H19C20.1%2022.5%2021%2021.6%2021%2020.5V6.5C21%205.4%2020.1%204.5%2019%204.5ZM19%2019.5C19%2020.05%2018.55%2020.5%2018%2020.5H6C5.45%2020.5%205%2020.05%205%2019.5V9.5H19V19.5ZM7%2011.5H9V13.5H7V11.5ZM11%2011.5H13V13.5H11V11.5ZM15%2011.5H17V13.5H15V11.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e", WEEKDAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], CEDatePicker = ({ onChange: e, label: t = "Calendar" }) => {
|
|
29706
|
-
const [r, i] = useState(!1), [s, n] = useState(null), [a, o] = useState(/* @__PURE__ */ new Date()), [l, f] = useState(!1), [c, m] = useState({ start: 2020, end: 2031 }), [u, x] = useState("left"), [d, p] = useState(0), E = useRef(null), [g, _] = useState(!1), [y, S] = useState(""), [C,
|
|
29713
|
+
const [r, i] = useState(!1), [s, n] = useState(null), [a, o] = useState(/* @__PURE__ */ new Date()), [l, f] = useState(!1), [c, m] = useState({ start: 2020, end: 2031 }), [u, x] = useState("left"), [d, p] = useState(0), E = useRef(null), [g, _] = useState(!1), [y, S] = useState(""), [C, b] = useState(""), [A, R] = useState(""), [I, q] = useState(!0), X = () => {
|
|
29707
29714
|
i(!1), !y && !C && !A && _(!1);
|
|
29708
29715
|
};
|
|
29709
29716
|
useEscapeKey(X);
|
|
@@ -29711,7 +29718,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29711
29718
|
i((M) => {
|
|
29712
29719
|
if (!M) {
|
|
29713
29720
|
const D = s || /* @__PURE__ */ new Date();
|
|
29714
|
-
o(D), y || S(String(D.getMonth() + 1).padStart(2, "0")), C ||
|
|
29721
|
+
o(D), y || S(String(D.getMonth() + 1).padStart(2, "0")), C || b(String(D.getDate()).padStart(2, "0")), A || R(String(D.getFullYear()));
|
|
29715
29722
|
}
|
|
29716
29723
|
return !M;
|
|
29717
29724
|
});
|
|
@@ -29726,13 +29733,13 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29726
29733
|
const D = new Date(a.getFullYear(), a.getMonth(), M);
|
|
29727
29734
|
n(D), o(D);
|
|
29728
29735
|
const P = String(D.getMonth() + 1).padStart(2, "0"), H = String(D.getDate()).padStart(2, "0"), B = String(D.getFullYear());
|
|
29729
|
-
S(P),
|
|
29730
|
-
},
|
|
29736
|
+
S(P), b(H), R(B), q(!0), e(`${P}/${H}/${B}`), i(!1);
|
|
29737
|
+
}, ae = (M) => {
|
|
29731
29738
|
x(M > 0 ? "left" : "right"), o((D) => {
|
|
29732
29739
|
const P = new Date(D.getFullYear(), D.getMonth() + M, 1);
|
|
29733
29740
|
return s && S(String(P.getMonth() + 1).padStart(2, "0")), p((H) => H + 1), P;
|
|
29734
29741
|
});
|
|
29735
|
-
},
|
|
29742
|
+
}, Y = () => {
|
|
29736
29743
|
f((M) => !M);
|
|
29737
29744
|
}, L = (M) => {
|
|
29738
29745
|
m((D) => ({
|
|
@@ -29742,7 +29749,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29742
29749
|
}, j = (M) => {
|
|
29743
29750
|
const D = new Date(M, a.getMonth(), 1);
|
|
29744
29751
|
o(D), R(String(M)), f(!1);
|
|
29745
|
-
},
|
|
29752
|
+
}, T = () => {
|
|
29746
29753
|
const M = new Date(a.getFullYear(), a.getMonth(), 1), D = new Date(a.getFullYear(), a.getMonth() + 1, 0), P = M.getDay(), H = D.getDate(), B = /* @__PURE__ */ new Date(), z = (ce) => !s && // Only highlight today if no date is selected
|
|
29747
29754
|
B.getDate() === ce && B.getMonth() === a.getMonth() && B.getFullYear() === a.getFullYear(), re = [];
|
|
29748
29755
|
for (let ce = 0; ce < P; ce++)
|
|
@@ -29764,15 +29771,15 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29764
29771
|
return re;
|
|
29765
29772
|
}, k = (M, D, P) => {
|
|
29766
29773
|
if (!M || !D || !P) {
|
|
29767
|
-
|
|
29774
|
+
q(!1), o(/* @__PURE__ */ new Date()), n(null);
|
|
29768
29775
|
return;
|
|
29769
29776
|
}
|
|
29770
29777
|
const H = `${P}-${M}-${D}`, B = new Date(H);
|
|
29771
29778
|
if (B.getFullYear() === parseInt(P) && B.getMonth() + 1 === parseInt(M) && B.getDate() === parseInt(D))
|
|
29772
|
-
n(B), o(B),
|
|
29779
|
+
n(B), o(B), q(!0), e(`${M}/${D}/${P}`);
|
|
29773
29780
|
else {
|
|
29774
29781
|
const z = /* @__PURE__ */ new Date();
|
|
29775
|
-
|
|
29782
|
+
q(!1), n(null), o(z), S(M), b(D), R(P);
|
|
29776
29783
|
}
|
|
29777
29784
|
};
|
|
29778
29785
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dp-wrapper", ref: E, children: [
|
|
@@ -29806,7 +29813,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29806
29813
|
{
|
|
29807
29814
|
value: C,
|
|
29808
29815
|
onChange: (M) => {
|
|
29809
|
-
|
|
29816
|
+
b(M), k(y, M, A);
|
|
29810
29817
|
},
|
|
29811
29818
|
placeholder: "DD",
|
|
29812
29819
|
max: 31,
|
|
@@ -29841,56 +29848,57 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29841
29848
|
] }),
|
|
29842
29849
|
r && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dp-calendar", children: [
|
|
29843
29850
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dp-header", children: [
|
|
29844
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dp-title", onClick:
|
|
29851
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dp-title", onClick: Y, children: [
|
|
29845
29852
|
l ? `${c.start} - ${c.end}` : `${a.toLocaleString("default", { month: "long" })} ${a.getFullYear()}`,
|
|
29846
29853
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "dp-toggle-icon", children: "▾" })
|
|
29847
29854
|
] }),
|
|
29848
29855
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dp-controls", children: [
|
|
29849
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => l ? L(-1) :
|
|
29850
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => l ? L(1) :
|
|
29856
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => l ? L(-1) : ae(-1), children: "‹" }),
|
|
29857
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => l ? L(1) : ae(1), children: "›" })
|
|
29851
29858
|
] })
|
|
29852
29859
|
] }),
|
|
29853
29860
|
!l && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dp-weekdays", children: WEEKDAYS.map((M) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dp-weekday", children: M }, M)) }),
|
|
29854
29861
|
l ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dp-years-grid", children: Array.from({ length: c.end - c.start + 1 }, (M, D) => {
|
|
29855
29862
|
const P = c.start + D;
|
|
29856
29863
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dp-year-item", onClick: () => j(P), children: P }, P);
|
|
29857
|
-
}) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `dp-days dp-slide-${u}`, children:
|
|
29864
|
+
}) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `dp-days dp-slide-${u}`, children: T() }, d)
|
|
29858
29865
|
] })
|
|
29859
29866
|
] });
|
|
29860
29867
|
}, CEDateRangePicker = ({
|
|
29861
29868
|
label: e = "Submitted Date",
|
|
29862
29869
|
onChange: t,
|
|
29863
29870
|
size: r = "medium",
|
|
29864
|
-
style: i
|
|
29871
|
+
style: i,
|
|
29872
|
+
inputGroupStyle: s
|
|
29865
29873
|
}) => {
|
|
29866
|
-
const [
|
|
29867
|
-
!
|
|
29868
|
-
},
|
|
29869
|
-
|
|
29870
|
-
},
|
|
29871
|
-
const
|
|
29872
|
-
|
|
29873
|
-
},
|
|
29874
|
-
const
|
|
29875
|
-
|
|
29876
|
-
},
|
|
29874
|
+
const [n, a] = useState(""), [o, l] = useState(""), [f, c] = useState(!1), [m, u] = useState(""), x = () => c(!0), d = (y) => {
|
|
29875
|
+
!y.currentTarget.value && !n && !o && c(!1);
|
|
29876
|
+
}, p = (y, S) => {
|
|
29877
|
+
y && S && new Date(S) < new Date(y) ? u("End date must be after or equal to start date") : (u(""), t == null || t({ startDate: y, endDate: S }));
|
|
29878
|
+
}, E = (y) => {
|
|
29879
|
+
const S = y.target.value;
|
|
29880
|
+
a(S), p(S, o);
|
|
29881
|
+
}, g = (y) => {
|
|
29882
|
+
const S = y.target.value;
|
|
29883
|
+
l(S), p(n, S);
|
|
29884
|
+
}, _ = getSizeStyle$1(r);
|
|
29877
29885
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "date-range-picker", style: i, children: [
|
|
29878
29886
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "floating-label float", children: e }),
|
|
29879
29887
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29880
29888
|
"div",
|
|
29881
29889
|
{
|
|
29882
|
-
className: `input-group ${
|
|
29883
|
-
style: { padding:
|
|
29890
|
+
className: `input-group ${m ? "input-error" : ""}`,
|
|
29891
|
+
style: { padding: _.padding, fontSize: _.fontSize, ...s },
|
|
29884
29892
|
children: [
|
|
29885
29893
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29886
29894
|
"input",
|
|
29887
29895
|
{
|
|
29888
29896
|
type: "date",
|
|
29889
|
-
value:
|
|
29890
|
-
onChange:
|
|
29891
|
-
onFocus:
|
|
29892
|
-
onBlur:
|
|
29893
|
-
style: { fontSize:
|
|
29897
|
+
value: n,
|
|
29898
|
+
onChange: E,
|
|
29899
|
+
onFocus: x,
|
|
29900
|
+
onBlur: d,
|
|
29901
|
+
style: { fontSize: _.fontSize }
|
|
29894
29902
|
}
|
|
29895
29903
|
),
|
|
29896
29904
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "separator", children: " - " }),
|
|
@@ -29898,17 +29906,17 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29898
29906
|
"input",
|
|
29899
29907
|
{
|
|
29900
29908
|
type: "date",
|
|
29901
|
-
value:
|
|
29902
|
-
onChange:
|
|
29903
|
-
onFocus:
|
|
29904
|
-
onBlur:
|
|
29905
|
-
style: { fontSize:
|
|
29909
|
+
value: o,
|
|
29910
|
+
onChange: g,
|
|
29911
|
+
onFocus: x,
|
|
29912
|
+
onBlur: d,
|
|
29913
|
+
style: { fontSize: _.fontSize }
|
|
29906
29914
|
}
|
|
29907
29915
|
)
|
|
29908
29916
|
]
|
|
29909
29917
|
}
|
|
29910
29918
|
),
|
|
29911
|
-
|
|
29919
|
+
m && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "error-text", children: m })
|
|
29912
29920
|
] });
|
|
29913
29921
|
}, FieldsInput = ({
|
|
29914
29922
|
label: e,
|
|
@@ -30385,27 +30393,21 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30385
30393
|
onFocus: d,
|
|
30386
30394
|
onBlur: p
|
|
30387
30395
|
}) => {
|
|
30388
|
-
const [E, g] = useState(!1), _ = (
|
|
30389
|
-
g(!0), d == null || d(
|
|
30390
|
-
}, y = (
|
|
30391
|
-
g(!1), p == null || p(
|
|
30392
|
-
}, S = (
|
|
30393
|
-
const
|
|
30394
|
-
i === "number" && !/^\d*$/.test(
|
|
30395
|
-
}, C = getSizeStyle$1(x || "medium"),
|
|
30396
|
+
const [E, g] = useState(!1), _ = (R) => {
|
|
30397
|
+
g(!0), d == null || d(R);
|
|
30398
|
+
}, y = (R) => {
|
|
30399
|
+
g(!1), p == null || p(R);
|
|
30400
|
+
}, S = (R) => {
|
|
30401
|
+
const I = R.target.value;
|
|
30402
|
+
i === "number" && !/^\d*$/.test(I) || i === "alphanumeric" && !/^[a-zA-Z0-9]*$/.test(I) || t(I);
|
|
30403
|
+
}, C = getSizeStyle$1(x || "medium"), b = f && a && !e, A = {
|
|
30396
30404
|
fontSize: C.fontSize,
|
|
30397
30405
|
padding: C.padding,
|
|
30398
30406
|
...u
|
|
30399
30407
|
// if you have a style prop
|
|
30400
30408
|
};
|
|
30401
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `validated-input-wrapper ${E ? "focused" : ""}`, children: [
|
|
30402
|
-
c && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30403
|
-
"label",
|
|
30404
|
-
{
|
|
30405
|
-
className: `validated-input-label ${e || E ? "shrink" : ""}`,
|
|
30406
|
-
children: c
|
|
30407
|
-
}
|
|
30408
|
-
),
|
|
30409
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `validated-input-wrapper ${E ? "focused" : ""} ${b ? "error" : ""}`, children: [
|
|
30410
|
+
c && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: `validated-input-label ${e || E ? "shrink" : ""}`, children: c }),
|
|
30409
30411
|
i === "textarea" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30410
30412
|
"textarea",
|
|
30411
30413
|
{
|
|
@@ -30414,9 +30416,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30414
30416
|
onFocus: _,
|
|
30415
30417
|
onBlur: y,
|
|
30416
30418
|
placeholder: r || " ",
|
|
30417
|
-
className:
|
|
30419
|
+
className: `validated-input-field ${b ? "input-error" : ""}`,
|
|
30418
30420
|
disabled: m,
|
|
30419
|
-
style:
|
|
30421
|
+
style: A
|
|
30420
30422
|
}
|
|
30421
30423
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30422
30424
|
"input",
|
|
@@ -30427,9 +30429,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30427
30429
|
onFocus: _,
|
|
30428
30430
|
onBlur: y,
|
|
30429
30431
|
placeholder: r || " ",
|
|
30430
|
-
className:
|
|
30432
|
+
className: `validated-input-field ${b ? "input-error" : ""}`,
|
|
30431
30433
|
disabled: m,
|
|
30432
|
-
style:
|
|
30434
|
+
style: A
|
|
30433
30435
|
}
|
|
30434
30436
|
),
|
|
30435
30437
|
f && !e && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "validated-input-error", children: l })
|
|
@@ -30485,8 +30487,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30485
30487
|
{
|
|
30486
30488
|
className: "close-icon",
|
|
30487
30489
|
onClick: (C) => {
|
|
30488
|
-
var
|
|
30489
|
-
C.stopPropagation(), _(((
|
|
30490
|
+
var b;
|
|
30491
|
+
C.stopPropagation(), _(((b = e.find((A) => A.label === y)) == null ? void 0 : b.value) || "");
|
|
30490
30492
|
},
|
|
30491
30493
|
children: "×"
|
|
30492
30494
|
}
|
|
@@ -30744,9 +30746,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30744
30746
|
useEffect(() => {
|
|
30745
30747
|
f.current && e && (f.current.innerHTML = e);
|
|
30746
30748
|
}, [e]);
|
|
30747
|
-
const E = useCallback((
|
|
30749
|
+
const E = useCallback((b) => {
|
|
30748
30750
|
try {
|
|
30749
|
-
return document.queryCommandState(
|
|
30751
|
+
return document.queryCommandState(b);
|
|
30750
30752
|
} catch {
|
|
30751
30753
|
return !1;
|
|
30752
30754
|
}
|
|
@@ -30763,33 +30765,33 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30763
30765
|
justifyRight: E("justifyRight"),
|
|
30764
30766
|
justifyFull: E("justifyFull")
|
|
30765
30767
|
});
|
|
30766
|
-
}, [E]), _ = useCallback((
|
|
30767
|
-
var
|
|
30768
|
+
}, [E]), _ = useCallback((b, A = "") => {
|
|
30769
|
+
var q, X;
|
|
30768
30770
|
const R = saveSelection(), I = document.getSelection();
|
|
30769
|
-
if (
|
|
30771
|
+
if (b === "createLink") {
|
|
30770
30772
|
const W = prompt("Enter URL:");
|
|
30771
30773
|
if (W) {
|
|
30772
30774
|
restoreSelection(R), document.execCommand("createLink", !1, W);
|
|
30773
|
-
const K = (
|
|
30775
|
+
const K = (q = I == null ? void 0 : I.anchorNode) == null ? void 0 : q.parentElement;
|
|
30774
30776
|
K instanceof HTMLAnchorElement && (K.target = "_blank", K.rel = "noopener noreferrer");
|
|
30775
30777
|
}
|
|
30776
|
-
} else if (
|
|
30778
|
+
} else if (b === "insertImage") {
|
|
30777
30779
|
const W = prompt("Enter image URL:");
|
|
30778
30780
|
if (W) {
|
|
30779
30781
|
restoreSelection(R);
|
|
30780
30782
|
const K = `<img src="${W}" alt="image" style="max-width: 100%; height: auto;"/>`;
|
|
30781
30783
|
document.execCommand("insertHTML", !1, K);
|
|
30782
30784
|
}
|
|
30783
|
-
} else
|
|
30785
|
+
} else b === "fontSize" || b === "fontName" ? (restoreSelection(R), document.execCommand(b, !0, A), b === "fontSize" ? m(A) : x(A)) : (restoreSelection(R), document.execCommand(b, !1, A));
|
|
30784
30786
|
f.current && (t == null || t(f.current.innerHTML)), (X = f.current) == null || X.focus(), g();
|
|
30785
|
-
}, [t, g]), y = (
|
|
30786
|
-
if (
|
|
30787
|
-
switch (
|
|
30787
|
+
}, [t, g]), y = (b) => {
|
|
30788
|
+
if (b.key === "Tab" && (b.preventDefault(), document.execCommand("insertHTML", !1, " ")), b.ctrlKey || b.metaKey)
|
|
30789
|
+
switch (b.key.toLowerCase()) {
|
|
30788
30790
|
case "z":
|
|
30789
|
-
|
|
30791
|
+
b.preventDefault(), b.shiftKey ? _("redo") : _("undo");
|
|
30790
30792
|
break;
|
|
30791
30793
|
case "y":
|
|
30792
|
-
|
|
30794
|
+
b.preventDefault(), _("redo");
|
|
30793
30795
|
break;
|
|
30794
30796
|
}
|
|
30795
30797
|
}, S = [
|
|
@@ -30935,20 +30937,20 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30935
30937
|
"select",
|
|
30936
30938
|
{
|
|
30937
30939
|
value: c,
|
|
30938
|
-
onChange: (
|
|
30940
|
+
onChange: (b) => _("fontSize", b.target.value),
|
|
30939
30941
|
className: "toolbar-select",
|
|
30940
30942
|
title: "Font Size",
|
|
30941
|
-
children: S.map((
|
|
30943
|
+
children: S.map((b) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: b.value, children: b.label }, b.value))
|
|
30942
30944
|
}
|
|
30943
30945
|
) }),
|
|
30944
30946
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "toolbar-group", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30945
30947
|
"select",
|
|
30946
30948
|
{
|
|
30947
30949
|
value: u,
|
|
30948
|
-
onChange: (
|
|
30950
|
+
onChange: (b) => _("fontName", b.target.value),
|
|
30949
30951
|
className: "toolbar-select",
|
|
30950
30952
|
title: "Font Family",
|
|
30951
|
-
children: C.map((
|
|
30953
|
+
children: C.map((b) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: b, children: b }, b))
|
|
30952
30954
|
}
|
|
30953
30955
|
) }),
|
|
30954
30956
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "toolbar-group", children: [
|
|
@@ -31021,32 +31023,32 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31021
31023
|
initialTime: r = "",
|
|
31022
31024
|
className: i = ""
|
|
31023
31025
|
}) => {
|
|
31024
|
-
const [s, n] = useState(!1), [a, o] = useState(r), [l, f] = useState("12"), [c, m] = useState("00"), [u, x] = useState("AM"), [d, p] = useState(!1), [E, g] = useState(""), [_, y] = useState(""), S = useRef(null), C = Array.from({ length: 12 }, (
|
|
31025
|
-
if (!
|
|
31026
|
-
const j = parseInt(
|
|
31027
|
-
return L === "hours" ? j > 12 ? "12" : j === 0 ? "01" :
|
|
31028
|
-
}, R = (
|
|
31029
|
-
const L =
|
|
31030
|
-
let
|
|
31026
|
+
const [s, n] = useState(!1), [a, o] = useState(r), [l, f] = useState("12"), [c, m] = useState("00"), [u, x] = useState("AM"), [d, p] = useState(!1), [E, g] = useState(""), [_, y] = useState(""), S = useRef(null), C = Array.from({ length: 12 }, (Y, L) => String(L + 1).padStart(2, "0")), b = Array.from({ length: 60 }, (Y, L) => String(L).padStart(2, "0")), A = (Y, L) => {
|
|
31027
|
+
if (!Y) return "";
|
|
31028
|
+
const j = parseInt(Y);
|
|
31029
|
+
return L === "hours" ? j > 12 ? "12" : j === 0 ? "01" : Y.padStart(2, "0") : j > 59 ? "59" : Y.padStart(2, "0");
|
|
31030
|
+
}, R = (Y) => {
|
|
31031
|
+
const L = Y.target.value, j = Y.target.selectionStart || 0;
|
|
31032
|
+
let T = l, k = c, M = u, D = a;
|
|
31031
31033
|
if (j <= 2) {
|
|
31032
31034
|
const P = L.substring(0, 2).replace(/[^0-9]/g, "");
|
|
31033
31035
|
if (P) {
|
|
31034
31036
|
if (P.length === 1) {
|
|
31035
31037
|
const H = parseInt(P);
|
|
31036
|
-
H >= 2 && H <= 9 ? (
|
|
31038
|
+
H >= 2 && H <= 9 ? (T = P.padStart(2, "0"), setTimeout(() => {
|
|
31037
31039
|
S.current && S.current.setSelectionRange(3, 5);
|
|
31038
|
-
}, 10)) : (
|
|
31040
|
+
}, 10)) : (T = P, setTimeout(() => {
|
|
31039
31041
|
S.current && S.current.setSelectionRange(1, 1);
|
|
31040
31042
|
}, 10));
|
|
31041
31043
|
} else if (P.length === 2) {
|
|
31042
31044
|
const H = parseInt(P);
|
|
31043
|
-
H >= 1 && H <= 12 ? (
|
|
31045
|
+
H >= 1 && H <= 12 ? (T = P, setTimeout(() => {
|
|
31044
31046
|
S.current && S.current.setSelectionRange(3, 5);
|
|
31045
|
-
}, 10)) : (
|
|
31047
|
+
}, 10)) : (T = P[0], setTimeout(() => {
|
|
31046
31048
|
S.current && S.current.setSelectionRange(1, 1);
|
|
31047
31049
|
}, 10));
|
|
31048
31050
|
}
|
|
31049
|
-
D = `${
|
|
31051
|
+
D = `${T}:${c} ${u}`;
|
|
31050
31052
|
}
|
|
31051
31053
|
} else if (j >= 3 && j <= 5) {
|
|
31052
31054
|
const P = L.indexOf(":") + 1, H = L.substring(P, P + 2).replace(/[^0-9]/g, "");
|
|
@@ -31069,8 +31071,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31069
31071
|
const H = L.substring(L.lastIndexOf(" ") + 1).toUpperCase();
|
|
31070
31072
|
H.startsWith("A") ? (M = "AM", D = `${l}:${c} AM`) : H.startsWith("P") && (M = "PM", D = `${l}:${c} PM`);
|
|
31071
31073
|
}
|
|
31072
|
-
f(
|
|
31073
|
-
}, I = (
|
|
31074
|
+
f(T), m(k), x(M), o(D), n(!1), t == null || t(D);
|
|
31075
|
+
}, I = (Y) => {
|
|
31074
31076
|
if (![
|
|
31075
31077
|
"Backspace",
|
|
31076
31078
|
"Delete",
|
|
@@ -31096,41 +31098,41 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31096
31098
|
"a",
|
|
31097
31099
|
"p",
|
|
31098
31100
|
"m"
|
|
31099
|
-
].includes(
|
|
31100
|
-
|
|
31101
|
+
].includes(Y.key)) {
|
|
31102
|
+
Y.preventDefault();
|
|
31101
31103
|
return;
|
|
31102
31104
|
}
|
|
31103
|
-
if (
|
|
31104
|
-
|
|
31105
|
-
const j =
|
|
31105
|
+
if (Y.key === "Enter" || Y.key === ":") {
|
|
31106
|
+
Y.preventDefault();
|
|
31107
|
+
const j = Y.currentTarget.selectionStart || 0;
|
|
31106
31108
|
if (j <= 2) {
|
|
31107
31109
|
if (E) {
|
|
31108
|
-
const
|
|
31109
|
-
f(
|
|
31110
|
+
const T = A(E, "hours");
|
|
31111
|
+
f(T), g(""), o(`${T}:${c} ${u}`);
|
|
31110
31112
|
}
|
|
31111
|
-
|
|
31113
|
+
Y.currentTarget.setSelectionRange(3, 5);
|
|
31112
31114
|
} else if (j >= 3 && j <= 5) {
|
|
31113
31115
|
if (_) {
|
|
31114
|
-
const
|
|
31115
|
-
m(
|
|
31116
|
+
const T = A(_, "minutes");
|
|
31117
|
+
m(T), y(""), o(`${l}:${T} ${u}`);
|
|
31116
31118
|
}
|
|
31117
|
-
|
|
31119
|
+
Y.currentTarget.setSelectionRange(6, 8);
|
|
31118
31120
|
}
|
|
31119
31121
|
}
|
|
31120
|
-
},
|
|
31121
|
-
const L =
|
|
31122
|
+
}, q = (Y) => {
|
|
31123
|
+
const L = Y.currentTarget.selectionStart || 0, j = S.current;
|
|
31122
31124
|
j && (L <= 1 ? j.setSelectionRange(0, 2) : L >= 3 && L <= 4 ? j.setSelectionRange(3, 5) : L >= 6 && j.setSelectionRange(6, 8));
|
|
31123
31125
|
}, X = () => {
|
|
31124
31126
|
n(!0), p(!0);
|
|
31125
|
-
}, W = (
|
|
31126
|
-
const j =
|
|
31127
|
-
f(j), m(
|
|
31128
|
-
const M = `${j}:${
|
|
31127
|
+
}, W = (Y, L) => {
|
|
31128
|
+
const j = Y === "hours" ? L : l, T = Y === "minutes" ? L : c, k = Y === "period" ? L : u;
|
|
31129
|
+
f(j), m(T), x(k);
|
|
31130
|
+
const M = `${j}:${T} ${k}`;
|
|
31129
31131
|
o(M), t == null || t(M);
|
|
31130
31132
|
}, K = () => {
|
|
31131
|
-
const
|
|
31132
|
-
o(
|
|
31133
|
-
},
|
|
31133
|
+
const Y = `${l}:${c} ${u}`;
|
|
31134
|
+
o(Y), n(!1), t == null || t(Y);
|
|
31135
|
+
}, ae = () => {
|
|
31134
31136
|
o(""), f("12"), m("00"), x("AM"), n(!1), p(!1);
|
|
31135
31137
|
};
|
|
31136
31138
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `time-picker-container ${i}`, children: [
|
|
@@ -31143,8 +31145,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31143
31145
|
value: a,
|
|
31144
31146
|
onChange: R,
|
|
31145
31147
|
onKeyDown: I,
|
|
31146
|
-
onClick: (
|
|
31147
|
-
a || X(), Y
|
|
31148
|
+
onClick: (Y) => {
|
|
31149
|
+
a || X(), q(Y);
|
|
31148
31150
|
},
|
|
31149
31151
|
onFocus: () => p(!0),
|
|
31150
31152
|
onBlur: () => !s && p(!1),
|
|
@@ -31154,8 +31156,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31154
31156
|
}
|
|
31155
31157
|
),
|
|
31156
31158
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: `floating-label ${s || d || a ? "active" : ""}`, children: e }),
|
|
31157
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "clock-icon", onClick: (
|
|
31158
|
-
|
|
31159
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "clock-icon", onClick: (Y) => {
|
|
31160
|
+
Y.stopPropagation(), X();
|
|
31159
31161
|
}, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
31160
31162
|
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
31161
31163
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 6v6l4 2" })
|
|
@@ -31165,43 +31167,43 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31165
31167
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "time-picker-sections", children: [
|
|
31166
31168
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "time-section", children: [
|
|
31167
31169
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "section-label", children: "Hours" }),
|
|
31168
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "time-list", children: C.map((
|
|
31170
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "time-list", children: C.map((Y) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31169
31171
|
"div",
|
|
31170
31172
|
{
|
|
31171
|
-
className: `time-item ${
|
|
31172
|
-
onClick: () => W("hours",
|
|
31173
|
-
children:
|
|
31173
|
+
className: `time-item ${Y === l ? "selected" : ""}`,
|
|
31174
|
+
onClick: () => W("hours", Y),
|
|
31175
|
+
children: Y
|
|
31174
31176
|
},
|
|
31175
|
-
|
|
31177
|
+
Y
|
|
31176
31178
|
)) })
|
|
31177
31179
|
] }),
|
|
31178
31180
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "time-section", children: [
|
|
31179
31181
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "section-label", children: "Minutes" }),
|
|
31180
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "time-list", children:
|
|
31182
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "time-list", children: b.map((Y) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31181
31183
|
"div",
|
|
31182
31184
|
{
|
|
31183
|
-
className: `time-item ${
|
|
31184
|
-
onClick: () => W("minutes",
|
|
31185
|
-
children:
|
|
31185
|
+
className: `time-item ${Y === c ? "selected" : ""}`,
|
|
31186
|
+
onClick: () => W("minutes", Y),
|
|
31187
|
+
children: Y
|
|
31186
31188
|
},
|
|
31187
|
-
|
|
31189
|
+
Y
|
|
31188
31190
|
)) })
|
|
31189
31191
|
] }),
|
|
31190
31192
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "time-section period", children: [
|
|
31191
31193
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "section-label", children: "Period" }),
|
|
31192
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "period-list", children: ["AM", "PM"].map((
|
|
31194
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "period-list", children: ["AM", "PM"].map((Y) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31193
31195
|
"div",
|
|
31194
31196
|
{
|
|
31195
|
-
className: `period-item ${
|
|
31196
|
-
onClick: () => W("period",
|
|
31197
|
-
children:
|
|
31197
|
+
className: `period-item ${Y === u ? "selected" : ""}`,
|
|
31198
|
+
onClick: () => W("period", Y),
|
|
31199
|
+
children: Y
|
|
31198
31200
|
},
|
|
31199
|
-
|
|
31201
|
+
Y
|
|
31200
31202
|
)) })
|
|
31201
31203
|
] })
|
|
31202
31204
|
] }),
|
|
31203
31205
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "time-picker-actions", children: [
|
|
31204
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "time-picker-button cancel", onClick:
|
|
31206
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "time-picker-button cancel", onClick: ae, children: "Cancel" }),
|
|
31205
31207
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "time-picker-button ok", onClick: K, children: "OK" })
|
|
31206
31208
|
] })
|
|
31207
31209
|
] })
|
|
@@ -31216,14 +31218,14 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31216
31218
|
const [n, a] = useState([]), [o, l] = useState([]), [f, c] = useState(!0), [m, u] = useState(null), [x, d] = useState(/* @__PURE__ */ new Set()), [p, E] = useState(/* @__PURE__ */ new Set());
|
|
31217
31219
|
useEffect(() => {
|
|
31218
31220
|
(async () => {
|
|
31219
|
-
var
|
|
31221
|
+
var b, A;
|
|
31220
31222
|
try {
|
|
31221
31223
|
c(!0), u(null);
|
|
31222
31224
|
const I = (await axios.get(e)).data.items || [];
|
|
31223
31225
|
a(I.slice(0, Math.ceil(I.length / 2))), l(I.slice(Math.ceil(I.length / 2)));
|
|
31224
31226
|
} catch (R) {
|
|
31225
31227
|
u(
|
|
31226
|
-
axios.isAxiosError(R) ? ((A = (
|
|
31228
|
+
axios.isAxiosError(R) ? ((A = (b = R.response) == null ? void 0 : b.data) == null ? void 0 : A.message) || R.message : "An error occurred"
|
|
31227
31229
|
);
|
|
31228
31230
|
} finally {
|
|
31229
31231
|
c(!1);
|
|
@@ -31232,43 +31234,43 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31232
31234
|
}, []);
|
|
31233
31235
|
const g = (C) => {
|
|
31234
31236
|
if (C === "available") {
|
|
31235
|
-
const
|
|
31236
|
-
const
|
|
31237
|
-
return
|
|
31237
|
+
const b = n.filter((R) => x.has(R.id)).sort((R, I) => {
|
|
31238
|
+
const q = parseInt(R.id.replace(/\D/g, "")), X = parseInt(I.id.replace(/\D/g, ""));
|
|
31239
|
+
return q - X;
|
|
31238
31240
|
}), A = n.filter((R) => !x.has(R.id));
|
|
31239
|
-
a(A), l((R) => [...R, ...
|
|
31240
|
-
const W = parseInt(
|
|
31241
|
+
a(A), l((R) => [...R, ...b].sort((q, X) => {
|
|
31242
|
+
const W = parseInt(q.id.replace(/\D/g, "")), K = parseInt(X.id.replace(/\D/g, ""));
|
|
31241
31243
|
return W - K;
|
|
31242
31244
|
})), d(/* @__PURE__ */ new Set());
|
|
31243
31245
|
} else {
|
|
31244
|
-
const
|
|
31245
|
-
const
|
|
31246
|
-
return
|
|
31246
|
+
const b = o.filter((R) => p.has(R.id)).sort((R, I) => {
|
|
31247
|
+
const q = parseInt(R.id.replace(/\D/g, "")), X = parseInt(I.id.replace(/\D/g, ""));
|
|
31248
|
+
return q - X;
|
|
31247
31249
|
}), A = o.filter((R) => !p.has(R.id));
|
|
31248
|
-
l(A), a((R) => [...R, ...
|
|
31249
|
-
const W = parseInt(
|
|
31250
|
+
l(A), a((R) => [...R, ...b].sort((q, X) => {
|
|
31251
|
+
const W = parseInt(q.id.replace(/\D/g, "")), K = parseInt(X.id.replace(/\D/g, ""));
|
|
31250
31252
|
return W - K;
|
|
31251
31253
|
})), E(/* @__PURE__ */ new Set());
|
|
31252
31254
|
}
|
|
31253
31255
|
t(o, n);
|
|
31254
|
-
}, _ = (C,
|
|
31256
|
+
}, _ = (C, b, A) => {
|
|
31255
31257
|
A((R) => {
|
|
31256
31258
|
const I = new Set(R);
|
|
31257
31259
|
return I.has(C) ? I.delete(C) : I.add(C), I;
|
|
31258
31260
|
});
|
|
31259
|
-
}, y = (C,
|
|
31260
|
-
const I = new Set(
|
|
31261
|
-
R ?
|
|
31262
|
-
}, S = (C,
|
|
31263
|
-
const I = C.filter((
|
|
31261
|
+
}, y = (C, b, A) => (R) => {
|
|
31262
|
+
const I = new Set(b), q = C.filter((X) => !X.disabled);
|
|
31263
|
+
R ? q.forEach((X) => I.add(X.id)) : q.forEach((X) => I.delete(X.id)), A(I);
|
|
31264
|
+
}, S = (C, b, A, R) => {
|
|
31265
|
+
const I = C.filter((ae) => !ae.disabled), q = I.length > 0 && I.every((ae) => b.has(ae.id)), X = b.size, W = C.length, K = C.length === 0;
|
|
31264
31266
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `transfer-box ${i}`, children: [
|
|
31265
31267
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "transfer-box-header", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "header-content", children: [
|
|
31266
31268
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "checkbox-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31267
31269
|
CECheckBox,
|
|
31268
31270
|
{
|
|
31269
31271
|
label: "",
|
|
31270
|
-
checked:
|
|
31271
|
-
onChange: y(C,
|
|
31272
|
+
checked: q,
|
|
31273
|
+
onChange: y(C, b, A),
|
|
31272
31274
|
disabled: K
|
|
31273
31275
|
}
|
|
31274
31276
|
) }),
|
|
@@ -31282,15 +31284,15 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
31282
31284
|
] })
|
|
31283
31285
|
] })
|
|
31284
31286
|
] }) }),
|
|
31285
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "transfer-items", children: C.map((
|
|
31287
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "transfer-items", children: C.map((ae) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
31286
31288
|
TransferItem,
|
|
31287
31289
|
{
|
|
31288
|
-
label:
|
|
31289
|
-
checked:
|
|
31290
|
-
disabled:
|
|
31291
|
-
onChange: () => _(
|
|
31290
|
+
label: ae.label,
|
|
31291
|
+
checked: b.has(ae.id),
|
|
31292
|
+
disabled: ae.disabled,
|
|
31293
|
+
onChange: () => _(ae.id, b, A)
|
|
31292
31294
|
},
|
|
31293
|
-
|
|
31295
|
+
ae.id
|
|
31294
31296
|
)) })
|
|
31295
31297
|
] });
|
|
31296
31298
|
};
|