cecomponent 1.0.37 → 1.0.38
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.js +20 -20
- package/dist/ce-component-lib.mjs +631 -597
- 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 === K ? 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 T:
|
|
67
67
|
return "SuspenseList";
|
|
68
68
|
case L:
|
|
69
69
|
return "Activity";
|
|
@@ -81,7 +81,7 @@ function requireReactJsxRuntime_development() {
|
|
|
81
81
|
case S:
|
|
82
82
|
var D = M.render;
|
|
83
83
|
return M = M.displayName, M || (M = D.displayName || D.name || "", M = M !== "" ? "ForwardRef(" + M + ")" : "ForwardRef"), M;
|
|
84
|
-
case
|
|
84
|
+
case b:
|
|
85
85
|
return D = M.displayName || null, D !== null ? D : e(M.type) || "Memo";
|
|
86
86
|
case R:
|
|
87
87
|
D = M._payload, M = M._init;
|
|
@@ -124,7 +124,7 @@ function requireReactJsxRuntime_development() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var M =
|
|
127
|
+
var M = J.A;
|
|
128
128
|
return M === null ? null : M.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function n() {
|
|
@@ -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"), y = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), g = 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"), y = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), g = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), J = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, te = Array.isArray, ie = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
u = {
|
|
@@ -253,7 +253,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
253
253
|
n
|
|
254
254
|
)(), A = ie(i(n)), k = {};
|
|
255
255
|
reactJsxRuntime_development.Fragment = p, reactJsxRuntime_development.jsx = function(M, D, F, H, j) {
|
|
256
|
-
var X = 1e4 >
|
|
256
|
+
var X = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return c(
|
|
258
258
|
M,
|
|
259
259
|
D,
|
|
@@ -265,7 +265,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
265
265
|
X ? ie(i(M)) : A
|
|
266
266
|
);
|
|
267
267
|
}, reactJsxRuntime_development.jsxs = function(M, D, F, H, j) {
|
|
268
|
-
var X = 1e4 >
|
|
268
|
+
var X = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return c(
|
|
270
270
|
M,
|
|
271
271
|
D,
|
|
@@ -307,11 +307,11 @@ function requireDist() {
|
|
|
307
307
|
y = u.lastIndexOf(";", _ - 1) + 1;
|
|
308
308
|
continue;
|
|
309
309
|
}
|
|
310
|
-
const C = o(u, y, _),
|
|
311
|
-
if (d[
|
|
310
|
+
const C = o(u, y, _), T = l(u, _, C), b = u.slice(C, T);
|
|
311
|
+
if (d[b] === void 0) {
|
|
312
312
|
let R = o(u, _ + 1, S), L = l(u, S, R);
|
|
313
|
-
const
|
|
314
|
-
d[
|
|
313
|
+
const K = E(u.slice(R, L));
|
|
314
|
+
d[b] = K;
|
|
315
315
|
}
|
|
316
316
|
y = S + 1;
|
|
317
317
|
} while (y < 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, y = !1;
|
|
1431
1431
|
if (typeof f == "string" && p && (E = f, isBrowser))
|
|
1432
1432
|
try {
|
|
1433
|
-
let L = new URL(window.location.href),
|
|
1434
|
-
|
|
1433
|
+
let L = new URL(window.location.href), K = f.startsWith("//") ? new URL(L.protocol + f) : new URL(f), J = stripBasename(K.pathname, d);
|
|
1434
|
+
K.origin === L.origin && J != null ? f = J + K.search + K.hash : y = !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 }), [g, S, C] = usePrefetchBehavior(
|
|
1442
1442
|
i,
|
|
1443
1443
|
u
|
|
1444
|
-
),
|
|
1444
|
+
), T = useLinkClickHandler(f, {
|
|
1445
1445
|
replace: a,
|
|
1446
1446
|
state: o,
|
|
1447
1447
|
target: l,
|
|
@@ -1449,8 +1449,8 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1449
1449
|
relative: s,
|
|
1450
1450
|
viewTransition: m
|
|
1451
1451
|
});
|
|
1452
|
-
function
|
|
1453
|
-
t && t(L), L.defaultPrevented ||
|
|
1452
|
+
function b(L) {
|
|
1453
|
+
t && t(L), L.defaultPrevented || T(L);
|
|
1454
1454
|
}
|
|
1455
1455
|
let R = (
|
|
1456
1456
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
@@ -1460,7 +1460,7 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1460
1460
|
...u,
|
|
1461
1461
|
...C,
|
|
1462
1462
|
href: E || _,
|
|
1463
|
-
onClick: y || n ? t :
|
|
1463
|
+
onClick: y || n ? t : b,
|
|
1464
1464
|
ref: mergeRefs(x, S),
|
|
1465
1465
|
target: l,
|
|
1466
1466
|
"data-discover": !p && r === "render" ? "true" : void 0
|
|
@@ -1488,18 +1488,18 @@ var NavLink = React2.forwardRef(
|
|
|
1488
1488
|
useViewTransitionState(m) && o === !0, y = d.encodeLocation ? d.encodeLocation(m).pathname : m.pathname, _ = u.pathname, g = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
|
|
1489
1489
|
r || (_ = _.toLowerCase(), g = g ? g.toLowerCase() : null, y = y.toLowerCase()), g && p && (g = stripBasename(g, p) || g);
|
|
1490
1490
|
const S = y !== "/" && y.endsWith("/") ? y.length - 1 : y.length;
|
|
1491
|
-
let C = _ === y || !s && _.startsWith(y) && _.charAt(S) === "/",
|
|
1491
|
+
let C = _ === y || !s && _.startsWith(y) && _.charAt(S) === "/", T = g != null && (g === y || !s && g.startsWith(y) && g.charAt(y.length) === "/"), b = {
|
|
1492
1492
|
isActive: C,
|
|
1493
|
-
isPending:
|
|
1493
|
+
isPending: T,
|
|
1494
1494
|
isTransitioning: E
|
|
1495
1495
|
}, R = C ? t : void 0, L;
|
|
1496
|
-
typeof i == "function" ? L = i(
|
|
1496
|
+
typeof i == "function" ? L = i(b) : L = [
|
|
1497
1497
|
i,
|
|
1498
1498
|
C ? "active" : null,
|
|
1499
|
-
|
|
1499
|
+
T ? "pending" : null,
|
|
1500
1500
|
E ? "transitioning" : null
|
|
1501
1501
|
].filter(Boolean).join(" ");
|
|
1502
|
-
let
|
|
1502
|
+
let K = typeof n == "function" ? n(b) : n;
|
|
1503
1503
|
return /* @__PURE__ */ React2.createElement(
|
|
1504
1504
|
Link,
|
|
1505
1505
|
{
|
|
@@ -1507,11 +1507,11 @@ var NavLink = React2.forwardRef(
|
|
|
1507
1507
|
"aria-current": R,
|
|
1508
1508
|
className: L,
|
|
1509
1509
|
ref: c,
|
|
1510
|
-
style:
|
|
1510
|
+
style: K,
|
|
1511
1511
|
to: a,
|
|
1512
1512
|
viewTransition: o
|
|
1513
1513
|
},
|
|
1514
|
-
typeof l == "function" ? l(
|
|
1514
|
+
typeof l == "function" ? l(b) : l
|
|
1515
1515
|
);
|
|
1516
1516
|
}
|
|
1517
1517
|
);
|
|
@@ -1768,7 +1768,7 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1768
1768
|
}, a) {
|
|
1769
1769
|
const o = { ...i, ...r };
|
|
1770
1770
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(t, { ref: a, style: o, ...n, children: s });
|
|
1771
|
-
}), CEAutoSuggestInput = ({
|
|
1771
|
+
}), SearchIcon = "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='M15.5001%2014.5H14.7101L14.4301%2014.23C15.6301%2012.83%2016.2501%2010.92%2015.9101%208.89002C15.4401%206.11002%2013.1201%203.89002%2010.3201%203.55002C6.09014%203.03002%202.53014%206.59001%203.05014%2010.82C3.39014%2013.62%205.61014%2015.94%208.39014%2016.41C10.4201%2016.75%2012.3301%2016.13%2013.7301%2014.93L14.0001%2015.21V16L18.2501%2020.25C18.6601%2020.66%2019.3301%2020.66%2019.7401%2020.25C20.1501%2019.84%2020.1501%2019.17%2019.7401%2018.76L15.5001%2014.5ZM9.50014%2014.5C7.01014%2014.5%205.00014%2012.49%205.00014%2010C5.00014%207.51002%207.01014%205.50002%209.50014%205.50002C11.9901%205.50002%2014.0001%207.51002%2014.0001%2010C14.0001%2012.49%2011.9901%2014.5%209.50014%2014.5Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e", ArrowIcon = "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='M8.12021%209.79006L12.0002%2013.6701L15.8802%209.79006C16.2702%209.40006%2016.9002%209.40006%2017.2902%209.79006C17.6802%2010.1801%2017.6802%2010.8101%2017.2902%2011.2001L12.7002%2015.7901C12.3102%2016.1801%2011.6802%2016.1801%2011.2902%2015.7901L6.70021%2011.2001C6.31021%2010.8101%206.31021%2010.1801%206.70021%209.79006C7.09021%209.41006%207.73021%209.40006%208.12021%209.79006Z'%20fill='black'%20fill-opacity='0.54'/%3e%3c/svg%3e", CEAutoSuggestInput = ({
|
|
1772
1772
|
label: e,
|
|
1773
1773
|
placeholder: t = "",
|
|
1774
1774
|
fetchSuggestions: r,
|
|
@@ -1784,7 +1784,7 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1784
1784
|
}) => {
|
|
1785
1785
|
const [u, x] = useState([]), [d, p] = useState(!1), [E, y] = useState(!1), [_, g] = useState(!1), [S, C] = useState(
|
|
1786
1786
|
Array.isArray(i) ? i : i ? [i] : []
|
|
1787
|
-
),
|
|
1787
|
+
), T = useRef(null);
|
|
1788
1788
|
useEffect(() => {
|
|
1789
1789
|
const W = Array.isArray(i) ? "" : i;
|
|
1790
1790
|
if (W.trim() === "") {
|
|
@@ -1793,22 +1793,22 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
y(!0), r(W).then((te) => x(te)).finally(() => y(!1));
|
|
1795
1795
|
}, [i, r]);
|
|
1796
|
-
const
|
|
1797
|
-
"--input-font-size":
|
|
1798
|
-
"--label-font-size":
|
|
1799
|
-
"--icon-size": `calc(${
|
|
1800
|
-
"--suggestion-font-size":
|
|
1801
|
-
"--input-padding":
|
|
1796
|
+
const b = getSizeStyle$1(l || "medium"), R = {
|
|
1797
|
+
"--input-font-size": b.fontSize,
|
|
1798
|
+
"--label-font-size": b.fontSize,
|
|
1799
|
+
"--icon-size": `calc(${b.fontSize} + 0.25rem)`,
|
|
1800
|
+
"--suggestion-font-size": b.fontSize,
|
|
1801
|
+
"--input-padding": b.padding,
|
|
1802
1802
|
"--input-padding-top": "1.25em",
|
|
1803
1803
|
"--icon-top": "1.2em",
|
|
1804
|
-
fontSize:
|
|
1804
|
+
fontSize: b.fontSize,
|
|
1805
1805
|
...o
|
|
1806
1806
|
}, L = (W) => {
|
|
1807
1807
|
let te = [];
|
|
1808
1808
|
S.includes(W) ? te = S.filter((ie) => ie !== W) : te = [...S, W], C(te), s(te);
|
|
1809
|
-
},
|
|
1809
|
+
}, K = () => {
|
|
1810
1810
|
S.length === u.length ? (C([]), s([])) : (C(u), s(u));
|
|
1811
|
-
},
|
|
1811
|
+
}, J = u.length > 0 && S.length === u.length;
|
|
1812
1812
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auto-suggest-input", style: R, children: [
|
|
1813
1813
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1814
1814
|
"div",
|
|
@@ -1819,7 +1819,7 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1819
1819
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1820
1820
|
"input",
|
|
1821
1821
|
{
|
|
1822
|
-
ref:
|
|
1822
|
+
ref: T,
|
|
1823
1823
|
type: "text",
|
|
1824
1824
|
value: f ? S.join(", ") : Array.isArray(i) ? "" : i,
|
|
1825
1825
|
placeholder: "",
|
|
@@ -1835,16 +1835,16 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: r }) => {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
),
|
|
1837
1837
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "floating-label", children: e }),
|
|
1838
|
-
c && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src:
|
|
1839
|
-
m && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src:
|
|
1838
|
+
c && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: SearchIcon, alt: "Search", className: "search-icon-img" }) }),
|
|
1839
|
+
m && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "search-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: ArrowIcon, alt: "Dropdown", className: "search-icon-img" }) }),
|
|
1840
1840
|
d && u.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: "suggestions-list", children: [
|
|
1841
1841
|
f && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: "suggestion-item select-all", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
|
|
1842
1842
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1843
1843
|
"input",
|
|
1844
1844
|
{
|
|
1845
1845
|
type: "checkbox",
|
|
1846
|
-
checked:
|
|
1847
|
-
onChange:
|
|
1846
|
+
checked: J,
|
|
1847
|
+
onChange: K
|
|
1848
1848
|
}
|
|
1849
1849
|
),
|
|
1850
1850
|
"Select All"
|
|
@@ -2893,10 +2893,10 @@ const resolveConfig = (e) => {
|
|
|
2893
2893
|
config: e,
|
|
2894
2894
|
request: E
|
|
2895
2895
|
};
|
|
2896
|
-
settle(function(
|
|
2897
|
-
r(
|
|
2898
|
-
}, function(
|
|
2899
|
-
i(
|
|
2896
|
+
settle(function(b) {
|
|
2897
|
+
r(b), p();
|
|
2898
|
+
}, function(b) {
|
|
2899
|
+
i(b), p();
|
|
2900
2900
|
}, C), E = null;
|
|
2901
2901
|
}
|
|
2902
2902
|
"onloadend" in E ? E.onloadend = y : E.onreadystatechange = function() {
|
|
@@ -3076,13 +3076,13 @@ const getBodyLength = async (e) => {
|
|
|
3076
3076
|
method: "POST",
|
|
3077
3077
|
body: i,
|
|
3078
3078
|
duplex: "half"
|
|
3079
|
-
}),
|
|
3080
|
-
if (utils$2.isFormData(i) && (
|
|
3081
|
-
const [
|
|
3079
|
+
}), T;
|
|
3080
|
+
if (utils$2.isFormData(i) && (T = C.headers.get("content-type")) && c.setContentType(T), C.body) {
|
|
3081
|
+
const [b, R] = progressEventDecorator(
|
|
3082
3082
|
E,
|
|
3083
3083
|
progressEventReducer(asyncDecorator(l))
|
|
3084
3084
|
);
|
|
3085
|
-
i = trackStream(C.body, DEFAULT_CHUNK_SIZE,
|
|
3085
|
+
i = trackStream(C.body, DEFAULT_CHUNK_SIZE, b, R);
|
|
3086
3086
|
}
|
|
3087
3087
|
}
|
|
3088
3088
|
utils$2.isString(m) || (m = m ? "include" : "omit");
|
|
@@ -3103,12 +3103,12 @@ const getBodyLength = async (e) => {
|
|
|
3103
3103
|
["status", "statusText", "headers"].forEach((L) => {
|
|
3104
3104
|
C[L] = _[L];
|
|
3105
3105
|
});
|
|
3106
|
-
const
|
|
3107
|
-
|
|
3106
|
+
const T = utils$2.toFiniteNumber(_.headers.get("content-length")), [b, R] = o && progressEventDecorator(
|
|
3107
|
+
T,
|
|
3108
3108
|
progressEventReducer(asyncDecorator(o), !0)
|
|
3109
3109
|
) || [];
|
|
3110
3110
|
_ = new Response(
|
|
3111
|
-
trackStream(_.body, DEFAULT_CHUNK_SIZE,
|
|
3111
|
+
trackStream(_.body, DEFAULT_CHUNK_SIZE, b, () => {
|
|
3112
3112
|
R && R(), p && p();
|
|
3113
3113
|
}),
|
|
3114
3114
|
C
|
|
@@ -3116,8 +3116,8 @@ const getBodyLength = async (e) => {
|
|
|
3116
3116
|
}
|
|
3117
3117
|
f = f || "text";
|
|
3118
3118
|
let S = await resolvers[utils$2.findKey(resolvers, f) || "text"](_, e);
|
|
3119
|
-
return !g && p && p(), await new Promise((C,
|
|
3120
|
-
settle(C,
|
|
3119
|
+
return !g && p && p(), await new Promise((C, T) => {
|
|
3120
|
+
settle(C, T, {
|
|
3121
3121
|
data: S,
|
|
3122
3122
|
headers: AxiosHeaders$1.from(_.headers),
|
|
3123
3123
|
status: _.status,
|
|
@@ -3700,18 +3700,35 @@ const {
|
|
|
3700
3700
|
id: p,
|
|
3701
3701
|
...E
|
|
3702
3702
|
}, y) => {
|
|
3703
|
-
const [_, g] = useState(""), S = p || `ce-search-field-${Math.random().toString(36).substr(2, 9)}`, C =
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3703
|
+
const [_, g] = useState(""), S = p || `ce-search-field-${Math.random().toString(36).substr(2, 9)}`, C = () => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3704
|
+
"svg",
|
|
3705
|
+
{
|
|
3706
|
+
width: "24",
|
|
3707
|
+
height: "25",
|
|
3708
|
+
viewBox: "0 0 24 25",
|
|
3709
|
+
fill: "none",
|
|
3710
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3711
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3712
|
+
"path",
|
|
3713
|
+
{
|
|
3714
|
+
d: "M15.5001 14.5H14.7101L14.4301 14.23C15.6301 12.83 16.2501 10.92 15.9101 8.89002C15.4401 6.11002 13.1201 3.89002 10.3201 3.55002C6.09014 3.03002 2.53014 6.59001 3.05014 10.82C3.39014 13.62 5.61014 15.94 8.39014 16.41C10.4201 16.75 12.3301 16.13 13.7301 14.93L14.0001 15.21V16L18.2501 20.25C18.6601 20.66 19.3301 20.66 19.7401 20.25C20.1501 19.84 20.1501 19.17 19.7401 18.76L15.5001 14.5ZM9.50014 14.5C7.01014 14.5 5.00014 12.49 5.00014 10C5.00014 7.51002 7.01014 5.50002 9.50014 5.50002C11.9901 5.50002 14.0001 7.51002 14.0001 10C14.0001 12.49 11.9901 14.5 9.50014 14.5Z",
|
|
3715
|
+
fill: "black",
|
|
3716
|
+
fillOpacity: "0.54"
|
|
3717
|
+
}
|
|
3718
|
+
)
|
|
3719
|
+
}
|
|
3720
|
+
), T = u !== void 0 ? u : _, b = T && T.toString().length > 0, R = (W) => {
|
|
3721
|
+
u === void 0 && g(W.target.value), x == null || x(W);
|
|
3722
|
+
}, L = (W) => {
|
|
3723
|
+
W.key === "Enter" && t && t(T.toString()), d == null || d(W);
|
|
3724
|
+
}, K = () => {
|
|
3725
|
+
t && t(T.toString());
|
|
3709
3726
|
}, J = () => {
|
|
3710
3727
|
u === void 0 && g(""), r == null || r();
|
|
3711
|
-
const
|
|
3712
|
-
if (
|
|
3713
|
-
const
|
|
3714
|
-
Object.defineProperty(
|
|
3728
|
+
const W = document.getElementById(S);
|
|
3729
|
+
if (W && x) {
|
|
3730
|
+
const te = new Event("change", { bubbles: !0 });
|
|
3731
|
+
Object.defineProperty(te, "target", { value: W, enumerable: !0 }), Object.defineProperty(te, "currentTarget", { value: W, enumerable: !0 }), W.value = "", x(te);
|
|
3715
3732
|
}
|
|
3716
3733
|
};
|
|
3717
3734
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -3736,9 +3753,9 @@ const {
|
|
|
3736
3753
|
type: "text",
|
|
3737
3754
|
id: S,
|
|
3738
3755
|
className: `ce-search-field-input ${i ? "error" : ""} ${f} ${m || ""}`,
|
|
3739
|
-
value:
|
|
3740
|
-
onChange:
|
|
3741
|
-
onKeyDown:
|
|
3756
|
+
value: T,
|
|
3757
|
+
onChange: R,
|
|
3758
|
+
onKeyDown: L,
|
|
3742
3759
|
...E
|
|
3743
3760
|
}
|
|
3744
3761
|
),
|
|
@@ -3757,9 +3774,9 @@ const {
|
|
|
3757
3774
|
{
|
|
3758
3775
|
type: "button",
|
|
3759
3776
|
className: "ce-search-field-button",
|
|
3760
|
-
onClick:
|
|
3777
|
+
onClick: K,
|
|
3761
3778
|
"aria-label": "Search",
|
|
3762
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3779
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(C, {})
|
|
3763
3780
|
}
|
|
3764
3781
|
)
|
|
3765
3782
|
] }),
|
|
@@ -3786,7 +3803,24 @@ const CEDynamicSelectField = forwardRef(({
|
|
|
3786
3803
|
value: x,
|
|
3787
3804
|
...d
|
|
3788
3805
|
}, p) => {
|
|
3789
|
-
const E = u || `ce-select-field-${Math.random().toString(36).substr(2, 9)}`, y =
|
|
3806
|
+
const E = u || `ce-select-field-${Math.random().toString(36).substr(2, 9)}`, y = () => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3807
|
+
"svg",
|
|
3808
|
+
{
|
|
3809
|
+
width: "24",
|
|
3810
|
+
height: "25",
|
|
3811
|
+
viewBox: "0 0 24 25",
|
|
3812
|
+
fill: "none",
|
|
3813
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3814
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3815
|
+
"path",
|
|
3816
|
+
{
|
|
3817
|
+
d: "M8.12021 9.79006L12.0002 13.6701L15.8802 9.79006C16.2702 9.40006 16.9002 9.40006 17.2902 9.79006C17.6802 10.1801 17.6802 10.8101 17.2902 11.2001L12.7002 15.7901C12.3102 16.1801 11.6802 16.1801 11.2902 15.7901L6.70021 11.2001C6.31021 10.8101 6.31021 10.1801 6.70021 9.79006C7.09021 9.41006 7.73021 9.40006 8.12021 9.79006Z",
|
|
3818
|
+
fill: "black",
|
|
3819
|
+
fillOpacity: "0.54"
|
|
3820
|
+
}
|
|
3821
|
+
)
|
|
3822
|
+
}
|
|
3823
|
+
), _ = x && t.some((S) => S.value === x), g = n && t.length > 0 && (!x || !_);
|
|
3790
3824
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3791
3825
|
"div",
|
|
3792
3826
|
{
|
|
@@ -3811,20 +3845,20 @@ const CEDynamicSelectField = forwardRef(({
|
|
|
3811
3845
|
value: x,
|
|
3812
3846
|
...d,
|
|
3813
3847
|
children: t.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "", disabled: !0 }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
3814
|
-
|
|
3815
|
-
t.map((
|
|
3848
|
+
g && /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "", disabled: d.required, children: a }),
|
|
3849
|
+
t.map((S) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3816
3850
|
"option",
|
|
3817
3851
|
{
|
|
3818
|
-
value:
|
|
3819
|
-
disabled:
|
|
3820
|
-
children:
|
|
3852
|
+
value: S.value,
|
|
3853
|
+
disabled: S.disabled,
|
|
3854
|
+
children: S.label
|
|
3821
3855
|
},
|
|
3822
|
-
|
|
3856
|
+
S.value
|
|
3823
3857
|
))
|
|
3824
3858
|
] })
|
|
3825
3859
|
}
|
|
3826
3860
|
),
|
|
3827
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-select-field-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3861
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-select-field-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntimeExports.jsx(y, {}) })
|
|
3828
3862
|
] }),
|
|
3829
3863
|
r && i && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ce-select-field-error-message", children: i })
|
|
3830
3864
|
]
|
|
@@ -3903,10 +3937,10 @@ const uploadWrapper = "_uploadWrapper_179oq_1", dropZone = "_dropZone_179oq_15",
|
|
|
3903
3937
|
file: C
|
|
3904
3938
|
}));
|
|
3905
3939
|
i((C) => {
|
|
3906
|
-
const
|
|
3907
|
-
(R) => !
|
|
3940
|
+
const T = new Set(C.map((R) => R.name)), b = S.filter(
|
|
3941
|
+
(R) => !T.has(R.name)
|
|
3908
3942
|
);
|
|
3909
|
-
return [...C, ...
|
|
3943
|
+
return [...C, ...b];
|
|
3910
3944
|
}), e && S.length > 0 && e(S);
|
|
3911
3945
|
}, f = (E) => {
|
|
3912
3946
|
const y = Array.from(E.target.files || []);
|
|
@@ -4109,7 +4143,7 @@ const uploadWrapper = "_uploadWrapper_179oq_1", dropZone = "_dropZone_179oq_15",
|
|
|
4109
4143
|
useEffect(() => {
|
|
4110
4144
|
r && axios.get(r).then((S) => {
|
|
4111
4145
|
S.data && S.data.steps && (s(S.data.steps), l(S.data.steps.map(
|
|
4112
|
-
(C) => C.fields.reduce((
|
|
4146
|
+
(C) => C.fields.reduce((T, b) => (T[b.name] = "", T), {})
|
|
4113
4147
|
)));
|
|
4114
4148
|
}).catch((S) => {
|
|
4115
4149
|
console.error("Error loading stepper config:", S);
|
|
@@ -4118,13 +4152,13 @@ const uploadWrapper = "_uploadWrapper_179oq_1", dropZone = "_dropZone_179oq_15",
|
|
|
4118
4152
|
const [f, c] = useState(
|
|
4119
4153
|
i.map(() => !1)
|
|
4120
4154
|
), m = (S, C) => {
|
|
4121
|
-
const
|
|
4122
|
-
|
|
4123
|
-
const
|
|
4124
|
-
u(n) && (
|
|
4125
|
-
}, u = (S) => i[S].fields.every((
|
|
4126
|
-
var
|
|
4127
|
-
return
|
|
4155
|
+
const T = [...o];
|
|
4156
|
+
T[n][S] = C, l(T);
|
|
4157
|
+
const b = [...f];
|
|
4158
|
+
u(n) && (b[n] = !0, c(b));
|
|
4159
|
+
}, u = (S) => i[S].fields.every((T) => {
|
|
4160
|
+
var b;
|
|
4161
|
+
return T.required ? ((b = o[S][T.name]) == null ? void 0 : b.trim()) !== "" : !0;
|
|
4128
4162
|
}), x = () => {
|
|
4129
4163
|
const S = [...f];
|
|
4130
4164
|
S[n] = !0, c(S), a((C) => C < i.length - 1 ? C + 1 : C);
|
|
@@ -4139,19 +4173,19 @@ const uploadWrapper = "_uploadWrapper_179oq_1", dropZone = "_dropZone_179oq_15",
|
|
|
4139
4173
|
formData: o[n],
|
|
4140
4174
|
onInputChange: m
|
|
4141
4175
|
}
|
|
4142
|
-
) }), _ = (S) => i.map((C,
|
|
4143
|
-
const
|
|
4176
|
+
) }), _ = (S) => i.map((C, T) => {
|
|
4177
|
+
const b = u(T), R = T === n, L = f[T] && !b, K = b && f[T];
|
|
4144
4178
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `step-item${S ? "-vertical" : ""} ${L ? "error" : ""}`, children: [
|
|
4145
4179
|
S ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "step-left", children: [
|
|
4146
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `step-circle ${
|
|
4180
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `step-circle ${K ? "completed" : L ? "warning" : R ? "current" : "future"}`, children: K ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: completed_ico, alt: "completed", className: "step-icon" }) : L ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: warning_ico, alt: "warning", className: "step-icon" }) : T + 1 }),
|
|
4147
4181
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `step-label ${L ? "error-label" : ""}`, children: C.label })
|
|
4148
4182
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
4149
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `step-circle ${
|
|
4183
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `step-circle ${K ? "completed" : L ? "warning" : R ? "current" : "future"}`, children: K ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: completed_ico, alt: "completed", className: "step-icon" }) : L ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: warning_ico, alt: "warning", className: "step-icon" }) : T + 1 }),
|
|
4150
4184
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `step-label ${L ? "error-label" : ""}`, children: C.label })
|
|
4151
4185
|
] }),
|
|
4152
|
-
|
|
4186
|
+
T !== i.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${S ? "vertical" : "horizontal"}-connector` }),
|
|
4153
4187
|
L && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "error-msg", children: "fill the mandatory fields" })
|
|
4154
|
-
] },
|
|
4188
|
+
] }, T);
|
|
4155
4189
|
}), g = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "step-actions", children: [
|
|
4156
4190
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: d, disabled: n === 0, children: "Back" }),
|
|
4157
4191
|
n < i.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: x, children: "Next" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: E, disabled: !p(), children: "Submit" })
|
|
@@ -4573,11 +4607,11 @@ function requireLottie() {
|
|
|
4573
4607
|
for (I = 0; I < V; I += 1)
|
|
4574
4608
|
Z.i[I][0] += Z.v[I][0], Z.i[I][1] += Z.v[I][1], Z.o[I][0] += Z.v[I][0], Z.o[I][1] += Z.v[I][1];
|
|
4575
4609
|
}
|
|
4576
|
-
function
|
|
4610
|
+
function T(Z, I) {
|
|
4577
4611
|
var V = I ? I.split(".") : [100, 100, 100];
|
|
4578
4612
|
return Z[0] > V[0] ? !0 : V[0] > Z[0] ? !1 : Z[1] > V[1] ? !0 : V[1] > Z[1] ? !1 : Z[2] > V[2] ? !0 : V[2] > Z[2] ? !1 : null;
|
|
4579
4613
|
}
|
|
4580
|
-
var
|
|
4614
|
+
var b = /* @__PURE__ */ function() {
|
|
4581
4615
|
var Z = [4, 4, 14];
|
|
4582
4616
|
function I(A) {
|
|
4583
4617
|
var k = A.t.d;
|
|
@@ -4594,7 +4628,7 @@ function requireLottie() {
|
|
|
4594
4628
|
A[k].ty === 5 && I(A[k]);
|
|
4595
4629
|
}
|
|
4596
4630
|
return function(A) {
|
|
4597
|
-
if (
|
|
4631
|
+
if (T(Z, A.v) && (V(A.layers), A.assets)) {
|
|
4598
4632
|
var k, M = A.assets.length;
|
|
4599
4633
|
for (k = 0; k < M; k += 1)
|
|
4600
4634
|
A.assets[k].layers && V(A.assets[k].layers);
|
|
@@ -4603,7 +4637,7 @@ function requireLottie() {
|
|
|
4603
4637
|
}(), R = /* @__PURE__ */ function() {
|
|
4604
4638
|
var Z = [4, 7, 99];
|
|
4605
4639
|
return function(I) {
|
|
4606
|
-
if (I.chars && !
|
|
4640
|
+
if (I.chars && !T(Z, I.v)) {
|
|
4607
4641
|
var V, A = I.chars.length;
|
|
4608
4642
|
for (V = 0; V < A; V += 1) {
|
|
4609
4643
|
var k = I.chars[V];
|
|
@@ -4685,13 +4719,13 @@ function requireLottie() {
|
|
|
4685
4719
|
A[k].ty === 5 && I(A[k]);
|
|
4686
4720
|
}
|
|
4687
4721
|
return function(A) {
|
|
4688
|
-
if (
|
|
4722
|
+
if (T(Z, A.v) && (V(A.layers), A.assets)) {
|
|
4689
4723
|
var k, M = A.assets.length;
|
|
4690
4724
|
for (k = 0; k < M; k += 1)
|
|
4691
4725
|
A.assets[k].layers && V(A.assets[k].layers);
|
|
4692
4726
|
}
|
|
4693
4727
|
};
|
|
4694
|
-
}(),
|
|
4728
|
+
}(), K = /* @__PURE__ */ function() {
|
|
4695
4729
|
var Z = [4, 1, 9];
|
|
4696
4730
|
function I(A) {
|
|
4697
4731
|
var k, M = A.length, D, F;
|
|
@@ -4711,13 +4745,13 @@ function requireLottie() {
|
|
|
4711
4745
|
A[k].ty === 4 && I(A[k].shapes);
|
|
4712
4746
|
}
|
|
4713
4747
|
return function(A) {
|
|
4714
|
-
if (
|
|
4748
|
+
if (T(Z, A.v) && (V(A.layers), A.assets)) {
|
|
4715
4749
|
var k, M = A.assets.length;
|
|
4716
4750
|
for (k = 0; k < M; k += 1)
|
|
4717
4751
|
A.assets[k].layers && V(A.assets[k].layers);
|
|
4718
4752
|
}
|
|
4719
4753
|
};
|
|
4720
|
-
}(),
|
|
4754
|
+
}(), J = /* @__PURE__ */ function() {
|
|
4721
4755
|
var Z = [4, 4, 18];
|
|
4722
4756
|
function I(A) {
|
|
4723
4757
|
var k, M = A.length, D, F;
|
|
@@ -4746,7 +4780,7 @@ function requireLottie() {
|
|
|
4746
4780
|
}
|
|
4747
4781
|
}
|
|
4748
4782
|
return function(A) {
|
|
4749
|
-
if (
|
|
4783
|
+
if (T(Z, A.v) && (V(A.layers), A.assets)) {
|
|
4750
4784
|
var k, M = A.assets.length;
|
|
4751
4785
|
for (k = 0; k < M; k += 1)
|
|
4752
4786
|
A.assets[k].layers && V(A.assets[k].layers);
|
|
@@ -4754,13 +4788,13 @@ function requireLottie() {
|
|
|
4754
4788
|
};
|
|
4755
4789
|
}();
|
|
4756
4790
|
function W(Z) {
|
|
4757
|
-
Z.__complete || (
|
|
4791
|
+
Z.__complete || (K(Z), b(Z), R(Z), L(Z), J(Z), E(Z.layers, Z.assets), y(Z.chars, Z.assets), Z.__complete = !0);
|
|
4758
4792
|
}
|
|
4759
4793
|
function te(Z) {
|
|
4760
4794
|
Z.t.a.length === 0 && "m" in Z.t.p;
|
|
4761
4795
|
}
|
|
4762
4796
|
var ie = {};
|
|
4763
|
-
return ie.completeData = W, ie.checkColors =
|
|
4797
|
+
return ie.completeData = W, ie.checkColors = K, ie.checkChars = R, ie.checkPathProperties = L, ie.checkShapes = J, ie.completeLayers = E, ie;
|
|
4764
4798
|
}
|
|
4765
4799
|
if (n.dataManager || (n.dataManager = d()), n.assetLoader || (n.assetLoader = /* @__PURE__ */ function() {
|
|
4766
4800
|
function E(_) {
|
|
@@ -4768,28 +4802,28 @@ function requireLottie() {
|
|
|
4768
4802
|
return g && _.responseType === "json" && g.indexOf("json") !== -1 || _.response && _typeof$5(_.response) === "object" ? _.response : _.response && typeof _.response == "string" ? JSON.parse(_.response) : _.responseText ? JSON.parse(_.responseText) : null;
|
|
4769
4803
|
}
|
|
4770
4804
|
function y(_, g, S, C) {
|
|
4771
|
-
var
|
|
4805
|
+
var T, b = new XMLHttpRequest();
|
|
4772
4806
|
try {
|
|
4773
|
-
|
|
4807
|
+
b.responseType = "json";
|
|
4774
4808
|
} catch {
|
|
4775
4809
|
}
|
|
4776
|
-
|
|
4777
|
-
if (
|
|
4778
|
-
if (
|
|
4779
|
-
|
|
4810
|
+
b.onreadystatechange = function() {
|
|
4811
|
+
if (b.readyState === 4)
|
|
4812
|
+
if (b.status === 200)
|
|
4813
|
+
T = E(b), S(T);
|
|
4780
4814
|
else
|
|
4781
4815
|
try {
|
|
4782
|
-
|
|
4816
|
+
T = E(b), S(T);
|
|
4783
4817
|
} catch (R) {
|
|
4784
4818
|
C && C(R);
|
|
4785
4819
|
}
|
|
4786
4820
|
};
|
|
4787
4821
|
try {
|
|
4788
|
-
|
|
4822
|
+
b.open(["G", "E", "T"].join(""), _, !0);
|
|
4789
4823
|
} catch {
|
|
4790
|
-
|
|
4824
|
+
b.open(["G", "E", "T"].join(""), g + "/" + _, !0);
|
|
4791
4825
|
}
|
|
4792
|
-
|
|
4826
|
+
b.send();
|
|
4793
4827
|
}
|
|
4794
4828
|
return {
|
|
4795
4829
|
load: y
|
|
@@ -5331,7 +5365,7 @@ function requireLottie() {
|
|
|
5331
5365
|
return A;
|
|
5332
5366
|
}
|
|
5333
5367
|
function c() {
|
|
5334
|
-
s += 1,
|
|
5368
|
+
s += 1, K();
|
|
5335
5369
|
}
|
|
5336
5370
|
function m() {
|
|
5337
5371
|
s -= 1;
|
|
@@ -5385,12 +5419,12 @@ function requireLottie() {
|
|
|
5385
5419
|
for (V = 0; V < i; V += 1)
|
|
5386
5420
|
t[V].animation.stop(I);
|
|
5387
5421
|
}
|
|
5388
|
-
function
|
|
5422
|
+
function T(I) {
|
|
5389
5423
|
var V;
|
|
5390
5424
|
for (V = 0; V < i; V += 1)
|
|
5391
5425
|
t[V].animation.togglePause(I);
|
|
5392
5426
|
}
|
|
5393
|
-
function
|
|
5427
|
+
function b(I) {
|
|
5394
5428
|
var V;
|
|
5395
5429
|
for (V = i - 1; V >= 0; V -= 1)
|
|
5396
5430
|
t[V].animation.destroy(I);
|
|
@@ -5412,14 +5446,14 @@ function requireLottie() {
|
|
|
5412
5446
|
for (I = 0; I < i; I += 1)
|
|
5413
5447
|
t[I].animation.resize();
|
|
5414
5448
|
}
|
|
5415
|
-
function
|
|
5449
|
+
function K() {
|
|
5416
5450
|
!a && s && n && (window.requestAnimationFrame(_), n = !1);
|
|
5417
5451
|
}
|
|
5418
|
-
function
|
|
5452
|
+
function J() {
|
|
5419
5453
|
a = !0;
|
|
5420
5454
|
}
|
|
5421
5455
|
function W() {
|
|
5422
|
-
a = !1,
|
|
5456
|
+
a = !1, K();
|
|
5423
5457
|
}
|
|
5424
5458
|
function te(I, V) {
|
|
5425
5459
|
var A;
|
|
@@ -5436,17 +5470,17 @@ function requireLottie() {
|
|
|
5436
5470
|
for (V = 0; V < i; V += 1)
|
|
5437
5471
|
t[V].animation.unmute(I);
|
|
5438
5472
|
}
|
|
5439
|
-
return e.registerAnimation = l, e.loadAnimation = x, e.setSpeed = d, e.setDirection = p, e.play = E, e.pause = g, e.stop = C, e.togglePause =
|
|
5473
|
+
return e.registerAnimation = l, e.loadAnimation = x, e.setSpeed = d, e.setDirection = p, e.play = E, e.pause = g, e.stop = C, e.togglePause = T, e.searchAnimations = R, e.resize = L, e.goToAndStop = S, e.destroy = b, e.freeze = J, e.unfreeze = W, e.setVolume = te, e.mute = ie, e.unmute = Z, e.getRegisteredAnimations = f, e;
|
|
5440
5474
|
}(), BezierFactory = function() {
|
|
5441
5475
|
var e = {};
|
|
5442
5476
|
e.getBezierEasing = r;
|
|
5443
5477
|
var t = {};
|
|
5444
|
-
function r(_, g, S, C,
|
|
5445
|
-
var
|
|
5446
|
-
if (t[
|
|
5447
|
-
return t[
|
|
5478
|
+
function r(_, g, S, C, T) {
|
|
5479
|
+
var b = T || ("bez_" + _ + "_" + g + "_" + S + "_" + C).replace(/\./g, "p");
|
|
5480
|
+
if (t[b])
|
|
5481
|
+
return t[b];
|
|
5448
5482
|
var R = new y([_, g, S, C]);
|
|
5449
|
-
return t[
|
|
5483
|
+
return t[b] = R, R;
|
|
5450
5484
|
}
|
|
5451
5485
|
var i = 4, s = 1e-3, n = 1e-7, a = 10, o = 11, l = 1 / (o - 1), f = typeof Float32Array == "function";
|
|
5452
5486
|
function c(_, g) {
|
|
@@ -5464,19 +5498,19 @@ function requireLottie() {
|
|
|
5464
5498
|
function d(_, g, S) {
|
|
5465
5499
|
return 3 * c(g, S) * _ * _ + 2 * m(g, S) * _ + u(g);
|
|
5466
5500
|
}
|
|
5467
|
-
function p(_, g, S, C,
|
|
5468
|
-
var
|
|
5501
|
+
function p(_, g, S, C, T) {
|
|
5502
|
+
var b, R, L = 0;
|
|
5469
5503
|
do
|
|
5470
|
-
R = g + (S - g) / 2,
|
|
5471
|
-
while (Math.abs(
|
|
5504
|
+
R = g + (S - g) / 2, b = x(R, C, T) - _, b > 0 ? S = R : g = R;
|
|
5505
|
+
while (Math.abs(b) > n && ++L < a);
|
|
5472
5506
|
return R;
|
|
5473
5507
|
}
|
|
5474
5508
|
function E(_, g, S, C) {
|
|
5475
|
-
for (var
|
|
5476
|
-
var
|
|
5477
|
-
if (
|
|
5509
|
+
for (var T = 0; T < i; ++T) {
|
|
5510
|
+
var b = d(g, S, C);
|
|
5511
|
+
if (b === 0) return g;
|
|
5478
5512
|
var R = x(g, S, C) - _;
|
|
5479
|
-
g -= R /
|
|
5513
|
+
g -= R / b;
|
|
5480
5514
|
}
|
|
5481
5515
|
return g;
|
|
5482
5516
|
}
|
|
@@ -5485,13 +5519,13 @@ function requireLottie() {
|
|
|
5485
5519
|
}
|
|
5486
5520
|
return y.prototype = {
|
|
5487
5521
|
get: function(g) {
|
|
5488
|
-
var S = this._p[0], C = this._p[1],
|
|
5489
|
-
return this._precomputed || this._precompute(), S === C &&
|
|
5522
|
+
var S = this._p[0], C = this._p[1], T = this._p[2], b = this._p[3];
|
|
5523
|
+
return this._precomputed || this._precompute(), S === C && T === b ? g : g === 0 ? 0 : g === 1 ? 1 : x(this._getTForX(g), C, b);
|
|
5490
5524
|
},
|
|
5491
5525
|
// Private part
|
|
5492
5526
|
_precompute: function() {
|
|
5493
|
-
var g = this._p[0], S = this._p[1], C = this._p[2],
|
|
5494
|
-
this._precomputed = !0, (g !== S || C !==
|
|
5527
|
+
var g = this._p[0], S = this._p[1], C = this._p[2], T = this._p[3];
|
|
5528
|
+
this._precomputed = !0, (g !== S || C !== T) && this._calcSampleValues();
|
|
5495
5529
|
},
|
|
5496
5530
|
_calcSampleValues: function() {
|
|
5497
5531
|
for (var g = this._p[0], S = this._p[2], C = 0; C < o; ++C)
|
|
@@ -5501,11 +5535,11 @@ function requireLottie() {
|
|
|
5501
5535
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
5502
5536
|
*/
|
|
5503
5537
|
_getTForX: function(g) {
|
|
5504
|
-
for (var S = this._p[0], C = this._p[2],
|
|
5505
|
-
|
|
5538
|
+
for (var S = this._p[0], C = this._p[2], T = this._mSampleValues, b = 0, R = 1, L = o - 1; R !== L && T[R] <= g; ++R)
|
|
5539
|
+
b += l;
|
|
5506
5540
|
--R;
|
|
5507
|
-
var
|
|
5508
|
-
return W >= s ? E(g,
|
|
5541
|
+
var K = (g - T[R]) / (T[R + 1] - T[R]), J = b + K * l, W = d(J, S, C);
|
|
5542
|
+
return W >= s ? E(g, J, S, C) : W === 0 ? J : p(g, b, b + l, S, C);
|
|
5509
5543
|
}
|
|
5510
5544
|
}, e;
|
|
5511
5545
|
}(), pooling = /* @__PURE__ */ function() {
|
|
@@ -5563,18 +5597,18 @@ function requireLottie() {
|
|
|
5563
5597
|
function r(u, x, d, p, E, y, _, g, S) {
|
|
5564
5598
|
if (d === 0 && y === 0 && S === 0)
|
|
5565
5599
|
return t(u, x, p, E, _, g);
|
|
5566
|
-
var C = e.sqrt(e.pow(p - u, 2) + e.pow(E - x, 2) + e.pow(y - d, 2)),
|
|
5567
|
-
return C >
|
|
5600
|
+
var C = e.sqrt(e.pow(p - u, 2) + e.pow(E - x, 2) + e.pow(y - d, 2)), T = e.sqrt(e.pow(_ - u, 2) + e.pow(g - x, 2) + e.pow(S - d, 2)), b = e.sqrt(e.pow(_ - p, 2) + e.pow(g - E, 2) + e.pow(S - y, 2)), R;
|
|
5601
|
+
return C > T ? C > b ? R = C - T - b : R = b - T - C : b > T ? R = b - T - C : R = T - C - b, R > -1e-4 && R < 1e-4;
|
|
5568
5602
|
}
|
|
5569
5603
|
var i = /* @__PURE__ */ function() {
|
|
5570
5604
|
return function(u, x, d, p) {
|
|
5571
|
-
var E = getDefaultCurveSegments(), y, _, g, S, C,
|
|
5605
|
+
var E = getDefaultCurveSegments(), y, _, g, S, C, T = 0, b, R = [], L = [], K = bezierLengthPool.newElement();
|
|
5572
5606
|
for (g = d.length, y = 0; y < E; y += 1) {
|
|
5573
|
-
for (C = y / (E - 1),
|
|
5574
|
-
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, L[_] !== null && (
|
|
5575
|
-
|
|
5607
|
+
for (C = y / (E - 1), b = 0, _ = 0; _ < g; _ += 1)
|
|
5608
|
+
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, L[_] !== null && (b += bmPow(R[_] - L[_], 2)), L[_] = R[_];
|
|
5609
|
+
b && (b = bmSqrt(b), T += b), K.percents[y] = C, K.lengths[y] = T;
|
|
5576
5610
|
}
|
|
5577
|
-
return
|
|
5611
|
+
return K.addedLength = T, K;
|
|
5578
5612
|
};
|
|
5579
5613
|
}();
|
|
5580
5614
|
function s(u) {
|
|
@@ -5594,13 +5628,13 @@ function requireLottie() {
|
|
|
5594
5628
|
return function(x, d, p, E) {
|
|
5595
5629
|
var y = (x[0] + "_" + x[1] + "_" + d[0] + "_" + d[1] + "_" + p[0] + "_" + p[1] + "_" + E[0] + "_" + E[1]).replace(/\./g, "p");
|
|
5596
5630
|
if (!u[y]) {
|
|
5597
|
-
var _ = getDefaultCurveSegments(), g, S, C,
|
|
5631
|
+
var _ = getDefaultCurveSegments(), g, S, C, T, b, R = 0, L, K, J = null;
|
|
5598
5632
|
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);
|
|
5599
5633
|
var W = new n(_);
|
|
5600
5634
|
for (C = p.length, g = 0; g < _; g += 1) {
|
|
5601
|
-
for (
|
|
5602
|
-
|
|
5603
|
-
L = bmSqrt(L), R += L, W.points[g] = new a(L,
|
|
5635
|
+
for (K = createSizedArray(C), b = g / (_ - 1), L = 0, S = 0; S < C; S += 1)
|
|
5636
|
+
T = bmPow(1 - b, 3) * x[S] + 3 * bmPow(1 - b, 2) * b * (x[S] + p[S]) + 3 * (1 - b) * bmPow(b, 2) * (d[S] + E[S]) + bmPow(b, 3) * d[S], K[S] = T, J !== null && (L += bmPow(K[S] - J[S], 2));
|
|
5637
|
+
L = bmSqrt(L), R += L, W.points[g] = new a(L, K), J = K;
|
|
5604
5638
|
}
|
|
5605
5639
|
W.segmentLength = R, u[y] = W;
|
|
5606
5640
|
}
|
|
@@ -5628,9 +5662,9 @@ function requireLottie() {
|
|
|
5628
5662
|
E < 0 ? E = 0 : E > 1 && (E = 1);
|
|
5629
5663
|
var g = l(E, _);
|
|
5630
5664
|
y = y > 1 ? 1 : y;
|
|
5631
|
-
var S = l(y, _), C,
|
|
5632
|
-
for (C = 0; C <
|
|
5633
|
-
c[C * 4] = e.round((L * u[C] +
|
|
5665
|
+
var S = l(y, _), C, T = u.length, b = 1 - g, R = 1 - S, L = b * b * b, K = g * b * b * 3, J = g * g * b * 3, W = g * g * g, te = b * b * R, ie = g * b * R + b * g * R + b * b * S, Z = g * g * R + b * g * S + g * b * S, I = g * g * S, V = b * R * R, A = g * R * R + b * S * R + b * R * S, k = g * S * R + b * S * S + g * R * S, M = g * S * S, D = R * R * R, F = S * R * R + R * S * R + R * R * S, H = S * S * R + R * S * S + S * R * S, j = S * S * S;
|
|
5666
|
+
for (C = 0; C < T; C += 1)
|
|
5667
|
+
c[C * 4] = e.round((L * u[C] + K * d[C] + J * p[C] + W * x[C]) * 1e3) / 1e3, c[C * 4 + 1] = e.round((te * u[C] + ie * d[C] + Z * p[C] + I * x[C]) * 1e3) / 1e3, c[C * 4 + 2] = e.round((V * u[C] + A * d[C] + k * p[C] + M * x[C]) * 1e3) / 1e3, c[C * 4 + 3] = e.round((D * u[C] + F * d[C] + H * p[C] + j * x[C]) * 1e3) / 1e3;
|
|
5634
5668
|
return c;
|
|
5635
5669
|
}
|
|
5636
5670
|
return {
|
|
@@ -5668,15 +5702,15 @@ function requireLottie() {
|
|
|
5668
5702
|
i[m] = S.points[C].point[m];
|
|
5669
5703
|
} else {
|
|
5670
5704
|
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 - _) / (y - _));
|
|
5671
|
-
var
|
|
5705
|
+
var T = S.segmentLength * x, b, R = t.lastFrame < e && t._lastKeyframeIndex === n ? t._lastAddedLength : 0;
|
|
5672
5706
|
for (p = t.lastFrame < e && t._lastKeyframeIndex === n ? t._lastPoint : 0, o = !0, d = S.points.length; o; ) {
|
|
5673
|
-
if (R += S.points[p].partialLength,
|
|
5707
|
+
if (R += S.points[p].partialLength, T === 0 || x === 0 || p === S.points.length - 1) {
|
|
5674
5708
|
for (u = S.points[p].point.length, m = 0; m < u; m += 1)
|
|
5675
5709
|
i[m] = S.points[p].point[m];
|
|
5676
5710
|
break;
|
|
5677
|
-
} else if (
|
|
5678
|
-
for (
|
|
5679
|
-
i[m] = S.points[p].point[m] + (S.points[p + 1].point[m] - S.points[p].point[m]) *
|
|
5711
|
+
} else if (T >= R && T < R + S.points[p + 1].partialLength) {
|
|
5712
|
+
for (b = (T - R) / S.points[p + 1].partialLength, u = S.points[p].point.length, m = 0; m < u; m += 1)
|
|
5713
|
+
i[m] = S.points[p].point[m] + (S.points[p + 1].point[m] - S.points[p].point[m]) * b;
|
|
5680
5714
|
break;
|
|
5681
5715
|
}
|
|
5682
5716
|
p < d - 1 ? p += 1 : o = !1;
|
|
@@ -5684,7 +5718,7 @@ function requireLottie() {
|
|
|
5684
5718
|
t._lastPoint = p, t._lastAddedLength = R - S.points[p].partialLength, t._lastKeyframeIndex = n;
|
|
5685
5719
|
}
|
|
5686
5720
|
} else {
|
|
5687
|
-
var L,
|
|
5721
|
+
var L, K, J, W, te;
|
|
5688
5722
|
if (a = l.s.length, g = f.s || l.e, this.sh && l.h !== 1)
|
|
5689
5723
|
if (e >= y)
|
|
5690
5724
|
i[0] = g[0], i[1] = g[1], i[2] = g[2];
|
|
@@ -5696,7 +5730,7 @@ function requireLottie() {
|
|
|
5696
5730
|
}
|
|
5697
5731
|
else
|
|
5698
5732
|
for (n = 0; n < a; n += 1)
|
|
5699
|
-
l.h !== 1 && (e >= y ? x = 1 : e < _ ? x = 0 : (l.o.x.constructor === Array ? (c.__fnct || (c.__fnct = []), c.__fnct[n] ? E = c.__fnct[n] : (L = l.o.x[n] === void 0 ? l.o.x[0] : l.o.x[n],
|
|
5733
|
+
l.h !== 1 && (e >= y ? x = 1 : e < _ ? x = 0 : (l.o.x.constructor === Array ? (c.__fnct || (c.__fnct = []), c.__fnct[n] ? E = c.__fnct[n] : (L = l.o.x[n] === void 0 ? l.o.x[0] : l.o.x[n], K = l.o.y[n] === void 0 ? l.o.y[0] : l.o.y[n], J = 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(L, K, J, W).get, c.__fnct[n] = E)) : c.__fnct ? E = c.__fnct : (L = l.o.x, K = l.o.y, J = l.i.x, W = l.i.y, E = BezierFactory.getBezierEasing(L, K, J, W).get, l.keyframeMetadata = E), x = E((e - _) / (y - _)))), g = f.s || l.e, te = l.h === 1 ? l.s[n] : l.s[n] + (g[n] - l.s[n]) * x, this.propType === "multidimensional" ? i[n] = te : i = te;
|
|
5700
5734
|
}
|
|
5701
5735
|
return t.lastIndex = s, i;
|
|
5702
5736
|
}
|
|
@@ -5917,15 +5951,15 @@ function requireLottie() {
|
|
|
5917
5951
|
}(), ShapePropertyFactory = function() {
|
|
5918
5952
|
var e = -999999;
|
|
5919
5953
|
function t(y, _, g) {
|
|
5920
|
-
var S = g.lastIndex, C,
|
|
5954
|
+
var S = g.lastIndex, C, T, b, R, L, K, J, W, te, ie = this.keyframes;
|
|
5921
5955
|
if (y < ie[0].t - this.offsetTime)
|
|
5922
|
-
C = ie[0].s[0],
|
|
5956
|
+
C = ie[0].s[0], b = !0, S = 0;
|
|
5923
5957
|
else if (y >= ie[ie.length - 1].t - this.offsetTime)
|
|
5924
|
-
C = ie[ie.length - 1].s ? ie[ie.length - 1].s[0] : ie[ie.length - 2].e[0],
|
|
5958
|
+
C = ie[ie.length - 1].s ? ie[ie.length - 1].s[0] : ie[ie.length - 2].e[0], b = !0;
|
|
5925
5959
|
else {
|
|
5926
5960
|
for (var Z = S, I = ie.length - 1, V = !0, A, k, M; V && (A = ie[Z], k = ie[Z + 1], !(k.t - this.offsetTime > y)); )
|
|
5927
5961
|
Z < I - 1 ? Z += 1 : V = !1;
|
|
5928
|
-
if (M = this.keyframesMetadata[Z] || {},
|
|
5962
|
+
if (M = this.keyframesMetadata[Z] || {}, b = A.h === 1, S = Z, !b) {
|
|
5929
5963
|
if (y >= k.t - this.offsetTime)
|
|
5930
5964
|
W = 1;
|
|
5931
5965
|
else if (y < A.t - this.offsetTime)
|
|
@@ -5934,13 +5968,13 @@ function requireLottie() {
|
|
|
5934
5968
|
var D;
|
|
5935
5969
|
M.__fnct ? D = M.__fnct : (D = BezierFactory.getBezierEasing(A.o.x, A.o.y, A.i.x, A.i.y).get, M.__fnct = D), W = D((y - (A.t - this.offsetTime)) / (k.t - this.offsetTime - (A.t - this.offsetTime)));
|
|
5936
5970
|
}
|
|
5937
|
-
|
|
5971
|
+
T = k.s ? k.s[0] : A.e[0];
|
|
5938
5972
|
}
|
|
5939
5973
|
C = A.s[0];
|
|
5940
5974
|
}
|
|
5941
|
-
for (
|
|
5942
|
-
for (L = 0; L <
|
|
5943
|
-
te =
|
|
5975
|
+
for (K = _._length, J = C.i[0].length, g.lastIndex = S, R = 0; R < K; R += 1)
|
|
5976
|
+
for (L = 0; L < J; L += 1)
|
|
5977
|
+
te = b ? C.i[R][L] : C.i[R][L] + (T.i[R][L] - C.i[R][L]) * W, _.i[R][L] = te, te = b ? C.o[R][L] : C.o[R][L] + (T.o[R][L] - C.o[R][L]) * W, _.o[R][L] = te, te = b ? C.v[R][L] : C.v[R][L] + (T.v[R][L] - C.v[R][L]) * W, _.v[R][L] = te;
|
|
5944
5978
|
}
|
|
5945
5979
|
function r() {
|
|
5946
5980
|
var y = this.comp.renderedFrame - this.offsetTime, _ = this.keyframes[0].t - this.offsetTime, g = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, S = this._caching.lastFrame;
|
|
@@ -6009,8 +6043,8 @@ function requireLottie() {
|
|
|
6009
6043
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
6010
6044
|
},
|
|
6011
6045
|
convertEllToPath: function() {
|
|
6012
|
-
var S = this.p.v[0], C = this.p.v[1],
|
|
6013
|
-
L.v[0][0] = S, L.v[0][1] = C -
|
|
6046
|
+
var S = this.p.v[0], C = this.p.v[1], T = this.s.v[0] / 2, b = this.s.v[1] / 2, R = this.d !== 3, L = this.v;
|
|
6047
|
+
L.v[0][0] = S, L.v[0][1] = C - b, L.v[1][0] = R ? S + T : S - T, L.v[1][1] = C, L.v[2][0] = S, L.v[2][1] = C + b, L.v[3][0] = R ? S - T : S + T, L.v[3][1] = C, L.i[0][0] = R ? S - T * y : S + T * y, L.i[0][1] = C - b, L.i[1][0] = R ? S + T : S - T, L.i[1][1] = C - b * y, L.i[2][0] = R ? S + T * y : S - T * y, L.i[2][1] = C + b, L.i[3][0] = R ? S - T : S + T, L.i[3][1] = C + b * y, L.o[0][0] = R ? S + T * y : S - T * y, L.o[0][1] = C - b, L.o[1][0] = R ? S + T : S - T, L.o[1][1] = C + b * y, L.o[2][0] = R ? S - T * y : S + T * y, L.o[2][1] = C + b, L.o[3][0] = R ? S - T : S + T, L.o[3][1] = C - b * y;
|
|
6014
6048
|
}
|
|
6015
6049
|
}, extendPrototype([DynamicPropertyContainer], _), _;
|
|
6016
6050
|
}(), m = function() {
|
|
@@ -6023,20 +6057,20 @@ function requireLottie() {
|
|
|
6023
6057
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
6024
6058
|
},
|
|
6025
6059
|
convertStarToPath: function() {
|
|
6026
|
-
var g = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / g, C = !0,
|
|
6060
|
+
var g = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / g, C = !0, T = this.or.v, b = this.ir.v, R = this.os.v, L = this.is.v, K = 2 * Math.PI * T / (g * 2), J = 2 * Math.PI * b / (g * 2), W, te, ie, Z, I = -Math.PI / 2;
|
|
6027
6061
|
I += this.r.v;
|
|
6028
6062
|
var V = this.data.d === 3 ? -1 : 1;
|
|
6029
6063
|
for (this.v._length = 0, W = 0; W < g; W += 1) {
|
|
6030
|
-
te = C ?
|
|
6064
|
+
te = C ? T : b, ie = C ? R : L, Z = C ? K : J;
|
|
6031
6065
|
var A = te * Math.cos(I), k = te * Math.sin(I), M = A === 0 && k === 0 ? 0 : k / Math.sqrt(A * A + k * k), D = A === 0 && k === 0 ? 0 : -A / Math.sqrt(A * A + k * k);
|
|
6032
6066
|
A += +this.p.v[0], k += +this.p.v[1], this.v.setTripleAt(A, k, A - M * Z * ie * V, k - D * Z * ie * V, A + M * Z * ie * V, k + D * Z * ie * V, W, !0), C = !C, I += S * V;
|
|
6033
6067
|
}
|
|
6034
6068
|
},
|
|
6035
6069
|
convertPolygonToPath: function() {
|
|
6036
|
-
var g = Math.floor(this.pt.v), S = Math.PI * 2 / g, C = this.or.v,
|
|
6070
|
+
var g = Math.floor(this.pt.v), S = Math.PI * 2 / g, C = this.or.v, T = this.os.v, b = 2 * Math.PI * C / (g * 4), R, L = -Math.PI * 0.5, K = this.data.d === 3 ? -1 : 1;
|
|
6037
6071
|
for (L += this.r.v, this.v._length = 0, R = 0; R < g; R += 1) {
|
|
6038
|
-
var
|
|
6039
|
-
|
|
6072
|
+
var J = C * Math.cos(L), W = C * Math.sin(L), te = J === 0 && W === 0 ? 0 : W / Math.sqrt(J * J + W * W), ie = J === 0 && W === 0 ? 0 : -J / Math.sqrt(J * J + W * W);
|
|
6073
|
+
J += +this.p.v[0], W += +this.p.v[1], this.v.setTripleAt(J, W, J - te * b * T * K, W - ie * b * T * K, J + te * b * T * K, W + ie * b * T * K, R, !0), L += S * K;
|
|
6040
6074
|
}
|
|
6041
6075
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
6042
6076
|
}
|
|
@@ -6047,8 +6081,8 @@ function requireLottie() {
|
|
|
6047
6081
|
}
|
|
6048
6082
|
return y.prototype = {
|
|
6049
6083
|
convertRectToPath: function() {
|
|
6050
|
-
var g = this.p.v[0], S = this.p.v[1], C = this.s.v[0] / 2,
|
|
6051
|
-
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(g + C, S -
|
|
6084
|
+
var g = this.p.v[0], S = this.p.v[1], C = this.s.v[0] / 2, T = this.s.v[1] / 2, b = bmMin(C, T, this.r.v), R = b * (1 - roundCorner);
|
|
6085
|
+
this.v._length = 0, this.d === 2 || this.d === 1 ? (this.v.setTripleAt(g + C, S - T + b, g + C, S - T + b, g + C, S - T + R, 0, !0), this.v.setTripleAt(g + C, S + T - b, g + C, S + T - R, g + C, S + T - b, 1, !0), b !== 0 ? (this.v.setTripleAt(g + C - b, S + T, g + C - b, S + T, g + C - R, S + T, 2, !0), this.v.setTripleAt(g - C + b, S + T, g - C + R, S + T, g - C + b, S + T, 3, !0), this.v.setTripleAt(g - C, S + T - b, g - C, S + T - b, g - C, S + T - R, 4, !0), this.v.setTripleAt(g - C, S - T + b, g - C, S - T + R, g - C, S - T + b, 5, !0), this.v.setTripleAt(g - C + b, S - T, g - C + b, S - T, g - C + R, S - T, 6, !0), this.v.setTripleAt(g + C - b, S - T, g + C - R, S - T, g + C - b, S - T, 7, !0)) : (this.v.setTripleAt(g - C, S + T, g - C + R, S + T, g - C, S + T, 2), this.v.setTripleAt(g - C, S - T, g - C, S - T + R, g - C, S - T, 3))) : (this.v.setTripleAt(g + C, S - T + b, g + C, S - T + R, g + C, S - T + b, 0, !0), b !== 0 ? (this.v.setTripleAt(g + C - b, S - T, g + C - b, S - T, g + C - R, S - T, 1, !0), this.v.setTripleAt(g - C + b, S - T, g - C + R, S - T, g - C + b, S - T, 2, !0), this.v.setTripleAt(g - C, S - T + b, g - C, S - T + b, g - C, S - T + R, 3, !0), this.v.setTripleAt(g - C, S + T - b, g - C, S + T - R, g - C, S + T - b, 4, !0), this.v.setTripleAt(g - C + b, S + T, g - C + b, S + T, g - C + R, S + T, 5, !0), this.v.setTripleAt(g + C - b, S + T, g + C - R, S + T, g + C - b, S + T, 6, !0), this.v.setTripleAt(g + C, S + T - b, g + C, S + T - b, g + C, S + T - R, 7, !0)) : (this.v.setTripleAt(g - C, S - T, g - C + R, S - T, g - C, S - T, 1, !0), this.v.setTripleAt(g - C, S + T, g - C, S + T - R, g - C, S + T, 2, !0), this.v.setTripleAt(g + C, S + T, g + C - R, S + T, g + C, S + T, 3, !0)));
|
|
6052
6086
|
},
|
|
6053
6087
|
getValue: function() {
|
|
6054
6088
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertRectToPath());
|
|
@@ -6059,8 +6093,8 @@ function requireLottie() {
|
|
|
6059
6093
|
function x(y, _, g) {
|
|
6060
6094
|
var S;
|
|
6061
6095
|
if (g === 3 || g === 4) {
|
|
6062
|
-
var C = g === 3 ? _.pt : _.ks,
|
|
6063
|
-
|
|
6096
|
+
var C = g === 3 ? _.pt : _.ks, T = C.k;
|
|
6097
|
+
T.length ? S = new f(y, _, g) : S = new o(y, _, g);
|
|
6064
6098
|
} else g === 5 ? S = new u(y, _) : g === 6 ? S = new c(y, _) : g === 7 && (S = new m(y, _));
|
|
6065
6099
|
return S.k && y.addDynamicProperty(S), S;
|
|
6066
6100
|
}
|
|
@@ -6169,10 +6203,10 @@ function requireLottie() {
|
|
|
6169
6203
|
z: A * this.props[2] + k * this.props[6] + M * this.props[10] + this.props[14]
|
|
6170
6204
|
};
|
|
6171
6205
|
}
|
|
6172
|
-
function
|
|
6206
|
+
function T(A, k, M) {
|
|
6173
6207
|
return A * this.props[0] + k * this.props[4] + M * this.props[8] + this.props[12];
|
|
6174
6208
|
}
|
|
6175
|
-
function
|
|
6209
|
+
function b(A, k, M) {
|
|
6176
6210
|
return A * this.props[1] + k * this.props[5] + M * this.props[9] + this.props[13];
|
|
6177
6211
|
}
|
|
6178
6212
|
function R(A, k, M) {
|
|
@@ -6182,14 +6216,14 @@ function requireLottie() {
|
|
|
6182
6216
|
var A = this.props[0] * this.props[5] - this.props[1] * this.props[4], k = this.props[5] / A, M = -this.props[1] / A, D = -this.props[4] / A, F = this.props[0] / A, H = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / A, j = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / A, X = new Matrix();
|
|
6183
6217
|
return X.props[0] = k, X.props[1] = M, X.props[4] = D, X.props[5] = F, X.props[12] = H, X.props[13] = j, X;
|
|
6184
6218
|
}
|
|
6185
|
-
function
|
|
6219
|
+
function K(A) {
|
|
6186
6220
|
var k = this.getInverseMatrix();
|
|
6187
6221
|
return k.applyToPointArray(A[0], A[1], A[2] || 0);
|
|
6188
6222
|
}
|
|
6189
|
-
function
|
|
6223
|
+
function J(A) {
|
|
6190
6224
|
var k, M = A.length, D = [];
|
|
6191
6225
|
for (k = 0; k < M; k += 1)
|
|
6192
|
-
D[k] =
|
|
6226
|
+
D[k] = K(A[k]);
|
|
6193
6227
|
return D;
|
|
6194
6228
|
}
|
|
6195
6229
|
function W(A, k, M) {
|
|
@@ -6226,7 +6260,7 @@ function requireLottie() {
|
|
|
6226
6260
|
return "matrix(" + k + "," + M + "," + D + "," + F + "," + H + "," + j + ")";
|
|
6227
6261
|
}
|
|
6228
6262
|
return function() {
|
|
6229
|
-
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 =
|
|
6263
|
+
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 = T, this.applyToY = b, this.applyToZ = R, this.applyToPointArray = te, this.applyToTriplePoints = W, this.applyToPointStringified = ie, this.toCSS = Z, this.to2dCSS = V, this.clone = g, this.cloneFromProps = S, this.equals = _, this.inversePoints = J, this.inversePoint = K, this.getInverseMatrix = L, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
6230
6264
|
};
|
|
6231
6265
|
}();
|
|
6232
6266
|
function _typeof$3(e) {
|
|
@@ -6428,10 +6462,10 @@ function requireLottie() {
|
|
|
6428
6462
|
var C = this.addShapes(p, d[0]);
|
|
6429
6463
|
if (d[0].s !== d[0].e) {
|
|
6430
6464
|
if (d.length > 1) {
|
|
6431
|
-
var
|
|
6432
|
-
if (
|
|
6433
|
-
var
|
|
6434
|
-
this.addPaths(C, E), C = this.addShapes(p, d[1],
|
|
6465
|
+
var T = p.shape.paths.shapes[p.shape.paths._length - 1];
|
|
6466
|
+
if (T.c) {
|
|
6467
|
+
var b = C.pop();
|
|
6468
|
+
this.addPaths(C, E), C = this.addShapes(p, d[1], b);
|
|
6435
6469
|
} else
|
|
6436
6470
|
this.addPaths(C, E), C = this.addShapes(p, d[1]);
|
|
6437
6471
|
}
|
|
@@ -7180,11 +7214,11 @@ function requireLottie() {
|
|
|
7180
7214
|
}
|
|
7181
7215
|
return V;
|
|
7182
7216
|
}
|
|
7183
|
-
function
|
|
7217
|
+
function T(I, V) {
|
|
7184
7218
|
var A = I.toString(16) + V.toString(16);
|
|
7185
7219
|
return m.indexOf(A) !== -1;
|
|
7186
7220
|
}
|
|
7187
|
-
function
|
|
7221
|
+
function b(I) {
|
|
7188
7222
|
return I === l;
|
|
7189
7223
|
}
|
|
7190
7224
|
function R(I) {
|
|
@@ -7194,10 +7228,10 @@ function requireLottie() {
|
|
|
7194
7228
|
var V = C(I);
|
|
7195
7229
|
return V >= f && V <= c;
|
|
7196
7230
|
}
|
|
7197
|
-
function
|
|
7231
|
+
function K(I) {
|
|
7198
7232
|
return L(I.substr(0, 2)) && L(I.substr(2, 2));
|
|
7199
7233
|
}
|
|
7200
|
-
function
|
|
7234
|
+
function J(I) {
|
|
7201
7235
|
return r.indexOf(I) !== -1;
|
|
7202
7236
|
}
|
|
7203
7237
|
function W(I, V) {
|
|
@@ -7218,7 +7252,7 @@ function requireLottie() {
|
|
|
7218
7252
|
var ie = function() {
|
|
7219
7253
|
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);
|
|
7220
7254
|
};
|
|
7221
|
-
ie.isModifier =
|
|
7255
|
+
ie.isModifier = T, ie.isZeroWidthJoiner = b, ie.isFlagEmoji = K, ie.isRegionalCode = L, ie.isCombinedCharacter = J, ie.isRegionalFlag = W, ie.isVariationSelector = R, ie.BLACK_FLAG_CODE_POINT = i;
|
|
7222
7256
|
var Z = {
|
|
7223
7257
|
addChars: y,
|
|
7224
7258
|
addFonts: E,
|
|
@@ -8178,19 +8212,19 @@ function requireLottie() {
|
|
|
8178
8212
|
function n() {
|
|
8179
8213
|
}
|
|
8180
8214
|
function a(m, u, x) {
|
|
8181
|
-
var d, p, E, y, _, g, S = u.styles.length, C = u.lvl,
|
|
8215
|
+
var d, p, E, y, _, g, S = u.styles.length, C = u.lvl, T, b, R, L;
|
|
8182
8216
|
for (g = 0; g < S; g += 1) {
|
|
8183
8217
|
if (y = u.sh._mdf || x, u.styles[g].lvl < C) {
|
|
8184
|
-
for (
|
|
8218
|
+
for (b = t.reset(), R = C - u.styles[g].lvl, L = u.transformers.length - 1; !y && R > 0; )
|
|
8185
8219
|
y = u.transformers[L].mProps._mdf || y, R -= 1, L -= 1;
|
|
8186
8220
|
if (y)
|
|
8187
8221
|
for (R = C - u.styles[g].lvl, L = u.transformers.length - 1; R > 0; )
|
|
8188
|
-
|
|
8222
|
+
b.multiply(u.transformers[L].mProps.v), R -= 1, L -= 1;
|
|
8189
8223
|
} else
|
|
8190
|
-
|
|
8191
|
-
if (
|
|
8224
|
+
b = e;
|
|
8225
|
+
if (T = u.sh.paths, p = T._length, y) {
|
|
8192
8226
|
for (E = "", d = 0; d < p; d += 1)
|
|
8193
|
-
_ =
|
|
8227
|
+
_ = T.shapes[d], _ && _._length && (E += buildShapeString(_, _._length, _.c, b));
|
|
8194
8228
|
u.caches[g] = E;
|
|
8195
8229
|
} else
|
|
8196
8230
|
E = u.caches[g];
|
|
@@ -8214,27 +8248,27 @@ function requireLottie() {
|
|
|
8214
8248
|
var g = m.t === 1 ? "x1" : "cx", S = g === "x1" ? "y1" : "cy";
|
|
8215
8249
|
d.setAttribute(g, E[0]), d.setAttribute(S, E[1]), p && !u.g._collapsable && (u.of.setAttribute(g, E[0]), u.of.setAttribute(S, E[1]));
|
|
8216
8250
|
}
|
|
8217
|
-
var C,
|
|
8251
|
+
var C, T, b, R;
|
|
8218
8252
|
if (u.g._cmdf || x) {
|
|
8219
8253
|
C = u.cst;
|
|
8220
8254
|
var L = u.g.c;
|
|
8221
|
-
for (
|
|
8222
|
-
R = C[
|
|
8255
|
+
for (b = C.length, T = 0; T < b; T += 1)
|
|
8256
|
+
R = C[T], R.setAttribute("offset", L[T * 4] + "%"), R.setAttribute("stop-color", "rgb(" + L[T * 4 + 1] + "," + L[T * 4 + 2] + "," + L[T * 4 + 3] + ")");
|
|
8223
8257
|
}
|
|
8224
8258
|
if (p && (u.g._omdf || x)) {
|
|
8225
|
-
var
|
|
8226
|
-
for (u.g._collapsable ? C = u.cst : C = u.ost,
|
|
8227
|
-
R = C[
|
|
8259
|
+
var K = u.g.o;
|
|
8260
|
+
for (u.g._collapsable ? C = u.cst : C = u.ost, b = C.length, T = 0; T < b; T += 1)
|
|
8261
|
+
R = C[T], u.g._collapsable || R.setAttribute("offset", K[T * 2] + "%"), R.setAttribute("stop-opacity", K[T * 2 + 1]);
|
|
8228
8262
|
}
|
|
8229
8263
|
if (m.t === 1)
|
|
8230
8264
|
(u.e._mdf || x) && (d.setAttribute("x2", y[0]), d.setAttribute("y2", y[1]), p && !u.g._collapsable && (u.of.setAttribute("x2", y[0]), u.of.setAttribute("y2", y[1])));
|
|
8231
8265
|
else {
|
|
8232
|
-
var
|
|
8233
|
-
if ((u.s._mdf || u.e._mdf || x) && (
|
|
8234
|
-
|
|
8266
|
+
var J;
|
|
8267
|
+
if ((u.s._mdf || u.e._mdf || x) && (J = Math.sqrt(Math.pow(E[0] - y[0], 2) + Math.pow(E[1] - y[1], 2)), d.setAttribute("r", J), p && !u.g._collapsable && u.of.setAttribute("r", J)), u.e._mdf || u.h._mdf || u.a._mdf || x) {
|
|
8268
|
+
J || (J = Math.sqrt(Math.pow(E[0] - y[0], 2) + Math.pow(E[1] - y[1], 2)));
|
|
8235
8269
|
var W = Math.atan2(y[1] - E[1], y[0] - E[0]), te = u.h.v;
|
|
8236
8270
|
te >= 1 ? te = 0.99 : te <= -1 && (te = -0.99);
|
|
8237
|
-
var ie =
|
|
8271
|
+
var ie = J * te, Z = Math.cos(W + u.a.v) * ie + E[0], I = Math.sin(W + u.a.v) * ie + E[1];
|
|
8238
8272
|
d.setAttribute("fx", Z), d.setAttribute("fy", I), p && !u.g._collapsable && (u.of.setAttribute("fx", Z), u.of.setAttribute("fy", I));
|
|
8239
8273
|
}
|
|
8240
8274
|
}
|
|
@@ -8426,19 +8460,19 @@ function requireLottie() {
|
|
|
8426
8460
|
e.__complete = !0;
|
|
8427
8461
|
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, y, _ = t.getFontByName(e.f), g, S = 0, C = getFontProperties(_);
|
|
8428
8462
|
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;
|
|
8429
|
-
var
|
|
8463
|
+
var T = e.tr / 1e3 * e.finalSize, b;
|
|
8430
8464
|
if (e.sz)
|
|
8431
|
-
for (var R = !0, L = e.sz[0],
|
|
8432
|
-
W = this.buildFinalText(e.t),
|
|
8465
|
+
for (var R = !0, L = e.sz[0], K = e.sz[1], J, W; R; ) {
|
|
8466
|
+
W = this.buildFinalText(e.t), J = 0, d = 0, n = W.length, T = e.tr / 1e3 * e.finalSize;
|
|
8433
8467
|
var te = -1;
|
|
8434
8468
|
for (s = 0; s < n; s += 1)
|
|
8435
|
-
|
|
8436
|
-
|
|
8469
|
+
b = W[s].charCodeAt(0), a = !1, W[s] === " " ? te = s : (b === 13 || b === 3) && (d = 0, a = !0, J += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (g = t.getCharData(W[s], _.fStyle, _.fFamily), S = a ? 0 : g.w * e.finalSize / 100) : S = t.measureText(W[s], e.f, e.finalSize), d + S > L && W[s] !== " " ? (te === -1 ? n += 1 : s = te, J += e.finalLineHeight || e.finalSize * 1.2, W.splice(s, te === s ? 1 : 0, "\r"), te = -1, d = 0) : (d += S, d += T);
|
|
8470
|
+
J += _.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && K < J ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = W, n = e.finalText.length, R = !1);
|
|
8437
8471
|
}
|
|
8438
|
-
d = -
|
|
8472
|
+
d = -T, S = 0;
|
|
8439
8473
|
var ie = 0, Z;
|
|
8440
8474
|
for (s = 0; s < n; s += 1)
|
|
8441
|
-
if (a = !1, Z = e.finalText[s],
|
|
8475
|
+
if (a = !1, Z = e.finalText[s], b = Z.charCodeAt(0), b === 13 || b === 3 ? (ie = 0, x.push(d), p = d > p ? d : p, d = -2 * T, l = "", a = !0, u += 1) : l = Z, t.chars ? (g = t.getCharData(Z, _.fStyle, t.getFontByName(e.f).fFamily), S = a ? 0 : g.w * e.finalSize / 100) : S = t.measureText(l, e.f, e.finalSize), Z === " " ? ie += S + T : (d += S + T + ie, ie = 0), i.push({
|
|
8442
8476
|
l: S,
|
|
8443
8477
|
an: S,
|
|
8444
8478
|
add: c,
|
|
@@ -8608,10 +8642,10 @@ function requireLottie() {
|
|
|
8608
8642
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
8609
8643
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
8610
8644
|
this._isFirstFrame = !1;
|
|
8611
|
-
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, y, _, g, S, C,
|
|
8645
|
+
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, y, _, g, S, C, T, b, R, L, K, J;
|
|
8612
8646
|
if (this._hasMaskedPath) {
|
|
8613
|
-
if (
|
|
8614
|
-
var W =
|
|
8647
|
+
if (J = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
8648
|
+
var W = J.v;
|
|
8615
8649
|
this._pathData.r.v && (W = W.reverse()), x = {
|
|
8616
8650
|
tLength: 0,
|
|
8617
8651
|
segments: []
|
|
@@ -8619,12 +8653,12 @@ function requireLottie() {
|
|
|
8619
8653
|
var te;
|
|
8620
8654
|
for (R = 0, c = 0; c < m; c += 1)
|
|
8621
8655
|
te = 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 += te.segmentLength, x.segments.push(te), R += te.segmentLength;
|
|
8622
|
-
c = m,
|
|
8656
|
+
c = m, J.v.c && (te = 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 += te.segmentLength, x.segments.push(te), R += te.segmentLength), this._pathData.pi = x;
|
|
8623
8657
|
}
|
|
8624
|
-
if (x = this._pathData.pi, d = this._pathData.f.v, g = 0, _ = 1, E = 0, y = !0,
|
|
8625
|
-
for (x.tLength < Math.abs(d) && (d = -Math.abs(d) % x.tLength), g =
|
|
8626
|
-
d += C[_].partialLength, _ -= 1, _ < 0 && (g -= 1, C =
|
|
8627
|
-
C =
|
|
8658
|
+
if (x = this._pathData.pi, d = this._pathData.f.v, g = 0, _ = 1, E = 0, y = !0, T = x.segments, d < 0 && J.v.c)
|
|
8659
|
+
for (x.tLength < Math.abs(d) && (d = -Math.abs(d) % x.tLength), g = T.length - 1, C = T[g].points, _ = C.length - 1; d < 0; )
|
|
8660
|
+
d += C[_].partialLength, _ -= 1, _ < 0 && (g -= 1, C = T[g].points, _ = C.length - 1);
|
|
8661
|
+
C = T[g].points, S = C[_ - 1], p = C[_], b = p.partialLength;
|
|
8628
8662
|
}
|
|
8629
8663
|
m = u.length, l = 0, f = 0;
|
|
8630
8664
|
var ie = e.finalSize * 1.2 * 0.714, Z = !0, I, V, A, k, M;
|
|
@@ -8647,7 +8681,7 @@ function requireLottie() {
|
|
|
8647
8681
|
}
|
|
8648
8682
|
for (c = 0; c < m; c += 1) {
|
|
8649
8683
|
if (n.reset(), le = 1, u[c].n)
|
|
8650
|
-
l = 0, f += e.yOffset, f += Z ? 1 : 0, d = re, Z = !1, this._hasMaskedPath && (g = oe, _ = ne, C =
|
|
8684
|
+
l = 0, f += e.yOffset, f += Z ? 1 : 0, d = re, Z = !1, this._hasMaskedPath && (g = oe, _ = ne, C = T[g].points, S = C[_ - 1], p = C[_], b = p.partialLength, E = 0), Ee = "", pe = "", Ae = "", ke = "", be = this.defaultPropsArray;
|
|
8651
8685
|
else {
|
|
8652
8686
|
if (this._hasMaskedPath) {
|
|
8653
8687
|
if (ce !== u[c].line) {
|
|
@@ -8666,7 +8700,7 @@ function requireLottie() {
|
|
|
8666
8700
|
for (A = 0; A < k; A += 1)
|
|
8667
8701
|
I = i[A].a, I.p.propType && (V = i[A].s, D = V.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), D.length ? Re += I.p.v[0] * D[0] : Re += I.p.v[0] * D), I.a.propType && (V = i[A].s, D = V.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), D.length ? Re += I.a.v[0] * D[0] : Re += I.a.v[0] * D);
|
|
8668
8702
|
for (y = !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) * F / (m - 1), d += this._pathData.f.v); y; )
|
|
8669
|
-
E +
|
|
8703
|
+
E + b >= d + Re || !C ? (L = (d + Re - E) / p.partialLength, j = S.point[0] + (p.point[0] - S.point[0]) * L, X = S.point[1] + (p.point[1] - S.point[1]) * L, n.translate(-r[0] * u[c].an * 5e-3, -(r[1] * ie) * 0.01), y = !1) : C && (E += p.partialLength, _ += 1, _ >= C.length && (_ = 0, g += 1, T[g] ? C = T[g].points : J.v.c ? (_ = 0, g = 0, C = T[g].points) : (E -= p.partialLength, C = null)), C && (S = p, p = C[_], b = p.partialLength));
|
|
8670
8704
|
H = u[c].an / 2 - u[c].add, n.translate(-H, 0, 0);
|
|
8671
8705
|
} else
|
|
8672
8706
|
H = u[c].an / 2 - u[c].add, n.translate(-H, 0, 0), n.translate(-r[0] * u[c].an * 5e-3, -r[1] * ie * 0.01, 0);
|
|
@@ -8691,8 +8725,8 @@ function requireLottie() {
|
|
|
8691
8725
|
I = i[A].a, I.p.propType && (V = i[A].s, D = V.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), this._hasMaskedPath ? D.length ? n.translate(0, I.p.v[1] * D[0], -I.p.v[2] * D[1]) : n.translate(0, I.p.v[1] * D, -I.p.v[2] * D) : D.length ? n.translate(I.p.v[0] * D[0], I.p.v[1] * D[1], -I.p.v[2] * D[2]) : n.translate(I.p.v[0] * D, I.p.v[1] * D, -I.p.v[2] * D));
|
|
8692
8726
|
if (e.strokeWidthAnim && (Ae = me < 0 ? 0 : me), e.strokeColorAnim && (ge = "rgb(" + Math.round(xe[0] * 255) + "," + Math.round(xe[1] * 255) + "," + Math.round(xe[2] * 255) + ")"), e.fillColorAnim && e.fc && (pe = "rgb(" + Math.round(ye[0] * 255) + "," + Math.round(ye[1] * 255) + "," + Math.round(ye[2] * 255) + ")"), this._hasMaskedPath) {
|
|
8693
8727
|
if (n.translate(0, -e.ls), n.translate(0, r[1] * ie * 0.01 + f, 0), this._pathData.p.v) {
|
|
8694
|
-
|
|
8695
|
-
var Pe = Math.atan(
|
|
8728
|
+
K = (p.point[1] - S.point[1]) / (p.point[0] - S.point[0]);
|
|
8729
|
+
var Pe = Math.atan(K) * 180 / Math.PI;
|
|
8696
8730
|
p.point[0] < S.point[0] && (Pe += 180), n.rotate(-Pe * Math.PI / 180);
|
|
8697
8731
|
}
|
|
8698
8732
|
n.translate(j, X, 0), d -= r[0] * u[c].an * 5e-3, u[c + 1] && F !== u[c + 1].ind && (d += u[c].an / 2, d += e.tr * 1e-3 * e.finalSize);
|
|
@@ -8825,18 +8859,18 @@ function requireLottie() {
|
|
|
8825
8859
|
}
|
|
8826
8860
|
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) {
|
|
8827
8861
|
S = this.globalData.fontManager.getCharData(r.finalText[e], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
8828
|
-
var
|
|
8862
|
+
var T;
|
|
8829
8863
|
if (S.t === 1)
|
|
8830
|
-
|
|
8864
|
+
T = new SVGCompElement(S.data, this.globalData, this);
|
|
8831
8865
|
else {
|
|
8832
|
-
var
|
|
8833
|
-
S.data && S.data.shapes && (
|
|
8866
|
+
var b = emptyShapeData;
|
|
8867
|
+
S.data && S.data.shapes && (b = this.buildShapeData(S.data, r.finalSize)), T = new SVGShapeElement(b, this.globalData, this);
|
|
8834
8868
|
}
|
|
8835
8869
|
if (this.textSpans[e].glyph) {
|
|
8836
8870
|
var R = this.textSpans[e].glyph;
|
|
8837
8871
|
this.textSpans[e].childSpan.removeChild(R.layerElement), R.destroy();
|
|
8838
8872
|
}
|
|
8839
|
-
this.textSpans[e].glyph =
|
|
8873
|
+
this.textSpans[e].glyph = T, T._debug = !0, T.prepareFrame(0), T.renderFrame(), this.textSpans[e].childSpan.appendChild(T.layerElement), S.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
8840
8874
|
} else
|
|
8841
8875
|
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");
|
|
8842
8876
|
}
|
|
@@ -9451,9 +9485,9 @@ function requireLottie() {
|
|
|
9451
9485
|
e.sc && (r = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
|
|
9452
9486
|
var i = this.globalData.fontManager.getFontByName(e.f), s, n, a = e.l, o = this.mHelper;
|
|
9453
9487
|
this.stroke = r, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, n = e.finalText.length;
|
|
9454
|
-
var l, f, c, m, u, x, d, p, E, y, _ = this.data.singleShape, g = e.tr * 1e-3 * e.finalSize, S = 0, C = 0,
|
|
9488
|
+
var l, f, c, m, u, x, d, p, E, y, _ = this.data.singleShape, g = e.tr * 1e-3 * e.finalSize, S = 0, C = 0, T = !0, b = 0;
|
|
9455
9489
|
for (s = 0; s < n; s += 1) {
|
|
9456
|
-
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 = -g, C += e.yOffset, C +=
|
|
9490
|
+
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 = -g, C += e.yOffset, C += T ? 1 : 0, T = !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);
|
|
9457
9491
|
var R = 0;
|
|
9458
9492
|
for (x = 0; x < d; x += 1)
|
|
9459
9493
|
if (u[x].ty === "sh") {
|
|
@@ -9461,9 +9495,9 @@ function requireLottie() {
|
|
|
9461
9495
|
c === 1 && y.push(o.applyToX(p.v[0][0], p.v[0][1], 0), o.applyToY(p.v[0][0], p.v[0][1], 0)), y.push(o.applyToX(p.o[c - 1][0], p.o[c - 1][1], 0), o.applyToY(p.o[c - 1][0], p.o[c - 1][1], 0), o.applyToX(p.i[c][0], p.i[c][1], 0), o.applyToY(p.i[c][0], p.i[c][1], 0), o.applyToX(p.v[c][0], p.v[c][1], 0), o.applyToY(p.v[c][0], p.v[c][1], 0));
|
|
9462
9496
|
y.push(o.applyToX(p.o[c - 1][0], p.o[c - 1][1], 0), o.applyToY(p.o[c - 1][0], p.o[c - 1][1], 0), o.applyToX(p.i[0][0], p.i[0][1], 0), o.applyToY(p.i[0][0], p.i[0][1], 0), o.applyToX(p.v[0][0], p.v[0][1], 0), o.applyToY(p.v[0][0], p.v[0][1], 0)), E[R] = y, R += 1;
|
|
9463
9497
|
}
|
|
9464
|
-
_ && (S += a[s].l, S += g), this.textSpans[
|
|
9498
|
+
_ && (S += a[s].l, S += g), this.textSpans[b] ? this.textSpans[b].elem = E : this.textSpans[b] = {
|
|
9465
9499
|
elem: E
|
|
9466
|
-
},
|
|
9500
|
+
}, b += 1;
|
|
9467
9501
|
}
|
|
9468
9502
|
}, CVTextElement.prototype.renderInnerContent = function() {
|
|
9469
9503
|
this.validateText();
|
|
@@ -9904,8 +9938,8 @@ function requireLottie() {
|
|
|
9904
9938
|
this.innerElem.appendChild(f);
|
|
9905
9939
|
else {
|
|
9906
9940
|
this.innerElem.appendChild(c);
|
|
9907
|
-
var C = f.style,
|
|
9908
|
-
C.transform =
|
|
9941
|
+
var C = f.style, T = "translate3d(0," + -e.finalSize / 1.2 + "px,0)";
|
|
9942
|
+
C.transform = T, C.webkitTransform = T;
|
|
9909
9943
|
}
|
|
9910
9944
|
this.isMasked ? this.textSpans[p] = f : this.textSpans[p] = c, this.textSpans[p].style.display = "block", this.textPaths[p] = f, p += 1;
|
|
9911
9945
|
}
|
|
@@ -10201,56 +10235,56 @@ function requireLottie() {
|
|
|
10201
10235
|
function seedRandom(e, t) {
|
|
10202
10236
|
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;
|
|
10203
10237
|
function u(g, S, C) {
|
|
10204
|
-
var
|
|
10238
|
+
var T = [];
|
|
10205
10239
|
S = S === !0 ? {
|
|
10206
10240
|
entropy: !0
|
|
10207
10241
|
} : S || {};
|
|
10208
|
-
var
|
|
10209
|
-
for (var
|
|
10210
|
-
|
|
10211
|
-
for (;
|
|
10212
|
-
|
|
10213
|
-
return (
|
|
10242
|
+
var b = E(p(S.entropy ? [g, _(e)] : g === null ? y() : g, 3), T), R = new x(T), L = function() {
|
|
10243
|
+
for (var J = R.g(s), W = o, te = 0; J < l; )
|
|
10244
|
+
J = (J + te) * i, W *= i, te = R.g(1);
|
|
10245
|
+
for (; J >= f; )
|
|
10246
|
+
J /= 2, W /= 2, te >>>= 1;
|
|
10247
|
+
return (J + te) / W;
|
|
10214
10248
|
};
|
|
10215
10249
|
return L.int32 = function() {
|
|
10216
10250
|
return R.g(4) | 0;
|
|
10217
10251
|
}, L.quick = function() {
|
|
10218
10252
|
return R.g(4) / 4294967296;
|
|
10219
|
-
}, L.double = L, E(_(R.S), e), (S.pass || C || function(
|
|
10220
|
-
return te && (te.S && d(te, R),
|
|
10253
|
+
}, L.double = L, E(_(R.S), e), (S.pass || C || function(K, J, W, te) {
|
|
10254
|
+
return te && (te.S && d(te, R), K.state = function() {
|
|
10221
10255
|
return d(R, {});
|
|
10222
|
-
}), W ? (t[a] =
|
|
10223
|
-
})(L,
|
|
10256
|
+
}), W ? (t[a] = K, J) : K;
|
|
10257
|
+
})(L, b, "global" in S ? S.global : this == t, S.state);
|
|
10224
10258
|
}
|
|
10225
10259
|
t["seed" + a] = u;
|
|
10226
10260
|
function x(g) {
|
|
10227
|
-
var S, C = g.length,
|
|
10228
|
-
for (C || (g = [C++]);
|
|
10229
|
-
L[
|
|
10230
|
-
for (
|
|
10231
|
-
L[
|
|
10232
|
-
|
|
10233
|
-
for (var
|
|
10234
|
-
|
|
10235
|
-
return
|
|
10261
|
+
var S, C = g.length, T = this, b = 0, R = T.i = T.j = 0, L = T.S = [];
|
|
10262
|
+
for (C || (g = [C++]); b < i; )
|
|
10263
|
+
L[b] = b++;
|
|
10264
|
+
for (b = 0; b < i; b++)
|
|
10265
|
+
L[b] = L[R = c & R + g[b % C] + (S = L[b])], L[R] = S;
|
|
10266
|
+
T.g = function(K) {
|
|
10267
|
+
for (var J, W = 0, te = T.i, ie = T.j, Z = T.S; K--; )
|
|
10268
|
+
J = Z[te = c & te + 1], W = W * i + Z[c & (Z[te] = Z[ie = c & ie + J]) + (Z[ie] = J)];
|
|
10269
|
+
return T.i = te, T.j = ie, W;
|
|
10236
10270
|
};
|
|
10237
10271
|
}
|
|
10238
10272
|
function d(g, S) {
|
|
10239
10273
|
return S.i = g.i, S.j = g.j, S.S = g.S.slice(), S;
|
|
10240
10274
|
}
|
|
10241
10275
|
function p(g, S) {
|
|
10242
|
-
var C = [],
|
|
10243
|
-
if (S &&
|
|
10244
|
-
for (
|
|
10276
|
+
var C = [], T = _typeof$2(g), b;
|
|
10277
|
+
if (S && T == "object")
|
|
10278
|
+
for (b in g)
|
|
10245
10279
|
try {
|
|
10246
|
-
C.push(p(g[
|
|
10280
|
+
C.push(p(g[b], S - 1));
|
|
10247
10281
|
} catch {
|
|
10248
10282
|
}
|
|
10249
|
-
return C.length ? C :
|
|
10283
|
+
return C.length ? C : T == "string" ? g : g + "\0";
|
|
10250
10284
|
}
|
|
10251
10285
|
function E(g, S) {
|
|
10252
|
-
for (var C = g + "",
|
|
10253
|
-
S[c &
|
|
10286
|
+
for (var C = g + "", T, b = 0; b < C.length; )
|
|
10287
|
+
S[c & b] = c & (T ^= S[c & b] * 19) + C.charCodeAt(b++);
|
|
10254
10288
|
return _(S);
|
|
10255
10289
|
}
|
|
10256
10290
|
function y() {
|
|
@@ -11015,10 +11049,10 @@ function requireLottie() {
|
|
|
11015
11049
|
}
|
|
11016
11050
|
function t(d, p, E) {
|
|
11017
11051
|
var y, _ = function(C) {
|
|
11018
|
-
for (var
|
|
11019
|
-
if (y[
|
|
11020
|
-
return y[
|
|
11021
|
-
|
|
11052
|
+
for (var T = 0, b = y.length; T < b; ) {
|
|
11053
|
+
if (y[T]._name === C || y[T].mn === C || y[T].propertyIndex === C || y[T].ix === C || y[T].ind === C)
|
|
11054
|
+
return y[T];
|
|
11055
|
+
T += 1;
|
|
11022
11056
|
}
|
|
11023
11057
|
return typeof C == "number" ? y[C - 1] : null;
|
|
11024
11058
|
};
|
|
@@ -11101,19 +11135,19 @@ function requireLottie() {
|
|
|
11101
11135
|
return d;
|
|
11102
11136
|
}
|
|
11103
11137
|
function a(d, p, E) {
|
|
11104
|
-
var y = propertyGroupFactory(
|
|
11138
|
+
var y = propertyGroupFactory(b, E), _ = propertyGroupFactory(T, y);
|
|
11105
11139
|
function g(R) {
|
|
11106
|
-
Object.defineProperty(
|
|
11140
|
+
Object.defineProperty(T, d.d[R].nm, {
|
|
11107
11141
|
get: ExpressionPropertyInterface(p.d.dataProps[R].p)
|
|
11108
11142
|
});
|
|
11109
11143
|
}
|
|
11110
|
-
var S, C = d.d ? d.d.length : 0,
|
|
11144
|
+
var S, C = d.d ? d.d.length : 0, T = {};
|
|
11111
11145
|
for (S = 0; S < C; S += 1)
|
|
11112
11146
|
g(S), p.d.dataProps[S].p.setGroupProperty(_);
|
|
11113
|
-
function
|
|
11114
|
-
return R === "Color" || R === "color" ?
|
|
11147
|
+
function b(R) {
|
|
11148
|
+
return R === "Color" || R === "color" ? b.color : R === "Opacity" || R === "opacity" ? b.opacity : R === "Stroke Width" || R === "stroke width" ? b.strokeWidth : null;
|
|
11115
11149
|
}
|
|
11116
|
-
return Object.defineProperties(
|
|
11150
|
+
return Object.defineProperties(b, {
|
|
11117
11151
|
color: {
|
|
11118
11152
|
get: ExpressionPropertyInterface(p.c)
|
|
11119
11153
|
},
|
|
@@ -11125,7 +11159,7 @@ function requireLottie() {
|
|
|
11125
11159
|
},
|
|
11126
11160
|
dash: {
|
|
11127
11161
|
get: function() {
|
|
11128
|
-
return
|
|
11162
|
+
return T;
|
|
11129
11163
|
}
|
|
11130
11164
|
},
|
|
11131
11165
|
_name: {
|
|
@@ -11134,7 +11168,7 @@ function requireLottie() {
|
|
|
11134
11168
|
mn: {
|
|
11135
11169
|
value: d.mn
|
|
11136
11170
|
}
|
|
11137
|
-
}), p.c.setGroupProperty(PropertyInterface("Color", y)), p.o.setGroupProperty(PropertyInterface("Opacity", y)), p.w.setGroupProperty(PropertyInterface("Stroke Width", y)),
|
|
11171
|
+
}), p.c.setGroupProperty(PropertyInterface("Color", y)), p.o.setGroupProperty(PropertyInterface("Opacity", y)), p.w.setGroupProperty(PropertyInterface("Stroke Width", y)), b;
|
|
11138
11172
|
}
|
|
11139
11173
|
function o(d, p, E) {
|
|
11140
11174
|
function y(g) {
|
|
@@ -11295,7 +11329,7 @@ function requireLottie() {
|
|
|
11295
11329
|
function _(S) {
|
|
11296
11330
|
if (typeof S == "number")
|
|
11297
11331
|
return S = S === void 0 ? 1 : S, S === 0 ? E : y[S - 1];
|
|
11298
|
-
for (var C = 0,
|
|
11332
|
+
for (var C = 0, T = y.length; C < T; ) {
|
|
11299
11333
|
if (y[C]._name === S)
|
|
11300
11334
|
return y[C];
|
|
11301
11335
|
C += 1;
|
|
@@ -11437,25 +11471,25 @@ function requireLottie() {
|
|
|
11437
11471
|
return this.pv;
|
|
11438
11472
|
var _, g;
|
|
11439
11473
|
d ? (x ? _ = Math.abs(y - this.elem.comp.globalData.frameRate * x) : _ = Math.max(0, y - this.elem.data.ip), g = y - _) : ((!x || x > E.length - 1) && (x = E.length - 1), g = E[E.length - 1 - x].t, _ = y - g);
|
|
11440
|
-
var S, C,
|
|
11474
|
+
var S, C, T;
|
|
11441
11475
|
if (u === "pingpong") {
|
|
11442
|
-
var
|
|
11443
|
-
if (
|
|
11476
|
+
var b = Math.floor((p - g) / _);
|
|
11477
|
+
if (b % 2 !== 0)
|
|
11444
11478
|
return this.getValueAtTime((_ - (p - g) % _ + g) / this.comp.globalData.frameRate, 0);
|
|
11445
11479
|
} else if (u === "offset") {
|
|
11446
|
-
var R = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(y / this.comp.globalData.frameRate, 0),
|
|
11480
|
+
var R = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), K = this.getValueAtTime(((p - g) % _ + g) / this.comp.globalData.frameRate, 0), J = Math.floor((p - g) / _);
|
|
11447
11481
|
if (this.pv.length) {
|
|
11448
|
-
for (
|
|
11449
|
-
|
|
11450
|
-
return
|
|
11482
|
+
for (T = new Array(R.length), C = T.length, S = 0; S < C; S += 1)
|
|
11483
|
+
T[S] = (L[S] - R[S]) * J + K[S];
|
|
11484
|
+
return T;
|
|
11451
11485
|
}
|
|
11452
|
-
return (L - R) *
|
|
11486
|
+
return (L - R) * J + K;
|
|
11453
11487
|
} else if (u === "continue") {
|
|
11454
11488
|
var W = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), te = this.getValueAtTime((y - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
11455
11489
|
if (this.pv.length) {
|
|
11456
|
-
for (
|
|
11457
|
-
|
|
11458
|
-
return
|
|
11490
|
+
for (T = new Array(W.length), C = T.length, S = 0; S < C; S += 1)
|
|
11491
|
+
T[S] = W[S] + (W[S] - te[S]) * ((p - y) / this.comp.globalData.frameRate) / 5e-4;
|
|
11492
|
+
return T;
|
|
11459
11493
|
}
|
|
11460
11494
|
return W + (W - te) * ((p - y) / 1e-3);
|
|
11461
11495
|
}
|
|
@@ -11470,25 +11504,25 @@ function requireLottie() {
|
|
|
11470
11504
|
return this.pv;
|
|
11471
11505
|
var _, g;
|
|
11472
11506
|
d ? (x ? _ = Math.abs(this.elem.comp.globalData.frameRate * x) : _ = Math.max(0, this.elem.data.op - y), g = y + _) : ((!x || x > E.length - 1) && (x = E.length - 1), g = E[x].t, _ = g - y);
|
|
11473
|
-
var S, C,
|
|
11507
|
+
var S, C, T;
|
|
11474
11508
|
if (u === "pingpong") {
|
|
11475
|
-
var
|
|
11476
|
-
if (
|
|
11509
|
+
var b = Math.floor((y - p) / _);
|
|
11510
|
+
if (b % 2 === 0)
|
|
11477
11511
|
return this.getValueAtTime(((y - p) % _ + y) / this.comp.globalData.frameRate, 0);
|
|
11478
11512
|
} else if (u === "offset") {
|
|
11479
|
-
var R = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(g / this.comp.globalData.frameRate, 0),
|
|
11513
|
+
var R = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(g / this.comp.globalData.frameRate, 0), K = this.getValueAtTime((_ - (y - p) % _ + y) / this.comp.globalData.frameRate, 0), J = Math.floor((y - p) / _) + 1;
|
|
11480
11514
|
if (this.pv.length) {
|
|
11481
|
-
for (
|
|
11482
|
-
|
|
11483
|
-
return
|
|
11515
|
+
for (T = new Array(R.length), C = T.length, S = 0; S < C; S += 1)
|
|
11516
|
+
T[S] = K[S] - (L[S] - R[S]) * J;
|
|
11517
|
+
return T;
|
|
11484
11518
|
}
|
|
11485
|
-
return
|
|
11519
|
+
return K - (L - R) * J;
|
|
11486
11520
|
} else if (u === "continue") {
|
|
11487
11521
|
var W = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), te = this.getValueAtTime((y + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
11488
11522
|
if (this.pv.length) {
|
|
11489
|
-
for (
|
|
11490
|
-
|
|
11491
|
-
return
|
|
11523
|
+
for (T = new Array(W.length), C = T.length, S = 0; S < C; S += 1)
|
|
11524
|
+
T[S] = W[S] + (W[S] - te[S]) * (y - p) / 1e-3;
|
|
11525
|
+
return T;
|
|
11492
11526
|
}
|
|
11493
11527
|
return W + (W - te) * (y - p) / 1e-3;
|
|
11494
11528
|
}
|
|
@@ -11537,19 +11571,19 @@ function requireLottie() {
|
|
|
11537
11571
|
var _ = this.r.getValueAtTime(u);
|
|
11538
11572
|
x.rotate(-_ * this.r.mult);
|
|
11539
11573
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
11540
|
-
var g = this.rz.getValueAtTime(u), S = this.ry.getValueAtTime(u), C = this.rx.getValueAtTime(u),
|
|
11541
|
-
x.rotateZ(-g * this.rz.mult).rotateY(S * this.ry.mult).rotateX(C * this.rx.mult).rotateZ(-
|
|
11574
|
+
var g = this.rz.getValueAtTime(u), S = this.ry.getValueAtTime(u), C = this.rx.getValueAtTime(u), T = this.or.getValueAtTime(u);
|
|
11575
|
+
x.rotateZ(-g * this.rz.mult).rotateY(S * this.ry.mult).rotateX(C * this.rx.mult).rotateZ(-T[2] * this.or.mult).rotateY(T[1] * this.or.mult).rotateX(T[0] * this.or.mult);
|
|
11542
11576
|
}
|
|
11543
11577
|
if (this.data.p && this.data.p.s) {
|
|
11544
|
-
var
|
|
11578
|
+
var b = this.px.getValueAtTime(u), R = this.py.getValueAtTime(u);
|
|
11545
11579
|
if (this.data.p.z) {
|
|
11546
11580
|
var L = this.pz.getValueAtTime(u);
|
|
11547
|
-
x.translate(
|
|
11581
|
+
x.translate(b * this.px.mult, R * this.py.mult, -L * this.pz.mult);
|
|
11548
11582
|
} else
|
|
11549
|
-
x.translate(
|
|
11583
|
+
x.translate(b * this.px.mult, R * this.py.mult, 0);
|
|
11550
11584
|
} else {
|
|
11551
|
-
var
|
|
11552
|
-
x.translate(
|
|
11585
|
+
var K = this.p.getValueAtTime(u);
|
|
11586
|
+
x.translate(K[0] * this.p.mult, K[1] * this.p.mult, -K[2] * this.p.mult);
|
|
11553
11587
|
}
|
|
11554
11588
|
return x;
|
|
11555
11589
|
}
|
|
@@ -11607,16 +11641,16 @@ function requireLottie() {
|
|
|
11607
11641
|
pointOnPath: function(x, d) {
|
|
11608
11642
|
var p = this.v;
|
|
11609
11643
|
d !== void 0 && (p = this.getValueAtTime(d, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(p));
|
|
11610
|
-
for (var E = this._segmentsLength, y = E.lengths, _ = E.totalLength * x, g = 0, S = y.length, C = 0,
|
|
11644
|
+
for (var E = this._segmentsLength, y = E.lengths, _ = E.totalLength * x, g = 0, S = y.length, C = 0, T; g < S; ) {
|
|
11611
11645
|
if (C + y[g].addedLength > _) {
|
|
11612
|
-
var
|
|
11613
|
-
|
|
11646
|
+
var b = g, R = p.c && g === S - 1 ? 0 : g + 1, L = (_ - C) / y[g].addedLength;
|
|
11647
|
+
T = bez.getPointInSegment(p.v[b], p.v[R], p.o[b], p.i[R], L, y[g]);
|
|
11614
11648
|
break;
|
|
11615
11649
|
} else
|
|
11616
11650
|
C += y[g].addedLength;
|
|
11617
11651
|
g += 1;
|
|
11618
11652
|
}
|
|
11619
|
-
return
|
|
11653
|
+
return T || (T = p.c ? [p.v[0][0], p.v[0][1]] : [p.v[p._length - 1][0], p.v[p._length - 1][1]]), T;
|
|
11620
11654
|
},
|
|
11621
11655
|
vectorOnPath: function(x, d, p) {
|
|
11622
11656
|
x == 1 ? x = this.v.c : x == 0 && (x = 0.999);
|
|
@@ -11991,49 +12025,49 @@ function _unsupportedIterableToArray(e, t) {
|
|
|
11991
12025
|
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) {
|
|
11992
12026
|
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;
|
|
11993
12027
|
t.lottieRef, t.renderer, t.name, t.assetsPath, t.rendererSettings;
|
|
11994
|
-
var y = _objectWithoutProperties(t, _excluded$1), _ = useState(!1), g = _slicedToArray(_, 2), S = g[0], C = g[1],
|
|
12028
|
+
var y = _objectWithoutProperties(t, _excluded$1), _ = useState(!1), g = _slicedToArray(_, 2), S = g[0], C = g[1], T = useRef(), b = useRef(null), R = function() {
|
|
11995
12029
|
var F;
|
|
11996
|
-
(F =
|
|
12030
|
+
(F = T.current) === null || F === void 0 || F.play();
|
|
11997
12031
|
}, L = function() {
|
|
11998
12032
|
var F;
|
|
11999
|
-
(F =
|
|
12000
|
-
},
|
|
12033
|
+
(F = T.current) === null || F === void 0 || F.stop();
|
|
12034
|
+
}, K = function() {
|
|
12001
12035
|
var F;
|
|
12002
|
-
(F =
|
|
12003
|
-
},
|
|
12036
|
+
(F = T.current) === null || F === void 0 || F.pause();
|
|
12037
|
+
}, J = function(F) {
|
|
12004
12038
|
var H;
|
|
12005
|
-
(H =
|
|
12039
|
+
(H = T.current) === null || H === void 0 || H.setSpeed(F);
|
|
12006
12040
|
}, W = function(F, H) {
|
|
12007
12041
|
var j;
|
|
12008
|
-
(j =
|
|
12042
|
+
(j = T.current) === null || j === void 0 || j.goToAndPlay(F, H);
|
|
12009
12043
|
}, te = function(F, H) {
|
|
12010
12044
|
var j;
|
|
12011
|
-
(j =
|
|
12045
|
+
(j = T.current) === null || j === void 0 || j.goToAndStop(F, H);
|
|
12012
12046
|
}, ie = function(F) {
|
|
12013
12047
|
var H;
|
|
12014
|
-
(H =
|
|
12048
|
+
(H = T.current) === null || H === void 0 || H.setDirection(F);
|
|
12015
12049
|
}, Z = function(F, H) {
|
|
12016
12050
|
var j;
|
|
12017
|
-
(j =
|
|
12051
|
+
(j = T.current) === null || j === void 0 || j.playSegments(F, H);
|
|
12018
12052
|
}, I = function(F) {
|
|
12019
12053
|
var H;
|
|
12020
|
-
(H =
|
|
12054
|
+
(H = T.current) === null || H === void 0 || H.setSubframe(F);
|
|
12021
12055
|
}, V = function(F) {
|
|
12022
12056
|
var H;
|
|
12023
|
-
return (H =
|
|
12057
|
+
return (H = T.current) === null || H === void 0 ? void 0 : H.getDuration(F);
|
|
12024
12058
|
}, A = function() {
|
|
12025
12059
|
var F;
|
|
12026
|
-
(F =
|
|
12060
|
+
(F = T.current) === null || F === void 0 || F.destroy(), T.current = void 0;
|
|
12027
12061
|
}, k = function() {
|
|
12028
12062
|
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, H;
|
|
12029
|
-
if (
|
|
12030
|
-
(H =
|
|
12063
|
+
if (b.current) {
|
|
12064
|
+
(H = T.current) === null || H === void 0 || H.destroy();
|
|
12031
12065
|
var j = _objectSpread2(_objectSpread2(_objectSpread2({}, t), F), {}, {
|
|
12032
|
-
container:
|
|
12066
|
+
container: b.current
|
|
12033
12067
|
});
|
|
12034
|
-
return
|
|
12068
|
+
return T.current = lottie.loadAnimation(j), C(!!T.current), function() {
|
|
12035
12069
|
var X;
|
|
12036
|
-
(X =
|
|
12070
|
+
(X = T.current) === null || X === void 0 || X.destroy(), T.current = void 0;
|
|
12037
12071
|
};
|
|
12038
12072
|
}
|
|
12039
12073
|
};
|
|
@@ -12043,14 +12077,14 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
12043
12077
|
return D == null ? void 0 : D();
|
|
12044
12078
|
};
|
|
12045
12079
|
}, [i, s]), useEffect(function() {
|
|
12046
|
-
|
|
12080
|
+
T.current && (T.current.autoplay = !!n);
|
|
12047
12081
|
}, [n]), useEffect(function() {
|
|
12048
|
-
if (
|
|
12082
|
+
if (T.current) {
|
|
12049
12083
|
if (!a) {
|
|
12050
|
-
|
|
12084
|
+
T.current.resetSegments(!0);
|
|
12051
12085
|
return;
|
|
12052
12086
|
}
|
|
12053
|
-
!Array.isArray(a) || !a.length || ((
|
|
12087
|
+
!Array.isArray(a) || !a.length || ((T.current.currentRawFrame < a[0] || T.current.currentRawFrame > a[1]) && (T.current.currentRawFrame = a[0]), T.current.setSegment(a[0], a[1]));
|
|
12054
12088
|
}
|
|
12055
12089
|
}, [a]), useEffect(function() {
|
|
12056
12090
|
var D = [{
|
|
@@ -12095,9 +12129,9 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
12095
12129
|
*/
|
|
12096
12130
|
function(j) {
|
|
12097
12131
|
var X;
|
|
12098
|
-
return (X =
|
|
12132
|
+
return (X = T.current) === null || X === void 0 || X.addEventListener(j.name, j.handler), function() {
|
|
12099
12133
|
var re;
|
|
12100
|
-
(re =
|
|
12134
|
+
(re = T.current) === null || re === void 0 || re.removeEventListener(j.name, j.handler);
|
|
12101
12135
|
};
|
|
12102
12136
|
}
|
|
12103
12137
|
);
|
|
@@ -12110,14 +12144,14 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
12110
12144
|
}, [o, l, f, c, m, u, x, d, p, E]);
|
|
12111
12145
|
var M = /* @__PURE__ */ React2__default.createElement("div", _objectSpread2({
|
|
12112
12146
|
style: r,
|
|
12113
|
-
ref:
|
|
12147
|
+
ref: b
|
|
12114
12148
|
}, y));
|
|
12115
12149
|
return {
|
|
12116
12150
|
View: M,
|
|
12117
12151
|
play: R,
|
|
12118
12152
|
stop: L,
|
|
12119
|
-
pause:
|
|
12120
|
-
setSpeed:
|
|
12153
|
+
pause: K,
|
|
12154
|
+
setSpeed: J,
|
|
12121
12155
|
goToAndStop: te,
|
|
12122
12156
|
goToAndPlay: W,
|
|
12123
12157
|
setDirection: ie,
|
|
@@ -12125,9 +12159,9 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
12125
12159
|
setSubframe: I,
|
|
12126
12160
|
getDuration: V,
|
|
12127
12161
|
destroy: A,
|
|
12128
|
-
animationContainerRef:
|
|
12162
|
+
animationContainerRef: b,
|
|
12129
12163
|
animationLoaded: S,
|
|
12130
|
-
animationItem:
|
|
12164
|
+
animationItem: T.current
|
|
12131
12165
|
};
|
|
12132
12166
|
};
|
|
12133
12167
|
function getContainerVisibility(e) {
|
|
@@ -12172,9 +12206,9 @@ var useInitInteractivity = function e(t) {
|
|
|
12172
12206
|
var _ = getContainerCursorPosition(a, E, y);
|
|
12173
12207
|
E = _.x, y = _.y;
|
|
12174
12208
|
}
|
|
12175
|
-
var g = n.find(function(
|
|
12176
|
-
var
|
|
12177
|
-
return
|
|
12209
|
+
var g = n.find(function(T) {
|
|
12210
|
+
var b = T.position;
|
|
12211
|
+
return b && Array.isArray(b.x) && Array.isArray(b.y) ? E >= b.x[0] && E <= b.x[1] && y >= b.y[0] && y <= b.y[1] : b && !Number.isNaN(b.x) && !Number.isNaN(b.y) ? E === b.x && y === b.y : !1;
|
|
12178
12212
|
});
|
|
12179
12213
|
if (g) {
|
|
12180
12214
|
if (g.type === "seek" && g.position && Array.isArray(g.position.x) && Array.isArray(g.position.y) && g.frames.length === 2) {
|
|
@@ -12209,7 +12243,7 @@ var useInitInteractivity = function e(t) {
|
|
|
12209
12243
|
wrapperRef: o
|
|
12210
12244
|
}), a;
|
|
12211
12245
|
}, _excluded = ["style", "interactivity"], Lottie = function e(t) {
|
|
12212
|
-
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, y = l.playSegments, _ = l.setSubframe, g = l.getDuration, S = l.destroy, C = l.animationContainerRef,
|
|
12246
|
+
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, y = l.playSegments, _ = l.setSubframe, g = l.getDuration, S = l.destroy, C = l.animationContainerRef, T = l.animationLoaded, b = l.animationItem;
|
|
12213
12247
|
return useEffect(function() {
|
|
12214
12248
|
t.lottieRef && (t.lottieRef.current = {
|
|
12215
12249
|
play: c,
|
|
@@ -12224,8 +12258,8 @@ var useInitInteractivity = function e(t) {
|
|
|
12224
12258
|
getDuration: g,
|
|
12225
12259
|
destroy: S,
|
|
12226
12260
|
animationContainerRef: C,
|
|
12227
|
-
animationLoaded:
|
|
12228
|
-
animationItem:
|
|
12261
|
+
animationLoaded: T,
|
|
12262
|
+
animationItem: b
|
|
12229
12263
|
});
|
|
12230
12264
|
}, [(r = t.lottieRef) === null || r === void 0 ? void 0 : r.current]), useLottieInteractivity({
|
|
12231
12265
|
lottieObj: {
|
|
@@ -12242,8 +12276,8 @@ var useInitInteractivity = function e(t) {
|
|
|
12242
12276
|
getDuration: g,
|
|
12243
12277
|
destroy: S,
|
|
12244
12278
|
animationContainerRef: C,
|
|
12245
|
-
animationLoaded:
|
|
12246
|
-
animationItem:
|
|
12279
|
+
animationLoaded: T,
|
|
12280
|
+
animationItem: b
|
|
12247
12281
|
},
|
|
12248
12282
|
actions: (i = a == null ? void 0 : a.actions) !== null && i !== void 0 ? i : [],
|
|
12249
12283
|
mode: (s = a == null ? void 0 : a.mode) !== null && s !== void 0 ? s : "scroll"
|
|
@@ -13543,38 +13577,38 @@ function eval_fmt(e, t, r, i) {
|
|
|
13543
13577
|
s[a].t = "t", s[a].v = SSF_general(t, r);
|
|
13544
13578
|
break;
|
|
13545
13579
|
}
|
|
13546
|
-
var C = "",
|
|
13580
|
+
var C = "", T, b;
|
|
13547
13581
|
if (g.length > 0) {
|
|
13548
|
-
g.charCodeAt(0) == 40 ? (
|
|
13582
|
+
g.charCodeAt(0) == 40 ? (T = t < 0 && g.charCodeAt(0) === 45 ? -t : t, b = write_num("n", g, T)) : (T = t < 0 && i > 1 ? -t : t, b = write_num("n", g, T), T < 0 && s[0] && s[0].t == "t" && (b = b.substr(1), s[0].v = "-" + s[0].v)), S = b.length - 1;
|
|
13549
13583
|
var R = s.length;
|
|
13550
13584
|
for (a = 0; a < s.length; ++a) if (s[a] != null && s[a].t != "t" && s[a].v.indexOf(".") > -1) {
|
|
13551
13585
|
R = a;
|
|
13552
13586
|
break;
|
|
13553
13587
|
}
|
|
13554
13588
|
var L = s.length;
|
|
13555
|
-
if (R === s.length &&
|
|
13589
|
+
if (R === s.length && b.indexOf("E") === -1) {
|
|
13556
13590
|
for (a = s.length - 1; a >= 0; --a)
|
|
13557
|
-
s[a] == null || "n?".indexOf(s[a].t) === -1 || (S >= s[a].v.length - 1 ? (S -= s[a].v.length, s[a].v =
|
|
13558
|
-
S >= 0 && L < s.length && (s[L].v =
|
|
13559
|
-
} else if (R !== s.length &&
|
|
13560
|
-
for (S =
|
|
13591
|
+
s[a] == null || "n?".indexOf(s[a].t) === -1 || (S >= s[a].v.length - 1 ? (S -= s[a].v.length, s[a].v = b.substr(S + 1, s[a].v.length)) : S < 0 ? s[a].v = "" : (s[a].v = b.substr(0, S + 1), S = -1), s[a].t = "t", L = a);
|
|
13592
|
+
S >= 0 && L < s.length && (s[L].v = b.substr(0, S + 1) + s[L].v);
|
|
13593
|
+
} else if (R !== s.length && b.indexOf("E") === -1) {
|
|
13594
|
+
for (S = b.indexOf(".") - 1, a = R; a >= 0; --a)
|
|
13561
13595
|
if (!(s[a] == null || "n?".indexOf(s[a].t) === -1)) {
|
|
13562
13596
|
for (c = s[a].v.indexOf(".") > -1 && a === R ? s[a].v.indexOf(".") - 1 : s[a].v.length - 1, C = s[a].v.substr(c + 1); c >= 0; --c)
|
|
13563
|
-
S >= 0 && (s[a].v.charAt(c) === "0" || s[a].v.charAt(c) === "#") && (C =
|
|
13597
|
+
S >= 0 && (s[a].v.charAt(c) === "0" || s[a].v.charAt(c) === "#") && (C = b.charAt(S--) + C);
|
|
13564
13598
|
s[a].v = C, s[a].t = "t", L = a;
|
|
13565
13599
|
}
|
|
13566
|
-
for (S >= 0 && L < s.length && (s[L].v =
|
|
13600
|
+
for (S >= 0 && L < s.length && (s[L].v = b.substr(0, S + 1) + s[L].v), S = b.indexOf(".") + 1, a = R; a < s.length; ++a)
|
|
13567
13601
|
if (!(s[a] == null || "n?(".indexOf(s[a].t) === -1 && a !== R)) {
|
|
13568
13602
|
for (c = s[a].v.indexOf(".") > -1 && a === R ? s[a].v.indexOf(".") + 1 : 0, C = s[a].v.substr(0, c); c < s[a].v.length; ++c)
|
|
13569
|
-
S <
|
|
13603
|
+
S < b.length && (C += b.charAt(S++));
|
|
13570
13604
|
s[a].v = C, s[a].t = "t", L = a;
|
|
13571
13605
|
}
|
|
13572
13606
|
}
|
|
13573
13607
|
}
|
|
13574
|
-
for (a = 0; a < s.length; ++a) s[a] != null && "n?".indexOf(s[a].t) > -1 && (
|
|
13575
|
-
var
|
|
13576
|
-
for (a = 0; a !== s.length; ++a) s[a] != null && (
|
|
13577
|
-
return
|
|
13608
|
+
for (a = 0; a < s.length; ++a) s[a] != null && "n?".indexOf(s[a].t) > -1 && (T = i > 1 && t < 0 && a > 0 && s[a - 1].v === "-" ? -t : t, s[a].v = write_num(s[a].t, s[a].v, T), s[a].t = "t");
|
|
13609
|
+
var K = "";
|
|
13610
|
+
for (a = 0; a !== s.length; ++a) s[a] != null && (K += s[a].v);
|
|
13611
|
+
return K;
|
|
13578
13612
|
}
|
|
13579
13613
|
var cfregex2 = /\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;
|
|
13580
13614
|
function chkcond(e, t) {
|
|
@@ -13705,36 +13739,36 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13705
13739
|
var e = {};
|
|
13706
13740
|
e.version = "1.2.0";
|
|
13707
13741
|
function t() {
|
|
13708
|
-
for (var
|
|
13709
|
-
|
|
13742
|
+
for (var b = 0, R = new Array(256), L = 0; L != 256; ++L)
|
|
13743
|
+
b = L, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, R[L] = b;
|
|
13710
13744
|
return typeof Int32Array < "u" ? new Int32Array(R) : R;
|
|
13711
13745
|
}
|
|
13712
13746
|
var r = t();
|
|
13713
|
-
function i(
|
|
13714
|
-
var R = 0, L = 0,
|
|
13715
|
-
for (
|
|
13716
|
-
for (
|
|
13717
|
-
for (L =
|
|
13747
|
+
function i(b) {
|
|
13748
|
+
var R = 0, L = 0, K = 0, J = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
|
|
13749
|
+
for (K = 0; K != 256; ++K) J[K] = b[K];
|
|
13750
|
+
for (K = 0; K != 256; ++K)
|
|
13751
|
+
for (L = b[K], R = 256 + K; R < 4096; R += 256) L = J[R] = L >>> 8 ^ b[L & 255];
|
|
13718
13752
|
var W = [];
|
|
13719
|
-
for (
|
|
13753
|
+
for (K = 1; K != 16; ++K) W[K - 1] = typeof Int32Array < "u" ? J.subarray(K * 256, K * 256 + 256) : J.slice(K * 256, K * 256 + 256);
|
|
13720
13754
|
return W;
|
|
13721
13755
|
}
|
|
13722
13756
|
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], y = s[12], _ = s[13], g = s[14];
|
|
13723
|
-
function S(
|
|
13724
|
-
for (var L = R ^ -1,
|
|
13757
|
+
function S(b, R) {
|
|
13758
|
+
for (var L = R ^ -1, K = 0, J = b.length; K < J; ) L = L >>> 8 ^ r[(L ^ b.charCodeAt(K++)) & 255];
|
|
13725
13759
|
return ~L;
|
|
13726
13760
|
}
|
|
13727
|
-
function C(
|
|
13728
|
-
for (var L = R ^ -1,
|
|
13729
|
-
for (
|
|
13761
|
+
function C(b, R) {
|
|
13762
|
+
for (var L = R ^ -1, K = b.length - 15, J = 0; J < K; ) L = g[b[J++] ^ L & 255] ^ _[b[J++] ^ L >> 8 & 255] ^ y[b[J++] ^ L >> 16 & 255] ^ E[b[J++] ^ L >>> 24] ^ p[b[J++]] ^ d[b[J++]] ^ x[b[J++]] ^ u[b[J++]] ^ m[b[J++]] ^ c[b[J++]] ^ f[b[J++]] ^ l[b[J++]] ^ o[b[J++]] ^ a[b[J++]] ^ n[b[J++]] ^ r[b[J++]];
|
|
13763
|
+
for (K += 15; J < K; ) L = L >>> 8 ^ r[(L ^ b[J++]) & 255];
|
|
13730
13764
|
return ~L;
|
|
13731
13765
|
}
|
|
13732
|
-
function b
|
|
13733
|
-
for (var L = R ^ -1,
|
|
13734
|
-
W =
|
|
13766
|
+
function T(b, R) {
|
|
13767
|
+
for (var L = R ^ -1, K = 0, J = b.length, W = 0, te = 0; K < J; )
|
|
13768
|
+
W = b.charCodeAt(K++), W < 128 ? L = L >>> 8 ^ r[(L ^ W) & 255] : W < 2048 ? (L = L >>> 8 ^ r[(L ^ (192 | W >> 6 & 31)) & 255], L = L >>> 8 ^ r[(L ^ (128 | W & 63)) & 255]) : W >= 55296 && W < 57344 ? (W = (W & 1023) + 64, te = b.charCodeAt(K++) & 1023, L = L >>> 8 ^ r[(L ^ (240 | W >> 8 & 7)) & 255], L = L >>> 8 ^ r[(L ^ (128 | W >> 2 & 63)) & 255], L = L >>> 8 ^ r[(L ^ (128 | te >> 6 & 15 | (W & 3) << 4)) & 255], L = L >>> 8 ^ r[(L ^ (128 | te & 63)) & 255]) : (L = L >>> 8 ^ r[(L ^ (224 | W >> 12 & 15)) & 255], L = L >>> 8 ^ r[(L ^ (128 | W >> 6 & 63)) & 255], L = L >>> 8 ^ r[(L ^ (128 | W & 63)) & 255]);
|
|
13735
13769
|
return ~L;
|
|
13736
13770
|
}
|
|
13737
|
-
return e.table = r, e.bstr = S, e.buf = C, e.str =
|
|
13771
|
+
return e.table = r, e.bstr = S, e.buf = C, e.str = T, e;
|
|
13738
13772
|
}(), CFB = /* @__PURE__ */ function e() {
|
|
13739
13773
|
var t = {};
|
|
13740
13774
|
t.version = "1.2.1";
|
|
@@ -13957,7 +13991,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13957
13991
|
function C(P, U) {
|
|
13958
13992
|
return f(), c(l.readFileSync(P), U);
|
|
13959
13993
|
}
|
|
13960
|
-
function
|
|
13994
|
+
function T(P, U) {
|
|
13961
13995
|
var B = U && U.type;
|
|
13962
13996
|
switch (B || has_buf && Buffer.isBuffer(P) && (B = "buffer"), B || "base64") {
|
|
13963
13997
|
case "file":
|
|
@@ -13973,7 +14007,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13973
14007
|
U
|
|
13974
14008
|
);
|
|
13975
14009
|
}
|
|
13976
|
-
function
|
|
14010
|
+
function b(P, U) {
|
|
13977
14011
|
var B = U || {}, O = B.root || "Root Entry";
|
|
13978
14012
|
if (P.FullPaths || (P.FullPaths = []), P.FileIndex || (P.FileIndex = []), P.FullPaths.length !== P.FileIndex.length) throw new Error("inconsistent CFB structure");
|
|
13979
14013
|
P.FullPaths.length === 0 && (P.FullPaths[0] = O + "/", P.FileIndex[0] = { name: O, type: 5 }), B.CLSID && (P.FileIndex[0].clsid = B.CLSID), R(P);
|
|
@@ -13986,7 +14020,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13986
14020
|
}
|
|
13987
14021
|
}
|
|
13988
14022
|
function L(P, U) {
|
|
13989
|
-
|
|
14023
|
+
b(P);
|
|
13990
14024
|
for (var B = !1, O = !1, G = P.FullPaths.length - 1; G >= 0; --G) {
|
|
13991
14025
|
var z = P.FileIndex[G];
|
|
13992
14026
|
switch (z.type) {
|
|
@@ -14035,7 +14069,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14035
14069
|
}
|
|
14036
14070
|
}
|
|
14037
14071
|
}
|
|
14038
|
-
function
|
|
14072
|
+
function K(P, U) {
|
|
14039
14073
|
var B = U || {};
|
|
14040
14074
|
if (B.fileType == "mad") return ht(P, B);
|
|
14041
14075
|
switch (L(P), B.fileType) {
|
|
@@ -14114,7 +14148,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14114
14148
|
for (; G.l < G.length; ) G.write_shift(1, 0);
|
|
14115
14149
|
return G;
|
|
14116
14150
|
}
|
|
14117
|
-
function
|
|
14151
|
+
function J(P, U) {
|
|
14118
14152
|
var B = P.FullPaths.map(function(q) {
|
|
14119
14153
|
return q.toUpperCase();
|
|
14120
14154
|
}), O = B.map(function(q) {
|
|
@@ -14147,7 +14181,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14147
14181
|
};
|
|
14148
14182
|
function A(P, U, B) {
|
|
14149
14183
|
f();
|
|
14150
|
-
var O =
|
|
14184
|
+
var O = K(P, B);
|
|
14151
14185
|
l.writeFileSync(U, O);
|
|
14152
14186
|
}
|
|
14153
14187
|
function k(P) {
|
|
@@ -14155,7 +14189,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14155
14189
|
return U.join("");
|
|
14156
14190
|
}
|
|
14157
14191
|
function M(P, U) {
|
|
14158
|
-
var B =
|
|
14192
|
+
var B = K(P, U);
|
|
14159
14193
|
switch (U && U.type || "buffer") {
|
|
14160
14194
|
case "file":
|
|
14161
14195
|
return f(), l.writeFileSync(U.filename, B), B;
|
|
@@ -14440,7 +14474,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14440
14474
|
FileIndex: O,
|
|
14441
14475
|
FullPaths: G
|
|
14442
14476
|
};
|
|
14443
|
-
|
|
14477
|
+
b(z, { root: U.root });
|
|
14444
14478
|
for (var N = B.length - 4; (B[N] != 80 || B[N + 1] != 75 || B[N + 2] != 5 || B[N + 3] != 6) && N >= 0; ) --N;
|
|
14445
14479
|
B.l = N + 4, B.l += 4;
|
|
14446
14480
|
var Q = B.read_shift(2);
|
|
@@ -14612,7 +14646,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14612
14646
|
FileIndex: q,
|
|
14613
14647
|
FullPaths: Y
|
|
14614
14648
|
};
|
|
14615
|
-
|
|
14649
|
+
b(ee);
|
|
14616
14650
|
var se, ae = 0;
|
|
14617
14651
|
for (G = 0; G < O.length; ++G) {
|
|
14618
14652
|
var ue = O[G];
|
|
@@ -14646,11 +14680,11 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14646
14680
|
}
|
|
14647
14681
|
function ze(P) {
|
|
14648
14682
|
var U = {};
|
|
14649
|
-
return
|
|
14683
|
+
return b(U, P), U;
|
|
14650
14684
|
}
|
|
14651
14685
|
function We(P, U, B, O) {
|
|
14652
14686
|
var G = O && O.unsafe;
|
|
14653
|
-
G ||
|
|
14687
|
+
G || b(P);
|
|
14654
14688
|
var z = !G && CFB.find(P, U);
|
|
14655
14689
|
if (!z) {
|
|
14656
14690
|
var N = P.FullPaths[0];
|
|
@@ -14659,7 +14693,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14659
14693
|
return z.content = B, z.size = B ? B.length : 0, O && (O.CLSID && (z.clsid = O.CLSID), O.mt && (z.mt = O.mt), O.ct && (z.ct = O.ct)), z;
|
|
14660
14694
|
}
|
|
14661
14695
|
function Xe(P, U) {
|
|
14662
|
-
|
|
14696
|
+
b(P);
|
|
14663
14697
|
var B = CFB.find(P, U);
|
|
14664
14698
|
if (B) {
|
|
14665
14699
|
for (var O = 0; O < P.FileIndex.length; ++O) if (P.FileIndex[O] == B)
|
|
@@ -14668,7 +14702,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14668
14702
|
return !1;
|
|
14669
14703
|
}
|
|
14670
14704
|
function ct(P, U, B) {
|
|
14671
|
-
|
|
14705
|
+
b(P);
|
|
14672
14706
|
var O = CFB.find(P, U);
|
|
14673
14707
|
if (O) {
|
|
14674
14708
|
for (var G = 0; G < P.FileIndex.length; ++G) if (P.FileIndex[G] == O)
|
|
@@ -14679,7 +14713,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14679
14713
|
function ut(P) {
|
|
14680
14714
|
L(P, !0);
|
|
14681
14715
|
}
|
|
14682
|
-
return t.find =
|
|
14716
|
+
return t.find = J, t.read = T, t.parse = c, t.write = M, t.writeFile = A, t.utils = {
|
|
14683
14717
|
cfb_new: ze,
|
|
14684
14718
|
cfb_add: We,
|
|
14685
14719
|
cfb_del: Xe,
|
|
@@ -16964,8 +16998,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
16964
16998
|
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));
|
|
16965
16999
|
var y = c.read_shift(2), _ = l.codepage || 1252;
|
|
16966
17000
|
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);
|
|
16967
|
-
for (var g = [], S = {}, C = Math.min(c.length, m == 2 ? 521 : E - 10 - (x ? 264 : 0)),
|
|
16968
|
-
switch (S = {}, S.name = $cptable.utils.decode(_, c.slice(c.l, c.l +
|
|
17001
|
+
for (var g = [], S = {}, C = Math.min(c.length, m == 2 ? 521 : E - 10 - (x ? 264 : 0)), T = d ? 32 : 11; c.l < C && c[c.l] != 13; )
|
|
17002
|
+
switch (S = {}, S.name = $cptable.utils.decode(_, c.slice(c.l, c.l + T)).replace(/[\u0000\r\n].*$/g, ""), c.l += T, 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 && g.push(S), m != 2 && (c.l += d ? 13 : 14), S.type) {
|
|
16969
17003
|
case "B":
|
|
16970
17004
|
(!x || S.len != 8) && l.WTF && console.log("Skipping " + S.name + ":" + S.type);
|
|
16971
17005
|
break;
|
|
@@ -17005,70 +17039,70 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17005
17039
|
}
|
|
17006
17040
|
if (c[c.l] !== 13 && (c.l = E - 1), c.read_shift(1) !== 13) throw new Error("DBF Terminator not found " + c.l + " " + c[c.l]);
|
|
17007
17041
|
c.l = E;
|
|
17008
|
-
var
|
|
17042
|
+
var b = 0, R = 0;
|
|
17009
17043
|
for (f[0] = [], R = 0; R != g.length; ++R) f[0][R] = g[R].name;
|
|
17010
17044
|
for (; p-- > 0; ) {
|
|
17011
17045
|
if (c[c.l] === 42) {
|
|
17012
17046
|
c.l += y;
|
|
17013
17047
|
continue;
|
|
17014
17048
|
}
|
|
17015
|
-
for (++c.l, f[++
|
|
17049
|
+
for (++c.l, f[++b] = [], R = 0, R = 0; R != g.length; ++R) {
|
|
17016
17050
|
var L = c.slice(c.l, c.l + g[R].len);
|
|
17017
17051
|
c.l += g[R].len, prep_blob(L, 0);
|
|
17018
|
-
var
|
|
17052
|
+
var K = $cptable.utils.decode(_, L);
|
|
17019
17053
|
switch (g[R].type) {
|
|
17020
17054
|
case "C":
|
|
17021
|
-
|
|
17055
|
+
K.trim().length && (f[b][R] = K.replace(/\s+$/, ""));
|
|
17022
17056
|
break;
|
|
17023
17057
|
case "D":
|
|
17024
|
-
|
|
17058
|
+
K.length === 8 ? f[b][R] = new Date(+K.slice(0, 4), +K.slice(4, 6) - 1, +K.slice(6, 8)) : f[b][R] = K;
|
|
17025
17059
|
break;
|
|
17026
17060
|
case "F":
|
|
17027
|
-
f[
|
|
17061
|
+
f[b][R] = parseFloat(K.trim());
|
|
17028
17062
|
break;
|
|
17029
17063
|
case "+":
|
|
17030
17064
|
case "I":
|
|
17031
|
-
f[
|
|
17065
|
+
f[b][R] = d ? L.read_shift(-4, "i") ^ 2147483648 : L.read_shift(4, "i");
|
|
17032
17066
|
break;
|
|
17033
17067
|
case "L":
|
|
17034
|
-
switch (
|
|
17068
|
+
switch (K.trim().toUpperCase()) {
|
|
17035
17069
|
case "Y":
|
|
17036
17070
|
case "T":
|
|
17037
|
-
f[
|
|
17071
|
+
f[b][R] = !0;
|
|
17038
17072
|
break;
|
|
17039
17073
|
case "N":
|
|
17040
17074
|
case "F":
|
|
17041
|
-
f[
|
|
17075
|
+
f[b][R] = !1;
|
|
17042
17076
|
break;
|
|
17043
17077
|
case "":
|
|
17044
17078
|
case "?":
|
|
17045
17079
|
break;
|
|
17046
17080
|
default:
|
|
17047
|
-
throw new Error("DBF Unrecognized L:|" +
|
|
17081
|
+
throw new Error("DBF Unrecognized L:|" + K + "|");
|
|
17048
17082
|
}
|
|
17049
17083
|
break;
|
|
17050
17084
|
case "M":
|
|
17051
17085
|
if (!u) throw new Error("DBF Unexpected MEMO for type " + m.toString(16));
|
|
17052
|
-
f[
|
|
17086
|
+
f[b][R] = "##MEMO##" + (d ? parseInt(K.trim(), 10) : L.read_shift(4));
|
|
17053
17087
|
break;
|
|
17054
17088
|
case "N":
|
|
17055
|
-
|
|
17089
|
+
K = K.replace(/\u0000/g, "").trim(), K && K != "." && (f[b][R] = +K || 0);
|
|
17056
17090
|
break;
|
|
17057
17091
|
case "@":
|
|
17058
|
-
f[
|
|
17092
|
+
f[b][R] = new Date(L.read_shift(-8, "f") - 621356832e5);
|
|
17059
17093
|
break;
|
|
17060
17094
|
case "T":
|
|
17061
|
-
f[
|
|
17095
|
+
f[b][R] = new Date((L.read_shift(4) - 2440588) * 864e5 + L.read_shift(4));
|
|
17062
17096
|
break;
|
|
17063
17097
|
case "Y":
|
|
17064
|
-
f[
|
|
17098
|
+
f[b][R] = L.read_shift(4, "i") / 1e4 + L.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
|
|
17065
17099
|
break;
|
|
17066
17100
|
case "O":
|
|
17067
|
-
f[
|
|
17101
|
+
f[b][R] = -L.read_shift(-8, "f");
|
|
17068
17102
|
break;
|
|
17069
17103
|
case "B":
|
|
17070
17104
|
if (x && g[R].len == 8) {
|
|
17071
|
-
f[
|
|
17105
|
+
f[b][R] = L.read_shift(8, "f");
|
|
17072
17106
|
break;
|
|
17073
17107
|
}
|
|
17074
17108
|
/* falls through */
|
|
@@ -17127,17 +17161,17 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17127
17161
|
}
|
|
17128
17162
|
}
|
|
17129
17163
|
}
|
|
17130
|
-
var g = safe_decode_range(o["!ref"]), S = [], C = [],
|
|
17164
|
+
var g = safe_decode_range(o["!ref"]), S = [], C = [], T = [];
|
|
17131
17165
|
for (p = 0; p <= g.e.c - g.s.c; ++p) {
|
|
17132
|
-
var
|
|
17166
|
+
var b = "", R = "", L = 0, K = [];
|
|
17133
17167
|
for (E = 0; E < x.length; ++E)
|
|
17134
|
-
x[E][p] != null &&
|
|
17135
|
-
if (
|
|
17168
|
+
x[E][p] != null && K.push(x[E][p]);
|
|
17169
|
+
if (K.length == 0 || u[p] == null) {
|
|
17136
17170
|
S[p] = "?";
|
|
17137
17171
|
continue;
|
|
17138
17172
|
}
|
|
17139
|
-
for (E = 0; E <
|
|
17140
|
-
switch (typeof
|
|
17173
|
+
for (E = 0; E < K.length; ++E) {
|
|
17174
|
+
switch (typeof K[E]) {
|
|
17141
17175
|
/* TODO: check if L2 compat is desired */
|
|
17142
17176
|
case "number":
|
|
17143
17177
|
R = "B";
|
|
@@ -17149,25 +17183,25 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17149
17183
|
R = "L";
|
|
17150
17184
|
break;
|
|
17151
17185
|
case "object":
|
|
17152
|
-
R =
|
|
17186
|
+
R = K[E] instanceof Date ? "D" : "C";
|
|
17153
17187
|
break;
|
|
17154
17188
|
default:
|
|
17155
17189
|
R = "C";
|
|
17156
17190
|
}
|
|
17157
|
-
L = Math.max(L, String(
|
|
17191
|
+
L = Math.max(L, String(K[E]).length), b = b && b != R ? "C" : R;
|
|
17158
17192
|
}
|
|
17159
|
-
L > 250 && (L = 250), R = ((d[p] || {}).DBF || {}).type, R == "C" && d[p].DBF.len > L && (L = d[p].DBF.len),
|
|
17193
|
+
L > 250 && (L = 250), R = ((d[p] || {}).DBF || {}).type, R == "C" && d[p].DBF.len > L && (L = d[p].DBF.len), b == "B" && R == "N" && (b = "N", T[p] = d[p].DBF.dec, L = d[p].DBF.len), C[p] = b == "C" || R == "N" ? L : n[b] || 0, _ += C[p], S[p] = b;
|
|
17160
17194
|
}
|
|
17161
|
-
var
|
|
17162
|
-
for (
|
|
17163
|
-
for (
|
|
17195
|
+
var J = c.next(32);
|
|
17196
|
+
for (J.write_shift(4, 318902576), J.write_shift(4, x.length), J.write_shift(2, 296 + 32 * y), J.write_shift(2, _), p = 0; p < 4; ++p) J.write_shift(4, 0);
|
|
17197
|
+
for (J.write_shift(4, 0 | (+t[
|
|
17164
17198
|
/*::String(*/
|
|
17165
17199
|
current_ansi
|
|
17166
17200
|
/*::)*/
|
|
17167
17201
|
] || 3) << 8), p = 0, E = 0; p < u.length; ++p)
|
|
17168
17202
|
if (u[p] != null) {
|
|
17169
17203
|
var W = c.next(32), te = (u[p].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
|
|
17170
|
-
W.write_shift(1, te, "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,
|
|
17204
|
+
W.write_shift(1, te, "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, T[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;
|
|
17171
17205
|
}
|
|
17172
17206
|
var ie = c.next(264);
|
|
17173
17207
|
for (ie.write_shift(4, 13), p = 0; p < 65; ++p) ie.write_shift(4, 0);
|
|
@@ -17184,7 +17218,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17184
17218
|
break;
|
|
17185
17219
|
case "N":
|
|
17186
17220
|
var I = "0";
|
|
17187
|
-
for (typeof x[p][E] == "number" && (I = x[p][E].toFixed(
|
|
17221
|
+
for (typeof x[p][E] == "number" && (I = x[p][E].toFixed(T[E] || 0)), y = 0; y < C[E] - I.length; ++y) Z.write_shift(1, 32);
|
|
17188
17222
|
Z.write_shift(1, I, "sbcs");
|
|
17189
17223
|
break;
|
|
17190
17224
|
case "D":
|
|
@@ -17321,9 +17355,9 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17321
17355
|
throw new Error("Unrecognized type " + x.type);
|
|
17322
17356
|
}
|
|
17323
17357
|
function n(u, x) {
|
|
17324
|
-
var d = u.split(/[\n\r]+/), p = -1, E = -1, y = 0, _ = 0, g = [], S = [], C = null,
|
|
17358
|
+
var d = u.split(/[\n\r]+/), p = -1, E = -1, y = 0, _ = 0, g = [], S = [], C = null, T = {}, b = [], R = [], L = [], K = 0, J;
|
|
17325
17359
|
for (+x.codepage >= 0 && set_cp(+x.codepage); y !== d.length; ++y) {
|
|
17326
|
-
|
|
17360
|
+
K = 0;
|
|
17327
17361
|
var W = d[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, i).replace(t, r), te = W.replace(/;;/g, "\0").split(";").map(function(X) {
|
|
17328
17362
|
return X.replace(/\u0000/g, ";");
|
|
17329
17363
|
}), ie = te[0], Z;
|
|
@@ -17356,7 +17390,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17356
17390
|
E = parseInt(te[_].slice(1)) - 1, V = !0;
|
|
17357
17391
|
break;
|
|
17358
17392
|
case "Y":
|
|
17359
|
-
for (p = parseInt(te[_].slice(1)) - 1, V || (E = 0),
|
|
17393
|
+
for (p = parseInt(te[_].slice(1)) - 1, V || (E = 0), J = g.length; J <= p; ++J) g[J] = [];
|
|
17360
17394
|
break;
|
|
17361
17395
|
case "K":
|
|
17362
17396
|
Z = te[_].slice(1), Z.charAt(0) === '"' ? Z = Z.slice(1, Z.length - 1) : Z === "TRUE" ? Z = !0 : Z === "FALSE" ? Z = !1 : isNaN(fuzzynum(Z)) ? isNaN(fuzzydate(Z).getDate()) || (Z = parseDate(Z)) : (Z = fuzzynum(Z), C !== null && fmt_is_date(C) && (Z = numdate(Z))), I = !0;
|
|
@@ -17395,10 +17429,10 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17395
17429
|
E = parseInt(te[_].slice(1)) - 1, ++j;
|
|
17396
17430
|
break;
|
|
17397
17431
|
case "Y":
|
|
17398
|
-
for (p = parseInt(te[_].slice(1)) - 1,
|
|
17432
|
+
for (p = parseInt(te[_].slice(1)) - 1, J = g.length; J <= p; ++J) g[J] = [];
|
|
17399
17433
|
break;
|
|
17400
17434
|
case "M":
|
|
17401
|
-
|
|
17435
|
+
K = parseInt(te[_].slice(1)) / 20;
|
|
17402
17436
|
break;
|
|
17403
17437
|
case "F":
|
|
17404
17438
|
break;
|
|
@@ -17419,14 +17453,14 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17419
17453
|
break;
|
|
17420
17454
|
/* font */
|
|
17421
17455
|
case "W":
|
|
17422
|
-
for (L = te[_].slice(1).split(" "),
|
|
17423
|
-
|
|
17456
|
+
for (L = te[_].slice(1).split(" "), J = parseInt(L[0], 10); J <= parseInt(L[1], 10); ++J)
|
|
17457
|
+
K = parseInt(L[2], 10), R[J - 1] = K === 0 ? { hidden: !0 } : { wch: K }, process_col(R[J - 1]);
|
|
17424
17458
|
break;
|
|
17425
17459
|
case "C":
|
|
17426
17460
|
E = parseInt(te[_].slice(1)) - 1, R[E] || (R[E] = {});
|
|
17427
17461
|
break;
|
|
17428
17462
|
case "R":
|
|
17429
|
-
p = parseInt(te[_].slice(1)) - 1,
|
|
17463
|
+
p = parseInt(te[_].slice(1)) - 1, b[p] || (b[p] = {}), K > 0 ? (b[p].hpt = K, b[p].hpx = pt2px(K)) : K === 0 && (b[p].hidden = !0);
|
|
17430
17464
|
break;
|
|
17431
17465
|
default:
|
|
17432
17466
|
if (x && x.WTF) throw new Error("SYLK bad record " + W);
|
|
@@ -17437,7 +17471,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17437
17471
|
if (x && x.WTF) throw new Error("SYLK bad record " + W);
|
|
17438
17472
|
}
|
|
17439
17473
|
}
|
|
17440
|
-
return
|
|
17474
|
+
return b.length > 0 && (T["!rows"] = b), R.length > 0 && (T["!cols"] = R), x && x.sheetRows && (g = g.slice(0, x.sheetRows)), [g, T];
|
|
17441
17475
|
}
|
|
17442
17476
|
function a(u, x) {
|
|
17443
17477
|
var d = s(u, x), p = d[0], E = d[1], y = aoa_to_sheet(p, x);
|
|
@@ -17487,8 +17521,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17487
17521
|
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(" "));
|
|
17488
17522
|
for (var S = E.s.r; S <= E.e.r; ++S)
|
|
17489
17523
|
for (var C = E.s.c; C <= E.e.c; ++C) {
|
|
17490
|
-
var
|
|
17491
|
-
y = _ ? (u[S] || [])[C] : u[
|
|
17524
|
+
var T = encode_cell({ r: S, c: C });
|
|
17525
|
+
y = _ ? (u[S] || [])[C] : u[T], !(!y || y.v == null && (!y.f || y.F)) && p.push(l(y, u, S, C));
|
|
17492
17526
|
}
|
|
17493
17527
|
return d.join(g) + g + p.join(g) + g + "E" + g;
|
|
17494
17528
|
}
|
|
@@ -17746,45 +17780,45 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17746
17780
|
function n(c, m) {
|
|
17747
17781
|
var u = m || {}, x = "", d = u.dense ? [] : {}, p = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
|
|
17748
17782
|
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));
|
|
17749
|
-
var E = 0, y = 0, _ = 0, g = 0, S = 0, C = x.charCodeAt(0),
|
|
17783
|
+
var E = 0, y = 0, _ = 0, g = 0, S = 0, C = x.charCodeAt(0), T = !1, b = 0, R = c.charCodeAt(0);
|
|
17750
17784
|
c = c.replace(/\r\n/mg, `
|
|
17751
17785
|
`);
|
|
17752
17786
|
var L = u.dateNF != null ? dateNF_regex(u.dateNF) : null;
|
|
17753
|
-
function
|
|
17754
|
-
var
|
|
17755
|
-
if (
|
|
17787
|
+
function K() {
|
|
17788
|
+
var J = c.slice(g, S), W = {};
|
|
17789
|
+
if (J.charAt(0) == '"' && J.charAt(J.length - 1) == '"' && (J = J.slice(1, -1).replace(/""/g, '"')), J.length === 0) W.t = "z";
|
|
17756
17790
|
else if (u.raw)
|
|
17757
|
-
W.t = "s", W.v =
|
|
17758
|
-
else if (
|
|
17759
|
-
W.t = "s", W.v =
|
|
17760
|
-
else if (
|
|
17761
|
-
|
|
17762
|
-
else if (
|
|
17791
|
+
W.t = "s", W.v = J;
|
|
17792
|
+
else if (J.trim().length === 0)
|
|
17793
|
+
W.t = "s", W.v = J;
|
|
17794
|
+
else if (J.charCodeAt(0) == 61)
|
|
17795
|
+
J.charCodeAt(1) == 34 && J.charCodeAt(J.length - 1) == 34 ? (W.t = "s", W.v = J.slice(2, -1).replace(/""/g, '"')) : fuzzyfmla(J) ? (W.t = "n", W.f = J.slice(1)) : (W.t = "s", W.v = J);
|
|
17796
|
+
else if (J == "TRUE")
|
|
17763
17797
|
W.t = "b", W.v = !0;
|
|
17764
|
-
else if (
|
|
17798
|
+
else if (J == "FALSE")
|
|
17765
17799
|
W.t = "b", W.v = !1;
|
|
17766
|
-
else if (!isNaN(_ = fuzzynum(
|
|
17767
|
-
W.t = "n", u.cellText !== !1 && (W.w =
|
|
17768
|
-
else if (!isNaN(fuzzydate(
|
|
17800
|
+
else if (!isNaN(_ = fuzzynum(J)))
|
|
17801
|
+
W.t = "n", u.cellText !== !1 && (W.w = J), W.v = _;
|
|
17802
|
+
else if (!isNaN(fuzzydate(J).getDate()) || L && J.match(L)) {
|
|
17769
17803
|
W.z = u.dateNF || table_fmt[14];
|
|
17770
17804
|
var te = 0;
|
|
17771
|
-
L &&
|
|
17805
|
+
L && J.match(L) && (J = dateNF_fix(J, u.dateNF, J.match(L) || []), te = 1), u.cellDates ? (W.t = "d", W.v = parseDate(J, te)) : (W.t = "n", W.v = datenum(parseDate(J, te))), u.cellText !== !1 && (W.w = SSF_format(W.z, W.v instanceof Date ? datenum(W.v) : W.v)), u.cellNF || delete W.z;
|
|
17772
17806
|
} else
|
|
17773
|
-
W.t = "s", W.v =
|
|
17774
|
-
if (W.t == "z" || (u.dense ? (d[E] || (d[E] = []), d[E][y] = W) : d[encode_cell({ c: y, r: E })] = W), g = S + 1, R = c.charCodeAt(g), p.e.c < y && (p.e.c = y), p.e.r < E && (p.e.r = E),
|
|
17807
|
+
W.t = "s", W.v = J;
|
|
17808
|
+
if (W.t == "z" || (u.dense ? (d[E] || (d[E] = []), d[E][y] = W) : d[encode_cell({ c: y, r: E })] = W), g = S + 1, R = c.charCodeAt(g), p.e.c < y && (p.e.c = y), p.e.r < E && (p.e.r = E), b == C) ++y;
|
|
17775
17809
|
else if (y = 0, ++E, u.sheetRows && u.sheetRows <= E) return !0;
|
|
17776
17810
|
}
|
|
17777
|
-
e: for (; S < c.length; ++S) switch (
|
|
17811
|
+
e: for (; S < c.length; ++S) switch (b = c.charCodeAt(S)) {
|
|
17778
17812
|
case 34:
|
|
17779
|
-
R === 34 && (
|
|
17813
|
+
R === 34 && (T = !T);
|
|
17780
17814
|
break;
|
|
17781
17815
|
case C:
|
|
17782
17816
|
case 10:
|
|
17783
17817
|
case 13:
|
|
17784
|
-
if (!
|
|
17818
|
+
if (!T && K()) break e;
|
|
17785
17819
|
break;
|
|
17786
17820
|
}
|
|
17787
|
-
return S - g > 0 &&
|
|
17821
|
+
return S - g > 0 && K(), d["!ref"] = encode_range(p), d;
|
|
17788
17822
|
}
|
|
17789
17823
|
function a(c, m) {
|
|
17790
17824
|
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);
|
|
@@ -17973,10 +18007,10 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17973
18007
|
var pe = me[ge] + Ae, Ee = xe ? (ce[fe] || [])[ge] : ce[pe];
|
|
17974
18008
|
if (!(!Ee || Ee.t == "z"))
|
|
17975
18009
|
if (Ee.t == "n")
|
|
17976
|
-
write_biff_rec(X, 23,
|
|
18010
|
+
write_biff_rec(X, 23, K(fe, ge, ne, Ee.v));
|
|
17977
18011
|
else {
|
|
17978
18012
|
var be = format_cell(Ee);
|
|
17979
|
-
write_biff_rec(X, 22,
|
|
18013
|
+
write_biff_rec(X, 22, b(fe, ge, ne, be.slice(0, 239)));
|
|
17980
18014
|
}
|
|
17981
18015
|
}
|
|
17982
18016
|
++ne;
|
|
@@ -18175,11 +18209,11 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18175
18209
|
var H = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0];
|
|
18176
18210
|
return H[0].r = F.read_shift(2), H[3] = F[F.l++], H[0].c = F[F.l++], H;
|
|
18177
18211
|
}
|
|
18178
|
-
function
|
|
18212
|
+
function T(F, H) {
|
|
18179
18213
|
var j = C(F);
|
|
18180
18214
|
return j[1].t = "s", j[1].v = F.read_shift(H - 4, "cstr"), j;
|
|
18181
18215
|
}
|
|
18182
|
-
function
|
|
18216
|
+
function b(F, H, j, X) {
|
|
18183
18217
|
var re = new_buf(6 + X.length);
|
|
18184
18218
|
re.write_shift(2, F), re.write_shift(1, j), re.write_shift(1, H), re.write_shift(1, 39);
|
|
18185
18219
|
for (var oe = 0; oe < X.length; ++oe) {
|
|
@@ -18228,14 +18262,14 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18228
18262
|
var ne = oe & 32768;
|
|
18229
18263
|
return oe = (oe & 32767) - 16446, j[1].v = (1 - ne * 2) * (re * Math.pow(2, oe + 32) + X * Math.pow(2, oe)), j;
|
|
18230
18264
|
}
|
|
18231
|
-
function
|
|
18265
|
+
function K(F, H, j, X) {
|
|
18232
18266
|
var re = new_buf(14);
|
|
18233
18267
|
if (re.write_shift(2, F), re.write_shift(1, j), re.write_shift(1, H), X == 0)
|
|
18234
18268
|
return re.write_shift(4, 0), re.write_shift(4, 0), re.write_shift(2, 65535), re;
|
|
18235
18269
|
var oe = 0, ne = 0, ce = 0, le = 0;
|
|
18236
18270
|
return X < 0 && (oe = 1, X = -X), ne = Math.log2(X) | 0, X /= Math.pow(2, ne - 31), le = X >>> 0, (le & 2147483648) == 0 && (X /= 2, ++ne, le = X >>> 0), X -= le, le |= 2147483648, le >>>= 0, X *= Math.pow(2, 32), ce = X >>> 0, re.write_shift(4, ce), re.write_shift(4, le), ne += 16383 + (oe ? 32768 : 0), re.write_shift(2, ne), re;
|
|
18237
18271
|
}
|
|
18238
|
-
function
|
|
18272
|
+
function J(F, H) {
|
|
18239
18273
|
var j = L(F);
|
|
18240
18274
|
return F.l += H - 14, j;
|
|
18241
18275
|
}
|
|
@@ -18463,13 +18497,13 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18463
18497
|
/*::[*/
|
|
18464
18498
|
21: { n: "NACELL" },
|
|
18465
18499
|
/*::[*/
|
|
18466
|
-
22: { n: "LABEL16", f:
|
|
18500
|
+
22: { n: "LABEL16", f: T },
|
|
18467
18501
|
/*::[*/
|
|
18468
18502
|
23: { n: "NUMBER17", f: L },
|
|
18469
18503
|
/*::[*/
|
|
18470
18504
|
24: { n: "NUMBER18", f: R },
|
|
18471
18505
|
/*::[*/
|
|
18472
|
-
25: { n: "FORMULA19", f:
|
|
18506
|
+
25: { n: "FORMULA19", f: J },
|
|
18473
18507
|
/*::[*/
|
|
18474
18508
|
26: { n: "FORMULA1A" },
|
|
18475
18509
|
/*::[*/
|
|
@@ -20076,8 +20110,8 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20076
20110
|
case "PtgFuncVar":
|
|
20077
20111
|
var S = g[1][0], C = g[1][1];
|
|
20078
20112
|
S || (S = 0), S &= 127;
|
|
20079
|
-
var
|
|
20080
|
-
o.length -= S, C === "User" && (C =
|
|
20113
|
+
var T = S == 0 ? [] : o.slice(-S);
|
|
20114
|
+
o.length -= S, C === "User" && (C = T.shift()), o.push(C + "(" + T.join(",") + ")");
|
|
20081
20115
|
break;
|
|
20082
20116
|
case "PtgBool":
|
|
20083
20117
|
o.push(g[1] ? "TRUE" : "FALSE");
|
|
@@ -20121,27 +20155,27 @@ function stringify_formula(e, t, r, i, s) {
|
|
|
20121
20155
|
break;
|
|
20122
20156
|
case "PtgName":
|
|
20123
20157
|
u = g[1][2];
|
|
20124
|
-
var
|
|
20158
|
+
var b = (i.names || [])[u - 1] || (i[0] || [])[u], R = b ? b.Name : "SH33TJSNAME" + String(u);
|
|
20125
20159
|
R && R.slice(0, 6) == "_xlfn." && !s.xlfn && (R = R.slice(6)), o.push(R);
|
|
20126
20160
|
break;
|
|
20127
20161
|
case "PtgNameX":
|
|
20128
20162
|
var L = g[1][1];
|
|
20129
20163
|
u = g[1][2];
|
|
20130
|
-
var
|
|
20164
|
+
var K;
|
|
20131
20165
|
if (s.biff <= 5)
|
|
20132
|
-
L < 0 && (L = -L), i[L] && (
|
|
20166
|
+
L < 0 && (L = -L), i[L] && (K = i[L][u]);
|
|
20133
20167
|
else {
|
|
20134
|
-
var
|
|
20135
|
-
if (((i[L] || [])[0] || [])[0] == 14849 || (((i[L] || [])[0] || [])[0] == 1025 ? i[L][u] && i[L][u].itab > 0 && (
|
|
20136
|
-
else if (i[0] && i[0][u])
|
|
20168
|
+
var J = "";
|
|
20169
|
+
if (((i[L] || [])[0] || [])[0] == 14849 || (((i[L] || [])[0] || [])[0] == 1025 ? i[L][u] && i[L][u].itab > 0 && (J = i.SheetNames[i[L][u].itab - 1] + "!") : J = i.SheetNames[u - 1] + "!"), i[L] && i[L][u]) J += i[L][u].Name;
|
|
20170
|
+
else if (i[0] && i[0][u]) J += i[0][u].Name;
|
|
20137
20171
|
else {
|
|
20138
20172
|
var W = (get_ixti_raw(i, L, s) || "").split(";;");
|
|
20139
|
-
W[u - 1] ?
|
|
20173
|
+
W[u - 1] ? J = W[u - 1] : J += "SH33TJSERRX";
|
|
20140
20174
|
}
|
|
20141
|
-
o.push(
|
|
20175
|
+
o.push(J);
|
|
20142
20176
|
break;
|
|
20143
20177
|
}
|
|
20144
|
-
|
|
20178
|
+
K || (K = { Name: "SH33TJSERRY" }), o.push(K.Name);
|
|
20145
20179
|
break;
|
|
20146
20180
|
case "PtgParen":
|
|
20147
20181
|
var te = "(", ie = ")";
|
|
@@ -26886,19 +26920,19 @@ function sheet_add_dom(e, t, r) {
|
|
|
26886
26920
|
}
|
|
26887
26921
|
var C = S.children;
|
|
26888
26922
|
for (E = y = 0; E < C.length; ++E) {
|
|
26889
|
-
var
|
|
26890
|
-
if (!(i.display && is_dom_element_hidden(
|
|
26891
|
-
var
|
|
26923
|
+
var T = C[E];
|
|
26924
|
+
if (!(i.display && is_dom_element_hidden(T))) {
|
|
26925
|
+
var b = T.hasAttribute("data-v") ? T.getAttribute("data-v") : T.hasAttribute("v") ? T.getAttribute("v") : htmldecode(T.innerHTML), R = T.getAttribute("data-z") || T.getAttribute("z");
|
|
26892
26926
|
for (u = 0; u < m.length; ++u) {
|
|
26893
26927
|
var L = m[u];
|
|
26894
26928
|
L.s.c == y + n && L.s.r < p + s && p + s <= L.e.r && (y = L.e.c + 1 - n, u = -1);
|
|
26895
26929
|
}
|
|
26896
|
-
g = +
|
|
26897
|
-
var
|
|
26898
|
-
|
|
26899
|
-
var W = "", te =
|
|
26930
|
+
g = +T.getAttribute("colspan") || 1, ((_ = +T.getAttribute("rowspan") || 1) > 1 || g > 1) && m.push({ s: { r: p + s, c: y + n }, e: { r: p + s + (_ || 1) - 1, c: y + n + (g || 1) - 1 } });
|
|
26931
|
+
var K = { t: "s", v: b }, J = T.getAttribute("data-t") || T.getAttribute("t") || "";
|
|
26932
|
+
b != null && (b.length == 0 ? K.t = J || "z" : i.raw || b.trim().length == 0 || J == "s" || (b === "TRUE" ? K = { t: "b", v: !0 } : b === "FALSE" ? K = { t: "b", v: !1 } : isNaN(fuzzynum(b)) ? isNaN(fuzzydate(b).getDate()) || (K = { t: "d", v: parseDate(b) }, i.cellDates || (K = { t: "n", v: datenum(K.v) }), K.z = i.dateNF || table_fmt[14]) : K = { t: "n", v: fuzzynum(b) })), K.z === void 0 && R != null && (K.z = R);
|
|
26933
|
+
var W = "", te = T.getElementsByTagName("A");
|
|
26900
26934
|
if (te && te.length) for (var ie = 0; ie < te.length && !(te[ie].hasAttribute("href") && (W = te[ie].getAttribute("href"), W.charAt(0) != "#")); ++ie) ;
|
|
26901
|
-
W && W.charAt(0) != "#" && (
|
|
26935
|
+
W && W.charAt(0) != "#" && (K.l = { Target: W }), i.dense ? (e[p + s] || (e[p + s] = []), e[p + s][y + n] = K) : e[encode_cell({ c: y + n, r: p + s })] = K, f.e.c < y + n && (f.e.c = y + n), y += g;
|
|
26902
26936
|
}
|
|
26903
26937
|
}
|
|
26904
26938
|
++p;
|
|
@@ -26981,8 +27015,8 @@ var write_styles_ods = /* @__PURE__ */ function() {
|
|
|
26981
27015
|
}
|
|
26982
27016
|
var S = encode_cell({ r: f, c }), C = d ? (n[f] || [])[c] : n[S];
|
|
26983
27017
|
if (C && C.f && (_["table:formula"] = escapexml(csf_to_ods_formula(C.f)), C.F && C.F.slice(0, S.length) == S)) {
|
|
26984
|
-
var
|
|
26985
|
-
_["table:number-matrix-columns-spanned"] =
|
|
27018
|
+
var T = decode_range(C.F);
|
|
27019
|
+
_["table:number-matrix-columns-spanned"] = T.e.c - T.s.c + 1, _["table:number-matrix-rows-spanned"] = T.e.r - T.s.r + 1;
|
|
26986
27020
|
}
|
|
26987
27021
|
if (!C) {
|
|
26988
27022
|
l.push(t);
|
|
@@ -27007,12 +27041,12 @@ var write_styles_ods = /* @__PURE__ */ function() {
|
|
|
27007
27041
|
l.push(t);
|
|
27008
27042
|
continue;
|
|
27009
27043
|
}
|
|
27010
|
-
var
|
|
27044
|
+
var b = e(g);
|
|
27011
27045
|
if (C.l && C.l.Target) {
|
|
27012
27046
|
var R = C.l.Target;
|
|
27013
|
-
R = R.charAt(0) == "#" ? "#" + csf_to_ods_3D(R.slice(1)) : R, R.charAt(0) != "#" && !R.match(/^\w+:/) && (R = "../" + R),
|
|
27047
|
+
R = R.charAt(0) == "#" ? "#" + csf_to_ods_3D(R.slice(1)) : R, R.charAt(0) != "#" && !R.match(/^\w+:/) && (R = "../" + R), b = writextag("text:a", b, { "xlink:href": R.replace(/&/g, "&") });
|
|
27014
27048
|
}
|
|
27015
|
-
l.push(" " + writextag("table:table-cell", writextag("text:p",
|
|
27049
|
+
l.push(" " + writextag("table:table-cell", writextag("text:p", b, {}), _) + `
|
|
27016
27050
|
`);
|
|
27017
27051
|
}
|
|
27018
27052
|
l.push(` </table:table-row>
|
|
@@ -27467,22 +27501,22 @@ function write_numbers_iwa(e, t) {
|
|
|
27467
27501
|
;
|
|
27468
27502
|
if (S[C].id != _)
|
|
27469
27503
|
throw "Bad ColumnRowUIDMapArchive";
|
|
27470
|
-
var
|
|
27471
|
-
|
|
27472
|
-
for (var
|
|
27504
|
+
var T = parse_shallow(S[C].messages[0].data);
|
|
27505
|
+
T[1] = [], T[2] = [], T[3] = [];
|
|
27506
|
+
for (var b = 0; b <= i.e.c; ++b) {
|
|
27473
27507
|
var R = [];
|
|
27474
|
-
R[1] = R[2] = [{ type: 0, data: write_varint49(
|
|
27508
|
+
R[1] = R[2] = [{ type: 0, data: write_varint49(b + 420690) }], T[1].push({ type: 2, data: write_shallow(R) }), T[2].push({ type: 0, data: write_varint49(b) }), T[3].push({ type: 0, data: write_varint49(b) });
|
|
27475
27509
|
}
|
|
27476
|
-
|
|
27510
|
+
T[4] = [], T[5] = [], T[6] = [];
|
|
27477
27511
|
for (var L = 0; L <= i.e.r; ++L)
|
|
27478
|
-
R = [], R[1] = R[2] = [{ type: 0, data: write_varint49(L + 726270) }],
|
|
27479
|
-
S[C].messages[0].data = write_shallow(
|
|
27512
|
+
R = [], R[1] = R[2] = [{ type: 0, data: write_varint49(L + 726270) }], T[4].push({ type: 2, data: write_shallow(R) }), T[5].push({ type: 0, data: write_varint49(L) }), T[6].push({ type: 0, data: write_varint49(L) });
|
|
27513
|
+
S[C].messages[0].data = write_shallow(T);
|
|
27480
27514
|
}
|
|
27481
27515
|
g.content = compress_iwa_file(write_iwa_file(S)), g.size = g.content.length, delete y[46];
|
|
27482
|
-
var
|
|
27516
|
+
var K = parse_shallow(y[4][0].data);
|
|
27483
27517
|
{
|
|
27484
|
-
|
|
27485
|
-
var
|
|
27518
|
+
K[7][0].data = write_varint49(i.e.r + 1);
|
|
27519
|
+
var J = parse_shallow(K[1][0].data), W = parse_TSP_Reference(J[2][0].data);
|
|
27486
27520
|
g = CFB.find(f, o[W].location), S = parse_iwa_file(decompress_iwa_file(g.content));
|
|
27487
27521
|
{
|
|
27488
27522
|
if (S[0].id != W)
|
|
@@ -27495,17 +27529,17 @@ function write_numbers_iwa(e, t) {
|
|
|
27495
27529
|
S[0].messages[0].data = write_shallow(te);
|
|
27496
27530
|
}
|
|
27497
27531
|
g.content = compress_iwa_file(write_iwa_file(S)), g.size = g.content.length;
|
|
27498
|
-
var Z = parse_TSP_Reference(
|
|
27532
|
+
var Z = parse_TSP_Reference(K[2][0].data);
|
|
27499
27533
|
g = CFB.find(f, o[Z].location), S = parse_iwa_file(decompress_iwa_file(g.content));
|
|
27500
27534
|
{
|
|
27501
27535
|
if (S[0].id != Z)
|
|
27502
27536
|
throw "Bad HeaderStorageBucket";
|
|
27503
|
-
for (te = parse_shallow(S[0].messages[0].data),
|
|
27504
|
-
ie = parse_shallow(te[2][0].data), ie[1][0].data = write_varint49(
|
|
27537
|
+
for (te = parse_shallow(S[0].messages[0].data), b = 0; b <= i.e.c; ++b)
|
|
27538
|
+
ie = parse_shallow(te[2][0].data), ie[1][0].data = write_varint49(b), ie[4][0].data = write_varint49(i.e.r + 1), te[2][b] = { type: te[2][0].type, data: write_shallow(ie) };
|
|
27505
27539
|
S[0].messages[0].data = write_shallow(te);
|
|
27506
27540
|
}
|
|
27507
27541
|
g.content = compress_iwa_file(write_iwa_file(S)), g.size = g.content.length;
|
|
27508
|
-
var I = parse_TSP_Reference(
|
|
27542
|
+
var I = parse_TSP_Reference(K[4][0].data);
|
|
27509
27543
|
(function() {
|
|
27510
27544
|
for (var H = CFB.find(f, o[I].location), j = parse_iwa_file(decompress_iwa_file(H.content)), X, re = 0; re < j.length; ++re) {
|
|
27511
27545
|
var oe = j[re];
|
|
@@ -27523,7 +27557,7 @@ function write_numbers_iwa(e, t) {
|
|
|
27523
27557
|
var le = write_iwa_file(j), xe = compress_iwa_file(le);
|
|
27524
27558
|
H.content = xe, H.size = H.content.length;
|
|
27525
27559
|
})();
|
|
27526
|
-
var V = parse_shallow(
|
|
27560
|
+
var V = parse_shallow(K[3][0].data);
|
|
27527
27561
|
{
|
|
27528
27562
|
var A = V[1][0];
|
|
27529
27563
|
delete V[2];
|
|
@@ -27553,9 +27587,9 @@ function write_numbers_iwa(e, t) {
|
|
|
27553
27587
|
}
|
|
27554
27588
|
A.data = write_shallow(k);
|
|
27555
27589
|
}
|
|
27556
|
-
|
|
27590
|
+
K[3][0].data = write_shallow(V);
|
|
27557
27591
|
}
|
|
27558
|
-
y[4][0].data = write_shallow(
|
|
27592
|
+
y[4][0].data = write_shallow(K);
|
|
27559
27593
|
}
|
|
27560
27594
|
x.messages[0].data = write_shallow(y);
|
|
27561
27595
|
var D = write_iwa_file(u), F = compress_iwa_file(D);
|
|
@@ -27950,8 +27984,8 @@ function sheet_to_json(e, t) {
|
|
|
27950
27984
|
}
|
|
27951
27985
|
for (y = l.s.r + s; y <= l.e.r; ++y)
|
|
27952
27986
|
if (!(C[y] || {}).hidden) {
|
|
27953
|
-
var
|
|
27954
|
-
(
|
|
27987
|
+
var T = make_json_row(e, l, y, u, i, n, E, f);
|
|
27988
|
+
(T.isempty === !1 || (i === 1 ? f.blankrows !== !1 : f.blankrows)) && (x[d++] = T.row);
|
|
27955
27989
|
}
|
|
27956
27990
|
return x.length = d, x;
|
|
27957
27991
|
}
|
|
@@ -28197,16 +28231,16 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28197
28231
|
handleApproveClick: g,
|
|
28198
28232
|
handleReassignClick: S,
|
|
28199
28233
|
handleCancelClick: C,
|
|
28200
|
-
noOfPagesPerPage:
|
|
28201
|
-
clickableColumns:
|
|
28234
|
+
noOfPagesPerPage: T,
|
|
28235
|
+
clickableColumns: b,
|
|
28202
28236
|
handleCellClick: R,
|
|
28203
28237
|
onReload: L
|
|
28204
28238
|
// Destructure onReload prop
|
|
28205
28239
|
}) => {
|
|
28206
|
-
const [
|
|
28240
|
+
const [K, J] = useState(
|
|
28207
28241
|
{}
|
|
28208
28242
|
), [W, te] = useState(!1), [ie, Z] = useState([]), [I, V] = useState([]), [A, k] = useState(!1), [M, D] = useState(/* @__PURE__ */ new Set()), [F, H] = useState(null), [j, X] = useState(!1), [re, oe] = useState(""), [ne, ce] = useState("contains"), [le, xe] = useState(""), [me, ye] = useState(0), [fe, Ae] = useState(
|
|
28209
|
-
|
|
28243
|
+
T ?? 10
|
|
28210
28244
|
), [ge, pe] = useState(/* @__PURE__ */ new Set()), [Ee, be] = useState(""), [ke, we] = useState(!1), [Se, Fe] = useState(/* @__PURE__ */ new Set()), _e = useRef(null), Me = useRef(null), Re = useRef(null), [Pe, De] = useState(/* @__PURE__ */ new Set()), [Ie, Be] = useState([]), [Je, Ze] = useState(!1), [Ne, Ue] = useState(null), [Ve, Qe] = useState(!1), it = () => Qe(!0), et = () => Qe(!1), [tt, Oe] = useState(!0);
|
|
28211
28245
|
useEffect(() => {
|
|
28212
28246
|
t && Array.isArray(t) ? (Z(t), V(t), Oe(!1)) : Oe(!0);
|
|
@@ -28352,9 +28386,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28352
28386
|
}, [ke]);
|
|
28353
28387
|
const ut = (N, Q) => {
|
|
28354
28388
|
N.preventDefault();
|
|
28355
|
-
const q = N.pageX, Y =
|
|
28389
|
+
const q = N.pageX, Y = K[Q] || 150, ee = (ae) => {
|
|
28356
28390
|
const ue = Math.max(100, Y + (ae.pageX - q));
|
|
28357
|
-
|
|
28391
|
+
J((he) => ({
|
|
28358
28392
|
...he,
|
|
28359
28393
|
[Q]: ue
|
|
28360
28394
|
}));
|
|
@@ -28363,7 +28397,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28363
28397
|
};
|
|
28364
28398
|
document.addEventListener("mousemove", ee), document.addEventListener("mouseup", se);
|
|
28365
28399
|
}, P = (N, Q) => {
|
|
28366
|
-
|
|
28400
|
+
b != null && b.includes(Q) && R && R(N);
|
|
28367
28401
|
}, U = Ge.some(
|
|
28368
28402
|
(N) => Array.from(Se).some(
|
|
28369
28403
|
(Q) => Array.isArray(N[Q]) && N[Q].length > 0 && N[Q].some(
|
|
@@ -28410,7 +28444,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28410
28444
|
{
|
|
28411
28445
|
className: "table-header-cell",
|
|
28412
28446
|
style: {
|
|
28413
|
-
width:
|
|
28447
|
+
width: K[N.id] ? `${K[N.id]}px` : "150px",
|
|
28414
28448
|
minWidth: "80px",
|
|
28415
28449
|
maxWidth: "600px"
|
|
28416
28450
|
},
|
|
@@ -28586,13 +28620,13 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28586
28620
|
"td",
|
|
28587
28621
|
{
|
|
28588
28622
|
style: {
|
|
28589
|
-
width:
|
|
28623
|
+
width: K[q.id] ? `${K[q.id]}px` : "150px",
|
|
28590
28624
|
minWidth: "80px",
|
|
28591
28625
|
maxWidth: "600px"
|
|
28592
28626
|
},
|
|
28593
|
-
className: `table-cell ${
|
|
28627
|
+
className: `table-cell ${b != null && b.includes(q.id) ? "ce-clickable-cell" : ""}`,
|
|
28594
28628
|
onClick: () => {
|
|
28595
|
-
|
|
28629
|
+
b != null && b.includes(q.id) ? P(N, q.id) : Array.isArray(N[q.id]) && N[q.id].length > 0 && rt(Q, q.id);
|
|
28596
28630
|
},
|
|
28597
28631
|
children: (Array.isArray(o) ? o.includes(q.id) : o === q.id) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "radio-center-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28598
28632
|
CERadioButton,
|
|
@@ -29029,30 +29063,30 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29029
29063
|
}
|
|
29030
29064
|
);
|
|
29031
29065
|
}, 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" }) => {
|
|
29032
|
-
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), [y, _] = useState(!1), [g, S] = useState(""), [C,
|
|
29033
|
-
i(!1), !g && !C && !
|
|
29066
|
+
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), [y, _] = useState(!1), [g, S] = useState(""), [C, T] = useState(""), [b, R] = useState(""), [L, K] = useState(!0), J = () => {
|
|
29067
|
+
i(!1), !g && !C && !b && _(!1);
|
|
29034
29068
|
};
|
|
29035
|
-
useEscapeKey(
|
|
29069
|
+
useEscapeKey(J);
|
|
29036
29070
|
const W = () => {
|
|
29037
29071
|
i((M) => {
|
|
29038
29072
|
if (!M) {
|
|
29039
29073
|
const D = s || /* @__PURE__ */ new Date();
|
|
29040
|
-
o(D), g || S(String(D.getMonth() + 1).padStart(2, "0")), C ||
|
|
29074
|
+
o(D), g || S(String(D.getMonth() + 1).padStart(2, "0")), C || T(String(D.getDate()).padStart(2, "0")), b || R(String(D.getFullYear()));
|
|
29041
29075
|
}
|
|
29042
29076
|
return !M;
|
|
29043
29077
|
});
|
|
29044
29078
|
};
|
|
29045
29079
|
useEffect(() => {
|
|
29046
29080
|
const M = (D) => {
|
|
29047
|
-
E.current && !E.current.contains(D.target) &&
|
|
29081
|
+
E.current && !E.current.contains(D.target) && J();
|
|
29048
29082
|
};
|
|
29049
29083
|
return document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M);
|
|
29050
|
-
}, [g, C,
|
|
29084
|
+
}, [g, C, b]);
|
|
29051
29085
|
const te = (M) => {
|
|
29052
29086
|
const D = new Date(a.getFullYear(), a.getMonth(), M);
|
|
29053
29087
|
n(D), o(D);
|
|
29054
29088
|
const F = String(D.getMonth() + 1).padStart(2, "0"), H = String(D.getDate()).padStart(2, "0"), j = String(D.getFullYear());
|
|
29055
|
-
S(F),
|
|
29089
|
+
S(F), T(H), R(j), K(!0), e(`${F}/${H}/${j}`), i(!1);
|
|
29056
29090
|
}, ie = (M) => {
|
|
29057
29091
|
x(M > 0 ? "left" : "right"), o((D) => {
|
|
29058
29092
|
const F = new Date(D.getFullYear(), D.getMonth() + M, 1);
|
|
@@ -29090,20 +29124,20 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29090
29124
|
return re;
|
|
29091
29125
|
}, k = (M, D, F) => {
|
|
29092
29126
|
if (!M || !D || !F) {
|
|
29093
|
-
|
|
29127
|
+
K(!1), o(/* @__PURE__ */ new Date()), n(null);
|
|
29094
29128
|
return;
|
|
29095
29129
|
}
|
|
29096
29130
|
const H = `${F}-${M}-${D}`, j = new Date(H);
|
|
29097
29131
|
if (j.getFullYear() === parseInt(F) && j.getMonth() + 1 === parseInt(M) && j.getDate() === parseInt(D))
|
|
29098
|
-
n(j), o(j),
|
|
29132
|
+
n(j), o(j), K(!0), e(`${M}/${D}/${F}`);
|
|
29099
29133
|
else {
|
|
29100
29134
|
const X = /* @__PURE__ */ new Date();
|
|
29101
|
-
|
|
29135
|
+
K(!1), n(null), o(X), S(M), T(D), R(F);
|
|
29102
29136
|
}
|
|
29103
29137
|
};
|
|
29104
29138
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dp-wrapper", ref: E, children: [
|
|
29105
29139
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `dp-input-container ${y || r ? "focused" : ""} ${L ? "" : "invalid"}`, children: [
|
|
29106
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `dp-label ${y || r || s || g || C ||
|
|
29140
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `dp-label ${y || r || s || g || C || b ? "floating" : ""} ${L ? "" : "invalid"}`, children: t }),
|
|
29107
29141
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29108
29142
|
"div",
|
|
29109
29143
|
{
|
|
@@ -29117,7 +29151,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29117
29151
|
{
|
|
29118
29152
|
value: g,
|
|
29119
29153
|
onChange: (M) => {
|
|
29120
|
-
S(M), k(M, C,
|
|
29154
|
+
S(M), k(M, C, b);
|
|
29121
29155
|
},
|
|
29122
29156
|
max: 12,
|
|
29123
29157
|
min: 1,
|
|
@@ -29132,7 +29166,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29132
29166
|
{
|
|
29133
29167
|
value: C,
|
|
29134
29168
|
onChange: (M) => {
|
|
29135
|
-
|
|
29169
|
+
T(M), k(g, M, b);
|
|
29136
29170
|
},
|
|
29137
29171
|
placeholder: "DD",
|
|
29138
29172
|
max: 31,
|
|
@@ -29146,14 +29180,14 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29146
29180
|
"input",
|
|
29147
29181
|
{
|
|
29148
29182
|
type: "text",
|
|
29149
|
-
value:
|
|
29183
|
+
value: b,
|
|
29150
29184
|
onChange: (M) => {
|
|
29151
29185
|
const D = M.target.value.replace(/\D/g, "");
|
|
29152
29186
|
D.length <= 4 && (R(D), D.length === 4 && k(g, C, D));
|
|
29153
29187
|
},
|
|
29154
29188
|
onFocus: (M) => M.target.select(),
|
|
29155
29189
|
onBlur: () => {
|
|
29156
|
-
|
|
29190
|
+
b.length === 4 && k(g, C, b);
|
|
29157
29191
|
},
|
|
29158
29192
|
className: "date-input-part",
|
|
29159
29193
|
maxLength: 4,
|
|
@@ -29620,8 +29654,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29620
29654
|
}, y = (C) => {
|
|
29621
29655
|
p(!1);
|
|
29622
29656
|
}, _ = (C) => {
|
|
29623
|
-
const
|
|
29624
|
-
i === "number" && !/^\d*$/.test(
|
|
29657
|
+
const T = C.target.value;
|
|
29658
|
+
i === "number" && !/^\d*$/.test(T) || i === "alphanumeric" && !/^[a-zA-Z0-9]*$/.test(T) || t(T);
|
|
29625
29659
|
}, g = getSizeStyle$1(x || "medium"), S = {
|
|
29626
29660
|
fontSize: g.fontSize,
|
|
29627
29661
|
padding: g.padding,
|
|
@@ -29652,7 +29686,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29652
29686
|
),
|
|
29653
29687
|
f && !e && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "validated-input-error", children: l })
|
|
29654
29688
|
] });
|
|
29655
|
-
},
|
|
29689
|
+
}, InputDropDown = ({
|
|
29656
29690
|
options: e,
|
|
29657
29691
|
selected: t,
|
|
29658
29692
|
onChange: r,
|
|
@@ -29870,9 +29904,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29870
29904
|
useEffect(() => {
|
|
29871
29905
|
f.current && e && (f.current.innerHTML = e);
|
|
29872
29906
|
}, [e]);
|
|
29873
|
-
const E = useCallback((
|
|
29907
|
+
const E = useCallback((T) => {
|
|
29874
29908
|
try {
|
|
29875
|
-
return document.queryCommandState(
|
|
29909
|
+
return document.queryCommandState(T);
|
|
29876
29910
|
} catch {
|
|
29877
29911
|
return !1;
|
|
29878
29912
|
}
|
|
@@ -29889,33 +29923,33 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29889
29923
|
justifyRight: E("justifyRight"),
|
|
29890
29924
|
justifyFull: E("justifyFull")
|
|
29891
29925
|
});
|
|
29892
|
-
}, [E]), _ = useCallback((
|
|
29893
|
-
var
|
|
29926
|
+
}, [E]), _ = useCallback((T, b = "") => {
|
|
29927
|
+
var K, J;
|
|
29894
29928
|
const R = saveSelection(), L = document.getSelection();
|
|
29895
|
-
if (
|
|
29929
|
+
if (T === "createLink") {
|
|
29896
29930
|
const W = prompt("Enter URL:");
|
|
29897
29931
|
if (W) {
|
|
29898
29932
|
restoreSelection(R), document.execCommand("createLink", !1, W);
|
|
29899
|
-
const te = (
|
|
29933
|
+
const te = (K = L == null ? void 0 : L.anchorNode) == null ? void 0 : K.parentElement;
|
|
29900
29934
|
te instanceof HTMLAnchorElement && (te.target = "_blank", te.rel = "noopener noreferrer");
|
|
29901
29935
|
}
|
|
29902
|
-
} else if (
|
|
29936
|
+
} else if (T === "insertImage") {
|
|
29903
29937
|
const W = prompt("Enter image URL:");
|
|
29904
29938
|
if (W) {
|
|
29905
29939
|
restoreSelection(R);
|
|
29906
29940
|
const te = `<img src="${W}" alt="image" style="max-width: 100%; height: auto;"/>`;
|
|
29907
29941
|
document.execCommand("insertHTML", !1, te);
|
|
29908
29942
|
}
|
|
29909
|
-
} else
|
|
29910
|
-
f.current && (t == null || t(f.current.innerHTML)), (
|
|
29911
|
-
}, [t, y]), g = (
|
|
29912
|
-
if (
|
|
29913
|
-
switch (
|
|
29943
|
+
} else T === "fontSize" || T === "fontName" ? (restoreSelection(R), document.execCommand(T, !0, b), T === "fontSize" ? m(b) : x(b)) : (restoreSelection(R), document.execCommand(T, !1, b));
|
|
29944
|
+
f.current && (t == null || t(f.current.innerHTML)), (J = f.current) == null || J.focus(), y();
|
|
29945
|
+
}, [t, y]), g = (T) => {
|
|
29946
|
+
if (T.key === "Tab" && (T.preventDefault(), document.execCommand("insertHTML", !1, " ")), T.ctrlKey || T.metaKey)
|
|
29947
|
+
switch (T.key.toLowerCase()) {
|
|
29914
29948
|
case "z":
|
|
29915
|
-
|
|
29949
|
+
T.preventDefault(), T.shiftKey ? _("redo") : _("undo");
|
|
29916
29950
|
break;
|
|
29917
29951
|
case "y":
|
|
29918
|
-
|
|
29952
|
+
T.preventDefault(), _("redo");
|
|
29919
29953
|
break;
|
|
29920
29954
|
}
|
|
29921
29955
|
}, S = [
|
|
@@ -30061,20 +30095,20 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30061
30095
|
"select",
|
|
30062
30096
|
{
|
|
30063
30097
|
value: c,
|
|
30064
|
-
onChange: (
|
|
30098
|
+
onChange: (T) => _("fontSize", T.target.value),
|
|
30065
30099
|
className: "toolbar-select",
|
|
30066
30100
|
title: "Font Size",
|
|
30067
|
-
children: S.map((
|
|
30101
|
+
children: S.map((T) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: T.value, children: T.label }, T.value))
|
|
30068
30102
|
}
|
|
30069
30103
|
) }),
|
|
30070
30104
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "toolbar-group", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30071
30105
|
"select",
|
|
30072
30106
|
{
|
|
30073
30107
|
value: u,
|
|
30074
|
-
onChange: (
|
|
30108
|
+
onChange: (T) => _("fontName", T.target.value),
|
|
30075
30109
|
className: "toolbar-select",
|
|
30076
30110
|
title: "Font Family",
|
|
30077
|
-
children: C.map((
|
|
30111
|
+
children: C.map((T) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: T, children: T }, T))
|
|
30078
30112
|
}
|
|
30079
30113
|
) }),
|
|
30080
30114
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "toolbar-group", children: [
|
|
@@ -30147,7 +30181,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30147
30181
|
initialTime: r = "",
|
|
30148
30182
|
className: i = ""
|
|
30149
30183
|
}) => {
|
|
30150
|
-
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, y] = useState(""), [_, g] = useState(""), S = useRef(null), C = Array.from({ length: 12 }, (Z, I) => String(I + 1).padStart(2, "0")),
|
|
30184
|
+
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, y] = useState(""), [_, g] = useState(""), S = useRef(null), C = Array.from({ length: 12 }, (Z, I) => String(I + 1).padStart(2, "0")), T = Array.from({ length: 60 }, (Z, I) => String(I).padStart(2, "0")), b = (Z, I) => {
|
|
30151
30185
|
if (!Z) return "";
|
|
30152
30186
|
const V = parseInt(Z);
|
|
30153
30187
|
return I === "hours" ? V > 12 ? "12" : V === 0 ? "01" : Z.padStart(2, "0") : V > 59 ? "59" : Z.padStart(2, "0");
|
|
@@ -30231,22 +30265,22 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30231
30265
|
const V = Z.currentTarget.selectionStart || 0;
|
|
30232
30266
|
if (V <= 2) {
|
|
30233
30267
|
if (E) {
|
|
30234
|
-
const A =
|
|
30268
|
+
const A = b(E, "hours");
|
|
30235
30269
|
f(A), y(""), o(`${A}:${c} ${u}`);
|
|
30236
30270
|
}
|
|
30237
30271
|
Z.currentTarget.setSelectionRange(3, 5);
|
|
30238
30272
|
} else if (V >= 3 && V <= 5) {
|
|
30239
30273
|
if (_) {
|
|
30240
|
-
const A =
|
|
30274
|
+
const A = b(_, "minutes");
|
|
30241
30275
|
m(A), g(""), o(`${l}:${A} ${u}`);
|
|
30242
30276
|
}
|
|
30243
30277
|
Z.currentTarget.setSelectionRange(6, 8);
|
|
30244
30278
|
}
|
|
30245
30279
|
}
|
|
30246
|
-
},
|
|
30280
|
+
}, K = (Z) => {
|
|
30247
30281
|
const I = Z.currentTarget.selectionStart || 0, V = S.current;
|
|
30248
30282
|
V && (I <= 1 ? V.setSelectionRange(0, 2) : I >= 3 && I <= 4 ? V.setSelectionRange(3, 5) : I >= 6 && V.setSelectionRange(6, 8));
|
|
30249
|
-
},
|
|
30283
|
+
}, J = () => {
|
|
30250
30284
|
n(!0), p(!0);
|
|
30251
30285
|
}, W = (Z, I) => {
|
|
30252
30286
|
const V = Z === "hours" ? I : l, A = Z === "minutes" ? I : c, k = Z === "period" ? I : u;
|
|
@@ -30270,7 +30304,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30270
30304
|
onChange: R,
|
|
30271
30305
|
onKeyDown: L,
|
|
30272
30306
|
onClick: (Z) => {
|
|
30273
|
-
a ||
|
|
30307
|
+
a || J(), K(Z);
|
|
30274
30308
|
},
|
|
30275
30309
|
onFocus: () => p(!0),
|
|
30276
30310
|
onBlur: () => !s && p(!1),
|
|
@@ -30281,7 +30315,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30281
30315
|
),
|
|
30282
30316
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: `floating-label ${s || d || a ? "active" : ""}`, children: e }),
|
|
30283
30317
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "clock-icon", onClick: (Z) => {
|
|
30284
|
-
Z.stopPropagation(),
|
|
30318
|
+
Z.stopPropagation(), J();
|
|
30285
30319
|
}, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
30286
30320
|
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
30287
30321
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 6v6l4 2" })
|
|
@@ -30303,7 +30337,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30303
30337
|
] }),
|
|
30304
30338
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "time-section", children: [
|
|
30305
30339
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "section-label", children: "Minutes" }),
|
|
30306
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "time-list", children:
|
|
30340
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "time-list", children: T.map((Z) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30307
30341
|
"div",
|
|
30308
30342
|
{
|
|
30309
30343
|
className: `time-item ${Z === c ? "selected" : ""}`,
|
|
@@ -30342,14 +30376,14 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30342
30376
|
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());
|
|
30343
30377
|
useEffect(() => {
|
|
30344
30378
|
(async () => {
|
|
30345
|
-
var
|
|
30379
|
+
var T, b;
|
|
30346
30380
|
try {
|
|
30347
30381
|
c(!0), u(null);
|
|
30348
30382
|
const L = (await axios.get(e)).data.items || [];
|
|
30349
30383
|
a(L.slice(0, Math.ceil(L.length / 2))), l(L.slice(Math.ceil(L.length / 2)));
|
|
30350
30384
|
} catch (R) {
|
|
30351
30385
|
u(
|
|
30352
|
-
axios.isAxiosError(R) ? ((
|
|
30386
|
+
axios.isAxiosError(R) ? ((b = (T = R.response) == null ? void 0 : T.data) == null ? void 0 : b.message) || R.message : "An error occurred"
|
|
30353
30387
|
);
|
|
30354
30388
|
} finally {
|
|
30355
30389
|
c(!1);
|
|
@@ -30358,50 +30392,50 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30358
30392
|
}, []);
|
|
30359
30393
|
const y = (C) => {
|
|
30360
30394
|
if (C === "available") {
|
|
30361
|
-
const
|
|
30362
|
-
const
|
|
30363
|
-
return
|
|
30364
|
-
}),
|
|
30365
|
-
a(
|
|
30366
|
-
const W = parseInt(
|
|
30395
|
+
const T = n.filter((R) => x.has(R.id)).sort((R, L) => {
|
|
30396
|
+
const K = parseInt(R.id.replace(/\D/g, "")), J = parseInt(L.id.replace(/\D/g, ""));
|
|
30397
|
+
return K - J;
|
|
30398
|
+
}), b = n.filter((R) => !x.has(R.id));
|
|
30399
|
+
a(b), l((R) => [...R, ...T].sort((K, J) => {
|
|
30400
|
+
const W = parseInt(K.id.replace(/\D/g, "")), te = parseInt(J.id.replace(/\D/g, ""));
|
|
30367
30401
|
return W - te;
|
|
30368
30402
|
})), d(/* @__PURE__ */ new Set());
|
|
30369
30403
|
} else {
|
|
30370
|
-
const
|
|
30371
|
-
const
|
|
30372
|
-
return
|
|
30373
|
-
}),
|
|
30374
|
-
l(
|
|
30375
|
-
const W = parseInt(
|
|
30404
|
+
const T = o.filter((R) => p.has(R.id)).sort((R, L) => {
|
|
30405
|
+
const K = parseInt(R.id.replace(/\D/g, "")), J = parseInt(L.id.replace(/\D/g, ""));
|
|
30406
|
+
return K - J;
|
|
30407
|
+
}), b = o.filter((R) => !p.has(R.id));
|
|
30408
|
+
l(b), a((R) => [...R, ...T].sort((K, J) => {
|
|
30409
|
+
const W = parseInt(K.id.replace(/\D/g, "")), te = parseInt(J.id.replace(/\D/g, ""));
|
|
30376
30410
|
return W - te;
|
|
30377
30411
|
})), E(/* @__PURE__ */ new Set());
|
|
30378
30412
|
}
|
|
30379
30413
|
t(o, n);
|
|
30380
|
-
}, _ = (C,
|
|
30381
|
-
|
|
30414
|
+
}, _ = (C, T, b) => {
|
|
30415
|
+
b((R) => {
|
|
30382
30416
|
const L = new Set(R);
|
|
30383
30417
|
return L.has(C) ? L.delete(C) : L.add(C), L;
|
|
30384
30418
|
});
|
|
30385
|
-
}, g = (C,
|
|
30386
|
-
const L = new Set(
|
|
30387
|
-
R ?
|
|
30388
|
-
}, S = (C,
|
|
30389
|
-
const L = C.filter((ie) => !ie.disabled),
|
|
30419
|
+
}, g = (C, T, b) => (R) => {
|
|
30420
|
+
const L = new Set(T), K = C.filter((J) => !J.disabled);
|
|
30421
|
+
R ? K.forEach((J) => L.add(J.id)) : K.forEach((J) => L.delete(J.id)), b(L);
|
|
30422
|
+
}, S = (C, T, b, R) => {
|
|
30423
|
+
const L = C.filter((ie) => !ie.disabled), K = L.length > 0 && L.every((ie) => T.has(ie.id)), J = T.size, W = C.length, te = C.length === 0;
|
|
30390
30424
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `transfer-box ${i}`, children: [
|
|
30391
30425
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "transfer-box-header", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "header-content", children: [
|
|
30392
30426
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "checkbox-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30393
30427
|
CECheckBox,
|
|
30394
30428
|
{
|
|
30395
30429
|
label: "",
|
|
30396
|
-
checked:
|
|
30397
|
-
onChange: g(C,
|
|
30430
|
+
checked: K,
|
|
30431
|
+
onChange: g(C, T, b),
|
|
30398
30432
|
disabled: te
|
|
30399
30433
|
}
|
|
30400
30434
|
) }),
|
|
30401
30435
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "title-section", children: [
|
|
30402
30436
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", children: R }),
|
|
30403
30437
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "count-text", children: [
|
|
30404
|
-
|
|
30438
|
+
J,
|
|
30405
30439
|
"/",
|
|
30406
30440
|
W,
|
|
30407
30441
|
" selected"
|
|
@@ -30412,9 +30446,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
30412
30446
|
TransferItem,
|
|
30413
30447
|
{
|
|
30414
30448
|
label: ie.label,
|
|
30415
|
-
checked:
|
|
30449
|
+
checked: T.has(ie.id),
|
|
30416
30450
|
disabled: ie.disabled,
|
|
30417
|
-
onChange: () => _(ie.id,
|
|
30451
|
+
onChange: () => _(ie.id, T, b)
|
|
30418
30452
|
},
|
|
30419
30453
|
ie.id
|
|
30420
30454
|
)) })
|