cecomponent 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +11 -11
- package/dist/ce-component-lib.mjs +623 -590
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -157,7 +157,7 @@ function requireReactJsxRuntime_development() {
|
|
|
157
157
|
}
|
|
158
158
|
function c(F, T, D, V, G, Y, K, X) {
|
|
159
159
|
return D = Y.ref, F = {
|
|
160
|
-
$$typeof:
|
|
160
|
+
$$typeof: b,
|
|
161
161
|
type: F,
|
|
162
162
|
key: T,
|
|
163
163
|
props: Y,
|
|
@@ -193,13 +193,13 @@ function requireReactJsxRuntime_development() {
|
|
|
193
193
|
if (V)
|
|
194
194
|
if (z(Q)) {
|
|
195
195
|
for (V = 0; V < Q.length; V++)
|
|
196
|
-
|
|
196
|
+
E(Q[V]);
|
|
197
197
|
Object.freeze && Object.freeze(Q);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
|
-
else
|
|
202
|
+
else E(Q);
|
|
203
203
|
if (B.call(T, "key")) {
|
|
204
204
|
Q = t(F);
|
|
205
205
|
var it = Object.keys(T).filter(function(st) {
|
|
@@ -237,10 +237,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
X
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
typeof F == "object" && F !== null && F.$$typeof ===
|
|
240
|
+
function E(F) {
|
|
241
|
+
typeof F == "object" && F !== null && F.$$typeof === b && F._store && (F._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var f = React2__default,
|
|
243
|
+
var f = React2__default, b = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), m = Symbol.for("react.consumer"), y = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), $ = Symbol.for("react.client.reference"), O = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, z = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
f = {
|
|
@@ -292,11 +292,11 @@ function requireDist() {
|
|
|
292
292
|
};
|
|
293
293
|
return f.prototype = /* @__PURE__ */ Object.create(null), f;
|
|
294
294
|
})();
|
|
295
|
-
function a(f,
|
|
295
|
+
function a(f, b) {
|
|
296
296
|
const d = new n(), x = f.length;
|
|
297
297
|
if (x < 2)
|
|
298
298
|
return d;
|
|
299
|
-
const S = (
|
|
299
|
+
const S = (b == null ? void 0 : b.decode) || u;
|
|
300
300
|
let p = 0;
|
|
301
301
|
do {
|
|
302
302
|
const m = f.indexOf("=", p);
|
|
@@ -317,29 +317,29 @@ function requireDist() {
|
|
|
317
317
|
} while (p < x);
|
|
318
318
|
return d;
|
|
319
319
|
}
|
|
320
|
-
function l(f,
|
|
320
|
+
function l(f, b, d) {
|
|
321
321
|
do {
|
|
322
|
-
const x = f.charCodeAt(
|
|
322
|
+
const x = f.charCodeAt(b);
|
|
323
323
|
if (x !== 32 && x !== 9)
|
|
324
|
-
return
|
|
325
|
-
} while (++
|
|
324
|
+
return b;
|
|
325
|
+
} while (++b < d);
|
|
326
326
|
return d;
|
|
327
327
|
}
|
|
328
|
-
function o(f,
|
|
329
|
-
for (;
|
|
330
|
-
const x = f.charCodeAt(--
|
|
328
|
+
function o(f, b, d) {
|
|
329
|
+
for (; b > d; ) {
|
|
330
|
+
const x = f.charCodeAt(--b);
|
|
331
331
|
if (x !== 32 && x !== 9)
|
|
332
|
-
return
|
|
332
|
+
return b + 1;
|
|
333
333
|
}
|
|
334
334
|
return d;
|
|
335
335
|
}
|
|
336
|
-
function c(f,
|
|
336
|
+
function c(f, b, d) {
|
|
337
337
|
const x = (d == null ? void 0 : d.encode) || encodeURIComponent;
|
|
338
338
|
if (!t.test(f))
|
|
339
339
|
throw new TypeError(`argument name is invalid: ${f}`);
|
|
340
|
-
const S = x(
|
|
340
|
+
const S = x(b);
|
|
341
341
|
if (!e.test(S))
|
|
342
|
-
throw new TypeError(`argument val is invalid: ${
|
|
342
|
+
throw new TypeError(`argument val is invalid: ${b}`);
|
|
343
343
|
let p = f + "=" + S;
|
|
344
344
|
if (!d)
|
|
345
345
|
return p;
|
|
@@ -359,7 +359,7 @@ function requireDist() {
|
|
|
359
359
|
p += "; Path=" + d.path;
|
|
360
360
|
}
|
|
361
361
|
if (d.expires) {
|
|
362
|
-
if (!
|
|
362
|
+
if (!E(d.expires) || !Number.isFinite(d.expires.valueOf()))
|
|
363
363
|
throw new TypeError(`option expires is invalid: ${d.expires}`);
|
|
364
364
|
p += "; Expires=" + d.expires.toUTCString();
|
|
365
365
|
}
|
|
@@ -403,7 +403,7 @@ function requireDist() {
|
|
|
403
403
|
return f;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function E(f) {
|
|
407
407
|
return s.call(f) === "[object Date]";
|
|
408
408
|
}
|
|
409
409
|
return dist;
|
|
@@ -549,28 +549,28 @@ function compareIndexes(t, e) {
|
|
|
549
549
|
function matchRouteBranch(t, e, r = !1) {
|
|
550
550
|
let { routesMeta: i } = t, s = {}, n = "/", a = [];
|
|
551
551
|
for (let l = 0; l < i.length; ++l) {
|
|
552
|
-
let o = i[l], c = l === i.length - 1, u = n === "/" ? e : e.slice(n.length) || "/",
|
|
552
|
+
let o = i[l], c = l === i.length - 1, u = n === "/" ? e : e.slice(n.length) || "/", E = matchPath(
|
|
553
553
|
{ path: o.relativePath, caseSensitive: o.caseSensitive, end: c },
|
|
554
554
|
u
|
|
555
555
|
), f = o.route;
|
|
556
|
-
if (!
|
|
556
|
+
if (!E && c && r && !i[i.length - 1].route.index && (E = matchPath(
|
|
557
557
|
{
|
|
558
558
|
path: o.relativePath,
|
|
559
559
|
caseSensitive: o.caseSensitive,
|
|
560
560
|
end: !1
|
|
561
561
|
},
|
|
562
562
|
u
|
|
563
|
-
)), !
|
|
563
|
+
)), !E)
|
|
564
564
|
return null;
|
|
565
|
-
Object.assign(s,
|
|
565
|
+
Object.assign(s, E.params), a.push({
|
|
566
566
|
// TODO: Can this as be avoided?
|
|
567
567
|
params: s,
|
|
568
|
-
pathname: joinPaths([n,
|
|
568
|
+
pathname: joinPaths([n, E.pathname]),
|
|
569
569
|
pathnameBase: normalizePathname(
|
|
570
|
-
joinPaths([n,
|
|
570
|
+
joinPaths([n, E.pathnameBase])
|
|
571
571
|
),
|
|
572
572
|
route: f
|
|
573
|
-
}),
|
|
573
|
+
}), E.pathnameBase !== "/" && (n = joinPaths([n, E.pathnameBase]));
|
|
574
574
|
}
|
|
575
575
|
return a;
|
|
576
576
|
}
|
|
@@ -585,13 +585,13 @@ function matchPath(t, e) {
|
|
|
585
585
|
let n = s[0], a = n.replace(/(.)\/+$/, "$1"), l = s.slice(1);
|
|
586
586
|
return {
|
|
587
587
|
params: i.reduce(
|
|
588
|
-
(c, { paramName: u, isOptional:
|
|
588
|
+
(c, { paramName: u, isOptional: E }, f) => {
|
|
589
589
|
if (u === "*") {
|
|
590
590
|
let d = l[f] || "";
|
|
591
591
|
a = n.slice(0, n.length - d.length).replace(/(.)\/+$/, "$1");
|
|
592
592
|
}
|
|
593
|
-
const
|
|
594
|
-
return
|
|
593
|
+
const b = l[f];
|
|
594
|
+
return E && !b ? c[u] = void 0 : c[u] = (b || "").replace(/%2F/g, "/"), c;
|
|
595
595
|
},
|
|
596
596
|
{}
|
|
597
597
|
),
|
|
@@ -678,14 +678,14 @@ function resolveTo(t, e, r, i = !1) {
|
|
|
678
678
|
if (a == null)
|
|
679
679
|
l = r;
|
|
680
680
|
else {
|
|
681
|
-
let
|
|
681
|
+
let E = e.length - 1;
|
|
682
682
|
if (!i && a.startsWith("..")) {
|
|
683
683
|
let f = a.split("/");
|
|
684
684
|
for (; f[0] === ".."; )
|
|
685
|
-
f.shift(),
|
|
685
|
+
f.shift(), E -= 1;
|
|
686
686
|
s.pathname = f.join("/");
|
|
687
687
|
}
|
|
688
|
-
l =
|
|
688
|
+
l = E >= 0 ? e[E] : "/";
|
|
689
689
|
}
|
|
690
690
|
let o = resolvePath(s, l), c = a && a !== "/" && a.endsWith("/"), u = (n || a === ".") && r.endsWith("/");
|
|
691
691
|
return !o.pathname.endsWith("/") && (c || u) && (o.pathname += "/"), o;
|
|
@@ -836,12 +836,12 @@ function useRoutesImpl(t, e, r, i) {
|
|
|
836
836
|
Please change the parent <Route path="${p}"> to <Route path="${p === "/" ? "*" : `${p}/*`}">.`
|
|
837
837
|
);
|
|
838
838
|
}
|
|
839
|
-
let
|
|
840
|
-
f =
|
|
841
|
-
let
|
|
839
|
+
let E = useLocation(), f;
|
|
840
|
+
f = E;
|
|
841
|
+
let b = f.pathname || "/", d = b;
|
|
842
842
|
if (c !== "/") {
|
|
843
843
|
let p = c.replace(/^\//, "").split("/");
|
|
844
|
-
d = "/" +
|
|
844
|
+
d = "/" + b.replace(/^\//, "").split("/").slice(p.length).join("/");
|
|
845
845
|
}
|
|
846
846
|
let x = matchRoutes(t, { pathname: d });
|
|
847
847
|
return warning(
|
|
@@ -952,7 +952,7 @@ function _renderMatches(t, e = [], r = null, i = null) {
|
|
|
952
952
|
for (let o = 0; o < s.length; o++) {
|
|
953
953
|
let c = s[o];
|
|
954
954
|
if ((c.route.HydrateFallback || c.route.hydrateFallbackElement) && (l = o), c.route.id) {
|
|
955
|
-
let { loaderData: u, errors:
|
|
955
|
+
let { loaderData: u, errors: E } = r, f = c.route.loader && !u.hasOwnProperty(c.route.id) && (!E || E[c.route.id] === void 0);
|
|
956
956
|
if (c.route.lazy || f) {
|
|
957
957
|
a = !0, l >= 0 ? s = s.slice(0, l + 1) : s = [s[0]];
|
|
958
958
|
break;
|
|
@@ -960,15 +960,15 @@ function _renderMatches(t, e = [], r = null, i = null) {
|
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
return s.reduceRight((o, c, u) => {
|
|
963
|
-
let
|
|
964
|
-
r && (
|
|
963
|
+
let E, f = !1, b = null, d = null;
|
|
964
|
+
r && (E = n && c.route.id ? n[c.route.id] : void 0, b = c.route.errorElement || defaultErrorElement, a && (l < 0 && u === 0 ? (warningOnce(
|
|
965
965
|
"route-fallback",
|
|
966
966
|
!1,
|
|
967
967
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
968
968
|
), f = !0, d = null) : l === u && (f = !0, d = c.route.hydrateFallbackElement || null)));
|
|
969
969
|
let x = e.concat(s.slice(0, u + 1)), S = () => {
|
|
970
970
|
let p;
|
|
971
|
-
return
|
|
971
|
+
return E ? p = b : f ? p = d : c.route.Component ? p = /* @__PURE__ */ React2.createElement(c.route.Component, null) : c.route.element ? p = c.route.element : p = o, /* @__PURE__ */ React2.createElement(
|
|
972
972
|
RenderedRoute,
|
|
973
973
|
{
|
|
974
974
|
match: c,
|
|
@@ -986,8 +986,8 @@ function _renderMatches(t, e = [], r = null, i = null) {
|
|
|
986
986
|
{
|
|
987
987
|
location: r.location,
|
|
988
988
|
revalidation: r.revalidation,
|
|
989
|
-
component:
|
|
990
|
-
error:
|
|
989
|
+
component: b,
|
|
990
|
+
error: E,
|
|
991
991
|
children: S(),
|
|
992
992
|
routeContext: { outlet: null, matches: x, isDataRoute: !0 }
|
|
993
993
|
}
|
|
@@ -1121,11 +1121,11 @@ function getFormSubmissionInfo(t, e) {
|
|
|
1121
1121
|
);
|
|
1122
1122
|
let o = t.getAttribute("formaction") || l.getAttribute("action");
|
|
1123
1123
|
if (i = o ? stripBasename(o, e) : null, r = t.getAttribute("formmethod") || l.getAttribute("method") || defaultMethod, s = getFormEncType(t.getAttribute("formenctype")) || getFormEncType(l.getAttribute("enctype")) || defaultEncType, n = new FormData(l, t), !isFormDataSubmitterSupported()) {
|
|
1124
|
-
let { name: c, type: u, value:
|
|
1124
|
+
let { name: c, type: u, value: E } = t;
|
|
1125
1125
|
if (u === "image") {
|
|
1126
1126
|
let f = c ? `${c}.` : "";
|
|
1127
1127
|
n.append(`${f}x`, "0"), n.append(`${f}y`, "0");
|
|
1128
|
-
} else c && n.append(c,
|
|
1128
|
+
} else c && n.append(c, E);
|
|
1129
1129
|
}
|
|
1130
1130
|
} else {
|
|
1131
1131
|
if (isHtmlElement(t))
|
|
@@ -1190,7 +1190,7 @@ function getNewMatchesForLinks(t, e, r, i, s, n) {
|
|
|
1190
1190
|
return n === "assets" ? e.filter(
|
|
1191
1191
|
(o, c) => a(o, c) || l(o, c)
|
|
1192
1192
|
) : n === "data" ? e.filter((o, c) => {
|
|
1193
|
-
var
|
|
1193
|
+
var E;
|
|
1194
1194
|
let u = i.routes[o.route.id];
|
|
1195
1195
|
if (!u || !u.hasLoader)
|
|
1196
1196
|
return !1;
|
|
@@ -1202,7 +1202,7 @@ function getNewMatchesForLinks(t, e, r, i, s, n) {
|
|
|
1202
1202
|
s.pathname + s.search + s.hash,
|
|
1203
1203
|
window.origin
|
|
1204
1204
|
),
|
|
1205
|
-
currentParams: ((
|
|
1205
|
+
currentParams: ((E = r[0]) == null ? void 0 : E.params) || {},
|
|
1206
1206
|
nextUrl: new URL(t, window.origin),
|
|
1207
1207
|
nextParams: o.params,
|
|
1208
1208
|
defaultShouldRevalidate: !0
|
|
@@ -1274,7 +1274,7 @@ function useFrameworkContext() {
|
|
|
1274
1274
|
), t;
|
|
1275
1275
|
}
|
|
1276
1276
|
function usePrefetchBehavior(t, e) {
|
|
1277
|
-
let r = React2.useContext(FrameworkContext), [i, s] = React2.useState(!1), [n, a] = React2.useState(!1), { onFocus: l, onBlur: o, onMouseEnter: c, onMouseLeave: u, onTouchStart:
|
|
1277
|
+
let r = React2.useContext(FrameworkContext), [i, s] = React2.useState(!1), [n, a] = React2.useState(!1), { onFocus: l, onBlur: o, onMouseEnter: c, onMouseLeave: u, onTouchStart: E } = e, f = React2.useRef(null);
|
|
1278
1278
|
React2.useEffect(() => {
|
|
1279
1279
|
if (t === "render" && a(!0), t === "viewport") {
|
|
1280
1280
|
let x = (p) => {
|
|
@@ -1296,7 +1296,7 @@ function usePrefetchBehavior(t, e) {
|
|
|
1296
1296
|
};
|
|
1297
1297
|
}
|
|
1298
1298
|
}, [i]);
|
|
1299
|
-
let
|
|
1299
|
+
let b = () => {
|
|
1300
1300
|
s(!0);
|
|
1301
1301
|
}, d = () => {
|
|
1302
1302
|
s(!1), a(!1);
|
|
@@ -1305,11 +1305,11 @@ function usePrefetchBehavior(t, e) {
|
|
|
1305
1305
|
n,
|
|
1306
1306
|
f,
|
|
1307
1307
|
{
|
|
1308
|
-
onFocus: composeEventHandlers(l,
|
|
1308
|
+
onFocus: composeEventHandlers(l, b),
|
|
1309
1309
|
onBlur: composeEventHandlers(o, d),
|
|
1310
|
-
onMouseEnter: composeEventHandlers(c,
|
|
1310
|
+
onMouseEnter: composeEventHandlers(c, b),
|
|
1311
1311
|
onMouseLeave: composeEventHandlers(u, d),
|
|
1312
|
-
onTouchStart: composeEventHandlers(
|
|
1312
|
+
onTouchStart: composeEventHandlers(E, b)
|
|
1313
1313
|
}
|
|
1314
1314
|
] : [!1, f, {}];
|
|
1315
1315
|
}
|
|
@@ -1366,7 +1366,7 @@ function PrefetchPageLinksImpl({
|
|
|
1366
1366
|
"assets"
|
|
1367
1367
|
),
|
|
1368
1368
|
[t, e, o, s, i]
|
|
1369
|
-
),
|
|
1369
|
+
), E = React2.useMemo(() => {
|
|
1370
1370
|
if (t === i.pathname + i.search + i.hash)
|
|
1371
1371
|
return [];
|
|
1372
1372
|
let d = /* @__PURE__ */ new Set(), x = !1;
|
|
@@ -1393,8 +1393,8 @@ function PrefetchPageLinksImpl({
|
|
|
1393
1393
|
]), f = React2.useMemo(
|
|
1394
1394
|
() => getModuleLinkHrefs(u, s),
|
|
1395
1395
|
[u, s]
|
|
1396
|
-
),
|
|
1397
|
-
return /* @__PURE__ */ React2.createElement(React2.Fragment, null,
|
|
1396
|
+
), b = useKeyedPrefetchLinks(u);
|
|
1397
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, E.map((d) => /* @__PURE__ */ React2.createElement("link", { key: d, rel: "prefetch", as: "fetch", href: d, ...r })), f.map((d) => /* @__PURE__ */ React2.createElement("link", { key: d, rel: "modulepreload", href: d, ...r })), b.map(({ key: d, link: x }) => (
|
|
1398
1398
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1399
1399
|
// already with their own props
|
|
1400
1400
|
/* @__PURE__ */ React2.createElement("link", { key: d, ...x })
|
|
@@ -1424,9 +1424,9 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1424
1424
|
target: o,
|
|
1425
1425
|
to: c,
|
|
1426
1426
|
preventScrollReset: u,
|
|
1427
|
-
viewTransition:
|
|
1427
|
+
viewTransition: E,
|
|
1428
1428
|
...f
|
|
1429
|
-
},
|
|
1429
|
+
}, b) {
|
|
1430
1430
|
let { basename: d } = React2.useContext(NavigationContext), x = typeof c == "string" && ABSOLUTE_URL_REGEX2.test(c), S, p = !1;
|
|
1431
1431
|
if (typeof c == "string" && x && (S = c, isBrowser))
|
|
1432
1432
|
try {
|
|
@@ -1447,7 +1447,7 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1447
1447
|
target: o,
|
|
1448
1448
|
preventScrollReset: u,
|
|
1449
1449
|
relative: s,
|
|
1450
|
-
viewTransition:
|
|
1450
|
+
viewTransition: E
|
|
1451
1451
|
});
|
|
1452
1452
|
function _(I) {
|
|
1453
1453
|
e && e(I), I.defaultPrevented || P(I);
|
|
@@ -1461,7 +1461,7 @@ var ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link = React2.forward
|
|
|
1461
1461
|
...k,
|
|
1462
1462
|
href: S || m,
|
|
1463
1463
|
onClick: p || n ? e : _,
|
|
1464
|
-
ref: mergeRefs(
|
|
1464
|
+
ref: mergeRefs(b, g),
|
|
1465
1465
|
target: o,
|
|
1466
1466
|
"data-discover": !x && r === "render" ? "true" : void 0
|
|
1467
1467
|
}
|
|
@@ -1483,9 +1483,9 @@ var NavLink = React2.forwardRef(
|
|
|
1483
1483
|
children: o,
|
|
1484
1484
|
...c
|
|
1485
1485
|
}, u) {
|
|
1486
|
-
let
|
|
1486
|
+
let E = useResolvedPath(a, { relative: c.relative }), f = useLocation(), b = React2.useContext(DataRouterStateContext), { navigator: d, basename: x } = React2.useContext(NavigationContext), S = b != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1487
1487
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1488
|
-
useViewTransitionState(
|
|
1488
|
+
useViewTransitionState(E) && l === !0, p = d.encodeLocation ? d.encodeLocation(E).pathname : E.pathname, m = f.pathname, y = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
|
|
1489
1489
|
r || (m = m.toLowerCase(), y = y ? y.toLowerCase() : null, p = p.toLowerCase()), y && x && (y = stripBasename(y, x) || y);
|
|
1490
1490
|
const g = p !== "/" && p.endsWith("/") ? p.length - 1 : p.length;
|
|
1491
1491
|
let k = m === p || !s && m.startsWith(p) && m.charAt(g) === "/", P = y != null && (y === p || !s && y.startsWith(p) && y.charAt(p.length) === "/"), _ = {
|
|
@@ -1529,9 +1529,9 @@ var Form = React2.forwardRef(
|
|
|
1529
1529
|
onSubmit: o,
|
|
1530
1530
|
relative: c,
|
|
1531
1531
|
preventScrollReset: u,
|
|
1532
|
-
viewTransition:
|
|
1532
|
+
viewTransition: E,
|
|
1533
1533
|
...f
|
|
1534
|
-
},
|
|
1534
|
+
}, b) => {
|
|
1535
1535
|
let d = useSubmit(), x = useFormAction(l, { relative: c }), S = a.toLowerCase() === "get" ? "get" : "post", p = typeof l == "string" && ABSOLUTE_URL_REGEX2.test(l), m = (y) => {
|
|
1536
1536
|
if (o && o(y), y.defaultPrevented) return;
|
|
1537
1537
|
y.preventDefault();
|
|
@@ -1544,13 +1544,13 @@ var Form = React2.forwardRef(
|
|
|
1544
1544
|
state: n,
|
|
1545
1545
|
relative: c,
|
|
1546
1546
|
preventScrollReset: u,
|
|
1547
|
-
viewTransition:
|
|
1547
|
+
viewTransition: E
|
|
1548
1548
|
});
|
|
1549
1549
|
};
|
|
1550
1550
|
return /* @__PURE__ */ React2.createElement(
|
|
1551
1551
|
"form",
|
|
1552
1552
|
{
|
|
1553
|
-
ref:
|
|
1553
|
+
ref: b,
|
|
1554
1554
|
method: S,
|
|
1555
1555
|
action: x,
|
|
1556
1556
|
onSubmit: i ? o : m,
|
|
@@ -1581,9 +1581,9 @@ function useLinkClickHandler(t, {
|
|
|
1581
1581
|
(u) => {
|
|
1582
1582
|
if (shouldProcessLinkClick(u, e)) {
|
|
1583
1583
|
u.preventDefault();
|
|
1584
|
-
let
|
|
1584
|
+
let E = r !== void 0 ? r : createPath(o) === createPath(c);
|
|
1585
1585
|
l(t, {
|
|
1586
|
-
replace:
|
|
1586
|
+
replace: E,
|
|
1587
1587
|
state: i,
|
|
1588
1588
|
preventScrollReset: s,
|
|
1589
1589
|
relative: n,
|
|
@@ -1652,7 +1652,7 @@ function useFormAction(t, { relative: e } = {}) {
|
|
|
1652
1652
|
n.search = a.search;
|
|
1653
1653
|
let l = new URLSearchParams(n.search), o = l.getAll("index");
|
|
1654
1654
|
if (o.some((u) => u === "")) {
|
|
1655
|
-
l.delete("index"), o.filter((
|
|
1655
|
+
l.delete("index"), o.filter((E) => E).forEach((E) => l.append("index", E));
|
|
1656
1656
|
let u = l.toString();
|
|
1657
1657
|
n.search = u ? `?${u}` : "";
|
|
1658
1658
|
}
|
|
@@ -1678,25 +1678,25 @@ function useViewTransitionState(t, e = {}) {
|
|
|
1678
1678
|
...NO_BODY_STATUS_CODES
|
|
1679
1679
|
];
|
|
1680
1680
|
const Breadcrumbs = ({ items: t, maxVisible: e = 4, onItemClick: r }) => {
|
|
1681
|
-
const [i, s] = useState(!1), n = () => s((f) => !f), a = (f,
|
|
1682
|
-
f && f(),
|
|
1683
|
-
}, l = t.length > e, o = t[0], c = t[t.length - 1], u = t.slice(1, t.length - 1),
|
|
1681
|
+
const [i, s] = useState(!1), n = () => s((f) => !f), a = (f, b) => {
|
|
1682
|
+
f && f(), b !== void 0 && (r == null || r(b)), s(!1);
|
|
1683
|
+
}, l = t.length > e, o = t[0], c = t[t.length - 1], u = t.slice(1, t.length - 1), E = l ? [] : u;
|
|
1684
1684
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: "breadcrumbs", children: [
|
|
1685
1685
|
o && renderLink(o, !1, 0, r),
|
|
1686
1686
|
l && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "breadcrumbs-menu", children: [
|
|
1687
1687
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: n, className: "breadcrumbs-collapse-button", children: "..." }),
|
|
1688
|
-
i && /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "breadcrumbs-dropdown", children: u.map((f,
|
|
1688
|
+
i && /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "breadcrumbs-dropdown", children: u.map((f, b) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1689
1689
|
Link,
|
|
1690
1690
|
{
|
|
1691
1691
|
to: f.href || "#",
|
|
1692
|
-
onClick: () => a(f.onClick,
|
|
1692
|
+
onClick: () => a(f.onClick, b + 1),
|
|
1693
1693
|
className: "breadcrumbs-item",
|
|
1694
1694
|
children: f.label
|
|
1695
1695
|
}
|
|
1696
|
-
) },
|
|
1696
|
+
) }, b)) })
|
|
1697
1697
|
] }),
|
|
1698
|
-
!l &&
|
|
1699
|
-
(f,
|
|
1698
|
+
!l && E.map(
|
|
1699
|
+
(f, b) => renderLink(f, !1, b + 1, r)
|
|
1700
1700
|
),
|
|
1701
1701
|
c && t.length > 1 && renderLink(c, !0, t.length - 1, r)
|
|
1702
1702
|
] });
|
|
@@ -1769,7 +1769,7 @@ const Breadcrumbs = ({ items: t, maxVisible: e = 4, onItemClick: r }) => {
|
|
|
1769
1769
|
style: l = {},
|
|
1770
1770
|
size: o = "medium"
|
|
1771
1771
|
}) => {
|
|
1772
|
-
const [c, u] = useState([]), [
|
|
1772
|
+
const [c, u] = useState([]), [E, f] = useState(!1), [b, d] = useState(!1), [x, S] = useState(!1), p = useRef(null);
|
|
1773
1773
|
useEffect(() => {
|
|
1774
1774
|
if (i.trim() === "") {
|
|
1775
1775
|
u([]);
|
|
@@ -1825,7 +1825,7 @@ const Breadcrumbs = ({ items: t, maxVisible: e = 4, onItemClick: r }) => {
|
|
|
1825
1825
|
]
|
|
1826
1826
|
}
|
|
1827
1827
|
),
|
|
1828
|
-
|
|
1828
|
+
E && c.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "suggestions-list", children: c.map((g, k) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1829
1829
|
"li",
|
|
1830
1830
|
{
|
|
1831
1831
|
className: "suggestion-item",
|
|
@@ -1834,7 +1834,7 @@ const Breadcrumbs = ({ items: t, maxVisible: e = 4, onItemClick: r }) => {
|
|
|
1834
1834
|
},
|
|
1835
1835
|
k
|
|
1836
1836
|
)) }),
|
|
1837
|
-
|
|
1837
|
+
b && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "loading-text", children: "Loading..." })
|
|
1838
1838
|
] });
|
|
1839
1839
|
};
|
|
1840
1840
|
function bind(t, e) {
|
|
@@ -2164,29 +2164,29 @@ function toFormData$1(t, e, r) {
|
|
|
2164
2164
|
}
|
|
2165
2165
|
return isVisitable(d) ? !0 : (e.append(renderKey(S, x, n), c(d)), !1);
|
|
2166
2166
|
}
|
|
2167
|
-
const
|
|
2167
|
+
const E = [], f = Object.assign(predicates, {
|
|
2168
2168
|
defaultVisitor: u,
|
|
2169
2169
|
convertValue: c,
|
|
2170
2170
|
isVisitable
|
|
2171
2171
|
});
|
|
2172
|
-
function
|
|
2172
|
+
function b(d, x) {
|
|
2173
2173
|
if (!utils$1.isUndefined(d)) {
|
|
2174
|
-
if (
|
|
2174
|
+
if (E.indexOf(d) !== -1)
|
|
2175
2175
|
throw Error("Circular reference detected in " + x.join("."));
|
|
2176
|
-
|
|
2176
|
+
E.push(d), utils$1.forEach(d, function(p, m) {
|
|
2177
2177
|
(!(utils$1.isUndefined(p) || p === null) && s.call(
|
|
2178
2178
|
e,
|
|
2179
2179
|
p,
|
|
2180
2180
|
utils$1.isString(m) ? m.trim() : m,
|
|
2181
2181
|
x,
|
|
2182
2182
|
f
|
|
2183
|
-
)) === !0 &&
|
|
2184
|
-
}),
|
|
2183
|
+
)) === !0 && b(p, x ? x.concat(m) : [m]);
|
|
2184
|
+
}), E.pop();
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
if (!utils$1.isObject(t))
|
|
2188
2188
|
throw new TypeError("data must be an object");
|
|
2189
|
-
return
|
|
2189
|
+
return b(t), e;
|
|
2190
2190
|
}
|
|
2191
2191
|
function encode$1(t) {
|
|
2192
2192
|
const e = {
|
|
@@ -2500,8 +2500,8 @@ let AxiosHeaders$1 = class {
|
|
|
2500
2500
|
const u = normalizeHeader(o);
|
|
2501
2501
|
if (!u)
|
|
2502
2502
|
throw new Error("header name must be a non-empty string");
|
|
2503
|
-
const
|
|
2504
|
-
(!
|
|
2503
|
+
const E = utils$1.findKey(s, u);
|
|
2504
|
+
(!E || s[E] === void 0 || c === !0 || c === void 0 && s[E] !== !1) && (s[E || o] = normalizeValue(l));
|
|
2505
2505
|
}
|
|
2506
2506
|
const a = (l, o) => utils$1.forEach(l, (c, u) => n(c, u, o));
|
|
2507
2507
|
if (utils$1.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -2656,13 +2656,13 @@ function speedometer(t, e) {
|
|
|
2656
2656
|
return e = e !== void 0 ? e : 1e3, function(o) {
|
|
2657
2657
|
const c = Date.now(), u = i[n];
|
|
2658
2658
|
a || (a = c), r[s] = o, i[s] = c;
|
|
2659
|
-
let
|
|
2660
|
-
for (;
|
|
2661
|
-
f += r[
|
|
2659
|
+
let E = n, f = 0;
|
|
2660
|
+
for (; E !== s; )
|
|
2661
|
+
f += r[E++], E = E % t;
|
|
2662
2662
|
if (s = (s + 1) % t, s === n && (n = (n + 1) % t), c - a < e)
|
|
2663
2663
|
return;
|
|
2664
|
-
const
|
|
2665
|
-
return
|
|
2664
|
+
const b = u && c - u;
|
|
2665
|
+
return b ? Math.round(f * 1e3 / b) : void 0;
|
|
2666
2666
|
};
|
|
2667
2667
|
}
|
|
2668
2668
|
function throttle(t, e) {
|
|
@@ -2671,10 +2671,10 @@ function throttle(t, e) {
|
|
|
2671
2671
|
r = u, s = null, n && (clearTimeout(n), n = null), t.apply(null, c);
|
|
2672
2672
|
};
|
|
2673
2673
|
return [(...c) => {
|
|
2674
|
-
const u = Date.now(),
|
|
2675
|
-
|
|
2674
|
+
const u = Date.now(), E = u - r;
|
|
2675
|
+
E >= i ? a(c, u) : (s = c, n || (n = setTimeout(() => {
|
|
2676
2676
|
n = null, a(s);
|
|
2677
|
-
}, i -
|
|
2677
|
+
}, i - E)));
|
|
2678
2678
|
}, () => s && a(s)];
|
|
2679
2679
|
}
|
|
2680
2680
|
const progressEventReducer = (t, e, r = 3) => {
|
|
@@ -2683,7 +2683,7 @@ const progressEventReducer = (t, e, r = 3) => {
|
|
|
2683
2683
|
return throttle((n) => {
|
|
2684
2684
|
const a = n.loaded, l = n.lengthComputable ? n.total : void 0, o = a - i, c = s(o), u = a <= l;
|
|
2685
2685
|
i = a;
|
|
2686
|
-
const
|
|
2686
|
+
const E = {
|
|
2687
2687
|
loaded: a,
|
|
2688
2688
|
total: l,
|
|
2689
2689
|
progress: l ? a / l : void 0,
|
|
@@ -2694,7 +2694,7 @@ const progressEventReducer = (t, e, r = 3) => {
|
|
|
2694
2694
|
lengthComputable: l != null,
|
|
2695
2695
|
[e ? "download" : "upload"]: !0
|
|
2696
2696
|
};
|
|
2697
|
-
t(
|
|
2697
|
+
t(E);
|
|
2698
2698
|
}, r);
|
|
2699
2699
|
}, progressEventDecorator = (t, e) => {
|
|
2700
2700
|
const r = t != null;
|
|
@@ -2747,14 +2747,14 @@ const headersToObject = (t) => t instanceof AxiosHeaders$1 ? { ...t } : t;
|
|
|
2747
2747
|
function mergeConfig$1(t, e) {
|
|
2748
2748
|
e = e || {};
|
|
2749
2749
|
const r = {};
|
|
2750
|
-
function i(c, u,
|
|
2750
|
+
function i(c, u, E, f) {
|
|
2751
2751
|
return utils$1.isPlainObject(c) && utils$1.isPlainObject(u) ? utils$1.merge.call({ caseless: f }, c, u) : utils$1.isPlainObject(u) ? utils$1.merge({}, u) : utils$1.isArray(u) ? u.slice() : u;
|
|
2752
2752
|
}
|
|
2753
|
-
function s(c, u,
|
|
2753
|
+
function s(c, u, E, f) {
|
|
2754
2754
|
if (utils$1.isUndefined(u)) {
|
|
2755
2755
|
if (!utils$1.isUndefined(c))
|
|
2756
|
-
return i(void 0, c,
|
|
2757
|
-
} else return i(c, u,
|
|
2756
|
+
return i(void 0, c, E, f);
|
|
2757
|
+
} else return i(c, u, E, f);
|
|
2758
2758
|
}
|
|
2759
2759
|
function n(c, u) {
|
|
2760
2760
|
if (!utils$1.isUndefined(u))
|
|
@@ -2766,10 +2766,10 @@ function mergeConfig$1(t, e) {
|
|
|
2766
2766
|
return i(void 0, c);
|
|
2767
2767
|
} else return i(void 0, u);
|
|
2768
2768
|
}
|
|
2769
|
-
function l(c, u,
|
|
2770
|
-
if (
|
|
2769
|
+
function l(c, u, E) {
|
|
2770
|
+
if (E in e)
|
|
2771
2771
|
return i(c, u);
|
|
2772
|
-
if (
|
|
2772
|
+
if (E in t)
|
|
2773
2773
|
return i(void 0, c);
|
|
2774
2774
|
}
|
|
2775
2775
|
const o = {
|
|
@@ -2801,11 +2801,11 @@ function mergeConfig$1(t, e) {
|
|
|
2801
2801
|
socketPath: a,
|
|
2802
2802
|
responseEncoding: a,
|
|
2803
2803
|
validateStatus: l,
|
|
2804
|
-
headers: (c, u,
|
|
2804
|
+
headers: (c, u, E) => s(headersToObject(c), headersToObject(u), E, !0)
|
|
2805
2805
|
};
|
|
2806
2806
|
return utils$1.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
|
|
2807
|
-
const
|
|
2808
|
-
utils$1.isUndefined(f) &&
|
|
2807
|
+
const E = o[u] || s, f = E(t[u], e[u], u);
|
|
2808
|
+
utils$1.isUndefined(f) && E !== l || (r[u] = f);
|
|
2809
2809
|
}), r;
|
|
2810
2810
|
}
|
|
2811
2811
|
const resolveConfig = (t) => {
|
|
@@ -2820,7 +2820,7 @@ const resolveConfig = (t) => {
|
|
|
2820
2820
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv)
|
|
2821
2821
|
a.setContentType(void 0);
|
|
2822
2822
|
else if ((o = a.getContentType()) !== !1) {
|
|
2823
|
-
const [c, ...u] = o ? o.split(";").map((
|
|
2823
|
+
const [c, ...u] = o ? o.split(";").map((E) => E.trim()).filter(Boolean) : [];
|
|
2824
2824
|
a.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
2825
2825
|
}
|
|
2826
2826
|
}
|
|
@@ -2834,9 +2834,9 @@ const resolveConfig = (t) => {
|
|
|
2834
2834
|
const s = resolveConfig(t);
|
|
2835
2835
|
let n = s.data;
|
|
2836
2836
|
const a = AxiosHeaders$1.from(s.headers).normalize();
|
|
2837
|
-
let { responseType: l, onUploadProgress: o, onDownloadProgress: c } = s, u,
|
|
2837
|
+
let { responseType: l, onUploadProgress: o, onDownloadProgress: c } = s, u, E, f, b, d;
|
|
2838
2838
|
function x() {
|
|
2839
|
-
|
|
2839
|
+
b && b(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
2840
2840
|
}
|
|
2841
2841
|
let S = new XMLHttpRequest();
|
|
2842
2842
|
S.open(s.method.toUpperCase(), s.url, !0), S.timeout = s.timeout;
|
|
@@ -2876,7 +2876,7 @@ const resolveConfig = (t) => {
|
|
|
2876
2876
|
)), S = null;
|
|
2877
2877
|
}, n === void 0 && a.setContentType(null), "setRequestHeader" in S && utils$1.forEach(a.toJSON(), function(g, k) {
|
|
2878
2878
|
S.setRequestHeader(k, g);
|
|
2879
|
-
}), utils$1.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), l && l !== "json" && (S.responseType = s.responseType), c && ([f, d] = progressEventReducer(c, !0), S.addEventListener("progress", f)), o && S.upload && ([
|
|
2879
|
+
}), utils$1.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), l && l !== "json" && (S.responseType = s.responseType), c && ([f, d] = progressEventReducer(c, !0), S.addEventListener("progress", f)), o && S.upload && ([E, b] = progressEventReducer(o), S.upload.addEventListener("progress", E), S.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (u = (y) => {
|
|
2880
2880
|
S && (i(!y || y.type ? new CanceledError$1(null, t, S) : y), S.abort(), S = null);
|
|
2881
2881
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
2882
2882
|
const m = parseProtocol(s.url);
|
|
@@ -2950,9 +2950,9 @@ const resolveConfig = (t) => {
|
|
|
2950
2950
|
l(), o.close();
|
|
2951
2951
|
return;
|
|
2952
2952
|
}
|
|
2953
|
-
let
|
|
2953
|
+
let E = u.byteLength;
|
|
2954
2954
|
if (r) {
|
|
2955
|
-
let f = n +=
|
|
2955
|
+
let f = n += E;
|
|
2956
2956
|
r(f);
|
|
2957
2957
|
}
|
|
2958
2958
|
o.enqueue(new Uint8Array(u));
|
|
@@ -3021,13 +3021,13 @@ const getBodyLength = async (t) => {
|
|
|
3021
3021
|
onUploadProgress: o,
|
|
3022
3022
|
responseType: c,
|
|
3023
3023
|
headers: u,
|
|
3024
|
-
withCredentials:
|
|
3024
|
+
withCredentials: E = "same-origin",
|
|
3025
3025
|
fetchOptions: f
|
|
3026
3026
|
} = resolveConfig(t);
|
|
3027
3027
|
c = c ? (c + "").toLowerCase() : "text";
|
|
3028
|
-
let
|
|
3029
|
-
const x =
|
|
3030
|
-
|
|
3028
|
+
let b = composeSignals([s, n && n.toAbortSignal()], a), d;
|
|
3029
|
+
const x = b && b.unsubscribe && (() => {
|
|
3030
|
+
b.unsubscribe();
|
|
3031
3031
|
});
|
|
3032
3032
|
let S;
|
|
3033
3033
|
try {
|
|
@@ -3045,16 +3045,16 @@ const getBodyLength = async (t) => {
|
|
|
3045
3045
|
i = trackStream(k.body, DEFAULT_CHUNK_SIZE, _, j);
|
|
3046
3046
|
}
|
|
3047
3047
|
}
|
|
3048
|
-
utils$1.isString(
|
|
3048
|
+
utils$1.isString(E) || (E = E ? "include" : "omit");
|
|
3049
3049
|
const p = "credentials" in Request.prototype;
|
|
3050
3050
|
d = new Request(e, {
|
|
3051
3051
|
...f,
|
|
3052
|
-
signal:
|
|
3052
|
+
signal: b,
|
|
3053
3053
|
method: r.toUpperCase(),
|
|
3054
3054
|
headers: u.normalize().toJSON(),
|
|
3055
3055
|
body: i,
|
|
3056
3056
|
duplex: "half",
|
|
3057
|
-
credentials: p ?
|
|
3057
|
+
credentials: p ? E : void 0
|
|
3058
3058
|
});
|
|
3059
3059
|
let m = await fetch(d);
|
|
3060
3060
|
const y = supportsResponseStream && (c === "stream" || c === "response");
|
|
@@ -3277,31 +3277,31 @@ let Axios$1 = class {
|
|
|
3277
3277
|
this.interceptors.response.forEach(function(x) {
|
|
3278
3278
|
c.push(x.fulfilled, x.rejected);
|
|
3279
3279
|
});
|
|
3280
|
-
let u,
|
|
3280
|
+
let u, E = 0, f;
|
|
3281
3281
|
if (!o) {
|
|
3282
3282
|
const d = [dispatchRequest.bind(this), void 0];
|
|
3283
|
-
for (d.unshift.apply(d, l), d.push.apply(d, c), f = d.length, u = Promise.resolve(r);
|
|
3284
|
-
u = u.then(d[
|
|
3283
|
+
for (d.unshift.apply(d, l), d.push.apply(d, c), f = d.length, u = Promise.resolve(r); E < f; )
|
|
3284
|
+
u = u.then(d[E++], d[E++]);
|
|
3285
3285
|
return u;
|
|
3286
3286
|
}
|
|
3287
3287
|
f = l.length;
|
|
3288
|
-
let
|
|
3289
|
-
for (
|
|
3290
|
-
const d = l[
|
|
3288
|
+
let b = r;
|
|
3289
|
+
for (E = 0; E < f; ) {
|
|
3290
|
+
const d = l[E++], x = l[E++];
|
|
3291
3291
|
try {
|
|
3292
|
-
|
|
3292
|
+
b = d(b);
|
|
3293
3293
|
} catch (S) {
|
|
3294
3294
|
x.call(this, S);
|
|
3295
3295
|
break;
|
|
3296
3296
|
}
|
|
3297
3297
|
}
|
|
3298
3298
|
try {
|
|
3299
|
-
u = dispatchRequest.call(this,
|
|
3299
|
+
u = dispatchRequest.call(this, b);
|
|
3300
3300
|
} catch (d) {
|
|
3301
3301
|
return Promise.reject(d);
|
|
3302
3302
|
}
|
|
3303
|
-
for (
|
|
3304
|
-
u = u.then(c[
|
|
3303
|
+
for (E = 0, f = c.length; E < f; )
|
|
3304
|
+
u = u.then(c[E++], c[E++]);
|
|
3305
3305
|
return u;
|
|
3306
3306
|
}
|
|
3307
3307
|
getUri(e) {
|
|
@@ -3533,15 +3533,15 @@ const {
|
|
|
3533
3533
|
if (f)
|
|
3534
3534
|
if (l) {
|
|
3535
3535
|
f.style.display = "block";
|
|
3536
|
-
const
|
|
3537
|
-
u({ maxHeight:
|
|
3536
|
+
const b = f.scrollHeight;
|
|
3537
|
+
u({ maxHeight: b });
|
|
3538
3538
|
const d = setTimeout(() => {
|
|
3539
3539
|
u({ maxHeight: "none" });
|
|
3540
3540
|
}, 300);
|
|
3541
3541
|
return () => clearTimeout(d);
|
|
3542
3542
|
} else {
|
|
3543
|
-
const
|
|
3544
|
-
u({ maxHeight:
|
|
3543
|
+
const b = f.scrollHeight;
|
|
3544
|
+
u({ maxHeight: b });
|
|
3545
3545
|
const d = setTimeout(() => {
|
|
3546
3546
|
u({ maxHeight: 0 });
|
|
3547
3547
|
}, 20), x = setTimeout(() => {
|
|
@@ -3552,7 +3552,7 @@ const {
|
|
|
3552
3552
|
};
|
|
3553
3553
|
}
|
|
3554
3554
|
}, [l]);
|
|
3555
|
-
const
|
|
3555
|
+
const E = () => {
|
|
3556
3556
|
i((f) => ({
|
|
3557
3557
|
...f,
|
|
3558
3558
|
[a]: !f[a]
|
|
@@ -3564,7 +3564,7 @@ const {
|
|
|
3564
3564
|
{
|
|
3565
3565
|
className: "drawer-item-header",
|
|
3566
3566
|
style: { paddingLeft: `${e * 20}px` },
|
|
3567
|
-
onClick: () => n ?
|
|
3567
|
+
onClick: () => n ? E() : s(t.title),
|
|
3568
3568
|
children: [
|
|
3569
3569
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "drawer-icon", children: n ? l ? "−" : "+" : "" }),
|
|
3570
3570
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "drawer-title", children: t.title })
|
|
@@ -3591,14 +3591,14 @@ const {
|
|
|
3591
3591
|
)
|
|
3592
3592
|
] });
|
|
3593
3593
|
}, CEDrawer = ({ jsonUrl: t, isOpen: e, onClose: r }) => {
|
|
3594
|
-
const i = useRef(null), [s, n] = useState(), [a, l] = useState([]), [o, c] = useState({}), [u,
|
|
3594
|
+
const i = useRef(null), [s, n] = useState(), [a, l] = useState([]), [o, c] = useState({}), [u, E] = useState(!0), [f, b] = useState(null);
|
|
3595
3595
|
useEffect(() => {
|
|
3596
3596
|
(async () => {
|
|
3597
3597
|
try {
|
|
3598
3598
|
const S = await axios.get(t);
|
|
3599
|
-
n(S.data.headerItem), l(S.data.menuItems || []),
|
|
3599
|
+
n(S.data.headerItem), l(S.data.menuItems || []), E(!1);
|
|
3600
3600
|
} catch {
|
|
3601
|
-
|
|
3601
|
+
b("Failed to load drawer data."), E(!1);
|
|
3602
3602
|
}
|
|
3603
3603
|
})();
|
|
3604
3604
|
}, [t]);
|
|
@@ -3698,7 +3698,7 @@ const {
|
|
|
3698
3698
|
}, []);
|
|
3699
3699
|
const [c, u] = useState(
|
|
3700
3700
|
i.map(() => !1)
|
|
3701
|
-
),
|
|
3701
|
+
), E = (g, k) => {
|
|
3702
3702
|
const P = [...l];
|
|
3703
3703
|
P[n][g] = k, o(P);
|
|
3704
3704
|
const _ = [...c];
|
|
@@ -3706,7 +3706,7 @@ const {
|
|
|
3706
3706
|
}, f = (g) => i[g].fields.every((P) => {
|
|
3707
3707
|
var _;
|
|
3708
3708
|
return P.required ? ((_ = l[g][P.name]) == null ? void 0 : _.trim()) !== "" : !0;
|
|
3709
|
-
}),
|
|
3709
|
+
}), b = () => {
|
|
3710
3710
|
const g = [...c];
|
|
3711
3711
|
g[n] = !0, u(g), a((k) => k < i.length - 1 ? k + 1 : k);
|
|
3712
3712
|
}, d = () => {
|
|
@@ -3718,7 +3718,7 @@ const {
|
|
|
3718
3718
|
{
|
|
3719
3719
|
fields: i[n].fields,
|
|
3720
3720
|
formData: l[n],
|
|
3721
|
-
onInputChange:
|
|
3721
|
+
onInputChange: E
|
|
3722
3722
|
}
|
|
3723
3723
|
) }), m = (g) => i.map((k, P) => {
|
|
3724
3724
|
const _ = f(P), j = P === n, I = c[P] && !_, $ = _ && c[P];
|
|
@@ -3735,7 +3735,7 @@ const {
|
|
|
3735
3735
|
] }, P);
|
|
3736
3736
|
}), y = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "step-actions", children: [
|
|
3737
3737
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: d, disabled: n === 0, children: "Back" }),
|
|
3738
|
-
n < i.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick:
|
|
3738
|
+
n < i.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: b, children: "Next" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: S, disabled: !x(), children: "Submit" })
|
|
3739
3739
|
] });
|
|
3740
3740
|
return !i || i.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "No steps configured" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `stepper-container ${e}`, children: e === "vertical" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
3741
3741
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "vertical-left-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `stepper-header ${e}`, children: m(!0) }) }),
|
|
@@ -4079,29 +4079,29 @@ function requireLottie() {
|
|
|
4079
4079
|
var t = 1, e = [], r, i, s = {
|
|
4080
4080
|
onmessage: function() {
|
|
4081
4081
|
},
|
|
4082
|
-
postMessage: function(
|
|
4082
|
+
postMessage: function(b) {
|
|
4083
4083
|
r({
|
|
4084
|
-
data:
|
|
4084
|
+
data: b
|
|
4085
4085
|
});
|
|
4086
4086
|
}
|
|
4087
4087
|
}, n = {
|
|
4088
|
-
postMessage: function(
|
|
4088
|
+
postMessage: function(b) {
|
|
4089
4089
|
s.onmessage({
|
|
4090
|
-
data:
|
|
4090
|
+
data: b
|
|
4091
4091
|
});
|
|
4092
4092
|
}
|
|
4093
4093
|
};
|
|
4094
4094
|
function a(f) {
|
|
4095
4095
|
if (window.Worker && window.Blob && getWebWorker()) {
|
|
4096
|
-
var
|
|
4096
|
+
var b = new Blob(["var _workerSelf = self; self.onmessage = ", f.toString()], {
|
|
4097
4097
|
type: "text/javascript"
|
|
4098
|
-
}), d = URL.createObjectURL(
|
|
4098
|
+
}), d = URL.createObjectURL(b);
|
|
4099
4099
|
return new Worker(d);
|
|
4100
4100
|
}
|
|
4101
4101
|
return r = f, s;
|
|
4102
4102
|
}
|
|
4103
4103
|
function l() {
|
|
4104
|
-
i || (i = a(function(
|
|
4104
|
+
i || (i = a(function(b) {
|
|
4105
4105
|
function d() {
|
|
4106
4106
|
function S(L, A) {
|
|
4107
4107
|
var M, C, R = L.length, F, T, D, V;
|
|
@@ -4375,54 +4375,54 @@ function requireLottie() {
|
|
|
4375
4375
|
return {
|
|
4376
4376
|
load: p
|
|
4377
4377
|
};
|
|
4378
|
-
}()),
|
|
4379
|
-
n.assetLoader.load(
|
|
4378
|
+
}()), b.data.type === "loadAnimation")
|
|
4379
|
+
n.assetLoader.load(b.data.path, b.data.fullPath, function(S) {
|
|
4380
4380
|
n.dataManager.completeData(S), n.postMessage({
|
|
4381
|
-
id:
|
|
4381
|
+
id: b.data.id,
|
|
4382
4382
|
payload: S,
|
|
4383
4383
|
status: "success"
|
|
4384
4384
|
});
|
|
4385
4385
|
}, function() {
|
|
4386
4386
|
n.postMessage({
|
|
4387
|
-
id:
|
|
4387
|
+
id: b.data.id,
|
|
4388
4388
|
status: "error"
|
|
4389
4389
|
});
|
|
4390
4390
|
});
|
|
4391
|
-
else if (
|
|
4392
|
-
var x =
|
|
4391
|
+
else if (b.data.type === "complete") {
|
|
4392
|
+
var x = b.data.animation;
|
|
4393
4393
|
n.dataManager.completeData(x), n.postMessage({
|
|
4394
|
-
id:
|
|
4394
|
+
id: b.data.id,
|
|
4395
4395
|
payload: x,
|
|
4396
4396
|
status: "success"
|
|
4397
4397
|
});
|
|
4398
|
-
} else
|
|
4398
|
+
} else b.data.type === "loadData" && n.assetLoader.load(b.data.path, b.data.fullPath, function(S) {
|
|
4399
4399
|
n.postMessage({
|
|
4400
|
-
id:
|
|
4400
|
+
id: b.data.id,
|
|
4401
4401
|
payload: S,
|
|
4402
4402
|
status: "success"
|
|
4403
4403
|
});
|
|
4404
4404
|
}, function() {
|
|
4405
4405
|
n.postMessage({
|
|
4406
|
-
id:
|
|
4406
|
+
id: b.data.id,
|
|
4407
4407
|
status: "error"
|
|
4408
4408
|
});
|
|
4409
4409
|
});
|
|
4410
4410
|
}), i.onmessage = function(f) {
|
|
4411
|
-
var
|
|
4412
|
-
e[d] = null,
|
|
4411
|
+
var b = f.data, d = b.id, x = e[d];
|
|
4412
|
+
e[d] = null, b.status === "success" ? x.onComplete(b.payload) : x.onError && x.onError();
|
|
4413
4413
|
});
|
|
4414
4414
|
}
|
|
4415
|
-
function o(f,
|
|
4415
|
+
function o(f, b) {
|
|
4416
4416
|
t += 1;
|
|
4417
4417
|
var d = "processId_" + t;
|
|
4418
4418
|
return e[d] = {
|
|
4419
4419
|
onComplete: f,
|
|
4420
|
-
onError:
|
|
4420
|
+
onError: b
|
|
4421
4421
|
}, d;
|
|
4422
4422
|
}
|
|
4423
|
-
function c(f,
|
|
4423
|
+
function c(f, b, d) {
|
|
4424
4424
|
l();
|
|
4425
|
-
var x = o(
|
|
4425
|
+
var x = o(b, d);
|
|
4426
4426
|
i.postMessage({
|
|
4427
4427
|
type: "loadAnimation",
|
|
4428
4428
|
path: f,
|
|
@@ -4430,9 +4430,9 @@ function requireLottie() {
|
|
|
4430
4430
|
id: x
|
|
4431
4431
|
});
|
|
4432
4432
|
}
|
|
4433
|
-
function u(f,
|
|
4433
|
+
function u(f, b, d) {
|
|
4434
4434
|
l();
|
|
4435
|
-
var x = o(
|
|
4435
|
+
var x = o(b, d);
|
|
4436
4436
|
i.postMessage({
|
|
4437
4437
|
type: "loadData",
|
|
4438
4438
|
path: f,
|
|
@@ -4440,9 +4440,9 @@ function requireLottie() {
|
|
|
4440
4440
|
id: x
|
|
4441
4441
|
});
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4443
|
+
function E(f, b, d) {
|
|
4444
4444
|
l();
|
|
4445
|
-
var x = o(
|
|
4445
|
+
var x = o(b, d);
|
|
4446
4446
|
i.postMessage({
|
|
4447
4447
|
type: "complete",
|
|
4448
4448
|
animation: f,
|
|
@@ -4452,7 +4452,7 @@ function requireLottie() {
|
|
|
4452
4452
|
return {
|
|
4453
4453
|
loadAnimation: c,
|
|
4454
4454
|
loadData: u,
|
|
4455
|
-
completeAnimation:
|
|
4455
|
+
completeAnimation: E
|
|
4456
4456
|
};
|
|
4457
4457
|
}(), ImagePreloader = function() {
|
|
4458
4458
|
var t = function() {
|
|
@@ -4528,7 +4528,7 @@ function requireLottie() {
|
|
|
4528
4528
|
function u(p) {
|
|
4529
4529
|
this.assetsPath = p || "";
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function E(p) {
|
|
4532
4532
|
for (var m = 0, y = this.images.length; m < y; ) {
|
|
4533
4533
|
if (this.images[m].assetData === p)
|
|
4534
4534
|
return this.images[m].img;
|
|
@@ -4539,7 +4539,7 @@ function requireLottie() {
|
|
|
4539
4539
|
function f() {
|
|
4540
4540
|
this.imagesLoadedCb = null, this.images.length = 0;
|
|
4541
4541
|
}
|
|
4542
|
-
function
|
|
4542
|
+
function b() {
|
|
4543
4543
|
return this.totalImages === this.loadedAssets;
|
|
4544
4544
|
}
|
|
4545
4545
|
function d() {
|
|
@@ -4555,10 +4555,10 @@ function requireLottie() {
|
|
|
4555
4555
|
loadAssets: o,
|
|
4556
4556
|
setAssetsPath: u,
|
|
4557
4557
|
setPath: c,
|
|
4558
|
-
loadedImages:
|
|
4558
|
+
loadedImages: b,
|
|
4559
4559
|
loadedFootages: d,
|
|
4560
4560
|
destroy: f,
|
|
4561
|
-
getAsset:
|
|
4561
|
+
getAsset: E,
|
|
4562
4562
|
createImgData: a,
|
|
4563
4563
|
createImageData: n,
|
|
4564
4564
|
imageLoaded: e,
|
|
@@ -4892,7 +4892,7 @@ function requireLottie() {
|
|
|
4892
4892
|
var t = {}, e = [], r = 0, i = 0, s = 0, n = !0, a = !1;
|
|
4893
4893
|
function l(A) {
|
|
4894
4894
|
for (var M = 0, C = A.target; M < i; )
|
|
4895
|
-
e[M].animation === C && (e.splice(M, 1), M -= 1, i -= 1, C.isPaused ||
|
|
4895
|
+
e[M].animation === C && (e.splice(M, 1), M -= 1, i -= 1, C.isPaused || E()), M += 1;
|
|
4896
4896
|
}
|
|
4897
4897
|
function o(A, M) {
|
|
4898
4898
|
if (!A)
|
|
@@ -4914,16 +4914,16 @@ function requireLottie() {
|
|
|
4914
4914
|
function u() {
|
|
4915
4915
|
s += 1, $();
|
|
4916
4916
|
}
|
|
4917
|
-
function
|
|
4917
|
+
function E() {
|
|
4918
4918
|
s -= 1;
|
|
4919
4919
|
}
|
|
4920
4920
|
function f(A, M) {
|
|
4921
|
-
A.addEventListener("destroy", l), A.addEventListener("_active", u), A.addEventListener("_idle",
|
|
4921
|
+
A.addEventListener("destroy", l), A.addEventListener("_active", u), A.addEventListener("_idle", E), e.push({
|
|
4922
4922
|
elem: M,
|
|
4923
4923
|
animation: A
|
|
4924
4924
|
}), i += 1;
|
|
4925
4925
|
}
|
|
4926
|
-
function
|
|
4926
|
+
function b(A) {
|
|
4927
4927
|
var M = new AnimationItem();
|
|
4928
4928
|
return f(M, null), M.setParams(A), M;
|
|
4929
4929
|
}
|
|
@@ -5017,7 +5017,7 @@ function requireLottie() {
|
|
|
5017
5017
|
for (M = 0; M < i; M += 1)
|
|
5018
5018
|
e[M].animation.unmute(A);
|
|
5019
5019
|
}
|
|
5020
|
-
return t.registerAnimation = o, t.loadAnimation =
|
|
5020
|
+
return t.registerAnimation = o, t.loadAnimation = b, t.setSpeed = d, t.setDirection = x, t.play = S, t.pause = y, t.stop = k, t.togglePause = P, t.searchAnimations = j, t.resize = I, t.goToAndStop = g, t.destroy = _, t.freeze = O, t.unfreeze = B, t.setVolume = z, t.mute = H, t.unmute = L, t.getRegisteredAnimations = c, t;
|
|
5021
5021
|
}(), BezierFactory = function() {
|
|
5022
5022
|
var t = {};
|
|
5023
5023
|
t.getBezierEasing = r;
|
|
@@ -5033,22 +5033,22 @@ function requireLottie() {
|
|
|
5033
5033
|
function u(m, y) {
|
|
5034
5034
|
return 1 - 3 * y + 3 * m;
|
|
5035
5035
|
}
|
|
5036
|
-
function
|
|
5036
|
+
function E(m, y) {
|
|
5037
5037
|
return 3 * y - 6 * m;
|
|
5038
5038
|
}
|
|
5039
5039
|
function f(m) {
|
|
5040
5040
|
return 3 * m;
|
|
5041
5041
|
}
|
|
5042
|
-
function
|
|
5043
|
-
return ((u(y, g) * m +
|
|
5042
|
+
function b(m, y, g) {
|
|
5043
|
+
return ((u(y, g) * m + E(y, g)) * m + f(y)) * m;
|
|
5044
5044
|
}
|
|
5045
5045
|
function d(m, y, g) {
|
|
5046
|
-
return 3 * u(y, g) * m * m + 2 *
|
|
5046
|
+
return 3 * u(y, g) * m * m + 2 * E(y, g) * m + f(y);
|
|
5047
5047
|
}
|
|
5048
5048
|
function x(m, y, g, k, P) {
|
|
5049
5049
|
var _, j, I = 0;
|
|
5050
5050
|
do
|
|
5051
|
-
j = y + (g - y) / 2, _ =
|
|
5051
|
+
j = y + (g - y) / 2, _ = b(j, k, P) - m, _ > 0 ? g = j : y = j;
|
|
5052
5052
|
while (Math.abs(_) > n && ++I < a);
|
|
5053
5053
|
return j;
|
|
5054
5054
|
}
|
|
@@ -5056,7 +5056,7 @@ function requireLottie() {
|
|
|
5056
5056
|
for (var P = 0; P < i; ++P) {
|
|
5057
5057
|
var _ = d(y, g, k);
|
|
5058
5058
|
if (_ === 0) return y;
|
|
5059
|
-
var j =
|
|
5059
|
+
var j = b(y, g, k) - m;
|
|
5060
5060
|
y -= j / _;
|
|
5061
5061
|
}
|
|
5062
5062
|
return y;
|
|
@@ -5067,7 +5067,7 @@ function requireLottie() {
|
|
|
5067
5067
|
return p.prototype = {
|
|
5068
5068
|
get: function(y) {
|
|
5069
5069
|
var g = this._p[0], k = this._p[1], P = this._p[2], _ = this._p[3];
|
|
5070
|
-
return this._precomputed || this._precompute(), g === k && P === _ ? y : y === 0 ? 0 : y === 1 ? 1 :
|
|
5070
|
+
return this._precomputed || this._precompute(), g === k && P === _ ? y : y === 0 ? 0 : y === 1 ? 1 : b(this._getTForX(y), k, _);
|
|
5071
5071
|
},
|
|
5072
5072
|
// Private part
|
|
5073
5073
|
_precompute: function() {
|
|
@@ -5076,7 +5076,7 @@ function requireLottie() {
|
|
|
5076
5076
|
},
|
|
5077
5077
|
_calcSampleValues: function() {
|
|
5078
5078
|
for (var y = this._p[0], g = this._p[2], k = 0; k < l; ++k)
|
|
5079
|
-
this._mSampleValues[k] =
|
|
5079
|
+
this._mSampleValues[k] = b(k * o, y, g);
|
|
5080
5080
|
},
|
|
5081
5081
|
/**
|
|
5082
5082
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
@@ -5137,50 +5137,50 @@ function requireLottie() {
|
|
|
5137
5137
|
}();
|
|
5138
5138
|
function bezFunction() {
|
|
5139
5139
|
var t = Math;
|
|
5140
|
-
function e(f,
|
|
5141
|
-
var m = f * x +
|
|
5140
|
+
function e(f, b, d, x, S, p) {
|
|
5141
|
+
var m = f * x + b * S + d * p - S * x - p * f - d * b;
|
|
5142
5142
|
return m > -1e-3 && m < 1e-3;
|
|
5143
5143
|
}
|
|
5144
|
-
function r(f,
|
|
5144
|
+
function r(f, b, d, x, S, p, m, y, g) {
|
|
5145
5145
|
if (d === 0 && p === 0 && g === 0)
|
|
5146
|
-
return e(f,
|
|
5147
|
-
var k = t.sqrt(t.pow(x - f, 2) + t.pow(S -
|
|
5146
|
+
return e(f, b, x, S, m, y);
|
|
5147
|
+
var k = t.sqrt(t.pow(x - f, 2) + t.pow(S - b, 2) + t.pow(p - d, 2)), P = t.sqrt(t.pow(m - f, 2) + t.pow(y - b, 2) + t.pow(g - d, 2)), _ = t.sqrt(t.pow(m - x, 2) + t.pow(y - S, 2) + t.pow(g - p, 2)), j;
|
|
5148
5148
|
return k > P ? k > _ ? j = k - P - _ : j = _ - P - k : _ > P ? j = _ - P - k : j = P - k - _, j > -1e-4 && j < 1e-4;
|
|
5149
5149
|
}
|
|
5150
5150
|
var i = /* @__PURE__ */ function() {
|
|
5151
|
-
return function(f,
|
|
5151
|
+
return function(f, b, d, x) {
|
|
5152
5152
|
var S = getDefaultCurveSegments(), p, m, y, g, k, P = 0, _, j = [], I = [], $ = bezierLengthPool.newElement();
|
|
5153
5153
|
for (y = d.length, p = 0; p < S; p += 1) {
|
|
5154
5154
|
for (k = p / (S - 1), _ = 0, m = 0; m < y; m += 1)
|
|
5155
|
-
g = bmPow(1 - k, 3) * f[m] + 3 * bmPow(1 - k, 2) * k * d[m] + 3 * (1 - k) * bmPow(k, 2) * x[m] + bmPow(k, 3) *
|
|
5155
|
+
g = bmPow(1 - k, 3) * f[m] + 3 * bmPow(1 - k, 2) * k * d[m] + 3 * (1 - k) * bmPow(k, 2) * x[m] + bmPow(k, 3) * b[m], j[m] = g, I[m] !== null && (_ += bmPow(j[m] - I[m], 2)), I[m] = j[m];
|
|
5156
5156
|
_ && (_ = bmSqrt(_), P += _), $.percents[p] = k, $.lengths[p] = P;
|
|
5157
5157
|
}
|
|
5158
5158
|
return $.addedLength = P, $;
|
|
5159
5159
|
};
|
|
5160
5160
|
}();
|
|
5161
5161
|
function s(f) {
|
|
5162
|
-
var
|
|
5162
|
+
var b = segmentsLengthPool.newElement(), d = f.c, x = f.v, S = f.o, p = f.i, m, y = f._length, g = b.lengths, k = 0;
|
|
5163
5163
|
for (m = 0; m < y - 1; m += 1)
|
|
5164
5164
|
g[m] = i(x[m], x[m + 1], S[m], p[m + 1]), k += g[m].addedLength;
|
|
5165
|
-
return d && y && (g[m] = i(x[m], x[0], S[m], p[0]), k += g[m].addedLength),
|
|
5165
|
+
return d && y && (g[m] = i(x[m], x[0], S[m], p[0]), k += g[m].addedLength), b.totalLength = k, b;
|
|
5166
5166
|
}
|
|
5167
5167
|
function n(f) {
|
|
5168
5168
|
this.segmentLength = 0, this.points = new Array(f);
|
|
5169
5169
|
}
|
|
5170
|
-
function a(f,
|
|
5171
|
-
this.partialLength = f, this.point =
|
|
5170
|
+
function a(f, b) {
|
|
5171
|
+
this.partialLength = f, this.point = b;
|
|
5172
5172
|
}
|
|
5173
5173
|
var l = /* @__PURE__ */ function() {
|
|
5174
5174
|
var f = {};
|
|
5175
|
-
return function(
|
|
5176
|
-
var p = (
|
|
5175
|
+
return function(b, d, x, S) {
|
|
5176
|
+
var p = (b[0] + "_" + b[1] + "_" + d[0] + "_" + d[1] + "_" + x[0] + "_" + x[1] + "_" + S[0] + "_" + S[1]).replace(/\./g, "p");
|
|
5177
5177
|
if (!f[p]) {
|
|
5178
5178
|
var m = getDefaultCurveSegments(), y, g, k, P, _, j = 0, I, $, O = null;
|
|
5179
|
-
|
|
5179
|
+
b.length === 2 && (b[0] !== d[0] || b[1] !== d[1]) && e(b[0], b[1], d[0], d[1], b[0] + x[0], b[1] + x[1]) && e(b[0], b[1], d[0], d[1], d[0] + S[0], d[1] + S[1]) && (m = 2);
|
|
5180
5180
|
var B = new n(m);
|
|
5181
5181
|
for (k = x.length, y = 0; y < m; y += 1) {
|
|
5182
5182
|
for ($ = createSizedArray(k), _ = y / (m - 1), I = 0, g = 0; g < k; g += 1)
|
|
5183
|
-
P = bmPow(1 - _, 3) *
|
|
5183
|
+
P = bmPow(1 - _, 3) * b[g] + 3 * bmPow(1 - _, 2) * _ * (b[g] + x[g]) + 3 * (1 - _) * bmPow(_, 2) * (d[g] + S[g]) + bmPow(_, 3) * d[g], $[g] = P, O !== null && (I += bmPow($[g] - O[g], 2));
|
|
5184
5184
|
I = bmSqrt(I), j += I, B.points[y] = new a(I, $), O = $;
|
|
5185
5185
|
}
|
|
5186
5186
|
B.segmentLength = j, f[p] = B;
|
|
@@ -5188,8 +5188,8 @@ function requireLottie() {
|
|
|
5188
5188
|
return f[p];
|
|
5189
5189
|
};
|
|
5190
5190
|
}();
|
|
5191
|
-
function o(f,
|
|
5192
|
-
var d =
|
|
5191
|
+
function o(f, b) {
|
|
5192
|
+
var d = b.percents, x = b.lengths, S = d.length, p = bmFloor((S - 1) * f), m = f * b.addedLength, y = 0;
|
|
5193
5193
|
if (p === S - 1 || p === 0 || m === x[p])
|
|
5194
5194
|
return d[p];
|
|
5195
5195
|
for (var g = x[p] > m ? -1 : 1, k = !0; k; )
|
|
@@ -5200,23 +5200,23 @@ function requireLottie() {
|
|
|
5200
5200
|
}
|
|
5201
5201
|
return d[p] + (d[p + 1] - d[p]) * y;
|
|
5202
5202
|
}
|
|
5203
|
-
function c(f,
|
|
5204
|
-
var m = o(S, p), y = 1 - m, g = t.round((y * y * y * f[0] + (m * y * y + y * m * y + y * y * m) * d[0] + (m * m * y + y * m * m + m * y * m) * x[0] + m * m * m *
|
|
5203
|
+
function c(f, b, d, x, S, p) {
|
|
5204
|
+
var m = o(S, p), y = 1 - m, g = t.round((y * y * y * f[0] + (m * y * y + y * m * y + y * y * m) * d[0] + (m * m * y + y * m * m + m * y * m) * x[0] + m * m * m * b[0]) * 1e3) / 1e3, k = t.round((y * y * y * f[1] + (m * y * y + y * m * y + y * y * m) * d[1] + (m * m * y + y * m * m + m * y * m) * x[1] + m * m * m * b[1]) * 1e3) / 1e3;
|
|
5205
5205
|
return [g, k];
|
|
5206
5206
|
}
|
|
5207
5207
|
var u = createTypedArray("float32", 8);
|
|
5208
|
-
function
|
|
5208
|
+
function E(f, b, d, x, S, p, m) {
|
|
5209
5209
|
S < 0 ? S = 0 : S > 1 && (S = 1);
|
|
5210
5210
|
var y = o(S, m);
|
|
5211
5211
|
p = p > 1 ? 1 : p;
|
|
5212
5212
|
var g = o(p, m), k, P = f.length, _ = 1 - y, j = 1 - g, I = _ * _ * _, $ = y * _ * _ * 3, O = y * y * _ * 3, B = y * y * y, z = _ * _ * j, H = y * _ * j + _ * y * j + _ * _ * g, L = y * y * j + _ * y * g + y * _ * g, A = y * y * g, M = _ * j * j, C = y * j * j + _ * g * j + _ * j * g, R = y * g * j + _ * g * g + y * j * g, F = y * g * g, T = j * j * j, D = g * j * j + j * g * j + j * j * g, V = g * g * j + j * g * g + g * j * g, G = g * g * g;
|
|
5213
5213
|
for (k = 0; k < P; k += 1)
|
|
5214
|
-
u[k * 4] = t.round((I * f[k] + $ * d[k] + O * x[k] + B *
|
|
5214
|
+
u[k * 4] = t.round((I * f[k] + $ * d[k] + O * x[k] + B * b[k]) * 1e3) / 1e3, u[k * 4 + 1] = t.round((z * f[k] + H * d[k] + L * x[k] + A * b[k]) * 1e3) / 1e3, u[k * 4 + 2] = t.round((M * f[k] + C * d[k] + R * x[k] + F * b[k]) * 1e3) / 1e3, u[k * 4 + 3] = t.round((T * f[k] + D * d[k] + V * x[k] + G * b[k]) * 1e3) / 1e3;
|
|
5215
5215
|
return u;
|
|
5216
5216
|
}
|
|
5217
5217
|
return {
|
|
5218
5218
|
getSegmentsLength: s,
|
|
5219
|
-
getNewSegment:
|
|
5219
|
+
getNewSegment: E,
|
|
5220
5220
|
getPointInSegment: c,
|
|
5221
5221
|
buildBezierData: l,
|
|
5222
5222
|
pointOnLine2D: e,
|
|
@@ -5239,25 +5239,25 @@ function requireLottie() {
|
|
|
5239
5239
|
n < a - 1 ? n += 1 : (s = 0, l = !1);
|
|
5240
5240
|
}
|
|
5241
5241
|
u = this.keyframesMetadata[n] || {};
|
|
5242
|
-
var
|
|
5242
|
+
var E, f, b, d, x, S, p = c.t - r, m = o.t - r, y;
|
|
5243
5243
|
if (o.to) {
|
|
5244
5244
|
u.bezierData || (u.bezierData = bez.buildBezierData(o.s, c.s || o.e, o.to, o.ti));
|
|
5245
5245
|
var g = u.bezierData;
|
|
5246
5246
|
if (t >= p || t < m) {
|
|
5247
5247
|
var k = t >= p ? g.points.length - 1 : 0;
|
|
5248
|
-
for (f = g.points[k].point.length,
|
|
5249
|
-
i[
|
|
5248
|
+
for (f = g.points[k].point.length, E = 0; E < f; E += 1)
|
|
5249
|
+
i[E] = g.points[k].point[E];
|
|
5250
5250
|
} else {
|
|
5251
|
-
u.__fnct ? S = u.__fnct : (S = BezierFactory.getBezierEasing(o.o.x, o.o.y, o.i.x, o.i.y, o.n).get, u.__fnct = S),
|
|
5252
|
-
var P = g.segmentLength *
|
|
5251
|
+
u.__fnct ? S = u.__fnct : (S = BezierFactory.getBezierEasing(o.o.x, o.o.y, o.i.x, o.i.y, o.n).get, u.__fnct = S), b = S((t - m) / (p - m));
|
|
5252
|
+
var P = g.segmentLength * b, _, j = e.lastFrame < t && e._lastKeyframeIndex === n ? e._lastAddedLength : 0;
|
|
5253
5253
|
for (x = e.lastFrame < t && e._lastKeyframeIndex === n ? e._lastPoint : 0, l = !0, d = g.points.length; l; ) {
|
|
5254
|
-
if (j += g.points[x].partialLength, P === 0 ||
|
|
5255
|
-
for (f = g.points[x].point.length,
|
|
5256
|
-
i[
|
|
5254
|
+
if (j += g.points[x].partialLength, P === 0 || b === 0 || x === g.points.length - 1) {
|
|
5255
|
+
for (f = g.points[x].point.length, E = 0; E < f; E += 1)
|
|
5256
|
+
i[E] = g.points[x].point[E];
|
|
5257
5257
|
break;
|
|
5258
5258
|
} else if (P >= j && P < j + g.points[x + 1].partialLength) {
|
|
5259
|
-
for (_ = (P - j) / g.points[x + 1].partialLength, f = g.points[x].point.length,
|
|
5260
|
-
i[
|
|
5259
|
+
for (_ = (P - j) / g.points[x + 1].partialLength, f = g.points[x].point.length, E = 0; E < f; E += 1)
|
|
5260
|
+
i[E] = g.points[x].point[E] + (g.points[x + 1].point[E] - g.points[x].point[E]) * _;
|
|
5261
5261
|
break;
|
|
5262
5262
|
}
|
|
5263
5263
|
x < d - 1 ? x += 1 : l = !1;
|
|
@@ -5277,21 +5277,21 @@ function requireLottie() {
|
|
|
5277
5277
|
}
|
|
5278
5278
|
else
|
|
5279
5279
|
for (n = 0; n < a; n += 1)
|
|
5280
|
-
o.h !== 1 && (t >= p ?
|
|
5280
|
+
o.h !== 1 && (t >= p ? b = 1 : t < m ? b = 0 : (o.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[n] ? S = u.__fnct[n] : (I = o.o.x[n] === void 0 ? o.o.x[0] : o.o.x[n], $ = o.o.y[n] === void 0 ? o.o.y[0] : o.o.y[n], O = o.i.x[n] === void 0 ? o.i.x[0] : o.i.x[n], B = o.i.y[n] === void 0 ? o.i.y[0] : o.i.y[n], S = BezierFactory.getBezierEasing(I, $, O, B).get, u.__fnct[n] = S)) : u.__fnct ? S = u.__fnct : (I = o.o.x, $ = o.o.y, O = o.i.x, B = o.i.y, S = BezierFactory.getBezierEasing(I, $, O, B).get, o.keyframeMetadata = S), b = S((t - m) / (p - m)))), y = c.s || o.e, z = o.h === 1 ? o.s[n] : o.s[n] + (y[n] - o.s[n]) * b, this.propType === "multidimensional" ? i[n] = z : i = z;
|
|
5281
5281
|
}
|
|
5282
5282
|
return e.lastIndex = s, i;
|
|
5283
5283
|
}
|
|
5284
5284
|
function slerp(t, e, r) {
|
|
5285
|
-
var i = [], s = t[0], n = t[1], a = t[2], l = t[3], o = e[0], c = e[1], u = e[2],
|
|
5286
|
-
return
|
|
5285
|
+
var i = [], s = t[0], n = t[1], a = t[2], l = t[3], o = e[0], c = e[1], u = e[2], E = e[3], f, b, d, x, S;
|
|
5286
|
+
return b = s * o + n * c + a * u + l * E, b < 0 && (b = -b, o = -o, c = -c, u = -u, E = -E), 1 - b > 1e-6 ? (f = Math.acos(b), d = Math.sin(f), x = Math.sin((1 - r) * f) / d, S = Math.sin(r * f) / d) : (x = 1 - r, S = r), i[0] = x * s + S * o, i[1] = x * n + S * c, i[2] = x * a + S * u, i[3] = x * l + S * E, i;
|
|
5287
5287
|
}
|
|
5288
5288
|
function quaternionToEuler(t, e) {
|
|
5289
5289
|
var r = e[0], i = e[1], s = e[2], n = e[3], a = Math.atan2(2 * i * n - 2 * r * s, 1 - 2 * i * i - 2 * s * s), l = Math.asin(2 * r * i + 2 * s * n), o = Math.atan2(2 * r * n - 2 * i * s, 1 - 2 * r * r - 2 * s * s);
|
|
5290
5290
|
t[0] = a / degToRads, t[1] = l / degToRads, t[2] = o / degToRads;
|
|
5291
5291
|
}
|
|
5292
5292
|
function createQuaternion(t) {
|
|
5293
|
-
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), n = Math.cos(r / 2), a = Math.cos(i / 2), l = Math.sin(e / 2), o = Math.sin(r / 2), c = Math.sin(i / 2), u = s * n * a - l * o * c,
|
|
5294
|
-
return [
|
|
5293
|
+
var e = t[0] * degToRads, r = t[1] * degToRads, i = t[2] * degToRads, s = Math.cos(e / 2), n = Math.cos(r / 2), a = Math.cos(i / 2), l = Math.sin(e / 2), o = Math.sin(r / 2), c = Math.sin(i / 2), u = s * n * a - l * o * c, E = l * o * a + s * n * c, f = l * n * a + s * o * c, b = s * o * a - l * n * c;
|
|
5294
|
+
return [E, f, b, u];
|
|
5295
5295
|
}
|
|
5296
5296
|
function getValueAtCurrentTime() {
|
|
5297
5297
|
var t = this.comp.renderedFrame - this.offsetTime, e = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -5594,7 +5594,7 @@ function requireLottie() {
|
|
|
5594
5594
|
I.v[0][0] = g, I.v[0][1] = k - _, I.v[1][0] = j ? g + P : g - P, I.v[1][1] = k, I.v[2][0] = g, I.v[2][1] = k + _, I.v[3][0] = j ? g - P : g + P, I.v[3][1] = k, I.i[0][0] = j ? g - P * p : g + P * p, I.i[0][1] = k - _, I.i[1][0] = j ? g + P : g - P, I.i[1][1] = k - _ * p, I.i[2][0] = j ? g + P * p : g - P * p, I.i[2][1] = k + _, I.i[3][0] = j ? g - P : g + P, I.i[3][1] = k + _ * p, I.o[0][0] = j ? g + P * p : g - P * p, I.o[0][1] = k - _, I.o[1][0] = j ? g + P : g - P, I.o[1][1] = k + _ * p, I.o[2][0] = j ? g - P * p : g + P * p, I.o[2][1] = k + _, I.o[3][0] = j ? g - P : g + P, I.o[3][1] = k - _ * p;
|
|
5595
5595
|
}
|
|
5596
5596
|
}, extendPrototype([DynamicPropertyContainer], m), m;
|
|
5597
|
-
}(),
|
|
5597
|
+
}(), E = function() {
|
|
5598
5598
|
function p(m, y) {
|
|
5599
5599
|
this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = m, this.comp = m.comp, this.data = y, this.frameId = -1, this.d = y.d, this.initDynamicPropertyContainer(m), y.sy === 1 ? (this.ir = PropertyFactory.getProp(m, y.ir, 0, 0, this), this.is = PropertyFactory.getProp(m, y.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(m, y.pt, 0, 0, this), this.p = PropertyFactory.getProp(m, y.p, 1, 0, this), this.r = PropertyFactory.getProp(m, y.r, 0, degToRads, this), this.or = PropertyFactory.getProp(m, y.or, 0, 0, this), this.os = PropertyFactory.getProp(m, y.os, 0, 0.01, this), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
|
|
5600
5600
|
}
|
|
@@ -5637,12 +5637,12 @@ function requireLottie() {
|
|
|
5637
5637
|
reset: i
|
|
5638
5638
|
}, extendPrototype([DynamicPropertyContainer], p), p;
|
|
5639
5639
|
}();
|
|
5640
|
-
function
|
|
5640
|
+
function b(p, m, y) {
|
|
5641
5641
|
var g;
|
|
5642
5642
|
if (y === 3 || y === 4) {
|
|
5643
5643
|
var k = y === 3 ? m.pt : m.ks, P = k.k;
|
|
5644
5644
|
P.length ? g = new c(p, m, y) : g = new l(p, m, y);
|
|
5645
|
-
} else y === 5 ? g = new f(p, m) : y === 6 ? g = new u(p, m) : y === 7 && (g = new
|
|
5645
|
+
} else y === 5 ? g = new f(p, m) : y === 6 ? g = new u(p, m) : y === 7 && (g = new E(p, m));
|
|
5646
5646
|
return g.k && p.addDynamicProperty(g), g;
|
|
5647
5647
|
}
|
|
5648
5648
|
function d() {
|
|
@@ -5652,7 +5652,7 @@ function requireLottie() {
|
|
|
5652
5652
|
return c;
|
|
5653
5653
|
}
|
|
5654
5654
|
var S = {};
|
|
5655
|
-
return S.getShapeProp =
|
|
5655
|
+
return S.getShapeProp = b, S.getConstructorFunction = d, S.getKeyframedConstructorFunction = x, S;
|
|
5656
5656
|
}();
|
|
5657
5657
|
/*!
|
|
5658
5658
|
Transformation Matrix v2.0
|
|
@@ -5697,14 +5697,14 @@ function requireLottie() {
|
|
|
5697
5697
|
function u(C, R) {
|
|
5698
5698
|
return this.shear(r(C), r(R));
|
|
5699
5699
|
}
|
|
5700
|
-
function
|
|
5700
|
+
function E(C, R) {
|
|
5701
5701
|
var F = t(R), T = e(R);
|
|
5702
5702
|
return this._t(F, T, 0, 0, -T, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(C), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(F, -T, 0, 0, T, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
5703
5703
|
}
|
|
5704
5704
|
function f(C, R, F) {
|
|
5705
5705
|
return !F && F !== 0 && (F = 1), C === 1 && R === 1 && F === 1 ? this : this._t(C, 0, 0, 0, 0, R, 0, 0, 0, 0, F, 0, 0, 0, 0, 1);
|
|
5706
5706
|
}
|
|
5707
|
-
function
|
|
5707
|
+
function b(C, R, F, T, D, V, G, Y, K, X, Q, it, nt, st, ht, tt) {
|
|
5708
5708
|
return this.props[0] = C, this.props[1] = R, this.props[2] = F, this.props[3] = T, this.props[4] = D, this.props[5] = V, this.props[6] = G, this.props[7] = Y, this.props[8] = K, this.props[9] = X, this.props[10] = Q, this.props[11] = it, this.props[12] = nt, this.props[13] = st, this.props[14] = ht, this.props[15] = tt, this;
|
|
5709
5709
|
}
|
|
5710
5710
|
function d(C, R, F) {
|
|
@@ -5807,7 +5807,7 @@ function requireLottie() {
|
|
|
5807
5807
|
return "matrix(" + R + "," + F + "," + T + "," + D + "," + V + "," + G + ")";
|
|
5808
5808
|
}
|
|
5809
5809
|
return function() {
|
|
5810
|
-
this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = l, this.rotateZ = o, this.skew = u, this.skewFromAxis =
|
|
5810
|
+
this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = l, this.rotateZ = o, this.skew = u, this.skewFromAxis = E, this.shear = c, this.scale = f, this.setTransform = b, this.translate = d, this.transform = x, this.multiply = S, this.applyToPoint = k, this.applyToX = P, this.applyToY = _, this.applyToZ = j, this.applyToPointArray = z, this.applyToTriplePoints = B, this.applyToPointStringified = H, this.toCSS = L, this.to2dCSS = M, this.clone = y, this.cloneFromProps = g, this.equals = m, this.inversePoints = O, this.inversePoint = $, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = p, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
5811
5811
|
};
|
|
5812
5812
|
}();
|
|
5813
5813
|
function _typeof$3(t) {
|
|
@@ -5946,8 +5946,8 @@ function requireLottie() {
|
|
|
5946
5946
|
var a = [], l, o = n.length, c;
|
|
5947
5947
|
for (l = 0; l < o; l += 1)
|
|
5948
5948
|
if (c = n[l], !(c.e * s < i || c.s * s > i + r)) {
|
|
5949
|
-
var u,
|
|
5950
|
-
c.s * s <= i ? u = 0 : u = (c.s * s - i) / r, c.e * s >= i + r ?
|
|
5949
|
+
var u, E;
|
|
5950
|
+
c.s * s <= i ? u = 0 : u = (c.s * s - i) / r, c.e * s >= i + r ? E = 1 : E = (c.e * s - i) / r, a.push([u, E]);
|
|
5951
5951
|
}
|
|
5952
5952
|
return a.length || a.push([0, 0]), a;
|
|
5953
5953
|
}, TrimModifier.prototype.releasePathsData = function(t) {
|
|
@@ -5966,7 +5966,7 @@ function requireLottie() {
|
|
|
5966
5966
|
e = Math.round(e * 1e4) * 1e-4, r = Math.round(r * 1e4) * 1e-4, this.sValue = e, this.eValue = r;
|
|
5967
5967
|
} else
|
|
5968
5968
|
e = this.sValue, r = this.eValue;
|
|
5969
|
-
var n, a, l = this.shapes.length, o, c, u,
|
|
5969
|
+
var n, a, l = this.shapes.length, o, c, u, E, f, b = 0;
|
|
5970
5970
|
if (r === e)
|
|
5971
5971
|
for (a = 0; a < l; a += 1)
|
|
5972
5972
|
this.shapes[a].localShapeCollection.releaseShapes(), this.shapes[a].shape._mdf = !0, this.shapes[a].shape.paths = this.shapes[a].localShapeCollection, this._mdf && (this.shapes[a].pathsData.length = 0);
|
|
@@ -5984,15 +5984,15 @@ function requireLottie() {
|
|
|
5984
5984
|
f = x.totalShapeLength;
|
|
5985
5985
|
else {
|
|
5986
5986
|
for (u = this.releasePathsData(x.pathsData), o = 0; o < c; o += 1)
|
|
5987
|
-
|
|
5987
|
+
E = bez.getSegmentsLength(n.shapes[o]), u.push(E), f += E.totalLength;
|
|
5988
5988
|
x.totalShapeLength = f, x.pathsData = u;
|
|
5989
5989
|
}
|
|
5990
|
-
|
|
5990
|
+
b += f, x.shape._mdf = !0;
|
|
5991
5991
|
}
|
|
5992
5992
|
var p = e, m = r, y = 0, g;
|
|
5993
5993
|
for (a = l - 1; a >= 0; a -= 1)
|
|
5994
5994
|
if (x = this.shapes[a], x.shape._mdf) {
|
|
5995
|
-
for (S = x.localShapeCollection, S.releaseShapes(), this.m === 2 && l > 1 ? (g = this.calculateShapeEdges(e, r, x.totalShapeLength, y,
|
|
5995
|
+
for (S = x.localShapeCollection, S.releaseShapes(), this.m === 2 && l > 1 ? (g = this.calculateShapeEdges(e, r, x.totalShapeLength, y, b), y += x.totalShapeLength) : g = [[p, m]], c = g.length, o = 0; o < c; o += 1) {
|
|
5996
5996
|
p = g[o][0], m = g[o][1], d.length = 0, m <= 1 ? d.push({
|
|
5997
5997
|
s: x.totalShapeLength * p,
|
|
5998
5998
|
e: x.totalShapeLength * m
|
|
@@ -6031,8 +6031,8 @@ function requireLottie() {
|
|
|
6031
6031
|
}, TrimModifier.prototype.addSegmentFromArray = function(t, e, r, i) {
|
|
6032
6032
|
e.setXYAt(t[1], t[5], "o", r), e.setXYAt(t[2], t[6], "i", r + 1), i && e.setXYAt(t[0], t[4], "v", r), e.setXYAt(t[3], t[7], "v", r + 1);
|
|
6033
6033
|
}, TrimModifier.prototype.addShapes = function(t, e, r) {
|
|
6034
|
-
var i = t.pathsData, s = t.shape.paths.shapes, n, a = t.shape.paths._length, l, o, c = 0, u,
|
|
6035
|
-
for (r ? (
|
|
6034
|
+
var i = t.pathsData, s = t.shape.paths.shapes, n, a = t.shape.paths._length, l, o, c = 0, u, E, f, b, d = [], x, S = !0;
|
|
6035
|
+
for (r ? (E = r._length, x = r._length) : (r = shapePool.newElement(), E = 0, x = 0), d.push(r), n = 0; n < a; n += 1) {
|
|
6036
6036
|
for (f = i[n].lengths, r.c = s[n].c, o = s[n].c ? f.length : f.length + 1, l = 1; l < o; l += 1)
|
|
6037
6037
|
if (u = f[l - 1], c + u.addedLength < e.s)
|
|
6038
6038
|
c += u.addedLength, r.c = !1;
|
|
@@ -6040,18 +6040,18 @@ function requireLottie() {
|
|
|
6040
6040
|
r.c = !1;
|
|
6041
6041
|
break;
|
|
6042
6042
|
} else
|
|
6043
|
-
e.s <= c && e.e >= c + u.addedLength ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[l], s[n].v[l], r,
|
|
6043
|
+
e.s <= c && e.e >= c + u.addedLength ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[l], s[n].v[l], r, E, S), S = !1) : (b = bez.getNewSegment(s[n].v[l - 1], s[n].v[l], s[n].o[l - 1], s[n].i[l], (e.s - c) / u.addedLength, (e.e - c) / u.addedLength, f[l - 1]), this.addSegmentFromArray(b, r, E, S), S = !1, r.c = !1), c += u.addedLength, E += 1;
|
|
6044
6044
|
if (s[n].c && f.length) {
|
|
6045
6045
|
if (u = f[l - 1], c <= e.e) {
|
|
6046
6046
|
var p = f[l - 1].addedLength;
|
|
6047
|
-
e.s <= c && e.e >= c + p ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[0], s[n].v[0], r,
|
|
6047
|
+
e.s <= c && e.e >= c + p ? (this.addSegment(s[n].v[l - 1], s[n].o[l - 1], s[n].i[0], s[n].v[0], r, E, S), S = !1) : (b = bez.getNewSegment(s[n].v[l - 1], s[n].v[0], s[n].o[l - 1], s[n].i[0], (e.s - c) / p, (e.e - c) / p, f[l - 1]), this.addSegmentFromArray(b, r, E, S), S = !1, r.c = !1);
|
|
6048
6048
|
} else
|
|
6049
6049
|
r.c = !1;
|
|
6050
|
-
c += u.addedLength,
|
|
6050
|
+
c += u.addedLength, E += 1;
|
|
6051
6051
|
}
|
|
6052
6052
|
if (r._length && (r.setXYAt(r.v[x][0], r.v[x][1], "i", x), r.setXYAt(r.v[r._length - 1][0], r.v[r._length - 1][1], "o", r._length - 1)), c > e.e)
|
|
6053
6053
|
break;
|
|
6054
|
-
n < a - 1 && (r = shapePool.newElement(), S = !0, d.push(r),
|
|
6054
|
+
n < a - 1 && (r = shapePool.newElement(), S = !0, d.push(r), E = 0);
|
|
6055
6055
|
}
|
|
6056
6056
|
return d;
|
|
6057
6057
|
};
|
|
@@ -6066,9 +6066,9 @@ function requireLottie() {
|
|
|
6066
6066
|
i[0] /= s, i[1] /= s;
|
|
6067
6067
|
var a = shapePool.newElement();
|
|
6068
6068
|
a.c = t.c;
|
|
6069
|
-
var l, o, c, u,
|
|
6069
|
+
var l, o, c, u, E, f;
|
|
6070
6070
|
for (n = 0; n < s; n += 1)
|
|
6071
|
-
l = t.v[n][0] + (i[0] - t.v[n][0]) * r, o = t.v[n][1] + (i[1] - t.v[n][1]) * r, c = t.o[n][0] + (i[0] - t.o[n][0]) * -r, u = t.o[n][1] + (i[1] - t.o[n][1]) * -r,
|
|
6071
|
+
l = t.v[n][0] + (i[0] - t.v[n][0]) * r, o = t.v[n][1] + (i[1] - t.v[n][1]) * r, c = t.o[n][0] + (i[0] - t.o[n][0]) * -r, u = t.o[n][1] + (i[1] - t.o[n][1]) * -r, E = t.i[n][0] + (i[0] - t.i[n][0]) * -r, f = t.i[n][1] + (i[1] - t.i[n][1]) * -r, a.setTripleAt(l, o, c, u, E, f, n);
|
|
6072
6072
|
return a;
|
|
6073
6073
|
}, PuckerAndBloatModifier.prototype.processShapes = function(t) {
|
|
6074
6074
|
var e, r, i = this.shapes.length, s, n, a = this.amount.v;
|
|
@@ -6094,16 +6094,16 @@ function requireLottie() {
|
|
|
6094
6094
|
if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || o) {
|
|
6095
6095
|
var c;
|
|
6096
6096
|
if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
|
|
6097
|
-
var u,
|
|
6097
|
+
var u, E;
|
|
6098
6098
|
if (c = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime)
|
|
6099
|
-
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (u = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / c, 0),
|
|
6099
|
+
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (u = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / c, 0), E = this.p.getValueAtTime(this.p.keyframes[0].t / c, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (u = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / c, 0), E = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / c, 0)) : (u = this.p.pv, E = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / c, this.p.offsetTime));
|
|
6100
6100
|
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
|
|
6101
|
-
u = [],
|
|
6102
|
-
var f = this.px,
|
|
6103
|
-
f._caching.lastFrame + f.offsetTime <= f.keyframes[0].t ? (u[0] = f.getValueAtTime((f.keyframes[0].t + 0.01) / c, 0), u[1] =
|
|
6101
|
+
u = [], E = [];
|
|
6102
|
+
var f = this.px, b = this.py;
|
|
6103
|
+
f._caching.lastFrame + f.offsetTime <= f.keyframes[0].t ? (u[0] = f.getValueAtTime((f.keyframes[0].t + 0.01) / c, 0), u[1] = b.getValueAtTime((b.keyframes[0].t + 0.01) / c, 0), E[0] = f.getValueAtTime(f.keyframes[0].t / c, 0), E[1] = b.getValueAtTime(b.keyframes[0].t / c, 0)) : f._caching.lastFrame + f.offsetTime >= f.keyframes[f.keyframes.length - 1].t ? (u[0] = f.getValueAtTime(f.keyframes[f.keyframes.length - 1].t / c, 0), u[1] = b.getValueAtTime(b.keyframes[b.keyframes.length - 1].t / c, 0), E[0] = f.getValueAtTime((f.keyframes[f.keyframes.length - 1].t - 0.01) / c, 0), E[1] = b.getValueAtTime((b.keyframes[b.keyframes.length - 1].t - 0.01) / c, 0)) : (u = [f.pv, b.pv], E[0] = f.getValueAtTime((f._caching.lastFrame + f.offsetTime - 0.01) / c, f.offsetTime), E[1] = b.getValueAtTime((b._caching.lastFrame + b.offsetTime - 0.01) / c, b.offsetTime));
|
|
6104
6104
|
} else
|
|
6105
|
-
|
|
6106
|
-
this.v.rotate(-Math.atan2(u[1] -
|
|
6105
|
+
E = t, u = E;
|
|
6106
|
+
this.v.rotate(-Math.atan2(u[1] - E[1], u[0] - E[0]));
|
|
6107
6107
|
}
|
|
6108
6108
|
this.data.p && this.data.p.s ? this.data.p.z ? this.v.translate(this.px.v, this.py.v, -this.pz.v) : this.v.translate(this.px.v, this.py.v, 0) : this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
|
|
6109
6109
|
}
|
|
@@ -6136,9 +6136,9 @@ function requireLottie() {
|
|
|
6136
6136
|
k: [0, 0, 0]
|
|
6137
6137
|
}, 1, 0, this), c.rx) {
|
|
6138
6138
|
if (this.rx = PropertyFactory.getProp(o, c.rx, 0, degToRads, this), this.ry = PropertyFactory.getProp(o, c.ry, 0, degToRads, this), this.rz = PropertyFactory.getProp(o, c.rz, 0, degToRads, this), c.or.k[0].ti) {
|
|
6139
|
-
var
|
|
6140
|
-
for (
|
|
6141
|
-
c.or.k[
|
|
6139
|
+
var E, f = c.or.k.length;
|
|
6140
|
+
for (E = 0; E < f; E += 1)
|
|
6141
|
+
c.or.k[E].to = null, c.or.k[E].ti = null;
|
|
6142
6142
|
}
|
|
6143
6143
|
this.or = PropertyFactory.getProp(o, c.or, 1, degToRads, this), this.or.sh = !0;
|
|
6144
6144
|
} else
|
|
@@ -6253,23 +6253,23 @@ function requireLottie() {
|
|
|
6253
6253
|
var c;
|
|
6254
6254
|
for (i = 0; i <= this._groups.length - 1; i += 1) {
|
|
6255
6255
|
if (c = n < l, this._groups[i]._render = c, this.changeGroupRender(this._groups[i].it, c), !c) {
|
|
6256
|
-
var u = this.elemsData[i].it,
|
|
6257
|
-
|
|
6256
|
+
var u = this.elemsData[i].it, E = u[u.length - 1];
|
|
6257
|
+
E.transform.op.v !== 0 ? (E.transform.op._mdf = !0, E.transform.op.v = 0) : E.transform.op._mdf = !1;
|
|
6258
6258
|
}
|
|
6259
6259
|
n += 1;
|
|
6260
6260
|
}
|
|
6261
6261
|
this._currentCopies = l;
|
|
6262
|
-
var f = this.o.v,
|
|
6262
|
+
var f = this.o.v, b = f % 1, d = f > 0 ? Math.floor(f) : Math.ceil(f), x = this.pMatrix.props, S = this.rMatrix.props, p = this.sMatrix.props;
|
|
6263
6263
|
this.pMatrix.reset(), this.rMatrix.reset(), this.sMatrix.reset(), this.tMatrix.reset(), this.matrix.reset();
|
|
6264
6264
|
var m = 0;
|
|
6265
6265
|
if (f > 0) {
|
|
6266
6266
|
for (; m < d; )
|
|
6267
6267
|
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !1), m += 1;
|
|
6268
|
-
|
|
6268
|
+
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, b, !1), m += b);
|
|
6269
6269
|
} else if (f < 0) {
|
|
6270
6270
|
for (; m > d; )
|
|
6271
6271
|
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, !0), m -= 1;
|
|
6272
|
-
|
|
6272
|
+
b && (this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -b, !0), m -= b);
|
|
6273
6273
|
}
|
|
6274
6274
|
i = this.data.m === 1 ? 0 : this._currentCopies - 1, s = this.data.m === 1 ? 1 : -1, n = this._currentCopies;
|
|
6275
6275
|
for (var y, g; n; ) {
|
|
@@ -6295,9 +6295,9 @@ function requireLottie() {
|
|
|
6295
6295
|
}, RoundCornersModifier.prototype.processPath = function(t, e) {
|
|
6296
6296
|
var r = shapePool.newElement();
|
|
6297
6297
|
r.c = t.c;
|
|
6298
|
-
var i, s = t._length, n, a, l, o, c, u,
|
|
6298
|
+
var i, s = t._length, n, a, l, o, c, u, E = 0, f, b, d, x, S, p;
|
|
6299
6299
|
for (i = 0; i < s; i += 1)
|
|
6300
|
-
n = t.v[i], l = t.o[i], a = t.i[i], n[0] === l[0] && n[1] === l[1] && n[0] === a[0] && n[1] === a[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(n[0], n[1], l[0], l[1], a[0], a[1],
|
|
6300
|
+
n = t.v[i], l = t.o[i], a = t.i[i], n[0] === l[0] && n[1] === l[1] && n[0] === a[0] && n[1] === a[1] ? (i === 0 || i === s - 1) && !t.c ? (r.setTripleAt(n[0], n[1], l[0], l[1], a[0], a[1], E), E += 1) : (i === 0 ? o = t.v[s - 1] : o = t.v[i - 1], c = Math.sqrt(Math.pow(n[0] - o[0], 2) + Math.pow(n[1] - o[1], 2)), u = c ? Math.min(c / 2, e) / c : 0, S = n[0] + (o[0] - n[0]) * u, f = S, p = n[1] - (n[1] - o[1]) * u, b = p, d = f - (f - n[0]) * roundCorner, x = b - (b - n[1]) * roundCorner, r.setTripleAt(f, b, d, x, S, p, E), E += 1, i === s - 1 ? o = t.v[0] : o = t.v[i + 1], c = Math.sqrt(Math.pow(n[0] - o[0], 2) + Math.pow(n[1] - o[1], 2)), u = c ? Math.min(c / 2, e) / c : 0, d = n[0] + (o[0] - n[0]) * u, f = d, x = n[1] + (o[1] - n[1]) * u, b = x, S = f - (f - n[0]) * roundCorner, p = b - (b - n[1]) * roundCorner, r.setTripleAt(f, b, d, x, S, p, E), E += 1) : (r.setTripleAt(t.v[i][0], t.v[i][1], t.o[i][0], t.o[i][1], t.i[i][0], t.i[i][1], E), E += 1);
|
|
6301
6301
|
return r;
|
|
6302
6302
|
}, RoundCornersModifier.prototype.processShapes = function(t) {
|
|
6303
6303
|
var e, r, i = this.shapes.length, s, n, a = this.rd.v;
|
|
@@ -6478,8 +6478,8 @@ function requireLottie() {
|
|
|
6478
6478
|
return Math.atan2(0, 1) - Math.atan2(a[1], a[0]);
|
|
6479
6479
|
}
|
|
6480
6480
|
function zigZagCorner(t, e, r, i, s, n, a) {
|
|
6481
|
-
var l = getProjectingAngle(e, r), o = e.v[r % e._length], c = e.v[r === 0 ? e._length - 1 : r - 1], u = e.v[(r + 1) % e._length],
|
|
6482
|
-
setPoint(t, e.v[r % e._length], l, a, i, f / ((s + 1) * 2),
|
|
6481
|
+
var l = getProjectingAngle(e, r), o = e.v[r % e._length], c = e.v[r === 0 ? e._length - 1 : r - 1], u = e.v[(r + 1) % e._length], E = n === 2 ? Math.sqrt(Math.pow(o[0] - c[0], 2) + Math.pow(o[1] - c[1], 2)) : 0, f = n === 2 ? Math.sqrt(Math.pow(o[0] - u[0], 2) + Math.pow(o[1] - u[1], 2)) : 0;
|
|
6482
|
+
setPoint(t, e.v[r % e._length], l, a, i, f / ((s + 1) * 2), E / ((s + 1) * 2));
|
|
6483
6483
|
}
|
|
6484
6484
|
function zigZagSegment(t, e, r, i, s, n) {
|
|
6485
6485
|
for (var a = 0; a < i; a += 1) {
|
|
@@ -6525,10 +6525,10 @@ function requireLottie() {
|
|
|
6525
6525
|
var n = e.points[3], a = r.points[0];
|
|
6526
6526
|
if (i === 3 || pointEqual(n, a)) return n;
|
|
6527
6527
|
if (i === 2) {
|
|
6528
|
-
var l = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, c = lineIntersection(n, polarOffset(n, l + Math.PI / 2, 100), a, polarOffset(a, l + Math.PI / 2, 100)), u = c ? pointDistance(c, n) : pointDistance(n, a) / 2,
|
|
6529
|
-
return t.setXYAt(
|
|
6528
|
+
var l = -e.tangentAngle(1), o = -r.tangentAngle(0) + Math.PI, c = lineIntersection(n, polarOffset(n, l + Math.PI / 2, 100), a, polarOffset(a, l + Math.PI / 2, 100)), u = c ? pointDistance(c, n) : pointDistance(n, a) / 2, E = polarOffset(n, l, 2 * u * roundCorner);
|
|
6529
|
+
return t.setXYAt(E[0], E[1], "o", t.length() - 1), E = polarOffset(a, o, 2 * u * roundCorner), t.setTripleAt(a[0], a[1], a[0], a[1], E[0], E[1], t.length()), a;
|
|
6530
6530
|
}
|
|
6531
|
-
var f = pointEqual(n, e.points[2]) ? e.points[0] : e.points[2],
|
|
6531
|
+
var f = pointEqual(n, e.points[2]) ? e.points[0] : e.points[2], b = pointEqual(a, r.points[1]) ? r.points[3] : r.points[1], d = lineIntersection(f, n, a, b);
|
|
6532
6532
|
return d && pointDistance(d, n) < s ? (t.setTripleAt(d[0], d[1], d[0], d[1], d[0], d[1], t.length()), d) : n;
|
|
6533
6533
|
}
|
|
6534
6534
|
function getIntersection(t, e) {
|
|
@@ -6570,13 +6570,13 @@ function requireLottie() {
|
|
|
6570
6570
|
for (a = n - 1; a >= 0; a -= 1)
|
|
6571
6571
|
o = PolynomialBezier.shapeSegmentInverted(t, a), c.push(offsetSegmentSplit(o, e));
|
|
6572
6572
|
c = pruneIntersections(c);
|
|
6573
|
-
var u = null,
|
|
6573
|
+
var u = null, E = null;
|
|
6574
6574
|
for (a = 0; a < c.length; a += 1) {
|
|
6575
6575
|
var f = c[a];
|
|
6576
|
-
for (
|
|
6576
|
+
for (E && (u = joinLines(s, E, f[0], r, i)), E = f[f.length - 1], l = 0; l < f.length; l += 1)
|
|
6577
6577
|
o = f[l], u && pointEqual(o.points[0], u) ? s.setXYAt(o.points[1][0], o.points[1][1], "o", s.length() - 1) : s.setTripleAt(o.points[0][0], o.points[0][1], o.points[1][0], o.points[1][1], o.points[0][0], o.points[0][1], s.length()), s.setTripleAt(o.points[3][0], o.points[3][1], o.points[3][0], o.points[3][1], o.points[2][0], o.points[2][1], s.length()), u = o.points[3];
|
|
6578
6578
|
}
|
|
6579
|
-
return c.length && joinLines(s,
|
|
6579
|
+
return c.length && joinLines(s, E, c[0][0], r, i), s;
|
|
6580
6580
|
}, OffsetPathModifier.prototype.processShapes = function(t) {
|
|
6581
6581
|
var e, r, i = this.shapes.length, s, n, a = this.amount.v, l = this.miterLimit.v, o = this.lineJoin;
|
|
6582
6582
|
if (a !== 0) {
|
|
@@ -6629,14 +6629,14 @@ function requireLottie() {
|
|
|
6629
6629
|
}
|
|
6630
6630
|
}, r = [];
|
|
6631
6631
|
r = r.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
|
|
6632
|
-
var i = 127988, s = 917631, n = 917601, a = 917626, l = 65039, o = 8205, c = 127462, u = 127487,
|
|
6632
|
+
var i = 127988, s = 917631, n = 917601, a = 917626, l = 65039, o = 8205, c = 127462, u = 127487, E = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
6633
6633
|
function f(A) {
|
|
6634
6634
|
var M = A.split(","), C, R = M.length, F = [];
|
|
6635
6635
|
for (C = 0; C < R; C += 1)
|
|
6636
6636
|
M[C] !== "sans-serif" && M[C] !== "monospace" && F.push(M[C]);
|
|
6637
6637
|
return F.join(",");
|
|
6638
6638
|
}
|
|
6639
|
-
function
|
|
6639
|
+
function b(A, M) {
|
|
6640
6640
|
var C = createTag("span");
|
|
6641
6641
|
C.setAttribute("aria-hidden", !0), C.style.fontFamily = M;
|
|
6642
6642
|
var R = createTag("span");
|
|
@@ -6688,7 +6688,7 @@ function requireLottie() {
|
|
|
6688
6688
|
var C = A.list, R, F = C.length, T = F;
|
|
6689
6689
|
for (R = 0; R < F; R += 1) {
|
|
6690
6690
|
var D = !0, V, G;
|
|
6691
|
-
if (C[R].loaded = !1, C[R].monoCase =
|
|
6691
|
+
if (C[R].loaded = !1, C[R].monoCase = b(C[R].fFamily, "monospace"), C[R].sansCase = b(C[R].fFamily, "sans-serif"), !C[R].fPath)
|
|
6692
6692
|
C[R].loaded = !0, T -= 1;
|
|
6693
6693
|
else if (C[R].fOrigin === "p" || C[R].origin === 3) {
|
|
6694
6694
|
if (V = document.querySelectorAll('style[f-forigin="p"][f-family="' + C[R].fFamily + '"], style[f-origin="3"][f-family="' + C[R].fFamily + '"]'), V.length > 0 && (D = !1), D) {
|
|
@@ -6763,7 +6763,7 @@ function requireLottie() {
|
|
|
6763
6763
|
}
|
|
6764
6764
|
function P(A, M) {
|
|
6765
6765
|
var C = A.toString(16) + M.toString(16);
|
|
6766
|
-
return
|
|
6766
|
+
return E.indexOf(C) !== -1;
|
|
6767
6767
|
}
|
|
6768
6768
|
function _(A) {
|
|
6769
6769
|
return A === o;
|
|
@@ -7266,9 +7266,9 @@ function requireLottie() {
|
|
|
7266
7266
|
this.data = t, this.element = e, this.globalData = r, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
7267
7267
|
var i = this.globalData.defs, s, n = this.masksProperties ? this.masksProperties.length : 0;
|
|
7268
7268
|
this.viewData = createSizedArray(n), this.solidPath = "";
|
|
7269
|
-
var a, l = this.masksProperties, o = 0, c = [], u,
|
|
7269
|
+
var a, l = this.masksProperties, o = 0, c = [], u, E, f = createElementID(), b, d, x, S, p = "clipPath", m = "clip-path";
|
|
7270
7270
|
for (s = 0; s < n; s += 1)
|
|
7271
|
-
if ((l[s].mode !== "a" && l[s].mode !== "n" || l[s].inv || l[s].o.k !== 100 || l[s].o.x) && (p = "mask", m = "mask"), (l[s].mode === "s" || l[s].mode === "i") && o === 0 ? (
|
|
7271
|
+
if ((l[s].mode !== "a" && l[s].mode !== "n" || l[s].inv || l[s].o.k !== 100 || l[s].o.x) && (p = "mask", m = "mask"), (l[s].mode === "s" || l[s].mode === "i") && o === 0 ? (b = createNS("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0), c.push(b)) : b = null, a = createNS("path"), l[s].mode === "n")
|
|
7272
7272
|
this.viewData[s] = {
|
|
7273
7273
|
op: PropertyFactory.getProp(this.element, l[s].o, 0, 0.01, this.element),
|
|
7274
7274
|
prop: ShapePropertyFactory.getShapeProp(this.element, l[s], 3),
|
|
@@ -7287,9 +7287,9 @@ function requireLottie() {
|
|
|
7287
7287
|
filterId: y,
|
|
7288
7288
|
lastRadius: 0
|
|
7289
7289
|
}, l[s].mode === "i") {
|
|
7290
|
-
|
|
7290
|
+
E = c.length;
|
|
7291
7291
|
var g = createNS("g");
|
|
7292
|
-
for (u = 0; u <
|
|
7292
|
+
for (u = 0; u < E; u += 1)
|
|
7293
7293
|
g.appendChild(c[u]);
|
|
7294
7294
|
var k = createNS("mask");
|
|
7295
7295
|
k.setAttribute("mask-type", "alpha"), k.setAttribute("id", f + "_" + o), k.appendChild(a), i.appendChild(k), g.setAttribute("mask", "url(" + getLocationHref() + "#" + f + "_" + o + ")"), c.length = 0, c.push(g);
|
|
@@ -7300,7 +7300,7 @@ function requireLottie() {
|
|
|
7300
7300
|
lastPath: "",
|
|
7301
7301
|
op: PropertyFactory.getProp(this.element, l[s].o, 0, 0.01, this.element),
|
|
7302
7302
|
prop: ShapePropertyFactory.getShapeProp(this.element, l[s], 3),
|
|
7303
|
-
invRect:
|
|
7303
|
+
invRect: b
|
|
7304
7304
|
}, this.viewData[s].prop.k || this.drawPath(l[s], this.viewData[s].prop.v, this.viewData[s]);
|
|
7305
7305
|
}
|
|
7306
7306
|
for (this.maskElement = createNS(p), n = c.length, s = 0; s < n; s += 1)
|
|
@@ -7434,8 +7434,8 @@ function requireLottie() {
|
|
|
7434
7434
|
o.appendChild(c), i = createElementID(), s = filtersFactory.createFilter(i);
|
|
7435
7435
|
var u = createNS("feComponentTransfer");
|
|
7436
7436
|
u.setAttribute("in", "SourceGraphic"), s.appendChild(u);
|
|
7437
|
-
var
|
|
7438
|
-
|
|
7437
|
+
var E = createNS("feFuncA");
|
|
7438
|
+
E.setAttribute("type", "table"), E.setAttribute("tableValues", "1.0 0.0"), u.appendChild(E), this.globalData.defs.appendChild(s);
|
|
7439
7439
|
var f = createNS("rect");
|
|
7440
7440
|
f.setAttribute("width", this.comp.data.w), f.setAttribute("height", this.comp.data.h), f.setAttribute("x", "0"), f.setAttribute("y", "0"), f.setAttribute("fill", "#ffffff"), f.setAttribute("opacity", "0"), c.setAttribute("filter", "url(" + getLocationHref() + "#" + i + ")"), c.appendChild(f), n = createNS("use"), n.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), c.appendChild(n), featureSupport.maskType || (o.setAttribute("mask-type", "luminance"), s.appendChild(filtersFactory.createAlphaToLuminanceFilter()), a = createNS("g"), c.appendChild(f), a.appendChild(this.layerElement), c.appendChild(a)), this.globalData.defs.appendChild(o);
|
|
7441
7441
|
}
|
|
@@ -7730,8 +7730,8 @@ function requireLottie() {
|
|
|
7730
7730
|
var t = new Matrix(), e = new Matrix(), r = {
|
|
7731
7731
|
createRenderFunction: i
|
|
7732
7732
|
};
|
|
7733
|
-
function i(
|
|
7734
|
-
switch (
|
|
7733
|
+
function i(E) {
|
|
7734
|
+
switch (E.ty) {
|
|
7735
7735
|
case "fl":
|
|
7736
7736
|
return l;
|
|
7737
7737
|
case "gf":
|
|
@@ -7753,15 +7753,15 @@ function requireLottie() {
|
|
|
7753
7753
|
return null;
|
|
7754
7754
|
}
|
|
7755
7755
|
}
|
|
7756
|
-
function s(
|
|
7757
|
-
(
|
|
7756
|
+
function s(E, f, b) {
|
|
7757
|
+
(b || f.transform.op._mdf) && f.transform.container.setAttribute("opacity", f.transform.op.v), (b || f.transform.mProps._mdf) && f.transform.container.setAttribute("transform", f.transform.mProps.v.to2dCSS());
|
|
7758
7758
|
}
|
|
7759
7759
|
function n() {
|
|
7760
7760
|
}
|
|
7761
|
-
function a(
|
|
7761
|
+
function a(E, f, b) {
|
|
7762
7762
|
var d, x, S, p, m, y, g = f.styles.length, k = f.lvl, P, _, j, I;
|
|
7763
7763
|
for (y = 0; y < g; y += 1) {
|
|
7764
|
-
if (p = f.sh._mdf ||
|
|
7764
|
+
if (p = f.sh._mdf || b, f.styles[y].lvl < k) {
|
|
7765
7765
|
for (_ = e.reset(), j = k - f.styles[y].lvl, I = f.transformers.length - 1; !p && j > 0; )
|
|
7766
7766
|
p = f.transformers[I].mProps._mdf || p, j -= 1, I -= 1;
|
|
7767
7767
|
if (p)
|
|
@@ -7775,43 +7775,43 @@ function requireLottie() {
|
|
|
7775
7775
|
f.caches[y] = S;
|
|
7776
7776
|
} else
|
|
7777
7777
|
S = f.caches[y];
|
|
7778
|
-
f.styles[y].d +=
|
|
7778
|
+
f.styles[y].d += E.hd === !0 ? "" : S, f.styles[y]._mdf = p || f.styles[y]._mdf;
|
|
7779
7779
|
}
|
|
7780
7780
|
}
|
|
7781
|
-
function l(
|
|
7781
|
+
function l(E, f, b) {
|
|
7782
7782
|
var d = f.style;
|
|
7783
|
-
(f.c._mdf ||
|
|
7783
|
+
(f.c._mdf || b) && d.pElem.setAttribute("fill", "rgb(" + bmFloor(f.c.v[0]) + "," + bmFloor(f.c.v[1]) + "," + bmFloor(f.c.v[2]) + ")"), (f.o._mdf || b) && d.pElem.setAttribute("fill-opacity", f.o.v);
|
|
7784
7784
|
}
|
|
7785
|
-
function o(
|
|
7786
|
-
c(
|
|
7785
|
+
function o(E, f, b) {
|
|
7786
|
+
c(E, f, b), u(E, f, b);
|
|
7787
7787
|
}
|
|
7788
|
-
function c(
|
|
7788
|
+
function c(E, f, b) {
|
|
7789
7789
|
var d = f.gf, x = f.g._hasOpacity, S = f.s.v, p = f.e.v;
|
|
7790
|
-
if (f.o._mdf ||
|
|
7791
|
-
var m =
|
|
7790
|
+
if (f.o._mdf || b) {
|
|
7791
|
+
var m = E.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
7792
7792
|
f.style.pElem.setAttribute(m, f.o.v);
|
|
7793
7793
|
}
|
|
7794
|
-
if (f.s._mdf ||
|
|
7795
|
-
var y =
|
|
7794
|
+
if (f.s._mdf || b) {
|
|
7795
|
+
var y = E.t === 1 ? "x1" : "cx", g = y === "x1" ? "y1" : "cy";
|
|
7796
7796
|
d.setAttribute(y, S[0]), d.setAttribute(g, S[1]), x && !f.g._collapsable && (f.of.setAttribute(y, S[0]), f.of.setAttribute(g, S[1]));
|
|
7797
7797
|
}
|
|
7798
7798
|
var k, P, _, j;
|
|
7799
|
-
if (f.g._cmdf ||
|
|
7799
|
+
if (f.g._cmdf || b) {
|
|
7800
7800
|
k = f.cst;
|
|
7801
7801
|
var I = f.g.c;
|
|
7802
7802
|
for (_ = k.length, P = 0; P < _; P += 1)
|
|
7803
7803
|
j = k[P], j.setAttribute("offset", I[P * 4] + "%"), j.setAttribute("stop-color", "rgb(" + I[P * 4 + 1] + "," + I[P * 4 + 2] + "," + I[P * 4 + 3] + ")");
|
|
7804
7804
|
}
|
|
7805
|
-
if (x && (f.g._omdf ||
|
|
7805
|
+
if (x && (f.g._omdf || b)) {
|
|
7806
7806
|
var $ = f.g.o;
|
|
7807
7807
|
for (f.g._collapsable ? k = f.cst : k = f.ost, _ = k.length, P = 0; P < _; P += 1)
|
|
7808
7808
|
j = k[P], f.g._collapsable || j.setAttribute("offset", $[P * 2] + "%"), j.setAttribute("stop-opacity", $[P * 2 + 1]);
|
|
7809
7809
|
}
|
|
7810
|
-
if (
|
|
7811
|
-
(f.e._mdf ||
|
|
7810
|
+
if (E.t === 1)
|
|
7811
|
+
(f.e._mdf || b) && (d.setAttribute("x2", p[0]), d.setAttribute("y2", p[1]), x && !f.g._collapsable && (f.of.setAttribute("x2", p[0]), f.of.setAttribute("y2", p[1])));
|
|
7812
7812
|
else {
|
|
7813
7813
|
var O;
|
|
7814
|
-
if ((f.s._mdf || f.e._mdf ||
|
|
7814
|
+
if ((f.s._mdf || f.e._mdf || b) && (O = Math.sqrt(Math.pow(S[0] - p[0], 2) + Math.pow(S[1] - p[1], 2)), d.setAttribute("r", O), x && !f.g._collapsable && f.of.setAttribute("r", O)), f.e._mdf || f.h._mdf || f.a._mdf || b) {
|
|
7815
7815
|
O || (O = Math.sqrt(Math.pow(S[0] - p[0], 2) + Math.pow(S[1] - p[1], 2)));
|
|
7816
7816
|
var B = Math.atan2(p[1] - S[1], p[0] - S[0]), z = f.h.v;
|
|
7817
7817
|
z >= 1 ? z = 0.99 : z <= -1 && (z = -0.99);
|
|
@@ -7820,9 +7820,9 @@ function requireLottie() {
|
|
|
7820
7820
|
}
|
|
7821
7821
|
}
|
|
7822
7822
|
}
|
|
7823
|
-
function u(
|
|
7823
|
+
function u(E, f, b) {
|
|
7824
7824
|
var d = f.style, x = f.d;
|
|
7825
|
-
x && (x._mdf ||
|
|
7825
|
+
x && (x._mdf || b) && x.dashStr && (d.pElem.setAttribute("stroke-dasharray", x.dashStr), d.pElem.setAttribute("stroke-dashoffset", x.dashoffset[0])), f.c && (f.c._mdf || b) && d.pElem.setAttribute("stroke", "rgb(" + bmFloor(f.c.v[0]) + "," + bmFloor(f.c.v[1]) + "," + bmFloor(f.c.v[2]) + ")"), (f.o._mdf || b) && d.pElem.setAttribute("stroke-opacity", f.o.v), (f.w._mdf || b) && (d.pElem.setAttribute("stroke-width", f.w.v), d.msElem && d.msElem.setAttribute("stroke-width", f.w.v));
|
|
7826
7826
|
}
|
|
7827
7827
|
return r;
|
|
7828
7828
|
}();
|
|
@@ -7890,7 +7890,7 @@ function requireLottie() {
|
|
|
7890
7890
|
this.dynamicProperties[t].getValue();
|
|
7891
7891
|
this.renderModifiers();
|
|
7892
7892
|
}, SVGShapeElement.prototype.searchShapes = function(t, e, r, i, s, n, a) {
|
|
7893
|
-
var l = [].concat(n), o, c = t.length - 1, u,
|
|
7893
|
+
var l = [].concat(n), o, c = t.length - 1, u, E, f = [], b = [], d, x, S;
|
|
7894
7894
|
for (o = c; o >= 0; o -= 1) {
|
|
7895
7895
|
if (S = this.searchProcessedElement(t[o]), S ? e[o] = r[S - 1] : t[o]._render = a, t[o].ty === "fl" || t[o].ty === "st" || t[o].ty === "gf" || t[o].ty === "gs" || t[o].ty === "no")
|
|
7896
7896
|
S ? e[o].style.closed = !1 : e[o] = this.createStyleElement(t[o], s), t[o]._render && e[o].style.pElem.parentNode !== i && i.appendChild(e[o].style.pElem), f.push(e[o].style);
|
|
@@ -7898,16 +7898,16 @@ function requireLottie() {
|
|
|
7898
7898
|
if (!S)
|
|
7899
7899
|
e[o] = this.createGroupElement(t[o]);
|
|
7900
7900
|
else
|
|
7901
|
-
for (
|
|
7901
|
+
for (E = e[o].it.length, u = 0; u < E; u += 1)
|
|
7902
7902
|
e[o].prevViewData[u] = e[o].it[u];
|
|
7903
7903
|
this.searchShapes(t[o].it, e[o].it, e[o].prevViewData, e[o].gr, s + 1, l, a), t[o]._render && e[o].gr.parentNode !== i && i.appendChild(e[o].gr);
|
|
7904
|
-
} else t[o].ty === "tr" ? (S || (e[o] = this.createTransformElement(t[o], i)), d = e[o].transform, l.push(d)) : t[o].ty === "sh" || t[o].ty === "rc" || t[o].ty === "el" || t[o].ty === "sr" ? (S || (e[o] = this.createShapeElement(t[o], l, s)), this.setElementStyles(e[o])) : t[o].ty === "tm" || t[o].ty === "rd" || t[o].ty === "ms" || t[o].ty === "pb" || t[o].ty === "zz" || t[o].ty === "op" ? (S ? (x = e[o], x.closed = !1) : (x = ShapeModifiers.getModifier(t[o].ty), x.init(this, t[o]), e[o] = x, this.shapeModifiers.push(x)),
|
|
7904
|
+
} else t[o].ty === "tr" ? (S || (e[o] = this.createTransformElement(t[o], i)), d = e[o].transform, l.push(d)) : t[o].ty === "sh" || t[o].ty === "rc" || t[o].ty === "el" || t[o].ty === "sr" ? (S || (e[o] = this.createShapeElement(t[o], l, s)), this.setElementStyles(e[o])) : t[o].ty === "tm" || t[o].ty === "rd" || t[o].ty === "ms" || t[o].ty === "pb" || t[o].ty === "zz" || t[o].ty === "op" ? (S ? (x = e[o], x.closed = !1) : (x = ShapeModifiers.getModifier(t[o].ty), x.init(this, t[o]), e[o] = x, this.shapeModifiers.push(x)), b.push(x)) : t[o].ty === "rp" && (S ? (x = e[o], x.closed = !0) : (x = ShapeModifiers.getModifier(t[o].ty), e[o] = x, x.init(this, t, o, e), this.shapeModifiers.push(x), a = !1), b.push(x));
|
|
7905
7905
|
this.addProcessedElement(t[o], o + 1);
|
|
7906
7906
|
}
|
|
7907
7907
|
for (c = f.length, o = 0; o < c; o += 1)
|
|
7908
7908
|
f[o].closed = !0;
|
|
7909
|
-
for (c =
|
|
7910
|
-
|
|
7909
|
+
for (c = b.length, o = 0; o < c; o += 1)
|
|
7910
|
+
b[o].closed = !0;
|
|
7911
7911
|
}, SVGShapeElement.prototype.renderInnerContent = function() {
|
|
7912
7912
|
this.renderModifiers();
|
|
7913
7913
|
var t, e = this.stylesList.length;
|
|
@@ -8005,7 +8005,7 @@ function requireLottie() {
|
|
|
8005
8005
|
return e;
|
|
8006
8006
|
}, TextProperty.prototype.completeTextData = function(t) {
|
|
8007
8007
|
t.__complete = !0;
|
|
8008
|
-
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, n, a, l = 0, o, c = r.m.g, u = 0,
|
|
8008
|
+
var e = this.elem.globalData.fontManager, r = this.data, i = [], s, n, a, l = 0, o, c = r.m.g, u = 0, E = 0, f = 0, b = [], d = 0, x = 0, S, p, m = e.getFontByName(t.f), y, g = 0, k = getFontProperties(m);
|
|
8009
8009
|
t.fWeight = k.weight, t.fStyle = k.style, t.finalSize = t.s, t.finalText = this.buildFinalText(t.t), n = t.finalText.length, t.finalLineHeight = t.lh;
|
|
8010
8010
|
var P = t.tr / 1e3 * t.finalSize, _;
|
|
8011
8011
|
if (t.sz)
|
|
@@ -8019,7 +8019,7 @@ function requireLottie() {
|
|
|
8019
8019
|
d = -P, g = 0;
|
|
8020
8020
|
var H = 0, L;
|
|
8021
8021
|
for (s = 0; s < n; s += 1)
|
|
8022
|
-
if (a = !1, L = t.finalText[s], _ = L.charCodeAt(0), _ === 13 || _ === 3 ? (H = 0,
|
|
8022
|
+
if (a = !1, L = t.finalText[s], _ = L.charCodeAt(0), _ === 13 || _ === 3 ? (H = 0, b.push(d), x = d > x ? d : x, d = -2 * P, o = "", a = !0, f += 1) : o = L, e.chars ? (y = e.getCharData(L, m.fStyle, e.getFontByName(t.f).fFamily), g = a ? 0 : y.w * t.finalSize / 100) : g = e.measureText(o, t.f, t.finalSize), L === " " ? H += g + P : (d += g + P + H, H = 0), i.push({
|
|
8023
8023
|
l: g,
|
|
8024
8024
|
an: g,
|
|
8025
8025
|
add: u,
|
|
@@ -8030,19 +8030,19 @@ function requireLottie() {
|
|
|
8030
8030
|
animatorJustifyOffset: 0
|
|
8031
8031
|
}), c == 2) {
|
|
8032
8032
|
if (u += g, o === "" || o === " " || s === n - 1) {
|
|
8033
|
-
for ((o === "" || o === " ") && (u -= g);
|
|
8034
|
-
i[
|
|
8033
|
+
for ((o === "" || o === " ") && (u -= g); E <= s; )
|
|
8034
|
+
i[E].an = u, i[E].ind = l, i[E].extra = g, E += 1;
|
|
8035
8035
|
l += 1, u = 0;
|
|
8036
8036
|
}
|
|
8037
8037
|
} else if (c == 3) {
|
|
8038
8038
|
if (u += g, o === "" || s === n - 1) {
|
|
8039
|
-
for (o === "" && (u -= g);
|
|
8040
|
-
i[
|
|
8039
|
+
for (o === "" && (u -= g); E <= s; )
|
|
8040
|
+
i[E].an = u, i[E].ind = l, i[E].extra = g, E += 1;
|
|
8041
8041
|
u = 0, l += 1;
|
|
8042
8042
|
}
|
|
8043
8043
|
} else
|
|
8044
8044
|
i[l].ind = l, i[l].extra = 0, l += 1;
|
|
8045
|
-
if (t.l = i, x = d > x ? d : x,
|
|
8045
|
+
if (t.l = i, x = d > x ? d : x, b.push(d), t.sz)
|
|
8046
8046
|
t.boxWidth = t.sz[0], t.justifyOffset = 0;
|
|
8047
8047
|
else
|
|
8048
8048
|
switch (t.boxWidth = x, t.j) {
|
|
@@ -8055,7 +8055,7 @@ function requireLottie() {
|
|
|
8055
8055
|
default:
|
|
8056
8056
|
t.justifyOffset = 0;
|
|
8057
8057
|
}
|
|
8058
|
-
t.lineWidths =
|
|
8058
|
+
t.lineWidths = b;
|
|
8059
8059
|
var A = r.a, M, C;
|
|
8060
8060
|
p = A.length;
|
|
8061
8061
|
var R, F, T = [];
|
|
@@ -8103,24 +8103,24 @@ function requireLottie() {
|
|
|
8103
8103
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
8104
8104
|
var l = 0, o = 0, c = 1, u = 1;
|
|
8105
8105
|
this.ne.v > 0 ? l = this.ne.v / 100 : o = -this.ne.v / 100, this.xe.v > 0 ? c = 1 - this.xe.v / 100 : u = 1 + this.xe.v / 100;
|
|
8106
|
-
var
|
|
8106
|
+
var E = BezierFactory.getBezierEasing(l, o, c, u).get, f = 0, b = this.finalS, d = this.finalE, x = this.data.sh;
|
|
8107
8107
|
if (x === 2)
|
|
8108
|
-
d ===
|
|
8108
|
+
d === b ? f = a >= d ? 1 : 0 : f = t(0, e(0.5 / (d - b) + (a - b) / (d - b), 1)), f = E(f);
|
|
8109
8109
|
else if (x === 3)
|
|
8110
|
-
d ===
|
|
8110
|
+
d === b ? f = a >= d ? 0 : 1 : f = 1 - t(0, e(0.5 / (d - b) + (a - b) / (d - b), 1)), f = E(f);
|
|
8111
8111
|
else if (x === 4)
|
|
8112
|
-
d ===
|
|
8112
|
+
d === b ? f = 0 : (f = t(0, e(0.5 / (d - b) + (a - b) / (d - b), 1)), f < 0.5 ? f *= 2 : f = 1 - 2 * (f - 0.5)), f = E(f);
|
|
8113
8113
|
else if (x === 5) {
|
|
8114
|
-
if (d ===
|
|
8114
|
+
if (d === b)
|
|
8115
8115
|
f = 0;
|
|
8116
8116
|
else {
|
|
8117
|
-
var S = d -
|
|
8118
|
-
a = e(t(0, a + 0.5 -
|
|
8117
|
+
var S = d - b;
|
|
8118
|
+
a = e(t(0, a + 0.5 - b), d - b);
|
|
8119
8119
|
var p = -S / 2 + a, m = S / 2;
|
|
8120
8120
|
f = Math.sqrt(1 - p * p / (m * m));
|
|
8121
8121
|
}
|
|
8122
|
-
f =
|
|
8123
|
-
} else x === 6 ? (d ===
|
|
8122
|
+
f = E(f);
|
|
8123
|
+
} else x === 6 ? (d === b ? f = 0 : (a = e(t(0, a + 0.5 - b), d - b), f = (1 + Math.cos(Math.PI + Math.PI * 2 * a / (d - b))) / 2), f = E(f)) : (a >= r(b) && (a - b < 0 ? f = t(0, e(e(d, 1) - (b - a), 1)) : f = t(0, e(d - a, 1))), f = E(f));
|
|
8124
8124
|
if (this.sm.v !== 100) {
|
|
8125
8125
|
var y = this.sm.v * 0.01;
|
|
8126
8126
|
y === 0 && (y = 1e-8);
|
|
@@ -8133,8 +8133,8 @@ function requireLottie() {
|
|
|
8133
8133
|
this.iterateDynamicProperties(), this._mdf = a || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, a && this.data.r === 2 && (this.e.v = this._currentTextLength);
|
|
8134
8134
|
var l = this.data.r === 2 ? 1 : 100 / this.data.totalChars, o = this.o.v / l, c = this.s.v / l + o, u = this.e.v / l + o;
|
|
8135
8135
|
if (c > u) {
|
|
8136
|
-
var
|
|
8137
|
-
c = u, u =
|
|
8136
|
+
var E = c;
|
|
8137
|
+
c = u, u = E;
|
|
8138
8138
|
}
|
|
8139
8139
|
this.finalS = c, this.finalE = u;
|
|
8140
8140
|
}
|
|
@@ -8189,31 +8189,31 @@ function requireLottie() {
|
|
|
8189
8189
|
}, TextAnimatorProperty.prototype.getMeasures = function(t, e) {
|
|
8190
8190
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
8191
8191
|
this._isFirstFrame = !1;
|
|
8192
|
-
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, l = this.renderedLetters.length, o, c, u,
|
|
8192
|
+
var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, l = this.renderedLetters.length, o, c, u, E, f = t.l, b, d, x, S, p, m, y, g, k, P, _, j, I, $, O;
|
|
8193
8193
|
if (this._hasMaskedPath) {
|
|
8194
8194
|
if (O = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
8195
8195
|
var B = O.v;
|
|
8196
|
-
this._pathData.r.v && (B = B.reverse()),
|
|
8196
|
+
this._pathData.r.v && (B = B.reverse()), b = {
|
|
8197
8197
|
tLength: 0,
|
|
8198
8198
|
segments: []
|
|
8199
|
-
},
|
|
8199
|
+
}, E = B._length - 1;
|
|
8200
8200
|
var z;
|
|
8201
|
-
for (j = 0, u = 0; u <
|
|
8202
|
-
z = bez.buildBezierData(B.v[u], B.v[u + 1], [B.o[u][0] - B.v[u][0], B.o[u][1] - B.v[u][1]], [B.i[u + 1][0] - B.v[u + 1][0], B.i[u + 1][1] - B.v[u + 1][1]]),
|
|
8203
|
-
u =
|
|
8201
|
+
for (j = 0, u = 0; u < E; u += 1)
|
|
8202
|
+
z = bez.buildBezierData(B.v[u], B.v[u + 1], [B.o[u][0] - B.v[u][0], B.o[u][1] - B.v[u][1]], [B.i[u + 1][0] - B.v[u + 1][0], B.i[u + 1][1] - B.v[u + 1][1]]), b.tLength += z.segmentLength, b.segments.push(z), j += z.segmentLength;
|
|
8203
|
+
u = E, O.v.c && (z = bez.buildBezierData(B.v[u], B.v[0], [B.o[u][0] - B.v[u][0], B.o[u][1] - B.v[u][1]], [B.i[0][0] - B.v[0][0], B.i[0][1] - B.v[0][1]]), b.tLength += z.segmentLength, b.segments.push(z), j += z.segmentLength), this._pathData.pi = b;
|
|
8204
8204
|
}
|
|
8205
|
-
if (
|
|
8206
|
-
for (
|
|
8205
|
+
if (b = this._pathData.pi, d = this._pathData.f.v, y = 0, m = 1, S = 0, p = !0, P = b.segments, d < 0 && O.v.c)
|
|
8206
|
+
for (b.tLength < Math.abs(d) && (d = -Math.abs(d) % b.tLength), y = P.length - 1, k = P[y].points, m = k.length - 1; d < 0; )
|
|
8207
8207
|
d += k[m].partialLength, m -= 1, m < 0 && (y -= 1, k = P[y].points, m = k.length - 1);
|
|
8208
8208
|
k = P[y].points, g = k[m - 1], x = k[m], _ = x.partialLength;
|
|
8209
8209
|
}
|
|
8210
|
-
|
|
8210
|
+
E = f.length, o = 0, c = 0;
|
|
8211
8211
|
var H = t.finalSize * 1.2 * 0.714, L = !0, A, M, C, R, F;
|
|
8212
8212
|
R = i.length;
|
|
8213
8213
|
var T, D = -1, V, G, Y, K = d, X = y, Q = m, it = -1, nt, st, ht, tt, q, at, ft, ut, mt = "", pt = this.defaultPropsArray, ct;
|
|
8214
8214
|
if (t.j === 2 || t.j === 1) {
|
|
8215
8215
|
var ot = 0, lt = 0, xt = t.j === 2 ? -0.5 : -1, dt = 0, vt = !0;
|
|
8216
|
-
for (u = 0; u <
|
|
8216
|
+
for (u = 0; u < E; u += 1)
|
|
8217
8217
|
if (f[u].n) {
|
|
8218
8218
|
for (ot && (ot += lt); dt < u; )
|
|
8219
8219
|
f[dt].animatorJustifyOffset = ot, dt += 1;
|
|
@@ -8226,7 +8226,7 @@ function requireLottie() {
|
|
|
8226
8226
|
for (ot && (ot += lt); dt < u; )
|
|
8227
8227
|
f[dt].animatorJustifyOffset = ot, dt += 1;
|
|
8228
8228
|
}
|
|
8229
|
-
for (u = 0; u <
|
|
8229
|
+
for (u = 0; u < E; u += 1) {
|
|
8230
8230
|
if (n.reset(), nt = 1, f[u].n)
|
|
8231
8231
|
o = 0, c += t.yOffset, c += L ? 1 : 0, d = K, L = !1, this._hasMaskedPath && (y = X, m = Q, k = P[y].points, g = k[m - 1], x = k[m], _ = x.partialLength, S = 0), mt = "", ut = "", at = "", ct = "", pt = this.defaultPropsArray;
|
|
8232
8232
|
else {
|
|
@@ -8246,7 +8246,7 @@ function requireLottie() {
|
|
|
8246
8246
|
var yt = 0;
|
|
8247
8247
|
for (C = 0; C < R; C += 1)
|
|
8248
8248
|
A = i[C].a, A.p.propType && (M = i[C].s, T = M.getMult(f[u].anIndexes[C], s.a[C].s.totalChars), T.length ? yt += A.p.v[0] * T[0] : yt += A.p.v[0] * T), A.a.propType && (M = i[C].s, T = M.getMult(f[u].anIndexes[C], s.a[C].s.totalChars), T.length ? yt += A.a.v[0] * T[0] : yt += A.a.v[0] * T);
|
|
8249
|
-
for (p = !0, this._pathData.a.v && (d = f[0].an * 0.5 + (j - this._pathData.f.v - f[0].an * 0.5 - f[f.length - 1].an * 0.5) * D / (
|
|
8249
|
+
for (p = !0, this._pathData.a.v && (d = f[0].an * 0.5 + (j - this._pathData.f.v - f[0].an * 0.5 - f[f.length - 1].an * 0.5) * D / (E - 1), d += this._pathData.f.v); p; )
|
|
8250
8250
|
S + _ >= d + yt || !k ? (I = (d + yt - S) / x.partialLength, G = g.point[0] + (x.point[0] - g.point[0]) * I, Y = g.point[1] + (x.point[1] - g.point[1]) * I, n.translate(-r[0] * f[u].an * 5e-3, -(r[1] * H) * 0.01), p = !1) : k && (S += x.partialLength, m += 1, m >= k.length && (m = 0, y += 1, P[y] ? k = P[y].points : O.v.c ? (m = 0, y = 0, k = P[y].points) : (S -= x.partialLength, k = null)), k && (g = x, x = k[m], _ = x.partialLength));
|
|
8251
8251
|
V = f[u].an / 2 - f[u].add, n.translate(-V, 0, 0);
|
|
8252
8252
|
} else
|
|
@@ -8365,8 +8365,8 @@ function requireLottie() {
|
|
|
8365
8365
|
this.layerElement.setAttribute("aria-label", r.t);
|
|
8366
8366
|
var a = r.l || [], l = !!this.globalData.fontManager.chars;
|
|
8367
8367
|
e = a.length;
|
|
8368
|
-
var o, c = this.mHelper, u = "",
|
|
8369
|
-
if (
|
|
8368
|
+
var o, c = this.mHelper, u = "", E = this.data.singleShape, f = 0, b = 0, d = !0, x = r.tr * 1e-3 * r.finalSize;
|
|
8369
|
+
if (E && !l && !r.sz) {
|
|
8370
8370
|
var S = this.textContainer, p = "start";
|
|
8371
8371
|
switch (r.j) {
|
|
8372
8372
|
case 1:
|
|
@@ -8381,11 +8381,11 @@ function requireLottie() {
|
|
|
8381
8381
|
}
|
|
8382
8382
|
S.setAttribute("text-anchor", p), S.setAttribute("letter-spacing", x);
|
|
8383
8383
|
var m = this.buildTextContents(r.finalText);
|
|
8384
|
-
for (e = m.length,
|
|
8385
|
-
o = this.textSpans[t].span || createNS("tspan"), o.textContent = m[t], o.setAttribute("x", 0), o.setAttribute("y",
|
|
8384
|
+
for (e = m.length, b = r.ps ? r.ps[1] + r.ascent : 0, t = 0; t < e; t += 1)
|
|
8385
|
+
o = this.textSpans[t].span || createNS("tspan"), o.textContent = m[t], o.setAttribute("x", 0), o.setAttribute("y", b), o.style.display = "inherit", S.appendChild(o), this.textSpans[t] || (this.textSpans[t] = {
|
|
8386
8386
|
span: null,
|
|
8387
8387
|
glyph: null
|
|
8388
|
-
}), this.textSpans[t].span = o,
|
|
8388
|
+
}), this.textSpans[t].span = o, b += r.finalLineHeight;
|
|
8389
8389
|
this.layerElement.appendChild(S);
|
|
8390
8390
|
} else {
|
|
8391
8391
|
var y = this.textSpans.length, g;
|
|
@@ -8394,7 +8394,7 @@ function requireLottie() {
|
|
|
8394
8394
|
span: null,
|
|
8395
8395
|
childSpan: null,
|
|
8396
8396
|
glyph: null
|
|
8397
|
-
}), !l || !
|
|
8397
|
+
}), !l || !E || t === 0) {
|
|
8398
8398
|
if (o = y > t ? this.textSpans[t].span : createNS(l ? "g" : "text"), y <= t) {
|
|
8399
8399
|
if (o.setAttribute("stroke-linecap", "butt"), o.setAttribute("stroke-linejoin", "round"), o.setAttribute("stroke-miterlimit", "4"), this.textSpans[t].span = o, l) {
|
|
8400
8400
|
var k = createNS("g");
|
|
@@ -8404,7 +8404,7 @@ function requireLottie() {
|
|
|
8404
8404
|
}
|
|
8405
8405
|
o.style.display = "inherit";
|
|
8406
8406
|
}
|
|
8407
|
-
if (c.reset(),
|
|
8407
|
+
if (c.reset(), E && (a[t].n && (f = -x, b += r.yOffset, b += d ? 1 : 0, d = !1), this.applyTextPropertiesToMatrix(r, c, a[t].line, f, b), f += a[t].l || 0, f += x), l) {
|
|
8408
8408
|
g = this.globalData.fontManager.getCharData(r.finalText[t], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
|
|
8409
8409
|
var P;
|
|
8410
8410
|
if (g.t === 1)
|
|
@@ -8419,9 +8419,9 @@ function requireLottie() {
|
|
|
8419
8419
|
}
|
|
8420
8420
|
this.textSpans[t].glyph = P, P._debug = !0, P.prepareFrame(0), P.renderFrame(), this.textSpans[t].childSpan.appendChild(P.layerElement), g.t === 1 && this.textSpans[t].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
|
|
8421
8421
|
} else
|
|
8422
|
-
|
|
8422
|
+
E && o.setAttribute("transform", "translate(" + c.props[12] + "," + c.props[13] + ")"), o.textContent = a[t].val, o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
8423
8423
|
}
|
|
8424
|
-
|
|
8424
|
+
E && o && o.setAttribute("d", u);
|
|
8425
8425
|
}
|
|
8426
8426
|
for (; t < this.textSpans.length; )
|
|
8427
8427
|
this.textSpans[t].span.style.display = "none", t += 1;
|
|
@@ -8917,18 +8917,18 @@ function requireLottie() {
|
|
|
8917
8917
|
for (e = 0; e < r; e += 1)
|
|
8918
8918
|
t[e].closed = !0;
|
|
8919
8919
|
}, CVShapeElement.prototype.searchShapes = function(t, e, r, i, s) {
|
|
8920
|
-
var n, a = t.length - 1, l, o, c = [], u = [],
|
|
8920
|
+
var n, a = t.length - 1, l, o, c = [], u = [], E, f, b, d = [].concat(s);
|
|
8921
8921
|
for (n = a; n >= 0; n -= 1) {
|
|
8922
|
-
if (
|
|
8923
|
-
|
|
8922
|
+
if (E = this.searchProcessedElement(t[n]), E ? e[n] = r[E - 1] : t[n]._shouldRender = i, t[n].ty === "fl" || t[n].ty === "st" || t[n].ty === "gf" || t[n].ty === "gs")
|
|
8923
|
+
E ? e[n].style.closed = !1 : e[n] = this.createStyleElement(t[n], d), c.push(e[n].style);
|
|
8924
8924
|
else if (t[n].ty === "gr") {
|
|
8925
|
-
if (!
|
|
8925
|
+
if (!E)
|
|
8926
8926
|
e[n] = this.createGroupElement(t[n]);
|
|
8927
8927
|
else
|
|
8928
8928
|
for (o = e[n].it.length, l = 0; l < o; l += 1)
|
|
8929
8929
|
e[n].prevViewData[l] = e[n].it[l];
|
|
8930
8930
|
this.searchShapes(t[n].it, e[n].it, e[n].prevViewData, i, d);
|
|
8931
|
-
} else t[n].ty === "tr" ? (
|
|
8931
|
+
} else t[n].ty === "tr" ? (E || (b = this.createTransformElement(t[n]), e[n] = b), d.push(e[n]), this.addTransformToStyleList(e[n])) : t[n].ty === "sh" || t[n].ty === "rc" || t[n].ty === "el" || t[n].ty === "sr" ? E || (e[n] = this.createShapeElement(t[n])) : t[n].ty === "tm" || t[n].ty === "rd" || t[n].ty === "pb" || t[n].ty === "zz" || t[n].ty === "op" ? (E ? (f = e[n], f.closed = !1) : (f = ShapeModifiers.getModifier(t[n].ty), f.init(this, t[n]), e[n] = f, this.shapeModifiers.push(f)), u.push(f)) : t[n].ty === "rp" && (E ? (f = e[n], f.closed = !0) : (f = ShapeModifiers.getModifier(t[n].ty), e[n] = f, f.init(this, t, n, e), this.shapeModifiers.push(f), i = !1), u.push(f));
|
|
8932
8932
|
this.addProcessedElement(t[n], n + 1);
|
|
8933
8933
|
}
|
|
8934
8934
|
for (this.removeTransformFromStyleList(), this.closeStyles(c), a = u.length, n = 0; n < a; n += 1)
|
|
@@ -8938,15 +8938,15 @@ function requireLottie() {
|
|
|
8938
8938
|
}, CVShapeElement.prototype.renderShapeTransform = function(t, e) {
|
|
8939
8939
|
(t._opMdf || e.op._mdf || this._isFirstFrame) && (e.opacity = t.opacity, e.opacity *= e.op.v, e._opMdf = !0);
|
|
8940
8940
|
}, CVShapeElement.prototype.drawLayer = function() {
|
|
8941
|
-
var t, e = this.stylesList.length, r, i, s, n, a, l, o = this.globalData.renderer, c = this.globalData.canvasContext, u,
|
|
8941
|
+
var t, e = this.stylesList.length, r, i, s, n, a, l, o = this.globalData.renderer, c = this.globalData.canvasContext, u, E;
|
|
8942
8942
|
for (t = 0; t < e; t += 1)
|
|
8943
|
-
if (
|
|
8944
|
-
for (o.save(), a =
|
|
8945
|
-
for ((u === "st" || u === "gs") && (c.beginPath(),
|
|
8943
|
+
if (E = this.stylesList[t], u = E.type, !((u === "st" || u === "gs") && E.wi === 0 || !E.data._shouldRender || E.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
|
|
8944
|
+
for (o.save(), a = E.elements, u === "st" || u === "gs" ? (o.ctxStrokeStyle(u === "st" ? E.co : E.grd), o.ctxLineWidth(E.wi), o.ctxLineCap(E.lc), o.ctxLineJoin(E.lj), o.ctxMiterLimit(E.ml || 0)) : o.ctxFillStyle(u === "fl" ? E.co : E.grd), o.ctxOpacity(E.coOp), u !== "st" && u !== "gs" && c.beginPath(), o.ctxTransform(E.preTransforms.finalTransform.props), i = a.length, r = 0; r < i; r += 1) {
|
|
8945
|
+
for ((u === "st" || u === "gs") && (c.beginPath(), E.da && (c.setLineDash(E.da), c.lineDashOffset = E.do)), l = a[r].trNodes, n = l.length, s = 0; s < n; s += 1)
|
|
8946
8946
|
l[s].t === "m" ? c.moveTo(l[s].p[0], l[s].p[1]) : l[s].t === "c" ? c.bezierCurveTo(l[s].pts[0], l[s].pts[1], l[s].pts[2], l[s].pts[3], l[s].pts[4], l[s].pts[5]) : c.closePath();
|
|
8947
|
-
(u === "st" || u === "gs") && (o.ctxStroke(),
|
|
8947
|
+
(u === "st" || u === "gs") && (o.ctxStroke(), E.da && c.setLineDash(this.dashResetter));
|
|
8948
8948
|
}
|
|
8949
|
-
u !== "st" && u !== "gs" && this.globalData.renderer.ctxFill(
|
|
8949
|
+
u !== "st" && u !== "gs" && this.globalData.renderer.ctxFill(E.r), o.restore();
|
|
8950
8950
|
}
|
|
8951
8951
|
}, CVShapeElement.prototype.renderShape = function(t, e, r, i) {
|
|
8952
8952
|
var s, n = e.length - 1, a;
|
|
@@ -9000,8 +9000,8 @@ function requireLottie() {
|
|
|
9000
9000
|
else {
|
|
9001
9001
|
var o = Math.sqrt(Math.pow(a[0] - l[0], 2) + Math.pow(a[1] - l[1], 2)), c = Math.atan2(l[1] - a[1], l[0] - a[0]), u = e.h.v;
|
|
9002
9002
|
u >= 1 ? u = 0.99 : u <= -1 && (u = -0.99);
|
|
9003
|
-
var
|
|
9004
|
-
s = n.createRadialGradient(f,
|
|
9003
|
+
var E = o * u, f = Math.cos(c + e.a.v) * E + a[0], b = Math.sin(c + e.a.v) * E + a[1];
|
|
9004
|
+
s = n.createRadialGradient(f, b, 0, a[0], a[1], o);
|
|
9005
9005
|
}
|
|
9006
9006
|
var d, x = t.g.p, S = e.g.c, p = 1;
|
|
9007
9007
|
for (d = 0; d < x; d += 1)
|
|
@@ -9032,13 +9032,13 @@ function requireLottie() {
|
|
|
9032
9032
|
t.sc && (r = !0, this.values.stroke = this.buildColor(t.sc), this.values.sWidth = t.sw);
|
|
9033
9033
|
var i = this.globalData.fontManager.getFontByName(t.f), s, n, a = t.l, l = this.mHelper;
|
|
9034
9034
|
this.stroke = r, this.values.fValue = t.finalSize + "px " + this.globalData.fontManager.getFontByName(t.f).fFamily, n = t.finalText.length;
|
|
9035
|
-
var o, c, u,
|
|
9035
|
+
var o, c, u, E, f, b, d, x, S, p, m = this.data.singleShape, y = t.tr * 1e-3 * t.finalSize, g = 0, k = 0, P = !0, _ = 0;
|
|
9036
9036
|
for (s = 0; s < n; s += 1) {
|
|
9037
9037
|
o = this.globalData.fontManager.getCharData(t.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), c = o && o.data || {}, l.reset(), m && a[s].n && (g = -y, k += t.yOffset, k += P ? 1 : 0, P = !1), f = c.shapes ? c.shapes[0].it : [], d = f.length, l.scale(t.finalSize / 100, t.finalSize / 100), m && this.applyTextPropertiesToMatrix(t, l, a[s].line, g, k), S = createSizedArray(d - 1);
|
|
9038
9038
|
var j = 0;
|
|
9039
|
-
for (
|
|
9040
|
-
if (f[
|
|
9041
|
-
for (
|
|
9039
|
+
for (b = 0; b < d; b += 1)
|
|
9040
|
+
if (f[b].ty === "sh") {
|
|
9041
|
+
for (E = f[b].ks.k.i.length, x = f[b].ks.k, p = [], u = 1; u < E; u += 1)
|
|
9042
9042
|
u === 1 && p.push(l.applyToX(x.v[0][0], x.v[0][1], 0), l.applyToY(x.v[0][0], x.v[0][1], 0)), p.push(l.applyToX(x.o[u - 1][0], x.o[u - 1][1], 0), l.applyToY(x.o[u - 1][0], x.o[u - 1][1], 0), l.applyToX(x.i[u][0], x.i[u][1], 0), l.applyToY(x.i[u][0], x.i[u][1], 0), l.applyToX(x.v[u][0], x.v[u][1], 0), l.applyToY(x.v[u][0], x.v[u][1], 0));
|
|
9043
9043
|
p.push(l.applyToX(x.o[u - 1][0], x.o[u - 1][1], 0), l.applyToY(x.o[u - 1][0], x.o[u - 1][1], 0), l.applyToX(x.i[0][0], x.i[0][1], 0), l.applyToY(x.i[0][0], x.i[0][1], 0), l.applyToX(x.v[0][0], x.v[0][1], 0), l.applyToY(x.v[0][0], x.v[0][1], 0)), S[j] = p, j += 1;
|
|
9044
9044
|
}
|
|
@@ -9052,18 +9052,18 @@ function requireLottie() {
|
|
|
9052
9052
|
t.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
|
|
9053
9053
|
var e, r, i, s, n, a, l = this.textAnimator.renderedLetters, o = this.textProperty.currentData.l;
|
|
9054
9054
|
r = o.length;
|
|
9055
|
-
var c, u = null,
|
|
9055
|
+
var c, u = null, E = null, f = null, b, d, x = this.globalData.renderer;
|
|
9056
9056
|
for (e = 0; e < r; e += 1)
|
|
9057
9057
|
if (!o[e].n) {
|
|
9058
9058
|
if (c = l[e], c && (x.save(), x.ctxTransform(c.p), x.ctxOpacity(c.o)), this.fill) {
|
|
9059
|
-
for (c && c.fc ? u !== c.fc && (x.ctxFillStyle(c.fc), u = c.fc) : u !== this.values.fill && (u = this.values.fill, x.ctxFillStyle(this.values.fill)),
|
|
9060
|
-
for (d =
|
|
9059
|
+
for (c && c.fc ? u !== c.fc && (x.ctxFillStyle(c.fc), u = c.fc) : u !== this.values.fill && (u = this.values.fill, x.ctxFillStyle(this.values.fill)), b = this.textSpans[e].elem, s = b.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
9060
|
+
for (d = b[i], a = d.length, this.globalData.canvasContext.moveTo(d[0], d[1]), n = 2; n < a; n += 6)
|
|
9061
9061
|
this.globalData.canvasContext.bezierCurveTo(d[n], d[n + 1], d[n + 2], d[n + 3], d[n + 4], d[n + 5]);
|
|
9062
9062
|
this.globalData.canvasContext.closePath(), x.ctxFill();
|
|
9063
9063
|
}
|
|
9064
9064
|
if (this.stroke) {
|
|
9065
|
-
for (c && c.sw ? f !== c.sw && (f = c.sw, x.ctxLineWidth(c.sw)) : f !== this.values.sWidth && (f = this.values.sWidth, x.ctxLineWidth(this.values.sWidth)), c && c.sc ?
|
|
9066
|
-
for (d =
|
|
9065
|
+
for (c && c.sw ? f !== c.sw && (f = c.sw, x.ctxLineWidth(c.sw)) : f !== this.values.sWidth && (f = this.values.sWidth, x.ctxLineWidth(this.values.sWidth)), c && c.sc ? E !== c.sc && (E = c.sc, x.ctxStrokeStyle(c.sc)) : E !== this.values.stroke && (E = this.values.stroke, x.ctxStrokeStyle(this.values.stroke)), b = this.textSpans[e].elem, s = b.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
|
|
9066
|
+
for (d = b[i], a = d.length, this.globalData.canvasContext.moveTo(d[0], d[1]), n = 2; n < a; n += 6)
|
|
9067
9067
|
this.globalData.canvasContext.bezierCurveTo(d[n], d[n + 1], d[n + 2], d[n + 3], d[n + 4], d[n + 5]);
|
|
9068
9068
|
this.globalData.canvasContext.closePath(), x.ctxStroke();
|
|
9069
9069
|
}
|
|
@@ -9397,8 +9397,8 @@ function requireLottie() {
|
|
|
9397
9397
|
width: 0,
|
|
9398
9398
|
height: 0
|
|
9399
9399
|
}, HShapeElement.prototype.getBoundsOfCurve = function(t, e, r, i) {
|
|
9400
|
-
for (var s = [[t[0], i[0]], [t[1], i[1]]], n, a, l, o, c, u,
|
|
9401
|
-
a = 6 * t[f] - 12 * e[f] + 6 * r[f], n = -3 * t[f] + 9 * e[f] - 9 * r[f] + 3 * i[f], l = 3 * e[f] - 3 * t[f], a |= 0, n |= 0, l |= 0, n === 0 && a === 0 || (n === 0 ? (o = -l / a, o > 0 && o < 1 && s[f].push(this.calculateF(o, t, e, r, i, f))) : (c = a * a - 4 * l * n, c >= 0 && (u = (-a + bmSqrt(c)) / (2 * n), u > 0 && u < 1 && s[f].push(this.calculateF(u, t, e, r, i, f)),
|
|
9400
|
+
for (var s = [[t[0], i[0]], [t[1], i[1]]], n, a, l, o, c, u, E, f = 0; f < 2; ++f)
|
|
9401
|
+
a = 6 * t[f] - 12 * e[f] + 6 * r[f], n = -3 * t[f] + 9 * e[f] - 9 * r[f] + 3 * i[f], l = 3 * e[f] - 3 * t[f], a |= 0, n |= 0, l |= 0, n === 0 && a === 0 || (n === 0 ? (o = -l / a, o > 0 && o < 1 && s[f].push(this.calculateF(o, t, e, r, i, f))) : (c = a * a - 4 * l * n, c >= 0 && (u = (-a + bmSqrt(c)) / (2 * n), u > 0 && u < 1 && s[f].push(this.calculateF(u, t, e, r, i, f)), E = (-a - bmSqrt(c)) / (2 * n), E > 0 && E < 1 && s[f].push(this.calculateF(E, t, e, r, i, f)))));
|
|
9402
9402
|
this.shapeBoundingBox.left = bmMin.apply(null, s[0]), this.shapeBoundingBox.top = bmMin.apply(null, s[1]), this.shapeBoundingBox.right = bmMax.apply(null, s[0]), this.shapeBoundingBox.bottom = bmMax.apply(null, s[1]);
|
|
9403
9403
|
}, HShapeElement.prototype.calculateF = function(t, e, r, i, s, n) {
|
|
9404
9404
|
return bmPow(1 - t, 3) * e[n] + 3 * bmPow(1 - t, 2) * t * r[n] + 3 * (1 - t) * bmPow(t, 2) * i[n] + bmPow(t, 3) * s[n];
|
|
@@ -9464,22 +9464,22 @@ function requireLottie() {
|
|
|
9464
9464
|
}
|
|
9465
9465
|
var a, l, o = t.l;
|
|
9466
9466
|
l = o.length;
|
|
9467
|
-
var c, u,
|
|
9467
|
+
var c, u, E, f = this.mHelper, b, d = "", x = 0;
|
|
9468
9468
|
for (a = 0; a < l; a += 1) {
|
|
9469
|
-
if (this.globalData.fontManager.chars ? (this.textPaths[x] ? c = this.textPaths[x] : (c = createNS("path"), c.setAttribute("stroke-linecap", lineCapEnum[1]), c.setAttribute("stroke-linejoin", lineJoinEnum[2]), c.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[x] ? (u = this.textSpans[x],
|
|
9469
|
+
if (this.globalData.fontManager.chars ? (this.textPaths[x] ? c = this.textPaths[x] : (c = createNS("path"), c.setAttribute("stroke-linecap", lineCapEnum[1]), c.setAttribute("stroke-linejoin", lineJoinEnum[2]), c.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[x] ? (u = this.textSpans[x], E = u.children[0]) : (u = createTag("div"), u.style.lineHeight = 0, E = createNS("svg"), E.appendChild(c), styleDiv(u)))) : this.isMasked ? c = this.textPaths[x] ? this.textPaths[x] : createNS("text") : this.textSpans[x] ? (u = this.textSpans[x], c = this.textPaths[x]) : (u = createTag("span"), styleDiv(u), c = createTag("span"), styleDiv(c), u.appendChild(c)), this.globalData.fontManager.chars) {
|
|
9470
9470
|
var S = this.globalData.fontManager.getCharData(t.finalText[a], i.fStyle, this.globalData.fontManager.getFontByName(t.f).fFamily), p;
|
|
9471
|
-
if (S ? p = S.data : p = null, f.reset(), p && p.shapes && p.shapes.length && (
|
|
9471
|
+
if (S ? p = S.data : p = null, f.reset(), p && p.shapes && p.shapes.length && (b = p.shapes[0].it, f.scale(t.finalSize / 100, t.finalSize / 100), d = this.createPathShape(f, b), c.setAttribute("d", d)), this.isMasked)
|
|
9472
9472
|
this.innerElem.appendChild(c);
|
|
9473
9473
|
else {
|
|
9474
9474
|
if (this.innerElem.appendChild(u), p && p.shapes) {
|
|
9475
|
-
document.body.appendChild(
|
|
9476
|
-
var m =
|
|
9477
|
-
|
|
9478
|
-
var y =
|
|
9475
|
+
document.body.appendChild(E);
|
|
9476
|
+
var m = E.getBBox();
|
|
9477
|
+
E.setAttribute("width", m.width + 2), E.setAttribute("height", m.height + 2), E.setAttribute("viewBox", m.x - 1 + " " + (m.y - 1) + " " + (m.width + 2) + " " + (m.height + 2));
|
|
9478
|
+
var y = E.style, g = "translate(" + (m.x - 1) + "px," + (m.y - 1) + "px)";
|
|
9479
9479
|
y.transform = g, y.webkitTransform = g, o[a].yOffset = m.y - 1;
|
|
9480
9480
|
} else
|
|
9481
|
-
|
|
9482
|
-
u.appendChild(
|
|
9481
|
+
E.setAttribute("width", 1), E.setAttribute("height", 1);
|
|
9482
|
+
u.appendChild(E);
|
|
9483
9483
|
}
|
|
9484
9484
|
} else if (c.textContent = o[a].val, c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), this.isMasked)
|
|
9485
9485
|
this.innerElem.appendChild(c);
|
|
@@ -9513,9 +9513,9 @@ function requireLottie() {
|
|
|
9513
9513
|
if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
|
|
9514
9514
|
var u = this.innerElem.getBBox();
|
|
9515
9515
|
this.currentBBox.w !== u.width && (this.currentBBox.w = u.width, this.svgElement.setAttribute("width", u.width)), this.currentBBox.h !== u.height && (this.currentBBox.h = u.height, this.svgElement.setAttribute("height", u.height));
|
|
9516
|
-
var
|
|
9517
|
-
if (this.currentBBox.w !== u.width +
|
|
9518
|
-
this.currentBBox.w = u.width +
|
|
9516
|
+
var E = 1;
|
|
9517
|
+
if (this.currentBBox.w !== u.width + E * 2 || this.currentBBox.h !== u.height + E * 2 || this.currentBBox.x !== u.x - E || this.currentBBox.y !== u.y - E) {
|
|
9518
|
+
this.currentBBox.w = u.width + E * 2, this.currentBBox.h = u.height + E * 2, this.currentBBox.x = u.x - E, this.currentBBox.y = u.y - E, this.svgElement.setAttribute("viewBox", this.currentBBox.x + " " + this.currentBBox.y + " " + this.currentBBox.w + " " + this.currentBBox.h), t = this.svgElement.style;
|
|
9519
9519
|
var f = "translate(" + this.currentBBox.x + "px," + this.currentBBox.y + "px)";
|
|
9520
9520
|
t.transform = f, t.webkitTransform = f;
|
|
9521
9521
|
}
|
|
@@ -9565,14 +9565,14 @@ function requireLottie() {
|
|
|
9565
9565
|
var u = !this._prevMat.equals(this.mat);
|
|
9566
9566
|
if ((u || this.pe._mdf) && this.comp.threeDElements) {
|
|
9567
9567
|
r = this.comp.threeDElements.length;
|
|
9568
|
-
var
|
|
9568
|
+
var E, f, b;
|
|
9569
9569
|
for (e = 0; e < r; e += 1)
|
|
9570
|
-
if (
|
|
9570
|
+
if (E = this.comp.threeDElements[e], E.type === "3d") {
|
|
9571
9571
|
if (u) {
|
|
9572
9572
|
var d = this.mat.toCSS();
|
|
9573
|
-
|
|
9573
|
+
b = E.container.style, b.transform = d, b.webkitTransform = d;
|
|
9574
9574
|
}
|
|
9575
|
-
this.pe._mdf && (f =
|
|
9575
|
+
this.pe._mdf && (f = E.perspectiveElem.style, f.perspective = this.pe.v + "px", f.webkitPerspective = this.pe.v + "px");
|
|
9576
9576
|
}
|
|
9577
9577
|
this.mat.clone(this._prevMat);
|
|
9578
9578
|
}
|
|
@@ -9780,13 +9780,13 @@ function requireLottie() {
|
|
|
9780
9780
|
}, _typeof$2(t);
|
|
9781
9781
|
}
|
|
9782
9782
|
function seedRandom(t, e) {
|
|
9783
|
-
var r = this, i = 256, s = 6, n = 52, a = "random", l = e.pow(i, s), o = e.pow(2, n), c = o * 2, u = i - 1,
|
|
9783
|
+
var r = this, i = 256, s = 6, n = 52, a = "random", l = e.pow(i, s), o = e.pow(2, n), c = o * 2, u = i - 1, E;
|
|
9784
9784
|
function f(y, g, k) {
|
|
9785
9785
|
var P = [];
|
|
9786
9786
|
g = g === !0 ? {
|
|
9787
9787
|
entropy: !0
|
|
9788
9788
|
} : g || {};
|
|
9789
|
-
var _ = S(x(g.entropy ? [y, m(t)] : y === null ? p() : y, 3), P), j = new
|
|
9789
|
+
var _ = S(x(g.entropy ? [y, m(t)] : y === null ? p() : y, 3), P), j = new b(P), I = function() {
|
|
9790
9790
|
for (var O = j.g(s), B = l, z = 0; O < o; )
|
|
9791
9791
|
O = (O + z) * i, B *= i, z = j.g(1);
|
|
9792
9792
|
for (; O >= c; )
|
|
@@ -9804,7 +9804,7 @@ function requireLottie() {
|
|
|
9804
9804
|
})(I, _, "global" in g ? g.global : this == e, g.state);
|
|
9805
9805
|
}
|
|
9806
9806
|
e["seed" + a] = f;
|
|
9807
|
-
function
|
|
9807
|
+
function b(y) {
|
|
9808
9808
|
var g, k = y.length, P = this, _ = 0, j = P.i = P.j = 0, I = P.S = [];
|
|
9809
9809
|
for (k || (y = [k++]); _ < i; )
|
|
9810
9810
|
I[_] = _++;
|
|
@@ -10249,8 +10249,8 @@ function requireLottie() {
|
|
|
10249
10249
|
return 0;
|
|
10250
10250
|
var u = "";
|
|
10251
10251
|
"s" in l.keyframes[c - 1] ? u = l.keyframes[c - 1].s : "e" in l.keyframes[c - 2] ? u = l.keyframes[c - 2].e : u = l.keyframes[c - 2].s;
|
|
10252
|
-
var
|
|
10253
|
-
return
|
|
10252
|
+
var E = o === "unidimensional" ? new Number(u) : Object.assign({}, u);
|
|
10253
|
+
return E.time = l.keyframes[c - 1].t / l.elem.comp.globalData.frameRate, E.value = o === "unidimensional" ? u[0] : u, E;
|
|
10254
10254
|
}, a.valueAtTime = l.getValueAtTime, a.speedAtTime = l.getSpeedAtTime, a.velocityAtTime = l.getVelocityAtTime, a.propertyGroup = l.propertyGroup;
|
|
10255
10255
|
}
|
|
10256
10256
|
function i(a) {
|
|
@@ -10265,8 +10265,8 @@ function requireLottie() {
|
|
|
10265
10265
|
var l = 1 / a.mult, o = a.data && a.data.l || a.pv.length, c = createTypedArray("float32", o), u = createTypedArray("float32", o);
|
|
10266
10266
|
return c.value = u, r(c, a, "multidimensional"), function() {
|
|
10267
10267
|
a.k && a.getValue();
|
|
10268
|
-
for (var
|
|
10269
|
-
u[
|
|
10268
|
+
for (var E = 0; E < o; E += 1)
|
|
10269
|
+
u[E] = a.v[E] * l, c[E] = u[E];
|
|
10270
10270
|
return c;
|
|
10271
10271
|
};
|
|
10272
10272
|
}
|
|
@@ -10358,8 +10358,8 @@ function requireLottie() {
|
|
|
10358
10358
|
function t(c) {
|
|
10359
10359
|
var u = new Matrix();
|
|
10360
10360
|
if (c !== void 0) {
|
|
10361
|
-
var
|
|
10362
|
-
|
|
10361
|
+
var E = this._elem.finalTransform.mProp.getValueAtTime(c);
|
|
10362
|
+
E.clone(u);
|
|
10363
10363
|
} else {
|
|
10364
10364
|
var f = this._elem.finalTransform.mProp;
|
|
10365
10365
|
f.applyToMatrix(u);
|
|
@@ -10367,43 +10367,43 @@ function requireLottie() {
|
|
|
10367
10367
|
return u;
|
|
10368
10368
|
}
|
|
10369
10369
|
function e(c, u) {
|
|
10370
|
-
var
|
|
10371
|
-
return
|
|
10370
|
+
var E = this.getMatrix(u);
|
|
10371
|
+
return E.props[12] = 0, E.props[13] = 0, E.props[14] = 0, this.applyPoint(E, c);
|
|
10372
10372
|
}
|
|
10373
10373
|
function r(c, u) {
|
|
10374
|
-
var
|
|
10375
|
-
return this.applyPoint(
|
|
10374
|
+
var E = this.getMatrix(u);
|
|
10375
|
+
return this.applyPoint(E, c);
|
|
10376
10376
|
}
|
|
10377
10377
|
function i(c, u) {
|
|
10378
|
-
var
|
|
10379
|
-
return
|
|
10378
|
+
var E = this.getMatrix(u);
|
|
10379
|
+
return E.props[12] = 0, E.props[13] = 0, E.props[14] = 0, this.invertPoint(E, c);
|
|
10380
10380
|
}
|
|
10381
10381
|
function s(c, u) {
|
|
10382
|
-
var
|
|
10383
|
-
return this.invertPoint(
|
|
10382
|
+
var E = this.getMatrix(u);
|
|
10383
|
+
return this.invertPoint(E, c);
|
|
10384
10384
|
}
|
|
10385
10385
|
function n(c, u) {
|
|
10386
10386
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
10387
|
-
var
|
|
10388
|
-
for (
|
|
10389
|
-
this._elem.hierarchy[
|
|
10387
|
+
var E, f = this._elem.hierarchy.length;
|
|
10388
|
+
for (E = 0; E < f; E += 1)
|
|
10389
|
+
this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(c);
|
|
10390
10390
|
}
|
|
10391
10391
|
return c.applyToPointArray(u[0], u[1], u[2] || 0);
|
|
10392
10392
|
}
|
|
10393
10393
|
function a(c, u) {
|
|
10394
10394
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
10395
|
-
var
|
|
10396
|
-
for (
|
|
10397
|
-
this._elem.hierarchy[
|
|
10395
|
+
var E, f = this._elem.hierarchy.length;
|
|
10396
|
+
for (E = 0; E < f; E += 1)
|
|
10397
|
+
this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(c);
|
|
10398
10398
|
}
|
|
10399
10399
|
return c.inversePoint(u);
|
|
10400
10400
|
}
|
|
10401
10401
|
function l(c) {
|
|
10402
10402
|
var u = new Matrix();
|
|
10403
10403
|
if (u.reset(), this._elem.finalTransform.mProp.applyToMatrix(u), this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
10404
|
-
var
|
|
10405
|
-
for (
|
|
10406
|
-
this._elem.hierarchy[
|
|
10404
|
+
var E, f = this._elem.hierarchy.length;
|
|
10405
|
+
for (E = 0; E < f; E += 1)
|
|
10406
|
+
this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(u);
|
|
10407
10407
|
return u.inversePoint(c);
|
|
10408
10408
|
}
|
|
10409
10409
|
return u.inversePoint(c);
|
|
@@ -10413,18 +10413,18 @@ function requireLottie() {
|
|
|
10413
10413
|
}
|
|
10414
10414
|
return function(c) {
|
|
10415
10415
|
var u;
|
|
10416
|
-
function
|
|
10417
|
-
|
|
10416
|
+
function E(x) {
|
|
10417
|
+
b.mask = new MaskManagerInterface(x, c);
|
|
10418
10418
|
}
|
|
10419
10419
|
function f(x) {
|
|
10420
|
-
|
|
10420
|
+
b.effect = x;
|
|
10421
10421
|
}
|
|
10422
|
-
function
|
|
10422
|
+
function b(x) {
|
|
10423
10423
|
switch (x) {
|
|
10424
10424
|
case "ADBE Root Vectors Group":
|
|
10425
10425
|
case "Contents":
|
|
10426
10426
|
case 2:
|
|
10427
|
-
return
|
|
10427
|
+
return b.shapeInterface;
|
|
10428
10428
|
case 1:
|
|
10429
10429
|
case 6:
|
|
10430
10430
|
case "Transform":
|
|
@@ -10435,16 +10435,16 @@ function requireLottie() {
|
|
|
10435
10435
|
case "ADBE Effect Parade":
|
|
10436
10436
|
case "effects":
|
|
10437
10437
|
case "Effects":
|
|
10438
|
-
return
|
|
10438
|
+
return b.effect;
|
|
10439
10439
|
case "ADBE Text Properties":
|
|
10440
|
-
return
|
|
10440
|
+
return b.textInterface;
|
|
10441
10441
|
default:
|
|
10442
10442
|
return null;
|
|
10443
10443
|
}
|
|
10444
10444
|
}
|
|
10445
|
-
|
|
10445
|
+
b.getMatrix = t, b.invertPoint = a, b.applyPoint = n, b.toWorld = r, b.toWorldVec = e, b.fromWorld = s, b.fromWorldVec = i, b.toComp = r, b.fromComp = l, b.sampleImage = o, b.sourceRectAtTime = c.sourceRectAtTime.bind(c), b._elem = c, u = TransformExpressionInterface(c.finalTransform.mProp);
|
|
10446
10446
|
var d = getDescriptor(u, "anchorPoint");
|
|
10447
|
-
return Object.defineProperties(
|
|
10447
|
+
return Object.defineProperties(b, {
|
|
10448
10448
|
hasParent: {
|
|
10449
10449
|
get: function() {
|
|
10450
10450
|
return c.hierarchy.length;
|
|
@@ -10471,7 +10471,7 @@ function requireLottie() {
|
|
|
10471
10471
|
return c.isInRange;
|
|
10472
10472
|
}
|
|
10473
10473
|
}
|
|
10474
|
-
}),
|
|
10474
|
+
}), b.startTime = c.data.st, b.index = c.data.ind, b.source = c.data.refId, b.height = c.data.ty === 0 ? c.data.h : 100, b.width = c.data.ty === 0 ? c.data.w : 100, b.inPoint = c.data.ip / c.comp.globalData.frameRate, b.outPoint = c.data.op / c.comp.globalData.frameRate, b._name = c.data.nm, b.registerMaskInterface = E, b.registerEffectsInterface = f, b;
|
|
10475
10475
|
};
|
|
10476
10476
|
}(), propertyGroupFactory = /* @__PURE__ */ function() {
|
|
10477
10477
|
return function(t, e) {
|
|
@@ -10498,34 +10498,34 @@ function requireLottie() {
|
|
|
10498
10498
|
var a = [], l = s.data.ef, o, c = s.effectsManager.effectElements.length;
|
|
10499
10499
|
for (o = 0; o < c; o += 1)
|
|
10500
10500
|
a.push(r(l[o], s.effectsManager.effectElements[o], n, s));
|
|
10501
|
-
var u = s.data.ef || [],
|
|
10501
|
+
var u = s.data.ef || [], E = function(b) {
|
|
10502
10502
|
for (o = 0, c = u.length; o < c; ) {
|
|
10503
|
-
if (
|
|
10503
|
+
if (b === u[o].nm || b === u[o].mn || b === u[o].ix)
|
|
10504
10504
|
return a[o];
|
|
10505
10505
|
o += 1;
|
|
10506
10506
|
}
|
|
10507
10507
|
return null;
|
|
10508
10508
|
};
|
|
10509
|
-
return Object.defineProperty(
|
|
10509
|
+
return Object.defineProperty(E, "numProperties", {
|
|
10510
10510
|
get: function() {
|
|
10511
10511
|
return u.length;
|
|
10512
10512
|
}
|
|
10513
|
-
}),
|
|
10513
|
+
}), E;
|
|
10514
10514
|
}
|
|
10515
10515
|
return null;
|
|
10516
10516
|
}
|
|
10517
10517
|
function r(s, n, a, l) {
|
|
10518
|
-
function o(
|
|
10518
|
+
function o(b) {
|
|
10519
10519
|
for (var d = s.ef, x = 0, S = d.length; x < S; ) {
|
|
10520
|
-
if (
|
|
10520
|
+
if (b === d[x].nm || b === d[x].mn || b === d[x].ix)
|
|
10521
10521
|
return d[x].ty === 5 ? u[x] : u[x]();
|
|
10522
10522
|
x += 1;
|
|
10523
10523
|
}
|
|
10524
10524
|
throw new Error();
|
|
10525
10525
|
}
|
|
10526
|
-
var c = propertyGroupFactory(o, a), u = [],
|
|
10527
|
-
for (
|
|
10528
|
-
s.ef[
|
|
10526
|
+
var c = propertyGroupFactory(o, a), u = [], E, f = s.ef.length;
|
|
10527
|
+
for (E = 0; E < f; E += 1)
|
|
10528
|
+
s.ef[E].ty === 5 ? u.push(r(s.ef[E], n.effectElements[E], n.effectElements[E].propertyGroup, l)) : u.push(i(n.effectElements[E], s.ef[E].ty, l, c));
|
|
10529
10529
|
return s.mn === "ADBE Color Control" && Object.defineProperty(o, "color", {
|
|
10530
10530
|
get: function() {
|
|
10531
10531
|
return u[0]();
|
|
@@ -10591,7 +10591,7 @@ function requireLottie() {
|
|
|
10591
10591
|
function t(d, x, S) {
|
|
10592
10592
|
var p = [], m, y = d ? d.length : 0;
|
|
10593
10593
|
for (m = 0; m < y; m += 1)
|
|
10594
|
-
d[m].ty === "gr" ? p.push(r(d[m], x[m], S)) : d[m].ty === "fl" ? p.push(i(d[m], x[m], S)) : d[m].ty === "st" ? p.push(a(d[m], x[m], S)) : d[m].ty === "tm" ? p.push(l(d[m], x[m], S)) : d[m].ty === "tr" || (d[m].ty === "el" ? p.push(c(d[m], x[m], S)) : d[m].ty === "sr" ? p.push(u(d[m], x[m], S)) : d[m].ty === "sh" ? p.push(ShapePathInterface(d[m], x[m], S)) : d[m].ty === "rc" ? p.push(
|
|
10594
|
+
d[m].ty === "gr" ? p.push(r(d[m], x[m], S)) : d[m].ty === "fl" ? p.push(i(d[m], x[m], S)) : d[m].ty === "st" ? p.push(a(d[m], x[m], S)) : d[m].ty === "tm" ? p.push(l(d[m], x[m], S)) : d[m].ty === "tr" || (d[m].ty === "el" ? p.push(c(d[m], x[m], S)) : d[m].ty === "sr" ? p.push(u(d[m], x[m], S)) : d[m].ty === "sh" ? p.push(ShapePathInterface(d[m], x[m], S)) : d[m].ty === "rc" ? p.push(E(d[m], x[m], S)) : d[m].ty === "rd" ? p.push(f(d[m], x[m], S)) : d[m].ty === "rp" ? p.push(b(d[m], x[m], S)) : d[m].ty === "gf" ? p.push(s(d[m], x[m], S)) : p.push(n(d[m], x[m])));
|
|
10595
10595
|
return p;
|
|
10596
10596
|
}
|
|
10597
10597
|
function e(d, x, S) {
|
|
@@ -10820,7 +10820,7 @@ function requireLottie() {
|
|
|
10820
10820
|
}
|
|
10821
10821
|
}), p.mn = d.mn, p;
|
|
10822
10822
|
}
|
|
10823
|
-
function
|
|
10823
|
+
function E(d, x, S) {
|
|
10824
10824
|
function p(g) {
|
|
10825
10825
|
return d.p.ix === g ? p.position : d.r.ix === g ? p.roundness : d.s.ix === g || g === "Size" || g === "ADBE Vector Rect Size" ? p.size : null;
|
|
10826
10826
|
}
|
|
@@ -10854,7 +10854,7 @@ function requireLottie() {
|
|
|
10854
10854
|
}
|
|
10855
10855
|
}), p.mn = d.mn, p;
|
|
10856
10856
|
}
|
|
10857
|
-
function
|
|
10857
|
+
function b(d, x, S) {
|
|
10858
10858
|
function p(g) {
|
|
10859
10859
|
return d.c.ix === g || g === "Copies" ? p.copies : d.o.ix === g || g === "Offset" ? p.offset : null;
|
|
10860
10860
|
}
|
|
@@ -10972,9 +10972,9 @@ function requireLottie() {
|
|
|
10972
10972
|
function r(a) {
|
|
10973
10973
|
var l = -0.01, o = this.getValueAtTime(a), c = this.getValueAtTime(a + l), u = 0;
|
|
10974
10974
|
if (o.length) {
|
|
10975
|
-
var
|
|
10976
|
-
for (
|
|
10977
|
-
u += Math.pow(c[
|
|
10975
|
+
var E;
|
|
10976
|
+
for (E = 0; E < o.length; E += 1)
|
|
10977
|
+
u += Math.pow(c[E] - o[E], 2);
|
|
10978
10978
|
u = Math.sqrt(u) * 100;
|
|
10979
10979
|
} else
|
|
10980
10980
|
u = 0;
|
|
@@ -10986,9 +10986,9 @@ function requireLottie() {
|
|
|
10986
10986
|
var l = -1e-3, o = this.getValueAtTime(a), c = this.getValueAtTime(a + l), u;
|
|
10987
10987
|
if (o.length) {
|
|
10988
10988
|
u = createTypedArray("float32", o.length);
|
|
10989
|
-
var
|
|
10990
|
-
for (
|
|
10991
|
-
u[
|
|
10989
|
+
var E;
|
|
10990
|
+
for (E = 0; E < o.length; E += 1)
|
|
10991
|
+
u[E] = (c[E] - o[E]) / l;
|
|
10992
10992
|
} else
|
|
10993
10993
|
u = (c - o) / l;
|
|
10994
10994
|
return u;
|
|
@@ -11009,7 +11009,7 @@ function requireLottie() {
|
|
|
11009
11009
|
};
|
|
11010
11010
|
}();
|
|
11011
11011
|
function addPropertyDecorator() {
|
|
11012
|
-
function t(f,
|
|
11012
|
+
function t(f, b, d) {
|
|
11013
11013
|
if (!this.k || !this.keyframes)
|
|
11014
11014
|
return this.pv;
|
|
11015
11015
|
f = f ? f.toLowerCase() : "";
|
|
@@ -11017,7 +11017,7 @@ function requireLottie() {
|
|
|
11017
11017
|
if (x <= p)
|
|
11018
11018
|
return this.pv;
|
|
11019
11019
|
var m, y;
|
|
11020
|
-
d ? (
|
|
11020
|
+
d ? (b ? m = Math.abs(p - this.elem.comp.globalData.frameRate * b) : m = Math.max(0, p - this.elem.data.ip), y = p - m) : ((!b || b > S.length - 1) && (b = S.length - 1), y = S[S.length - 1 - b].t, m = p - y);
|
|
11021
11021
|
var g, k, P;
|
|
11022
11022
|
if (f === "pingpong") {
|
|
11023
11023
|
var _ = Math.floor((x - y) / m);
|
|
@@ -11042,7 +11042,7 @@ function requireLottie() {
|
|
|
11042
11042
|
}
|
|
11043
11043
|
return this.getValueAtTime(((x - y) % m + y) / this.comp.globalData.frameRate, 0);
|
|
11044
11044
|
}
|
|
11045
|
-
function e(f,
|
|
11045
|
+
function e(f, b, d) {
|
|
11046
11046
|
if (!this.k)
|
|
11047
11047
|
return this.pv;
|
|
11048
11048
|
f = f ? f.toLowerCase() : "";
|
|
@@ -11050,7 +11050,7 @@ function requireLottie() {
|
|
|
11050
11050
|
if (x >= p)
|
|
11051
11051
|
return this.pv;
|
|
11052
11052
|
var m, y;
|
|
11053
|
-
d ? (
|
|
11053
|
+
d ? (b ? m = Math.abs(this.elem.comp.globalData.frameRate * b) : m = Math.max(0, this.elem.data.op - p), y = p + m) : ((!b || b > S.length - 1) && (b = S.length - 1), y = S[b].t, m = y - p);
|
|
11054
11054
|
var g, k, P;
|
|
11055
11055
|
if (f === "pingpong") {
|
|
11056
11056
|
var _ = Math.floor((p - x) / m);
|
|
@@ -11075,14 +11075,14 @@ function requireLottie() {
|
|
|
11075
11075
|
}
|
|
11076
11076
|
return this.getValueAtTime((m - ((p - x) % m + p)) / this.comp.globalData.frameRate, 0);
|
|
11077
11077
|
}
|
|
11078
|
-
function r(f,
|
|
11078
|
+
function r(f, b) {
|
|
11079
11079
|
if (!this.k)
|
|
11080
11080
|
return this.pv;
|
|
11081
|
-
if (f = (f || 0.4) * 0.5,
|
|
11081
|
+
if (f = (f || 0.4) * 0.5, b = Math.floor(b || 5), b <= 1)
|
|
11082
11082
|
return this.pv;
|
|
11083
|
-
var d = this.comp.renderedFrame / this.comp.globalData.frameRate, x = d - f, S = d + f, p =
|
|
11083
|
+
var d = this.comp.renderedFrame / this.comp.globalData.frameRate, x = d - f, S = d + f, p = b > 1 ? (S - x) / (b - 1) : 1, m = 0, y = 0, g;
|
|
11084
11084
|
this.pv.length ? g = createTypedArray("float32", this.pv.length) : g = 0;
|
|
11085
|
-
for (var k; m <
|
|
11085
|
+
for (var k; m < b; ) {
|
|
11086
11086
|
if (k = this.getValueAtTime(x + m * p), this.pv.length)
|
|
11087
11087
|
for (y = 0; y < this.pv.length; y += 1)
|
|
11088
11088
|
g[y] += k[y];
|
|
@@ -11092,66 +11092,66 @@ function requireLottie() {
|
|
|
11092
11092
|
}
|
|
11093
11093
|
if (this.pv.length)
|
|
11094
11094
|
for (y = 0; y < this.pv.length; y += 1)
|
|
11095
|
-
g[y] /=
|
|
11095
|
+
g[y] /= b;
|
|
11096
11096
|
else
|
|
11097
|
-
g /=
|
|
11097
|
+
g /= b;
|
|
11098
11098
|
return g;
|
|
11099
11099
|
}
|
|
11100
11100
|
function i(f) {
|
|
11101
11101
|
this._transformCachingAtTime || (this._transformCachingAtTime = {
|
|
11102
11102
|
v: new Matrix()
|
|
11103
11103
|
});
|
|
11104
|
-
var
|
|
11105
|
-
if (
|
|
11104
|
+
var b = this._transformCachingAtTime.v;
|
|
11105
|
+
if (b.cloneFromProps(this.pre.props), this.appliedTransformations < 1) {
|
|
11106
11106
|
var d = this.a.getValueAtTime(f);
|
|
11107
|
-
|
|
11107
|
+
b.translate(-d[0] * this.a.mult, -d[1] * this.a.mult, d[2] * this.a.mult);
|
|
11108
11108
|
}
|
|
11109
11109
|
if (this.appliedTransformations < 2) {
|
|
11110
11110
|
var x = this.s.getValueAtTime(f);
|
|
11111
|
-
|
|
11111
|
+
b.scale(x[0] * this.s.mult, x[1] * this.s.mult, x[2] * this.s.mult);
|
|
11112
11112
|
}
|
|
11113
11113
|
if (this.sk && this.appliedTransformations < 3) {
|
|
11114
11114
|
var S = this.sk.getValueAtTime(f), p = this.sa.getValueAtTime(f);
|
|
11115
|
-
|
|
11115
|
+
b.skewFromAxis(-S * this.sk.mult, p * this.sa.mult);
|
|
11116
11116
|
}
|
|
11117
11117
|
if (this.r && this.appliedTransformations < 4) {
|
|
11118
11118
|
var m = this.r.getValueAtTime(f);
|
|
11119
|
-
|
|
11119
|
+
b.rotate(-m * this.r.mult);
|
|
11120
11120
|
} else if (!this.r && this.appliedTransformations < 4) {
|
|
11121
11121
|
var y = this.rz.getValueAtTime(f), g = this.ry.getValueAtTime(f), k = this.rx.getValueAtTime(f), P = this.or.getValueAtTime(f);
|
|
11122
|
-
|
|
11122
|
+
b.rotateZ(-y * this.rz.mult).rotateY(g * this.ry.mult).rotateX(k * this.rx.mult).rotateZ(-P[2] * this.or.mult).rotateY(P[1] * this.or.mult).rotateX(P[0] * this.or.mult);
|
|
11123
11123
|
}
|
|
11124
11124
|
if (this.data.p && this.data.p.s) {
|
|
11125
11125
|
var _ = this.px.getValueAtTime(f), j = this.py.getValueAtTime(f);
|
|
11126
11126
|
if (this.data.p.z) {
|
|
11127
11127
|
var I = this.pz.getValueAtTime(f);
|
|
11128
|
-
|
|
11128
|
+
b.translate(_ * this.px.mult, j * this.py.mult, -I * this.pz.mult);
|
|
11129
11129
|
} else
|
|
11130
|
-
|
|
11130
|
+
b.translate(_ * this.px.mult, j * this.py.mult, 0);
|
|
11131
11131
|
} else {
|
|
11132
11132
|
var $ = this.p.getValueAtTime(f);
|
|
11133
|
-
|
|
11133
|
+
b.translate($[0] * this.p.mult, $[1] * this.p.mult, -$[2] * this.p.mult);
|
|
11134
11134
|
}
|
|
11135
|
-
return
|
|
11135
|
+
return b;
|
|
11136
11136
|
}
|
|
11137
11137
|
function s() {
|
|
11138
11138
|
return this.v.clone(new Matrix());
|
|
11139
11139
|
}
|
|
11140
11140
|
var n = TransformPropertyFactory.getTransformProperty;
|
|
11141
|
-
TransformPropertyFactory.getTransformProperty = function(f,
|
|
11142
|
-
var x = n(f,
|
|
11141
|
+
TransformPropertyFactory.getTransformProperty = function(f, b, d) {
|
|
11142
|
+
var x = n(f, b, d);
|
|
11143
11143
|
return x.dynamicProperties.length ? x.getValueAtTime = i.bind(x) : x.getValueAtTime = s.bind(x), x.setGroupProperty = expressionHelpers.setGroupProperty, x;
|
|
11144
11144
|
};
|
|
11145
11145
|
var a = PropertyFactory.getProp;
|
|
11146
|
-
PropertyFactory.getProp = function(f,
|
|
11147
|
-
var p = a(f,
|
|
11148
|
-
p.kf ? p.getValueAtTime = expressionHelpers.getValueAtTime.bind(p) : p.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(p), p.setGroupProperty = expressionHelpers.setGroupProperty, p.loopOut = t, p.loopIn = e, p.smooth = r, p.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(p), p.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(p), p.numKeys =
|
|
11146
|
+
PropertyFactory.getProp = function(f, b, d, x, S) {
|
|
11147
|
+
var p = a(f, b, d, x, S);
|
|
11148
|
+
p.kf ? p.getValueAtTime = expressionHelpers.getValueAtTime.bind(p) : p.getValueAtTime = expressionHelpers.getStaticValueAtTime.bind(p), p.setGroupProperty = expressionHelpers.setGroupProperty, p.loopOut = t, p.loopIn = e, p.smooth = r, p.getVelocityAtTime = expressionHelpers.getVelocityAtTime.bind(p), p.getSpeedAtTime = expressionHelpers.getSpeedAtTime.bind(p), p.numKeys = b.a === 1 ? b.k.length : 0, p.propertyIndex = b.ix;
|
|
11149
11149
|
var m = 0;
|
|
11150
|
-
return d !== 0 && (m = createTypedArray("float32",
|
|
11150
|
+
return d !== 0 && (m = createTypedArray("float32", b.a === 1 ? b.k[0].s.length : b.k.length)), p._cachingAtTime = {
|
|
11151
11151
|
lastFrame: initialDefaultFrame,
|
|
11152
11152
|
lastIndex: 0,
|
|
11153
11153
|
value: m
|
|
11154
|
-
}, expressionHelpers.searchExpressions(f,
|
|
11154
|
+
}, expressionHelpers.searchExpressions(f, b, p), p.k && S.addDynamicProperty(p), p;
|
|
11155
11155
|
};
|
|
11156
11156
|
function l(f) {
|
|
11157
11157
|
return this._cachingAtTime || (this._cachingAtTime = {
|
|
@@ -11164,31 +11164,31 @@ function requireLottie() {
|
|
|
11164
11164
|
function u() {
|
|
11165
11165
|
}
|
|
11166
11166
|
u.prototype = {
|
|
11167
|
-
vertices: function(
|
|
11167
|
+
vertices: function(b, d) {
|
|
11168
11168
|
this.k && this.getValue();
|
|
11169
11169
|
var x = this.v;
|
|
11170
11170
|
d !== void 0 && (x = this.getValueAtTime(d, 0));
|
|
11171
|
-
var S, p = x._length, m = x[
|
|
11171
|
+
var S, p = x._length, m = x[b], y = x.v, g = createSizedArray(p);
|
|
11172
11172
|
for (S = 0; S < p; S += 1)
|
|
11173
|
-
|
|
11173
|
+
b === "i" || b === "o" ? g[S] = [m[S][0] - y[S][0], m[S][1] - y[S][1]] : g[S] = [m[S][0], m[S][1]];
|
|
11174
11174
|
return g;
|
|
11175
11175
|
},
|
|
11176
|
-
points: function(
|
|
11177
|
-
return this.vertices("v",
|
|
11176
|
+
points: function(b) {
|
|
11177
|
+
return this.vertices("v", b);
|
|
11178
11178
|
},
|
|
11179
|
-
inTangents: function(
|
|
11180
|
-
return this.vertices("i",
|
|
11179
|
+
inTangents: function(b) {
|
|
11180
|
+
return this.vertices("i", b);
|
|
11181
11181
|
},
|
|
11182
|
-
outTangents: function(
|
|
11183
|
-
return this.vertices("o",
|
|
11182
|
+
outTangents: function(b) {
|
|
11183
|
+
return this.vertices("o", b);
|
|
11184
11184
|
},
|
|
11185
11185
|
isClosed: function() {
|
|
11186
11186
|
return this.v.c;
|
|
11187
11187
|
},
|
|
11188
|
-
pointOnPath: function(
|
|
11188
|
+
pointOnPath: function(b, d) {
|
|
11189
11189
|
var x = this.v;
|
|
11190
11190
|
d !== void 0 && (x = this.getValueAtTime(d, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(x));
|
|
11191
|
-
for (var S = this._segmentsLength, p = S.lengths, m = S.totalLength *
|
|
11191
|
+
for (var S = this._segmentsLength, p = S.lengths, m = S.totalLength * b, y = 0, g = p.length, k = 0, P; y < g; ) {
|
|
11192
11192
|
if (k + p[y].addedLength > m) {
|
|
11193
11193
|
var _ = y, j = x.c && y === g - 1 ? 0 : y + 1, I = (m - k) / p[y].addedLength;
|
|
11194
11194
|
P = bez.getPointInSegment(x.v[_], x.v[j], x.o[_], x.i[j], I, p[y]);
|
|
@@ -11199,27 +11199,27 @@ function requireLottie() {
|
|
|
11199
11199
|
}
|
|
11200
11200
|
return P || (P = x.c ? [x.v[0][0], x.v[0][1]] : [x.v[x._length - 1][0], x.v[x._length - 1][1]]), P;
|
|
11201
11201
|
},
|
|
11202
|
-
vectorOnPath: function(
|
|
11203
|
-
|
|
11204
|
-
var S = this.pointOnPath(
|
|
11202
|
+
vectorOnPath: function(b, d, x) {
|
|
11203
|
+
b == 1 ? b = this.v.c : b == 0 && (b = 0.999);
|
|
11204
|
+
var S = this.pointOnPath(b, d), p = this.pointOnPath(b + 1e-3, d), m = p[0] - S[0], y = p[1] - S[1], g = Math.sqrt(Math.pow(m, 2) + Math.pow(y, 2));
|
|
11205
11205
|
if (g === 0)
|
|
11206
11206
|
return [0, 0];
|
|
11207
11207
|
var k = x === "tangent" ? [m / g, y / g] : [-y / g, m / g];
|
|
11208
11208
|
return k;
|
|
11209
11209
|
},
|
|
11210
|
-
tangentOnPath: function(
|
|
11211
|
-
return this.vectorOnPath(
|
|
11210
|
+
tangentOnPath: function(b, d) {
|
|
11211
|
+
return this.vectorOnPath(b, d, "tangent");
|
|
11212
11212
|
},
|
|
11213
|
-
normalOnPath: function(
|
|
11214
|
-
return this.vectorOnPath(
|
|
11213
|
+
normalOnPath: function(b, d) {
|
|
11214
|
+
return this.vectorOnPath(b, d, "normal");
|
|
11215
11215
|
},
|
|
11216
11216
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
11217
11217
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
11218
11218
|
}, extendPrototype([u], o), extendPrototype([u], c), c.prototype.getValueAtTime = l, c.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
11219
|
-
var
|
|
11220
|
-
ShapePropertyFactory.getShapeProp = function(f,
|
|
11221
|
-
var p =
|
|
11222
|
-
return p.propertyIndex =
|
|
11219
|
+
var E = ShapePropertyFactory.getShapeProp;
|
|
11220
|
+
ShapePropertyFactory.getShapeProp = function(f, b, d, x, S) {
|
|
11221
|
+
var p = E(f, b, d, x, S);
|
|
11222
|
+
return p.propertyIndex = b.ix, p.lock = !1, d === 3 ? expressionHelpers.searchExpressions(f, b.pt, p) : d === 4 && expressionHelpers.searchExpressions(f, b.ks, p), p.k && f.addDynamicProperty(p), p;
|
|
11223
11223
|
};
|
|
11224
11224
|
}
|
|
11225
11225
|
function initialize$1() {
|
|
@@ -11314,8 +11314,8 @@ function requireLottie() {
|
|
|
11314
11314
|
if (this.filterManager.effectElements[7].p.v !== 0 || this.filterManager.effectElements[8].p.v !== 100) {
|
|
11315
11315
|
var a = Math.min(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, l = Math.max(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, o = s.getTotalLength();
|
|
11316
11316
|
n = "0 0 0 " + o * a + " ";
|
|
11317
|
-
var c = o * (l - a), u = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01,
|
|
11318
|
-
for (f = 0; f <
|
|
11317
|
+
var c = o * (l - a), u = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, E = Math.floor(c / u), f;
|
|
11318
|
+
for (f = 0; f < E; f += 1)
|
|
11319
11319
|
n += "1 " + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01 + " ";
|
|
11320
11320
|
n += "0 " + o * 10 + " 0 0";
|
|
11321
11321
|
} else
|
|
@@ -11323,8 +11323,8 @@ function requireLottie() {
|
|
|
11323
11323
|
s.setAttribute("stroke-dasharray", n);
|
|
11324
11324
|
}
|
|
11325
11325
|
if ((t || this.filterManager.effectElements[4].p._mdf) && this.pathMasker.setAttribute("stroke-width", this.filterManager.effectElements[4].p.v * 2), (t || this.filterManager.effectElements[6].p._mdf) && this.pathMasker.setAttribute("opacity", this.filterManager.effectElements[6].p.v), (this.filterManager.effectElements[10].p.v === 1 || this.filterManager.effectElements[10].p.v === 2) && (t || this.filterManager.effectElements[3].p._mdf)) {
|
|
11326
|
-
var
|
|
11327
|
-
this.pathMasker.setAttribute("stroke", "rgb(" + bmFloor(
|
|
11326
|
+
var b = this.filterManager.effectElements[3].p.v;
|
|
11327
|
+
this.pathMasker.setAttribute("stroke", "rgb(" + bmFloor(b[0] * 255) + "," + bmFloor(b[1] * 255) + "," + bmFloor(b[2] * 255) + ")");
|
|
11328
11328
|
}
|
|
11329
11329
|
};
|
|
11330
11330
|
function SVGTritoneFilter(t, e, r, i) {
|
|
@@ -11357,8 +11357,8 @@ function requireLottie() {
|
|
|
11357
11357
|
}, SVGProLevelsFilter.prototype.getTableValue = function(t, e, r, i, s) {
|
|
11358
11358
|
for (var n = 0, a = 256, l, o = Math.min(t, e), c = Math.max(t, e), u = Array.call(null, {
|
|
11359
11359
|
length: a
|
|
11360
|
-
}),
|
|
11361
|
-
l = n / 256, l <= o ?
|
|
11360
|
+
}), E, f = 0, b = s - i, d = e - t; n <= 256; )
|
|
11361
|
+
l = n / 256, l <= o ? E = d < 0 ? s : i : l >= c ? E = d < 0 ? i : s : E = i + b * Math.pow((l - t) / d, 1 / r), u[f] = E, f += 1, n += 256 / (a - 1);
|
|
11362
11362
|
return u.join(" ");
|
|
11363
11363
|
}, SVGProLevelsFilter.prototype.renderFrame = function(t) {
|
|
11364
11364
|
if (t || this.filterManager._mdf) {
|
|
@@ -11377,8 +11377,8 @@ function requireLottie() {
|
|
|
11377
11377
|
c.setAttribute("flood-color", "#00ff00"), c.setAttribute("flood-opacity", "1"), c.setAttribute("result", i + "_drop_shadow_3"), this.feFlood = c, t.appendChild(c);
|
|
11378
11378
|
var u = createNS("feComposite");
|
|
11379
11379
|
u.setAttribute("in", i + "_drop_shadow_3"), u.setAttribute("in2", i + "_drop_shadow_2"), u.setAttribute("operator", "in"), u.setAttribute("result", i + "_drop_shadow_4"), t.appendChild(u);
|
|
11380
|
-
var
|
|
11381
|
-
t.appendChild(
|
|
11380
|
+
var E = this.createMergeNode(i, [i + "_drop_shadow_4", s]);
|
|
11381
|
+
t.appendChild(E);
|
|
11382
11382
|
}
|
|
11383
11383
|
extendPrototype([SVGComposableEffect], SVGDropShadowEffect), SVGDropShadowEffect.prototype.renderFrame = function(t) {
|
|
11384
11384
|
if (t || this.filterManager._mdf) {
|
|
@@ -11570,7 +11570,7 @@ function _unsupportedIterableToArray(t, e) {
|
|
|
11570
11570
|
}
|
|
11571
11571
|
}
|
|
11572
11572
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"], useLottie = function t(e, r) {
|
|
11573
|
-
var i = e.animationData, s = e.loop, n = e.autoplay, a = e.initialSegment, l = e.onComplete, o = e.onLoopComplete, c = e.onEnterFrame, u = e.onSegmentStart,
|
|
11573
|
+
var i = e.animationData, s = e.loop, n = e.autoplay, a = e.initialSegment, l = e.onComplete, o = e.onLoopComplete, c = e.onEnterFrame, u = e.onSegmentStart, E = e.onConfigReady, f = e.onDataReady, b = e.onDataFailed, d = e.onLoadedImages, x = e.onDOMLoaded, S = e.onDestroy;
|
|
11574
11574
|
e.lottieRef, e.renderer, e.name, e.assetsPath, e.rendererSettings;
|
|
11575
11575
|
var p = _objectWithoutProperties(e, _excluded$1), m = useState(!1), y = _slicedToArray(m, 2), g = y[0], k = y[1], P = useRef(), _ = useRef(null), j = function() {
|
|
11576
11576
|
var D;
|
|
@@ -11648,13 +11648,13 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
11648
11648
|
handler: u
|
|
11649
11649
|
}, {
|
|
11650
11650
|
name: "config_ready",
|
|
11651
|
-
handler:
|
|
11651
|
+
handler: E
|
|
11652
11652
|
}, {
|
|
11653
11653
|
name: "data_ready",
|
|
11654
11654
|
handler: f
|
|
11655
11655
|
}, {
|
|
11656
11656
|
name: "data_failed",
|
|
11657
|
-
handler:
|
|
11657
|
+
handler: b
|
|
11658
11658
|
}, {
|
|
11659
11659
|
name: "loaded_images",
|
|
11660
11660
|
handler: d
|
|
@@ -11688,7 +11688,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
11688
11688
|
});
|
|
11689
11689
|
};
|
|
11690
11690
|
}
|
|
11691
|
-
}, [l, o, c, u,
|
|
11691
|
+
}, [l, o, c, u, E, f, b, d, x, S]);
|
|
11692
11692
|
var F = /* @__PURE__ */ React2__default.createElement("div", _objectSpread2({
|
|
11693
11693
|
style: r,
|
|
11694
11694
|
ref: _
|
|
@@ -11729,22 +11729,22 @@ var useInitInteractivity = function t(e) {
|
|
|
11729
11729
|
if (!(!a || !i || !n.length)) {
|
|
11730
11730
|
i.stop();
|
|
11731
11731
|
var l = function() {
|
|
11732
|
-
var u = null,
|
|
11733
|
-
var
|
|
11732
|
+
var u = null, E = function() {
|
|
11733
|
+
var b = getContainerVisibility(a), d = n.find(function(S) {
|
|
11734
11734
|
var p = S.visibility;
|
|
11735
|
-
return p &&
|
|
11735
|
+
return p && b >= p[0] && b <= p[1];
|
|
11736
11736
|
});
|
|
11737
11737
|
if (d) {
|
|
11738
11738
|
if (d.type === "seek" && d.visibility && d.frames.length === 2) {
|
|
11739
|
-
var x = d.frames[0] + Math.ceil((
|
|
11739
|
+
var x = d.frames[0] + Math.ceil((b - d.visibility[0]) / (d.visibility[1] - d.visibility[0]) * d.frames[1]);
|
|
11740
11740
|
//! goToAndStop must be relative to the start of the current segment
|
|
11741
11741
|
i.goToAndStop(x - i.firstFrame - 1, !0);
|
|
11742
11742
|
}
|
|
11743
11743
|
d.type === "loop" && (u === null || u !== d.frames || i.isPaused) && (i.playSegments(d.frames, !0), u = d.frames), d.type === "play" && i.isPaused && (i.resetSegments(!0), i.play()), d.type === "stop" && i.goToAndStop(d.frames[0] - i.firstFrame - 1, !0);
|
|
11744
11744
|
}
|
|
11745
11745
|
};
|
|
11746
|
-
return document.addEventListener("scroll",
|
|
11747
|
-
document.removeEventListener("scroll",
|
|
11746
|
+
return document.addEventListener("scroll", E), function() {
|
|
11747
|
+
document.removeEventListener("scroll", E);
|
|
11748
11748
|
};
|
|
11749
11749
|
}, o = function() {
|
|
11750
11750
|
var u = function(d, x) {
|
|
@@ -11764,13 +11764,13 @@ var useInitInteractivity = function t(e) {
|
|
|
11764
11764
|
}
|
|
11765
11765
|
y.type === "loop" && i.playSegments(y.frames, !0), y.type === "play" && (i.isPaused && i.resetSegments(!1), i.playSegments(y.frames)), y.type === "stop" && i.goToAndStop(y.frames[0], !0);
|
|
11766
11766
|
}
|
|
11767
|
-
},
|
|
11767
|
+
}, E = function(d) {
|
|
11768
11768
|
u(d.clientX, d.clientY);
|
|
11769
11769
|
}, f = function() {
|
|
11770
11770
|
u(-1, -1);
|
|
11771
11771
|
};
|
|
11772
|
-
return a.addEventListener("mousemove",
|
|
11773
|
-
a.removeEventListener("mousemove",
|
|
11772
|
+
return a.addEventListener("mousemove", E), a.addEventListener("mouseout", f), function() {
|
|
11773
|
+
a.removeEventListener("mousemove", E), a.removeEventListener("mouseout", f);
|
|
11774
11774
|
};
|
|
11775
11775
|
};
|
|
11776
11776
|
switch (s) {
|
|
@@ -11790,13 +11790,13 @@ var useInitInteractivity = function t(e) {
|
|
|
11790
11790
|
wrapperRef: l
|
|
11791
11791
|
}), a;
|
|
11792
11792
|
}, _excluded = ["style", "interactivity"], Lottie = function t(e) {
|
|
11793
|
-
var r, i, s, n = e.style, a = e.interactivity, l = _objectWithoutProperties(e, _excluded), o = useLottie(l, n), c = o.View, u = o.play,
|
|
11793
|
+
var r, i, s, n = e.style, a = e.interactivity, l = _objectWithoutProperties(e, _excluded), o = useLottie(l, n), c = o.View, u = o.play, E = o.stop, f = o.pause, b = o.setSpeed, d = o.goToAndStop, x = o.goToAndPlay, S = o.setDirection, p = o.playSegments, m = o.setSubframe, y = o.getDuration, g = o.destroy, k = o.animationContainerRef, P = o.animationLoaded, _ = o.animationItem;
|
|
11794
11794
|
return useEffect(function() {
|
|
11795
11795
|
e.lottieRef && (e.lottieRef.current = {
|
|
11796
11796
|
play: u,
|
|
11797
|
-
stop:
|
|
11797
|
+
stop: E,
|
|
11798
11798
|
pause: f,
|
|
11799
|
-
setSpeed:
|
|
11799
|
+
setSpeed: b,
|
|
11800
11800
|
goToAndPlay: x,
|
|
11801
11801
|
goToAndStop: d,
|
|
11802
11802
|
setDirection: S,
|
|
@@ -11812,9 +11812,9 @@ var useInitInteractivity = function t(e) {
|
|
|
11812
11812
|
lottieObj: {
|
|
11813
11813
|
View: c,
|
|
11814
11814
|
play: u,
|
|
11815
|
-
stop:
|
|
11815
|
+
stop: E,
|
|
11816
11816
|
pause: f,
|
|
11817
|
-
setSpeed:
|
|
11817
|
+
setSpeed: b,
|
|
11818
11818
|
goToAndStop: d,
|
|
11819
11819
|
goToAndPlay: x,
|
|
11820
11820
|
setDirection: S,
|
|
@@ -11887,7 +11887,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11887
11887
|
r && r(), e && e();
|
|
11888
11888
|
}, u = () => {
|
|
11889
11889
|
e && e();
|
|
11890
|
-
},
|
|
11890
|
+
}, E = {
|
|
11891
11891
|
success: {
|
|
11892
11892
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "success-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11893
11893
|
Lottie,
|
|
@@ -11926,8 +11926,8 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11926
11926
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CEButton, { className: "close-button", onClick: e ?? (() => {
|
|
11927
11927
|
}), children: "×" }),
|
|
11928
11928
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "modal-header", children: [
|
|
11929
|
-
|
|
11930
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children:
|
|
11929
|
+
E.icon,
|
|
11930
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { children: E.title })
|
|
11931
11931
|
] }),
|
|
11932
11932
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-body", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: s }) }),
|
|
11933
11933
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "modal-actions", children: [
|
|
@@ -11951,10 +11951,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11951
11951
|
width: o = "500px",
|
|
11952
11952
|
maxWidth: c = "90%",
|
|
11953
11953
|
maxHeight: u = "90vh",
|
|
11954
|
-
buttons:
|
|
11954
|
+
buttons: E,
|
|
11955
11955
|
classNames: f = {}
|
|
11956
11956
|
}) => {
|
|
11957
|
-
const [
|
|
11957
|
+
const [b, d] = useState(!1), [x, S] = useState(!1);
|
|
11958
11958
|
if (!t) return null;
|
|
11959
11959
|
const p = {
|
|
11960
11960
|
left: "flex-start",
|
|
@@ -11987,7 +11987,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11987
11987
|
CECheckBox,
|
|
11988
11988
|
{
|
|
11989
11989
|
label: s,
|
|
11990
|
-
checked:
|
|
11990
|
+
checked: b,
|
|
11991
11991
|
onChange: m
|
|
11992
11992
|
}
|
|
11993
11993
|
),
|
|
@@ -11998,11 +11998,11 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
11998
11998
|
{
|
|
11999
11999
|
className: `dialog-actions ${f.button || ""}`,
|
|
12000
12000
|
style: { justifyContent: p[n] },
|
|
12001
|
-
children:
|
|
12001
|
+
children: E.map((y, g) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12002
12002
|
CEButton,
|
|
12003
12003
|
{
|
|
12004
12004
|
onClick: () => {
|
|
12005
|
-
if (l && !
|
|
12005
|
+
if (l && !b && !y.bypassCheckbox) {
|
|
12006
12006
|
S(!0);
|
|
12007
12007
|
return;
|
|
12008
12008
|
}
|
|
@@ -12101,9 +12101,9 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12101
12101
|
isReassignButtonRequired: o,
|
|
12102
12102
|
isCancelButtonRequired: c,
|
|
12103
12103
|
handleEditClick: u,
|
|
12104
|
-
handleAddClick:
|
|
12104
|
+
handleAddClick: E,
|
|
12105
12105
|
handleDeleteClick: f,
|
|
12106
|
-
handleApproveClick:
|
|
12106
|
+
handleApproveClick: b,
|
|
12107
12107
|
handleReassignClick: d,
|
|
12108
12108
|
handleCancelClick: x,
|
|
12109
12109
|
noOfPagesPerPage: S,
|
|
@@ -12579,7 +12579,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12579
12579
|
width: 20,
|
|
12580
12580
|
height: 20,
|
|
12581
12581
|
style: { cursor: "pointer" },
|
|
12582
|
-
onClick:
|
|
12582
|
+
onClick: b
|
|
12583
12583
|
}
|
|
12584
12584
|
),
|
|
12585
12585
|
a && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -12601,7 +12601,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12601
12601
|
width: 20,
|
|
12602
12602
|
height: 20,
|
|
12603
12603
|
style: { cursor: "pointer" },
|
|
12604
|
-
onClick:
|
|
12604
|
+
onClick: E
|
|
12605
12605
|
}
|
|
12606
12606
|
)
|
|
12607
12607
|
]
|
|
@@ -12764,10 +12764,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12764
12764
|
placeholder: n
|
|
12765
12765
|
}) => {
|
|
12766
12766
|
const a = useRef(null), l = (u) => {
|
|
12767
|
-
const
|
|
12768
|
-
if (
|
|
12769
|
-
if (
|
|
12770
|
-
const f = parseInt(
|
|
12767
|
+
const E = u.target.value.replace(/\D/g, "");
|
|
12768
|
+
if (E.length <= s) {
|
|
12769
|
+
if (E.length === 1) {
|
|
12770
|
+
const f = parseInt(E);
|
|
12771
12771
|
if (r === 12 && f > 1) {
|
|
12772
12772
|
e(`0${f}`);
|
|
12773
12773
|
return;
|
|
@@ -12777,12 +12777,12 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12777
12777
|
return;
|
|
12778
12778
|
}
|
|
12779
12779
|
}
|
|
12780
|
-
if (
|
|
12781
|
-
const f = parseInt(
|
|
12782
|
-
f >= i && f <= r && e(
|
|
12780
|
+
if (E.length === 2) {
|
|
12781
|
+
const f = parseInt(E);
|
|
12782
|
+
f >= i && f <= r && e(E);
|
|
12783
12783
|
return;
|
|
12784
12784
|
}
|
|
12785
|
-
e(
|
|
12785
|
+
e(E);
|
|
12786
12786
|
}
|
|
12787
12787
|
}, o = () => {
|
|
12788
12788
|
var u;
|
|
@@ -12805,7 +12805,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12805
12805
|
}
|
|
12806
12806
|
);
|
|
12807
12807
|
}, 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: t, label: e = "Calendar" }) => {
|
|
12808
|
-
const [r, i] = useState(!1), [s, n] = useState(null), [a, l] = useState(/* @__PURE__ */ new Date()), [o, c] = useState(!1), [u,
|
|
12808
|
+
const [r, i] = useState(!1), [s, n] = useState(null), [a, l] = useState(/* @__PURE__ */ new Date()), [o, c] = useState(!1), [u, E] = useState({ start: 2020, end: 2031 }), [f, b] = useState("left"), [d, x] = useState(0), S = useRef(null), [p, m] = useState(!1), [y, g] = useState(""), [k, P] = useState(""), [_, j] = useState(""), [I, $] = useState(!0), O = () => {
|
|
12809
12809
|
i(!1), !y && !k && !_ && m(!1);
|
|
12810
12810
|
};
|
|
12811
12811
|
useEscapeKey(O);
|
|
@@ -12830,14 +12830,14 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12830
12830
|
const D = String(T.getMonth() + 1).padStart(2, "0"), V = String(T.getDate()).padStart(2, "0"), G = String(T.getFullYear());
|
|
12831
12831
|
g(D), P(V), j(G), $(!0), t(`${D}/${V}/${G}`), i(!1);
|
|
12832
12832
|
}, H = (F) => {
|
|
12833
|
-
|
|
12833
|
+
b(F > 0 ? "left" : "right"), l((T) => {
|
|
12834
12834
|
const D = new Date(T.getFullYear(), T.getMonth() + F, 1);
|
|
12835
12835
|
return s && g(String(D.getMonth() + 1).padStart(2, "0")), x((V) => V + 1), D;
|
|
12836
12836
|
});
|
|
12837
12837
|
}, L = () => {
|
|
12838
12838
|
c((F) => !F);
|
|
12839
12839
|
}, A = (F) => {
|
|
12840
|
-
|
|
12840
|
+
E((T) => ({
|
|
12841
12841
|
start: T.start + F * 10,
|
|
12842
12842
|
end: T.end + F * 10
|
|
12843
12843
|
}));
|
|
@@ -12964,16 +12964,16 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12964
12964
|
onChange: e,
|
|
12965
12965
|
size: r = "medium"
|
|
12966
12966
|
}) => {
|
|
12967
|
-
const [i, s] = useState(""), [n, a] = useState(""), [l, o] = useState(!1), [c, u] = useState(""),
|
|
12967
|
+
const [i, s] = useState(""), [n, a] = useState(""), [l, o] = useState(!1), [c, u] = useState(""), E = () => o(!0), f = (p) => {
|
|
12968
12968
|
!p.currentTarget.value && !i && !n && o(!1);
|
|
12969
|
-
},
|
|
12969
|
+
}, b = (p, m) => {
|
|
12970
12970
|
p && m && new Date(m) < new Date(p) ? u("End date must be after or equal to start date") : (u(""), e == null || e({ startDate: p, endDate: m }));
|
|
12971
12971
|
}, d = (p) => {
|
|
12972
12972
|
const m = p.target.value;
|
|
12973
|
-
s(m),
|
|
12973
|
+
s(m), b(m, n);
|
|
12974
12974
|
}, x = (p) => {
|
|
12975
12975
|
const m = p.target.value;
|
|
12976
|
-
a(m),
|
|
12976
|
+
a(m), b(i, m);
|
|
12977
12977
|
}, S = getSizeStyle$1(r);
|
|
12978
12978
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "date-range-picker", children: [
|
|
12979
12979
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "floating-label float", children: t }),
|
|
@@ -12989,7 +12989,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
12989
12989
|
type: "date",
|
|
12990
12990
|
value: i,
|
|
12991
12991
|
onChange: d,
|
|
12992
|
-
onFocus:
|
|
12992
|
+
onFocus: E,
|
|
12993
12993
|
onBlur: f,
|
|
12994
12994
|
style: { fontSize: S.fontSize }
|
|
12995
12995
|
}
|
|
@@ -13001,7 +13001,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13001
13001
|
type: "date",
|
|
13002
13002
|
value: n,
|
|
13003
13003
|
onChange: x,
|
|
13004
|
-
onFocus:
|
|
13004
|
+
onFocus: E,
|
|
13005
13005
|
onBlur: f,
|
|
13006
13006
|
style: { fontSize: S.fontSize }
|
|
13007
13007
|
}
|
|
@@ -13011,6 +13011,38 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13011
13011
|
),
|
|
13012
13012
|
c && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "error-text", children: c })
|
|
13013
13013
|
] });
|
|
13014
|
+
}, FieldsInput = ({
|
|
13015
|
+
label: t,
|
|
13016
|
+
name: e,
|
|
13017
|
+
placeholder: r = "",
|
|
13018
|
+
value: i = "",
|
|
13019
|
+
onChange: s
|
|
13020
|
+
}) => {
|
|
13021
|
+
const [n, a] = useState(!1), [l, o] = useState(!1);
|
|
13022
|
+
useEffect(() => {
|
|
13023
|
+
i && i.trim().length > 0 && o(!0);
|
|
13024
|
+
}, [i]);
|
|
13025
|
+
const c = () => {
|
|
13026
|
+
a(!0), o(!0);
|
|
13027
|
+
}, u = (f) => {
|
|
13028
|
+
a(!1), f.target.value.trim() || o(!1);
|
|
13029
|
+
}, E = n || !!i;
|
|
13030
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `floating-input-wrapper ${l ? "focused" : ""}`, children: [
|
|
13031
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: e, className: "floating-label", children: t }),
|
|
13032
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13033
|
+
"input",
|
|
13034
|
+
{
|
|
13035
|
+
id: e,
|
|
13036
|
+
name: e,
|
|
13037
|
+
className: "floating-input",
|
|
13038
|
+
placeholder: E ? r : "",
|
|
13039
|
+
value: i,
|
|
13040
|
+
onChange: s,
|
|
13041
|
+
onFocus: c,
|
|
13042
|
+
onBlur: u
|
|
13043
|
+
}
|
|
13044
|
+
)
|
|
13045
|
+
] });
|
|
13014
13046
|
}, CECustomModal = ({
|
|
13015
13047
|
isOpen: t,
|
|
13016
13048
|
onClose: e,
|
|
@@ -13023,8 +13055,8 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13023
13055
|
size: o = "medium"
|
|
13024
13056
|
}) => {
|
|
13025
13057
|
if (useEffect(() => {
|
|
13026
|
-
const u = (
|
|
13027
|
-
|
|
13058
|
+
const u = (E) => {
|
|
13059
|
+
E.key === "Escape" && e();
|
|
13028
13060
|
};
|
|
13029
13061
|
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
13030
13062
|
}, [e]), !t) return null;
|
|
@@ -13139,10 +13171,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13139
13171
|
quickActions: r = [],
|
|
13140
13172
|
recentSearches: i = []
|
|
13141
13173
|
}) => {
|
|
13142
|
-
const [s, n] = useState(!1), [a, l] = useState(""), [o, c] = useState(r), [u,
|
|
13143
|
-
d === "quickActions" ? c((S) => S.filter((p, m) => m !== x)) :
|
|
13144
|
-
},
|
|
13145
|
-
a.trim() !== "" && (
|
|
13174
|
+
const [s, n] = useState(!1), [a, l] = useState(""), [o, c] = useState(r), [u, E] = useState(i), f = (d, x) => {
|
|
13175
|
+
d === "quickActions" ? c((S) => S.filter((p, m) => m !== x)) : E((S) => S.filter((p, m) => m !== x));
|
|
13176
|
+
}, b = () => {
|
|
13177
|
+
a.trim() !== "" && (E((d) => [a, ...d]), l(""));
|
|
13146
13178
|
};
|
|
13147
13179
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ceui-search-bar", children: [
|
|
13148
13180
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -13160,7 +13192,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13160
13192
|
setTimeout(() => n(!1), 200), e && e();
|
|
13161
13193
|
},
|
|
13162
13194
|
onKeyDown: (d) => {
|
|
13163
|
-
d.key === "Enter" &&
|
|
13195
|
+
d.key === "Enter" && b();
|
|
13164
13196
|
}
|
|
13165
13197
|
}
|
|
13166
13198
|
),
|
|
@@ -13324,9 +13356,9 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13324
13356
|
showNotificationButton: o = !1,
|
|
13325
13357
|
showAvatarMenu: c = !1,
|
|
13326
13358
|
showUserInfo: u = !1,
|
|
13327
|
-
showHamburgerButton:
|
|
13359
|
+
showHamburgerButton: E = !1,
|
|
13328
13360
|
showDrawer: f = !1,
|
|
13329
|
-
userInfoProps:
|
|
13361
|
+
userInfoProps: b,
|
|
13330
13362
|
onMenuClick: d,
|
|
13331
13363
|
drawerJsonUrl: x = "",
|
|
13332
13364
|
isDrawerOpen: S = !1,
|
|
@@ -13362,10 +13394,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13362
13394
|
l && /* @__PURE__ */ jsxRuntimeExports.jsx(CEHelpButton, {}),
|
|
13363
13395
|
o && /* @__PURE__ */ jsxRuntimeExports.jsx(CENotificationButton, {}),
|
|
13364
13396
|
c && /* @__PURE__ */ jsxRuntimeExports.jsx(CEAvatarMenu, {}),
|
|
13365
|
-
u &&
|
|
13397
|
+
u && b && /* @__PURE__ */ jsxRuntimeExports.jsx(CEUserInfo, { name: b.name, role: b.role })
|
|
13366
13398
|
] })
|
|
13367
13399
|
] }),
|
|
13368
|
-
f &&
|
|
13400
|
+
f && E && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13369
13401
|
CEDrawer,
|
|
13370
13402
|
{
|
|
13371
13403
|
jsonUrl: x,
|
|
@@ -13415,12 +13447,12 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13415
13447
|
errorMessage: o = "Invalid input",
|
|
13416
13448
|
showError: c = !0,
|
|
13417
13449
|
label: u,
|
|
13418
|
-
disabled:
|
|
13450
|
+
disabled: E = !1
|
|
13419
13451
|
}) => {
|
|
13420
|
-
const [f,
|
|
13421
|
-
|
|
13452
|
+
const [f, b] = useState(!1), d = (p) => {
|
|
13453
|
+
b(!0);
|
|
13422
13454
|
}, x = (p) => {
|
|
13423
|
-
|
|
13455
|
+
b(!1);
|
|
13424
13456
|
}, S = (p) => {
|
|
13425
13457
|
const m = p.target.value;
|
|
13426
13458
|
i === "number" && !/^\d*$/.test(m) || i === "alphanumeric" && !/^[a-zA-Z0-9]*$/.test(m) || e(m);
|
|
@@ -13443,7 +13475,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13443
13475
|
onBlur: x,
|
|
13444
13476
|
placeholder: r || " ",
|
|
13445
13477
|
className: "validated-input-field",
|
|
13446
|
-
disabled:
|
|
13478
|
+
disabled: E
|
|
13447
13479
|
}
|
|
13448
13480
|
),
|
|
13449
13481
|
c && !t && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "validated-input-error", children: o })
|
|
@@ -13455,7 +13487,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13455
13487
|
placeholder: i = "Select options",
|
|
13456
13488
|
multipleSelection: s = !0
|
|
13457
13489
|
}) => {
|
|
13458
|
-
const [n, a] = useState(!1), [l, o] = useState(""), c = useRef(null), u = "src/assets/KeyboardArrowDownRounded.svg", [
|
|
13490
|
+
const [n, a] = useState(!1), [l, o] = useState(""), c = useRef(null), u = "src/assets/KeyboardArrowDownRounded.svg", [E, f] = useState(!1), b = (m) => {
|
|
13459
13491
|
let y;
|
|
13460
13492
|
s ? y = e.includes(m) ? e.filter((g) => g !== m) : [...e, m] : (y = e.includes(m) ? [] : [m], a(!1)), r(y), o("");
|
|
13461
13493
|
}, d = () => {
|
|
@@ -13486,7 +13518,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13486
13518
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
13487
13519
|
"div",
|
|
13488
13520
|
{
|
|
13489
|
-
className: `dropdown${
|
|
13521
|
+
className: `dropdown${E ? " focused" : ""}${e.length > 0 || l ? " has-value" : ""}`,
|
|
13490
13522
|
children: [
|
|
13491
13523
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "dropdown-label", children: i }),
|
|
13492
13524
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -13550,14 +13582,14 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13550
13582
|
"div",
|
|
13551
13583
|
{
|
|
13552
13584
|
className: "option",
|
|
13553
|
-
onClick: () =>
|
|
13585
|
+
onClick: () => b(m.label),
|
|
13554
13586
|
children: [
|
|
13555
13587
|
s ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13556
13588
|
"input",
|
|
13557
13589
|
{
|
|
13558
13590
|
type: "checkbox",
|
|
13559
13591
|
checked: e.includes(m.label),
|
|
13560
|
-
onChange: () =>
|
|
13592
|
+
onChange: () => b(m.label),
|
|
13561
13593
|
onClick: (y) => y.stopPropagation()
|
|
13562
13594
|
}
|
|
13563
13595
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -13614,21 +13646,21 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13614
13646
|
r({});
|
|
13615
13647
|
});
|
|
13616
13648
|
const n = (o) => o.children && o.children.length > 0, a = (o) => o.some((c) => n(c)), l = (o, c = "") => !o || o.length === 0 ? null : /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: c ? "ce-submenu" : "ce-dropdown", children: o.map((u) => {
|
|
13617
|
-
const
|
|
13649
|
+
const E = c ? `${c}-${u.name}` : u.name, f = n(u);
|
|
13618
13650
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
13619
13651
|
"li",
|
|
13620
13652
|
{
|
|
13621
13653
|
className: `ce-dropdown-item ${f ? "has-submenu" : ""}`,
|
|
13622
|
-
onMouseEnter: () => f && i(
|
|
13623
|
-
onMouseLeave: () => f && i(
|
|
13654
|
+
onMouseEnter: () => f && i(E, !0),
|
|
13655
|
+
onMouseLeave: () => f && i(E, !1),
|
|
13624
13656
|
onClick: () => console.log(`Clicked: ${u.name}`),
|
|
13625
13657
|
children: [
|
|
13626
13658
|
u.name,
|
|
13627
13659
|
f && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ce-icon right", children: "▶" }),
|
|
13628
|
-
f && e[
|
|
13660
|
+
f && e[E] && l(u.children, E)
|
|
13629
13661
|
]
|
|
13630
13662
|
},
|
|
13631
|
-
|
|
13663
|
+
E
|
|
13632
13664
|
);
|
|
13633
13665
|
}) });
|
|
13634
13666
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-menu-bar", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ce-menu-container", children: t.map((o) => {
|
|
@@ -13708,7 +13740,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13708
13740
|
style: l = {},
|
|
13709
13741
|
editorStyle: o = {}
|
|
13710
13742
|
}) => {
|
|
13711
|
-
const c = useRef(null), [u,
|
|
13743
|
+
const c = useRef(null), [u, E] = useState("3"), [f, b] = useState("Arial"), [d, x] = useState({
|
|
13712
13744
|
bold: !1,
|
|
13713
13745
|
italic: !1,
|
|
13714
13746
|
underline: !1,
|
|
@@ -13759,7 +13791,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
13759
13791
|
const z = `<img src="${B}" alt="image" style="max-width: 100%; height: auto;"/>`;
|
|
13760
13792
|
document.execCommand("insertHTML", !1, z);
|
|
13761
13793
|
}
|
|
13762
|
-
} else P === "fontSize" || P === "fontName" ? (restoreSelection(j), document.execCommand(P, !0, _), P === "fontSize" ?
|
|
13794
|
+
} else P === "fontSize" || P === "fontName" ? (restoreSelection(j), document.execCommand(P, !0, _), P === "fontSize" ? E(_) : b(_)) : (restoreSelection(j), document.execCommand(P, !1, _));
|
|
13763
13795
|
c.current && (e == null || e(c.current.innerHTML)), (O = c.current) == null || O.focus(), p();
|
|
13764
13796
|
}, [e, p]), y = (P) => {
|
|
13765
13797
|
if (P.key === "Tab" && (P.preventDefault(), document.execCommand("insertHTML", !1, " ")), P.ctrlKey || P.metaKey)
|
|
@@ -14000,7 +14032,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
14000
14032
|
initialTime: r = "",
|
|
14001
14033
|
className: i = ""
|
|
14002
14034
|
}) => {
|
|
14003
|
-
const [s, n] = useState(!1), [a, l] = useState(r), [o, c] = useState("12"), [u,
|
|
14035
|
+
const [s, n] = useState(!1), [a, l] = useState(r), [o, c] = useState("12"), [u, E] = useState("00"), [f, b] = useState("AM"), [d, x] = useState(!1), [S, p] = useState(""), [m, y] = useState(""), g = useRef(null), k = Array.from({ length: 12 }, (L, A) => String(A + 1).padStart(2, "0")), P = Array.from({ length: 60 }, (L, A) => String(A).padStart(2, "0")), _ = (L, A) => {
|
|
14004
14036
|
if (!L) return "";
|
|
14005
14037
|
const M = parseInt(L);
|
|
14006
14038
|
return A === "hours" ? M > 12 ? "12" : M === 0 ? "01" : L.padStart(2, "0") : M > 59 ? "59" : L.padStart(2, "0");
|
|
@@ -14048,7 +14080,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
14048
14080
|
const V = A.substring(A.lastIndexOf(" ") + 1).toUpperCase();
|
|
14049
14081
|
V.startsWith("A") ? (F = "AM", T = `${o}:${u} AM`) : V.startsWith("P") && (F = "PM", T = `${o}:${u} PM`);
|
|
14050
14082
|
}
|
|
14051
|
-
c(C),
|
|
14083
|
+
c(C), E(R), b(F), l(T), n(!1), e == null || e(T);
|
|
14052
14084
|
}, I = (L) => {
|
|
14053
14085
|
if (![
|
|
14054
14086
|
"Backspace",
|
|
@@ -14091,7 +14123,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
14091
14123
|
} else if (M >= 3 && M <= 5) {
|
|
14092
14124
|
if (m) {
|
|
14093
14125
|
const C = _(m, "minutes");
|
|
14094
|
-
|
|
14126
|
+
E(C), y(""), l(`${o}:${C} ${f}`);
|
|
14095
14127
|
}
|
|
14096
14128
|
L.currentTarget.setSelectionRange(6, 8);
|
|
14097
14129
|
}
|
|
@@ -14103,14 +14135,14 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
14103
14135
|
n(!0), x(!0);
|
|
14104
14136
|
}, B = (L, A) => {
|
|
14105
14137
|
const M = L === "hours" ? A : o, C = L === "minutes" ? A : u, R = L === "period" ? A : f;
|
|
14106
|
-
c(M),
|
|
14138
|
+
c(M), E(C), b(R);
|
|
14107
14139
|
const F = `${M}:${C} ${R}`;
|
|
14108
14140
|
l(F), e == null || e(F);
|
|
14109
14141
|
}, z = () => {
|
|
14110
14142
|
const L = `${o}:${u} ${f}`;
|
|
14111
14143
|
l(L), n(!1), e == null || e(L);
|
|
14112
14144
|
}, H = () => {
|
|
14113
|
-
l(""), c("12"),
|
|
14145
|
+
l(""), c("12"), E("00"), b("AM"), n(!1), x(!1);
|
|
14114
14146
|
};
|
|
14115
14147
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `time-picker-container ${i}`, children: [
|
|
14116
14148
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `time-picker-input ${s || d ? "active" : ""}`, children: [
|
|
@@ -14192,7 +14224,7 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
14192
14224
|
boxClass: i = "",
|
|
14193
14225
|
buttonClass: s = ""
|
|
14194
14226
|
}) => {
|
|
14195
|
-
const [n, a] = useState([]), [l, o] = useState([]), [c, u] = useState(!0), [
|
|
14227
|
+
const [n, a] = useState([]), [l, o] = useState([]), [c, u] = useState(!0), [E, f] = useState(null), [b, d] = useState(/* @__PURE__ */ new Set()), [x, S] = useState(/* @__PURE__ */ new Set());
|
|
14196
14228
|
useEffect(() => {
|
|
14197
14229
|
(async () => {
|
|
14198
14230
|
var P, _;
|
|
@@ -14211,10 +14243,10 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
14211
14243
|
}, []);
|
|
14212
14244
|
const p = (k) => {
|
|
14213
14245
|
if (k === "available") {
|
|
14214
|
-
const P = n.filter((j) =>
|
|
14246
|
+
const P = n.filter((j) => b.has(j.id)).sort((j, I) => {
|
|
14215
14247
|
const $ = parseInt(j.id.replace(/\D/g, "")), O = parseInt(I.id.replace(/\D/g, ""));
|
|
14216
14248
|
return $ - O;
|
|
14217
|
-
}), _ = n.filter((j) => !
|
|
14249
|
+
}), _ = n.filter((j) => !b.has(j.id));
|
|
14218
14250
|
a(_), o((j) => [...j, ...P].sort(($, O) => {
|
|
14219
14251
|
const B = parseInt($.id.replace(/\D/g, "")), z = parseInt(O.id.replace(/\D/g, ""));
|
|
14220
14252
|
return B - z;
|
|
@@ -14273,18 +14305,18 @@ const v$2 = "5.1.7", fr$2 = 30, ip$2 = 25, op$2 = 69, w$2 = 600, h$2 = 600, nm$2
|
|
|
14273
14305
|
)) })
|
|
14274
14306
|
] });
|
|
14275
14307
|
};
|
|
14276
|
-
return c ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }) :
|
|
14308
|
+
return c ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }) : E ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
14277
14309
|
"Error: ",
|
|
14278
|
-
|
|
14310
|
+
E
|
|
14279
14311
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `transfer-list-container ${r}`, children: [
|
|
14280
|
-
g(n,
|
|
14312
|
+
g(n, b, d, "Choices"),
|
|
14281
14313
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "transfer-buttons", children: [
|
|
14282
14314
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14283
14315
|
CETransferButton,
|
|
14284
14316
|
{
|
|
14285
14317
|
label: ">>",
|
|
14286
14318
|
onClick: () => p("available"),
|
|
14287
|
-
disabled:
|
|
14319
|
+
disabled: b.size === 0,
|
|
14288
14320
|
className: s
|
|
14289
14321
|
}
|
|
14290
14322
|
),
|
|
@@ -14313,6 +14345,7 @@ export {
|
|
|
14313
14345
|
CEDateRangePicker,
|
|
14314
14346
|
CEDialogBox,
|
|
14315
14347
|
CEDrawer,
|
|
14348
|
+
FieldsInput as CEFieldsInput,
|
|
14316
14349
|
CEFooter,
|
|
14317
14350
|
CEGridLayout,
|
|
14318
14351
|
CEGridMenuButton,
|